Private-use callback schemes
03A domain-based custom URI scheme lets the operating system return a code to an installed app.
The native app validates its pending transaction and redeems the code.
Key idea: Use a collision-resistant scheme, then still use PKCE.
Rules & examples
Use a collision-resistant scheme, then still use PKCE.
- 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
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.