Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/oauth4webapi/mod.ts>genericTokenEndpointRequest

Low-Level OAuth 2 / OpenID Connect Client API for JavaScript Runtimes
Latest
function genericTokenEndpointRequest
import { genericTokenEndpointRequest } from "https://deno.land/x/oauth4webapi@v3.1.2/mod.ts";

Performs any Grant request at the AuthorizationServer.token_endpoint | as.token_endpoint. The purpose is to be able to execute grant requests such as Token Exchange Grant Type, JWT Bearer Token Grant Type, or SAML 2.0 Bearer Assertion Grant Type.

Parameters

Authorization Server Metadata.

client: Client

Client Metadata.

clientAuthentication: ClientAuth

Client Authentication Method.

grantType: string

Grant Type.

parameters: URLSearchParams | Record<string, string> | string[][]
optional
options: Omit<TokenEndpointRequestOptions, "additionalParameters">