tracks/app/models
Erik Ordway 5b431ef50a This allows CAS to work side by side with other Auth methods.
This is at least one issue with this

to logout of CAS you need session information but the logout method blows this away so I do the cas log out before the session is killed so the session persistest in rails.  Because I needed to move the CAS before filters into login_cas and out of the application to make it work side by side.   The user will still be logined into tracks even though their CAS session is closed as the session will still be there.

 def logout
    @user.forget_me if logged_in?
    cookies.delete :auth_token
    session['user_id'] = nil
    if ( SITE_CONFIG['authentication_schemes'].include? 'cas')  && session[:cas_user]
      CASClient::Frameworks::Rails::Filter.logout(self)
    else
      reset_session
      notify :notice, "You have been logged out of Tracks."
      redirect_to_login
    end
  end

The other issue I have with this is that:
I could not find a use case for having mixed auth when using CAS. The reason to move to CAS is that all your users use CAS all the time. Even for admin accounts. Moodle is a good example of this in that when you activate CAS the default is that you can now only access moodle via CAS. By allowing mixed auth and self signup you end up with a anyone (the public) being able to sign up for accounts.
2010-01-12 17:17:56 -08:00
..
context.rb refactor conditional finds to use named_scopes 2008-11-29 15:35:17 +01:00
dependency.rb Conflicts: 2009-11-04 22:31:17 -05:00
message_gateway.rb Support dispatching emailed-in todos based on To: field as well as From: field. Setting configured in site.yml. 2009-03-29 19:44:43 -04:00
note.rb Removed outer tracks directory. 2008-05-24 15:57:18 +01:00
preference.rb fix #856 where DateTimes supplied through the rest api was not converted to the users timezone 2009-03-24 23:05:23 +01:00
project.rb #300: Updated Project and User models to use the new Todo model 2009-11-04 22:31:54 -05:00
recurring_todo.rb fixed #781: 2009-06-03 01:36:20 +08:00
tag.rb fix tags and fix tests 2008-12-22 23:26:38 +01:00
tagging.rb remove unused and unneccesary user_id from taggings table. 2009-01-08 10:18:03 +01:00
todo.rb Eliminated use of scenarios plugin 2009-12-08 13:34:06 -05:00
user.rb This allows CAS to work side by side with other Auth methods. 2010-01-12 17:17:56 -08:00