properly insert CAS as another auth method

This commit is contained in:
Erik Ordway 2009-11-22 14:39:39 -08:00 committed by Eric Allen
parent 31b173ae5b
commit 1621a7bb7d
3 changed files with 31 additions and 4 deletions

View file

@ -30,7 +30,13 @@ class ApplicationController < ActionController::Base
exempt_from_layout /\.js\.erb$/
if ( SITE_CONFIG['authentication_schemes'].include? 'cas')
before_filter CASClient::Frameworks::Rails::Filter
# This will allow the user to view the index page without authentication
# but will process CAS authentication data if the user already
# has an SSO session open.
before_filter CASClient::Frameworks::Rails::GatewayFilter, :only => :login
# This requires the user to be authenticated for viewing allother pages.
before_filter CASClient::Frameworks::Rails::Filter, :except => :login
end
before_filter :set_session_expiration
before_filter :set_time_zone