Optional ReadonlyalgorithmsAlgorithm allowlist. Defaults to all five supported algorithms.
ReadonlyaudienceAudience that must appear in the token's aud claim.
Optional ReadonlyclockClock tolerance for exp/nbf/iat, in seconds, 0–300. Default 30.
ReadonlyissuerExact iss value this entry accepts.
ReadonlykeysKey-set source.
Optional ReadonlykeyKey-set cache timings, in milliseconds, each a finite positive number:
ttlMs (default 10 minutes) before a refetch, minRefreshIntervalMs
(default 60 s) between fetch attempts, fetchTimeoutMs (default 5 s, at most 2147483647) per
fetch, and maxStaleMs (default 24 hours) that the last good set stays
usable after it was last confirmed while fetches fail.
ReadonlynameUnique name, used in health output and logs.
Maps the verified claims to a principal. Return null to leave the request
anonymous. The plugin never guesses where a provider puts roles.
sub is unique only within its issuer. Whenever this issuer is not the
application's only identity source — another issuer, a self-issued jwt
(whose strategy also maps sub to the id), an API key, a session, or a
custom strategy — namespace the id (for example
`${claims.iss}|${claims.sub}`). Namespacing this side alone is not
enough when another source can produce an id of the same form (a
self-issued sub or a username a user chooses, say): namespace every
source (for example `local|${id}`), or keep the other sources' ids
free of the separator.
An identity provider whose access tokens this application accepts.
A token is routed to the entry whose
issuerequals itsissclaim exactly, then verified against that issuer's published key set.audienceis required: without it a token the same provider minted for a different API would be accepted.Since
0.8.0