Security · Intermediate · 11 min

Authentication

Separate signing in from the authority to perform a business operation.

STEP 1 / 12
Expose stored plaintext credentials — isometric concept diagramPassword verification should not require reversible password storage. Components: 1. Browser. Representative clients, not a literal user count; 2. Authentication service. Logical component or processing boundary; 3. Identity records. Durable or explicitly scoped state. Connections: 1. Browser to Authentication service: Expose stored plaintext credentials; 2. Authentication service to Browser: Reply: Authentication service; 3. Authentication service to Identity records: Expose stored plaintext credentials; 4. Identity records to Authentication service: Reply: Identity records. Illustrations are conceptual, not deployed capacity or user counts.Browser → Authentication service: Expose stored plaintext credentials1Authentication service → Browser: Reply: Authentication service2Authentication service → Identity records: Expose stored plaintext credentials3Identity records → Authentication service: Reply: Identity records4Browser: Representative clients, not a literal user count1BrowserRepresentative clients, not aliteral user countAuthentication service: Logical component or processing boundary2AuthenticationserviceLogical component or processingboundaryIdentity records: Durable or explicitly scoped state3Identity recordsDurable or explicitly scoped state
1Browser2Authentication service3Identity records
  1. 1Browser → Authentication serviceRequestExpose stored plaintext credentials
  2. 2Authentication service → BrowserReplyReply: Authentication service
  3. 3Authentication service → Identity recordsRequestExpose stored plaintext credentials
  4. 4Identity records → Authentication serviceReplyReply: Identity records

Conceptual illustration · figures do not imply user counts, deployed capacity or replica counts.

3 components visible · Browser + Authentication service + Identity records highlighted

Orange: request / query · Blue: reply · Purple: event / control · Arrows show direction; speed is illustrative.

You’ll learn

  • Protect credential transport and stored verifiers.
  • A session needs a lifecycle and protected transport.
  • Recovery and revocation belong in the identity lifecycle.

PUT THE IDEA TO WORK

From learning to practice

No related challenges are currently available. Browse practice

RELATED PATTERNS

Client–Server ↗

Further reading

OWASP · Authentication ↗

OWASP · Session management ↗