Drupal SAML Single Sign On using Google Apps as Identity Provider
The Drupal SAML integration using the miniOrange SAML SP module establishes seamless SSO between Google Apps and the Drupal
site. The users will be able to log in to the Drupal site using their Google Apps credentials. This document will
through the steps to configure Single Sign-On - SSO between Drupal as a Service Provider (SP) and Google Apps as an
Identity Provider (IdP). The module is compatible with Drupal 7, Drupal 8, Drupal 9, and Drupal 10.
Navigate to the Apps from the left panel and click on Web and mobile apps.
Click on the Add app, and select the Add custom SAML app from the dropdown.
Enter the App name and Description (optional). Click on the
Click on the DOWNLOAD METADATA button. Keep the downloaded file handy.
(This is needed to configure Drupal as SAML SP.)
Paste the copied SP Entity ID/Issuer and SP ACS URL (from Drupal site) into
the Entity ID and ACS URL text field, respectively. Click on
In the Attribute mapping panel, select a user field from the dropdown under the Google
(First name) and the corresponding attribute key to be sent in the response (field_fname). You can
attributes using ADD.
Add Users to Google
(G Suit) Application:
In the Google Admin console, navigate to Menu → Apps → Web and mobile apps.
Select the application that you have created on Google Apps. (In this case, Drupal_SAML).
Click on the User access
Enable the checkbox ON for everyone and click on the SAVE button.
Configure Drupal as SAML Service Provider:
Navigate to the Service Provider Setup tab of the Drupal site and click on Upload IDP
Choose the metadata file that you downloaded from Google Apps and click on the Upload File button.
Note: To update Identity Provider Name, follow these steps:
Under Action, select the Edit.
Enter Google Apps 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 Google Apps.
On a Test Configuration popup sign in using Google App credentials (if an active session is not present). After
successful authentication, a list of attributes that are received from Google App will be displayed. Click on the
Congratulations! you have successfully configure Google App as SAML Identity Provider (IdP) and Drupal as SAML Service
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 (Google App) link.
You will be redirected to the Google App login page. Enter the Google credentials. After successful authentication,
the user will be redirected back to the Drupal site.
Explore the advanced features offered by the module with full-featured trial. You can initiate the trial request
Request 7-day trial button of the module or reach out to
us at firstname.lastname@example.org for
one-on-one assistance from Drupal expert.
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
If you dont hear from us within 24 hours, please feel free to send a follow up email to email@example.com
This privacy statement applies to miniorange websites describing how we handle the personal
When you visit any website, it may store or retrieve the information on your browser, mostly in the
form of the cookies. This information might be about you, your preferences or your device and is
mostly used to make the site work as you expect it to. The information does not directly identify
you, but it can give you a more personalized web experience.
Click on the category headings to check how we handle the cookies.
Strictly Necessary Cookies
Necessary cookies help make a website fully usable by enabling the basic functions like site
navigation, logging in, filling forms, etc. The cookies used for the functionality do not store any
personal identifiable information. However, some parts of the website will not work properly without
These cookies only collect aggregated information about the traffic of the website including -
visitors, sources, page clicks and views, etc. This allows us to know more about our most and least
popular pages along with users' interaction on the actionable elements and hence letting us improve
the performance of our website as well as our services.