Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 1.64 KB

File metadata and controls

29 lines (17 loc) · 1.64 KB

Function: processResourceDiscoveryResponse()

💗 Help the project

Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by becoming a sponsor.


processResourceDiscoveryResponse(expectedResourceIdentifier, response): Promise<ResourceServer>

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

Parameters

Parameter Type Description
expectedResourceIdentifier URL Expected Resource Identifier value.
response Response Resolved value from resourceDiscoveryRequest or from a general fetch following WWWAuthenticateChallengeParameters.resource_metadata.

Returns

Promise<ResourceServer>

Resolves with the discovered Resource Server Metadata.

See

RFC 9728 - OAuth 2.0 Protected Resource Metadata