SAML Single Sign-On (SSO) for Drupal using OpenAM as IDP

Drupal OpenAm SSO setup will allow your user to login to your Drupal site using their OpenAm 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 OpenAm . By the end of this guide, users from OpenAm should be able to login into the Drupal site, you can download module click here

Step 1:Setup OpenAM as Identity Provider

All the information required to configure the OpenAM i.e. plugin’s metadata is given in the Service Provider Info tab of the miniOrange plugin.

Drupal OpenAM sso icon Create OpenAM as a Hosted Identity Provider

Note: – You can skip this step and navigate to Configure Remote Service Provider if you have already configured OpenAM hosted IDP.


  • Login to the OpenAM admin console.
  • From the REALMS, select realms, under which you want to create hosted IDP. You will be redirected to the Realm overview page.
  • Click on Create SAMLv2 Providers in the Realm Overview page.

    Drupal OpenAM sso realm overview
  • Click on Create Hosted Identity Provider. You will be redirected to the configuration page.

    Drupal OpenAM sso configuration
  • Configure SAML IDP as given below.

    • Name: Name of the SAML IDP
    • Signing Key: Select the Signing key from the dropdown.
    • New Circle of Trust: Provide a name of the groups of IDP and SP that trust each other.
    • Attribute Mapping: Configure user profile attributes to be sent to the Service Provider application.

      Drupal OpenAM sso attribute mapping sp application
    • Click on the Configure button on the top right corner.
    • Verify the configuration from the Federation tab of OpenAM.
Drupal OpenAM sso icon-1 Configure Remote Service Provider.

  • Login to the OpenAM admin console.
  • From the REALMS, select realms, under which you want to configure your application. You will be redirected to the Realm overview page.
  • Click on Create SAMLv2 Providers.

    Drupal OpenAM sso SAMLv2 providers
  • Click on Register Remote Service Provider. You will be redirected to the configuration page.

    Drupal OpenAM sso remote service providers
  • Configure the Service Provider as given below.

    • Where does the metadata file reside: URL.
    • URL of metadata: Configure miniOrange plugin’s SAML Metadata here.
    • Circle of Trust: Add to existing.
    • Existing Circle of Trust: Select the Circle of Trust (group) in which your hosted IDP is located.
    • Attribute Mapping: Configure user profile attributes for mapping.

      Drupal OpenAM sso mapping
  • Click on the Configure button on the top right corner.
  • Verify the configuration from the Federation tab of OpenAM.
  • Provide OpenAM SAML Metadata to Service Provider application(miniOrange plugin) and you can download the OpenAM metadata using the URL given below.
    [OpenAM ServerURL]/saml2/jsp/exportmetadata.jsp
    In case if you have multiple realms and hosted identity Provider configured then use the URL given below.
    [OpenAM ServerURL]/saml2/jsp/exportmetadata.jsp?entityid=[IdPentityID]&realm=/realmname

Step 2: Configuring Drupal as Service Provider (SP)

  • In miniOrange SAML Module, go to Service Provider Setup tab. There are three ways to configure the Module:
    • Drupal OpenAM sso icon-2 By OpenAM Metadata URL :

      • Click on Upload IDP Metadata.
      • Enter Metadata URL and click on Fetch Metadata.

      Drupal OpenAM sso  icon-3 By Uploading OpenAM Metadata File:

      • Click on Upload IDP Metadata.
      • Upload metadata file and click on Upload.

      Drupal OpenAM sso icon-4 Manual Configuration :

      • Copy SAML Entity ID, SAML Single-Sign-On Endpoint URL and X.509 certificate from Federation Metadata document and paste it in IdP Entity ID or Issuer, SAML Login URL, X.509 Certificate fields respectively in the Module.
      • Identity Provider Name For Example:OpenAM
        IdP Entity ID or Issuer SAML Entity ID in the Federation Metadata document
        SAML Login URL SAML Single-Sign-On Endpoint URL in the Federation Metadata document
        X.509 Certificate x.509 Certificate in the Federation Metadata document

Business Trial For Free

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.

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