Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 1.84 KB

processPushedAuthorizationResponse.md

File metadata and controls

32 lines (20 loc) · 1.84 KB

Function: processPushedAuthorizationResponse()

💗 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.


processPushedAuthorizationResponse(as, client, response): Promise<PushedAuthorizationResponse>

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

Parameters

Parameter Type Description
as AuthorizationServer Authorization Server Metadata.
client Client Client Metadata.
response Response Resolved value from pushedAuthorizationRequest.

Returns

Promise<PushedAuthorizationResponse>

Resolves with an object representing the parsed successful response. OAuth 2.0 protocol style errors are rejected using ResponseBodyError. WWW-Authenticate HTTP Header challenges are rejected with WWWAuthenticateChallengeError.

See

RFC 9126 - OAuth 2.0 Pushed Authorization Requests (PAR)