dify/api/configs
-LAN- 69f712b713 feat: Add SMTP OAuth 2.0 support for Microsoft Exchange
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.
2025-09-23 01:30:06 +08:00
..
deploy feat: add debug log for request and response (#19781) (#19783) 2025-05-17 17:31:09 +08:00
enterprise chore: enhance configuration descriptions (#8624) 2024-09-22 13:38:41 +08:00
extra chore: add ast-grep rule to convert Optional[T] to T | None (#25560) 2025-09-15 13:06:33 +08:00
feature feat: Add SMTP OAuth 2.0 support for Microsoft Exchange 2025-09-23 01:30:06 +08:00
middleware Add Full-Text & Hybrid Search Support to Baidu Vector DB and Update SDK, Closes #25982 (#25983) 2025-09-22 10:17:35 +08:00
observability feat: add otel endpoint config (#22492) 2025-07-16 18:24:17 +08:00
packaging fix: resolve typing errors in configs module (#25268) 2025-09-06 16:08:14 +08:00
remote_settings_sources more httpx (#25651) 2025-09-22 23:07:09 +08:00
__init__.py feat: knowledge pipeline (#25360) 2025-09-18 12:49:10 +08:00
app_config.py make logging not use f-str, change others to f-str (#22882) 2025-07-25 10:32:48 +08:00