tracks/app/controllers
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
..
application_controller.rb This allows CAS to work side by side with other Auth methods. 2010-01-12 17:17:56 -08:00
backend_controller.rb add new_todo API call that specifies project_id, too 2009-04-01 03:59:10 +08:00
contexts_controller.rb No need for these session calls now 2009-12-07 18:30:13 -05:00
data_controller.rb fix #891. Somehow the assignment causes an error for some people. 2009-05-13 21:08:35 +02:00
feedlist_controller.rb refactor conditional finds to use named_scopes 2008-11-29 15:35:17 +01:00
integrations_controller.rb The gadget does not need authorization. 2009-08-04 10:27:20 +02:00
login_controller.rb This allows CAS to work side by side with other Auth methods. 2010-01-12 17:17:56 -08:00
notes_controller.rb Removed outer tracks directory. 2008-05-24 15:57:18 +01:00
preferences_controller.rb Removed outer tracks directory. 2008-05-24 15:57:18 +01:00
projects_controller.rb No need for these session calls now 2009-12-07 18:30:13 -05:00
recurring_todos_controller.rb auto-fill of default tags & contexts from project 2009-10-02 18:31:53 -04:00
search_controller.rb small cleanups 2009-02-05 21:55:33 +01:00
stats_controller.rb improve last path. Thanks Vitaliel! 2009-01-17 14:43:06 +01:00
todos_controller.rb Missed some formatted_ helpers not covered by tests 2009-12-07 23:16:21 -05:00
users_controller.rb This allows CAS to work side by side with other Auth methods. 2010-01-12 17:17:56 -08:00