The Mirror Image: Social Sign-On and Delegated Authentication
Chapter 10 of Securing Salesforce: Identity and Access, Part 2: Accepting and Providing Identity. Start with chapter 9 if the Burger House and the web server flow are new to you.
Chapter 9 had Priya at the Burger House: an app that sent her to Salesforce, got a code back, and swapped it for her wristband. Now hold that picture up to a mirror. Priya comes to a Salesforce site and clicks Log in with Google. Google collects her password now, and Salesforce is the app.
That’s social sign-on, and it’s the first of this chapter’s other front doors into Salesforce. The second is much older: delegated authentication, for when the passwords live in a system that can’t speak SAML or OpenID Connect.
The ideas in this chapter
Section titled “The ideas in this chapter”- Social sign-on is the web server flow, reversed: the social provider is the identity provider, and Salesforce is the client that asks for her information.
- The auth provider is where it’s set up: a ready-made type, OpenID Connect for any provider that speaks it, or a custom one in Apex. Not every type does single sign-on.
- Between two Salesforce orgs, the Salesforce type, with an external client app in the identity provider org.
- The registration handler decides which Salesforce user she becomes:
createUserthe first time,updateUserevery time after. - Salesforce doesn’t validate the ID token for the handler. Check a claim before you trust it.
- Social sign-on is for customers and partners, not staff, and a social login proves she controls that account, not who she is.
- Delegated authentication: Salesforce’s own login page asks your service true or false. It doesn’t meet the MFA requirement, and it locks out everyone on it if your service goes down.
The picture
Section titled “The picture”Here’s the chapter’s picture: chapter 9’s Burger House, in the same places, with the names swapped.
The path through this chapter
Section titled “The path through this chapter”Five modules, each standing on its own, and a practice.
- The Mirror The flip, again; five steps in the mirror; the consent; who’s the client; then, who is she; three ways in.
- Auth Providers A ready-made list; the pieces; the button; any OpenID Connect provider; between two Salesforce orgs.
- The Registration Handler What arrives; two methods; the user it runs as; the checks; the ID token; Apex or Flow; a skeleton.
- Where It Fits Most likely, a community; three groups, three doors; what a social login proves; the second job; Steve Trucking’s recipients.
- Delegated Authentication The legacy store; teach it SAML first; true or false; setting it up; what you give up; don’t lock yourself out.
Then the practice: one lab org logging in through the other, with an auth provider and your own registration handler.
Check what stuck with the study guide.
What an architect decides here
Section titled “What an architect decides here”- Which front door each group of people uses, by who manages them.
- Which auth provider type, and whether it does single sign-on at all.
- Who the registration handler lets in, how it matches people, and what it trusts.
- PKCE and MFA on every auth provider.
- Whether a legacy store can learn SAML or OpenID Connect before you reach for delegated authentication, and who never gets it: the admins.
Beyond the exam: what AI changes. A customer’s agent that signs her in with a social identity is still her identity, with only what she consented to share. Chapter 17 takes it further.
Explore
Section titled “Explore”Each module lists its own sources, each checked 2026-11-07. Two to start with:
- Authentication Provider SSO (opens in a new tab) (Salesforce Help, Winter ‘27; checked 2026-11-07)
- Delegated Authentication (opens in a new tab) (Salesforce Help, Winter ‘27; checked 2026-11-07)
