mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 12:58:11 -05:00
[PR #14919] [CLOSED] fix: trusted header email case mismatch #62501
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/14919
Author: @ediiiz
Created: 6/12/2025
Status: ❌ Closed
Base:
dev← Head:fix/trusted-header-email-case-mismatch📝 Commits (1)
440486bfix: ensure case-insensitive email comparison for trusted email header📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
backend/open_webui/utils/auth.py(+1 -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
This PR fixes a case sensitivity issue in the trusted header authentication flow that caused "User mismatch" errors. The problem occurred when identity providers (like Authentik) returned email headers with uppercase characters, while Open WebUI stores emails in lowercase. The new security check in v0.6.14 performed case-sensitive comparison, causing authentication failures after initial login. This fix implements case-insensitive email comparison to match Open WebUI's existing email normalization strategy.
Fixed
Case sensitivity issue in trusted header authentication that caused "User mismatch" errors when identity providers preserve email case
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.