tbenyon
Forum Replies Created
-
Hey Leif,
Great question.
The biggest blocker on this is I hanven’t worked on this for over 3 years so would have to get myself familiar again with how it identifies users etc.
The code is publicly available if you were super keen to make a pull request to add the feature.
However, there is an added way for people to add any required customisations. You’ll find in the documentation about hooks one named
exlog_hook_action_authenticatedthat gives an example of updating user data (though custom data – not default e-mail address).Hope this helps but let me know if you have any more questions π
Forum: Plugins
In reply to: [External Login] Redirect the UserHey Leif,
I agree it’s in the bullet points and I can’t see it in the screenshots.
I haven’t worked on this project for over 3 years so I’ve forgotten but had a look in the code.
I found some code I wrote that I believe means there is a setting in the setting area. Probably added after I made the screenshots.
Reference for myself:
array( "field_name" => "Redirect Location (External)", "field_description" => "This is the location to navigate to outside of the site.<br>e.g. \"<b>https://wordpress.org/plugins/external-login/#reviews</b>\"", "field_slug" => "external_login_option_redirection_location_external", "type" => "text", "required" => false, "conditionals" => array( "and", array( "condition_field" => "external_login_option_redirection_type", "condition_field_value" => "external", "condition_operator" => "=" ), ) ),I believe you’ll find this in the settings area when you install.
Looks like you get an option to either redirect within your wordpress site or to an external page.
Let me know if this solves your problem either way π
- This reply was modified 2 years, 3 months ago by tbenyon.
Forum: Plugins
In reply to: [External Login] Support For Custom User FieldsHi there,
Custom fields can be pulled across from the external db as long as they are stored in the same table as usernames and passwords. It sounds like this is the case for you.
Let me know how you get on.
kind regards,
Tom
Forum: Plugins
In reply to: [External Login] Using upper(md5(str)) to login?I wonβt be able to get an example up and running but based on your code snippet it would look like thisβ¦
function myExlogHashAuthenticator($password, $hashFromDatabase, $username, $externalUserData) { $generatedHash = upper(md5($password)); return $hashFromDatabase == $generatedHash; } add_filter('exlog_hook_filter_authenticate_hash', 'myExlogHashAuthenticator', 10, 4);If you can provide the code snippet of what your system does to hash and an example password in plain text and the hashed version of that password I could try and help you further when I get time. Would need those things though.
Tom
Forum: Plugins
In reply to: [External Login] Using upper(md5(str)) to login?Forum: Plugins
In reply to: [External Login] Authenticate Users from Oracle DBHi Dom,
Unfortunately the plugin does not support Oracle.
However the code is open source if you were interested in doing the changes required to make it work.
If you are interested in this and have any questions let me know.
Thanks,
Tom π
Forum: Plugins
In reply to: [External Login] Adapting external login for APIOk. Not saying it’s a deal breaker but things to consider are:
– users accidentally using the wrong e-mail
– users signing up with someone else’s e-mail? Maybe not an issue if you require e-mail validation on signup in WordPress? Also not an issue if low risk in a worst case scenario and relatively unlikely.It sounds like this plugin however won’t be much use. I think it sounds like it is just a function that calls the api on each login (WordPress has a hook for this) and sets the user account if a successful response comes back. Should be a straight forward task for a developer however if someone your end makes headway and needs some general direction I’ll try and continue to respond here.
Good luck with the project.
Kind regards,
Tom π
Forum: Plugins
In reply to: [External Login] Adapting external login for APIHow does a user get created in WordPress? Are you expecting your WordPress site to have a sign up form and that they need to create a user with the same e-mail as is in your CRM?
Forum: Plugins
In reply to: [External Login] Adapting external login for APIOk – and were you looking to have users signup to WordPress separately or were you planning to connect this plugin to your database of users so they can login with the same credentials?
Forum: Plugins
In reply to: [External Login] Adapting external login for APIHi @wildlifeweb,
Yes this is possible with WordPress, but is obviously a very customised flow for your use case. The hooks in this plugin give a really good template of where you would want to write such logic. However, you will no doubt have to learn the development skills or hire a developer to carry out the work for you.
There are a lot of things you need to consider and answer:
– Do you need logged in users to access a members area? If so, I believe WordPress requires passwords, will you just create a fake one each time?
– Without any password validation anyone could use a member e-mail in the platform to gain access which seems problematic. They could access as any other user.
– Does their API support validating an e-mail address?
– Do you want some sort of gated screen where a user has to login with just an e-mail address?These are just some initial considerations but based on these there would be a lot of other questions. I don’t have capacity to help you with this project but it sounds like you’re going to need a developer to support the development which would be my advice for next steps. If you have a budding developer and want to ask specific questions I’ll try my best to give occasional advice here when I can.
Good luck with the project π
Forum: Plugins
In reply to: [External Login] Error 500 connecting to MSSQLJust had an initial read. π
For convention I would have preferred it used the same syntax with the colon. In my experience the
:is a more standard separator for host and port.Was there a reason you went with a comma?
Tom
Forum: Plugins
In reply to: [External Login] Error 500 connecting to MSSQLHey @ccsimmons,
Didn’t realise I’d made it private.
Have another look and let me know if you have access π
Tom
Forum: Plugins
In reply to: [External Login] Error 500 connecting to MSSQLHey @ccsimmons,
If you could create a pull request I’ll review it and see if I can get this updated for you π
https://github.com/tbenyon/wordpress_external_login_plugin
Thanks,
Tom
Forum: Plugins
In reply to: [External Login] Migrate FunctionalityGlad you found what you were looking for @johnlauber π
Let me know if you have any other issues π
If everything is working for you I’d be grateful if you could write a review or even buy me a beer.
Thanks,
Tom
Forum: Plugins
In reply to: [External Login] Unable to login to external databaseHey @nhuja,
I’m not familiar with Digital Ocean as I usually use AWS.
Two thoughts.
The first is I found this that might be worth a read:
https://www.digitalocean.com/community/questions/remotely-connecting-to-mysqlAlso I know that their servers have configuration for Public Network Access which would been to be the case for your database but you may also need to add the hostname mentioned above to the “Inbound Rules” in the Firewall section. I know these exist for servers but have not used their DBs.