Expand description
TOML-based user store for SCRAM authentication.
Structs§
- Role
- A named role with a fixed set of permissions.
- User
Config - Top-level TOML user configuration.
- User
Entry - A single user entry in the TOML config.
- User
Record - Parsed user record ready for authentication.
Functions§
- admin_
role - Return the built-in
adminrole (read, write, admin). - builtin_
role - Look up a built-in role by name.
- hash_
password - Create a password hash string from a plaintext password.
- load_
users_ from_ str - Load user records from TOML content string.
- load_
users_ from_ toml - Load user records from a TOML configuration file path.
- operator_
role - Return the built-in
operatorrole (read, write). - parse_
password_ hash - Parse a password hash string into SCRAM credentials.
- resolve_
permissions - Resolve the effective permissions for a user entry.
- viewer_
role - Return the built-in
viewerrole (read).