Authentication vs Authorization
Two questions, asked at two different places: who is calling (authentication) and what may they do (authorization). The platform answers them separately for the console and for the APIs you expose.
Console access
This is about the people and programs that manage the platform.
| Authentication | Authorization | |
|---|---|---|
| Question | Who is signing in? | What may they manage? |
| Mechanism | Sign-in, optionally through an identity provider, with a second factor | Roles granted on projects, optionally restricted to environments |
| Managed in | Access Manager: Users, Identity Providers, MFA Policy, Settings | Access Manager: RBAC |
| For programs | Service accounts | The same roles |
Exposed APIs
This is about the applications and people that call the APIs you publish.
| Authentication | Authorization | |
|---|---|---|
| Question | Which application or person is calling the API? | Is this call allowed? |
| Mechanism | A security policy rule: JWT, OIDC, API key, Basic | Audience check, IP rules, external authorization |
| Credentials issued by | An auth gateway to registered clients, or your identity provider | — |
| Enforced by | The gateway, before the request reaches the service | The gateway; then the service for business rules |
A role in Access Manager gives no right to call an API, and a token for an API gives no right to manage anything in the console. A developer who manages an API still needs a client to call it.
What the JWT rule verifies
The gateway checks that a token is genuine and meant for this API. It does not interpret what the token says about the caller.
| Verified by the gateway | Left to you |
|---|---|
| Signature, against the keys of the issuer | Scopes and custom claims |
Issuer (iss) and expiry (exp) | Per-resource rules: "this customer, this order" |
Audience (aud), when the check is on | — |
For decisions on other claims, use external authorization, or check them in the route.
The API key and Basic rules can forward the identity of the caller in a header. Remove that header from incoming requests first. See Route filters.