Commit graph

12 commits

Author SHA1 Message Date
Eric Allen
9ab69adb38 Dynamically load autocompletes
This cuts something like 100ms off of page load times!

Closes #1011
2010-04-02 13:24:21 -04:00
Eric Allen
502e60c9a1 Oops..Forgot to revert this little bit of i18n
Fixes #991
2010-01-26 15:50:21 -05:00
Eric Allen
b87f4cc12e Revert i18n changes
We haven't merged that branch yet to trunk
2010-01-12 17:49:39 -08:00
Erik Ordway
901af95c69 clean up debug code and get new user correct 2010-01-12 17:18:01 -08:00
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
Eric Allen
e17c1e1644 Make it possible to run rake gems:install for cas
The hard requires were causing rake to fail before it could even install
the rubycas-client gem. This kind of sucked.
2009-12-18 09:42:06 -05:00
Erik Ordway
094d93cec2 allow calendar access outside of CAS 2009-12-18 09:42:05 -05:00
Erik Ordway
f259924a85 when CAS is switched app functions as normal but does not use any other auth methods. 2009-12-18 09:42:05 -05:00
Erik Ordway
1621a7bb7d properly insert CAS as another auth method 2009-12-18 09:40:12 -05:00
Erik Ordway
f3966cfb2b make cas work 2009-12-18 09:40:11 -05:00
Eric Allen
c459461aa3 Get rid of a deprecation warning 2009-12-07 18:36:10 -05:00
Eric Allen
3c94609583 Ran rake rails:update 2009-12-07 12:43:42 -05:00
Renamed from app/controllers/application.rb (Browse further)