onprema

JWTs

JSON Web Tokens

They contain three sections, separated by a .
They only contains characters from a base64-encoded set: A-Za-z0-9-_
The first two segments start with eyJ

It's base64-encoded JSON

eyJ = base64("{)



Sections:

  1. Header: describes the token itself -- how to read and validate it
  2. Payload: the token's data as a JSON object -- contains claims about the entity
  3. Signature: generated using the data from the header + payload, base64-encoded signature value, length varies based on algorithm and key

Claims -> statements about an entity, made by the token's creator, about a user or service


Use cases!

#security