Table of Contents

Class OpenIddictTokenDescriptor

Namespace
OpenIddict.Abstractions
Assembly
OpenIddict.Abstractions.dll

Represents an OpenIddict token descriptor.

public class OpenIddictTokenDescriptor
Inheritance
OpenIddictTokenDescriptor
Inherited Members

Constructors

OpenIddictTokenDescriptor()

public OpenIddictTokenDescriptor()

Properties

ApplicationId

Gets or sets the application identifier associated with the token.

public string? ApplicationId { get; set; }

Property Value

string

AuthorizationId

Gets or sets the authorization identifier associated with the token.

public string? AuthorizationId { get; set; }

Property Value

string

CreationDate

Gets or sets the creation date associated with the token.

public DateTimeOffset? CreationDate { get; set; }

Property Value

DateTimeOffset?

ExpirationDate

Gets or sets the expiration date associated with the token.

public DateTimeOffset? ExpirationDate { get; set; }

Property Value

DateTimeOffset?

Payload

Gets or sets the payload associated with the token.

public string? Payload { get; set; }

Property Value

string

Principal

Gets or sets the optional principal associated with the token. Note: this property is not stored by the default token stores.

public ClaimsPrincipal? Principal { get; set; }

Property Value

ClaimsPrincipal

Properties

Gets the additional properties associated with the token.

public Dictionary<string, JsonElement> Properties { get; }

Property Value

Dictionary<string, JsonElement>

RedemptionDate

Gets or sets the redemption date associated with the token.

public DateTimeOffset? RedemptionDate { get; set; }

Property Value

DateTimeOffset?

ReferenceId

Gets or sets the reference identifier associated with the token. Note: depending on the application manager used when creating it, this property may be hashed or encrypted for security reasons.

public string? ReferenceId { get; set; }

Property Value

string

Status

Gets or sets the status associated with the token.

public string? Status { get; set; }

Property Value

string

Subject

Gets or sets the subject associated with the token.

public string? Subject { get; set; }

Property Value

string

Type

Gets or sets the token type.

public string? Type { get; set; }

Property Value

string