Refresh without another prompt
09A refresh token returns to the authorization server, never to the resource server as an access credential.
Do not send refresh tokens to resource servers.
Key idea: Keep renewal authority at the token endpoint.
Rules & examples
Keep renewal authority at the token endpoint.
- The client sends grant_type=refresh_token and authenticates when required.
- Requested scope cannot exceed the scope originally granted.
- If the server returns a new refresh token, the client discards the old one and replaces it.
The 2012 framework allowed refresh-token replacement. The later BCP makes replay protection a requirement for public-client refresh tokens.
Sources
New to this? Start hereA quick picture + helpful background
A key is different from permission.
An app, a person, and a server have different roles. Follow who asks, who grants permission, and who checks the credential. A key in the drawing is an analogy, not a literal protocol field.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.
Public-client refresh tokens must be sender-constrained or rotated to detect replay. Rotation invalidates the previous token and retains its relationship.
Read the updated RFC section ↗