Table of Contents

Class AuthTokenEntity

Namespace
FishMMO.Database.Npgsql.Entities
Assembly
FishMMO-DB.dll

Tracks an issued authentication token for revocation and audit. The LoginServer issues tokens after successful SRP authentication. WorldServers and SceneServers validate tokens cryptographically and check this table for revocation.

public class AuthTokenEntity
Inheritance
AuthTokenEntity
Inherited Members

Properties

Account

Navigation reference to the associated account entity.

public AccountEntity Account { get; set; }

Property Value

AccountEntity

AccountName

Account name the token was issued to.

public string AccountName { get; set; }

Property Value

string

ExpiresUtc

UTC timestamp when the token expires.

public DateTime ExpiresUtc { get; set; }

Property Value

DateTime

ID

Primary key.

public long ID { get; set; }

Property Value

long

LoginServer

Navigation reference to the issuing login server entity.

public LoginServerEntity LoginServer { get; set; }

Property Value

LoginServerEntity

LoginServerId

Login server ID that issued this token.

public long LoginServerId { get; set; }

Property Value

long

Revoked

Whether this token has been explicitly revoked.

public bool Revoked { get; set; }

Property Value

bool

TimeCreated

Row creation timestamp (UTC) — when the token was issued.

public DateTime TimeCreated { get; set; }

Property Value

DateTime

TokenHash

SHA-256 hash of the issued token for lookup and comparison.

public string TokenHash { get; set; }

Property Value

string

Version

PostgreSQL xmin system column exposed as an EF Core concurrency token to detect concurrent revocations or future per-token mutations. Updated automatically by the database on every row change.

public uint Version { get; set; }

Property Value

uint