LibCAS::ModPerl2 - An Apache mod_perl (version 2) handler to enable CAS authentication.
Version 0.01
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:
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>
To install LibCAS::Client, copy and paste the appropriate command in to your terminal.
cpanm
cpanm LibCAS::Client
CPAN shell
perl -MCPAN -e shell install LibCAS::Client
For more information on module installation, please visit the detailed CPAN module installation guide.