Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 2.13 KB

genericTokenEndpointRequest.md

File metadata and controls

34 lines (23 loc) · 2.13 KB

Function: genericTokenEndpointRequest()

💗 Help the project

Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by becoming a sponsor.


genericTokenEndpointRequest(as, client, clientAuthentication, grantType, parameters, options?): Promise<Response>

Performs any Grant request at the 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

Parameter Type Description
as AuthorizationServer Authorization Server Metadata.
client Client Client Metadata.
clientAuthentication ClientAuth Client Authentication Method.
grantType string Grant Type.
parameters Record<string, string> | URLSearchParams | string[][] -
options? Omit<TokenEndpointRequestOptions, "additionalParameters"> -

Returns

Promise<Response>

See