issue: Keycloak OpenID Connect failed: OAuth callback error: Invalid JSON Web Key Set #6282

Closed
opened 2025-11-11 16:50:02 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @athenacykes on GitHub (Sep 1, 2025).

Check Existing Issues

  • I have searched the existing issues and discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Docker

Open WebUI Version

v0.6.26

Ollama Version (if applicable)

No response

Operating System

Oracle Linux 9.4

Browser (if applicable)

No response

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

User is expected to login via Keycloak OpenID Connect single sign-on. Previously we had this working on v0.6.15

Actual Behavior

The user cannot login via Keycloak OpenID Connect single sign-on on v0.6.26. Browser is showing: {"detail":"The email or password provided is incorrect. Please check for typos and try logging in again."}

On the backend docker logs it shows: 2025-09-01 09:50:55.593 | WARNING | open_webui.utils.oauth:handle_callback:361 - OAuth callback error: Invalid JSON Web Key Set

Steps to Reproduce

Login with Keycloak OpenID Connect SSO configured. The same configuration worked on v0.6.15, but not working on v0.6.26.

Relevant environment variables used:
- ENABLE_OAUTH_SIGNUP=True
- ENABLE_LOGIN_FORM=False
- OAUTH_MERGE_ACCOUNTS_BY_EMAIL=True
- OAUTH_CLIENT_ID=openwebui-qa
- OAUTH_CLIENT_SECRET=xxxx
- OPENID_PROVIDER_URL=https://sso.ubrmbqa.com/auth/realms/ubrmbtest/.well-known/openid-configuration
- OAUTH_PROVIDER_NAME=xxxx
- OAUTH_USERNAME_CLAIM=preferred_username
- OAUTH_EMAIL_CLAIM=email
- ENABLE_OAUTH_ROLE_MANAGEMENT=True
- OAUTH_ROLES_CLAIM=roles
- OAUTH_ALLOWED_ROLES=user
- OAUTH_ADMIN_ROLES=admin

Logs & Screenshots

I am attaching browser HAR and docker logs.

[openwebui.txt](https://github.

Image

com/user-attachments/files/22075770/openwebui.txt)

chat.aidev.ubrmbqa.com.har.zip

Additional Information

No response

Originally created by @athenacykes on GitHub (Sep 1, 2025). ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Docker ### Open WebUI Version v0.6.26 ### Ollama Version (if applicable) _No response_ ### Operating System Oracle Linux 9.4 ### Browser (if applicable) _No response_ ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### Expected Behavior User is expected to login via Keycloak OpenID Connect single sign-on. Previously we had this working on v0.6.15 ### Actual Behavior The user cannot login via Keycloak OpenID Connect single sign-on on v0.6.26. Browser is showing: {"detail":"The email or password provided is incorrect. Please check for typos and try logging in again."} On the backend docker logs it shows: 2025-09-01 09:50:55.593 | WARNING | open_webui.utils.oauth:handle_callback:361 - OAuth callback error: Invalid JSON Web Key Set ### Steps to Reproduce Login with Keycloak OpenID Connect SSO configured. The same configuration worked on v0.6.15, but not working on v0.6.26. Relevant environment variables used: - ENABLE_OAUTH_SIGNUP=True - ENABLE_LOGIN_FORM=False - OAUTH_MERGE_ACCOUNTS_BY_EMAIL=True - OAUTH_CLIENT_ID=openwebui-qa - OAUTH_CLIENT_SECRET=xxxx - OPENID_PROVIDER_URL=https://sso.ubrmbqa.com/auth/realms/ubrmbtest/.well-known/openid-configuration - OAUTH_PROVIDER_NAME=xxxx - OAUTH_USERNAME_CLAIM=preferred_username - OAUTH_EMAIL_CLAIM=email - ENABLE_OAUTH_ROLE_MANAGEMENT=True - OAUTH_ROLES_CLAIM=roles - OAUTH_ALLOWED_ROLES=user - OAUTH_ADMIN_ROLES=admin ### Logs & Screenshots I am attaching browser HAR and docker logs. [openwebui.txt](https://github. <img width="1832" height="414" alt="Image" src="https://github.com/user-attachments/assets/4a8fdde5-533c-4615-9a71-dda94b97f421" /> com/user-attachments/files/22075770/openwebui.txt) [chat.aidev.ubrmbqa.com.har.zip](https://github.com/user-attachments/files/22075892/chat.aidev.ubrmbqa.com.har.zip) ### Additional Information _No response_
GiteaMirror added the bug label 2025-11-11 16:50:02 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#6282