SAML Single Sign-On (SSO) For Shopify Using Azure AD as IDP
Overview
miniOrange allows Azure AD to act as an IDP (Identity Provider), which allows users to Single Sign-On (SSO) into Shopify using (Microsoft Entra ID) Azure AD credentials. Our application is compatible with all the SAML / OAuth-compliant Identity Providers. We will go through a step-by-step guide to configure Single Sign-On (SSO) into Shopify using (Microsoft Entra ID) Azure AD as IDP (Identity Provider) and Shopify store as SP (Service Provider).
Note: If you want to set up SSO in Shopify using (Microsoft Entra ID) Azure AD as a the IDP and the OAuth protocol, follow the instructions provided here.
Pre-requisites: Single Sign On - SSO Login Application
To configure SSO into Shopify using (Microsoft Entra ID) Azure AD as IDP, you will need to install the miniOrange Shopify Single Sign On - SSO Login Application on your store.
Check out our video, to know more about how Single-Sign-On works in Shopify.
Configuration Steps
Step by Step guide for Single Sign-On in Shopify Store Using (Microsoft Entra ID) Azure AD
Step 1: Configuring Shopify as Service Provider (SP) in (Microsoft Entra ID) Azure AD
- Login into your (Microsoft Entra ID) Azure AD Portal
- Select Microsoft Entra ID.
- Navigate to Add >> Enterprise Application.
- Click on Create your own Application.
- Enter the name of your app, then select the Non-gallery application section and click on Create button.
- Click on Setup Single sign-on.
- Select the SAML tab.
- Click on Edit.
- For the above SAML configuration, you need to get the Entity ID and ACS URL from Shopify.
- Now go to your Shopify store navigate to the App section and click on Single Sign On - SSO login application.
- Click on the Add Identity Provider button to add your IDP.
- Select SAML protocol.
- Now choose Azure AD from the list of IDPs.
- Click on the Get metadata button, as shown on the below screen to get the service provider metadata.
- SP - INITIATED SSO
- IDP - INITIATED SSO
- Enter the values in the basic SAML configuration as shown in the below screen.
Identifier (Entity ID) | Entity ID or Issuer |
Reply URL (Assertion Consumer Service URL) | ACS URL |
- By default, the following Attributes will be sent in the SAML token. You can view or edit the claims sent in the SAML token to the application under the Attributes tab.
- Click on Edit to add or edit claims.
- Click on Add new claim.
- Example: In Microsoft Entra ID, add a claim for the Country attribute by specifying the claim name.
- Select the source attribute as user.country and click on Save.
- Copy the App Federation Metadata URL. This will be used while configuring the (Microsoft Entra ID) Azure AD as IDP in Step 2.
- Assign users and groups to your SAML application.
- As a security control, (Microsoft Entra ID) Azure AD will not issue a token allowing a user to sign in to the application unless (Microsoft Entra ID) Azure AD has granted access to the user. Users may be granted access directly, or through group membership.
- Click on Users and Groups from the application's left-hand navigation menu. The next screen presents the options for assigning the users/groups to the application.
- After clicking on Add User, Select Users and Groups in the Add Assignment screen.
- The next screen presents the option for selecting user or invite an external user. Select the appropriate user and click on the Select button.
- Here, you can also assign a role to this user under the Select Role section. Finally, click on the Assign button to assign that user or group to the SAML application.
You have successfully completed (Microsoft Entra ID) Azure AD side configuration.
Step 2: Configure (Microsoft Entra ID) Azure AD as Identity Provider (IDP) in Shopify
- Navigate back to the miniOrange Single Sign On-SSO application and click on the Add Identity Provider button.
- Select SAML protocol.
- From the list of IDPs, select Azure AD.
- Click on the Import IDP Metadata button.
- Select the upload method as Metadata Link. Paste the copied XML file link from Step 1 and Click on Import.
- Add the appropriate IDP Name and click on Save.
Step 3: Set Default Relay State in Azure AD or Microsoft Entra ID (Only in IDP Initiated SSO Configuration)
- Go to More actions against the IDP you have configured and click on the Show SSO Link button.
- Copy the SSO URL.
- Now go to the Single sign-on tab in Azure AD or Microsoft Entra ID. Under the Basic SAML Configuration tab and click on Edit.
- Paste the copied SSO URL Link in the Relay State section.
- Click on Save.
Step 4: Test Connection
-
After saving the IDP configuration, you will be redirected to the
Test Connection step.
Please perform Test Connection before mapping or fetching attributes, test connection ensures that your IDP configuration is correct. - Click on the Test Connection button.
- On entering valid Azure AD credentials you will see a pop-up window which is shown in the below screen.
- Click on the Fetch Attributes button to fetch the IDP attribute.
Step 5: Attribute Mapping
- Click on the + Attribute Mapping button to map attributes between Shopify and Azure AD.
- Map the attributes by referring to the table below:
Attribute Name in Shopify | Choose the attribute from the list of predefined attributes |
Attribute Type | IDP Attribute |
Attribute Value | Select the attribute value you have fetched from your IDP |
- Click on Save.
- Navigate to the application home page. Go to More actions against the IDP you have configured and click on the Make Default button to make the IDP default.
Step 6: Testing SSO
Testing SSO into Shopify using your Azure AD or Microsoft Entra ID credentials.
- SP - INITIATED SSO
- IDP - INITIATED SSO
Hence your configuration of (Microsoft Entra ID) Azure AD as IDP in Shopify is successfully completed.
FAQs
More 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.
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 the 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.
Additional Resources
Get in Touch
Please reach out to us at shopifysupport@xecurify.com, and our team will assist you with setting up the Shopify SSO application. Our team will help you to select the best suitable solution/plan as per your requirement.