deno.land / x / oauth4webapi@v1.2.2 / docs / functions / validateAuthResponse.md
â–¸ 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
RFC 9207 - OAuth 2.0 Authorization Server Issuer Identification
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. |
CallbackParameters
| OAuth2Error
Validated Authorization Response parameters or Authorization Error Response.
Version Info