Skip to content
CORE/learn/auth-models
BACK_TO_MAP
DOMAIN::securityAPI Security & Auth

Authentication (Keys, OAuth, JWT)

"Verifying who the user is."

Real_World_Analogy

A passport (JWT) or a physical key (API Key) used to gain entry.

Constraints_&_Tradeoffs

  • Authentication says who is calling; authorization says what they are allowed to do.
  • A credential is only as strong as its verification and its expiry — an unverified token is just a string.
INTERACTIVE_TRACE
TRACE::CREDENTIAL_GATE_CHAIN
METHOD::CREDENTIAL_GATE_CHAINauth-models
PRESENTED_CREDENTIAL
AUTHN_VS_AUTHZ

the first gates only establish *who* is calling; the scope gate decides *what* they may do. Different questions, different failure codes.

GATE_CHAIN::SHORT_CIRCUITRESPONSE::200 OK
01credential present
AUTHENTICATION
pass
02credential verifies and has not expired
AUTHENTICATION
pass
03scope permits this operation
AUTHORIZATION
pass
04handler runs
HANDLER
pass
200 OKevery gate cleared — the handler finally runs

Illustrative_Specimen

GET /orders HTTP/1.1
Authorization: Bearer <token>
---
401 Unauthorized  credential missing, malformed or expired
403 Forbidden     credential valid, permission missing

Placeholders in <angle-brackets>. Illustrative message shapes, not a description of any specific API.