NAME
LibCAS::ModPerl2 - An Apache mod_perl (version 2) handler to enable CAS authentication.
VERSION
Version 0.01
CONFIGURATION
This handler is expected to be used as a PerlAccessHandler wherever the directive is allowed.
The following handler options can be set using the PerlSetVar directive:
- secure [optional] - If set, all requests will requre CAS validation. Otherwise, determining if CAS authentication is required can be controlled by the 'secure' URL parameter in the request.
- casPrefix [optional] - The url to the CAS server, which will be used in the LibCAS constructor as the cas_url parameter. If not provided, it will use the default LibCAS setting.
Apache config file example
Here's an example of how to configure this handler for a given location, and require CAS authentication for all requests:
<Location "/path/"> SetHandler perl-script PerlAccessHandler LibCAS::ModPerl2 PerlResponseHandler Some::Other::Module PerlSetVar casPrefix https://cas-server/cas PerlSetVar secure 1 </Location>
Here's an example of how to configure this handler for a given location, but not require CAS authentication for all requests (instead, depend on the 'secure' URL parameter):
<Location "/path/"> SetHandler perl-script PerlAccessHandler LibCAS::ModPerl2 PerlResponseHandler Some::Other::Module PerlSetVar casPrefix https://cas-server/cas </Location>