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.​TokenResponse

Assembly: Duende.IdentityModel

Inheritance: object → ProtocolResponse → TokenResponse

Implemented Interfaces

Models a response from an OpenID Connect/OAuth 2 token endpoint

Properties

public string
AccessToken
Gets the access token.
public string
IdentityToken
Gets the identity token.
public string
Scope
Gets the scope.
public string
IssuedTokenType
Gets the issued token type.
public string
TokenType
Gets the type of the token.
public string
RefreshToken
Gets the refresh token.
public string
ErrorDescription
Gets the error description.
public int
ExpiresIn
Gets the expires in.
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