JWT anatomy: header.payload.signature
| Header | Payload | Signature |
|---|---|---|
Base64URL-encoded JSON describing alg, typ, and often kid. | Base64URL-encoded JSON claims about the subject and token. | Cryptographic integrity proof over the first two encoded segments. |
Signing formula: base64url(header) + "." + base64url(payload), signed with the algorithm declared in the header.
Worked mapping
eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0 → {"alg":"none","typ":"JWT"}eyJzdWIiOiIxMjMifQ → {"sub":"123"}eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJzdWIiOiIxMjMifQ. → unsigned test tokenJWT terminology and registered claims are defined by RFC 7519. Signing algorithms and key formats come from the JOSE family, including JWS (RFC 7515), JWK (RFC 7517), and JWA (RFC 7518).
