Salesforce as the Service Provider: SAML
Chapter 6 of Securing Salesforce: Identity and Access, Part 2: Accepting and Providing Identity. The first chapter of Part 2. New to single sign-on? Start with chapter 4.
Most companies sign their staff in to Salesforce from an identity provider they already run. Salesforce is the service provider: the system that trusts someone else to say who you are.
Chapter 4 showed what single sign-on is from the outside: a browser carrying messages between two systems that never call each other. This chapter sits inside Salesforce. Which setting does it read at each step? How does it find the right user? How does a link from an email still land on the right record? And when it all stops working one morning, where do you look first?
The ideas in this chapter
Section titled “The ideas in this chapter”- Five steps, five decisions. In an SP-initiated login, Salesforce reads one part of its single sign-on setting at every step.
- The second app is still SP-initiated, with no login screen, because the identity provider already has her session.
- The IdP-initiated flow is the SP-initiated flow with the first half cut off: the app launcher sends a SAML response, with no request to answer.
- It’s the service provider that trusts the identity provider, so Salesforce holds the identity provider’s certificate.
- Single sign-on is six pairs of values, each set on both sides, and every pair has to match. Getting them just right is the hard part.
- Watch it with a SAML tracer. It’s not magic: a request, a response, a few redirects.
- One signature required, both recommended, and the assertion’s signature is the one that counts most.
- How she signed in now matters: since February 2026, a password-only assertion from a new device means Device Activation.
- The Federation ID is the field Salesforce matches, and a stable code makes the best one.
- The relay state has to be in every step, or a deep link lands on Home.
- When it fails, get in first, then Login History, then the SAML Assertion Validator.
The picture
Section titled “The picture”Here’s the chapter’s main picture: chapter 4’s swim lane, from Salesforce’s seat. The same five steps, and in Salesforce’s lane, the settings it reads.
The rest of the chapter grows this picture: the second app, the app launcher, the relay state riding every arrow.
The path through this chapter
Section titled “The path through this chapter”Seven modules, each standing on its own, and a practice.
- The SP-Initiated Flow, Step by Step Where we left the swim lane; five steps, five decisions; one more check since 2026; on the map.
- The Second App, and the IdP-Initiated Flow Ten minutes later; starting at the identity provider and its app launcher; what the shortcut changes.
- Setting Up Salesforce as the Service Provider Who trusts whom; the order; the single sign-on setting as pairs; the button on the login page; the back door; Steve Trucking and Entra ID.
- Watch It Happen A SAML tracer; the response as Salesforce receives it; each part and its field; two signatures; how she signed in.
- Who to Log In As: the Federation ID Three ways to name her; what makes a good Federation ID; where in the assertion; capital letters; when there’s no match.
- Deep Links: the Relay State The link in the email; it has to be in every step; why it gets lost; starting at the identity provider.
- When It Fails Get in first; Login History and the validator; clocks, certificates, mismatches, a My Domain change, Device Activation.
Then the practice: set up one of chapter 4’s two orgs as the service provider, ready for chapter 7.
Check what stuck with the study guide.
What an architect decides here
Section titled “What an architect decides here”- The identity provider for each group of staff, and its single sign-on setting in Salesforce.
- Which flows to support: SP-initiated always; IdP-initiated if there’s an app launcher.
- The pairs, written down for both sides, and who owns each side.
- Which value is the Federation ID, and who fills it in for every user.
- What the identity provider signs and sends: response and assertion, SHA-256, and an authentication context that shows MFA.
- Where logins land, and the binding that keeps the relay state.
- The back door, tested, and the plan for a certificate renewal or a My Domain change.
Beyond the exam: what AI changes. An agent working for one of your staff doesn’t come in through this door; it reaches Salesforce through the API, as chapter 5 showed. But the single sign-on setting still decides who that staff member is. Match the wrong Federation ID, and an agent acting for that person gets the wrong person’s access too. Chapter 17 takes it further.
Explore
Section titled “Explore”Each module lists its own sources, each checked 2026-11-07. Two to start with:
- SAML Single Sign-On Flows (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)
