make cas work

This commit is contained in:
Erik Ordway 2009-11-20 19:06:07 -08:00 committed by Eric Allen
parent 0eec884428
commit f3966cfb2b
5 changed files with 56 additions and 1 deletions

View file

@ -28,7 +28,10 @@ class ApplicationController < ActionController::Base
layout proc{ |controller| controller.mobile? ? "mobile" : "standard" }
exempt_from_layout /\.js\.erb$/
if ( SITE_CONFIG['authentication_schemes'].include? 'cas')
before_filter CASClient::Frameworks::Rails::Filter
end
before_filter :set_session_expiration
before_filter :set_time_zone
before_filter :set_zindex_counter
@ -217,6 +220,14 @@ class ApplicationController < ActionController::Base
self.class.openid_enabled?
end
def self.cas_enabled?
Tracks::Config.cas_enabled?
end
def cas_enabled?
self.class.cas_enabled?
end
private
def parse_date_per_user_prefs( s )