mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #24273] fix: accept documented Feishu OAuth env aliases #66428
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/24273
Author: @Genmin
Created: 5/1/2026
Status: 🔄 Open
Base:
dev← Head:codex/fix-feishu-oauth-env-fallback📝 Commits (3)
540e37aFix Feishu OAuth env aliasescc503d2fix: ignore empty Feishu env aliases6b85640test: cover documented Feishu scope precedence📊 Changes
3 files changed (+121 additions, -4 deletions)
View changed files
📝
backend/open_webui/config.py(+9 -4)➕
backend/open_webui/test/utils/test_env_vars.py(+94 -0)➕
backend/open_webui/utils/env_vars.py(+18 -0)📄 Description
Pull Request Checklist
dev.FEISHU_CLIENT_SCOPEandFEISHU_CLIENT_REDIRECT_URIenv vars, while retainingFEISHU_OAUTH_SCOPEandFEISHU_REDIRECT_URIas legacy fallbacks.dev; one logical change.fix:.Changelog Entry
Description
Added
Changed
FEISHU_CLIENT_SCOPEnow takes precedence overFEISHU_OAUTH_SCOPE.FEISHU_CLIENT_REDIRECT_URInow takes precedence overFEISHU_REDIRECT_URI.Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
Fixes #24094.
Validation run:
PYTHONPATH=backend uv run --no-sync --with pytest --with typer --with uvicorn pytest backend/open_webui/test/utils/test_env_vars.py -quv run --no-sync --with ruff ruff check backend/open_webui/utils/env_vars.py backend/open_webui/test/utils/test_env_vars.pyPYTHONPATH=backend uv run --no-sync --with typer --with uvicorn python -m compileall -q backend/open_webui/config.py backend/open_webui/utils/env_vars.py backend/open_webui/test/utils/test_env_vars.pygit diff --checkScreenshots or Videos
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.