Bind the response to the app’s request
07A callback arriving on the device must correspond to an outstanding authorization request.
Do not attach foreign authorization to the current app session.
Key idea: Reject unsolicited or mismatched callbacks.
Rules & examples
Reject unsolicited or mismatched callbacks.
- Use a high-entropy state value and match it against a pending request, as recommended here.
- For multiple authorization servers, § 8.10 requires a unique redirect URI per server and recording that URI in the session.
- All exact redirect checks remain necessary.
The later OAuth security BCP describes issuer identification as the preferred mix-up defense and distinct redirect URIs as a fallback.
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.
Later mix-up guidance describes checking the response issuer (iss); distinct redirect URIs should be used when other options are unavailable.
Read the updated RFC section ↗