Closed mgurley closed 12 years ago
I think both keys ought to be supported with a direction towards deprecating the dashed version.
The choice to use session-timeout-seconds
was one of maintaining backwards compatibility with existing Aker central configuration files; however, there's no reason why those cannot be changed.
Also, consider that the CAS configuration parameters are named e.g. cas_base_url
.
Agreed, we should probably do both. But we should definitely fix the docs.
The documentation of the class Aker::CentralParameters incorrectly says you can configure the session timeout like so:
Aker.configure { ldap_parameters :server => 'ldap.example.org', user => 'cn=foo', :password => '13635;nefvqerg35245gk' policy_parameters :session_timeout_seconds => 1500 }
It should read:
Aker.configure { ldap_parameters :server => 'ldap.example.org', user => 'cn=foo', :password => '13635;nefvqerg35245gk' policy_parameters :'session-timeout-seconds' => 1500 }
The constituent tokens of the 'session-timeout-seconds' need to be separated by dashes, not underscores.