Leave login to the browser
01The app delegates authentication to a separate browser security context.
The app receives delegated authority rather than the password.
Key idea: An external user-agent keeps credentials outside the app.
Rules & examples
An external user-agent keeps credentials outside the app.
- Native apps MUST NOT use embedded user-agents for authorization (§ 8.12).
- An external user-agent prevents the app from reading page contents and browser cookies.
- Browser-owned in-app tabs retain browser isolation; they are different from app-controlled webviews.
The visual placement of a browser tab inside an app does not determine the security boundary. Ownership and isolation do.
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.
The base framework described embedded and external options. This BCP requires the external user-agent pattern.
Read the updated RFC section ↗