mod.rs 59 lignes · 2181 octets
//! Services module
//!
//! Business logic services for the Rustwarden framework.

/// Service for reading and updating application-wide settings.
pub mod app_settings_service;
/// Logging helpers for authentication events.
pub mod auth_logging;
/// Core authentication service (login, logout, token refresh).
pub mod auth_service;
/// AES-256-GCM encryption and hashing utilities.
pub mod crypto_service;
/// Ensures a default admin account exists on first boot.
pub mod default_admin_service;
/// Two-step email change service (RFC 0041).
pub mod email_change_service;
/// Background service that drains the email queue.
pub mod email_queue_service;
/// Email address sanitization helpers.
pub mod email_sanitization;
/// SMTP email sending service.
pub mod email_service;
/// Email address validation workflow service.
pub mod email_validation_service;
/// IMAP bounce processing service.
pub mod imap_bounce_service;
/// JWT blacklist service for token revocation.
pub mod jwt_blacklist_service;
/// OAuth provider integration services.
#[cfg(feature = "oauth")]
pub mod oauth;
/// Password change with email confirmation service.
pub mod password_change_service;
/// Password reset via email token service.
pub mod password_reset_service;
/// Password hashing and verification utilities.
pub mod password_service;
/// RBAC permission checking service.
pub mod permission_service;
/// Personal access token (PAT) management service.
pub mod personal_token_service;
/// Token-bucket rate limiting service.
pub mod rate_limit_service;
/// Refresh token rotation and revocation service.
pub mod refresh_token_service;
// Federation services (`fediverse_*_service`, `actor_key_service`,
// `remote_identity_service`) moved to the `rustwarden-fediverse` crate.
/// Generic resource registration and sharing service.
pub mod resource_service;
/// Role assignment and lookup service.
pub mod role_service;
/// Team CRUD and membership management service.
pub mod team_service;
/// TOTP two-factor authentication service.
pub mod totp_service;
/// User preferences (theme, language) service.
pub mod user_preferences_service;
/// User account management service.
pub mod user_service;