Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Duende.​IdentityModel.​Client.​DeviceAuthorizationResponse

Assembly: Duende.IdentityModel

Inheritance: object → ProtocolResponse → DeviceAuthorizationResponse

Implemented Interfaces

Models an OAuth device authorization response

Properties

public string
DeviceCode
Gets the device verification code.
public string
UserCode
Gets the end-user verification code.
public string
VerificationUri
Gets the end-user verification URI on the authorization server.The URI should be short and easy to remember as end users will be asked to manually type it into their user-agent.
public string
VerificationUriComplete
Gets the verification URI that includes the "user_code" (or other information with the same function as the "user_code"), designed for non-textual transmission.
public int?
ExpiresIn
Gets the lifetime in seconds of the "device_code" and "user_code".
public int
Interval
Gets the minimum amount of time in seconds that the client SHOULD wait between polling requests to the token endpoint. If no value is provided, clients MUST use 5 as the default.
public string
ErrorDescription
Gets the error description.
Gets the HTTP response.
public string
Raw
Gets the raw protocol response (if present).
Gets the protocol response as JSON (if present).
Exception
Gets the exception (if present).
public bool
IsError
Gets a value indicating whether an error occurred.
ErrorType
Gets the type of the error.
protected string
ErrorMessage
Gets or sets an explicit error message.
HttpStatusCode
Gets the HTTP status code - or <c>0</c> when <see cref="P:Duende.IdentityModel.Client.ProtocolResponse.HttpResponse" /> is <see langword="null" /> .
public string
HttpErrorReason
Gets the HTTP error reason - or <see langword="null" /> when <see cref="P:Duende.IdentityModel.Client.ProtocolResponse.HttpResponse" /> is <see langword="null" /> .
public string
Error
Gets the error.
public string
DPoPNonce
The returned DPoP nonce header.

Methods

InitializeAsync​(object initializationData = null)
Inherited from ProtocolResponse
Allows to initialize instance specific data.
initializationData The initialization data.
public string
TryGet​(string name)
Inherited from ProtocolResponse
Tries to get a specific value from the JSON response.
name The name.
public void
Dispose​()
Inherited from ProtocolResponse
Dispose.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object