Authentication
A service must establish whether a caller controls the claimed identity.
- ClaimClaim: A subject claims an identity.
- ProofProof: A factor or credential proves control.
- SessionSession: The result is securely bound to later requests.
Context
Why this is important
Establish identity traceably at trust boundaries.
Establish identity traceably at trust boundaries.
Authentication: inspect the decision
The shop example uses the existing shared database and seven modules. Any added service or deployment model is a hypothetical extension. A customer signs in to the shop with a passkey. The identity provider verifies the cryptographic proof and issues a short-lived session token, which the shop validates on later requests. The order service now knows the authenticated user but still applies its order rules to decide which order may be shown. The team limits token lifetime, protects session cookies, and records failed sign-ins without storing secrets.
This is how you read the picture
- Claim Claim
- Proof Proof
- Session Session
| Concept | Meaning | Review question |
|---|---|---|
| Claim | A subject claims an identity. | How does the customer prove identity? |
| Proof | A factor or credential proves control. | Which trust checks occur before using a token? |
| Session | The result is securely bound to later requests. | Which question does sign-in alone not answer? |
Benefits & limitations
Helps if:
- Establish identity traceably at trust boundaries.
- Define identity proof, token trust, and session lifetime separately.
Boundaries
- A valid sign-in does not answer an authorization question.
- Identity credentials need secure issuance, validation, expiry, and revocation across the trust path.
In practice
- Document which passkey assertion the identity service verifies and which shop components receive a short-lived session token.
- Test invalid, expired, and revoked tokens as well as reauthentication; check that every shop request reliably validates identity and token issuer.
- Check cookie protections, token lifetime, and failure logs, and confirm that neither passkey secrets nor complete session tokens appear in logs.
Read the detailed explanation
Authentication verifies whether a user, service, or device controls the claimed identity. Credentials such as passkeys, certificates, or short-lived tokens are validated and an outcome is established for later interactions.
Authentication answers an identity question. It grants no business permission; that follows from a separate authorization decision and a clear trust model for tokens and sessions.
The shop example uses the existing shared database and seven modules. Any added service or deployment model is a hypothetical extension. A customer signs in to the shop with a passkey. The identity provider verifies the cryptographic proof and issues a short-lived session token, which the shop validates on later requests. The order service now knows the authenticated user but still applies its order rules to decide which order may be shown. The team limits token lifetime, protects session cookies, and records failed sign-ins without storing secrets. auth and authorization help compare this decision with adjacent concerns.
Check your understanding
Test yourself in three stages
ReadingCheck in the picture
How does the customer prove identity?
View the solution with justification
With a passkey, which establishes a short-lived shop session.
ApplyingTransferred to a new situation
Which trust checks occur before using a token?
View the solution with justification
Validate issuer, signature, audience, expiry, and revocation status.
EvaluateWeighing an alternative
Which question does sign-in alone not answer?
View the solution with justification
Whether the customer or support may change a particular resource.
Explore further
These building blocks continue the thoughts of this page.
References
- Authentication Cheat Sheet (opens in new tab)OWASP guidance on identity verification and sign-in protection.
- OpenID Connect Core 1.0 (opens in new tab)OpenID Connect standard for authentication on OAuth 2.0.
- OAuth 2.0 Security Best Current Practice (opens in new tab)Current IETF security recommendations for OAuth systems.