[GH-ISSUE #18045] feat: openid login without email scope #105469

Closed
opened 2026-05-18 03:29:18 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @itsHenry35 on GitHub (Oct 4, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/18045

Check Existing Issues

  • I have searched the existing issues and discussions.

Problem Description

Some OIDC providers only return an OpenID identifier without an email address, which is permitted by the specification. However, this results an error while logging in. https://github.com/open-webui/open-webui/blob/4d7fddaf7e434bf59fdd879ef11d712a503b7863/backend/open_webui/utils/oauth.py#L1109

Desired Solution you'd like

Create fake mails like {provider_sub}.local so that the login can be successful.
Create an env called ENABLE_OAUTH_WITHOUT_EMAIL

Alternatives Considered

No response

Additional Context

No response

Originally created by @itsHenry35 on GitHub (Oct 4, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/18045 ### Check Existing Issues - [x] I have searched the existing issues and discussions. ### Problem Description Some OIDC providers only return an OpenID identifier without an email address, which is permitted by the specification. However, this results an error while logging in. https://github.com/open-webui/open-webui/blob/4d7fddaf7e434bf59fdd879ef11d712a503b7863/backend/open_webui/utils/oauth.py#L1109 ### Desired Solution you'd like Create fake mails like {provider_sub}.local so that the login can be successful. Create an env called ENABLE_OAUTH_WITHOUT_EMAIL ### Alternatives Considered _No response_ ### Additional Context _No response_
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#105469