Table of Contents

Class KeycloakTokenIntrospectionOptions

Namespace
Keycloak.AuthServices.Authorization.TokenIntrospection
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

string

Properties

CacheDuration

Cache duration for introspection results. Default is 60 seconds.

public TimeSpan CacheDuration { get; set; }

Property Value

TimeSpan

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; }

Property Value

Action<ClaimsIdentity, Dictionary<string, JsonElement>>