Skip to content

Acting as Someone: The Impersonation Flows

Chapter 11 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.

In chapter 9, Priya was at the Burger House and signed in at Salesforce. Now she has a standing order. Every Friday night, the Burger House delivers her burger and her drink from the festival, whether she’s home or not. It has to fetch her drink as her, with her access and her name on every change, and nobody’s there to sign in.

That’s pure impersonation, done properly. This chapter is the flows that do it, and two more that carry identity in from somewhere else.

  • Nobody home: the integration user puts one name on every change, and a refresh token needs her to have signed in once. These flows need neither.
  • One step, no refresh token: present something signed, naming her, at the token endpoint, and get an access token.
  • The golden pass, JWT bearer: the Burger House’s certificate on the app, a JWT naming her, signed with its key. Powerful and dangerous: it can act as anyone the app pre-authorizes, so keep the list to a permission set with only those users.
  • Borrowed trust: when security won’t give one system the golden pass, let an identity provider both sides trust sign for her. The SAML bearer assertion is made by the client; the SAML assertion flow reuses the org’s single sign-on.
  • Token exchange: she’s signed in somewhere else; swap that identity provider’s token for a Salesforce one, and your handler decides who she is.
  • The asset token: a token for a thing, linked to an Asset record.

Here’s the chapter’s picture: chapter 9’s lanes, with nobody in Priya’s.

Nobody home Chapter 9's four lanes: Priya, the Burger House, Salesforce's entrance, and Salesforce's token endpoint and API. Before anything, trust is set up once between the Burger House and the app in Salesforce, with a certificate or an identity provider both trust, and the app says who the Burger House may act as. Priya isn't there: asleep, away, or never signs in. Step 1: her standing order is due at night, her drink from the festival. Nobody signs in, so Salesforce's login page isn't used. Step 2: the Burger House presents something signed, naming Priya, at the token endpoint, which checks the signature and who it names; the check passes and it returns an access token, with no refresh token. Step 3: the Burger House fetches her drink from the API as Priya, with her access and her name on changes, and gets what Priya may see. Footnote: chapter 9's lanes with nobody home; one step at the token endpoint, and no refresh token. {"author": "Steve Simpson", "blueprint": "1.0.0", "builder": "standard 1.58.0", "built": "2026-11-05", "id": "DGM-IAM-AS-01", "rights": "\u00a9 2026 Twinshark LLC. All rights reserved.", "template": "cells 0.5.0", "theme": "stevetecharc 1.4.0"} PRIYA THE BURGER HOUSE SALESFORCE: THE ENTRANCE SALESFORCE: TOKEN ENDPOINT AND API Before: trust set up a certificate, or an identity provider both trust The app in Salesforce who the Burger House may act as Priya: not there asleep, away, or never signs in 1. Her standing order is due at night: her drink from the festival Nobody to sign in the login page isn't used 2. Presents something signed naming Priya The token endpoint checks the signature and who it names 3. Fetches her drink as Priya: her access, her name on changes The API what Priya may see set up once who it may act as signed, naming Priya access token, no refresh the access token her data Chapter 9's lanes, with nobody home: one step at the token endpoint, and no refresh token. HOW TO READ IT Salesforce the check passes © 2026 Twinshark LLC · stevetecharc.com
Click to enlarge

Five modules, each standing on its own, and a practice.

  1. Nobody Home Two answers that don’t work; the empty lane; the trust comes first; three tools, one shape.
  2. The Golden Pass An approved vendor; inside the envelope; on the wire; who it may act as; when to use it.
  3. Borrowed Trust The security team said no; into Salesforce, the same way; two flows with almost the same name; choosing.
  4. Token Exchange Signed in, somewhere else; the swap; the handler, chapter 10 again; on the wire; where it fits.
  5. The Asset Token Things, not people; how a device gets one; not the device flow.

Then the practice: the golden pass by hand, from the certificate to a change recorded as Priya.

Check what stuck with the study guide.

Integration Architect names JWT bearer for integrations too, in its chapter 13, module 5.

  • Whether a change must carry a named person, or the integration user is fine.
  • Whether to create a new trust or borrow one: a golden pass, or an identity provider both sides trust.
  • Exactly who a system may act as: a permission set with only those users, never a profile, never an admin.
  • Where the private key lives, and who can reach it.
  • What a token exchange handler trusts, and whether it may create users.

Beyond the exam: what AI changes. An agent acting for Priya while she’s away is this chapter’s problem again: whose name is on the change, and who said it could act as her. Chapter 17 takes it further.

Each module lists its own sources, each checked 2026-11-07. Two to start with:

Next: Getting Users In and Out: Provisioning.