mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-21 21:40:48 +02:00
Merge branch 'cas'
This commit is contained in:
commit
761810cf7f
17 changed files with 269 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue