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
typestringThe token type:
access_tokenorid_token.
Properties
AccessTokenType
For access tokens: whether the token is a JWT or a reference handle.
public IdentityServerConstants.AccessTokenType AccessTokenType { get; set; }
Property Value
AllowedSigningAlgorithms
Signing algorithms allowed for this token. Empty means the server default.
public ICollection<string> AllowedSigningAlgorithms { get; set; }
Property Value
Audiences
The audiences.
public ICollection<string> Audiences { get; set; }
Property Value
Claims
The claims carried by the token.
public ICollection<Claim> Claims { get; set; }
Property Value
ClientId
The client the token was issued to.
public string ClientId { get; set; }
Property Value
CreationTime
When the token was created (UTC).
public DateTime CreationTime { get; set; }
Property Value
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
Id
The unique token identifier (jti / reference id).
public string Id { get; set; }
Property Value
IncludeJwtId
Whether the JWT carries a jti. Defaults to true.
public bool IncludeJwtId { get; set; }
Property Value
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
Lifetime
The lifetime in seconds.
public int Lifetime { get; set; }
Property Value
SessionId
The sid claim, the user session the token was issued in. Duende's.
public string? SessionId { get; }
Property Value
SubjectId
The subject id, if the token was issued for a user.
public string? SubjectId { get; }
Property Value
Type
The token type: access_token or id_token.
public string Type { get; set; }