Commit graph

16 commits

Author SHA1 Message Date
Dan Rice
ea0d40060a Remove support for deprecated password-hashing algorithm
* Remove all methods implementing and checking for the old algorithm
* Document a pre-upgrade step to check for remaining obsolete passwords
* Remove config.salt
2014-11-15 10:28:29 -05:00
Reinier Balt
1d242981d4 create secrets.yml per rails upgrade instructions. It uses the secret key from site.yml 2014-09-22 10:28:33 +02:00
Greg Sutcliffe
8a2da01d51 Add Mailgun endpoint for receiving email tasks via Mailgun 2013-09-21 12:43:22 +01:00
Reinier Balt
c6e526127c Use setting from stie.yml instead of hardcoded secret token
Fallback to randomly generated token, which is fine for development and test mode. (Sessions will be invalidated when the server reboots)

Thanks @brynary
2013-05-07 09:21:22 +02:00
Reinier Balt
bd656ee1c7 fix #1350 by removing admin_email from preferences model and add it as a site option in
site.yml.tmpl. This one needs running migrations
2012-12-23 21:03:37 +01:00
Reinier Balt
05695c12ea Enable the message_gateway to handle sending all email to a specific user. The current
scanning on to: and from: fields does not work if you bcc Tracks in email. 

site.yml.tmpl is updated to reflect this and removes cas, ldap and openid configs

Also the integrations page is updated to reflect the above
2012-06-28 16:51:46 +02:00
Reinier Balt
86afd42148 Work in progress: has_many_polymorphs does not work with rails 3.2 because of intrusive changes in rails internals. I think we need to rip out this dependency... 2012-04-30 13:56:34 +02:00
Stefan Richter
c0956a7e76 Adding cloudmailin support for adding tasks 2011-10-04 20:14:36 +02: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
Erik Ordway
18219d17f1 set CAS values in environment.rb
set fake values in site.yml.tmpl
2009-12-18 09:40:11 -05:00
Erik Ordway
f3966cfb2b make cas work 2009-12-18 09:40:11 -05:00
Reinier Balt
f4f2573f98 manually applied patch from Chris Erway to enable open signups for people hosting Tracks 2009-03-31 22:32:29 +02:00
Eric Allen
dbeb793214 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
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