WordPress Single Sign-On (SSO) using Shopify Store as Identity Provider

WordPress Single Sign-On (SSO) using Shopify Store as Identity Provider


Single Sign On into WordPress using Shopify store credentials miniOrange provides a ready to use solution for your WordPress web services. This solution ensures that you are ready to roll out secure access to WordPress using your Shopify Store credentials within minutes.

Pre-requisite : Store as IDP- SSO Login Application

To configure SSO into WordPress with Shopify as IDP, you will need to install the miniOrange Store as IDP- SSO Login Application on your store

miniOrange Provides Secure Single Sign-On (SSO) access to your application using Shopify Store as IDP.


Step by Step guide for Single Sign-On in WordPress Using Shopify Store as an IDP

1. Step to get the Redirect URI for Shopify store

  • Log into your WordPress instance as an admin
  • Go to the WordPress Dashboard -> Plugins and click on Add New.
  • Search for a WordPress OAuth Client Single Sign-On (SSO) plugin and click on Install Now.
  • Once installed click on Activate.
  • Now, go to the miniOrange OAuth Client Single Sign-On (sso) plugin -> Configure OAuth tab -> Add Application.
  • You can find the Callback/Redirect URL under your OAuth application(Refer the below image). Copy the Callback/Redirect URL. Keep this URL handy, as you will need it later.
  • Shopify Single Sign-On (SSO) in wordpress oauth provider-add app

2. Configure WordPress in Shopify Store

  • Go to your shopify store, click on Apps tab and select Store as IDP-SSO login application.
  • Shopify Single Sign-On (SSO) in wordpress oauth provider-select-app
  • Click on the Setup Application button in the left navigation bar.
  • Shopify Single Sign-On (SSO) in wordpress oauth provider-setup-app
  • From the left navigation bar select Apps and click on Add Application button.
  • Shopify Single Sign-On (SSO) in wordpress oauth provider-click-add-app
  • Go to OAuth/OIDC tab and select the IDP name as a WordPress from the list.
  • Shopify Single Sign-On (SSO) in wordpress oauth provider-idp-name
  • In the Add Application Section enter the values by refering the below table.
  • Client Name Choose an appropriate name according to your choice.
    Redirect URI/ OAuth Callback URI From Step 1.
    Description Add appropriate description according to your choice.
    Group Name DEFAULT
    Policy Name WordPress
    Login Method Password
    Shopify Single Sign-On (SSO) in wordpress oauth provider-endpoints Shopify Single Sign-On (SSO) in wordpress oauth provider-save
  • Click on Save to save the configurations.
  • After saving the application,click on Select and then Edit option of the application you just configured.
  • Shopify Single Sign-On (SSO) in wordpress oauth provider edit option
  • You will get the Client Id, Client Secret, Endpoints and Scopes. Keep these values handy as you will need them later.
  • Shopify Single Sign-On (SSO) in wordpress oauth provider-keep endpoints handy
  • Now, from the left navigation bar go to the Apps and click on Go back to store button from the top right side.
  • Shopify Single Sign-On (SSO) in wordpress oauth provider-go back store
  • Enter primary domain name of your Shopify Store (remove "https:" and slashes) and click on Save button.
  • Shopify Single Sign-On (SSO) in wordpress oauth provider-save

    You have successfully configured WordPress application in Shopify Store.

3. Setup SSO in WordPress Site.

  • In the miniOrange OAuth Client Single Sign-On (SSO) plugin and go to Configure OAuth tab. Click Add New Application to add a new client application into your website.
  • wordpress Single Sign-On (SSO) OAuth - Add new application
  • Choose your Application from the list of OAuth / OpenID Connect Providers, Here Custom OAuth 2.0.
  • OAuth server Single Sign-On(SSO)WordPress- WordPress SSO install oauth2
  • You can see the Callback/Redirect URL here, click on Next button.
  • OAuth server Single Sign-On(SSO)WordPress-  WordPress SSO install oauth2
  • Configure App name & Endpoints found from the Shopify Store.Or you can refer the below table for configuring the Endpoints.
  • Authorization Endpoint https://store.xecurify.com/moas/broker/login/oauth/
    Token Endpoint https://store.xecurify.com/moas/rest/oauth/token
    Get User Info Endpoint https://store.xecurify.com/moas/rest/oauth/getuserinfo
    OAuth server Single Sign-On(SSO)WordPress-  WordPress SSO install oauth2
  • Enter the client credentials like Client ID & Client Secret copied from step 2 and enter the scope value as email profile openid . Click Next.
  • OAuth server Single Sign-On(SSO)WordPress-  WordPress scope
  • Verify the configuration details and click on Finish to save the configurations.you will get the list of Attribute Names and Attribute Values that are sent by your Shopify Store.
  • OAuth server Single Sign-On(SSO)WordPress-  WordPress SSO attribute-name OAuth server Single Sign-On(SSO)WordPress-  WordPress SSO attribute-value

    You have successfully configured WordPress side configuration.

4. Test WordPress Single Sign-On Configuration


  • Go to your WordPress Login page. (Eg. https://< your-wordpress-domain >/wp-login.php)
  • You will get a login window of WordPress with a button name configured by you.
  • Click on the “Login with Shopify” button and you will be redirected to the login page of the Shopify store.
  • OAuth server Single Sign-On(SSO)WordPress-  login-button
  • Enter your Shopify Store login credential and click on Login.
  • Shopify Single Sign-On (SSO) in wordpress oauth provider click login
  • You will be successfully logged in to your WordPress site.
  • OAuth server Single Sign-On(SSO)WordPress-  logged in
  • Shopify Secure Admin Login

You have successfully configured Shopify as Identity Provider for your WordPress.


Let's begin and Setup Single Sign-On (SSO) with popular Service Providers

Hello there!

Contact us for exciting offers

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