Search Results :

×

Provide Username/Password or Email OTP Login along with SSO via any IDPs for Shopify Plus Customer Accounts

Merchants can let customers log in using username and password or Email OTP, while also supporting SSO via enterprise identity providers (IdPs) like Okta, Azure AD, and AWS Cognito using our MO: Customer Accounts Login application. This ensures a flexible and secure authentication experience, allowing customers to choose their preferred login method while enabling merchants to connect seamlessly with enterprise identity platforms.

  • Log in to your Shopify Admin.
  • Go to Apps → Shopify App Store.
  • Search for Customer Accounts Login.
  • Install the MO: Customer Accounts Login application to your store.
  • Open the app from the Apps section in the left navigation menu to start the configuration.
  • The store must be a Shopify Plus store with Customer Accounts activated.
  • Go to your Shopify store and navigate to the Apps section and click on MO: Customer Accounts Login.
Open MO Customer Accounts Login app in Shopify Admin

  • On the app dashboard, scroll down and locate the Storefront Login Options card and click Edit.
  • You will land on the Login Options page. Open the Storefront Login Settings tab.
Storefront Login Options card with Edit button in Shopify app dashboard

  • On this page, turn on the login methods you want on the storefront. You can enable more than one at the same time. The change is saved automatically.
  • Choose from Enable User Signup, Enable Email OTP Login, Enable Email & Password Login, Enable Phone OTP Login, and Disable Email OTP Verification for User Signup (reCAPTCHA).
Note

Note: The banner on this page links to the b2b login extension. Use that extension when you need to update the login screen in the theme. Signup settings use the b2b signup extension.


    Enable Email OTP Login

    • Turn on Enable Email OTP Login under Storefront Login Settings so customers can sign in with their email and a one-time password (OTP).
    • The setting is saved automatically.
    Enable Email OTP Login on Storefront Login Settings

    Enable Phone OTP Login

    • Turn on Enable Phone OTP Login under Storefront Login Settings so customers can sign in with their phone number and a one-time password (OTP).
    • The setting is saved automatically.
    b2b login extension link below the Enable Phone OTP Login toggle

Enable and customize the login extension

  • After you turn on a login option (Email & Password, Email OTP or Phone OTP), click the b2b login extension link shown below that toggle. This opens the theme editor with the login page settings.
b2b login extension link on the Login Options page

  • In the App embeds panel, turn on B2B Login Page Layout and click Save to enable the login extension on your store. The storefront login screen only shows the enabled login options once this embed is on.
  • From the page list, select Login Page to customize it.
Select the Login Page to customize it

  • In the settings panel, you can edit the Title, Subheading and their alignment, choose the Default Login Option (Email/Password or OTP) and the Layout Order, and change the text of the Sign In, Send OTP and Verify OTP buttons.
Login form title, default login option and button text settings

  • Under Logo Image, upload your logo. It replaces the default icon on the login form.
  • You can also set the Page Background Image, container background, text, button and link colors, adjust the card's border radius, width and padding, show or hide the theme header and footer, or add your own code under Custom Liquid.
Login page logo, background, color and card layout settings

  • Go back to the Login Options page and click the b2b reset password extension link to enable it, so customers can reset their password from the login page.
b2b reset password extension link on the Login Options page

  • In the App embeds panel, turn on B2B Reset Password Layout and click Save.
  • You can edit the Title, Subheading, alignment, and the Send Reset Link and Reset Password button text, as shown in the image.
Enable B2B Reset Password Layout app embed and customize the reset password page

Note

Note: The b2b reset password extension is only needed when Email & Password Login is enabled. Email OTP and Phone OTP logins use only the b2b login extension.


  • If customers can register their own company, you can choose which details they fill in on the company registration form. Company registration must be turned on under Company Management → Configuration → Allow end users to register their Company. Click here for the full company onboarding setup.
  • In MO Customer Accounts Login, click Registration form design in the left navigation. This screen shows the fields currently on the company registration form.
Registration form design with predefined company fields

  • Click a field on the left to add it to the form. Fields are grouped under Profile, Address, and Custom.
  • Add predefined fields such as company name, contact name, email, phone, email domain, billing address, or shipping address.
  • Add your own custom fields, such as Tax ID, to collect any other details you need before approving a company.
  • Click Save.
Add predefined or custom fields to the company registration form

  • The saved fields appear on the storefront when a customer opens Company Create Request and clicks Create Company.
Create Company form with company name, email domain, and custom fields

  • On Login Options → Storefront Login Settings, turn on Allow Alternate Login for SSO Users. Customers who have already signed in through SSO can then also use email OTP, phone OTP, or email and password.
Allow Alternate Login for SSO Users toggle

  • Once enabled, customers can sign in using email/phone OTP, email and password, or SSO. If this option is off, SSO users can only log in using SSO.
  • In the left navigation, click Connect Store.
  • Copy the Well-known or discovery endpoint URL, Client ID, and Client secret.
  • Click the Customer accounts link to open Shopify customer account settings.
Connect Store page with customer account setup values

  • In the Authentication row, click Manage.
Manage button on the Authentication row in Shopify customer accounts

  • Click Manage providers.
Manage providers in Shopify customer accounts authentication

  • Click Connect to provider.
Connect to provider in Shopify customer accounts

  • Set Provider to Custom or other if your identity provider is not listed, and enter an Identity provider name.
Identity provider name and Custom or other provider type

  • In Application info, paste the discovery endpoint, Client ID, and Client secret copied in the step above. Click Save.
Paste endpoint URL, client ID, and client secret in Application info

  • Click Activate.
Activate the identity provider in Shopify customer accounts

  • The provider is listed with an Active status. Do not deactivate a provider that is already in use.
Identity provider shown as Active in Shopify

  • Go back to Connect Store in the app and click Test Connection.
Test Connection button on the Connect Your Store page

  • On the login screen, click Sign up to create an account for the test.
Sign up link on the customer login screen

  • Enter the email and password, then click Create Account.
Create Account form with email and password

  • Enter the one-time password sent by email and click Verify OTP. After the code is verified, close the test window.
Enter the email OTP and click Verify OTP

  • Go to Login Options and open the Store Access Control Settings tab.
  • Turn on Restrict access to Non-B2B users so only customers assigned to a company can view store content. Everyone else is blocked, except pages you whitelist.
  • Turn on Enable Auto Login Redirection if customers who open a restricted page should be sent to the login page.
  • Click Save.
Store Access Control Settings with store restriction and whitelisted pages

  • Under Whitelisted pages, click Add Pages, select the pages any visitor may open, then save the selection.
  • Stay on the Store Access Control Settings tab.
  • Click Enable next to Restrict login and signup based on email domain to control which email domains can log in or sign up.
Restrict login and signup based on email domain

  • Select Allow only these domains to allow sign-in and signup only for the domains you list.
  • Select Block these domains to block those domains and allow every other domain.
Allow only these domains or block these domains

  • Click Save.
  • Enter the email domains you want to allow or block under Added email domains.
Add an email domain

  • Enter an email address from another domain and click Verify to check whether that domain can sign in.
Verify an email domain

  • If the domain is not allowed, a disclaimer message is shown and the customer cannot sign in.
Note

Note: You can customize the disclaimer message shown when a customer tries to sign in with a domain that is not allowed.


Disclaimer shown for a domain that is not allowed

  • To add the Login with your IDP button to your login screen, configure your IdP in the SSO application. Click here to view all supported identity providers and follow their setup guides. Once the configuration is complete, an SSO button for your IdP appears on the login screen. If the button does not appear, contact us.

By completing these steps, you can offer customers a seamless and secure login experience in Shopify Plus with username/password, phone OTP, or enterprise SSO - all from a single, branded login screen.


 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