Class KeycloakTokenIntrospectionOptions
- Assembly
- Keycloak.AuthServices.Authorization.TokenIntrospection.dll
Options for Keycloak token introspection. Used to resolve full claim sets from lightweight access tokens.
public class KeycloakTokenIntrospectionOptions : KeycloakInstallationOptions
- Inheritance
-
KeycloakTokenIntrospectionOptions
- Inherited Members
Fields
Section
Default section name.
public const string Section = "Keycloak"
Field Value
Properties
CacheDuration
Cache duration for introspection results. Default is 60 seconds.
public TimeSpan CacheDuration { get; set; }
Property Value
OnTokenIntrospected
Optional delegate invoked after the default claim enrichment logic runs. Use this to add, remove, or transform claims from the raw introspection response.
public Action<ClaimsIdentity, Dictionary<string, JsonElement>>? OnTokenIntrospected { get; set; }