mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
issue: Using ADFS and OIDC breaks the OIDC flow #4320
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 @icsy7867 on GitHub (Mar 8, 2025).
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.5.20
Ollama Version (if applicable)
No response
Operating System
Container in kubernetes
Browser (if applicable)
N.A
Confirmation
README.md.Expected Behavior
This isnt really an issue with open-webui, but I wanted to make a note of it. I didnt realize you were using oauth2-proxy on the backend (I love this container BTW...)
https://oauth2-proxy.github.io/oauth2-proxy/configuration/providers/adfs
I ultimately just added redis, which was pretty easy to do. However, without redis, I just get failed OAUTH attempts in my console, 403 issues, and other oddities. The proxy buffer is basically getting cut off so oauth2-proxy is only receiving part of the response.
SO if you are coming from the magical land of ADFS, make sure to increase your proxy buffer size if using nginx (Either via and ingress annotation in kubernetes, or via and nginx config) or implement redis!
I am working now with a seperate oauth2-proxy and redis container, and it is working quite well. The only thing I might suggest is to add ENV variables for connecting to a redis backend or something.
Actual Behavior
N/A
Steps to Reproduce
Run ADFS, create an OIDC integration, watch it fail repeatedly.
Logs & Screenshots
Not really applicable. I just wanted to share the information :D
Feel free to close.
Additional Information
No response
@rgaricano commented on GitHub (Mar 9, 2025):
https://docs.openwebui.com/tutorials/integrations/redis#setting-up-redis
https://docs.openwebui.com/getting-started/env-configuration#redis
@icsy7867 commented on GitHub (Mar 9, 2025):
Good information. But that sounds like it's used for managing websockets, I don't think the oauth2- proxy integration knows to use that as well?