Authentication Management in Commerce Manager
The Authentication Management tab is used to configure one or more single sign-on authentication providers. Single sign-on is used to verify a user’s identity using the OpenID Connect protocol, without saving user information such as a password.
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.
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.
Buyer Organization: Adding redirect URLs
When the storefront begins the single sign-on flow for an end user or customer, it must tell Elastic Path Commerce Cloud 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.
On the System > Store Settings > Authentication Management tab, click Buyer Organization realm.
In the Edit Configuration area for the realm, enter redirect URIs.
You can view the list of redirect URIs as tags or as a comma-separated list.
Click Save to save the configuration.
Merchant Organization: URL prefix
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.
This prefix must be unique, and comprised of between two and 24 alphanumeric characters.
On the System > Store Settings > Authentication Management tab, click Merchant Organization realm.
In the Edit Configuration area for the realm, enter your URL prefix.
You enter the URL prefix every time you log in to Commerce Manager.
Click Save to save the configuration.
Adding a new provider
Select a realm on the System > Store Settings > Authentication Management page.
In the Edit Configuration area for the realm, click Add New Provider.
Enter the following information:
Field Information Name The name of the configuration. Discovery Url The 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 Id The client identifier that Commerce Cloud uses to identify itself with the authentication provider. Client Secret A secret code known only to Commerce Cloud and the authentication provider. In the Redirect URL for Provider dialog box that opens, click Copy to copy the Redirect URL for Provider URL.
This redirect URL must be configured in your single sign-on authentication provider setup.
You can also copy the Redirect URL for Provider field after you have saved the configuration for a new provider. Use the Copy button to copy the URL.
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.