mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[GH-ISSUE #24039] feat: Allow Clearing of Oauth Sessions for MCP Connections #58829
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 @anengineerdude on GitHub (Apr 23, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/24039
Check Existing Issues
Verify Feature Scope
Problem Description
When working with MCP servers, individual users authenticate via OAuth to the upstream MCP. This is stored in the
oauth_sessionstable. Occasionally users have the desire to disconnect from a mcp, to re-authenticate to a different account, or need to refresh the connection for some reason. Currently the only way to do this is to delete the coresponding row in theoauth_sessionstable.Desired Solution you'd like
Provide a mechanism for users to disconnect/remove their credentials. A suggestion would be to add this to the tools menu, an example below of the UX of Gemini enterprise.
Additionally, as a nicety, add an option in the admin panel under users or connections to clear specific user connections or all connections for a specific MCP connection.
Alternatives Considered
Manually removing records from
oauth_sessionsDB table.Additional Context
No response
@dude75 commented on GitHub (Apr 23, 2026):
Yes, that's a great idea. I also have to clean the database manually.
@tjbck commented on GitHub (Apr 24, 2026):
Addressed in dev.