Closed ecylmz closed 4 years ago
Same issue with another backtrace log.
I, [2020-05-22T07:12:43.318200 #618] INFO -- : Started GET "/auth/openid_connect/callback?code=CeNwL0llkRK1WMb9ROEv6n8uVoz9sR8trfieMTakTwA&state=02f0ee1c46f7e18f4cf40d42d80da54f" for 180.97.204.251 at 2020-05-22 07:12:43 +0800
F, [2020-05-22T07:12:48.373148 #618] FATAL -- :
NoMethodError (undefined method `count' for #<OpenIDConnect::ResponseObject::IdToken:0x0000000008d9dde0>):
json-jwt (1.11.0) lib/json/jwt.rb:102:in `decode_compact_serialized'
json-jwt (1.11.0) lib/json/jose.rb:63:in `decode'
openid_connect (1.2.0) lib/openid_connect/response_object/id_token.rb:70:in `decode'
omniauth_openid_connect (0.3.4) lib/omniauth/strategies/openid_connect.rb:221:in `decode_id_token'
omniauth_openid_connect (0.3.4) lib/omniauth/strategies/openid_connect.rb:333:in `verify_id_token!'
omniauth_openid_connect (0.3.4) lib/omniauth/strategies/openid_connect.rb:215:in `access_token'
omniauth_openid_connect (0.3.4) lib/omniauth/strategies/openid_connect.rb:125:in `callback_phase'
omniauth (1.9.1) lib/omniauth/strategy.rb:238:in `callback_call'
omniauth (1.9.1) lib/omniauth/strategy.rb:189:in `call!'
omniauth (1.9.1) lib/omniauth/strategy.rb:169:in `call'
omniauth (1.9.1) lib/omniauth/builder.rb:45:in `call'
warden-jwt_auth (0.4.2) lib/warden/jwt_auth/middleware/token_dispatcher.rb:20:in `call'
warden-jwt_auth (0.4.2) lib/warden/jwt_auth/middleware/revocation_manager.rb:21:in `call'
rack (2.0.9) lib/rack/builder.rb:153:in `call'
warden-jwt_auth (0.4.2) lib/warden/jwt_auth/middleware.rb:23:in `call'
warden (1.2.8) lib/warden/manager.rb:36:in `block in call'
warden (1.2.8) lib/warden/manager.rb:34:in `catch'
warden (1.2.8) lib/warden/manager.rb:34:in `call'
rack (2.0.9) lib/rack/tempfile_reaper.rb:15:in `call'
rack (2.0.9) lib/rack/etag.rb:25:in `call'
rack (2.0.9) lib/rack/conditional_get.rb:25:in `call'
rack (2.0.9) lib/rack/head.rb:12:in `call'
actionpack (6.0.3.1) lib/action_dispatch/http/content_security_policy.rb:18:in `call'
rack (2.0.9) lib/rack/session/abstract/id.rb:259:in `context'
rack (2.0.9) lib/rack/session/abstract/id.rb:253:in `call'
actionpack (6.0.3.1) lib/action_dispatch/middleware/cookies.rb:648:in `call'
actionpack (6.0.3.1) lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'
activesupport (6.0.3.1) lib/active_support/callbacks.rb:101:in `run_callbacks'
actionpack (6.0.3.1) lib/action_dispatch/middleware/callbacks.rb:26:in `call'
actionpack (6.0.3.1) lib/action_dispatch/middleware/actionable_exceptions.rb:17:in `call'
actionpack (6.0.3.1) lib/action_dispatch/middleware/debug_exceptions.rb:32:in `call'
actionpack (6.0.3.1) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
railties (6.0.3.1) lib/rails/rack/logger.rb:37:in `call_app'
railties (6.0.3.1) lib/rails/rack/logger.rb:26:in `block in call'
activesupport (6.0.3.1) lib/active_support/tagged_logging.rb:80:in `block in tagged'
activesupport (6.0.3.1) lib/active_support/tagged_logging.rb:28:in `tagged'
activesupport (6.0.3.1) lib/active_support/tagged_logging.rb:80:in `tagged'
railties (6.0.3.1) lib/rails/rack/logger.rb:26:in `call'
actionpack (6.0.3.1) lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
actionpack (6.0.3.1) lib/action_dispatch/middleware/request_id.rb:27:in `call'
rack (2.0.9) lib/rack/method_override.rb:22:in `call'
rack (2.0.9) lib/rack/runtime.rb:22:in `call'
activesupport (6.0.3.1) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
actionpack (6.0.3.1) lib/action_dispatch/middleware/executor.rb:14:in `call'
rack (2.0.9) lib/rack/sendfile.rb:111:in `call'
actionpack (6.0.3.1) lib/action_dispatch/middleware/ssl.rb:74:in `call'
actionpack (6.0.3.1) lib/action_dispatch/middleware/host_authorization.rb:76:in `call'
railties (6.0.3.1) lib/rails/engine.rb:527:in `call'
puma (4.3.5) lib/puma/configuration.rb:228:in `call'
puma (4.3.5) lib/puma/server.rb:713:in `handle_request'
puma (4.3.5) lib/puma/server.rb:472:in `process_client'
puma (4.3.5) lib/puma/server.rb:328:in `block in run'
puma (4.3.5) lib/puma/thread_pool.rb:134:in `block in spawn_thread'
Thanks for the feedback. I'll take a look at this on weekend
could be related to https://github.com/m0n9oose/omniauth_openid_connect/pull/44
Thanks. @m0n9oose Could you publish a new release? The last release is 0.3.4. https://rubygems.org/gems/omniauth_openid_connect/versions
Yes, a new release with this bug fixed would be very nice.
Hi,
After upgrading Gem to 0.3.4, we started getting the following error:
There is no problem when we downgrade the gem version to 0.3.3.
Thanks.