import { TokenRequest } from "@authlete/typescript-sdk/models";
let value: TokenRequest = {
parameters: "<value>",
};| Field | Type | Required | Description |
|---|---|---|---|
parameters |
string | ✔️ | OAuth 2.0 token request parameters which are the request parameters that the OAuth 2.0 token endpoint of the authorization server implementation received from the client application. The value of parameters is the entire entity body (which is formatted in application/x-www-form-urlencoded) of the request fromthe client application. |
clientId |
string | ➖ | The client ID extracted from Authorization header of the token request from the client application.If the token endpoint of the authorization server implementation supports basic authentication as a means of client authentication, and the request from the client application contained its client ID in Authorization header, the value should be extracted and set to this parameter. |
clientSecret |
string | ➖ | The client secret extracted from Authorization header of the token request from the client application.If the token endpoint of the authorization server implementation supports basic authentication as a means of client authentication, and the request from the client application contained its client secret in Authorization header,the value should be extracted and set to this parameter. |
clientCertificate |
string | ➖ | The client certificate from the MTLS of the token request from the client application. |
clientCertificatePath |
string[] | ➖ | The certificate path presented by the client during client authentication. These certificates are strings in PEM format. |
properties |
models.Property[] | ➖ | Extra properties to associate with an access token. See Extra Properties for details. |
dpop |
string | ➖ | DPoP header presented by the client during the request to the token endpoint.The header contains a signed JWT which includes the public key that is paired with the private key used to sign the JWT. See OAuth 2.0 Demonstration of Proof-of-Possession at the Application Layer (DPoP) for details. |
htm |
string | ➖ | HTTP method of the token request. This field is used to validate the DPoP header.In normal cases, the value is POST. When this parameter is omitted, POST is used as the default value.See OAuth 2.0 Demonstration of Proof-of-Possession at the Application Layer (DPoP) for details. |
htu |
string | ➖ | URL of the token endpoint. This field is used to validate the DPoP header.If this parameter is omitted, the tokenEndpoint property of the Service is used as the default value.See OAuth 2.0 Demonstration of Proof-of-Possession at the Application Layer (DPoP) for details. |
accessToken |
string | ➖ | The representation of an access token that may be issued as a result of the Authlete API call. |
jwtAtClaims |
string | ➖ | Additional claims that are added to the payload part of the JWT access token. |
oauthClientAttestation |
string | ➖ | The value of the OAuth-Client-Attestation HTTP header, which is defined in the specificationof OAuth 2.0 Attestation-Based Client Authentication. |
oauthClientAttestationPop |
string | ➖ | The value of the OAuth-Client-Attestation-PoP HTTP header, which is defined in the specificationof OAuth 2.0 Attestation-Based Client Authentication. |
accessTokenDuration |
number | ➖ | The duration (in seconds) of the access token that may be issued as a result of the Authlete API call. When this request parameter holds a positive integer, it is used as the duration of the access token in. In other cases, this request parameter is ignored. |
refreshTokenDuration |
number | ➖ | The duration (in seconds) of the refresh token that may be issued as a result of the Authlete API call. When this request parameter holds a positive integer, it is used as the duration of the refresh token in. In other cases, this request parameter is ignored. |
dpopNonceRequired |
boolean | ➖ | The flag indicating whether to require the DPoP proof JWT to include the nonce claim. Even ifthe service's dpopNonceRequired property is false, calling the /auth/token API with thisdpopNonceRequired parameter true will force the Authlete API to check whether the DPoP proofJWT includes the expected nonce value. |
cimdOptions |
models.CimdOptions | ➖ | Options for OAuth Client ID Metadata Document (CIMD). These options allow per-request control over CIMD behavior, taking precedence over service-level configuration when provided. |