Derive the S256 challenge
02The challenge commits the request to the verifier without sending that verifier to the authorization endpoint.
Send the resulting challenge with code_challenge_method=S256.
Key idea: S256 is BASE64URL(SHA256(ASCII(verifier))).
Rules & examples
S256 is BASE64URL(SHA256(ASCII(verifier))).
- S256 is BASE64URL(SHA256(ASCII(verifier))).
- A client capable of S256 must use it.
- The plain method has narrower protection and must not be a fallback after S256 fails.
The illustration is schematic. Example values are illustrative; profiles and later security guidance can add requirements.
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.