Search Results :


Moodle SAML Single Sign-On (SSO) Integration with Drupal as IdP

Drupal can be set as a centralized identity provider or an authentication source for the users across other applications via Single Sign-On (SSO). This document will walk you through the steps of integrating Drupal as SAML 2.0 IdP and Moodle as a Service Provider (SP) using the miniOrange SAML IDP module. This will allow you to manage users and their permissions in a place and at the same time the users can access multiple applications with single credentials. The module is compatible with Drupal 7, Drupal 8, Drupal 9, and Drupal 10.

Installation Steps 

  • Download the module:
    composer require 'drupal/miniorange_saml_idp'
  • Navigate to Extend menu on your Drupal admin console and search for miniOrange SAML Identity Provider using the search box.
  • Enable the module by checking the checkbox and click on install button.
  • Configure the module at
  • Install the module:
    drush en miniorange_saml_idp
  • Clear the cache:
     drush cr
  • Configure the module at
  • Navigate to Extend menu on your Drupal admin console and click on Install new module button.
  • Install the Drupal SAML IDP 2.0 Single Sign On (SSO) - SAML Identity Provider module either by downloading the zip or from the URL of the package (tar/zip).
  • Click on Enable newly added modules.
  • Enable this module by checking the checkbox and click on install button.
  • Configure the module at


  • Download the plugin from the Moodle Plugin Directory and install it in the Moodle referring to the steps below:
    • Login as administrator in Moodle.
    • Navigate to the Site Administrator → Plugins → Install plugins. In Plugin installer → beside the ZIP package → click on Choose a file.
      • A File Picker window will appear on the left side. Select Upload a file and then click on the Choose File button. (upload the zip file that you downloaded from the Moodle Plugins Directory)
      • Click on the Upload this File button.
    • Click the Install the plugin from the ZIP file button and then click on the Continue button to proceed.
    • Click on the Upgrade Moodle database now button, and then click on the Continue button.

Drupal SAML IdP Metadata:

  • After installing the module on your Drupal site, in the Administration menu → navigate to Configuration → People → miniOrange SAML IDP Configuration. (/admin/config/people/miniorange_saml_idp/idp_setup)
  • Drupal-SAML-IDP-Single-Sign-On-Click-on-Drupal-SAML-IDP-Configuration
  • Under the IDP Metadata tab, click on the Download Metadata button. Open it on the notepad and copy the IdP information. Keep it handy. (This information is required to configure Moodle as SAML SP.)
  • Drupal-SAML-IDP-Single-Sign-On-download-the-metadata

Configure SAML SSO Application in Moodle LMS (E-learning):

  • Log in to your Moodle administrator account.
  • Navigate to the Site administrator → Plugins → Plugins overview → Additional plugins.
  • Click on the Settings link under Actions.
  • Moodle-Single-Sign-On-Administration-Plugins-overview-click-on-Settings
  • Under the Service Provider Metadata tab click on the DOWNLOAD link to download the XML metadata file. Keep it handy. This is required to configure Drupal as a SAML Identity Provider (IdP).
  • Moodle-SAML-Single-Sign-On-click-on-download-metadata
  • Go to the Service Provider Setup tab of the plugin and click on the Upload IdP Metadata button.
  • Moodle-Single-Sing-on-Click-on-Upload-IdP-Metadata-btn
  • Enter the Identity Provider Name. Paste the previously copied IdP metadata file from Drupal into the IdP Metadata XML text field and click on the Upload Metadata button.
  • Moodle-SAML-Single-Sign-on-paste-the-IdP-metadata-file-in-the-field

Configuring Drupal as SAML Identity Provider (IdP):

  • Navigate to the Drupal site. Go to the Service Provider Setup tab of the module and click on the Upload SP Metadata.
  • In the Upload Metadata field, choose the SP metadata file that you downloaded from Moodle and click on the Upload button.
  • Drupal-SAML-IDP-Upload-Metadata

You have successfully configured the SAML SSO between Nextcloud as SAML SP and Drupal as SAML IDP.

Test Connection between Moodle and Drupal:

  • Navigate to your Moodle site.
  • In the Moodle dashboard → Site administration → Plugins → Plugins Overview → Additional plugins → Settings.
  • Go to the plugin's Service Provider Setup tab. Scroll down and click on the Test Configuration button.
  • Moodle-SAML-Single-Sign-on-click-on-test-configuration-button
  • On a Test Configuration popup, sign in with Drupal site credentials (if the user session does not exist). After successful authentication, the list of attributes received from the Drupal site will be displayed.
  • Click on the Done button.
  • Moodle-test-configuration-window-received-attribute-from-the-Drupal

Additional Features:

Explore the advanced features offered by the module with full-featured trial. You can initiate the trial request using Request 7-day trial button of the module or reach out to us at for one-on-one assistance from Drupal expert.

 Case Studies
miniOrange has successfully catered to the use cases of 400+ trusted customers with its highly flexible/customizable Drupal solutions. Feel free to check out some of our unique case studies using this link.
 Other Solutions
Feel free to explore other Drupal solutions that we offer here. The popular solutions used by our trusted customers include 2FA, User Provisioning, Website Security. 
  24*7 Active Support
The Drupal developers at miniOrange offer quick and active support for your queries. We can assist you from choosing the best solution for your use case to deploying and maintaining the solution.
Hello there!

Need Help? We are right here!

Contact miniOrange Support

Thanks for your inquiry.

If you dont hear from us within 24 hours, please feel free to send a follow up email to