we have installed the plugin to be able to authenticate users against a CAS server. The user clicks on the "login with CAS" button, goes correctly to the CAS authentication, authenticates but after that the response from Redmine is an error:
this is production.log
`Started GET "/redmine2/auth/cas?origin=https%3A%2F%2Fwww-[customerIP].es%2Fredmine2%2F" for 10.166.68.8 at 2022-01-18 09:25:38 +0100
Started GET "/redmine2/auth/cas/callback?origin=https%3A%2F%2Fwww-[customerIP].es%2Fredmine2%2F&ticket=ST-639-59ncpzKg4JK0u070sRPe-linosa2-pre" for 10.166.68.8 at 2022-01-18 09:25:38 +0100
Just wanted to say that the issue was caused by the squid proxy interfering in the authentication process. We solved this by including the squid proxy IP in Redmine's production environment.
Hi,
we have installed the plugin to be able to authenticate users against a CAS server. The user clicks on the "login with CAS" button, goes correctly to the CAS authentication, authenticates but after that the response from Redmine is an error:
this is production.log
`Started GET "/redmine2/auth/cas?origin=https%3A%2F%2Fwww-[customerIP].es%2Fredmine2%2F" for 10.166.68.8 at 2022-01-18 09:25:38 +0100 Started GET "/redmine2/auth/cas/callback?origin=https%3A%2F%2Fwww-[customerIP].es%2Fredmine2%2F&ticket=ST-639-59ncpzKg4JK0u070sRPe-linosa2-pre" for 10.166.68.8 at 2022-01-18 09:25:38 +0100
Net::OpenTimeout (execution expired):
/usr/lib64/ruby/2.5.0/net/http.rb:937:in
initialize' /usr/lib64/ruby/2.5.0/net/http.rb:937:in
open' /usr/lib64/ruby/2.5.0/net/http.rb:937:inblock in connect' /usr/lib64/ruby/2.5.0/timeout.rb:103:in
timeout' /usr/lib64/ruby/2.5.0/net/http.rb:935:inconnect' /usr/lib64/ruby/2.5.0/net/http.rb:920:in
do_start' /usr/lib64/ruby/2.5.0/net/http.rb:909:instart' omniauth-cas (1.1.1) lib/omniauth/strategies/cas/service_ticket_validator.rb:94:in
get_service_response_body' omniauth-cas (1.1.1) lib/omniauth/strategies/cas/service_ticket_validator.rb:24:incall' omniauth-cas (1.1.1) lib/omniauth/strategies/cas.rb:186:in
validate_service_ticket' omniauth-cas (1.1.1) lib/omniauth/strategies/cas.rb:192:infetch_raw_info' omniauth-cas (1.1.1) lib/omniauth/strategies/cas.rb:84:in
callback_phase' omniauth (1.9.1) lib/omniauth/strategy.rb:238:incallback_call' omniauth (1.9.1) lib/omniauth/strategy.rb:189:in
call!' omniauth (1.9.1) lib/omniauth/strategy.rb:169:incall' omniauth (1.9.1) lib/omniauth/builder.rb:45:in
call' rack-openid (1.4.2) lib/rack/openid.rb:98:incall' rack (2.2.3) lib/rack/tempfile_reaper.rb:15:in
call' rack (2.2.3) lib/rack/etag.rb:27:incall' rack (2.2.3) lib/rack/conditional_get.rb:27:in
call' rack (2.2.3) lib/rack/head.rb:12:incall' actionpack (5.2.5) lib/action_dispatch/http/content_security_policy.rb:18:in
call' rack (2.2.3) lib/rack/session/abstract/id.rb:266:incontext' rack (2.2.3) lib/rack/session/abstract/id.rb:260:in
call' actionpack (5.2.5) lib/action_dispatch/middleware/cookies.rb:670:incall' actionpack (5.2.5) lib/action_dispatch/middleware/callbacks.rb:28:in
block in call' activesupport (5.2.5) lib/active_support/callbacks.rb:98:inrun_callbacks' actionpack (5.2.5) lib/action_dispatch/middleware/callbacks.rb:26:in
call' actionpack (5.2.5) lib/action_dispatch/middleware/debug_exceptions.rb:61:incall' actionpack (5.2.5) lib/action_dispatch/middleware/show_exceptions.rb:33:in
call' railties (5.2.5) lib/rails/rack/logger.rb:38:incall_app' railties (5.2.5) lib/rails/rack/logger.rb:26:in
block in call' activesupport (5.2.5) lib/active_support/tagged_logging.rb:71:inblock in tagged' activesupport (5.2.5) lib/active_support/tagged_logging.rb:28:in
tagged' activesupport (5.2.5) lib/active_support/tagged_logging.rb:71:intagged' railties (5.2.5) lib/rails/rack/logger.rb:26:in
call' actionpack (5.2.5) lib/action_dispatch/middleware/remote_ip.rb:81:incall' request_store (1.4.1) lib/request_store/middleware.rb:19:in
call' actionpack (5.2.5) lib/action_dispatch/middleware/request_id.rb:27:incall' rack (2.2.3) lib/rack/method_override.rb:24:in
call' rack (2.2.3) lib/rack/runtime.rb:22:incall' activesupport (5.2.5) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in
call' actionpack (5.2.5) lib/action_dispatch/middleware/executor.rb:14:incall' actionpack (5.2.5) lib/action_dispatch/middleware/static.rb:127:in
call' rack (2.2.3) lib/rack/sendfile.rb:110:incall' rack (2.2.3) lib/rack/content_length.rb:17:in
call' railties (5.2.5) lib/rails/engine.rb:524:incall' passenger (6.0.9) src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb:107:in
process_request' passenger (6.0.9) src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:149:inaccept_and_process_next_request' passenger (6.0.9) src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:110:in
main_loop' passenger (6.0.9) src/ruby_supportlib/phusion_passenger/request_handler.rb:416:inblock (3 levels) in start_threads' passenger (6.0.9) src/ruby_supportlib/phusion_passenger/utils.rb:113:in
block in create_thread_and_abort_on_exception'Net::OpenTimeout (execution expired):
/usr/lib64/ruby/2.5.0/net/http.rb:937:in
initialize' /usr/lib64/ruby/2.5.0/net/http.rb:937:in
open' /usr/lib64/ruby/2.5.0/net/http.rb:937:inblock in connect' /usr/lib64/ruby/2.5.0/timeout.rb:103:in
timeout' /usr/lib64/ruby/2.5.0/net/http.rb:935:inconnect' /usr/lib64/ruby/2.5.0/net/http.rb:920:in
do_start' /usr/lib64/ruby/2.5.0/net/http.rb:909:instart' omniauth-cas (1.1.1) lib/omniauth/strategies/cas/service_ticket_validator.rb:94:in
get_service_response_body' omniauth-cas (1.1.1) lib/omniauth/strategies/cas/service_ticket_validator.rb:24:incall' omniauth-cas (1.1.1) lib/omniauth/strategies/cas.rb:186:in
validate_service_ticket' omniauth-cas (1.1.1) lib/omniauth/strategies/cas.rb:192:infetch_raw_info' omniauth-cas (1.1.1) lib/omniauth/strategies/cas.rb:84:in
callback_phase' omniauth (1.9.1) lib/omniauth/strategy.rb:238:incallback_call' omniauth (1.9.1) lib/omniauth/strategy.rb:189:in
call!' omniauth (1.9.1) lib/omniauth/strategy.rb:169:incall' omniauth (1.9.1) lib/omniauth/builder.rb:45:in
call' rack-openid (1.4.2) lib/rack/openid.rb:98:incall' rack (2.2.3) lib/rack/tempfile_reaper.rb:15:in
call' rack (2.2.3) lib/rack/etag.rb:27:incall' rack (2.2.3) lib/rack/conditional_get.rb:27:in
call' rack (2.2.3) lib/rack/head.rb:12:incall' actionpack (5.2.5) lib/action_dispatch/http/content_security_policy.rb:18:in
call' rack (2.2.3) lib/rack/session/abstract/id.rb:266:incontext' rack (2.2.3) lib/rack/session/abstract/id.rb:260:in
call' actionpack (5.2.5) lib/action_dispatch/middleware/cookies.rb:670:incall' actionpack (5.2.5) lib/action_dispatch/middleware/callbacks.rb:28:in
block in call' activesupport (5.2.5) lib/active_support/callbacks.rb:98:inrun_callbacks' actionpack (5.2.5) lib/action_dispatch/middleware/callbacks.rb:26:in
call' actionpack (5.2.5) lib/action_dispatch/middleware/debug_exceptions.rb:61:incall' actionpack (5.2.5) lib/action_dispatch/middleware/show_exceptions.rb:33:in
call' railties (5.2.5) lib/rails/rack/logger.rb:38:incall_app' railties (5.2.5) lib/rails/rack/logger.rb:26:in
block in call' activesupport (5.2.5) lib/active_support/tagged_logging.rb:71:inblock in tagged' activesupport (5.2.5) lib/active_support/tagged_logging.rb:28:in
tagged' activesupport (5.2.5) lib/active_support/tagged_logging.rb:71:intagged' railties (5.2.5) lib/rails/rack/logger.rb:26:in
call' actionpack (5.2.5) lib/action_dispatch/middleware/remote_ip.rb:81:incall' request_store (1.4.1) lib/request_store/middleware.rb:19:in
call' actionpack (5.2.5) lib/action_dispatch/middleware/request_id.rb:27:incall' rack (2.2.3) lib/rack/method_override.rb:24:in
call' rack (2.2.3) lib/rack/runtime.rb:22:incall' activesupport (5.2.5) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in
call' actionpack (5.2.5) lib/action_dispatch/middleware/executor.rb:14:incall' actionpack (5.2.5) lib/action_dispatch/middleware/static.rb:127:in
call' rack (2.2.3) lib/rack/sendfile.rb:110:incall' rack (2.2.3) lib/rack/content_length.rb:17:in
call' railties (5.2.5) lib/rails/engine.rb:524:incall' passenger (6.0.9) src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb:107:in
process_request' passenger (6.0.9) src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:149:inaccept_and_process_next_request' passenger (6.0.9) src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:110:in
main_loop' passenger (6.0.9) src/ruby_supportlib/phusion_passenger/request_handler.rb:416:inblock (3 levels) in start_threads' passenger (6.0.9) src/ruby_supportlib/phusion_passenger/utils.rb:113:in
block in create_thread_and_abort_on_exception' `Two hints to help debug:
It would be nice if someone could assess this issue to give us some clues on what is causing the Redmine error. Thank you very much in advance.