Setup SSO into WordPress using Magento as OAuth Server
Overview
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.
Installation Steps
- Using Composer
- Manual Installation
Configuration Steps
Step 1. Configuring WordPress as OAuth Client:
- Go to Configure OAuth tab and click Add New Application to add a new client application into your website.
- Choose your Application from the list of OAuth / OpenID Connect Providers, Here Custom OAuth 2.0 App.
- Copy the Callback URL to be used in your OAuth provider Configuration and Click on Next.
Step 2. Configure Magento as OAuth Server:
- In the miniOrange IPD extension, go to Applications tab and Click on Add Application button.
- Select OAuth/OpenID from the applications menu.
- Search for WordPress in the choose application searchbox and select the application.
- Enter the OAuth Client Name as WordPress
- Paste the Redirect URL copied earlier in the Redirect URL field.
- Enter openid email profile in the scope field and save the changes.
- Navigate to the Applications tab and click on Edit settings for your application
- You would see that the Client ID and Client Secret are automatically generated. Copy them and keep them handy.
- Paste the Client ID and Client Secret in the WordPress application.
- Navigate back to the Magento IDP extension and Click on Click Here link to get the Magento OAuth Endpoints
- Here you would receive all the Endpoints. Copy them as requried.
- Paste the Endpoints in the endpoints field in your WordPress application and click on Finish to save the configuration.
Step 3. 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.
- Add the attribute name you want to send to your OAuth Server and select the attribute from the dropdown menu.
- Click on "+" button to add the attribute and save changes.
You have successfully configured the SAML SSO between WordPress as OAuth Client and Magento as OAuth Server.
Related Articles
Get in Touch
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.