SAML Single Sign-On (SSO) into Drupal using CyberArk as IdP
Overview
The Drupal SAML integration using the miniOrange SAML SP module establishes seamless SSO between CyberArk and the Drupal site. The users will be able to log in to the Drupal site using their CyberArk credentials. This document will walk you through the steps to configure Single Sign-On - SSO between Drupal as a Service Provider (SP) and CyberArk 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 CyberArk as a SAML IdP)
Configure SAML Single Sign-On Application in CyberArk
- Login with your CyberArk Administrator credentials.
- Navigate to the Web Apps under Apps.
- Click on Add Web Apps.
- Click on Custom button, select SAML app and click on Add.
- Click on Yes to add SAML app.
- Click on Trust and Download Metadata File keep the downloaded file handy.
- Click on Choose File to upload the Metadata file downloaded from your Service Provider Metadata tab ( Drupal ) and click on Save.
- To assign user to your application , click on Permissions and click on Add.
- Search for User, Group, or Role to assign user for the application and perform SSO.
- Click on Add button.
Configure Drupal as Service Provider:
- Open your Drupal site. Go to the Service Provider Setup tab of the module.
- Click on Upload IDP Metadata Section.
- Now upload the metadata file downloaded from the CyberArk IdP.
- Click on the Test link to test the connection between Drupal and CyberArk.
- 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 CyberArk 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 (CyberArk) link.
- You will be redirected to the CyberArk login page. Enter the CyberArk credentials. After successful authentication, the user will be redirected back to the Drupal site.