mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-23 01:51:58 -05:00
[PR #7678] [MERGED] feat: implement OAuth logout functionality for keyclock to terminate sso session #8888
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/7678
Author: @ZaibanAli
Created: 12/7/2024
Status: ✅ Merged
Merged: 12/10/2024
Merged by: @tjbck
Base:
dev← Head:feature/keycloak-terminate-sso-session📝 Commits (5)
d5ce85ffeat: implement OAuth logout functionality for keyclock to terminate sso session9918ec6feat: update signout functionality to use OpenID configuration for logout URL and remove the logout variable from config48d604afeat: enable OAuth signup configuration for signout functionality899424bfeat: refactor signout functionality to use aiohttp for OpenID configuration retrievala3ca632refac: id_token -> oauth_id_token📊 Changes
2 files changed (+40 additions, -3 deletions)
View changed files
📝
backend/open_webui/apps/webui/routers/auths.py(+30 -2)📝
backend/open_webui/utils/oauth.py(+10 -1)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Added
Changed
/signoutendpoint to include logic for cleaning up the oidc session (keycloak) using theid_token. (backend/open_webui/apps/webui/routers/auths.py)id_tokencookie when using the OAUTH oidc provider. (backend/open_webui/utils/oauth.py)Deprecated
Removed
Fixed
signoutfunction did not correctly handle Keycloak logouts due to missingid_token.Security
Breaking Changes
Additional Information
Screenshots or Videos
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.