Authentication vs Authorization
Authentication answers: who are you? Authorization answers: what are you allowed to do? A user can be correctly authenticated and still be denied access to a product, tenant, or action.
Human Login Standards
| Term | Beginner definition | Where it appears |
|---|---|---|
| SSO | One login session used across multiple products. | Google account across Gmail and YouTube; company IdP across internal apps. |
| OIDC | OpenID Connect; a login layer on top of OAuth 2.0 that gives applications identity information. | Modern web and mobile login. |
| SAML | An older but widely used enterprise SSO standard using signed XML assertions. | Enterprise SaaS and corporate identity providers. |
Token Terms
| Term | Meaning | Common mistake |
|---|---|---|
| JWT | A signed JSON token containing claims such as subject, issuer, audience, expiry, and scopes. | Trusting the JSON without verifying the signature and issuer. |
| JWKS | A JSON Web Key Set; public keys used to verify JWT signatures. | Not caching keys or not handling key rotation. |
| Access token | A token a client presents to call an API. | Using it as a long-lived password. |
| Service token | A machine identity token used by one service to call another. | Sharing one token across many services. |
| Federated credential | A temporary credential issued because a trusted identity was exchanged for cloud or data-platform access. | Giving broad static credentials when short-lived scoped credentials would be safer. |
Claims That Matter
For production JWT validation, the minimum checks are signature, issuer, audience, expiry, and intended use. The sub claim names the subject. The iss claim names the issuer. The aud claim tells which application or API the token was meant for. The exp claim limits token lifetime.
Where Envoy Fits
Envoy can validate JWTs locally with JWKS through the JWT authn filter. Envoy can also call an external authorization service through the ext_authz filter. Full SAML and OIDC login flows usually involve an identity provider and an auth service; Envoy should be treated as the enforcement point, not the complete identity provider.