You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gcgj-dify-1.7.0/api/tests/unit_tests
-LAN- 091884567a
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.
7 months ago
..
configs chore: add SQLALCHEMY_POOL_USE_LIFO option and missing SQLALCHEMY_POOL_PRE_PING env default value. (#22371) 7 months ago
controllers test: add comprehensive OAuth authentication unit tests (#22528) 7 months ago
core refactor: decouple Node and NodeData (#22581) 7 months ago
extensions feat: add redis fallback mechanism #21043 (#21044) 7 months ago
factories refactor(api): Separate SegmentType for Integer/Float to Enable Pydantic Serialization (#22025) 7 months ago
libs feat: Add SMTP OAuth 2.0 support for Microsoft Exchange 7 months ago
models feat(libs): Introduce `extract_tenant_id` (#22086) 7 months ago
oss chore(lint): correct allowed-unused-imports settings for cleanup unused imports in tests (#11922) 1 year ago
repositories feat(workflow_cycle_manager): Removes redundant repository methods and adds caching (#22597) 7 months ago
services test: add comprehensive unit tests for Firecrawl and Watercrawl auth providers (#22705) 7 months ago
utils Support OAuth Integration for Plugin Tools (#22550) 7 months ago
.gitignore Enhance Code Consistency Across Repository with `.editorconfig` (#19023) 9 months ago
__init__.py FEAT: NEW WORKFLOW ENGINE (#3160) 2 years ago
conftest.py fix: resolve Redis mock import error in test configuration (#22663) 7 months ago