SAML Single Sign-On (SSO) into Drupal using SecureAuth as IdP
Overview
The Drupal SAML integration using the miniOrange SAML SP module establishes seamless SSO between SecureAuth and the Drupal site. The users will be able to log in to the Drupal site using their SecureAuth credentials. This document will walk you through the steps to configure Single Sign-On - SSO between Drupal as a Service Provider (SP) and SecureAuth as an Identity Provider (IdP). The module is compatible with with Drupal 7, Drupal 8, Drupal 9, Drupal 10 and Drupal 11.
Installation Steps
- Using Composer
- Using Drush
- Manual Installation
Configuration Steps
Drupal SAML SP Metadata
- Go to Configuration → People → SAML Login Configuration in the Administration menu. (/admin/config/people/miniorange_saml/idp_setup)
- Navigate to the Service Provider Metadata and download the metadata. (This is required in configuring the SecureAuth as a SAML IdP)
Configure SAML Single Sign-On Application in SecureAuth
- Log in to your SecureAuth IDP Admin console.
- Now go to Post Authentication tab.
- In the Post Authentication section, set Authenticated User Redirect to SAML 2.0 (SP Initiated) Assertion.
- In the User ID Mapping section, make the following entries:
User ID Mapping | Set to Email 1. |
Name ID Format | Set to urn:oasis:names:tc:SAML:2.0:nameid-format-unspecified. |
Encode to Base64 | Set to False. |
- In the SAML Assertion / WS Federation section, make the following entries:
WSFed Reply To /SAML Target URL | Enter ACS (Assertion Consumer Service) URL from Service Provider Metadata tab of the module |
SAML Consumer URL | Enter SP Entity ID / Issuer from Service Provider Metadata tab of the module |
WSFed/SAML Issuer | Enter unique name that identifies the SecureAuth IDP to the application (as the SAML ID). This value is shared with the application and can be any word, phrase, or URL, but must match exactly in the SecureAuth IDP and Drupal configurations. For example, https://secureauthfqdn/realm12 |
SAML Recipient | Enter Recipient URL from Service Provider Metadata tab of the module |
Sign SAML Assertion | Set Sign SAML Assertion to True. |
Sign SAML Message | Set Sign SAML Message to False. |
- Leave the default value in the Signing Cert Serial Number field
- Set the Domain to the SecureAuth IDP appliance URL or IP Address to download the metadata file. For example, https://secureauthfqdn
- Click on Download link to download the SecureAuth IDP metadata file or note down the given information and keep it handy to configure the Service Provider.
Configure Drupal as Service Provider:
- Navigate to the Service Provider Setup tab of the Drupal site and click on Upload IDP Metadata..
- Upload downloaded Metadata file.
- Click on the Fetch Metadata button.
- Click on the Test link to test the connection between Drupal and SecureAuth.
- In the test configuration window, a success message with SAML response attributes will appear if the configurations are correct; otherwise, error messages with additional troubleshooting instructions will appear. Click on Done.
Congratulations! You have successfully configured SecureAuth as an Identity Provider and Drupal as a 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 (SecureAuth) link.
- You will be redirected to the SecureAuth login page. Enter the SecureAuth credentials. After successful authentication, the user will be redirected back to the Drupal site.
Why choose us:
[MO_CONTACT_US]