IntrospectionConfig

Configuration for introspectionVerifier.

Members

Variables

audience
string audience;

The required audience (the RFC 8707 resource). When set, a token whose introspection response does not list it among its audiences is rejected.

authMethod
TokenEndpointAuthMethod authMethod;

How the resource server authenticates at the introspection endpoint: clientSecretBasic (HTTP Basic, the default) or clientSecretPost (credentials in the form body).

cacheTtl
Duration cacheTtl;

Optional TTL for caching positive (active:true) introspection results, keyed by the raw token. Zero (the default) disables caching. Caching trades revocation latency for performance: a token revoked at the AS, or one whose own exp is sooner than the TTL, may be served as valid from cache until the entry expires. Entry expiry is clamped to the token's exp (RFC 7662) when present, so the staleness window never outlives the token itself.

clientId
string clientId;

The resource server's client identifier registered at the AS, used to authenticate the introspection request.

clientSecret
string clientSecret;

The resource server's client secret at the AS.

introspectionEndpoint
string introspectionEndpoint;

The authorization server's RFC 7662 introspection endpoint (POSTed to).

requiredScopes
string[] requiredScopes;

Scopes the token must carry. All must be present in the introspection response scope for the token to be accepted.