Lukas Gamper, uSystems GmbH
JSON Web Token (JWT) defines a compact and self-contained way for securely transmitting information between parties as a JSON object.
This information can be verified and trusted because it is digitally signed.
Information Exchange: JSON Web Tokens are a good way of securely transmitting information, because JWTs are signed
xxxxx.yyyyy.zzzzz
{
"alg": "HS256",
"typ": "JWT"
}
Claim types:
{
"sub": "1234567890",
"name": "John Doe",
"admin": true
}
HMACSHA256(
base64UrlEncode(header) + "." +
base64UrlEncode(payload),
secret)