Introduction
A JSON Web Token (JWT) is a compact, URL-safe way of passing claims between two parties, defined by the IETF in RFC 7519. The claims are a JSON object. That object is either the payload of a JSON Web Signature (JWS), which signs it or protects it with a message authentication code, or the plaintext of a JSON Web Encryption (JWE), which encrypts it.
Tokens are mostly sent in web requests; the media type is application/jwt. Do not paste a
live token into an online service: whoever holds it may be able to use it.
Structure
Text. A token uses the JWS or JWE Compact Serialization: several base64url-encoded parts joined by full stops. How many parts there are depends on whether it is a JWS or a JWE.
Not described
Known, not yet covered
- Reference: the layout of the format is not yet described here: the parts of a signed and of an encrypted token, the header parameters, the registered claims and the algorithms are defined in the RFCs.
- Viewer: the site has no viewer for this format.
Links
Reference
- RFC 7519 – JSON Web Token (JWT)