Signals from AdminUserManager
The lback.managers.admin_user_manager.AdminUserManager is a crucial service layer responsible for orchestrating admin user-related business logic, such as registration and authentication. This manager strategically emits signals at various stages of these sensitive workflows. These signals are exceptionally valuable for:
Auditing and Logging: Providing a detailed trail of administrative activities, especially for security-sensitive operations like new user creation or authentication attempts.
Integrations: Hooking into external systems for tasks like sending welcome emails, syncing user data to a CRM, or notifying security teams of failed login attempts.
Custom Business Logic: Implementing bespoke logic or side effects that need to occur at specific points in the admin user lifecycle without tightly coupling them to the core manager logic.
Monitoring and Alerting: Setting up alerts for critical events like registration failures or suspicious authentication patterns.
Signal Name |
Description |
Arguments (kwargs) |
|---|---|---|
|
Emitted at the very beginning of the |
|
|
Emitted just before the admin user is created in the repository, after initial validation and password hashing. |
|
|
Emitted after an admin user has been successfully created by the repository (but before the session is committed). |
|
|
Emitted when the admin user registration process encounters any error (e.g., validation, password hashing, database issues, role not found). |
|
|
Emitted at the very beginning of the |
|
|
Emitted when an admin user has successfully authenticated. |
|
|
Emitted when an admin user fails to authenticate for any reason (e.g., user not found, incorrect password, inactive user). |
|