Expand description
API Key authentication.
Structs§
- ApiKey
Store - Thread-safe token store, keyed by opaque bearer-token string.
- Auth
Config - API key configuration.
- Token
Record - 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.