SAML Single Sign-On (SSO) For Shopify Using Okta as Identity Provider
Overview
miniOrange allows Okta to act as an IDP (Identity Provider), which allows users to Single Sign-On (SSO) into Shopify using Okta 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 Okta as IdP (Identity Provider) and Shopify store as SP (Service Provider).
Pre-requisites: Single Sign On - SSO Login Application
To configure SSO into Shopify with Okta as IDP (SAML), 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 Configuring Okta as IDP for SSO into Shopify
Step 1: Configure Shopify as SP in Okta
- Login into your Okta Admin Dashboard.
- In the Okta Developer site, navigate to the Applications tab and select Applications.
- Click on the Create App Integration button to create a new app.
- Select SAML 2.0 as the Sign-On method and Click on the Next button.
- In the General Settings tab, enter the App Name and click on the Next button.
- Click on the Add Identity Provider button to add your IDP.
- Select SAML protocol.
- Now choose Okta from the list of IDPs.
- Click on the Get metadata button, as shown on the screen below, to get the service provider metadata.
- SP - INITIATED SSO
- IDP - INITIATED SSO
- Navigate to the Okta Application and enter the values in the Configure SAML section as shown in the below screen.
Single Sign-On URL | ACS URL (For SP-Initiated SSO) |
Audience URI (SP Entity ID) | Entity ID or Issuer |
- (IDP Attribute Mapping): Configure Attribute Statements (Optional) and click on the Next button.
- Select Okta Configuration type & click on finish.
- Now navigate to the application you created and click on the Assignments Tab in Okta.
- Click on the Assign button to Assign People and Assign Groups.
- Once you Assign the user, click on the Done button.
Get IDP Metadata:
- Navigate to the Sign On tab and go to the SAML Signing Certificate section.
- Click on the Action dropdown for the Active certificate and then click on the View IdP Metadata option to get the IdP Metadata which will be required for configuring your Service Provider.
- Copy the XML file URL and navigate back to the Shopify Single Sign-On - SSO Login application dashboard.
You have completed the Okta side configuration.
Step 2: Configure Okta as 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 Okta.
- 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: Test Connections
- 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 Okta 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 4: Attribute Mapping
- To send an attribute from Okta IDP follow the steps given in Step 1.
- Click on the + Attribute Mapping button to map attributes between Shopify and Okta.
- 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 5: Set Default Relay State in Okta (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 application you configured in Okta. Navigate to the Sign On tab and click on Edit.
- Paste the copied SSO URL Link in the Default Relay State section.
- Click on Save.
Step 6: Testing SSO
Testing SSO into Shopify using your Okta credentials.
- SP - INITIATED SSO
- IDP - INITIATED SSO
Hence your configuration of Okta 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 Inventory Sync application. Our team will help you to select the best suitable solution/plan as per your requirement.