Flow 1 of 2
Authorization code (the grant you should still use)
- 1
Client redirects the resource owner to the authorization endpoint with response_type=code, client_id, redirect_uri, scope, state (and in any modern deployment, PKCE).
- 2
Resource owner authenticates at the AS and consents.
- 3
AS redirects to redirect_uri with code (and state).
- 4
Client POSTs grant_type=authorization_code, code, client authentication, and (in 6749) redirect_uri to the token endpoint.
- 5
AS returns access_token and optional refresh_token. Client calls the RS with the access token.
OAuth 2.1 removes redirect_uri from the token request because PKCE replaced its injection-defense job. Mixed 2.0/2.1 servers may still require it.