mirror of
https://github.com/open-webui/open-webui.git
synced 2026-06-05 00:10:27 -05:00
[PR #6238] [MERGED] feat: oauth based role management #92884
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/6238
Author: @Cyb4Black
Created: 10/16/2024
Status: ✅ Merged
Merged: 10/21/2024
Merged by: @tjbck
Base:
dev← Head:dev📝 Commits (10+)
9a691c0Add oauth role mappingdc92178Fix missing key mappingc9d948fRemove copy pasta error of calling value on bool0a7373dadd pending as role fallback5b2e1caadd more logging8e4776aadd handling nested claims...79b9c8ahandling no claim received when nested expected6ddd8c7fix logicf751d22Refinementedc15d0rewrite oauth role management logic to allow any custom roles to be used for oauth role to open webui role mapping📊 Changes
7 files changed (+356 additions, -223 deletions)
View changed files
📝
backend/open_webui/apps/ollama/main.py(+1 -1)📝
backend/open_webui/apps/retrieval/vector/dbs/chroma.py(+4 -6)📝
backend/open_webui/apps/retrieval/vector/dbs/qdrant.py(+24 -21)📝
backend/open_webui/apps/webui/main.py(+9 -0)📝
backend/open_webui/config.py(+28 -1)📝
backend/open_webui/main.py(+34 -194)➕
backend/open_webui/utils/oauth.py(+256 -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.
Before submitting, make sure you've checked the following:
devbranch.Testing: Have you written and run sufficient tests for validating the changes?Changelog Entry
Description
Added
Changed
Additional Information
Screenshots or Videos
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.