callTokenIntrospection

Calls the token introspection endpoint (OAuth2AuthorizationServerMetadata.introspectionEndpoint) to check whether the given token is active, returns the response on success, otherwise throws InvalidToken.


suspend fun callTokenIntrospection(oauthMetadata: OAuth2AuthorizationServerMetadata, request: TokenIntrospectionRequest, token: String, popAudience: String, retryCount: Int = 0, issuerMetadata: IssuerMetadata? = null): TokenIntrospectionResponse(source)

Deprecated

token has never been used, as the token is part of request, and retries are handled internally, so retryCount is ignored

Replace with

callTokenIntrospection(oauthMetadata, request, popAudience, issuerMetadata)

Calls the token introspection endpoint (OAuth2AuthorizationServerMetadata.introspectionEndpoint) to check whether the given token is active, returns the response on success, otherwise throws InvalidToken.