OpenId Plugin Callback setting

To connect openID with discourse I perform these 5 setting

  • openid connect enabled:
  • openid connect discovery document: https://accounts.google.com/.well-known/openid-configuration
  • openid connect client id: <client-id>
  • openid connect client secret: <client-secret>
  • openid connect authorize scope: openid email (with a space in between)

Now i am getting this error
https://domain-name/auth/oidc/callback?code=AC-eTTbC_x55JZhG4xAuA.GABQGY3DINZR-w4Wd27cdYm7Q4dTq1Gjxl6dw-19017903a09-int&state=22d4adfa6cf755db241d87e788765


Can someone pls help me what i need to configure so that my plugin reddem this code and start working

I checked the logs and it is due to

NoMethodError (undefined method `[]' for nil)
lib/middleware/omniauth_bypass_middleware.rb:43:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:391:in `call'
lib/middleware/csp_script_nonce_injector.rb:12:in `call'
config/initializers/008-rack-cors.rb:14:in `call'
config/initializers/100-quiet_logger.rb:20:in `call'
config/initializers/100-silence_logger.rb:29:in `call'
lib/middleware/enforce_hostname.rb:24:in `call'
lib/middleware/request_tracker.rb:289:in `call' this error
plugins/discourse-openid-connect/lib/omniauth_open_id_connect.rb:185:in `userinfo_response'

plugins/discourse-openid-connect/lib/omniauth_open_id_connect.rb:198:in `block in <class:OpenIDConnect>'

omniauth (1.9.2) lib/omniauth/strategy.rb:109:in `instance_eval'

omniauth (1.9.2) lib/omniauth/strategy.rb:109:in `block in compile_stack'

omniauth (1.9.2) lib/omniauth/strategy.rb:108:in `each'

omniauth (1.9.2) lib/omniauth/strategy.rb:108:in `inject'

omniauth (1.9.2) lib/omniauth/strategy.rb:108:in `compile_stack'

omniauth (1.9.2) lib/omniauth/strategy.rb:102:in `info_stack'

omniauth (1.9.2) lib/omniauth/strategy.rb:336:in `info'

omniauth (1.9.2) lib/omniauth/strategy.rb:349:in `auth_hash'

omniauth (1.9.2) lib/omniauth/strategy.rb:372:in `callback_phase'

omniauth-oauth2 (1.7.3) lib/omniauth/strategies/oauth2.rb:93:in `callback_phase'

plugins/discourse-openid-connect/lib/omniauth_open_id_connect.rb:130:in `callback_phase'

omniauth (1.9.2) lib/omniauth/strategy.rb:238:in `callback_call'

omniauth (1.9.2) lib/omniauth/strategy.rb:189:in `call!'

omniauth (1.9.2) lib/omniauth/strategy.rb:169:in `call'

omniauth (1.9.2) lib/omniauth/builder.rb:45:in `call'

lib/middleware/omniauth_bypass_middleware.rb:43:in `call'

rack (2.2.9) lib/rack/tempfile_reaper.rb:15:in `call'

rack (2.2.9) lib/rack/conditional_get.rb:27:in `call'

rack (2.2.9) lib/rack/head.rb:12:in `call'

actionpack (7.0.8.4) lib/action_dispatch/http/permissions_policy.rb:38:in `call'

lib/content_security_policy/middleware.rb:12:in `call'

lib/middleware/anonymous_cache.rb:391:in `call'

lib/middleware/csp_script_nonce_injector.rb:12:in `call'

config/initializers/008-rack-cors.rb:14:in `call'

rack (2.2.9) lib/rack/session/abstract/id.rb:266:in `context'

rack (2.2.9) lib/rack/session/abstract/id.rb:260:in `call'

actionpack (7.0.8.4) lib/action_dispatch/middleware/cookies.rb:704:in `call'

actionpack (7.0.8.4) lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'

activesupport (7.0.8.4) lib/active_support/callbacks.rb:99:in `run_callbacks'

actionpack (7.0.8.4) lib/action_dispatch/middleware/callbacks.rb:26:in `call'

actionpack (7.0.8.4) lib/action_dispatch/middleware/debug_exceptions.rb:28:in `call'

actionpack (7.0.8.4) lib/action_dispatch/middleware/show_exceptions.rb:29:in `call'

logster (2.19.1) lib/logster/middleware/reporter.rb:40:in `call'

railties (7.0.8.4) lib/rails/rack/logger.rb:40:in `call_app'

railties (7.0.8.4) lib/rails/rack/logger.rb:27:in `call'

config/initializers/100-quiet_logger.rb:20:in `call'

config/initializers/100-silence_logger.rb:29:in `call'

actionpack (7.0.8.4) lib/action_dispatch/middleware/remote_ip.rb:93:in `call'

actionpack (7.0.8.4) lib/action_dispatch/middleware/request_id.rb:26:in `call'

lib/middleware/enforce_hostname.rb:24:in `call'

rack (2.2.9) lib/rack/method_override.rb:24:in `call'

actionpack (7.0.8.4) lib/action_dispatch/middleware/executor.rb:14:in `call'

rack (2.2.9) lib/rack/sendfile.rb:110:in `call'

actionpack (7.0.8.4) lib/action_dispatch/middleware/host_authorization.rb:131:in `call'

rack-mini-profiler (3.3.1) lib/mini_profiler.rb:191:in `call'

message_bus (4.3.8) lib/message_bus/rack/middleware.rb:60:in `call'

lib/middleware/request_tracker.rb:289:in `call'

railties (7.0.8.4) lib/rails/engine.rb:530:in `call'

railties (7.0.8.4) lib/rails/railtie.rb:226:in `public_send'

railties (7.0.8.4) lib/rails/railtie.rb:226:in `method_missing'

rack (2.2.9) lib/rack/urlmap.rb:74:in `block in call'

rack (2.2.9) lib/rack/urlmap.rb:58:in `each'

rack (2.2.9) lib/rack/urlmap.rb:58:in `call'

unicorn (6.1.0) lib/unicorn/http_server.rb:634:in `process_client'

unicorn (6.1.0) lib/unicorn/http_server.rb:739:in `worker_loop'

unicorn (6.1.0) lib/unicorn/http_server.rb:547:in `spawn_missing_workers'

unicorn (6.1.0) lib/unicorn/http_server.rb:143:in `start'

unicorn (6.1.0) bin/unicorn:128:in `<top (required)>'

vendor/bundle/ruby/3.3.0/bin/unicorn:25:in `load'

vendor/bundle/ruby/3.3.0/bin/unicorn:25:in `<main>'