Skip to main content

Module auth

Module auth 

Source
Expand description

Multi-token auth with per-token scopes and namespace ACL.

Replaces the single global bearer token with a flexible token store. Each token is hashed with argon2id at rest. Plaintext is shown ONCE on creation and never stored.

Vibecrafted with AI Agents by Loctree (c)2024-2026 The LibraxisAI Team

Structs§

AuthManager
Unified auth manager replacing the legacy NamespaceAccessManager.
AuthResult
Result of authenticating a request.
TokenEntry
A single token entry persisted in tokens.json (v2 schema).
TokenStoreFile
Persistent token store backed by tokens.json.
TokenStoreV2
Version 2 token store schema, persisted as JSON.

Enums§

AuthDenial
Reason an auth check was denied.
Scope
Permission scope for a token.