Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 1.98 KB

validateJwtAuthResponse.md

File metadata and controls

32 lines (20 loc) · 1.98 KB

Function: validateJwtAuthResponse()

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


validateJwtAuthResponse(as, client, parameters, expectedState?, options?): Promise<URLSearchParams>

Same as validateAuthResponse but for signed JARM responses.

Parameters

Parameter Type Description
as AuthorizationServer Authorization Server Metadata.
client Client Client Metadata.
parameters URLSearchParams | URL JARM authorization response.
expectedState? string | typeof expectNoState | typeof skipStateCheck Expected state parameter value. Default is expectNoState.
options? ValidateSignatureOptions & JWEDecryptOptions -

Returns

Promise<URLSearchParams>

Validated Authorization Response parameters. Authorization Error Responses are rejected using AuthorizationResponseError.

See

JWT Secured Authorization Response Mode for OAuth 2.0 (JARM)