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_
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 @itsHenry35 on GitHub (Oct 4, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/18045
Check Existing Issues
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