mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #19182] feat: SSO custom logout URI #18798
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 @BikersDelight on GitHub (Nov 14, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/19182
Check Existing Issues
Verify Feature Scope
Problem Description
I'm using AWS Cognito as our IdP. Cognito doesn't support logout with id_token_hint and post_logout_redirect_uri. It requires different request parameters.
Desired Solution you'd like
In order to solve this issue, it would be handy to set a full custom logout URI in environment variables. For Cognito, the values to build the URI are all known up front. This solution won't work when dynamic parameters need to be added.
Alternatives Considered
No response
Additional Context
Thanks for maintaining!
@Classic298 commented on GitHub (Nov 14, 2025):
is WEBUI_AUTH_SIGNOUT_REDIRECT_URL not sufficient here? works for me.
@BikersDelight commented on GitHub (Nov 14, 2025):
@Classic298 unfortunately no. This adds the post_logout_redirect_uri to the actual logout endpoint, but Cognito requires a completely different set of request parameters: https://docs.aws.amazon.com/cognito/latest/developerguide/logout-endpoint.html
@Classic298 commented on GitHub (Nov 14, 2025):
I understand. thanks.
@tjbck commented on GitHub (Nov 19, 2025):
PR Welcome!
@James-4u commented on GitHub (Nov 20, 2025):
@tjbck Could you please assign this issue to me?
@James-4u commented on GitHub (Nov 20, 2025):
@tjbck what's wrong?
@zizzii commented on GitHub (Nov 22, 2025):
Hi there! I would like to pick this up.
My plan: I'll look into backend/apps/web/routers/auths.py to modify the logout flow. I plan to check for a specific environment variable (e.g., LOGOUT_REDIRECT_URL) and redirect the user there upon successful logout if it exists.
Please assign this to me!
@Classic298 commented on GitHub (Nov 23, 2025):
Sorry we don't do assignments. If you want, just create the PR.
PR welcome
@tysoncung commented on GitHub (Dec 12, 2025):
I'm interested in working on this issue. Could you provide more context about what you're looking for? Any additional details about requirements or constraints would be helpful.
@Br1an67 commented on GitHub (Mar 1, 2026):
Hi @zizzii @tysoncung — are you still working on this? I noticed it's been a while since the last update. If not, I'd be happy to pick it up.
Add a new
OAUTH_LOGOUT_URIenv var that lets users specify a full custom logout URI, bypassing OIDC discovery for providers like AWS Cognito.PR: #22071