Base
mail_intake.auth.base
Summary
Authentication provider contracts for Mail Intake.
This module defines the authentication abstraction layer used by mail adapters to obtain provider-specific credentials.
Authentication concerns are intentionally decoupled from adapter logic. Adapters depend only on this interface and must not be aware of how credentials are acquired, refreshed, or persisted.
Classes
MailIntakeAuthProvider
Bases: ABC, Generic[T]
Abstract base class for authentication providers.
This interface enforces a strict contract between authentication providers and mail adapters by requiring providers to explicitly declare the type of credentials they return.
Notes
Responsibilities:
1 2 3 4 | |
Constraints:
1 2 3 4 | |
Functions
get_credentials
abstractmethod
Retrieve valid, provider-specific credentials.
Returns:
| Name | Type | Description |
|---|---|---|
T |
T
|
Credentials of type |
Raises:
| Type | Description |
|---|---|
Exception
|
An authentication-specific exception indicating that credentials could not be obtained or validated. |
Notes
Guarantees:
1 2 3 4 5 | |