Search Results :

×

Login into Drupal Using Magento Credentials | Magento as IDP Single Sign-On (SSO) in Drupal

Login into Drupal using Magento user credentials. This guide will help you integrate Magento as an Identity Provider (IdP) and Drupal as a Service Provider (SP) using the miniOrange Magento IDP (Identity Provider) Extension. Magento as IDP extenstion gives you the ability to use your Magento credentials to login into Drupal (SP). Here we will go through a step-by-step guide to configure SSO between Drupal as SP (Service Provider) and Magento as IDP (Identity Provider).

  • Purchase the miniOrange Magento IDP Single Sign-On extension from Magento Marketplace.
  • Go to My profile -> My Purchases
  • Please ensure you are using correct access keys (My Profile - Access Keys)
  • Paste the access keys in your auth.json file inside your project
  • Use the below command to add the extension to your project.
    "composer require {module_name}:{version}"
  • You can see the module name and list of versions in the selector below the extension module name.
  • Run the following commands on command prompt to enable the extension.
  • php bin/magento setup:upgrade
  • Download the miniOrange Magento IDP Single Sign-On extension.
  • Unzip all contents of the zip inside the MiniOrange/IDPSaml directory.
  • {Root Directory of Magento} app code MiniOrange IDPSaml
  • Run the following commands on command prompt to enable the extension
  • php bin/magento setup:upgrade

  • Download the miniOrange Drupal OAuth Client
  • composer require 'drupal/miniorange_oauth_client'
  • Navigate to Extend menu on your Drupal admin console and search for miniOrange OAuth Client Configuration using the search box.
  • Enable the module by checking the checkbox and click on the Install button.
  • You can configure the module at:
  • {BaseURL}/admin/config/people/miniorange_oauth_client/config_clc
  • After installing the module, go to the Configuration tab and click on the miniOrange OAuth Client Configuration -> Configure OAuth tab and select the application from the Select Application dropdown list.
  • Copy the Callback/Redirect URL and keep it handy. This will be required while configuring the OAuth Provider.
  • Enter the name in the App Name text field.
  • Drupal as OAuth Client - Under Configure OAuth -> Select Application - Copy Callback/Redirect URL and provide the Display name
  • In the miniOrange IDP extension, go to Applications tab and Click on Add Application button.
  • Magento as IDP Add Application

  • Select OAuth/OpenID from the applications menu.
  • Magento as IDP OAuth

  • Search for Drupal in the choose application searchbox and select the application.
  • Magento as IDP Choose App

  • Enter the OAuth Client Name as Drupal
  • Magento as IDP client name

  • Paste the Redirect URL copied earlier in the Redirect URL field.
  • Magento as IDP redirect URL

  • Enter openid email profile in the scope field and save the changes.
  • Magento as IDP scope

  • Navigate to the Applications tab and click on Edit settings for your application
  •  Magento as IDP edit app

  • You would see that the Client ID and Client Secret are automatically generated. Copy them and keep them handy.
  • Magento as IDPclient id secret

  • Paste the Client ID and Client Secret in the Drupal.
  • Navigate back to the Magento IDP extension and Click on Click Here link to get the Magento OAuth Endpoints
  • Magento as IDP go to endpoints

  • Here you would receive all the Endpoints. Copy them as requried.
  • Magento as IDP copy endpoints

  • Paste the Endpoints in the endpoints field in your Drupal and click on Finish to save the configuration.
  • In the miniOrange Magento IDP extension, navigate to the Applications tab and click on Edit settings for your application.
  • Magento as IDP - Edit app

  • Add the attribute name you want to send to your OAuth Server and select the attribute from the dropdown menu.
  • Magento as OAuth Server - Attribute Mapping

  • Click on Add Attribute and add the attribute name you want to send to your OAuth Client and select the attribute from the dropdown menu and click on Save Button to save changes.
  • Magento as OAuth Server - add and save attribute mapping

    You have successfully configured the SSO between Drupal as OAuth Client and Magento as OAuth Server.




    Please reach out to us at magentosupport@xecurify.com, and our team will assist you with setting up the Magento IDP Extension. Our team will help you to select the best suitable solution/plan as per your requirement.

ADFS_sso ×
Hello there!

Need Help? We are right here!

support