Moodle SSO Integration With Drupal SAML IDP module | Moodle SSO connect

Moodle Single Sign-On ( SSO )  IntegartionMoodle login using Drupal Credentials ( IDP ) can be achieved by using our Drupal SAML IDP Single Sign-On ( SSO ) module. This module is compatible with all the SAML compliant Service providers. Here we will go through a step-by-step guide to configure SAML IDP SSO login between Drupal site and Moodle by considering Moodle as SP ( Service Provider ) and Drupal as IDP ( Identity Provider ).

If you have any doubts or queries you can contact us at drupalsupport@xecurify.com. We will help you to configure the module.

Follow the steps below to configure the Single Sign-On (SSO) between Drupal as IDP and Moodle as SP :

Step 1: Configure Drupal Site as an identity provider:

  • Go to Moodle site.
  • Install and activate the miniOrange SAML SP plugin on your Moodle site, which acts as a Service Provider.
  • Go to the miniOrange SAML SP plugin, navigate to the Service Provider Metadata tab. Here, you can find the Service Provider metadata such as SP Entity ID , ACS (Assertion Consumer Service) URL, Audience URI and NameID format which is required to configure the Identity Provider.
  • moodle SAML SP single sign on ( sso ) upload metadata

    miniorange img Instructions:

  • Go to Drupal site.
  • Install and activate the miniOrange SAML IDP module ( Drupal as SAML IDP ) on your Drupal site which is acts as an Identity Provider.
  • Go to the Drupal SAML IDP module, navigate to the Service Provider tab.
  • Enter the values corresponding to the information from the Service Provider. Refer to the table below.


  • Service Provider Name Name of your Service Provider.
    SP Entity ID or Issuer Copy the SP EntityID from the Service Provider Setup tab in miniorange SAML SP module from your moodle site.
    ACS URL Copy the ACS URL from the Service Provider Setup tab in miniorange SAML SP module from your moodle site.
    NameID Format urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress
    Assertion Signed Checked

    drupal saml idp service provider
  • Click on the Save button to save your configurations.
  • Go to the IDP Metadata tab. Here you can find information for configuring the Service Provider.
  • You can also download the metadata XML file, by clicking on the download link.
  • Drupal saml idp upload metadata

Step 2: Configuring Moodle site as Service Provider

We will go through the steps to setup Moodle as a Service Provider. Here, we will be adding the IdP metadata to configure the plugin.

In the miniOrange SAML SP plugin, go to the Service Provider tab of the plugin. There are two ways to configure the plugin:

A. By uploading IDP metadata:

  • Click on Upload IDP metadata button.
  • Enter the Identity Provider Name
  • You can copy and paste IdP metadata XML file download in the last step and click on Upload Metadata button or use a metadata URL copied in the last step and click on Fetch Metadata.
  • moodle saml SSO upload metadata

B.Manual Configuration:

  • Provide the required settings ( i.e. Identity Provider Name, IdP Entity ID or Issuer, SAML Login URL, X.509 Certificate ) as provided by your Identity Provider as shown in the last step.
  • Click on the Save button to save your configuration.
  • moodle saml SP upload metadata

Step 3: Attribute Mapping in the Moodle SAML SP plugin

  • When the user performs SSO, the NameID value is sent by the Identity Provider. This value is unique for every user.
  • To assign by which attribute value user should be created or authenticate himself. for that select Email or Username in "Login/Create Moodle account by" dropdown.
  • For the plugin to access these attributes assign the Email and Username attribute in the required field.
  • Click on the Save button to save your configuration.
  • moodle sso integration saml attribute mapping

Step 4: Role Mapping in the Moodle SAML SP plugin

  • In the free plugin, you can choose a default role that will be assigned to all the non-admin users when they perform SSO. [NOTE: Roles will be assigned to new users created by SSO. Existing Moodle users’ roles will not be affected.]
  • Go to Attribute/Role mapping tab and navigate to Role Mapping section.
  • Select the Default Role and click on the Save button to save your configuration.
  • moodle sso saml role mapping

Step 5: SSO Settings in the Moodle SAML SP SSO plugin

  • In the plugin you can add a login widget to enable SP-initiated SSO on your site.
  • Go to the plugins >> Authentication >> Manage authentication.
  • Click on the to enble the plugin visibility.
  • Click on the ⬆ to set plugin preference.
  • moodle sso connect saml role mapping


Free Trial

If you don't find what you are looking for, please contact us at info@xecurify.com or call us at +1 978 658 9387 to find an answer to your question about Drupal IDP module.

Hello there!

Need Help? We are right here!

support
Contact miniOrange Support
success

Thanks for your inquiry.

If you dont hear from us within 24 hours, please feel free to send a follow up email to info@xecurify.com