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.
NoAuthBackend
A no-op authentication backend.
Password
A password.
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.
AuthRequestExt
A trait providing some useful authentication methods for the Request type.
User
A user object that can be authenticated.

Type Aliases§

Result
The result type for authentication operations.