rubycas / rubycas-client

Ruby client for Yale's Central Authentication Service protocol -- an open source enterprise single sign on system for web applications.
http://code.google.com/p/rubycas-client/
Other
332 stars 217 forks source link

undefined method `response' for #<CASClient::ServiceTicket:0x007f3634267e80> #49

Closed SarvagyaVaish closed 9 years ago

SarvagyaVaish commented 12 years ago

To install CAS login for my application I used the instructions listed at https://github.com/rubycas/rubycas-client-rails#readme

When trying to login I get redirected properly to the CAS authentication page but after a successful login I get the following NoMethodError undefined method `response' for #CASClient::ServiceTicket:0x007f3634267e80

I looked around a bunch to figure out a solution to the following error but was unable to find anything that works. Please suggest!

SarvagyaVaish commented 12 years ago

Further research led to an interesting finding.

If you use version < 2.3 for rubycas-client by explicitly adding the following to the Gemfile, the error goes away.

gem "rubycas-client-rails" gem "rubycas-client", "< 2.3"

This gives the older version of rubycas-client that is compatible with rubycas-client-rails.

soupmatt commented 12 years ago

if you use master branch on github of rubycas-client-rails, then it will work with rubycas-client 2.3.

gem "rubycas-client-rails", :git => "git://github.com/rubycas/rubycas-client-rails.git" gem "rubycas-client"

Altonymous commented 10 years ago

Does this still work?