mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[GH-ISSUE #16908] issue: OIDC login with ADFS fails on Open WebUI ≥0.6.25 due to missing email claim #18092
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?
Originally created by @HaldiH on GitHub (Aug 25, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/16908
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.25
Ollama Version (if applicable)
No response
Operating System
Ubuntu 24.04
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
Open WebUI should extract the user’s email from the id_token (claim "email") and complete the login successfully, as it did in version 0.6.22.
Actual Behavior
Login fails with an error message in the browser:
Logs show:
The ADFS
/userinfoendpoint only returnssub, notemail. SettingOAUTH_EMAIL_CLAIM=emaildoes not fix the issue.Steps to Reproduce
Prerequisites
Prepare Docker Compose configuration
Create a
docker-compose.ymlfile with the following content (sensitive data anonymized):Start the service
Run the following command to start Open WebUI:
Verify that the container is running:
Confirm that Open WebUI is accessible.
Attempt to login via OIDC
https://hactar.unige.ch.Observe the failure
The login fails, showing the message:
In container logs, you will see:
Verify the token (optional, to demonstrate the issue)
id_tokenfrom the OAuth callback URL.emailclaim but/userinfoonly returnssub.Result
OAUTH_EMAIL_CLAIM=emaildoes not resolve the issue.Logs & Screenshots
JWT decoded (sensitive data censored):
Additional Information
Since upgrading from Open WebUI 0.6.22 to 0.6.25, OIDC login via ADFS no longer works. The main issue is that Open WebUI expects the user’s email to be returned either in the ID token or via the
/userinfoendpoint. However, ADFS only provides thesubclaim in/userinfo, and although the ID token contains anemailclaim, Open WebUI fails to extract it. SettingOAUTH_EMAIL_CLAIM=emaildoes not resolve the problem. The login fails with a generic "email or password incorrect" error, even though the token is valid and contains the user’s email.This appears to be a regression compared to 0.6.22, where login with the same ADFS setup worked without issues.