Search Results :

×

Setup Single Sign-On (SSO) Between Two Shopify Stores


You can enable Single Sign-On (SSO) between two Shopify stores by using the Shopify SSO and Shopify Store as IDP applications, which allows users to log in to one Shopify store using the credentials from the other Shopify store. One Shopify Store will act as an IDP (Identity Provider), storing all of your user's credentials, and these credentials will be used to log in to the other Shopify Store, which will act as a Service Provider (SP). This guide will walk you through the implementation of SSO, which ensures a secure and user-friendly authentication process across the two Shopify storefronts.

Pre-requisite:

To configure SSO between two Shopify Stores, you will need two Shopify stores. On the 1st store add Shopify SSO application and on the 2nd Store add Shopify Store as IDP application.

SSO between Two Shopify Stores - miniorange

Single Sign-On (SSO)

Allows users to SSO into Store using existing IDP credentials

Add Application
SSO between Two Shopify Stores - miniorange

Shopify Store as IDP

Allow Customers to SSO login using the store credentials.

Add Application

Step by Step guide for Configuring SSO between two Shopify Stores

1.   Get Service Provider (SP) Metadata from 1st Shopify Store

  • Go to your Shopify store and navigate to App section. Click on Single Sign On - SSO login application.
  • SSO between Two Shopify Stores - Single Sign-On application
  • Click on Setup IDP button in the left navigation bar.
  • SSO between Two Shopify Stores - Shopify SSO - Setup IDP
  • Click on Configure SSO >> Add Identity Provider.
  • SSO between Two Shopify Stores - Shopify SSO - Add Identity Provider
  • Select SAML protocol. Now click on the Click here link to get Shopify metadata as shown in Screen below.
  • SSO between Two Shopify Stores - Shopify SSO -  get SP metadata
  • For SP - INITIATED SSO section, Click on the Metadata URL button to copy the SP Metadata URL.
  • SSO between Two Shopify Stores - Shopify SSO - copy sp metadata

2.   Configure 1st Shopify store as SP in 2nd Shopify Store

  • Go to the 2nd Shopify store, click on Apps tab and select Store as IDP-SSO login application.
  • SSO between Two Shopify Stores - Shopify as IDP
  • Click on the Setup Application button in the left navigation bar.
  • SSO between Two Shopify Stores - Shopify as IDP - setup application
  • From the left navigation bar select Apps and click on Add Application button.
  • SSO between Two Shopify Stores - Shopify as IDP - Add Application
  • Go to SAML tab and search for custom and select Custom SAML App.
  • SSO between Two Shopify Stores - Shopify as IDP - Select Custom provider
  • Click on Import SP metadata option.
  • SSO between Two Shopify Stores - Shopify as IDP - Import SP Metadata
  • Upload the metadata file downloaded in Step 1.
  • SSO between Two Shopify Stores - Shopify as IDP - Upload metadata
  • Enter the values corresponding to the information from 1st Shopify Store. Refer to the table below.
  • Name ID E-Mail Address
    NameID Format urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress
    Group Name DEFAULT
    Policy Name Shopify
    Login Method Password
  • Click on the Save button to save your configuration.
Get IDP Metadata:
  • Navigate to Select option and choose Metadata tab against the Service Provider you configured.
  • SSO between Two Shopify Stores - Shopify as IDP - Get IDP Metadata
  • Now copy the Metedata URL under INFORMATION REQUIRED TO AUTHENTICATE VIA EXTERNAL IDPS section.
  • SSO between Two Shopify Stores - Shopify as IDP - Copy Metadata URL
You have completed 2nd Shopify store i.e. Shopify store as IDP side configurations.

3.   Configure 2nd Shopify store as IDP in 1st Shopify Store

  • Navigate to the App section of Shopify store and click on Single Sign On - SSO Login application.
  • SSO between Two Shopify Stores - Shopify SSO - Single Sign-On application
  • Click on Setup IDP button in the top left in navigation bar.
  • SSO between Two Shopify Stores - Shopify SSO - Setyp IDP
  • From the left navigation bar select Configure SSO and click on Add Identity Provider.
  • SSO between Two Shopify Stores - Shopify SSO - add Identity Provider
  • Select SAML and click on Import IDP metadata.
  • SSO between Two Shopify Stores - Shopify SSO - Import IDP Metadata
  • Add appropriate IDP Name and paste the copied IDP metadata URL from Step 2 in IDP metadata section.
  • SSO between Two Shopify Stores - Shopify SSO - paste IDP metadata
  • Click on Import and then click on Save.

You have successfully completed Shopify side configuration.

4.   Test Connection

  • Go to Configure SSO tab in the Shopify SSO applciation present on 1st Shopify Store.
  • Click on Select >> Test Connection option against the Identity Provider you configured.
  • SSO between Two Shopify Stores - Shopify SSO - Test Connection
  • On entering valid 2nd Shopify Store credentials you will see a pop-up window which as shown in below screen.
  • SSO between Two Shopify Stores - Shopify SSO - Test Connection successful

5.   Testing SSO for your 1st Shopify Store

  • Go to your 1st Shopify Store login page.(https://<your-shopify-storedomain>/account/login)
  • Click on the login button you customized earlier.
  • SSO between Two Shopify Stores - Shopify as IDP - login into Shopify
  • You’ll be redirected to the login page of the 2nd Shopify Store. Log in with your 2nd Shopify Store credentials.
  • You’ll be successfully logged in to your 1st Shopify store.
Hence your configuration of setting up SSO between two Shopify stores sucesssfully completed.

Troubleshooting

invalid_request

This may be because your primary domain would be different from your Shopify domain. To check your primary domain and make SSO work, follow the steps given here.

shopify_plan_expired

This issue arises when either the trial period of your Development plan is expired. Or if your plan is not auto-renewed from the Shopify end. Contact us at shopifysupport@xecurify.com to resolve the plan upgrade issue and get smooth functioning of the SSO – Single Sign On Application.

invalid_attributes_received

As email is a required entity in Shopify for account creation as well as login operation, Single Sign On is not successful in this case. To resolve this error, please follow given here.

encountered_an_error

When I am performing SSO, I am getting ‘Please verify if Shopify App is installed’ error. To resolve this error, please follow given here.

If your error or query is not listed here, click here to see others.


Frequently Asked Questions (FAQs)


I have followed the steps to set IdP but where can I check SSO?

Follow the steps outlined here to configure SSO in Shopify with your preferred IDP.

I installed the Shopify SSO application. I clicked on the “SETUP IDP” option but nothing opened up.

Redirection to any other site might be blocked in the browser. Please follow the steps given here to resolve the issue.

When I try to perform SSO, I get redirected to the “Incorrect App Configuration” page and then after subsequent attempts, I get redirected to https://store.xecurify.com/moas/login page.

You might be trying to perform SSO in the different tab of the same browser where you have opened our Single Sign-On – SSO Application or accessed the configuration portal of our application. In this case, SSO will be restricted due to security reasons.
Try to perform Single Sign On in a new incognito/private window or in a different browser in order to make SSO work.

After performing SSO, I want my customers to redirect to the collections or discount offer page.

Follow the steps outlined here to redirect your customer to collections/cart or any other page.

How do I enable the SSO application’s auto redirect to IDP feature on my Shopify store?

You must upgrade to the SSO application’s Enterprise plan to enable the Auto-Redirect to the IDP feature. Follow the steps outlined here to enable this feature.


If you are looking for anything that you cannot find, please drop us an email at shopifysupport@xecurify.com.

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