Search Results :

×

Drupal SAML Single Sign On using Magento as Identity Provider

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.

  • Download the module:
    Composer require 'drupal/miniorange_saml'
  • Navigate to Extend menu on your Drupal admin console and search for miniOrange SAML Service Provider using the search box.
  • Enable the module by checking the checkbox and click on install button.
  • Configure the module at
    {BaseURL}/admin/config/people/miniorange_saml/idp_setup
  • Install the module:
    drush en drupal/miniorange_saml
  • Clear the cache:
     drush cr
  • Configure the module at
    {BaseURL}/admin/config/people/miniorange_saml/idp_setup
  • Navigate to Extend menu on your Drupal admin console and click on Install new module button.
  • Install the Drupal SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider module either by downloading the zip or from the URL of the package (tar/zip).
  • Click on Enable newly added modules.
  • Enable this module by checking the checkbox and click on install button.
  • Configure the module at
    {BaseURL}/admin/config/people/miniorange_saml/idp_setup
  • Go to ConfigurationPeopleSAML Login Configuration in the Administration menu. (/admin/config/people/miniorange_saml/idp_setup)
Configuration-Drupal-Select-miniOrange-SAML-Login-Configuration

  • Under the Service Provider Metadata tab, copy the SP Entity ID/Issuer & SP ACS URL. (keep it handy)
Drupal SAML Single Sign-On - Copy XML Metadata to configure Magento as IdP

  • 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.
Drupal Magento SSO Upload Metadata

  • 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
Drupal SAML SSO Magento SAML IDP Attribute mapping

  • Under the IDP Metadata tab, copy the metadata URL. (keep it handy)
Drupal SSO copy magento metadata url

  • Go to your Drupal site. Navigate to the Service Provider Setup tab of the module and click on the Upload IDP Metadata.
Drupal-Keycloak-SAML-SP-Click-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.
Drupal-SAML-SP-Upload-Metadata-URL

Note and Contact Us - SSO between two WordPress sites

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.
Drupal SAML Service Provider - Check connection between Drupal and Simple-SAML

  • 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.
Drupal SAML Service Provider - Test configuartion

Congratulations! you have successfully configure Magento as SAML Identity Provider (IdP) and Drupal as SAML Service Provider.

  • 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.

[MO_CONTACT_US]
ADFS_sso ×
Hello there!

Need Help? We are right here!

support
Contact miniOrange Support
success

Thanks for your inquiry.

If you dont hear from us within 24 hours, please feel free to send a follow up email to info@xecurify.com