OAuth 2.0 Flow Selection: Authorization Code vs Client Credentials
Choose OAuth 2.0 Authorization Code Flow for user data and Client Credentials Flow for machine-to-machine access.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Choose OAuth 2.0 Authorization Code Flow for user data and Client Credentials Flow for machine-to-machine access.
Authorization codes travel through browser redirects and can be intercepted. PKCE makes a stolen code useless — here's the mechanics, a verifiable worked example, and why it belongs on confidential clients too.
A decision guide for adopting PKCE (RFC 7636) in OAuth 2.0 authorization code flows for public clients. Covers S256 vs. plain, implementation steps with code examples, validation checklist, and server-side enforcement requirements.
An architecture note on Authorization Code flow with PKCE for public browser and mobile clients: the minimal design, trust boundaries, operational checks, failure modes, and when to redesign.
PKCE binds an OAuth authorization code to the client that requested it, so an intercepted code cannot be exchanged for tokens. Here is the mechanism, a local test exchange, and the trade-offs.