Guide for Drupal Single Sign On (SSO) using Google Apps as Identity Provider (IdP)

Google apps Single Sign On (SSO) for Drupal miniOrange provides a ready to use solution for Drupal. This solution ensures that you are ready to roll out secure access to your Drupal site using Google Apps within minutes.

Step 1: Configuring Google Apps as Identity Provider (IdP)

  • Go to and login to your Google Apps Administrator account.
  • On the Admin Home, select More Controls Apps.
  • Google-apps_sso_Google-appsimage1
  • In the App Settings, select SAML apps.
  • Click on the "+" button at the bottom right corner to create a new SAML app.
  • Now select SETUP MY OWN CUSTOM APP from the popup.
  • Google-apps_sso_Google-appsimage2
  • On the next screen, note down the SSO URL, Entity ID URLs and download the certificate. These will be required while configuring the Module.
  • Once you have noted the URLs and downloaded the certificate, click on Next.
  • Enter the Application Name and Description. Click on Next.
  • Configure the following things on the next screen:
    ACS URL ACS (Assertion Consumer Service) URL from the Module under Service Provider Metadata Tab.
    Entity ID SP-EntityID / Issuer from the Module under Service Provider Metadata Tab.
    Signed Response Checked
    Name ID Select Basic Information from the first dropdown. Then Primary Email from the second dropdown.
  • Google-apps_sso_Google-appsimage3
  • Click on Next. Then click on Finish.
  • Now go to SAML Apps again. Click on the menu link corresponding to your app (See the screenshot). Then select ON for everyone.
  • Google-apps_sso_Google-appsimage4
  • From the popup, Click on TURN ON FOR EVERYONE.

Step 2: Configuring Drupal as Service Provider (SP)

  • In miniOrange SAML Module, go to Service Provider Setup Tab. Enter the following values:
    Identity Provider Name: Enter your IdP name. For example : GoogleApps
    SAML Login URL: The SSO URL that you noted while configuring the Drupal site in Google Apps.
    IdP Entity ID or Issuer: The Entity ID that you noted while configuring the Drupal site in Google Apps.
    X.509 Certificate: Open the downloaded certificate in the Notepad. Copy/paste the entire content of the file here.

Step 3: Attribute Mapping. (It is Optional to fill this.) This is Premium feature.

  • Attributes are user details that are stored in your Identity Provider(IdP).
  • Attribute Mapping helps you to get user attributes from your Identity Provider(IdP) and map them to Drupal user attributes like firstname, lastname etc.
  • While auto registering the users in your Drupal site these attributes will automatically get mapped to your Drupal user details.
  • In miniOrange SAML Module, go to Mapping tab. Enter the following values:
    Username: Name of the username attribute from IdP (Keep NameID by default)
    Email: Name of the email attribute from IdP (Keep NameID by default)
    Group/Role Key: Name of the Role attribute from Identity Provider (IdP)
  • drupal saml sp attribute mapping
  • You can check the Test Configuration Results under Service Provider Setup tab to get a better idea of which values to map here.

Step 4: Role Mapping (It is Optional to fill this). This is Premium feature.

  • Drupal uses a concept of Roles, designed to give the site owner the ability to control what users can and cannot do within the site.
  • Role mapping helps you to assign specific roles to users of a certain group in your Identity Provider (IdP).
  • While auto registering, the users are assigned roles based on the group they are mapped to.
  • Under the Role Mapping section, configure which GROUP value coming in the SAML response needs to be mapped to which role in Drupal. The Group value coming in the SAML response will be mapped to the Role assigned here and the user will be assigned that role in Drupal.
  • drupal saml sp role mapping

Step 5: Sign In Setting. This is Premium feature.

  • Go to SIGNIN Settings tab. There are multiple features availabe in this tab like Protect your whole site, Auto redirect the user to Identity Provider,auto-create user and Backdoor Login. To use these features, click on the respective checkboxes.
  • drupal saml sp sign in settings

    For further details refer :

Business Trial For Free

If you don't find what you are looking for, please contact us at or call us at +1 978 658 9387.