Retire unsafe grants
03Avoid tokens in the front-channel response. Never collect the resource owner’s password through the password grant.
The back-channel exchange enables code replay checks and sender-constrained tokens.
Key idea: Prefer the code flow; retire the password grant.
Rules & examples
Prefer the code flow; retire the password grant.
- The resource owner password credentials grant MUST NOT be used.
- Clients SHOULD NOT use implicit or other responses issuing access tokens at the authorization endpoint, unless injection and leakage are mitigated.
- Clients SHOULD use code or a response that issues access tokens at the token endpoint.
The distinction matters: the password grant is prohibited; implicit carries a SHOULD NOT with stated conditions. Password grants also obstruct multi-step authentication and origin-bound credentials.
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 password grant is now prohibited (§ 2.4). Implicit and other front-channel token responses are discouraged unless injection and leakage are mitigated (§ 2.1.2).
Read the updated RFC section ↗