Drupal SAML Single Sign-On SSO Login using Joomla as IdP
Overview
The Drupal SAML integration using the miniOrange SAML SP module establishes seamless SSO between Joomla and Drupal site. The users will be able to log in to the Drupal site using their Joomla credentials. This document will walk you through the steps to configure Single Sign-On - SSO between Drupal as a Service Provider (SP) and Joomla 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. Keep it handy. It will required to configure Drupal as Identity Provider.
Configure Joomla as a Identity Provider
- Login with your Joomla Administrator Account credentials.
- Go to System tab.
- Select Extension from the Install section.
- Click on Install from Web.
- Search for SAML IDP in search box and select miniOrange SAML 2.0 IDP for Joomla plugin.
- Click on Install button to enable the plugin into the joomla site.
- In the Components tab from the left menu sidebar and click on miniOrange Joomla IDP then select Service Provider.
- Click on the Upload SP Metadata, scrolldown and enter the previously copied metadata url from Drupal in the Enter metadata URL textfield.
- Click Fetch button.
- Now, navigate to the Identity Provider tab and copy the metadata url. Keep it handy. It will required to configure Drupal as Service Provider.
Configure Drupal as SAML Service Provider:
- Go to your Drupal site. Navigate to the Service Provider Setup tab of the module and click on the Upload IDP Metadata.
- Paste the previously copied Metadata URL from Joomla into the Add from a URL text field and click on the Fetch Metadata button.
Note: To update Identity Provider Name, follow these steps:
- Under Action, select the Edit.
- Enter Joomla 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 Joomla.
- On a Test Configuration popup sign in using Joomla credentials (if an active session is not present). After successful authentication, a list of attributes that are received from Joomla will be displayed. Click on the Done.
Congratulations! you have successfully configure Single Sign-on between Drupal and Joomla site.
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 (Joomla) link.
- You will be redirected to the Joomla login page. Enter the Joomla credentials. After successful authentication, the user will be redirected back to the Drupal site.