Skip to main content
JWTAuth validates Bearer JSON Web Tokens using JWKS, an OIDC issuer, or a static public key, and produces a principal on success.
JWTAuth is defined in the policy schema but is not executed by the policy engine yet.

Fields

string
URL of the JWKS endpoint for token verification.
string
OIDC issuer URL. Frontline discovers the JWKS URI from the issuer’s .well-known/openid-configuration.
bytes
PEM-encoded public key for token verification. Use this for static key pairs.
string
Required iss claim value.
string[]
Allowed aud claim values.
string[]
Allowed signing algorithms.
string
Claim used as the principal subject. Defaults to sub.
bool
When true, requests without a token are allowed through without setting a principal.
int64
Tolerance for time-based claim validation (exp, nbf, iat), in milliseconds.
int64
How long to cache the JWKS response, in milliseconds.

Examples