TokenRequestParameters

@Serializable
data class TokenRequestParameters(val grantType: String, val code: String, val redirectUrl: String, val clientId: String, val preAuthorizedCode: String? = null, val codeVerifier: String? = null, val userPin: String? = null)

Constructors

Link copied to clipboard
constructor(grantType: String, code: String, redirectUrl: String, clientId: String, preAuthorizedCode: String? = null, codeVerifier: String? = null, userPin: String? = null)

Properties

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

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

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

TODO

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: CONDITIONAL. The code representing the authorization to obtain Credentials of a certain type.

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 = "user_pin")
val userPin: String? = null

OID4VCI: OPTIONAL. String value containing a user PIN. This value MUST be present if user_pin_required was set to true in the Credential Offer. The string value MUST consist of maximum 8 numeric characters (the numbers 0 - 9). This parameter MUST only be used, if the grant_type is urn:ietf:params:oauth:grant-type:pre-authorized_code.