Module auth

Module auth 

Source
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§

dbdb
Database-backed user authentication backend.

Structs§

AnonymousUser
An anonymous, unauthenticated user.
Auth
Authentication helper structure.
NoAuthBackend
A no-op authentication backend.
PasswordHash
A hashed password.
SessionAuthHash
A session authentication hash.

Enums§

AuthError
An error that occurs during authentication.
PasswordVerificationResult
The result returned by PasswordHash::verify().
UserId
A user ID that uniquely identifies a user in a backend.

Traits§

AuthBackend
An authentication backend.
User
A user object that can be authenticated.

Type Aliases§

Result
The result type for authentication operations.