Skip to main content

Module auth

Module auth 

Source
Expand description

API Key authentication.

Structs§

ApiKeyStore
Thread-safe token store, keyed by opaque bearer-token string.
AuthConfig
API key configuration.
TokenRecord
A registered token: the capabilities it grants plus provenance metadata.

Functions§

auth_middleware
Authentication middleware for axum.
generate_api_key
Generate a random API key.