mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-17 15:50:13 +01: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
|
OpenID::Util.logger = RAILS_DEFAULT_LOGGER
|
||||||
end
|
end
|
||||||
|
|
||||||
if ( SITE_CONFIG['authentication_schemes'].include? 'open_id')
|
if ( SITE_CONFIG['authentication_schemes'].include? 'cas')
|
||||||
#requires ruby-openid gem to be installed
|
#requires rubycas-client plugin to be installed
|
||||||
OpenID::Util.logger = RAILS_DEFAULT_LOGGER
|
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
|
end
|
||||||
|
|
||||||
tracks_version='1.8devel'
|
tracks_version='1.8devel'
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,8 @@ authentication_schemes:
|
||||||
|
|
||||||
|
|
||||||
# Uncomment if using cas
|
# Uncomment if using cas
|
||||||
#cas_server: "https://cas.evergreen.edu/cas"
|
#cas_server: "https://cas.demo.edu/cas"
|
||||||
#cas_server_logout: "https://cas.evergreen.edu/cas/logout"
|
#cas_server_logout: "https://cas.demo.edu/cas/logout"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue