set CAS values in environment.rb

set fake values in site.yml.tmpl
This commit is contained in:
Erik Ordway 2009-11-20 22:49:46 -08:00 committed by Eric Allen
parent f3966cfb2b
commit 18219d17f1
2 changed files with 11 additions and 5 deletions

View file

@ -98,9 +98,15 @@ if ( SITE_CONFIG['authentication_schemes'].include? 'open_id')
OpenID::Util.logger = RAILS_DEFAULT_LOGGER
end
if ( SITE_CONFIG['authentication_schemes'].include? 'open_id')
#requires ruby-openid gem to be installed
OpenID::Util.logger = RAILS_DEFAULT_LOGGER
if ( SITE_CONFIG['authentication_schemes'].include? 'cas')
#requires rubycas-client plugin to be installed
require '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
tracks_version='1.8devel'