Table of Contents

Class TokenPostRequestBody

Namespace
Autodesk.Authentication.Authentication.V2.Token
Assembly
Autodesk.Authentication.dll
public class TokenPostRequestBody : IParsable
Inheritance
TokenPostRequestBody
Implements
IParsable
Inherited Members

Properties

ClientId

This field is required for public client

public string? ClientId { get; set; }

Property Value

string

Code

Required if grant_type is authorization_code

public string? Code { get; set; }

Property Value

string

CodeVerifier

Required if grant_type is authorization_code and code_challenge was specified in /authorize request

public string? CodeVerifier { get; set; }

Property Value

string

GrantType

Enum for grant types

public Granttype? GrantType { get; set; }

Property Value

Granttype?

RedirectUri

Required if grant_type is authorization_code

public string? RedirectUri { get; set; }

Property Value

string

RefreshToken

Required if grant_type is refresh_token

public string? RefreshToken { get; set; }

Property Value

string

Scope

Required if grant_type is client_credentials. Scopes must be separated by a space.

public string? Scope { get; set; }

Property Value

string

Methods

CreateFromDiscriminatorValue(IParseNode)

Creates a new instance of the appropriate class based on discriminator value

public static TokenPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)

Parameters

parseNode IParseNode

The parse node to use to read the discriminator value and create the object

Returns

TokenPostRequestBody

A TokenPostRequestBody

GetFieldDeserializers()

The deserialization information for the current model

public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()

Returns

IDictionary<string, Action<IParseNode>>

A IDictionary<string, Action<IParseNode>>

Serialize(ISerializationWriter)

Serializes information the current object

public virtual void Serialize(ISerializationWriter writer)

Parameters

writer ISerializationWriter

Serialization writer to use to serialize this model