Table of Contents

Class ApiToken

Namespace
Ando.Server.Models
Assembly
Ando.Server.dll

API token used for Bearer authentication to the REST API.

public class ApiToken
Inheritance
ApiToken
Inherited Members

Properties

CreatedAt

public DateTime CreatedAt { get; set; }

Property Value

DateTime

Id

public int Id { get; set; }

Property Value

int

LastUsedAt

public DateTime? LastUsedAt { get; set; }

Property Value

DateTime?

Name

Friendly name for the token (e.g., "CI script", "Laptop").

public string Name { get; set; }

Property Value

string

Prefix

Short token prefix used for indexed lookup (e.g., first 8 chars after prefix).

public string Prefix { get; set; }

Property Value

string

RevokedAt

public DateTime? RevokedAt { get; set; }

Property Value

DateTime?

TokenHash

Hash of the full token value (HMAC/SHA-256).

public string TokenHash { get; set; }

Property Value

string

User

public ApplicationUser User { get; set; }

Property Value

ApplicationUser

UserId

public int UserId { get; set; }

Property Value

int