mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-22 17:42:18 -05:00
issue: Keycloak OpenID Connect failed: OAuth callback error: Invalid JSON Web Key Set #6282
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 @athenacykes on GitHub (Sep 1, 2025).
Check Existing Issues
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
README.md.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.
com/user-attachments/files/22075770/openwebui.txt)
chat.aidev.ubrmbqa.com.har.zip
Additional Information
No response