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

authorizationCodeGrantRequest.md

Function: authorizationCodeGrantRequest

💗 Help the project

â–¸ authorizationCodeGrantRequest(as, client, callbackParameters, redirectUri, codeVerifier, options?): Promise<Response>

Performs an Authorization Code grant request at the as.token_endpoint.

see RFC 6749 - The OAuth 2.0 Authorization Framework

see OpenID Connect Core 1.0

see RFC 7636 - Proof Key for Code Exchange by OAuth Public Clients (PKCE)

see draft-ietf-oauth-dpop-10 - OAuth 2.0 Demonstrating Proof-of-Possession at the Application Layer (DPoP)

Parameters

Name Type Description
as AuthorizationServer Authorization Server Metadata.
client Client Client Metadata.
callbackParameters CallbackParameters Parameters obtained from the callback to redirect_uri, this is returned from validateAuthResponse, or validateJwtAuthResponse.
redirectUri string redirect_uri value used in the authorization request.
codeVerifier string PKCE code_verifier to send to the token endpoint.
options? TokenEndpointRequestOptions -

Returns

Promise<Response>

oauth4webapi

Version Info

Tagged at
2 years ago