mirror of https://github.com/langgenius/dify.git
Add comprehensive OAuth 2.0 authentication support for SMTP to address Microsoft's Basic Authentication retirement in September 2025. Key features: - OAuth 2.0 SASL XOAUTH2 authentication mechanism - Microsoft Azure AD integration with client credentials flow - Backward compatible with existing basic authentication - Comprehensive configuration options in .env.example files - Enhanced SMTP client with dependency injection for better testability - Complete test coverage with proper mocking Configuration: - SMTP_AUTH_TYPE: Choose between 'basic' and 'oauth2' authentication - Microsoft OAuth 2.0 settings for Azure AD integration - Automatic token acquisition using client credentials flow Files changed: - Enhanced SMTP client with OAuth 2.0 support - New mail module structure under libs/mail/ - Updated configuration system with OAuth settings - Comprehensive documentation and setup instructions - Complete test suite for OAuth functionality This change ensures compatibility with Microsoft Exchange Online after Basic Authentication retirement. |
||
|---|---|---|
| .. | ||
| storage | ||
| __init__.py | ||
| ext_app_metrics.py | ||
| ext_blueprints.py | ||
| ext_celery.py | ||
| ext_code_based_extension.py | ||
| ext_commands.py | ||
| ext_compress.py | ||
| ext_database.py | ||
| ext_hosting_provider.py | ||
| ext_import_modules.py | ||
| ext_logging.py | ||
| ext_login.py | ||
| ext_mail.py | ||
| ext_migrate.py | ||
| ext_orjson.py | ||
| ext_otel.py | ||
| ext_proxy_fix.py | ||
| ext_redis.py | ||
| ext_request_logging.py | ||
| ext_sentry.py | ||
| ext_set_secretkey.py | ||
| ext_storage.py | ||
| ext_timezone.py | ||
| ext_warnings.py | ||