Tokens you verify, not trust

Lesson 6 of 27 · Access and identity · 2 min Get the course to watch

Here is a login system anyone can walk into without a password. The assistant wrote it to read the user id out of a token, and it did, from a token the attacker wrote themselves.

The flaw is a single idea. The token announces how it should be checked, and the code believed it, which is like letting a visitor tell the guard which ID card to accept.

The rest of this lesson

  • A token describes itself
  • Watching it happen
  • Fix you choose the algorithm
  • Check the claims too
  • Two assistant habits to catch
  • What to keep

The full lesson is animated and narrated, with a short quiz, and you can pause it to ask a question. It comes with Secure the code AI writes.