Skip to content
StackDecode
System Design
13. Security ArchitectureAnimated

Authentication

Proving who you are.

The idea

Passwords, tokens, biometrics or certificates verify identity.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

BrowserServerSession storePOST /login
  • current message
  • earlier
  • failure or attack

The user logs in.

step:
1/6
from:
Browser
to:
Server
1/6

Time runs downward. Solid arrows are requests, dashed arrows are replies.

Step by step

  1. 1Present a credential
  2. 2Server verifies it
  3. 3Issue a session or token
  4. 4Check it on later requests

Where it is used

Logins and APIs.

Watch out for

Store passwords hashed with a slow salted hash, never in plain text.

Related