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

Single sign out doesn't destroy session #75

Closed cthielen closed 10 years ago

cthielen commented 10 years ago

Is there something special to do so that single sign out destroys the session hash? I've written support for single sign out into my application and can confirm it's being handled by my application in the logs but it doesn't seem to destroy the user's associated session hash.

Is it supposed to? How does one check that a CAS session has been expired via the single sign out?

cthielen commented 10 years ago

I think what's actually going on here is that under Rails 4, you have to use the activerecord-session_store gem, which apparently moved session_class to ActionDispatch::Session::ActiveRecordStore.

cthielen commented 10 years ago

I figured this out. It has to due with Rails 4 compatibility. Please see the open pull request.

tydaniel commented 5 years ago

I want to apply Rubycas-client with Bitnami Redmine. But Single sign out doesn't work. I just did all of steps according to README. Error Log shows;

NoMethodError (undefined method session_class' for ActiveRecord::SessionStore:Module): lib/redmine/sudo_mode.rb:63:insudo_mode'

I don't know how to set the session class into redmine.