SAML Single Sign-On (SSO) into Drupal using PingFederate as IdP
Overview
The Drupal SAML integration using the miniOrange SAML SP module establishes seamless SSO between PingFederate and the Drupal site. The users will be able to log in to the Drupal site using their PingFederate credentials. This document will walk you through the steps to configure Single Sign-On - SSO between Drupal as a Service Provider (SP) and PingFederate as an Identity Provider (IdP). The module is compatible 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)
- Under the Service Provider Metadata tab, copy the metadata URL by clicking the Copy button. (This is required to configure IdP.)
Configure PingFederate as IdP:
- Login to your PingFederate User Admin dashboard.
- Click on the Identity Provider in the left navigation menu.
- Under SP CONNECTION, click on Create New button.
- Select the Browser SSO Profiles connection template on the Connection Type tab and click Next.
- Select Browser SSO on the Connection Options tab and click Next.
- Select File as the method for importing metadata and click Choose file to choose the miniOrange SSO plugin’s metadata on the Import Metadata tab. Click Next.
- Review the information on the Metadata Summary tab and click Next.
- In the General Info tab ensure that the Service Provider’s Entity ID, Connection Name, and Base URL fields pre-populate based on the metadata. Click Next.
- Navigate to the Browser SSO tab and click on the Configure Browser SSO. You will be redirected to Browser SSO Setup wizard.
- Select the IdP-Initiated SSO and SP-Initiated SSO options on the SAML Profiles tab and click Next.
- Enter your desired assertion validity time from on the Assertion Lifetime tab and click Next. By default, it is configured 5 minutes for both.
- Navigate to the Assertion Creation and click on the Configure Assertion Creation. You will be redirected to the assertion creation setup wizard.
- In the Identity Mapping tab select STANDARD and click Next.
- Select a Subject Name Format for the SAML_SUBJECT on the Attribute Contract tab and click Next.
- Click Map New Adapter Instance on the Authentication Source Mapping.
- Select an Adapter Instance and click Next. The adapter must include the user’s email address.
- Select the Use only the adapter contract values in the SAML assertion option on the Mapping Method tab and click Next.
- Select your adapter instance as the Source and the email as the Value on the Attribute Contract Fulfilment tab and click Next.
- (Optional) Select any authorization conditions you would like on the Issuance Criteria tab and click Next.
- Click Done on the Summary.
- Click Next on the Authentication Source Mapping tab.
- Click Done on the Summary tab.
- Click Next on the Assertion Creation
- Navigate to the Protocol Settings tab of the Browser SSO wizard and click on the Configure Protocol settings.
- Select POST on the Allowable SAML Bindings tab and click Next.
- Select your desired signature policies for assertions on the Signature Policy tab and click Next.
- Select your desired encryption policy for assertions on the Encryption Policy tab and click Next.
- Done on the Protocol Settings Summary tab.
- Click Done on the Browser SSO Summary.
- Navigate to the Credentials and click on the Configure Credentials. You will be redirected to the Credentials setup wizard.
- Select the Signing Certificate to use with the Single Sign-On service and select Include the certificate in the signature element in the Digital Signature Settings tab. Click Done.
- Click Done on the Summary.
- Click Next on the Credentials.
- Select Active for the Connection Status on the Activation & Summary tab and click Save.
- Now, navigate to the Ping Federate User Admin dashboardè Identity Provide.
- Click Manage All under SP Connections.
- Click Export Metadata for the desired service provider connection.
- Click Export on the Export & Summary tab and click Done.
Configure Drupal as Service Provider:
- Navigate to the Service Provider Setup tab of the Drupal site and click on Upload IDP Metadata.
- Paste the previously copied Metadata Url (from PingFederate) into the Upload Metadata URL text field.
- Click on the Fetch Metadata button.
Note: To update Identity Provider Name, follow these steps:
- Under Action, select the Edit.
- Enter PingFederate 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 PingFederate.
- On a Test Configuration popup, you will be prompted to sign in to PingFederate if you don't have an active session in the same browser. After successfully logging in to PingFederate, you will be provided with a list of attributes received from PingFederate.
Congratulations! you have successfully configure PingFederate as SAML Identity Provider (IdP) and Drupal as SAML 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 (PingFederate) link.
- You will be redirected to the Microsoft Entra ID login page. Enter the PingFederate credentials. After successful authentication, the user will be redirected back to the Drupal site.
Why choose us:
[MO_CONTACT_US]