Sha256: 7e9cb659db5bd928a738c8670b07762d1855e7361731fdf2b855d574c188d3bf

Contents?: true

Size: 1.13 KB

Versions: 11

Compression:

Stored size: 1.13 KB

Contents

RAILS_GEM_VERSION = '2.1.2' unless defined? RAILS_GEM_VERSION

require File.join(File.dirname(__FILE__), 'boot')

Rails::Initializer.run do |config|
  config.time_zone = 'UTC'
  config.action_controller.session = {
    :session_key => '_rails_session',
    :secret      => 'e2f5641ab4a3627096a2b6ca8c62cefe53f572906ad6a5fb1c949d183a0'
  }
  config.frameworks -= [:active_record]
end


# Basic CAS client configuration

require 'casclient'
require 'casclient/frameworks/rails/filter'

CASClient::Frameworks::Rails::Filter.configure(
  :cas_base_url => "https://mzukowski.urbacon.net:6543/cas"
)


# More complicated configuration

#cas_logger = CASClient::Logger.new(Rails.root+'/log/cas.log')
#cas_logger.level = Logger::DEBUG
#
#CASClient::Frameworks::Rails::Filter.configure(
#  :cas_base_url  => "https://localhost:7778/",
#  :login_url     => "https://localhost:7778/login",
#  :logout_url    => "https://localhost:7778/logout",
#  :validate_url  => "https://localhost:7778/proxyValidate",
#  :session_username_key => :cas_user,
#  :session_extra_attributes_key => :cas_extra_attributes
#  :logger => cas_logger,
#  :authenticate_on_every_request => true
#)

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rubycas-client-2.3.10.rc1 examples/rails/config/environment.rb
rubycas-client-2.3.9 examples/rails/config/environment.rb
rubycas-client-2.3.9.rc1 examples/rails/config/environment.rb
rubycas-client-2.3.8 examples/rails/config/environment.rb
rubycas-client-2.3.7 examples/rails/config/environment.rb
rubycas-client-2.3.6 examples/rails/config/environment.rb
rubycas-client-2.3.5 examples/rails/config/environment.rb
rubycas-client-2.3.3 examples/rails/config/environment.rb
rubycas-client-2.3.2 examples/rails/config/environment.rb
rubycas-client-2.3.1 examples/rails/config/environment.rb
rubycas-client-2.3.0.rc1 examples/rails/config/environment.rb