mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #14540] issue: Failed to logout IDP when sign out in Oidc #32825
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 @Bouby308 on GitHub (May 31, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/14540
Check Existing Issues
Installation Method
Docker
Open WebUI Version
0.6.13
Ollama Version (if applicable)
No response
Operating System
Ubuntu
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
When I sign out, the IDP should also be signout.
Actual Behavior
The user is redirected to login page without signing out of the IDP.
Steps to Reproduce
Install the latest openwebui version in docker.
Set up Oidc with keycloak.
Log in via sso and sign out.
Sign in again and no credentials will be required.
Logs & Screenshots
No error was seen in browser and docker logs
Additional Information
The issue does not happen in v0.6.9. It seems that the sign out function in the api has some bugs with refac/fix: signout redirect flow after v0.6.9.
The sign out function in the api does not return json if the request is successful.
Therefore,
location.href = res?.redirect_url ?? '/auth'does not return the IDP logout url.I am not a coding expert. Please correct me if I am wrong.
@tjbck commented on GitHub (May 31, 2025):
PLEASE check for previous issues and discussions before creating one.
@Bouby308 commented on GitHub (May 31, 2025):
I have read through the issues and discussions. The only similar issue is #7583 but I think the cause of the issue is different.
I believe that my issue is introduced by commit
7df6d7fas v0.6.9 works fine.The backend returns a json response containing redirect_url but the frontend does not parse the response as json in the userSignOut function before calling res?.redirect_url.
@srinivassambari1 commented on GitHub (Jun 13, 2025):
We also face similar issue