dify/api/services/enterprise
GareArc 23c75c7ec7
fix: centralize access_mode validation and support sso_verified
- Add ALLOWED_ACCESS_MODES constant to centralize valid access modes
- Include 'sso_verified' in validation to fix app duplication errors
- Update error message to dynamically list all allowed modes
- Refactor for maintainability: single source of truth for access modes

This fixes the issue where apps with access_mode='sso_verified' could not
be duplicated because the validation in update_app_access_mode() was missing
this mode, even though it was documented in WebAppSettings model.
2026-02-13 23:29:05 -08:00
..
__init__.py Feat/enterprise sso (#3602) 2024-04-18 17:33:32 +08:00
account_deletion_sync.py feat: add redis mq for account deletion cleanup 2026-02-06 13:31:50 +08:00
base.py feat: inject traceparent in enterprise api (#30895) 2026-01-13 23:37:39 +09:00
enterprise_service.py fix: centralize access_mode validation and support sso_verified 2026-02-13 23:29:05 -08:00
plugin_manager_service.py feat: knowledge pipeline (#25360) 2025-09-18 12:49:10 +08:00
workspace_sync.py feat: credential sync fix for enterprise edition (#30626) 2026-01-14 23:33:24 -08:00