mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #12185] issue: OIDC expects UserInfo claims to always be returned in the id token. #16497
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 @Crowley723 on GitHub (Mar 30, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/12185
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.4.6
Ollama Version (if applicable)
v0.6.3
Operating System
Ubuntu 24.04.2LTS
Browser (if applicable)
Firefox (snap) 136.0.3
Confirmation
README.md.Expected Behavior
When attempting authentication with an external OIDC provider, the user should be properly logged in and not presented with an error.
Actual Behavior
When attempting authentication with an external OIDC provider (authelia in this case), the user is presented with an error.
Steps to Reproduce
Internal Server Errorfrom open-webuiLogs & Screenshots
Ollama Logs:
Authelia Logs:
Additional Information
I believe this issue is the same one fixed by this pr in mealie.
Per the OIDC spec, it is not required for OIDC providers to return anything except for specific claims in the id_token given to the client after authentication. As such, if the client expects info about the user (such as email, username, etc) they may have to fetch said info from the provider's user info endpoint.
In the recent update for authelia (4.39), we stopped including this information by default which requires some clients to use the UserInfo endpoint. We provided a way for admins to continue using the old method but this is a band-aid fix.
Possible Solution
As can be seen in the mealie pr, this should be a fairly straight forward fix, if the returned token doesn't contain the required information about the user, fetch it from the UserInfo endpoint instead.
@tjbck commented on GitHub (Mar 30, 2025):
I am using the latest version of Open WebUI.?