Closed imorales closed 11 years ago
There might be a problem with your configuration, can you confirm all fields are filled with the right values in the plugin configuration, with full, absolute urls ? The plugin should be smart enough to detect that though, so I'd be happy to fix it if you can give me your settings (you can obfuscate the host if they're private..)
Yes, was a problem with the CAS server.
Thanks for the feedback
Hi,
I configured the plugin with our CAS central server, but when we login in the CAS, the login is OK and the redirects to redmine and an error occurs.
NoMethodError (undefined method
+' for nil:NilClass): /usr/lib/ruby/1.8/net/http.rb:1118:in
addr_port' /usr/lib/ruby/1.8/net/http.rb:1078:inbegin_transport' /usr/lib/ruby/1.8/net/http.rb:1048:in
request' /usr/lib/ruby/1.8/net/http.rb:772:inget' omniauth-cas (1.0.0) lib/omniauth/strategies/cas/service_ticket_validator.rb:86:in
get_service_response_body' /usr/lib/ruby/1.8/net/http.rb:543:instart' omniauth-cas (1.0.0) lib/omniauth/strategies/cas/service_ticket_validator.rb:85:in
get_service_response_body' omniauth-cas (1.0.0) lib/omniauth/strategies/cas/service_ticket_validator.rb:32:inuser_info' omniauth-cas (1.0.0) lib/omniauth/strategies/cas.rb:67:in
callback_phase' omniauth (1.1.1) lib/omniauth/strategy.rb:219:incallback_call' omniauth (1.1.1) lib/omniauth/strategy.rb:175:in
call!' omniauth (1.1.1) lib/omniauth/strategy.rb:157:incall' omniauth (1.1.1) lib/omniauth/builder.rb:48:in
call' rack-openid (1.3.1) lib/rack/openid.rb:98:incall' actionpack (3.2.8) lib/action_dispatch/middleware/best_standards_support.rb:17:in
call' rack (1.4.1) lib/rack/etag.rb:23:incall' rack (1.4.1) lib/rack/conditionalget.rb:25:in
call' actionpack (3.2.8) lib/action_dispatch/middleware/head.rb:14:incall' actionpack (3.2.8) lib/action_dispatch/middleware/params_parser.rb:21:in
call' actionpack (3.2.8) lib/action_dispatch/middleware/flash.rb:242:incall' rack (1.4.1) lib/rack/session/abstract/id.rb:205:in
context' rack (1.4.1) lib/rack/session/abstract/id.rb:200:incall' actionpack (3.2.8) lib/action_dispatch/middleware/cookies.rb:339:in
call' activerecord (3.2.8) lib/active_record/query_cache.rb:64:incall' activerecord (3.2.8) lib/active_record/connection_adapters/abstract/connection_pool.rb:473:in
call' actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:28:incall' activesupport (3.2.8) lib/active_support/callbacks.rb:405:in
_run866538101call4callbacks' activesupport (3.2.8) lib/active_support/callbacks.rb:405:insend' activesupport (3.2.8) lib/active_support/callbacks.rb:405:in
__run_callback' activesupport (3.2.8) lib/active_support/callbacks.rb:385:in_run_call_callbacks' activesupport (3.2.8) lib/active_support/callbacks.rb:81:in
send' activesupport (3.2.8) lib/active_support/callbacks.rb:81:inrun_callbacks' actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:27:in
call' actionpack (3.2.8) lib/action_dispatch/middleware/remote_ip.rb:31:incall' actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:16:in
call' actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:incall' railties (3.2.8) lib/rails/rack/logger.rb:26:in
call_app' railties (3.2.8) lib/rails/rack/logger.rb:16:incall' actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in
call' rack (1.4.1) lib/rack/methodoverride.rb:21:incall' rack (1.4.1) lib/rack/runtime.rb:17:in
call' activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:incall' rack (1.4.1) lib/rack/lock.rb:15:in
call' actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:incall' rack-cache (1.2) lib/rack/cache/context.rb:136:in
forward' rack-cache (1.2) lib/rack/cache/context.rb:245:infetch' rack-cache (1.2) lib/rack/cache/context.rb:185:in
lookup' rack-cache (1.2) lib/rack/cache/context.rb:66:incall!' rack-cache (1.2) lib/rack/cache/context.rb:51:in
call' railties (3.2.8) lib/rails/engine.rb:479:incall' railties (3.2.8) lib/rails/application.rb:223:in
call' rack (1.4.1) lib/rack/content_length.rb:14:incall' railties (3.2.8) lib/rails/rack/log_tailer.rb:17:in
call' rack (1.4.1) lib/rack/handler/webrick.rb:59:inservice' /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in
service' /usr/lib/ruby/1.8/webrick/httpserver.rb:65:inrun' /usr/lib/ruby/1.8/webrick/server.rb:173:in
start_thread' /usr/lib/ruby/1.8/webrick/server.rb:162:instart' /usr/lib/ruby/1.8/webrick/server.rb:162:in
start_thread' /usr/lib/ruby/1.8/webrick/server.rb:95:instart' /usr/lib/ruby/1.8/webrick/server.rb:92:in
each' /usr/lib/ruby/1.8/webrick/server.rb:92:instart' /usr/lib/ruby/1.8/webrick/server.rb:23:in
start' /usr/lib/ruby/1.8/webrick/server.rb:82:instart' rack (1.4.1) lib/rack/handler/webrick.rb:13:in
run' rack (1.4.1) lib/rack/server.rb:265:instart' railties (3.2.8) lib/rails/commands/server.rb:70:in
start' railties (3.2.8) lib/rails/commands.rb:55 railties (3.2.8) lib/rails/commands.rb:50:intap' railties (3.2.8) lib/rails/commands.rb:50 script/rails:6:in
require' script/rails:6In the stacktrace looks that there is a problem validating the cas ticket.
My enviroment is:
Ruby 1.8.7 (2010-06-23 patchlevel 299) [i686-linux] Rails 3.2.8 RubyGems 1.8.24 Redmine 2.1.4 Jasig Central Authentication Service 3.5.1
Thanks.