Skip to content

Configuring WordPress and Moodle

Ian David Wild edited this page May 18, 2017 · 2 revisions

On this page we describe the steps required to configure WordPress to Moodle OAuth authentication. We assume you have already installed moodle-auth_wordpress in Moodle.

WordPress configuration

To allow external applications to communicate with WordPress, we need to install the oauth1.0a server. Note that we need to use version 1.0a rather than 2.0 because WordPress currently only supports 1.0a internally. Carry out the following steps:

  1. Install the WordPress REST API OAuth 1.0a Server and activate it.
  2. From the Users menu select Applications. The Registered Applications page is displayed. Press the Add New button. The Add Application page is displayed.
  3. Specify a suitable consumer name and description. The callback URL needs to point to this plugin's auth/wordpress/callback.php script, e.g.
  4. Once the new consumer has been specified, you are provided with a Client Key and a Client Secret key. These will need to be copied over to Moodle.

Moodle configuration

  1. Enable the WordPress authentication plugin. Then click on Settings.
  2. Complete the settings as appropriate, using the Client Key and Client Secret copied from WordPress. Save the changes.
  3. Disable and order the Moodle authentication methods as appropriate.
You can’t perform that action at this time.