Class Token
- Namespace
- Duende.IdentityServer.Models
- Assembly
- Duende.IdentityServer.Storage.dll
Models a token.
public class Token
- Inheritance
-
Token
- Inherited Members
Constructors
Token()
Initializes a new instance of the Token class.
public Token()
Token(string)
Initializes a new instance of the Token class.
public Token(string tokenType)
Parameters
tokenType
stringType of the token.
Properties
AccessTokenType
Gets or sets the type of access token of the client
public AccessTokenType AccessTokenType { get; set; }
Property Value
- AccessTokenType
The access token type specified by the client.
AllowedSigningAlgorithms
A list of allowed algorithm for signing the token. If null or empty, will use the default algorithm.
public ICollection<string> AllowedSigningAlgorithms { get; set; }
Property Value
Audiences
Gets or sets the audiences.
public ICollection<string> Audiences { get; set; }
Property Value
- ICollection<string>
The audiences.
Claims
Gets or sets the claims.
public ICollection<Claim> Claims { get; set; }
Property Value
- ICollection<Claim>
The claims.
ClientId
Gets or sets the ID of the client.
public string ClientId { get; set; }
Property Value
- string
The ID of the client.
Confirmation
Specifies the confirmation method of the token. This value, if set, will become the cnf claim.
public string? Confirmation { get; set; }
Property Value
CreationTime
Gets or sets the creation time.
public DateTime CreationTime { get; set; }
Property Value
- DateTime
The creation time.
Description
Gets the description the user assigned to the device being authorized.
public string? Description { get; set; }
Property Value
- string
The description.
IncludeJwtId
Indicates if the token should have a 'jti' claim value.
public bool IncludeJwtId { get; set; }
Property Value
Issuer
Gets or sets the issuer.
public string Issuer { get; set; }
Property Value
- string
The issuer.
Lifetime
Gets or sets the lifetime.
public int Lifetime { get; set; }
Property Value
- int
The lifetime.
Scopes
Gets the scopes.
public IEnumerable<string> Scopes { get; }
Property Value
- IEnumerable<string>
The scopes.
SessionId
Gets the session identifier.
public string? SessionId { get; }
Property Value
- string
The session identifier.
SubjectId
Gets the subject identifier.
public string? SubjectId { get; }
Property Value
- string
The subject identifier.
Type
Gets or sets the type.
public string Type { get; set; }
Property Value
- string
The type.
Version
Gets or sets the version.
public int Version { get; set; }
Property Value
- int
The version.