Drupal SAML Single Sign On using Magento as Identity Provider
Overview
The Drupal SAML integration using the miniOrange SAML SP module establishes seamless SSO between Magento and the Drupal site. The users will be able to log in to the Drupal site using their Magento credentials. This document will walk you through the steps to configure Single Sign-On - SSO between Drupal as a Service Provider (SP) and Magento 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 SP Entity ID/Issuer & SP ACS URL. (keep it handy)
Configure Magento as a Identity Provider
- In the miniOrange SAML Identity Provider extension, go to Service Provider settings tab of the extension.
- Under the Service Provider Settings tab, enter the following information:
Identity Provider fields (Magento) Drupal Fields (SP) Service Provider Name For ex., Drupal test SP Entity ID or Issuer Paste this URL from the step 1 (Drupal SAML SP Metadata) ACS URL Paste this URL from the step 1 (Drupal SAML SP Metadata)
- Once done, click on the Save button.
- In the Magento IDP extension, navigate to the Attribute Mapping tab.
- In the User Attributes section, enter the following information and click on the Save button.
- You can also add more attributes by clicking on + sign to add attributes.
Name User Meta Data username user_login displayName display_name email user_email
- Under the IDP Metadata tab, copy the metadata URL. (keep it handy)
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.
- Upload the previously copied metadata url from Magento into the Upload Metadata 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 Magento 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 Magento.
- On a Test Configuration popup sign in using Magento credentials (if an active session is not present). After successful authentication, a list of attributes that are received from Magento will be displayed. Click on the Done.
Congratulations! you have successfully configure Magento 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 (Magento) link.
- You will be redirected to the Magento login page. Enter the Magento credentials. After successful authentication, the user will be redirected back to the Drupal site.
Why choose us:
[MO_CONTACT_US]