You are here:
Configure SSO Using Account Manager as the IdP
If you’re using Account Manager as an IdP, complete these tasks for the B2C Commerce Merchant Agent to work.
Make sure that you have access to Business Manager and the connected Salesforce org.
Add an API Client in Business Manager
The API client provides the Consumer Key and Consumer Secret that Salesforce uses to communicate with Account Manager.
- Log in to Account Manager at https://account.demandware.com/.
- Go to the API Client section and click Add API Client.
-
Fill in the client details:
- Display Name: Enter a recognizable name (for example, "Salesforce SSO – Your Org Name")
- Password: Set a strong secret. This value becomes your Consumer Secret.
- Organizations: Select the organizations that this client can access.
- Token Endpoint Auth Method: Select client_secret_basic.
- Redirect URIs: Leave this entry blank for now. You add the Salesforce callback URL later.
- Click Save.
-
Record these values. You use them when you create the Auth Provider:
- Consumer Key: The Client ID (UUID) displayed by Account Manager
- Consumer Secret, which is the password you set earlier.
Add Account Manager as an Auth Provider
In your Salesforce org, add Account Manager as an Auth Provider so your users can log in to Salesforce with single sign-on (SSO).
-
Log in to your Salesforce org.
Log in at login.salesforce.com or at your My Domain URL, if your admin configured it, for example, https://company.my.salesforce.com.
-
In the top-right corner, click
then select Setup.
- In the Quick Find box, enter Auth Providers and select Auth. Providers.
- Click New.
-
Fill in the Authentication Provider Edit form:
Field Value Provider Type Commerce Cloud Account Manager Name Account Manager or any descriptive name URL Suffix Account_Manager (used in the callback URL) Consumer Key The Client ID from your API Client Consumer Secret The password you set for your API Client.
Keep the secret private. Store it in a secure place, such as a secrets manager. Don't commit the secret to source control or share it over insecure channels.
Authorize Endpoint URL https://account.demandware.com/dwsso/oauth2/authorize Token Endpoint URL https://account.demandware.com/dwsso/oauth2/access_token User Info Endpoint URL https://account.demandware.com/dw/rest/v1/users/current Link to messaging components Leave deselected. Use Salesforce MFA for this SSO Provider Leave deselected unless your security policy requires it. -
Click Save.
The Salesforce Configuration section appears at the end of the Auth Provider detail page.
-
Copy the Callback URL and the Single Sign-On
Initialization URL from the configuration details. The Callback URL format
is:
https://<your-domain>.my.salesforce.com/services/authcallback/Account_Manager -
Register the Callback URL in Account Manager.
- Return to Account Manager and open the API Client that you created earlier.
- In the Redirect URIs field, paste the Callback URL you copied from Salesforce.
- Click Save.
-
Verify the connection.
- Paste the Single Sign-On Initialization URL into a new browser tab.
-
Log in with your Account Manager credentials.
A successful login confirms that you configured the Auth Provider correctly.

