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

Assembly: Duende.IdentityModel

Inheritance: object → ProtocolResponse → TokenIntrospectionResponse

Implemented Interfaces

Models an OAuth 2.0 introspection response as defined by <a href="https://datatracker.ietf.org/doc/html/rfc7662">RFC 7662 - OAuth 2.0 Token Introspection</a>

Properties

public bool
IsActive
Gets a value indicating whether the token is active.
public string[]
Scopes
Gets the list of scopes associated to the token.
public string
ClientId
Gets the client identifier for the OAuth 2.0 client that requested the token.
public string
UserName
Gets the human-readable identifier for the resource owner who authorized the token.
public string
TokenType
Gets the type of the token as defined in <a href="https://datatracker.ietf.org/doc/html/rfc6749#section-5.1">section 5.1 of OAuth 2.0 (RFC6749)</a> .
Expiration
Gets the time on or after which the token must not be accepted for processing.
IssuedAt
Gets the time when the token was issued.
NotBefore
Gets the time before which the token must not be accepted for processing.
public string
Subject
Gets the subject of the token. Usually a machine-readable identifier of the resource owner who authorized the token.
public string[]
Audiences
Gets the service-specific list of string identifiers representing the intended audience for the token.
public string
Issuer
Gets the string representing the issuer of the token.
public string
JwtId
Gets the string identifier for the token.
Gets the custom validator instance for validating a JWT introspection response. If set, this validator will be invoked to perform any additional or custom validation on the JWT response (for example, verifying its signature, expiration, or other claims). If left null, no JWT validation is performed, although the claims will still be extracted and the raw JWT string will be accessible. It is the caller's responsibility to provide an implementation of <see cref="T:Duende.IdentityModel.Validation.ITokenIntrospectionJwtResponseValidator" /> if JWT validation is desired.
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)
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