Skip to main content

Module auth

Module auth 

Source
Expand description

Credential verification for SMTP and IMAP sessions.

Both the SMTP AUTH LOGIN flow and the IMAP LOGIN command delegate to an AuthEngine implementation. The crate ships with MemoryAuthEngine, which can be loaded from a plaintext credentials file or constructed in-memory for tests.

Structs§

MemoryAuthEngine
In-memory authentication engine using a HashMap.

Enums§

AuthError
Errors that can occur during authentication.

Traits§

AuthEngine
Trait for authentication engines.

Type Aliases§

AuthResult
Result type for authentication operations.