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

validateAuthResponse.md

Function: validateAuthResponse

💗 Help the project

â–¸ validateAuthResponse(as, client, parameters, expectedState?): CallbackParameters | OAuth2Error

Validates an OAuth 2.0 Authorization Response or Authorization Error Response message returned from the authorization server's as.authorization_endpoint.

see RFC 6749 - The OAuth 2.0 Authorization Framework

see OpenID Connect Core 1.0

see RFC 9207 - OAuth 2.0 Authorization Server Issuer Identification

Parameters

Name Type Description
as AuthorizationServer Authorization Server Metadata.
client Client Client Metadata.
parameters URLSearchParams | URL Authorization response.
expectedState? string | typeof expectNoState | typeof skipStateCheck Expected state parameter value. Default is expectNoState.

Returns

CallbackParameters | OAuth2Error

Validated Authorization Response parameters or Authorization Error Response.

oauth4webapi

Version Info

Tagged at
2 years ago