00 /What You Will Learn
By the end you will be able to
- Say what a token is and why servers hand them out after login.
- Read the three parts of a JWT: header, payload and signature.
- Explain why the payload is not secret, and why it cannot be changed.
- Show what happens when a token is tampered with, forged with
alg: none, or expired. - Tell 401 from 403.
Before you start
Finish Lab 03 (HTTP, Caching and DNS) first. You should know what a header and a status code are. You do not need any security background.
Lab-only secret
The key that signs tokens in this lab is lab-only-secret. It is for practice on your own laptop. A real secret is long, random, and never written in code or committed to git.