mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #23128] issue: Feishu OAuth redirect_uri falls back to http:// behind reverse proxy #35419
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?
Originally created by @tuzkiyoung on GitHub (Mar 27, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23128
Check Existing Issues
Installation Method
Other
Open WebUI Version
0.8.11
Ollama Version (if applicable)
No response
Operating System
Ubuntu 24.04
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
When using Feishu OAuth behind a reverse proxy with HTTPS termination, the OAuth login fails because the redirect URI is generated as
http://instead ofhttps://.Actual Behavior
Feishu OAuth uses the configured
FEISHU_CLIENT_REDIRECT_URI(e.g.https://example.com/oauth/feishu/callback) as the redirect URL, and login completes successfully — same as Google/Microsoft/GitHub/OIDC providers.Steps to Reproduce
FEISHU_CLIENT_REDIRECT_URI=https://example.com/oauth/feishu/callbackhttp://redirect URILogs & Screenshots
No error logs on the Open WebUI side. The failure occurs at Feishu's OAuth server which rejects the mismatched redirect URI (http:// vs registered https://).
Additional Information
This bug may not surface when the proxy correctly forwards X-Forwarded-Proto: https (e.g. single-layer Docker + ALB), but it breaks in multi-layer proxy setups (e.g. Kubernetes with Ingress) where the header may not reach uvicorn.
@tjbck commented on GitHub (Apr 1, 2026):
Addressed in dev.
@Classic298 commented on GitHub (Apr 1, 2026):
d6a9efca68