Skip to main content

Auth Gateway Reference

An Auth Gateway is the identity provider (IdP) of an environment, compatible with OpenID Connect and issuing JWT access tokens. The applications registered with it as clients obtain the tokens your APIs ask for.

It issues tokens to applications, with the OAuth 2.0 client credentials flow. It is not a sign-in page for people: for that, see Sign In with an Identity Provider.

Rationale: What an auth gateway does.

Create an auth gateway​

Open API Manager, go to Auth Gateways, then create one.

FieldWhat it is
Gateway & Access PointThe gateway and the access point the service is reached through, and the host name it answers on, such as auth.example.com. Only an HTTPS access point can carry it.
VersionThe version of the Auth Gateway to run.
The address is the issuer

Tokens are issued in the name of the address you choose here: https://auth.example.com. APIs that check the tokens are given that same address. Changing it later means every token already issued is refused.

The gateway ends the encryption with the certificate of its access point; nothing has to be installed on the Auth Gateway.

Issuer, token endpoint, JWKS and discovery URLs​

The page of an auth gateway lists the addresses applications and APIs need:

AddressExampleUsed by
Issuerhttps://auth.example.comAn API that checks tokens
Token endpointhttps://auth.example.com/api/oidc/tokenAn application asking for a token
Signing keyshttps://auth.example.com/jwks.jsonAn API checking the signature of a token
Discoveryhttps://auth.example.com/.well-known/openid-configurationSoftware that configures itself
Introspectionhttps://auth.example.com/api/oidc/introspectionAsking whether a token is still valid

The discovery document is also shown on the page, ready to copy.

Gateway Settings​

Once created, an auth gateway is tuned through four settings. Only Clients is required for it to issue tokens.

SettingWhat it setsDefaults
ClientsThe lists of clients the service reads. Several lists can be chosen: their clients are gathered.None
SessionsHow long a session lasts and how long it survives unused, and whether the service keeps what it remembers across restarts.1 h, 5 min idle, nothing kept
ResourcesThe CPU and memory the service is given.50m / 64Mi requested, 1 CPU / 256Mi at most
LoggingHow much it logs: info, debug or trace.Info

Clients​

Choose one or several lists. A list that is not yet available in the environment is offered apart, with what makes it available. New list of clients creates one (empty) and selects it.

  • A client may be in one list only.
  • Until a list with at least one client is attached, the service issues no token.
  • A change in a list is picked up within a couple of minutes, without a restart. If a change makes a list unreadable, the service keeps the lists it was using.

Session persistence​

By default the service starts from an empty memory each time it restarts: the tokens it issued stay valid until they expire, but it no longer knows which ones were revoked.

Turn Keep data across restarts on to reserve space for that data. The reserved space can be raised later, never lowered.

Logging​

Trace logs everything, in very large volumes. It is meant for working out why one request was refused, not for leaving on. Changing the level restarts the service.

Next steps​