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

processDiscoveryResponse.md

Function: processDiscoveryResponse

💗 Help the project

â–¸ processDiscoveryResponse(expectedIssuerIdentifier, response): Promise<AuthorizationServer>

Validates Response instance to be one coming from the authorization server's well-known discovery endpoint.

see RFC 8414 - OAuth 2.0 Authorization Server Metadata

see OpenID Connect Discovery 1.0

Parameters

Name Type Description
expectedIssuerIdentifier URL Expected Issuer Identifier value.
response Response Resolved value from discoveryRequest.

Returns

Promise<AuthorizationServer>

Resolves with the discovered Authorization Server Metadata.

oauth4webapi

Version Info

Tagged at
2 years ago