Oauth Web Server Flow: Details and Demo
Updated 2026-11-07
What's changed since the video
Each change is dated and checked against Salesforce's own documentation.
- Add PKCE. The demo's requests have no code challenge or verifier. From July 2026, new apps must use PKCE (OAuth Security Controls Are Enforced for New External Client Apps and Connected Apps, Summer '26 release notes, checked 2026-11-07).
- Connected apps: new ones need Salesforce Support. The video sets things up in a connected app. Since Spring '26, creating a connected app is turned off by default in new orgs and needs a request to Salesforce Support; the new way is an external client app (New Connected Apps Can No Longer Be Created in Spring '26, Salesforce Help, checked 2026-11-07). Existing connected apps keep working.
Still right
- The steps: the authorize request with the client ID, the callback URL and `response_type=code`; the login; the code on the callback; the token request with the code, the client ID and the secret.
- The callback URL must match on both sides.
- The access token goes in the `Authorization: Bearer` header.
All videos in this series: Identity & Access
A video loads from YouTube only when you click it.