Search Results :

×

How to Set Up SAML, OAuth & JWT SSO into Your Application Using Shopify SSO Login to LMS, CRM, CMS

Allow users to access your application easily using their Shopify Store credentials by setting up Single Sign-On (SSO) with Shopify as the Identity Provider (IDP). By configuring SAML, OAuth, or JWT authentication, users can log in once and access connected applications without re-entering their credentials. You can also match Shopify user profile attributes to your application for a personalized and smooth login experience. This method makes authentication easier while ensuring secure and efficient access to any application that supports SAML, OAuth, or JWT protocols.



To configure SSO into your application with Shopify as IDP, you will need to install the SSO login to LMS, CRM, CMS app on your store.

  • Log in to your Shopify Admin.
  • Go to Apps → Shopify App Store.
  • Search for SSO login to LMS, CRM, CMS.
  • Click Install to add the app to your store.
  • Open the app from Apps to start Shopify IDP configuration.
  • In your Shopify Admin, click on Apps and select the SSO login to LMS, CRM, CMS application from the Installed apps list.
SSO using Shopify as IDP - Go to Apps and Select Store as IDP-SSO login

  • From the left navigation bar select Apps and click on Add Application button.
SSO using Shopify as IDP - Click on Add Application

  • Select the protocol that your Application supports in which you want to integrate SSO through Shopify as an Identity Provider

Configure Single Sign-On (SSO) Settings for SAML Apps:


  • Click on the SAML tab and search for your Application.
SSO using Shopify as IDP - search for SAML App

  • If you can't find your application in the list, search for custom and select Custom SAML App. You can also click on Submit New App Request to request adding your application as a pre-integrated app.
SSO using Shopify as IDP - select Custom SAML App

  • Once you select the Custom SAML App option, you will find a window similar to:
SSO using Shopify as IDP - SAML App Window

  • Either you can Copy and Paste all the attributes of the Service Provider (SP) into the fields below, Or you can directly upload an XML file containing relative information.
SSO using Shopify as IDP - Enter SP details manually

  • To upload the file, follow these steps: Click on the Import SP Metadata button.
SSO using Shopify as IDP - Import SP Metadata

  • You will get a popup. Enter the App Name, provide the SP Metadata as a URL, Text or File, and click on Import.
SSO using Shopify as IDP - Enter SP Metadata

  • Below is the description of what each field means (present on the app configuration window).

  • SP Entity ID SP Entity ID is used to identify your app against the SAML request received from SP. You can find the SP Entity ID or Issuer in your application's SAML/SSO settings or SP metadata (for example: https://your-app.com/saml/metadata).
    ACS URL Assertion Consumer Service URL defines where the SAML Assertion should be sent after authentication. You can find the ACS URL in your application's SAML/SSO settings or SP metadata (for example: https://your-app.com/saml/acs).
    Single Logout URL A Single Logout URL defines where the user should be redirected after receiving the logout request from SP. You can mention your application logout page URL here (for example: https://your-app.com/saml/logout).
    Audience URI Audience URI, as the name suggests, specifies the valid audience for SAML Assertion. It is usually the same as the SP Entity ID. If the Audience URI is not specified separately by SP, leave it blank.
    NameID NameID defines what SP is expecting in the subject element of SAML Assertion. Generally, NameID is the Username or Email Address
  • NameID Format defines the format of subject element content, i.e. NameID. For example, Email Address NameID Format defines that the NameID is in the form of an email address, specifically “addr-spec”. An addr-spec has the form local-part@domain, has no phrase (such as a common name) before it, has no comment (text surrounded in parentheses) after it, and is not surrounded by “<” and “>”. If NameID Format is not externally specified by SP, leave it unspecified.
  • You can Add Attributes to be sent in SAML Assertion to SP. The attributes include the user’s profile attributes such as first name, last name, fullname, username, email, custom profile attributes, and user groups, etc.
  • The next section on the same window is for adding a policy for your app.
SSO using Shopify as IDP - Add policy

  • Select a Group Name as Default for making Shopify as an Identity Provider.
  • Give a policy name for the Custom App in Policy Name.
  • Select the Login Method as Password for using Shopify as an Identity Provider
  • Optionally, enable 2-Factor Authentication (MFA) or Adaptive Authentication for the app.
  • Click on the Save button to add a policy for Apps (Single Sign-On).

Configure Service Provider (SP)

  • Now navigate to the Select >> Metadata option against your configured application.
SSO using Shopify as IDP - Get IDP Metadata

  • Now click on Show Metadata Details under INFORMATION REQUIRED TO AUTHENTICATE VIA EXTERNAL IDPS section.
SSO using Shopify as IDP - Show IDP Metadata

  • Copy the SAML Login URL, SAML Logout URL, X.509 Certificate and IdP Entity ID or Issuer. These will be used to configure Shopify as the IDP in your application (Service Provider).
  • Alternatively, use the Download Metadata button or copy the Metadata URL if your application supports importing IDP metadata.
SSO using Shopify as IDP - Copy IDP Metadata

Configure Single Sign-On (SSO) Settings for OAuth/OIDC Apps:


  • Click on the OAuth/OIDC tab and select your Application.
SSO using Shopify as IDP - Click OAuth/OIDC

  • If you can't find your application in the below list then select OpenID Connect APP and you can also submit your app request to add the application as a pre-integrated app.
SSO using Shopify as IDP - Select OpenID Connect

  • Once you select the OpenID Connect option, you will find a window similar to:
SSO using Shopify as IDP - OpenID Connect App Window

  • Fill out the below fields:
  • Client Name Enter appropriate Client Name.
    Redirect-URL Make sure Redirect-URL is in this format https://<mycompany.domain-name.com>
    Description Add a description if required.
  • The next section on the same window is for adding a policy for your app.
SSO using Shopify as IDP - Add policy

  • Select a Group Name as Default for making Shopify as an Identity Provider.
  • Give a policy name for Custom App in Policy Name.
  • Select the Login Method as Password for using Shopify as an Identity Provider
  • Click on Save button. You will be redirected to the Apps Section.
  • Now navigate to Select >> Edit option against your configured application.
SSO using Shopify as IDP - get IDP Metadata

  • Click on the Click to reveal client secret link to reveal the client secret. Copy down the Client ID, Client Secret, and OAuth Endpoints that will be used in configuring Shopify as IDP in your Service Provider.
  • For the Authorization Endpoint, use the /moas/broker/login/oauth/<id> URL (highlighted in the image below) so that users are authenticated with their Shopify Store credentials.
SSO using Shopify as IDP - Copy SP Metadata

Configure Single Sign-On (SSO) Settings for JWT:


  • Click on the JWT tab and select External App.
SSO using Shopify as IDP - Select JWT Protocol

  • Once you select the External App option, you will find a window similar to:
SSO using Shopify as IDP - Enter SP Metadata

  • Enter the values by referring the below table.
  • Custom Application Name Choose an appropriate name according to your choice.
    Description Add appropriate description according to your choice.
    Redirect-URL Endpoint of your application, which will receive the JSON Web token and process it.
    Group Name Default.
    Policy Name Add policy name according to your Preference.
    Login Method Password.
  • In case you are setting up SSO with Mobile Applications where you can't create an endpoint for Redirect or Callback URL, use below URL.
    https://login.xecurify.com/moas/jwt/mobile
  • Click on Save button.
Configure Service Provider (SP)
  • Now navigate to Select >> Edit option against your configured application.
SSO using Shopify as IDP - get IDP Metadata

    Client ID If your application provides its own client ID, you can configure it by clicking on the Customize button.
    App Secret You can find the App Secret by clicking on the reveal icon next to it.
    Description Add appropriate description according to your choice.
    Signature Algorithm Select your signature algorithm from the dropdown.
    Redirect URL Given below is your app url where you will receive your token.
    RSA 256 : <your_app-login-url> (Here token will be added by the system)
    HS256 : <app-login-url/?id_token=>
You have completed the Shopify side configuration.
  • Navigate to the Additional Settings section and turn on the Enable Attribute-Based Access Restrictions toggle.
SSO using Shopify as IDP - Enable Attribute-Based Access Restrictions

  • Click on the + button next to User Attribute Blocking Rules. Enter the User Attribute (for example: email), select the Condition (for example: EQUALS) and enter the Attribute value.
  • Optionally, enter an SSO Error Redirect URL to redirect users when SSO fails, and click on Save.
SSO using Shopify as IDP - Enter Attribute Value

  • Go back to your Shopify Admin and under Sales channels, click on the Edit theme (pencil) icon next to Online Store.
SSO using Shopify as IDP - theme customization

  • Click on the App embeds icon in the left toolbar and enable the Login Redirection app embed as shown in the below image. Click on Save.
SSO using Shopify as IDP - enable Login Redirection app embed

  • When a user clicks on the forgot password button or creates a new user account on the Shopify Store during the SSO process, they will be automatically logged in to the Service provider after successfully changing their password or creating a new account.
  • Initiate Single Sign On (SSO) from the configured Application.
  • It will redirect you to the Shopify Store Login Page if the user is not already logged in to the store.
  • Enter Your Shopify Store customer credentials.
  • After Successful authentication, you’ll be redirected back to the configured Application and you’ll be logged in.


 Thank you for your response. We will get back to you soon.

Something went wrong. Please submit your query again


ADFS_sso ×
Hello there!

Need Help? We are right here!

support