Table of Contents

Class PersonalAccessToken

Namespace
Nexus.Api.V1
Assembly
Nexus.Api.dll

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

Description string

The token description.

Expires DateTime

The date/time when the token expires.

Claims IReadOnlyList<TokenClaim>

The claims that will be part of the token.

GrantClaims IReadOnlyList<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

IReadOnlyList<TokenClaim>

Description

The token description.

public string Description { get; init; }

Property Value

string

Expires

The date/time when the token expires.

public DateTime Expires { get; init; }

Property Value

DateTime

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; }

Property Value

IReadOnlyList<TokenClaim>