Table of Contents

Class DeviceCodeResponse

Namespace
Auth0.AuthenticationApi.Models
Assembly
Auth0.AuthenticationApi.dll

Represents the response from a Device Authorization request.

public class DeviceCodeResponse
Inheritance
DeviceCodeResponse
Inherited Members

Properties

DeviceCode

The unique code for the device. When the user goes to the VerificationUri in their browser-based device, this code will be bound to their session.

[JsonProperty("device_code")]
public string DeviceCode { get; set; }

Property Value

string

ExpiresIn

The lifetime (in seconds) of the DeviceCode and UserCode.

[JsonProperty("expires_in")]
public int ExpiresIn { get; set; }

Property Value

int

Interval

The interval (in seconds) at which the app should poll the token URL to request a token.

[JsonProperty("interval")]
public int Interval { get; set; }

Property Value

int

UserCode

The code that should be input at the VerificationUri to authorize the device.

[JsonProperty("user_code")]
public string UserCode { get; set; }

Property Value

string

VerificationUri

The URL the user should visit to authorize the device.

[JsonProperty("verification_uri")]
public string VerificationUri { get; set; }

Property Value

string

VerificationUriComplete

The complete URL the user should visit to authorize the device. This allows embedding the UserCode in the URL.

[JsonProperty("verification_uri_complete")]
public string VerificationUriComplete { get; set; }

Property Value

string