mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 23:30:12 +01:00
properly insert CAS as another auth method
This commit is contained in:
parent
31b173ae5b
commit
1621a7bb7d
3 changed files with 31 additions and 4 deletions
|
|
@ -30,7 +30,13 @@ class ApplicationController < ActionController::Base
|
|||
exempt_from_layout /\.js\.erb$/
|
||||
|
||||
if ( SITE_CONFIG['authentication_schemes'].include? 'cas')
|
||||
before_filter CASClient::Frameworks::Rails::Filter
|
||||
# This will allow the user to view the index page without authentication
|
||||
# but will process CAS authentication data if the user already
|
||||
# has an SSO session open.
|
||||
before_filter CASClient::Frameworks::Rails::GatewayFilter, :only => :login
|
||||
|
||||
# This requires the user to be authenticated for viewing allother pages.
|
||||
before_filter CASClient::Frameworks::Rails::Filter, :except => :login
|
||||
end
|
||||
before_filter :set_session_expiration
|
||||
before_filter :set_time_zone
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue