Authentication
Cheat sheet · https://pcornel.dk/topic.php?topic=4749
Answer
Web authentication verifies users with passwords plus MFA, passkeys or SSO, with rate limiting, secure password storage, generic error messages and protection against credential stuffing.
Remember
- Combine passwords with MFA or use passkeys.
- Rate limit and detect credential stuffing.
- Use generic error messages.
First checks
- Login flow test (lockout, MFA) — controls
- Password reset flow review — token security
- Authentication logs — failures
Verify in this order
login → credential/MFA check → session
Where it usually breaks
First mismatch in asset/subject identity → trust/authentication → authorization/policy → enforcement/control → telemetry/detection → protected outcome/response; preserve identity/policy/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4749