Commit graph

1439 commits

Author SHA1 Message Date
Eric Allen
b87f4cc12e Revert i18n changes
We haven't merged that branch yet to trunk
2010-01-12 17:49:39 -08:00
Eric Allen
f33b747422 Use correct idiom for undefind module 2010-01-12 17:30:51 -08:00
Erik Ordway
07dd842525 remove debuging message 2010-01-12 17:18:11 -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
d5c16db975 Rough selenium test files
with good names
2009-12-20 12:01:25 -05: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
aaf3965004 use correct value 2009-12-18 09:42:05 -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
00d06b7a00 start adding test fixtures 2009-12-18 09:40:12 -05:00
Erik Ordway
b85b3fc081 allow adding users and set new users has having cas as the auth type 2009-12-18 09:40:12 -05:00
Erik Ordway
1621a7bb7d properly insert CAS as another auth method 2009-12-18 09:40:12 -05:00
Erik Ordway
31b173ae5b Use rubycas-client gem and require if cas is enabled 2009-12-18 09:40:11 -05: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
Eric Allen
0eec884428 More options for date format
Fixes #966
2009-12-16 17:54:29 -05:00
Eric Allen
e17b495b95 Fix annoying test
Waiting for the flash to hide just wastes seconds
2009-12-16 17:43:57 -05:00
Eric Allen
21de49c87a Show context on un-hidden successor. Fixes #964
Added another todo fixture, which broke some assertions that I had to fix
2009-12-16 17:42:42 -05:00
Eric Allen
93b83e8682 Dependency testing at Selenium level 2009-12-16 17:04:49 -05:00
Eric Allen
40074c71ad Upgrade Selenium on Rails to r140 2009-12-16 16:44:49 -05:00
Eric Allen
156862200b Vendoring Rack
Joyent hasn't upgraded their gem yet, and for many users this could be a
major installation pitfall. Rails is vendored, so why can't it boot?
Rack? What's that?
2009-12-14 11:40:57 -05:00
Eric Allen
a256388323 Need to stub out destroyed? method in Rails 2.3.5 2009-12-08 13:36:57 -05:00
Eric Allen
6d3770c5fb Eliminated use of scenarios plugin
It doesn't work on Rails 2.3.5
2009-12-08 13:34:06 -05:00
Eric Allen
d1fc119e2d We no longer need this fix
In fact, it breaks things now

All tests passing.
2009-12-08 12:56:00 -05:00
Eric Allen
3e177c7b81 Remove some tests we can no longer run
See #965 for rationale and updates
2009-12-08 12:36:00 -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
828201dfe0 Fix some failing tests 2009-12-07 22:43:00 -05:00
Eric Allen
b3a77270da Get rid of calls to formatted_ helpers
Rails deprecated them to save on memory
2009-12-07 19:11:30 -05:00
Eric Allen
0e7c2a344c Normalize token, not URL
OpenID 2.0 supports tokens that aren't valid URLs
2009-12-07 18:43:34 -05:00
Eric Allen
0dfb1aafda The syntax of assert_difference has changed
You pass it a string now, instead of an object and a method
2009-12-07 18:41:23 -05:00
Eric Allen
c459461aa3 Get rid of a deprecation warning 2009-12-07 18:36:10 -05:00
Eric Allen
e41ed7424f No need for these session calls now
Sessions are lazy loaded, so if you don't use them they're effectively off.
2009-12-07 18:30:13 -05:00
Eric Allen
6181d42072 A few tweaks to get tests running 2009-12-07 18:29:57 -05:00
Eric Allen
ac0ff3feaf Update open_id_authentication to 079b91f70602814c98d4345e198f743bb56b76b5 2009-12-07 18:21:49 -05:00
Eric Allen
144e74682b Update has_many_polymorphs to 421dd0bd60b246652bbbafd64724ebf1efa27607 2009-12-07 18:20:17 -05:00
Eric Allen
804d59c542 Install ActionWebService ported to Rails 2.3 2009-12-07 18:07:09 -05:00
Eric Allen
3c94609583 Ran rake rails:update 2009-12-07 12:43:42 -05:00
Eric Allen
f8779795ce Vendoring Rails 2.3.5 2009-12-07 12:42:42 -05:00
Eric Allen
3e83d19299 Merge branch 'master' of github.com:epall/tracks 2009-12-05 11:10:35 -05:00
eriko
8aac20fe5d fix stylesheet so that image links do not start at / as this breaks suburi installs of tracks like http://rails.example.com/tracks . 2009-12-04 13:00:35 -05:00
Erik Ordway
d24d44da13 fix quotes for postgresql. tested on sqlite but untested on mysql 2009-12-03 16:11:38 +08:00
Eric Allen
31624d5f9c Blanking out the "blank" DB 2009-12-02 22:22:31 -05:00
Eric Allen
9fa5ead8de Fixed another edge case that Luis caught
Thanks for testing!
2009-12-01 23:39:07 -05:00
Eric Allen
c4ef04af4d Forgot to put back rich interaction there 2009-11-29 21:12:00 -05:00
Eric Allen
71b0e188c1 Autocompletion for predecessors working 2009-11-29 20:34:38 -05:00
Eric Allen
d0a5f6b731 Fix rendering of successors, drag and drop 2009-11-29 20:00:54 -05:00
Eric Allen
34aeb83891 Merge branch 'deps' 2009-11-26 02:04:54 -05:00
Eric Allen
7883145bdb Fixed recurring todo input form behavior
The form for new recurring todos has different id's, causing it to not
get the awesome JavaScript. Duplicated to make it work.
2009-11-26 02:04:39 -05:00
Eric Allen
1cf9373bfe Search within names for autocomplete
Closes #958
2009-11-26 02:04:39 -05:00