Setting up SSO between Salesforce to Salesforce
Salesforce can act both as Identity Provider and Service Provider.
That means that you can either use it to log in into multiple Services (Identifying the User using same Username and Password)
Or use a different software to login into Salesforce as part of other services.
A great use case for this example will be if you have multiple Salesforce Orgs and one org to Control them all.
One org will act as Identity Provider (IDP) and Second org will be used as a Service Provider org (SPO).
- Setup Org as IDP – Enable Identity Provider in IDP Org
- Created a Certificate to be used by IDP
- Setup Service Provider Org – SPO
-
- Entered a Remote Site for IDP org My Domain URL
-
- Enable Single SignOn
-
- Enter Single Sign On details from Certificate (Upload Certificate)
- Create a Connected App in IDP with Login URL and Start URL from SPO Org.
-
- Manage App – Assign to Profiles.
- Manage my Domain on SPO => Authenticate via IDP org
- Setup Federation ID to each User – should match between same User across all orgs.