Setting Up Salesforce as the Service Provider
Module 3 of 7 in the chapter Salesforce as the Service Provider: SAML, chapter 6 of Securing Salesforce: Identity and Access. Each module stands on its own.
The question this module answers: What do you set up in Salesforce so that it trusts an identity provider, and what has to match on the other side?
Who trusts whom
Section titled “Who trusts whom”Before any settings, one question. In single sign-on, who trusts whom?
The service provider trusts the identity provider. Salesforce is going to let people in because the identity provider says so. So the trust is set up on Salesforce’s side: Salesforce holds the identity provider’s certificate, and checks every response against it. The identity provider doesn’t need to trust Salesforce in the same way. That’s why the certificate goes onto the service provider, as you saw in chapter 4, module 4.
Everything in this module is that one idea, written down as settings.
The order
Section titled “The order”Here’s the order I’d set it up in. It’s the same at every company, whatever the identity provider.
- My Domain. Salesforce’s single sign-on works through your org’s own address, its My Domain. Check what yours is before you start: it ends up in half the values below.
- Gather from the identity provider. Its name (the issuer), its login address, its certificate, and how it will identify each user (S2). Many identity providers give you all of this in one metadata file.
- Create the single sign-on setting in Salesforce.
- Give the identity provider Salesforce’s side: its Entity ID and its address for answers.
- Add the button to the My Domain login page.
- Test with one user, and keep the back door.
The single sign-on setting
Section titled “The single sign-on setting”From Setup, find Single Sign-On Settings. Turn on SAML Enabled if it isn’t already. To change these settings you need Customize Application and Modify All Data (S1).
Then create the setting. You can type every field yourself, or start from the identity provider’s metadata file or metadata URL, and Salesforce fills in as much as it can (S1). Use the file when you have one. It’s fewer chances to get a value wrong.
Give it a Name. If you put the identity provider on the login page, this is the name people see on the button, so Salesforce suggests using the identity provider’s own name (S1).
Now the fields. I find it easiest to think of them as pairs. Each value is set twice, once at the identity provider and once here, and the two have to agree.
Here they are with what Salesforce does with each.
| Field in Salesforce | What it holds | What it must match |
|---|---|---|
| Issuer | The identity provider’s unique name, usually an address | The Issuer in every response (S1) |
| Entity ID | Salesforce’s own name in this relationship; for most orgs, the My Domain address | One of the Audience values in the assertion (S1) |
| Identity Provider Certificate | The identity provider’s certificate, uploaded | The key that signed the response (chapter 3) |
| Identity Provider Login URL | Where Salesforce sends the SAML request | The identity provider’s real login address |
| SAML Identity Type and Location | How the identity provider names the user, and where in the assertion | The value on Priya’s user record (module 5) |
| Service Provider Initiated Request Binding | HTTP POST or HTTP Redirect | What the identity provider asks for |
| Request Signing Certificate and Request Signature Method | Salesforce’s own certificate, if it signs its requests; RSA-SHA256 | What the identity provider expects, if it checks |
A few more fields you’ll see: Assertion Decryption Certificate, if the identity provider encrypts its assertions; Custom Logout URL, where people go when they log out; and Custom Error URL, a public page to show when a login fails (S1).
One choice in the Request Signature Method: Salesforce still offers RSA-SHA1. Choose RSA-SHA256. Chapter 3 explains why SHA-1 is finished.
When you save, Salesforce makes its own side of the pairs. On the setting’s page, the Endpoints section shows the values the identity provider needs from you: the Assertion Consumer Service (ACS) URL, Salesforce’s address for answers, and the Entity ID (S10). Give those to the identity provider. That’s step 4.
So that’s the hardest part of single sign-on, and I mean that. It’s installing a certificate and putting some addresses in, and getting them just right. One letter wrong in an Entity ID and nobody gets in. Write every pair down, for both sides, before you start.
The button on the login page
Section titled “The button on the login page”Users need a way to choose the identity provider. In Setup, My Domain, edit Authentication Configuration, and select your new setting as an authentication service. Its button appears on the My Domain login page, and a click sends the user to the identity provider (S7). If you have several identity providers, Salesforce suggests the Login Discovery page type instead (S7); chapter 15 shows it.
Keep the back door
Section titled “Keep the back door”Chapter 4, module 5 said it, and I’ll say it again here: before you turn this on for everyone, make sure someone can still get in when the identity provider can’t.
Salesforce gives you a way. If the identity provider is down, the standard Salesforce login page is still there: add ?login to your My Domain address, https://MyDomainName.my.salesforce.com?login (S1). Keep at least one admin who logs in with a Salesforce password and MFA, not through the identity provider. And test the back door before you need it.
At Steve Trucking
Section titled “At Steve Trucking”Steve Trucking’s staff sign in from Microsoft Entra ID, which came with the company’s Microsoft 365. Entra ID has Salesforce in its gallery of ready-made apps. The Entra admin adds it, chooses SAML, and downloads Entra’s metadata file. In Salesforce, the admin creates the setting from the metadata file, then adds it to the My Domain login page (S8). The Entity ID and the address for answers go back into Entra’s side.
And two of Steve Trucking’s admins keep a local Salesforce login, with their own MFA. That’s the back door.
Practice
Section titled “Practice”This chapter’s practice picks up the two orgs you built in chapter 4. You set up one of them as the service provider: its single sign-on setting, ready for an identity provider, and its login page. Chapter 7 turns the other org into the identity provider, and the first single sign-on login between them happens there.
What’s next
Section titled “What’s next”Module 4: watch the login happen, and read what Salesforce actually receives.
What an architect decides here
Section titled “What an architect decides here”- Who owns each side: the Salesforce admin and the identity provider’s team, and the pairs written down for both.
- Metadata file or by hand, and who keeps the identity provider’s certificate up to date (module 7).
- RSA-SHA256 for anything Salesforce signs.
- The login page: a button, several buttons, or a Login Discovery page.
- The back door: which admins keep a local login, and when it was last tested.
Explore
Section titled “Explore”- Step 1: Gather Information from Your Identity Provider (opens in a new tab) (Salesforce Help, Winter ‘27; checked 2026-11-07)
- Step 2: Create a SAML Single Sign-On Setting in Salesforce (opens in a new tab) (Salesforce Help, Winter ‘27; checked 2026-11-07)
- Add Identity Providers to the My Domain Login Page (opens in a new tab) (Salesforce Help, Winter ‘27; checked 2026-11-07)
- Configure Salesforce for Single sign-on in Microsoft Entra ID (opens in a new tab) (Microsoft Learn; checked 2026-11-07)
