Single Sign On extension user guide

Defining a Secret Key on WordPress and Moodle

  • Once you have installed the extension on WordPress as well as Moodle on both the websites a secret key will have to be set that will facilitate the Single Sign-On process. Setting up secret key is similar to setting up a password it has to be alpha-numeric with no special characters of blank or white space. For e.g 1a2b3c4d5e6f7g8.
  • To set the secret key on the WordPress website navigate to ‘Edwiser Bridge‘ -> ‘Settings‘ -> ‘Single Sign On‘ tab from the admin menu and set a secret key of your choice in ‘Secret Key‘ inside the general tab.
  • Now the same secret key should be set on the Moodle website. To set the secret key on Moodle, log in to your Moodle website and navigate to ‘Site Administration‘ -> ‘Plugins‘ -> ‘Authentication‘ -> ‘Edwiser Bridge SSO‘. On clicking ‘Edwiser Bridge SSO‘, the following screen will appear on the right side of your screen.
  • Here you will have to enter the same secret key that you entered in the ‘Secret Key‘ field in the Single Sign-On settings on the WordPress website and save the settings.

Important Note: The SAME secret key MUST be defined on both the WordPress and Moodle websites for the Single Sign On functionality to work seamlessly without any errors.

Including a Login Link on the WordPress Website with a Shortcode

  • The Single Sign On extension for Edwiser Bridge allows users to enter their login credentials once in WordPress and be logged in to WordPress and Moodle simultaneously.
  • Now it can happen that an end user logs out of the Moodle website. For these users, you can provide a login link on the WordPress website which can be used to automatically login to the Moodle website again without having to enter any login credentials.
  • To use the shortcode on your WordPress website create a page and add this shortcode to the page.
single-sign-on-extension-moodle-generate-link
  • Now use the link of the page that you just created to any menu item that you might want to use to automatically login the user to Moodle and redirect them there.

Setup WordPress log in redirection:

  • If you want your users to redirect to Moodle site as soon as they log in from your WordPress site using the WooCommerce My Account login page (www.example.com/my-account), then, go to Edwiser Bridge → Settings → Single Sign On Tab and add your Moodle site’s address or a WordPress page which consists the [wdm_generate_link] shortcode.
screenshot bridge.edwiser.org 2018.09.18 16 55 41

Setup Reverse SSO (Automatic login/logout on WordPress site if a User logs in/logs out on Moodle):

  • Go to your Moodle site and browse Site Administration → Plugins → Authentication → ‘edwiser bridge sso’. Here, add the complete WordPress site URL in the following section.
screenshot bridge.edwiser.org 2018.09.18 16 57 20

Moodle logout Redirection:

  • If you want your users to redirection to a certain page after he logs out of Moodle, then please add the logout redirection URL in the following section.
screenshot bridge.edwiser.org 2018.09.18 16 57 48

Note: Make sure that you have set these things before using SSO plugin.

You should also set the permissions for auth/wdmwpmoodle file that needs to be uploaded to Moodle site as follows,

– The folder and sub-folder permission need to be set to 755.

– The sub-files permission needs to be set to 644.

Was this page helpful?