SAML Single Sign On (SSO) into Drupal using Office365 as IDP

SAML Single Sign On (SSO) into Drupal using Office365 as IDP

Drupal SAML Office365 SSO setup will allow your user to login to your Drupal site using their Office365 Credentials. Drupal SAML module gives the ability to enable SAML Single Sign-On for Drupal. Drupal module is compatible with all SAML Identity Providers. Here we will go through a guide to configure SAML SSO between Drupal and Office365. By the end of this guide, users from Office365 should be able to login into the Drupal site, you can download the module from here.

Step 1: Configuring Azure AD as Identity Provider (IdP)

  • Navigate to Azure AD portal
  • Click on Azure Active Directory from Azure services.
  • Drupal SAML Single Sign On (SSO), Azure AD SSO Login
  • In the left-hand navigation pane, click the App registrations service, and click New registration.
  • Drupal SAML Single Sign On (SSO), Azure AD SSO App-Registration
  • Assign a Name and Redirect URI to application. Redirect URI will be ACS URL provided in Service Provider Metadata tab of the Module. Select Web app as Application type and click on Register button.
  • Drupal SAML Single Sign On (SSO) register an application
  • You’ll see the app on App Registration window. Click on Authentication option which will open Authentication window and then click on Add a Platform button under this window. Now, add Redirect URI and Logout URL and click on Configure button.
  • Drupal SAML Single Sing On (SSO) configure app
  • Click on Expose an API display on the leftside of Dashboard. Here change Application ID URI value with the SP-Enity ID / Issuer value provided in Service Provider Metadata tab of the Module and save.
  • Drupal SAML Single Sing On (SSO) API properties window

Step 2: Configuring Drupal as Service Provider (SP)

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

    A. By uploading IDP metadata:

    • Click on Upload IDP metadata button.
    • Enter the Identity Provider Name
    • You can either upload a metadata file and click on Upload button or use a metadata URL and click on Fetch Metadata.
    • drupal saml 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 and click on the Save button.

If you are looking for anything which you cannot find, please drop us an email on

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