A compact token comes apart
01A JWT carries a JSON claims set inside a JWS or JWE representation.
DIAGRAMRead RFC section 3 ↗
RFC 7519 · § 3EXAMPLE
4 / 4
04
Authenticate the protected bytes.
Use the intended algorithm and a trusted, appropriate key.
Key idea: Decoding is not verification.
Rules & examples
Decoding is not verification.
- Compact JWS has three period-separated parts; compact JWE has five.
- Base64url is an encoding, not encryption.
- A JOSE header describes the cryptographic operation; it is not a trusted policy by itself.
The examples simplify the wire representation. Follow the linked specification and application profile for implementation.
Sources
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
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.
Read the updated RFC section ↗