---
schema_version: "1"
id: 1e2f1c86528cb3a4116b6195de892e9e3b6b0415afb16e286fa2a98fd867f219
title: Configure SSO with Salesforce as the IdP
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/cc/264-0-0/b2c_salesforce_org_idp.md
canonical_url: https://help.salesforce.com/s/articleView?id=cc.b2c_salesforce_org_idp.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: b506e35e7fe47e90ac084a9d07f4f41674370a08a41c684df6798ed1410aac3a
description: If you’re using Salesforce as an IdP, configure SSO so a user can access B2C Commerce Merchant Agent capabilities.
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# Configure SSO with Salesforce as the IdP

If you’re using Salesforce as an IdP, configure SSO so a user can access B2C Commerce Merchant Agent capabilities.

The setup depends on whether the connected Salesforce org is a production or a sandbox org. Follow the instructions for your setup.

- **[Configure SSO to a Salesforce IdP Production Org](https://help.salesforce.com/s/articleView?id=cc.b2c_sso_idp_production_org.htm&release=264.0.0&type=5)**  
    If the B2C instance connects to a Salesforce production org, configure a login flow for the Merchant Agent work. No Auth Provider setup is required.
- **[Configure SSO to a Salesforce IdP Sandbox Org](https://help.salesforce.com/s/articleView?id=cc.b2c_sso_idp_sandbox_org.htm&release=264.0.0&type=5)**  
    If the B2C instance connects to a Salesforce sandbox org, first configure an External Client App in the production org. Then, configure an Auth Provider in the sandbox org. The Auth Provider uses the External Client App that you set up in the production org.