Slide 9
Slide 9 text
JSON Web Token: Quick Intro
JSON Web Token is defined in RFC 7519, it is a mechanism of presenting claims between 2 parties, the
claims are signed using an algorithm, and only the two of them knows the secret key.
It consists of 3 parts { header }.{ payload }.{ signature } encoded in base64.
The derivative of JSON Web Token are: JSON Web Signature, and JSON Web Encryption. We are
using the earlier, because we have no need for encryption.
A typical JWT token would like like as follows:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOiIxMjM0NTY3OCJ9.ArJHWXBfkzeugVpshDEcHqsOIaqeR7CNH-SJCMZfZiw