mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[PR #15077] feat: Add Google Cloud Identity API support for OAuth group-based roles #62562
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/15077
Author: @bdruth
Created: 6/17/2025
Status: 🔄 Open
Base:
dev← Head:feat/google-oauth-groups-dev📝 Commits (10+)
a909fd9feat: Add Google Cloud Identity API support for OAuth group-based roles64ce040fix google cloud identity query stringcc6a1a7update tests for adjusted query string & payload8d6cf35feat: Add Google Cloud Identity API support for OAuth group-based roles30f4950fix google cloud identity query string04811ddupdate tests for adjusted query string & payload6dbc01c- resolve merge conflicts6c86ff7Merge pull request #1 from lgarceau768/feat/google-groupsd277696Merge branch 'main' into mainfe6783cMerge pull request #19030 from open-webui/dev📊 Changes
3 files changed (+595 additions, -63 deletions)
View changed files
➕
backend/open_webui/test/test_oauth_google_groups.py(+266 -0)📝
backend/open_webui/utils/oauth.py(+234 -63)➕
docs/oauth-google-groups.md(+95 -0)📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Added
https://www.googleapis.com/auth/cloud-identity.groups.readonlyscope in Google OAuthChanged
Fixed
Security
Breaking Changes
Additional Information
This enhancement enables proper role assignment for Google SSO by addressing the fact that Google OAuth does not include group or role claims in JWT tokens like other OAuth2 identity providers.
Why this is needed:
How it works:
cloud-identity.groups.readonlyscope, the system fetches user groups via Google Cloud Identity APIConfiguration Requirements:
https://www.googleapis.com/auth/cloud-identity.groups.readonlytoGOOGLE_OAUTH_SCOPEOAUTH_ADMIN_ROLESwith Google group email addressesScreenshots or Videos
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.