Browser history leakage
11Codes and tokens in visited URLs can remain in history, where someone with device access may find them.
Resource access should not distribute tokens through visited addresses.
Key idea: Never put access tokens in URI queries.
Rules & examples
Never put access tokens in URI queries.
- Clients MUST NOT pass access tokens in URI query parameters.
- Code replay prevention and transaction binding reduce the value of a code found in history.
- Authorization code and form post responses can reduce front-channel credential exposure.
The implicit grant can also leave tokens in URL fragments in browser history. The drawing represents local history access; it does not imply any website can read the browser’s full history.
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.