Hello,
We have a software application that users login to. Instead of requiring users to create a separate login to WPLMS, we would like for them to be able to seamlessly login to WPLMS once they have logged into our app. I noticed the article below, and have also seen your Social Connect Plugin (not exactly what we're looking for though). We use SimpleSAMLphp in our app to manage single sign on.
https://wplms.io/support/knowledge-base/wplms-oauth-server/
I look forward to your reply.
Well please confirm are you using this library ?
https://simplesamlphp.org/
I guess when user is created in your software app then it will make a hit on wplms site also with user credentials and security params to create user account .
similar thing is done in bp social connect plugin.
This reply has been marked as private.
When user is created in your software app then you should make a hit on wplms site also with user credentials and security params to create user account .
check register_user function in vibe-course-module/includes/api/class-api-user-controller.php file
similar thing is done in bp social connect plugin.
Hi Alex,
I understand what you are saying, but it's not just creating a user login automatically that we need. We need to be able to automatically log people in after clicking a button in our app/software to access WPLMS, after the user has been created.
Well wplms uses wordpress login and wordpress sets cookie in browser to initiate user log in .
So you would need to open the browser on user's machine through your app and then make user login so that .
wordpress login requires :
1. setting cookie in browser
2. makes an entry same as cookie value in database /
It uses both the above to set the user session .
refer :
https://developer.wordpress.org/reference/functions/wp_set_auth_cookie/