Originally created by @ther3zz on GitHub (May 8, 2024).
# Bug Report
Looks like the most recent version pushed (v0.1.124) breaks cloudflare access SSO.
## Description
When setting to variable WEBUI_AUTH_TRUSTED_EMAIL_HEADER to "Cf-Access-Authenticated-User-Email", cloudflare access no longer works.
**Steps to Reproduce:**
1) set the value of WEBUI_AUTH_TRUSTED_EMAIL_HEADER to Cf-Access-Authenticated-User-Email
2) attempt to access via cloudflare access
**Expected Behavior:**
It should log the user in automatically. Currently only tested via admin account.
**Actual Behavior:**
the UI displays a red error stating "The email or password provided is incorrect. Please check for typos and try logging in again."
## Environment
- **Open WebUI Version:** v0.1.124
- **Operating System:** docker image ghcr.io/open-webui/open-webui:main
## Reproduction Details
**Confirmation:**
- [x] I have read and followed all the instructions provided in the README.md.
- [x] I am on the latest version of both Open WebUI and Ollama.
- [ ] I have included the browser console logs.
- [x] I have included the Docker container logs.
## Logs and Screenshots
**Browser Console Logs:**
[Include relevant browser console logs, if applicable]
**Docker Container Logs:**
INFO:apps.web.models.auths:authenticate_user_by_trusted_header: me@email.com
INFO:apps.web.models.auths:authenticate_user:
INFO: 1.2.3.4:0 - "POST /api/v1/auths/signin HTTP/1.1" 400 Bad Request
**Screenshots (if applicable):**

## Installation Method
Docker
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @ther3zz on GitHub (May 8, 2024).
Bug Report
Looks like the most recent version pushed (v0.1.124) breaks cloudflare access SSO.
Description
When setting to variable WEBUI_AUTH_TRUSTED_EMAIL_HEADER to "Cf-Access-Authenticated-User-Email", cloudflare access no longer works.
Steps to Reproduce:
Expected Behavior:
It should log the user in automatically. Currently only tested via admin account.
Actual Behavior:
the UI displays a red error stating "The email or password provided is incorrect. Please check for typos and try logging in again."
Environment
Open WebUI Version: v0.1.124
Operating System: docker image ghcr.io/open-webui/open-webui:main
Reproduction Details
Confirmation:
Logs and Screenshots
Browser Console Logs:
[Include relevant browser console logs, if applicable]
Docker Container Logs:
INFO:apps.web.models.auths:authenticate_user_by_trusted_header: me@email.com
INFO:apps.web.models.auths:authenticate_user:
INFO: 1.2.3.4:0 - "POST /api/v1/auths/signin HTTP/1.1" 400 Bad Request
Screenshots (if applicable):

Installation Method
Docker