Search Results :

×

Drupal SAML Single Sign On using Microsoft Entra ID as Identity Provider


The Drupal SAML integration using the miniOrange SAML SP module establishes seamless SSO between Microsoft Entra ID and the Drupal site. The users will be able to log in to the Drupal site using their Microsoft Entra ID credentials. This document will walk you through the steps to configure Single Sign-On - SSO between Drupal as a Service Provider (SP) and Microsoft Entra ID 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
    {BaseURL}/admin/config/people/miniorange_saml/idp_setup
  • Install the module:
    drush en drupal/miniorange_saml
  • Clear the cache:
     drush cr
  • Configure the module at
    {BaseURL}/admin/config/people/miniorange_saml/idp_setup
  • 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
    {BaseURL}/admin/config/people/miniorange_saml/idp_setup

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 Single Sign-On - Select miniOrange SAML Login Configuration
  • Under the Service Provider Metadata tab, click on the Download XML Metadata button. Keep the downloaded file handy. (This is required to configure Microsoft Entra ID as an IdP.)
  • Drupal-SAML-Single-Sign-On-Click-on-Download-XML-Metadata-button

Configure SAML Single Sign-On Application in Microsoft Entra ID:

  • Log in to your Microsoft Azure portal.
  • Select Enterprise applications from the Azure services section.
  • Microsoft-Azure-Select-Enterprise-Application
  • Click on the New application button.
  • Microsoft-Azure-Click-on-New-application
  • Click on the Create your own application button.
  • In the Create your own application popup, enter the required information.
    • What's the name of your app? Enter the Application name in the text field.
    • What are you looking to do with your application? - Select the 3rd option, Integrate any other application you don't find in the gallery (Non-gallery) from the listed option.
    Microsoft-Azure-Create-your-own-application
  • Click on Create.
  • Click on Get Started under Set up single sign on card/box.
  • Microsoft-Azure-click-on-set-up-single-sign-on
  • Click on the SAML card/box.
  • Microsoft-Azure-Select-a-single-sign-on-method-choose-saml_0
  • Click on the Upload metadata file button.
  • Click on the File icon and upload the previously downloaded XML Metadata file from Drupal site.
  • Then, click on the Add button.
  • Microsoft-Azure-Upload-the-Drupal-XML-metadata-file
  • Verify the uploaded information in the Basic SAML Configuration dialogue box and click on the Save button.
  • Microsoft-Azure-Basic-SAML-Configuration-and-click-on-Save-button
  • Copy the App Federation Metadata Url and keep it handy. (This information is needed to set up Drupal as a SAML SP.)
  • Microsoft-Azure-SAML-Certificate-card-and-copy-federation-metadata

Assign Users and groups in the Azure Application:

  • Click on Users and groups from the left navigation menu.
  • Okta Microsoft-Azure-Go-to-the-users-and-groups
  • Click on the Add user/group button.
  • Microsoft-Azurec-click-add-user-group
  • Click on the None Selected link.
  • Under Users window on the right side, search for the users to be assigned and click on them.
  • Click on the Select button, and then click on Assign button.
  • Microsoft-Azure-Add-Assignment-panel

Configure Drupal as SAML Service Provider:

  • Navigate to the Service Provider Setup tab of the Drupal site and click on Upload IDP Metadata.
  • Paste the previously copied App Federation Metadata Url (from Microsoft Entra ID) into the Upload Metadata URL text field.
  • Click on the Fetch Metadata button.
  • Drupal-SAML-Paste-the-Federation-Metadata-URL-into-the-Upload-Metadata-URL

    Note: To update Identity Provider Name, follow these steps:

    • Under Action, select the Edit.
    • Enter Azure in the Identity Provider Name text field.
    • Scroll down and click on the Save Configuration button.

  • Click on the Test link to test the connection between Drupal and Microsoft Entra ID.
  • Drupal-SAML-Click-on-Test-link-to-verify-the-connection-between-drupal-and-azure
  • On a Test Configuration popup, you will be prompted to sign in to Microsoft Entra ID if you don't have an active session in the same browser. After successfully logging in to Microsoft Entra ID, you will be provided with a list of attributes received from Microsoft Entra ID. Click on the Done.
  • drupal saml Single Sign On as SP - click on Done button

Congratulations! you have successfully configure Microsoft Entra ID as SAML Identity Provider (IdP) 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 (Microsoft Entra ID) link.
  • You will be redirected to the Microsoft Entra ID login page. Enter the Azure 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 drupalsupport@xecurify.com 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!

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