Search Results :

×

Setup SSO into WordPress using Magento as OAuth Server

This guide will help you integrate Single Sign-On (SSO) into the WordPress using your Magento username and password using the miniOrange Magento as OAuth Server Extension. Magento OAuth Server extension gives you the ability to use your Magento credentials to login into WordPress. Here we will go through a step-by-step guide to configure SSO between WordPress as an OAuth Client and Magento as OAuth Server.

  • Purchase the miniOrange Magento OAuth Server 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 OAuth Server Single Sign-On extension.
  • Unzip all contents of the zip inside the MiniOrange/OAuth_Server directory.
  • {Root Directory of Magento} app code MiniOrange OAuth_Server
  • Run the following commands on command prompt to enable the extension
  • php bin/magento setup:upgrade

  • 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

  • In the miniOrange IPD 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 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

  • 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 Server and select the attribute from the dropdown menu.
  • Magento as OAuth Server - Attribute Mapping

  • Click on "+" button to add the attribute and 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 OAuth Server 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
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