Moodle Plugins directory: WordPress authentication | Moodle.org
WordPress authentication
Authentication ::: auth_wordpress
Maintained by
Ian Wild
WordPress OAuth 1.0a three legged authentication for Moodle 3.1+
Latest release:
34 sites
12 downloads
23 fans
Current versions available: 1
This authentication plugin allows Moodle to authenticate against a WordPress installation.
You will need to install and enable the WP REST API OAuth 1.0a server in WordPress - see https://github.com/WP-API/OAuth1.
Contributors
Ian Wild (Lead maintainer)
Please login to view contributors details and/or to contact them
This plugin allow a single sign on ? or is authenticate in moodle against a wordpress DB (external db authentication) ?
Regards,
Sebastian.
Thanks for your message. Yes: this plugin allows a single sign on, but note that it implements three legged authentication. The basic process is:
1. A WordPress user who is already logged in to WordPress clicks on a link to Moodle. Note that if the user isn't logged in to WordPress then the authorisation process will require them to.
2. Moodle redirects the user back to WordPress (via Oauth 1.0a) and WordPress asks the user if they would like to share their WordPress details with Moodle.
3. If the user accepts they are then redirected back to Moodle and Moodle authenticates.
There is a good description of the process here : https://dev.twitter.com/oauth/3-legged
Hope this helps. If there is any more information you need then please do let me know.
Regards,
Ian.
I'm already installed the plugin in moodle and also the plugin in wordpress : WP REST API - OAuth 1.0a Server
I don't know how to generate the The OAuth 1.0a client key and The OAuth 1.0a client secret.
Started reading several post related of how to generate those key/secret credentials in wordpress, but I've been stuck adding a new application, not sure about the callback URL.
If I make a GET to my-wordpress-site/wp-json I get :
"authentication": {
"oauth1": {
"request": "http://www.my-wordpress-site.com/oauth1/request",
"authorize": "http://www.my-wordpress-site.com/oauth1/authorize",
"access": "http://www.my-wordpress-site.com/oauth1/access",
"version": "0.1"
}
}
Then, I not sure how to continue.
I'm not sure if you've had chance to check out the instructions on the plugin wiki here: https://github.com/iandavidwild/moodle-auth_wordpress/wiki/Configuring-WordPress-and-Moodle ? Please let me know if these instructions don't make sense and I'll take a look at rewriting them.
Hope this helps,
Ian.
I'm try to use this plugin but I have an error "auth_wordpress/usercollision"
Please advise,
Redards,
Reyditz Tya