AccessTokenRequestDto

data class AccessTokenRequestDto(val grantType: String = "", val redirectUri: String = "", val refreshToken: String = "", val code: String? = "")

Parameters

grantType

This is the type of authentication the client is presenting for its access-token.
If the client is looking for a client-token, then this should be set to 'client_credentials'.
If the client is looking to swap an authorization grant for an access token, this should be setto 'authorization_code'
If the client is looking to swap a refresh_token for a new access token, this should be setto 'refresh_token'

redirectUri

If the client is swapping an authorization code for an access token, then this argument is required.If you are just obtaining a client token directly, you do not need to provide a redirect_uri. This must be the same redirect_uri that was provided to the authorizationGrant endpoint, and must also match the redirect_uri which was registered with your client when you received your client credentials.

refreshToken

If the client is swapping a refresh_token for an access token, then this argument is required.Otherwise, this parameter should be omitted.This parameter is the refresh_token which you obtained when you last used the access_token endpoint.

code

If the client is swapping an authorization code for an access token, then this argument is required.If you are just obtaining a client token directly, you do not need to provide a code. This parameteris the authorization_code which you obtained when you used the authorizationGrant endpoint.

Constructors

Link copied to clipboard
constructor(grantType: String = "", redirectUri: String = "", refreshToken: String = "", code: String? = "")

Properties

Link copied to clipboard
@SerializedName(value = "code")
val code: String?
Link copied to clipboard
@SerializedName(value = "grant_type")
val grantType: String
Link copied to clipboard
@SerializedName(value = "redirect_uri")
val redirectUri: String
Link copied to clipboard
@SerializedName(value = "refresh_token")
val refreshToken: String