mirror of
https://github.com/open-webui/open-webui.git
synced 2026-06-05 16:28:32 -05:00
[PR #4439] [MERGED] feat: Add OAuth Email Claim Variable #21490
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/4439
Author: @cdgco
Created: 8/7/2024
Status: ✅ Merged
Merged: 8/7/2024
Merged by: @tjbck
Base:
dev← Head:dev📝 Commits (1)
d72d5d0feat: Add OAuth Email Claim Variable📊 Changes
3 files changed (+10 additions, -1 deletions)
View changed files
📝
backend/apps/webui/main.py(+2 -0)📝
backend/config.py(+6 -0)📝
backend/main.py(+2 -1)📄 Description
Add an
OAUTH_EMAIL_CLAIMvariable to override the default "email" claim value.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
emailas the value for the OAuth email claim, while some providers use alternative claims in their ID tokens. Users can now override this value to specify an alternative claim containing the user's email address.Added
OAUTH_EMAIL_CLAIMvariable to override default claim value.Closes #4435
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.