mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-22 14:13:08 -05:00
[PR #7923] [MERGED] feat: Allow user groups to be managed by oauth #8933
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/7923
Author: @tarmst
Created: 12/17/2024
Status: ✅ Merged
Merged: 12/17/2024
Merged by: @tjbck
Base:
dev← Head:groups-from-oauth📝 Commits (2)
9737869Adding oauth group management for users upon login0f33856Removing prints used for debugging📊 Changes
2 files changed (+65 additions, -0 deletions)
View changed files
📝
backend/open_webui/config.py(+12 -0)📝
backend/open_webui/utils/oauth.py(+53 -0)📄 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.
Associated discussion post: https://github.com/open-webui/open-webui/issues/7102
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Added the ability to match user oauth groups to OpenWebUI groups with exactly the same names upon user login. This will also remove users from OpenWebUI groups if they are removed from an oauth group.
This can be enabled by using:
'ENABLE_OAUTH_GROUP_MANAGEMENT=true'in the docker compose file.You can also change the name of the groups claim using
OAUTH_GROUPS_CLAIM=groups_name.Added
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.