Skip to main content

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.

AuthenticationAuthorization
QuestionWho is signing in?What may they manage?
MechanismSign-in, optionally through an identity provider, with a second factorRoles granted on projects, optionally restricted to environments
Managed inAccess Manager: Users, Identity Providers, MFA Policy, SettingsAccess Manager: RBAC
For programsService accountsThe same roles

Exposed APIs​

This is about the applications and people that call the APIs you publish.

AuthenticationAuthorization
QuestionWhich application or person is calling the API?Is this call allowed?
MechanismA security policy rule: JWT, OIDC, API key, BasicAudience check, IP rules, external authorization
Credentials issued byAn auth gateway to registered clients, or your identity provider—
Enforced byThe gateway, before the request reaches the serviceThe gateway; then the service for business rules
Two independent systems

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 gatewayLeft to you
Signature, against the keys of the issuerScopes 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.

Pass identity to the backend in a header

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.