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

Private-use callback schemes

03

A domain-based custom URI scheme lets the operating system return a code to an installed app.

RFC 8252 · § 7.1EXAMPLE
3 / 3
03
Launch the app with the callback.

The native app validates its pending transaction and redeems the code.

Private-use callback schemesA domain-based custom URI scheme lets the operating system return a code to an installed app. Current state: Launch the app with the callback..Private-use callback schemescom.example.app:/callbackoperating-system URI dispatchAppregistered schemeOther appscheme collisionPKCE still required

Key idea: Use a collision-resistant scheme, then still use PKCE.

Terms

Look up a term in the glossary ↗

Rules & examples
  • The app MUST base its scheme on a domain under its control, expressed in reverse order.
  • A callback such as com.example.app:/oauth2redirect uses a private-use scheme.
  • Multiple apps may register the same scheme; the scheme alone is not proof of the receiver’s identity.

The extra app interception risk is why choosing a scheme does not replace PKCE.

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.

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 ↗