Commit graph

19 commits

Author SHA1 Message Date
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
47873fb323 Get rid of UJS plugin (finally)! 2009-09-07 16:12:53 -04:00
Reinier Balt
9b2757d8b0 The gadget does not need authorization. 2009-08-04 10:27:20 +02:00
Reinier Balt
43440eaf33 add cucumber for integration testing and add a feature for statistics
refactor some stuff to support testing statistisc
2009-04-13 22:26:20 +02:00
Reinier Balt
c1d0e8d7cc Merge git://github.com/graaff/tracks into opensearch 2008-12-11 08:30:18 +01:00
Hans de Graaff
307e85287c OpenSearch support.
This implements #804.
2008-12-10 21:34:36 +01:00
Eric Allen
930999829b Re-write OpenID code to use new authentication plugin. Tested to work! 2008-12-08 00:52:57 -05:00
Reinier Balt
76d72b54bf Merge branch 'sort_projects_by_todos' of git://github.com/waltercruz/tracks 2008-10-28 20:59:07 +01:00
Reinier Balt
541d6f5b69 add calendar to menu and implement ical
tested ical with outlook 2007
2008-10-03 22:44:58 +02:00
Reinier Balt
fcaea3ce20 first pass at adding calendar view 2008-10-03 14:16:43 +02:00
Eric Allen
c6b159b97e Updated Selenium test suite so that *all tests pass*. Found and fixed one bug in routes that a Selenium test caught. 2008-10-02 21:43:38 -04:00
Eric Allen
0a39e1ea7e Fix routes to re-enable Selenium tests 2008-10-02 20:25:58 -04:00
Walter Cruz
ee5c730f44 Ading a sort by number of tasks option 2008-09-23 17:06:14 -03:00
Reinier Balt
8bc41e2cb0 add recurring todos to tracks 2008-07-19 20:27:45 +02:00
Reinier Balt
79775b1483 fixes routes.rb 2008-06-18 10:33:06 +02:00
Reinier Balt
952a73e39d Merge branch 'master' of git://github.com/bsag/tracks
Conflicts:

	config/routes.rb
2008-06-18 10:13:56 +02:00
Luke Melia
901a58f8a3 Upgraded to Rails 2.1. This can have wide ranging consequences, so please help track down any issues introduced by the upgrade. Requires environment.rb modifications.
Changes you will need to make:

 * In your environment.rb, you will need to update references to a few files per environment.rb.tmpl
 * In your environment.rb, you will need to specify the local time zone of the computer that is running your Tracks install.

Other notes on my changes:

 * Modified our code to take advantage of Rails 2.1's slick time zone support.
 * Upgraded will_paginate for compatibility
 * Hacked the Selenium on Rails plugin, which has not been updated in some time and does not support Rails 2.1
 * Verified that all tests pass on my machine, including Selenium tests -- I'd like confirmation from others, too.
2008-06-17 01:13:25 -04:00
Reinier Balt
7098afb8d3 routes update? 2008-06-16 16:13:33 +02:00
bsag
4cbf5a34d3 Removed superfluous 'tracks' directory at the root of the repository.
Testing commits to github.
2008-05-20 21:28:26 +01:00
Renamed from tracks/config/routes.rb (Browse further)