deno.land / x / oauth4webapi@v1.2.2 / docs / functions / processIntrospectionResponse.md

processIntrospectionResponse.md

Function: processIntrospectionResponse

💗 Help the project

â–¸ processIntrospectionResponse(as, client, response, options?): Promise<IntrospectionResponse | OAuth2Error>

Validates Response instance to be one coming from the as.introspection_endpoint.

see RFC 7662 - OAuth 2.0 Token Introspection

see draft-ietf-oauth-jwt-introspection-response-12 - JWT Response for OAuth Token Introspection

Parameters

Name Type Description
as AuthorizationServer Authorization Server Metadata.
client Client Client Metadata.
response Response Resolved value from introspectionRequest.
options? HttpRequestOptions -

Returns

Promise<IntrospectionResponse | OAuth2Error>

Resolves with an object representing the parsed successful response, or an object representing an OAuth 2.0 protocol style error. Use isOAuth2Error to determine if an OAuth 2.0 error was returned.

oauth4webapi

Version Info

Tagged at
2 years ago