TokenRequestParameters

@Serializable
data class TokenRequestParameters(val grantType: String, val code: String? = null, val scope: String? = null, val resource: String? = null, val redirectUrl: String, val clientId: String, val authorizationDetails: Set<AuthorizationDetails>? = null, val preAuthorizedCode: String? = null, val transactionCode: String? = null, val codeVerifier: String? = null, val clientData: String? = null)(source)

Constructors

Link copied to clipboard
constructor(grantType: String, code: String? = null, scope: String? = null, resource: String? = null, redirectUrl: String, clientId: String, authorizationDetails: Set<AuthorizationDetails>? = null, preAuthorizedCode: String? = null, transactionCode: String? = null, codeVerifier: String? = null, clientData: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
@SerialName(value = "authorization_details")
val authorizationDetails: Set<AuthorizationDetails>? = null

OID4VCI: Credential Issuers MAY support requesting authorization to issue a Credential using this parameter. The request parameter authorization_details defined in Section 2 of RFC9396 MUST be used to convey the details about the Credentials the Wallet wants to obtain.

Link copied to clipboard
@SerialName(value = "clientData")
val clientData: String? = null

CSC: OPTIONAL Arbitrary data from the signature application. It can be used to handle a transaction identifier or other application-spe cific data that may be useful for debugging purposes

Link copied to clipboard
@SerialName(value = "client_id")
val clientId: String

RFC6749: REQUIRED, if the client is not authenticating with the authorization server.

Link copied to clipboard
@SerialName(value = "code")
val code: String? = null

RFC6749: REQUIRED. The authorization code received from the authorization server.

Link copied to clipboard
@SerialName(value = "code_verifier")
val codeVerifier: String? = null

RFC7636: A cryptographically random string that is used to correlate the authorization request to the token request.

Link copied to clipboard
@SerialName(value = "grant_type")
val grantType: String

RFC6749: REQUIRED. Value MUST be set to authorization_code.

Link copied to clipboard
@SerialName(value = "pre-authorized_code")
val preAuthorizedCode: String? = null

OID4VCI: The code representing the authorization to obtain Credentials of a certain type. This parameter MUST be present if grantType is urn:ietf:params:oauth:grant-type:pre-authorized_code.

Link copied to clipboard
@SerialName(value = "redirect_uri")
val redirectUrl: String

RFC6749: REQUIRED, if the "redirect_uri" parameter was included in the authorization request, and their values MUST be identical.

Link copied to clipboard
@SerialName(value = "resource")
val resource: String? = null

RFC8707: When requesting a token, the client can indicate the desired target service(s) where it intends to use that token by way of the resource parameter and can indicate the desired scope of the requested token using the scope parameter.

Link copied to clipboard
@SerialName(value = "scope")
val scope: String? = null

RFC6749: OPTIONAL. The authorization and token endpoints allow the client to specify the scope of the access request using the "scope" request parameter. In turn, the authorization server uses the "scope" response parameter to inform the client of the scope of the access token issued.

Link copied to clipboard
@SerialName(value = "tx_code")
val transactionCode: String? = null

OID4VCI: OPTIONAL. String value containing a Transaction Code. This value MUST be present if a tx_code object was present in the Credential Offer (including if the object was empty). This parameter MUST only be used if the grantType is urn:ietf:params:oauth:grant-type:pre-authorized_code.

Functions

Link copied to clipboard