Skip to content

Who Starts It, and What Does It Reach?

Module 1 of 7 in the chapter SSO or OAuth? Choosing the Mechanism, chapter 5 of Securing Salesforce: Identity and Access. Each module stands on its own.

The question this module answers: Single sign-on and OAuth both get someone into Salesforce. So how do you know which one a situation needs?

There are two terms you’ll hear in every identity conversation: single sign-on and OAuth. And it’s hard to know when to use which. Both of them “log you in”. Both of them involve a token, a redirect, and some trust set up in advance. So people use them as if they were the same thing, or as if they were rivals and you had to pick a favorite.

They aren’t rivals. They answer different situations. Once you can see the situation clearly, the choice almost makes itself. And you can see it with two questions.

Every time something gets into Salesforce, something starts it. There are really only three kinds of starter.

  • A person. Priya sits down, opens her browser or picks up her phone, and goes to work. So it all begins with the human.
  • A process. A program on a server, with no one at the keyboard: a nightly load, an export, a middleware server reaching in at two in the morning. When I say “client” here, I don’t mean a customer. I mean a program, the client in client and server.
  • A device. A smart TV, an appliance, a sensor in a warehouse. It starts the conversation itself, and sometimes it needs a person to say yes.

The second question is where it’s going. There are two places to reach in Salesforce.

  • Salesforce’s own pages. Priya’s browser shows her Lightning pages, her records, her reports, drawn by Salesforce.
  • Salesforce’s data, through the API. Something else draws the screen, or there’s no screen at all. A mobile app, another web server, a nightly job: they ask Salesforce’s API for the data and do something with it.

Put those two questions together and you have the whole chapter. Only one combination goes without OAuth: a person in a browser, reaching Salesforce’s own pages. That person logs in, either directly with a Salesforce username and password, or through single sign-on, with an identity provider in charge of the login (chapter 4). Everything that reaches the API uses OAuth: an open standard for giving an app limited access to Salesforce, through a token, without handing it a password.

Here’s a picture I like to show before any of the detail. On one side, a person with a browser. On the other side, a client application: a mobile app, a server, any of a number of systems that want the data. Either side first reaches up to the authentication server, the security guard from the front door (chapter 2). Either side can be filtered there: TLS, multi-factor authentication, IP restrictions, a client certificate.

And it all leads to the session token. The browser gets a session for Salesforce’s pages; the client app gets an access token for the API, which is a session by another name. After that, authorization takes over: what can this person, or this program acting as someone, see and do?

So the difference between single sign-on and OAuth isn’t the destination. It’s the road there, and that depends on who’s driving and what they want to reach.

When a person starts it, the work runs under that person’s name. Priya’s changes say Priya.

When a process starts it, you have to decide whose name it runs under. That’s the third question, and it’s one of the two decision makers I always come back to: am I designating a person, or am I using an integration user?

  • An integration user: one user record set up for the integration itself. Every change it makes says “Integration User”.
  • A chosen person: the process acts as Priya, with Priya’s access, even though Priya isn’t there.

Each answer leads to a different OAuth flow, and module 4 takes them one at a time.

Here’s the map, with the starters on the left, what each one reaches on the arrow, and the door on the right. The top three rows begin with a person. The rest begin with a process, a device or a thing.

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

An OAuth flow is one recipe for getting the token: who asks, what they present, and what they get back. Salesforce supports a number of them, and each one fits a different row (S1). You don’t need to know their steps yet. Chapters 8 to 11 teach them. You need to know which row you’re in. And module 6 puts every one of them, with every way to sign in that this course teaches, on one grid.

Why spend a whole chapter on choosing, before learning a single flow? Because I’ve seen the other way round. A team learns one flow, likes it, and uses it for everything. Or someone reads that single sign-on is “more secure” and tries to use it for a nightly integration, which has no browser to redirect and no person to sign in.

The mechanism follows the situation. Ask who starts it and what it reaches, and you’ll be right before you’ve opened Setup.

Two of my 2023 videos go with this module: when to use single sign-on and when OAuth, and the words of OAuth, told at a beer garden. The note under each video says what’s still right and what’s changed since.

STA 3.9 · Salesforce Security & Identity Simplified: When to Use SSO & OAuth · 9:52 · published 2023-09-29 · plays from YouTube when you click it · Watch on YouTube · More videos: Salesforce Identity & Access Videos
STA 3.10 · Tap into Salesforce Security: Navigating OAuth Flows with a Beer Garden Analogy · 6:50 · published 2023-10-02 · plays from YouTube when you click it · Watch on YouTube · More videos: Salesforce Identity & Access Videos

Module 2 takes the top row: a person in a browser, and the moment the identity provider makes it single sign-on.

  • For every way into the org: who starts it, a person, a process or a device.
  • What it reaches: Salesforce’s own pages, or the data through the API.
  • For every process: whose name it runs under, an integration user or a chosen person.
  • And only then, which door: a login, single sign-on, or an OAuth flow.