Magento SAML Single Sign On (SSO) login using Drupal as IDP

Magento SAML Single Sign On (SSO) login using Drupal as IDP


Drupal Magento SSO Integration will allow you to configure Single Sign On ( SSO ) login between your Drupal site and Magento. Magento SAML SSO integrate with your Drupal site will help your users to login into Magento 2 using their Drupal credentials.
We provide Drupal SAML Identity Provider - SAML IDP Single Sign On (SSO) module which is compatible with Drupal 7, Drupal 8 (D7,D8) and Drupal 9 (D9). Here we will go through a step-by-step guide to configure SAML IDP SSO login between Drupal site and Magento considering SP and Drupal as IDP.

If you have any queries or if you need any sort of assistance in configuring the module, you can contact us at drupalsupport@xecurify.com. If you want, we can also schedule an online meeting to help you configure the Drupal SAML IDP 2.0 Single Sign On (SSO) - SAML Identity Provider module.

Features and Pricing

Know more about Drupal SAML Single Sign On - Identity Provider (IDP) module from here.

Pre-requisites: Download

You can download the Drupal SAML Single Sign On - Identity Provider (IDP) module from here.

Integrating Magento 2 SAML Single Sign On (SSO) login using Drupal as Identity Provider (IDP)

1. Integrating Drupal as Identity Provider

    1.1. Using Composer:

    • For Window:
      composer require drupal/miniorange_saml_idp
    • For Linux:
      composer require 'drupal/miniorange_saml_idp'
    • Go to Extend menu on your Drupal admin console and enable the module by checking the checkbox and click on Install button.
    • Configure the module at
      {BaseURL}/admin/config/people/miniorange_saml_idp/idp_setup

    1.2. Using Drush:

    • Download the module:
      drush dl miniorange_saml_idp
    • Install the module:
      drush en miniorange_saml_idp
    • Clear the cache:
       drush cr
    • Configure the module at
      {BaseURL}/admin/config/people/miniorange_saml_idp/idp_setup

    1.3. Manual installation:

    • Navigate to Extend menu on your Drupal admin console and click on Install new module.
    • Install the Drupal SAML 2.0 Single Sign On – Identity 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/idp_setup
    • In the IDP Metadata, Copy the IDP Entity ID/Issuer and SAML Login URL and Keep it handy.
    • drupal saml idp - idp metadata tab
    • In the Service Provoder Setup tab, and enter the name of Service Provider as Magento 2.
    • drupal saml idp enter service provider name
    • Navigate to the Service Provider Setup tab of the miniOrange SAML Identity Provider module on your Drupal site. There are two way to configure your Identity Provider ( Drupal as SAML IDP ):
    • drupal saml idp service provider upload metadata
    A. By Uploading IDP metadata:
    • Click on UPLOAD SP METADATA link.
    • You can either Upload Metadata File and click on Upload button or use a Upload Metadata URL and click on Fetch Metadata.
    • drupal saml idp service provider setup
    B. Manual Configuration:
    • Navigate to Identity Provider Setup tab of the miniOrange Drupal IDP module.
    • Provide the required settings (i.e. Service Provider Name, SP Entity ID or Issuer, ACS (Assertion Consumer Service) URL, X.509 Certificate (Optional)) as provided by your Service Provider Magento 2.
    • Service Provider Name Enter your Service Provider Name as per your choice like magento 2.
      SP Entity ID or Issuer Copy the SP Entity ID/Issuer from the Service Provider Metadata tab in miniorange SAML Service Provider module from your Drupal site.
      ACS URL Copy the SP ACS URL from the Service Provider Metadata tab in miniorange SAML Service Provider module from your Drupal site.
      NameID Format urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress
      Assertion Signed Checked
    • Click on the Save Configuration button to save your configuration. Then click on Test Configuration button to test your configuration.

    • drupal saml idp service provider configuration

    2. Integrating Magento 2 as Service Provider

    2.1 Download And Installation

    • Download the miniOrange SAML SP Single Sign-On (SSO) plugin from Magento Marketplace.
    • Go to magento root directory.
    • Create the new directories MiniOrange/SP inside the app/code directory.
    • Unzip all contents of the zip inside the MiniOrange/SP directory.
    • Run the following commands on command prompt to enable the plugin-
    •       1. php bin/magento setup:upgrade
            2. php bin/magento setup:di:compile

    2.2 Integrate Magento 2 as SP

    • In miniOrange SAML extension, Navigate to Service Provider Metadata tab. Here you will find all the required settings which you will require to configure your Identity Provider (Drupal).
    • magento SAML SSO service provider metadata tab setup magento SAML
    • Now, go to Service Provider Setup tab of the plugin.
    • Provide the required settings (i.e. Identity Provider Name, IdP Entity ID or Issuer, SAML Login URL, X.509 Certificate) as provided by your Identity Provider (Drupal) and click on the Save button.
    • By clicking on Test Configuration button you can check whether your IdP connection is successful and what attributes you are getting from IdP.

    • magento sso service provider setup magento SAML magento SAML SSO user data from IdP magento 2 SSO
    • In free plugin you can add a login button to enable SP-initiated SSO on your site. Other options like auto-redirect user, add a shortcode, complete website protection etc. is provided in premium versions of the plugin.
    • sign in settings magento 2.0 SSO login
    • Attributes are user details that are stored in your Identity Provider.
    • Attribute Mapping helps you to get user attributes from your Identity Provider (IdP) and map them to Magento user attributes like firstname, lastname etc.
    • While auto registering the users in your Magento site these attributes will automatically get mapped to your Magento user details.
    • Only NameID can be mapped to Magento's Email and Username characteristics with the free plugin. Multiple user attributes from the IdP, on the other hand, can be mapped to Magento attributes in the premium version of the plugin. You can map custom attributes that you've added to your IdP in addition to the default attributes.
    • When a user performs SSO, the NameID value sent by the IdP will get mapped to the email and the username of the Magento user.

    • magento sso saml single sign-On attribute mapping custom attribute mapping magento 2 sso
    • In the free plugin, you can choose a default role which will be assigned to all the non-admin users when they perform SSO. Go to Attribute/Role mapping tab and navigate to Role Mapping section.
    • Select the Default Role and click on the Save button.
    • magento saml sso role mapping magento sso

    24*7 Active Support:

    If you face any issues or if you have any questions, please feel free to reach out to us at drupalsupport@xecurify.com. In case you want some additional features to be included in the module, please get in touch with us, and we can get that custom-made for you. Also, If you want, we can also schedule an online meeting to help you configure the Drupal SAML IDP - SAML 2.0 Identity Provider or call us at +1 978 658 9387.

    Free Trial:

    If you would like to test out the module to ensure your business use case is fulfilled, we do provide a 7-day trial. Please drop us an email at drupalsupport@xecurify.com requesting a trial. You can create an account with us using this link.

    Additional Resources

    Our Other modules:

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