Skip to main content

Authentication Management

The Settings > Authentication page is used to configure one or more single sign-on authentication providers. The page has a card for each authentication realm: Merchant organization, Account management realm, and Buyer organization. Click a card to expand it. Each card has one Save and one Discard at the bottom that apply to all changes in that card. Single sign-on is used to verify a user’s identity using the OpenID Connect protocol, without saving user information such as a password.

caution

Changing these settings affects how customers authenticate with your store. Any misconfiguration might prevent users from authenticating.

For more information, see Single sign-on and authentication and Single sign-on with OpenID Connect.

caution

To set up single sign-on for customers of your store, use the Buyer organization realm. To set up single sign-on for store administrators and developers, use the Merchant organization realm.

Merchant Organization​

To log into the correct store’s Commerce Manager as a developer or administrator when using single sign-on, you must:

  • set a URL prefix for your store’s Merchant Organization realm.
  • Add an OpenID provider
note

This prefix must be unique, and comprised of between two and 24 alphanumeric characters.

  1. Go to Settings > Authentication.

  2. Expand the Merchant organization card.

  3. In the Store prefix section, enter your URL prefix in Prefix.

    You enter the URL prefix every time you log in to Commerce Manager with single sign-on.

  4. In the OpenID providers section, click New OpenID provider. A new row opens in the section.

  5. Provide the following information.

    OptionRequiredDescription
    NameRequiredA name for your OpenID provider. This is the name displayed to shoppers in your storefront.
    Discovery URLRequiredThe URL where the OpenID Connect authentication configuration is found. This is often the URL of the provider. For example: https://<URL>/.well-known/openid-configuration.
    Client IDRequiredThe client identifier that Composable Commerce uses to identify itself with the authentication provider.
    Client secretRequiredA secret code known only to Composable Commerce and the authentication provider.
  6. Click Save at the bottom of the Merchant organization card. This saves the store prefix and the provider together.

After you have properly configured one or more authentication providers, when customers open the Login dialog box, a Login with [provider] button is available for single sign-on authentication workflow.

Account Management Realm​

You can use the Account Management Realm to configure single sign-on and Open ID Connect providers for your accounts and account members in your Commerce stores. This allows shoppers with Commerce accounts to access multiple applications and services with a single set of credentials, streamlining the login process and reducing the need for multiple usernames and passwords.

When configuring single sign-on in Account Management Realm, do the following:

  • (required) provide the redirect URIs. These tell Commerce which URI a shopper should be redirected to when authentication completes.
  • (required) add the Open ID provider through which shoppers will authenticate.
  • (optional) Provide a password profile for your Open ID providers.
  • (required) Configure the Account authentication settings.

The steps below describe how to configure accounts and account members to use single sign-on.

  1. Go to Settings > Authentication.

  2. Expand the Account management realm card.

  3. In the Client redirect URIs section, enter each redirect URI in its own row. Click Add redirect URI to add another row. These are the pages on your storefront where you want shoppers with accounts to be able to sign in to an Open ID provider. Use HTTPS addresses. For local development, http://localhost and http://127.0.0.1 are also allowed.

  4. In the OpenID providers section, click New OpenID provider. A new row opens in the section.

  5. Provide the following information.

    OptionRequiredDescription
    NameRequiredA name for your OpenID provider. This is the name displayed to shoppers in your storefront.
    Discovery URLRequiredThe URL where the OpenID Connect authentication configuration is found. This is often at the URL of the provider. For example: https://<URL>/.well-known/openid-configuration
    Client IDRequiredThe client identifier that Composable Commerce uses to identify itself with the authentication provider.
    Client secretRequiredA secret code known only to Composable Commerce and the authentication provider.
  6. In the Password profiles section, click New password profile. A new row opens in the section.

  7. Provide the following information.

    OptionRequiredDescription
    NameRequiredA name for your password profile.
    Username formatRequiredThe username format required by the system or application where the usernames are used. Either Email address or Any.
  8. In the Account authentication settings section, configure the following settings:

    • Turn on Self sign-up if your application or service allows shoppers to sign up by completing a registration form, if they are not already registered.
    • Turn on Auto-create accounts for new account members if you want to automatically create an account for a shopper who is signing in but does not yet have an account.
    • Turn on Account member self-management if you wish to allow shoppers to automatically create their accounts in Commerce by completing a registration form, if they do not already have accounts.
    • In Account management token timeout (seconds), enter how long an account management authentication token stays valid, from 15 to 2,592,000 seconds (30 days). After a timeout is saved, you can change it but not clear it.
  9. Click Save at the bottom of the Account management realm card. One Save applies every change in the card: redirect URIs, providers, password profiles, and account authentication settings. To undo unsaved changes, click Discard.

After you have properly configured one or more authentication providers, when customers open the Login dialog box, a Login with [provider] button is available for single sign-on authentication workflow.

Buyer Organization​

When the storefront begins the single sign-on flow for an end user or customer, it must tell Commerce which URI the user should be redirected to when the authentication completes. This is the redirect_uri parameter discussed in Single sign-on with OpenID Connect. These URLs must be explicitly listed as Redirect URIs to prevent phishing and other security vulnerabilities.

  1. Go to Settings > Authentication.

  2. Expand the Buyer organization card.

  3. In the Client redirect URIs section, enter each redirect URI in its own row. Click Add redirect URI to add another row.

    Use HTTPS addresses. For local development, http://localhost and http://127.0.0.1 are also allowed.

  4. In the OpenID providers section, click New OpenID provider. A new row opens in the section.

  5. Provide the following information.

    OptionRequiredDescription
    NameRequiredA name for your OpenID provider. This is the name displayed to shoppers in your storefront.
    Discovery URLRequiredThe URL where the OpenID Connect authentication configuration is found. This is often at the URL of the provider. For example: https://<URL>/.well-known/openid-configuration
    Client IDRequiredThe client identifier that Composable Commerce uses to identify itself with the authentication provider.
    Client secretRequiredA secret code known only to Composable Commerce and the authentication provider.
  6. Click Save at the bottom of the Buyer organization card. This saves the redirect URIs and the provider together.

After you have properly configured one or more authentication providers, when customers open the Login dialog box, a Login with [provider] button is available for single sign-on authentication workflow.

Editing and Deleting Providers and Password Profiles​

  1. Go to Settings > Authentication.
  2. Expand the realm card.
  3. In the OpenID providers or Password profiles section, click the row to expand it, then do one of the following:
    • To edit, change the fields, then click Save at the bottom of the card. When you edit an OpenID provider, leave Client secret blank to keep the current secret.
    • To delete, click Delete in the row, then click Delete provider or Delete password profile to confirm. The delete happens right away and does not wait for Save.
    • To remove a row that is not saved yet, click Remove.

An expanded OpenID provider row that is already saved also shows its Callback URL. Add this URL to the allowed redirect URLs in your identity provider.

Users with read-only access see locked fields, and Save, New OpenID provider, New password profile, and Delete are locked.

Ask External AI