OAuth 2.0 authorization code flow with PKCE
OAuth 2.0 lets an app act for you without seeing your password. Here is every flow drawn step by step: authorization code with PKCE, with and without a client secret, the retired implicit flow, client credentials and the device flow, and which one to use.
Opens a copy in the editor, in a new tab, ready to change. No account needed.
What’s in this diagram
services and parts
- You (the resource owner)
- Client app (in a browser or on a phone)
- API (resource server)
- /authorize (sign-in and consent)
- /token endpoint
- Signing keys (JWKS)
groups
- Authorization server
Key points
- OAuth 2.0 is about authorization: what an app may do for you. Who you are is OpenID Connect's job.
- For any app with a user, use the authorization code flow with PKCE. It works with or without a client secret.
- The implicit flow and the password grant are retired. Don't build new apps on them.
- Use client credentials for service-to-service calls with no user, and the device flow for TVs and command-line tools.
The whole story, step by step: How OAuth 2.0 works: every flow, drawn out.


