TokenRequestParameters

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

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

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

OID4VP: TODO Definition RFC9396

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 = "tx_code")
val transactionCode: CredentialOfferGrantsPreAuthCodeTransactionCode? = 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