Skip to content
StackDecode
System Design
13. Security ArchitectureAnimated

Multi-Factor Authentication (MFA)

Two or more proofs of identity.

The idea

Combine something you know, have and are.

Watch it work

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

UserAppAuthenticatorusername + password
  • current message
  • earlier
  • failure or attack

First factor: something you know.

step:
1/6
from:
User
to:
App
1/6

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

Step by step

  1. 1Enter the password
  2. 2Server asks for a second factor
  3. 3User supplies a code or key
  4. 4Access is granted

Where it is used

Account protection.

Watch out for

SMS codes can be intercepted. Prefer authenticator apps or security keys.

Related