Visual RFC.
ALL RFCs / RFC 8252
Read the RFC ↗
RFC 8252 / NATIVE-APP AUTHORIZATION

Bind the response to the app’s request

07

A callback arriving on the device must correspond to an outstanding authorization request.

RFC 8252 · § 8.9EXAMPLE
3 / 3
03
Reject a callback without a pending match.

Do not attach foreign authorization to the current app session.

Bind the response to the app’s requestA native app saves state B and its issuer-specific callback. A forging app sends state A to that callback. The app compares A with B and rejects the mismatch before attaching a session.Bind the response to the app’s requestApp saved this pending requeststate: B (example random value)callback: com.example.app:/cb/issuer-BForging appForged callback to the original appreturned state: Acallback: com.example.app:/cb/issuer-BAppApp compares returned A with saved Bcallback attemptA ≠ B: reject; no session attachment

Key idea: Reject unsolicited or mismatched callbacks.

Terms

Look up a term in the glossary ↗

Rules & examples
  • 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
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
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.

What changed
RFC 8252 § 8.10RFC 9700 § 4.4.2

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 ↗

All chapters in RFC 8252

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗