Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 1.59 KB

processAuthorizationCodeOAuth2Response.md

File metadata and controls

28 lines (18 loc) · 1.59 KB

Function: processAuthorizationCodeOAuth2Response

💗 Help the project

processAuthorizationCodeOAuth2Response(as, client, response): Promise<OAuth2TokenEndpointResponse | OAuth2Error>

(OAuth 2.0 without OpenID Connect only) Validates Authorization Code Grant Response instance to be one coming from the as.token_endpoint.

Parameters

Name Type Description
as AuthorizationServer Authorization Server Metadata.
client Client Client Metadata.
response Response Resolved value from authorizationCodeGrantRequest.

Returns

Promise<OAuth2TokenEndpointResponse | OAuth2Error>

Resolves with an object representing the parsed successful response, or an object representing an OAuth 2.0 protocol style error. Use isOAuth2Error to determine if an OAuth 2.0 error was returned.

See

RFC 6749 - The OAuth 2.0 Authorization Framework