mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-22 05:50:47 +02:00
set CAS values in environment.rb
set fake values in site.yml.tmpl
This commit is contained in:
parent
f3966cfb2b
commit
18219d17f1
2 changed files with 11 additions and 5 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue