Refresh token protection
22Refresh tokens can mint future access. Rotation makes reuse visible; sender constraints make possession alone insufficient.
Stop further refreshes and require a new authorization grant.
Key idea: Bind or rotate. Detect and stop reuse.
Rules & examples
Bind or rotate. Detect and stop reuse.
- Servers MUST risk-assess refresh-token issuance and bind issued tokens to consented scopes and resource servers.
- For public clients, servers MUST use sender-constrained refresh tokens or rotation to detect replay.
- With rotation, invalidate the previous token and retain the relationship. Reuse triggers revocation of the active refresh token. Tokens SHOULD expire after inactivity.
Rotation does not identify the thief: either the client or attacker can present the old token first. Detection revokes the active refresh token and requires a fresh grant. Security events such as logout or password changes MAY also trigger revocation.
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 need replay protection. Rotation invalidates the previous token, retains its relationship, and revokes the active refresh token when reuse is detected.
Read the updated RFC section ↗