Merge branch 'cas'

This commit is contained in:
Eric Allen 2010-01-14 09:46:20 -08:00
commit 761810cf7f
17 changed files with 269 additions and 16 deletions

View file

@ -61,6 +61,10 @@ Rails::Initializer.run do |config|
config.action_view.sanitized_allowed_protocols = 'onenote', 'message'
# See Rails::Configuration for more options
if ( SITE_CONFIG['authentication_schemes'].include? 'cas')
#requires rubycas-client gem to be installed
config.gem "rubycas-client", :lib => 'casclient'
end
end
# Add new inflection rules using the following format
@ -96,6 +100,17 @@ if ( SITE_CONFIG['authentication_schemes'].include? 'open_id')
OpenID::Util.logger = RAILS_DEFAULT_LOGGER
end
if ( SITE_CONFIG['authentication_schemes'].include? 'cas')
#requires rubycas-client gem to be installed
if defined? CASClient
require 'casclient/frameworks/rails/filter'
CASClient::Frameworks::Rails::Filter.configure(
:cas_base_url => SITE_CONFIG['cas_server'] ,
:cas_server_logout => SITE_CONFIG['cas_server_logout']
)
end
end
tracks_version='1.8devel'
# comment out next two lines if you do not want (or can not) the date of the
# last git commit in the footer