mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-10 07:43:10 -05:00
oauth2/OIDC users forced into 'pending' state after each login #3256
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 @NetValue-noc on GitHub (Jan 13, 2025).
Bug Report
Installation Method
Podman container pulled from ghcr.io/open-webui/open-webui:cuda
Nginx providing HTTPS proxy in front
Environment
Open WebUI Version: v0.5.4
Operating System: Ubuntu 22.04
Browser (if applicable): Firefox,chrome
Confirmation:
Expected Behavior:
User authenticates via oauth2/oidc and is placed into 'pending' state.
open-webui admin changes user to 'user' (or 'admin') state
User logs out
User re-authenticates via oauth2/oidc
User is logged in and retains previous state
Actual Behavior:
Each time the user authenticates via oauth2/oidc, they are reverted to 'pending' state
Description
Bug Summary:
Users are set to 'pending' state on each oauth2/oidc authentication.
Reproduction Details
Steps to Reproduce:
See expected behaviour
Logs and Screenshots
No relevant logs are emitted by the container, having more debug log info around the open webui oauth traffic would be great...
Additional Information
Container is started via:
Oauth2/oidc provider is "Jumpcloud". The Jumpcloud SSO application is configured with a custom attribute/claim "roles" which returns "user" or "admin" based on which Jumpcloud user group they are included in.
I've debugged the SSO application and confirmed that the "roles" claim is populated, here's an example response id token which has been decoded:
The open-webui user's Oauth ID is consistent across login attempts.
Nginx proxy config: