Table of Contents

Class Token

Namespace
Fdyay.IdentityServer.Models
Assembly
Fdyay.IdentityServer.Core.dll

An access or identity token prior to serialization/signing.

public class Token
Inheritance
Token
Inherited Members

Constructors

Token(string)

A token of the type named, with a fresh Id and no claims.

public Token(string type)

Parameters

type string

The token type: access_token or id_token.

Properties

AccessTokenType

For access tokens: whether the token is a JWT or a reference handle.

public IdentityServerConstants.AccessTokenType AccessTokenType { get; set; }

Property Value

IdentityServerConstants.AccessTokenType

AllowedSigningAlgorithms

Signing algorithms allowed for this token. Empty means the server default.

public ICollection<string> AllowedSigningAlgorithms { get; set; }

Property Value

ICollection<string>

Audiences

The audiences.

public ICollection<string> Audiences { get; set; }

Property Value

ICollection<string>

Claims

The claims carried by the token.

public ICollection<Claim> Claims { get; set; }

Property Value

ICollection<Claim>

ClientId

The client the token was issued to.

public string ClientId { get; set; }

Property Value

string

CreationTime

When the token was created (UTC).

public DateTime CreationTime { get; set; }

Property Value

DateTime

Description

The name the user gave this grant when approving it, for their list of grants. Duende's.

public string? Description { get; set; }

Property Value

string

Id

The unique token identifier (jti / reference id).

public string Id { get; set; }

Property Value

string

IncludeJwtId

Whether the JWT carries a jti. Defaults to true.

public bool IncludeJwtId { get; set; }

Property Value

bool

Remarks

Set from Client.IncludeJwtId on an access token, as Duende sets it; every other token keeps the default, so a logout token, which Back-Channel Logout requires a jti on, cannot lose it to a client setting.

Issuer

The issuer.

public string Issuer { get; set; }

Property Value

string

Lifetime

The lifetime in seconds.

public int Lifetime { get; set; }

Property Value

int

SessionId

The sid claim, the user session the token was issued in. Duende's.

public string? SessionId { get; }

Property Value

string

SubjectId

The subject id, if the token was issued for a user.

public string? SubjectId { get; }

Property Value

string

Type

The token type: access_token or id_token.

public string Type { get; set; }

Property Value

string