Search Results :

×

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

Login into WordPress using Magento user credentials. This guide will help you integrate Magento as an Identity Provider (IdP) and WordPress 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 WordPress (SP). Here we will go through a step-by-step guide to configure SSO between WordPress 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

Step 1. Prerequisites

  • To get the SP metadata details, log in to your WordPress Admin Dashboard.
  • Download the miniOrange WordPress SAML SSO plugin to configure WordPress Single Sign-On (SSO) with Magento.
  • Go to Service Provider Metadata tab.
  • Copy the Entity ID and ACS URL. You will require this while configuring the SSO in miniOrange Magento SSO extension.
  • Magento SAML IDP  | Login with Magento Users - Magento WordPress SSO

Step 2. Configuring Magento as SAML Identity Provider (IdP)

  • In the miniOrange IDP (Identity Provider) extension, go to Applications tab.
  • Magento SAML IDP  | Login with Magento Users - Magento WordPress SSO
  • Search for WordPress in the choose application searchbox and select the application.
  • Magento SAML IDP  | Login with Magento Users - Magento WordPress SSO
  • Enter the Application name under SP Name.
  • Magento SAML IDP  | Login with Magento Users - Magento WordPress SSO
  • Now, enter the SP Entity ID or Issuer and ACS URL copied earlier and save the details.
  • Magento SAML IDP  | Login with Magento Users - Magento WordPress SSO

Step 3. Configure WordPress as Service Provider

  • Navigate to the Applications tab and click on Metadata settings for the WordPress application
  • Magento SAML IDP  | Login with Magento Users - Magento WordPress SSO
  • Here, you can find the Identity Provider Metadata URL /XML Metadata or endpoints like IDP Entity ID, SAML Login URL, SAML Logout URL (Premium Feature), Certificate. You can also download the IdP Metadata XML file which will be used for WordPress configuration.
  • Magento SAML IDP  | Login with Magento Users - Magento WordPress SSO
  • You will now have 3 options to provide the IDP Metadata to WordPress by downloading the XML Metadata, Metadata URL or providing the detials manually.
  • Option 1 - Download the XML Metadata.
  • Download the XML Metadata by clicking it on Download XML Metadata button.
  • Magento SAML IDP  | Login with Magento Users - Magento WordPress SSO
  • Navigate to your WordPress and upload the XML metadata file downloaded and click on the Fetch Metadata button.
  • Magento SAML IDP  | Login with Magento Users - Magento WordPress SSO
  • Option 2 - Metadata URL.
  • You can also copy the Metadata URL and provide it to your service provider to fetch the metadata.
  • Magento SAML IDP  | Login with Magento Users - WordPress SSO into Magento
  • Option 3 - Provide the details manually to the WordPress.
  • Copy the metadata details according to the table below.
  • Magento SAML IDP  | Login with Magento Users - Magento WordPress SSO
    IDP-EntityID / Issuer IDP-EntityID / Issuer
    Single Sign On URL SAML Login URL / Passive Login URL
    SAML X509 Certificate Certificate
  • Navigate to your WordPress and paste the metadata details.

Step 4. Attribute Mapping *(This is a Premium Feature)

  • In the miniOrange Magento IDP extension, navigate to the Applications tab and click on Edit settings for the WordPress application.
  • Magento 2 SAML IDP  | Login with Magento Users - Magento WordPress SSO
  • Click on Add Attribute button.
  • Magento 2 SAML IDP  | Login with Magento Users - Magento WordPress SSO
  • Add the attribute name you want to send to your service provider and select the attribute from the dropdown menu and click on Save Button to save changes.
  • Magento 2 SAML IDP | Login with Magento Users - Magento WordPress SSO

You have successfully configured the SAML SSO between WordPress as SAML SP and Magento as SAML IDP.


Step 1. Prerequisites

  • To get Callback URL, log in to your WordPress Admin Dashboard.
  • Download the miniOrange WordPress OAuth Client plugin to configure WordPress Single Sign-On (SSO) with Magento.

Step 2. Configuring WordPress as OAuth Client:

  • Go to Configure OAuth tab and click Add New Application to add a new client application into your website.
  • Magento as SAML IDP Add Application

  • Choose your Application from the list of OAuth / OpenID Connect Providers, Here Custom OAuth 2.0 App.
  • Magento as SAML IDP - Search Tableau

  • Copy the Callback URL to be used in your OAuth provider Configuration and Click on Next.
  • Magento as SAML IDP - Application Name


Step 3. Configure Magento as OAuth Server

  • In the miniOrange IDP extension, go to Applications tab and Click on Add Application button.
  • Magento as OAuth Server Add Application

  • Select OAuth/OpenID from the applications menu.
  • Magento as OAuth Server Add Application

  • Search for WordPress in the choose application searchbox and select the application.
  • Magento as OAuth Server Add Application

  • Enter the OAuth Client Name as WordPress
  • Magento as OAuth Server Add Application

  • Paste the Redirect URL/Callback URL copied earlier in the Redirect URL field.
  • Magento as OAuth Server Add Application

  • Enter openid email profile in the scope field and save the changes.
  • Magento as OAuth Server Add Application

  • Navigate to the Applications tab and click on Edit settings for your application
  • Magento as OAuth Server Add Application

  • You would see that the Client ID and Client Secret are automatically generated. Copy them and keep them handy.
  • Magento as OAuth Server Add Application

  • Paste the Client ID and Client Secret in the WordPress application.
  • Magento as OAuth Server Add Application

  • Navigate back to the Magento IDP extension and Click on Click Here link to get the Magento OAuth Endpoints
  • Magento as OAuth Server Add Application

  • Here you would receive all the Endpoints. Copy them as requried.
  • Magento as OAuth Server Add Application

  • Paste the Endpoints in the endpoints field in your WordPress application and click on Finish to save the configuration.
  • Magento as OAuth Server Add Application


Step 4. Attribute Mapping (This is a Premium Feature)

  • In the miniOrange Magento IDP extension, navigate to the Applications tab and click on Edit settings for your application.
  • Magento as OAuth Server - Edit app

  • Add the attribute name you want to send to your OAuth Client 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 SAML SSO between WordPress 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 SSO 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