Expand description
Authentication system for Cot.
This module provides the authentication system for Cot. It includes traits for user objects and backends, as well as password hashing and verification.
For the default way to store users in the database, see the db module.
Modules§
- db
db - Database-backed user authentication backend.
Structs§
- Anonymous
User - An anonymous, unauthenticated user.
- NoAuth
Backend - A no-op authentication backend.
- Password
- A password.
- Password
Hash - A hashed password.
- Session
Auth Hash - A session authentication hash.
Enums§
- Auth
Error - An error that occurs during authentication.
- Password
Verification Result - The result returned by
PasswordHash::verify(). - UserId
- A user ID that uniquely identifies a user in a backend.
Traits§
- Auth
Backend - An authentication backend.
- Auth
Request Ext - A trait providing some useful authentication methods for the
Requesttype. - User
- A user object that can be authenticated.
Type Aliases§
- Result
- The result type for authentication operations.