1

I am using ruby-cas client, for an authentification based on a CAS. I would like to link the ruby_cas authentication to my application :

when we log in with cas, in additon to the CAS session created, a session for my application is also created.

What should i do?

thanks

Tyler
  • 11,272
  • 9
  • 65
  • 105
user3242743
  • 1,751
  • 5
  • 22
  • 32

1 Answers1

0

You could use devise and devise_cas_authenticatable

This should work for Rails 3. I am trying to make it work with rails 4 but rubycas-client (needed for devise_cas_authenticatable) is giving me a lot of trouble. However I haven't surrendered yet :)

chech
  • 1,085
  • 14
  • 21
  • I managed to make devise and devise_cas_authenticatable work without trouble, rubycas-client alone did not work for me in Rails 4. In order to make devise check for cas authentication in every call, just delete the user session in a before_filter (before_action). – chech Apr 07 '14 at 06:46