Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 2.26 KB

File metadata and controls

38 lines (25 loc) · 2.26 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 an arbitrary OAuth grant request.

The request is sent to the as.token\_endpoint and can be used for token exchange and JWT or SAML bearer grants.

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>

Resolves with a Response to then invoke processGenericTokenEndpointResponse with

See