Skip to content

11.1. Authentication and Authorization

Authentication answers “who are you”; authorization answers “what may you do” — and in a distributed system both must work for service-to-service calls, not just human logins, at every hop and without a shared session store. This chapter covers OAuth 2.0 and OIDC as the delegation and identity standards, JWT as the stateless token that carries claims across services, the API-key-versus-service-account choice for machine identity, and the RBAC and ABAC models for expressing what an authenticated principal is permitted to do.