Skip to content

SSO or OAuth? Choosing the Mechanism

Chapter 5 of Securing Salesforce: Identity and Access, Part 1: Who Are You? The last chapter of Part 1. New to the course? Start with chapter 1.

Here’s the question for this chapter. Single sign-on and OAuth both get someone into Salesforce. Both use a token, a redirect, and some trust set up in advance. So how do you know which one a situation needs?

Chapter 4 showed what single sign-on is: one identity provider, and a browser that carries every message. This chapter steps back before any flow is taught step by step, and chooses the door. It takes two questions, and a third when nobody’s there.

  • Two questions choose the door. Who starts it: a person, a process or a device? And what does it reach: Salesforce’s own pages, or its data through the API?
  • A third question when no one’s there: whose name does the work run under, one integration user or a chosen person?
  • Log in, single sign-on and OAuth are three answers, not three rivals. Every road ends at the same place: a session, or an access token.
  • Only arrows from the browser means single sign-on. A person in a browser on Salesforce’s own pages logs in or uses single sign-on, and never needs OAuth.
  • One system calling another needs OAuth. The little line from an app or another server to Salesforce’s API. With the person there, it’s the web server flow with PKCE.
  • Never hand an app a password. OAuth gives it a limited, revocable token instead. The user-agent and username-password flows are retiring on 2027-02-20.
  • First ask: should we just use the integration user? One user per integration, on the client credentials flow, and every change says so.
  • Acting as a named person takes much more trust. JWT bearer is the golden pass, “very powerful, and dangerous”; the SAML bearer assertion uses an identity provider you already trust.
  • Devices start it themselves. The device flow, with a person approving a code on another screen; the asset token flow for connected things.
  • One table, one grid. The decision table chooses the door; the master grid shows every way to sign in that the course teaches, and each later chapter shows its own row.

Here’s the map the chapter turns on: who starts it on the left, what it reaches on the arrow, and the door on the right.

Who starts it, and what does it reach? Two columns. On the left, who starts it: a person in a browser, on a computer, a phone or a tablet; a person with a mobile app; a person on another web server that reaches into Salesforce for her; a process, as one integration user; a process, as a chosen person who isn't there; a device, which a person approves; and a connected thing, an asset in the org. An arrow from each says what it reaches and ends at its door. The person in a browser reaches Salesforce's own pages: log in, or single sign-on, with no OAuth, the only door without it. Everything else reaches the API with an OAuth flow: the mobile app and the other web server, the web server flow with PKCE; the integration user, the client credentials flow; the chosen person, the JWT bearer flow or the SAML bearer assertion flow; the device, the device flow; the connected thing, the asset token flow. Footnote: first ask who starts it, then ask what it reaches. {"author": "Steve Simpson", "blueprint": "1.0.0", "builder": "standard 1.58.0", "built": "2026-11-03", "id": "DGM-IAM-CD-01", "rights": "\u00a9 2026 Twinshark LLC. All rights reserved.", "template": "cells 0.5.0", "theme": "stevetecharc 1.4.0"} WHO STARTS IT THE DOOR A person in a browser on a computer, a phone or a tablet A person with a mobile app A person on another web server that reaches into Salesforce for her A process, as one integration user A process, as a chosen person who isn't there A device and a person approves it A connected thing an asset in the org Log in, or single sign-on no OAuth OAuth: web server flow with PKCE OAuth: web server flow with PKCE OAuth: client credentials flow OAuth: JWT bearer flow or the SAML bearer assertion flow OAuth: device flow OAuth: asset token flow Salesforce's own pages the API the API, for her the API the API, as her the API the API First ask who starts it. Then ask what it reaches. HOW TO READ IT the only door without OAuth © 2026 Twinshark LLC · stevetecharc.com
Click to enlarge

Only one row goes without OAuth: a person in a browser, on Salesforce’s own pages. Everything else reaches the API. The mechanism follows the situation, and you can be right before you’ve opened Setup.

Seven modules, each standing on its own.

  1. Who Starts It, and What Does It Reach? Two words that sound the same; the two questions; both roads lead to the session token; the third question when no one’s there; the map.
  2. A Person in a Browser: Log In, or Single Sign-On The whiteboard: browser to system A, browser to Salesforce, then the identity provider; only arrows from the browser; why there’s no OAuth in this row.
  3. A Person Through an App or Another Server: OAuth The little line; why not give it her password; the web server flow with PKCE; the user-agent flow, retiring; the refresh token; the token exchange flow.
  4. No Person There: The Integration User, or a Chosen Person When the browser goes away; client credentials and one user per integration; JWT bearer, the golden pass; the SAML bearer assertion, and a story about SAP; the question to ask.
  5. Devices and Things The smart TV and the device flow, tightened in 2026; connected things and the asset token flow.
  6. The Decision Table Three questions, one table; every way in, on one grid; what’s leaving, with its dates; how to use it on a real project.
  7. Checkpoint 1: Steve Trucking Six groups that sign in, the lines, and a door for each. It’s usually a blend.

The order follows the map, top to bottom: the person in a browser, the person through an app, the process with no one there, and the devices. Then the whole map in one table, and a real company to try it on.

Check what stuck with the study guide.

  • Every way into the org, listed: every group of people, every app, every integration, every device.
  • For each one: who starts it, and what it reaches.
  • For every process: whose name it runs under, an integration user or a chosen person, with the reason written down.
  • The door for each, from the decision table: a login, single sign-on, or an OAuth flow.
  • No passwords handed to apps, and no new work on the user-agent or username-password flows.
  • For acting as a person: JWT bearer or the SAML bearer assertion, and which users can be named.
  • Everything on the “leaving” list, with an owner and a date to move it.

Beyond the exam: what AI changes. An agent acting for Priya is a process acting as a chosen person: the second half of the map, where the person isn’t there. So the same questions apply, and they matter more. Whose name does the agent run under? Who said it could? How much can it do as her? The token exchange flow is one way a person’s identity is passed along between services. Chapter 17 takes the questions all the way through, for agents.

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

Next: Salesforce as the Service Provider: SAML, the start of Part 2.