open-webui/backend/open_webui/routers
Classic298 fb5ef978bf
fix: enforce OAUTH_ALLOWED_DOMAINS on token exchange endpoint (#23639)
The OAuth token exchange endpoint skipped the domain allowlist check that the normal OAuth callback enforces. An attacker with a valid OAuth token from a non-allowed domain (e.g. gmail.com) could bypass the admin's domain restriction policy entirely.

Adds the same domain validation check used in the OAuth callback, denying access when the email domain is not in the allowed list.
2026-04-12 16:19:58 -05:00
..
analytics.py refac: async db 2026-04-12 14:22:11 -05:00
audio.py refac: async db 2026-04-12 14:22:11 -05:00
auths.py fix: enforce OAUTH_ALLOWED_DOMAINS on token exchange endpoint (#23639) 2026-04-12 16:19:58 -05:00
automations.py refac: async db 2026-04-12 14:22:11 -05:00
channels.py refac: async db 2026-04-12 14:22:11 -05:00
chats.py refac: async db 2026-04-12 14:22:11 -05:00
configs.py refac 2026-03-26 18:17:49 -05:00
evaluations.py refac: async db 2026-04-12 14:22:11 -05:00
files.py refac 2026-04-12 14:39:23 -05:00
folders.py refac: async db 2026-04-12 14:22:11 -05:00
functions.py refac: async db 2026-04-12 14:22:11 -05:00
groups.py refac: async db 2026-04-12 14:22:11 -05:00
images.py refac 2026-04-12 14:39:23 -05:00
knowledge.py refac 2026-04-12 14:39:23 -05:00
memories.py refac: async db 2026-04-12 14:22:11 -05:00
models.py refac: async db 2026-04-12 14:22:11 -05:00
notes.py refac: async db 2026-04-12 14:22:11 -05:00
ollama.py refac: async db 2026-04-12 14:22:11 -05:00
openai.py fix: gate OpenAI catch-all proxy behind ENABLE_OPENAI_API_PASSTHROUGH toggle (#23640) 2026-04-12 14:26:12 -05:00
pipelines.py refac 2026-03-24 04:49:48 -05:00
prompts.py refac: async db 2026-04-12 14:22:11 -05:00
retrieval.py refac: async db 2026-04-12 14:22:11 -05:00
scim.py refac: async db 2026-04-12 14:22:11 -05:00
skills.py refac: async db 2026-04-12 14:22:11 -05:00
tasks.py refac 2026-03-17 17:58:01 -05:00
terminals.py refac: async db 2026-04-12 14:22:11 -05:00
tools.py refac 2026-04-12 14:24:08 -05:00
users.py fix: invalidate stale Socket.IO sessions on role change and user deletion (#23642) 2026-04-12 16:19:38 -05:00
utils.py refac 2026-03-26 19:01:33 -05:00