Module: CASServer::Conf

Defined in:
lib/casserver/conf.rb

Constant Summary collapse

DEFAULTS =
{
  :expire_sessions => false,
  :login_ticket_expiry => 5.minutes,
  :service_ticket_expiry => 5.minutes, # CAS Protocol Spec, sec. 3.2.1 (recommended expiry time)
  :proxy_granting_ticket_expiry => 48.hours,
  :ticket_granting_ticket_expiry => 48.hours,
  :log => {:file => 'casserver.log', :level => 'DEBUG'},
  :uri_path => "/"
}

Class Method Summary collapse

Class Method Details

.[](key) ⇒ Object



103
104
105
# File 'lib/casserver/conf.rb', line 103

def [](key)
  $CONF[key] || DEFAULTS[key]
end

.method_missing(method, *args) ⇒ Object



108
109
110
# File 'lib/casserver/conf.rb', line 108

def self.method_missing(method, *args)
  self[method]
end