Blog · September 25, 2023 · Steve Simpson · Identity

Salesforce to Salesforce Single Sign-On Setup Guide

Introduction

In this guide, we’ll explore how to set up Single Sign-On (SSO) between two Salesforce organizations, with one acting as the Identity Provider (IDP) and the other as the Service Provider (SP). This setup allows users to navigate between the two organizations seamlessly using a single set of credentials.

Objective

Our goal is to configure two Salesforce organizations, one as the IDP and the other as the SP, to enable users to traverse between them without needing to log in multiple times.

Diagram: single sign-on from one Salesforce org to another. The browser is sent to the identity provider org with a SAML request and returns to the service provider org with a SAML assertion; each org holds the other's certificate and users are matched by Federation ID

Step-by-Step Guide

Initial Setup

User Creation

Create a test user in both orgs (e.g., Homer IDP in the IDP org and Homer SP in the SP org).

Screenshot: the test user Homer logged in to the identity provider org

Assign a unique Federation ID to each user to facilitate identification during the SSO process.

Screenshot: the test user logged in to the service provider org

Single Sign-On Setup

Diagram: the steps for Salesforce-to-Salesforce single sign-on. In the identity provider org, enable the identity provider, download its certificate and metadata, then create a connected app with SAML enabled and assign it; in the service provider org, enable SAML single sign-on, upload the certificate, set up the login page and a test user

Download the certificate and metadata from the IDP org.

Enable SSO in the SP org and upload the IDP’s certificate and metadata.

Configure the Connected App in the IDP org with the SP’s entity ID and ACS URL.

Assign the Connected App to the relevant user profiles.

Screenshot: editing the SAML single sign-on settings in the service provider org Screenshot: the saved SAML single sign-on settings in the service provider org, with the identity provider's login URL

Testing the SSO Configuration

Log in to the IDP org using the test user’s credentials.

Navigate to the SP org’s URL and select the SSO login option.

Verify that the test user can access the SP org without entering additional credentials.

Conclusion

Setting up SSO between two Salesforce orgs involves several steps, but the process is straightforward. With this setup, users can easily navigate between different Salesforce orgs using a single set of credentials, providing a seamless user experience.

Stay Tuned

Embark on your Salesforce Identity journey with confidence! For more insights and tips, stay tuned here on www.SteveTechArc.com and to the @SteveTechArc (opens in a new tab) YouTube channel. Subscribe and enhance your understanding of Salesforce Identity.

Helping change the world by sharing integration info with fellow Architects and those on their Architect Journey!

Transcript aided by AI

STA 3.5