Class PersonalAccessToken
A personal access token.
public record PersonalAccessToken : IEquatable<PersonalAccessToken>
- Inheritance
-
PersonalAccessToken
- Implements
- Inherited Members
Constructors
PersonalAccessToken(string, DateTime, IReadOnlyList<TokenClaim>, IReadOnlyList<TokenClaim>)
A personal access token.
public PersonalAccessToken(string Description, DateTime Expires, IReadOnlyList<TokenClaim> Claims, IReadOnlyList<TokenClaim> GrantClaims)
Parameters
DescriptionstringThe token description.
ExpiresDateTimeThe date/time when the token expires.
ClaimsIReadOnlyList<TokenClaim>The claims that will be part of the token.
GrantClaimsIReadOnlyList<TokenClaim>A snapshot of the creator's claims at the time of token creation, used to validate that the token is not more powerful than its creator.
Properties
Claims
The claims that will be part of the token.
public IReadOnlyList<TokenClaim> Claims { get; init; }
Property Value
Description
The token description.
public string Description { get; init; }
Property Value
Expires
The date/time when the token expires.
public DateTime Expires { get; init; }
Property Value
GrantClaims
A snapshot of the creator's claims at the time of token creation, used to validate that the token is not more powerful than its creator.
public IReadOnlyList<TokenClaim> GrantClaims { get; init; }