Commit graph

28 commits

Author SHA1 Message Date
Matt Rogers
60ae4f6f5f
Convert before_filter to before_action
`before_filter` has been removed in future versions of rails.

Co-Authored-By: Dan Rice <dnrce@users.noreply.github.com>
2018-09-22 12:55:27 -05:00
Matt Bridges
8ff75f9b7d Pull apart the LoginController#login action
Begin pulling apart the different paths through the login action to
better understand how the action responds given different state.
2013-07-23 10:30:50 -05:00
Matt Rogers
931791edfd Move the expire_session route
It's now in the cucumber login helper.
2013-06-10 14:30:12 -05:00
Reinier Balt
005723cb4f get login, mobile and notes features passing 2012-05-12 13:37:36 +02:00
Reinier Balt
c9d64e6f4b get the first cucumber feature running: calendar 2012-04-30 13:56:42 +02:00
Reinier Balt
96db48dd86 get project integrations and login controller tests running 2012-04-30 13:56:40 +02:00
Reinier Balt
fd4fb6df9e get all unit tests running again. Seems we have some pretty old code in there :-) 2012-04-30 13:56:37 +02:00
Demian Gemperli
fafbdae079 Logut user after password change, Closes #1047 2011-10-24 21:47:15 +02:00
Reinier Balt
4d46750f05 fix #1167 2011-05-08 15:03:55 +02:00
Reinier Balt
52acf17270 fix #1138 where openid login was broken because of csrf changes in rails 2011-04-14 12:53:31 +02:00
Reinier Balt
4cca813bc7 hopefully fix #1109 where I think the csrf change in rails 2.3.11 messes up our expiry checking 2011-02-25 22:43:18 +01:00
Reinier Balt
7b3c07a754 add a cucumber test to simulate expiration of a session
Signed-off-by: Reinier Balt <lrbalt@gmail.com>
2011-02-03 18:17:17 +01:00
Reinier Balt
f2d977e12a fix merge errors and some tests 2011-02-03 18:17:11 +01:00
Reinier Balt
c834403340 replace old prototype/jrails code for periodic checks and start work on autocomplete and edit projects
Signed-off-by: Reinier Balt <lrbalt@gmail.com>
2011-02-03 18:16:51 +01:00
Marcus Ilgner
fd3f69d927 Changed code to support basic i18n.
Added RubyMine configuration and rvm setup to .gitignore.
2010-11-09 16:31:26 +08:00
Reinier Balt
0d7980e87b migrate selenium for users to cucumber 2010-05-03 21:26:48 +02:00
Eric Allen
f33b747422 Use correct idiom for undefind module 2010-01-12 17:30:51 -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
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
18dfe4dbfb Missed some formatted_ helpers not covered by tests
Selenium tests now passing completely
2009-12-07 23:16:21 -05:00
Eric Allen
2ee84b8162 Move site-specific configuration out of environment.rb into a YAML file. This allows us to ship environment.rb with Tracks. Fixes #813. 2009-02-01 14:47:05 -05:00
Eric Allen
611a53e668 No point in changing the name of the OpenID identity column in users table. Use the existing one. 2008-12-08 18:51:33 -05: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
2a6b8f1cd9 fixes #753 by adding a global option to enable secure cookies
you need to recreate your environment.rb from the tmpl for this change
2008-08-18 14:11:27 +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
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/app/controllers/login_controller.rb (Browse further)