WordPress authentication

Authentication ::: auth_wordpress
Maintained by MeIan Wild
WordPress OAuth 1.0a three legged authentication for Moodle 3.1+
Latest release:
35 sites
13 downloads
23 fans

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.

Screenshots

Screenshot #0

Contributors

Me
Ian Wild (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

コメントを表示する
  • Plugins bot
    2017年 03月 16日(木) 02:40
    Approval issue created: CONTRIB-6786
  • Sebastian Castellanos
    2017年 05月 29日(月) 05:14
    Hi Ian,
    This plugin allow a single sign on ? or is authenticate in moodle against a wordpress DB (external db authentication) ?

    Regards,
    Sebastian.
  • Me
    2017年 05月 29日(月) 15:56
    Hi 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.
  • Sebastian Castellanos
    2017年 05月 30日(火) 01:27
    Hi Ian, thanks for your response.

    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.
  • Me
    2017年 05月 31日(水) 05:09
    Hi Sebastian,

    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.
  • reyditz tya
    2018年 10月 9日(火) 15:38
    Ho Ian Wild,

    I'm try to use this plugin but I have an error "auth_wordpress/usercollision"

    Please advise,

    Redards,
    Reyditz Tya
  • Pablo Isaac Rios Sierra
    2019年 09月 3日(火) 06:23
    alguno soluciono el problema que arroja moodle "auth_wordpress/usercollision"
Please login to post comments