# Bug OP-17682 - Keycloak OIDC login doesn't work since update to 16.2.1

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-17682

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module | Authentication / OpenID Connect (OIDC) |
| Target versions | 16.2.2 |
| Observed in versions | 16.2.0 |
| Sprint | 16.2.2 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 16.2.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

*Please write down the steps to reproduce. Try to write down all necessary preconditions (what permissions do you have, are other users involved?). Example:*

1.  Keycloak configured as OpenID Connect Provider

2.  Single Signon with Keycloak

### What is the buggy behavior?

1.  Login fails with a 500 Internal Server Error

### What is the expected behavior?

Login works

### 

### **Logs**

``` text
web-1       | F, [2025-08-06T12:04:56.400914 #80] FATAL -- : [eacf7f4b-2059-4177-a694-a4e2d2293133]   
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] TypeError (can't convert String into Hash):
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133]   
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] omniauth-openid-connect (3d5fec65072f) lib/omniauth/strategies/openid_connect/claims.rb:50:in 'Kernel#Hash'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] omniauth-openid-connect (3d5fec65072f) lib/omniauth/strategies/openid_connect/claims.rb:50:in 'OmniAuth::Strategies::OpenIDConnect::Claims#claims'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] omniauth-openid-connect (3d5fec65072f) lib/omniauth/strategies/openid_connect/claims.rb:55:in 'OmniAuth::Strategies::OpenIDConnect::Claims#claims?'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] omniauth-openid-connect (3d5fec65072f) lib/omniauth/strategies/openid_connect/claims.rb:41:in 'OmniAuth::Strategies::OpenIDConnect::Claims#claims_auth_param'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] omniauth-openid-connect (3d5fec65072f) lib/omniauth/strategies/openid_connect/claims.rb:36:in 'OmniAuth::Strategies::OpenIDConnect::Claims#authorize_options'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] omniauth-openid-connect (3d5fec65072f) lib/omniauth/strategies/openid_connect.rb:135:in 'OmniAuth::Strategies::OpenIDConnect#authorize_uri'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] omniauth-openid-connect (3d5fec65072f) lib/omniauth/strategies/openid_connect.rb:82:in 'OmniAuth::Strategies::OpenIDConnect#request_phase'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] omniauth (7eb21563ba04) lib/omniauth/strategy.rb:226:in 'OmniAuth::Strategy#request_call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] omniauth (7eb21563ba04) lib/omniauth/strategy.rb:188:in 'OmniAuth::Strategy#call!'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] omniauth (7eb21563ba04) lib/omniauth/strategy.rb:169:in 'OmniAuth::Strategy#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] omniauth (7eb21563ba04) lib/omniauth/builder.rb:45:in 'OmniAuth::Builder#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] omniauth (7eb21563ba04) lib/omniauth/strategy.rb:425:in 'OmniAuth::Strategy#call_app!'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] omniauth-saml (1.10.6) lib/omniauth/strategies/saml.rb:86:in 'OmniAuth::Strategies::SAML#other_phase'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] omniauth (7eb21563ba04) lib/omniauth/strategy.rb:190:in 'OmniAuth::Strategy#call!'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] omniauth (7eb21563ba04) lib/omniauth/strategy.rb:169:in 'OmniAuth::Strategy#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] omniauth (7eb21563ba04) lib/omniauth/builder.rb:45:in 'OmniAuth::Builder#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] warden (1.2.9) lib/warden/manager.rb:36:in 'block in Warden::Manager#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] warden (1.2.9) lib/warden/manager.rb:34:in 'Kernel#catch'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] warden (1.2.9) lib/warden/manager.rb:34:in 'Warden::Manager#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] omniauth (7eb21563ba04) lib/omniauth/builder.rb:45:in 'OmniAuth::Builder#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] rack-attack (6.7.0) lib/rack/attack.rb:103:in 'Rack::Attack#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] rack (2.2.17) lib/rack/tempfile_reaper.rb:15:in 'Rack::TempfileReaper#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] rack-attack (6.7.0) lib/rack/attack.rb:127:in 'Rack::Attack#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] rack (2.2.17) lib/rack/static.rb:162:in 'Rack::Static#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] rack (2.2.17) lib/rack/tempfile_reaper.rb:15:in 'Rack::TempfileReaper#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] rack (2.2.17) lib/rack/etag.rb:27:in 'Rack::ETag#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] rack (2.2.17) lib/rack/deflater.rb:44:in 'Rack::Deflater#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] rack (2.2.17) lib/rack/conditional_get.rb:27:in 'Rack::ConditionalGet#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] rack (2.2.17) lib/rack/head.rb:12:in 'Rack::Head#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] actionpack (8.0.2) lib/action_dispatch/http/permissions_policy.rb:38:in 'ActionDispatch::PermissionsPolicy::Middleware#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] actionpack (8.0.2) lib/action_dispatch/http/content_security_policy.rb:38:in 'ActionDispatch::ContentSecurityPolicy::Middleware#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] rack (2.2.17) lib/rack/session/abstract/id.rb:266:in 'Rack::Session::Abstract::Persisted#context'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] rack (2.2.17) lib/rack/session/abstract/id.rb:260:in 'Rack::Session::Abstract::Persisted#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] actionpack (8.0.2) lib/action_dispatch/middleware/cookies.rb:706:in 'ActionDispatch::Cookies#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] actionpack (8.0.2) lib/action_dispatch/middleware/callbacks.rb:31:in 'block in ActionDispatch::Callbacks#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] activesupport (8.0.2) lib/active_support/callbacks.rb:100:in 'ActiveSupport::Callbacks#run_callbacks'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] actionpack (8.0.2) lib/action_dispatch/middleware/callbacks.rb:30:in 'ActionDispatch::Callbacks#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] actionpack (8.0.2) lib/action_dispatch/middleware/debug_exceptions.rb:31:in 'ActionDispatch::DebugExceptions#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] secure_headers (7.1.0) lib/secure_headers/middleware.rb:11:in 'SecureHeaders::Middleware#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] actionpack (8.0.2) lib/action_dispatch/middleware/show_exceptions.rb:32:in 'ActionDispatch::ShowExceptions#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] rack-cors (2.0.2) lib/rack/cors.rb:102:in 'Rack::Cors#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] lograge (0.14.0) lib/lograge/rails_ext/rack/logger.rb:18:in 'Rails::Rack::Logger#call_app'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] railties (8.0.2) lib/rails/rack/logger.rb:29:in 'Rails::Rack::Logger#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] sprockets-rails (3.5.2) lib/sprockets/rails/quiet_assets.rb:17:in 'Sprockets::Rails::QuietAssets#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] actionpack (8.0.2) lib/action_dispatch/middleware/remote_ip.rb:96:in 'ActionDispatch::RemoteIp#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] request_store (1.7.0) lib/request_store/middleware.rb:19:in 'RequestStore::Middleware#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] actionpack (8.0.2) lib/action_dispatch/middleware/request_id.rb:34:in 'ActionDispatch::RequestId#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] rack (2.2.17) lib/rack/method_override.rb:24:in 'Rack::MethodOverride#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] rack (2.2.17) lib/rack/runtime.rb:22:in 'Rack::Runtime#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] rack-timeout (0.7.0) lib/rack/timeout/core.rb:154:in 'block in Rack::Timeout#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] rack-timeout (0.7.0) lib/rack/timeout/support/timeout.rb:19:in 'Rack::Timeout::Scheduler::Timeout#timeout'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] rack-timeout (0.7.0) lib/rack/timeout/core.rb:153:in 'Rack::Timeout#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] actionpack (8.0.2) lib/action_dispatch/middleware/executor.rb:16:in 'ActionDispatch::Executor#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] actionpack (8.0.2) lib/action_dispatch/middleware/static.rb:27:in 'ActionDispatch::Static#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] rack (2.2.17) lib/rack/sendfile.rb:110:in 'Rack::Sendfile#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] actionpack (8.0.2) lib/action_dispatch/middleware/ssl.rb:92:in 'ActionDispatch::SSL#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] actionpack (8.0.2) lib/action_dispatch/middleware/host_authorization.rb:143:in 'ActionDispatch::HostAuthorization#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] railties (8.0.2) lib/rails/engine.rb:535:in 'Rails::Engine#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] rack-protection (3.2.0) lib/rack/protection/frame_options.rb:33:in 'Rack::Protection::FrameOptions#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] rack-protection (3.2.0) lib/rack/protection/json_csrf.rb:28:in 'Rack::Protection::JsonCsrf#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] rack (2.2.17) lib/rack/urlmap.rb:74:in 'block in Rack::URLMap#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] rack (2.2.17) lib/rack/urlmap.rb:58:in 'Array#each'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] rack (2.2.17) lib/rack/urlmap.rb:58:in 'Rack::URLMap#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] puma (6.6.0) lib/puma/configuration.rb:279:in 'Puma::Configuration::ConfigMiddleware#call'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] puma (6.6.0) lib/puma/request.rb:99:in 'block in Puma::Request#handle_request'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] puma (6.6.0) lib/puma/thread_pool.rb:390:in 'Puma::ThreadPool#with_force_shutdown'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] puma (6.6.0) lib/puma/request.rb:98:in 'Puma::Request#handle_request'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] puma (6.6.0) lib/puma/server.rb:472:in 'Puma::Server#process_client'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] puma (6.6.0) lib/puma/server.rb:254:in 'block in Puma::Server#run'
web-1       | [eacf7f4b-2059-4177-a694-a4e2d2293133] puma (6.6.0) lib/puma/thread_pool.rb:167:in 'block in Puma::ThreadPool#spawn_thread'
web-1       | E, [2025-08-06T12:04:56.522732 #80] ERROR -- : [eacf7f4b-2059-4177-a694-a4e2d2293133] user=4 can't convert String into Hash: can't convert String into Hash
```

### 

### Environment information

**OpenProject installation type**

  - Docker-compose installation

**OpenProject version**

v16.2.1, it worked with v16.2.0
