Search Results :


Drupal SAML Single Sign On using Magento as Identity Provider

The Drupal SAML integration using the miniOrange SAML SP module establishes seamless SSO between Magento and the Drupal site. The users will be able to log in to the Drupal site using their Magento credentials. This document will walk you through the steps to configure Single Sign-On - SSO between Drupal as a Service Provider (SP) and Magento as an Identity Provider (IDP). The module is compatible with Drupal 7, Drupal 8, Drupal 9, and Drupal 10.

Installation Steps

  • Download the module:
    Composer require 'drupal/miniorange_saml'
  • Navigate to Extend menu on your Drupal admin console and search for miniOrange SAML Service 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 drupal/miniorange_saml
  • 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 SP 2.0 Single Sign On (SSO) - SAML Service 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

Drupal SAML SP Metadata:

  • After installing the module on your Drupal site, in the Administration menu, navigate to Configuration → People → miniOrange SAML Login Configuration. (/admin/config/people/miniorange_saml/idp_setup)
  • Drupal SAML SP select miniOrange SAML Login Configuration
  • You will be redirected to the Service Provider Metadata tab of the module.
  • Under the Service Provider Metadata tab, copy the SP Entity ID/Issuer & SP ACS URL. (keep it handy)
  • Drupal SAML Single Sign On copy SP Metadata

Configure Magento as IDP:

  • In the miniOrange SAML Identity Provider extension, go to Service Provider settings tab of the extension.
  • Under the Service Provider Settings tab, enter the following information:
  • Identity Provider fields (Magento) Drupal Fields (SP)
    Service Provider Name For ex., Drupal test
    SP Entity ID or Issuer Paste this URL from the step 1 (Drupal SAML SP Metadata)
    ACS URL Paste this URL from the step 1 (Drupal SAML SP Metadata)
  • Once done, click on the Save button.
  • Drupal SSO upload metadata to Magento

Attribute Mapping:

  • In the Magento IDP extension, navigate to the Attribute Mapping tab.
  • In the User Attributes section, enter the following information and click on the Save button.
  • You can also add more attributes by clicking on + sign to add attributes.
  • Name User Meta Data
    username user_login
    displayName display_name
    email user_email
    Drupal SAML SSO Magento SAML IDP Attribute mapping

Magento SAML IDP Metadata:

  • Under the IDP Metadata tab, copy the metadata URL. (keep it handy)
  • Drupal SSO copy magento metadata url

Configure Drupal as SAML SP:

  • Navigate to the Service Provider Setup tab of the Drupal site and click on Upload IDP Metadata.
  • Now, paste the metadata URL copied from the Magento into the Upload Metadata URL text field.
  • Click on the Fetch Metadata button.
  • Drupal SAML SP upload metadata from Magento
  • After successful configuration, click on the Test link to test the connection between Drupal and Magento.
  • Drupal SAML SP click on Test link
  • In the Test Configuration popup, initiate sign-in using Magento credentials (if an active session is not present). After successful authentication, a list of attributes that are received from Magento will be displayed.
  • Click on the Done button.
  • Drupal SAML SP test configuration successfull

    Congratulations! you have successfully configured Magento as SAML Identity Provider and Drupal as SAML Service Provider.

How does SAML SSO login work?

  • Open a new browser/private window and navigate to the Drupal site login page.
  • Click the Login using Identity Provider (Magento) link.
  • Drupal SAML SP Login using identity provider
  • You will be redirected to the Magento login page. Enter the Magento credentials. After successful authentication, the user will be redirected back to the Drupal site.

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