Apache2 module to authentificate through a cas server
Apache2::AuthCASSimple is an authentication module for Apache2/mod_perl2. It allow you to authentificate users through a Yale \s-1CAS\s0 server. It means you don't need to give login/password if you've already be authentificate by the \s-1CAS\s0 server, only tickets are exchanged between Web client, Apache2 server and \s-1CAS\s0 server. If you not're authentificate yet, you'll be redirect on the \s-1CAS\s0 server login form.
This module allow the use of simple text files for sessions.
PerlOptions +GlobalRequest <Location /protected> AuthType Apache2::AuthCASSimple PerlAuthenHandler Apache2::AuthCASSimple PerlSetVar CASServerName my.casserver.com PerlSetVar CASServerPath / # PerlSetVar CASServerPort 443 # PerlSetVar CASServerNoSSL 1 PerlSetVar CASSessionTimeout 3660 PerlSetVar CASSessionDirectory /tmp # PerlSetVar CASFixDirectory / # PerlSetVar ModProxy 1 # PerlSetVar HTTPSServer 1 require valid-user </Location>
or
order deny,allow deny from all
require user xxx yyyy
satisfy any
Name of the \s-1CAS\s0 server. It can be a numeric \s-1IP\s0 address.
Port of the \s-1CAS\s0 server. Default is 443.
Path (\s-1URI\s0) of the \s-1CAS\s0 server. Default is \*(L"/cas\*(R".
Disable \s-1SSL\s0 transaction wih \s-1CAS\s0 server (\s-1HTTPS\s0). Default is off.
\s-1CAS\s0 server public key. This file is used to allow secure connection between the webserver using Apache2::AuthCASSimple and the \s-1CAS\s0 server. \s-1DEPRECATED\s0 : Authen::CAS::Client use LWP::UserAgent to make https requests
Timeout (in second) for session create by Apache2::AuthCASSimple (to avoid \s-1CAS\s0 server overloading). Default is 60. -1 means disable. 0 mean infinite (until the user close browser).
Directory where session data are stored. Default is /tmp.
Force the path of the session cookie for same policy in all subdirectories else current directory is used.
Apache2 mod_perl2 don't be use with mod_proxy. Default is off.
If you want to keep a \s-1HTTPS\s0 server for all data. Default is 0.
Apache constants to make pod coverage happy
call by apache2
This documentation describes Apache2::AuthCASSimple version 0.10
Old expired sessions files must be deleted with an example provided script : \*(C`delete_session_data.pl\*(C'
Apache::Session::Wrapper certainly need Apache2::Cookie
$r must be global for sessions with Apache::Session::Wrapper, add PerlOptions +GlobalRequest in your virtualhost conf
Apreq module must be enable in debian a2enmod apreq or add LoadModule apreq_module /usr/lib/apache2/modules/mod_apreq2.so in your apache configuration file
Please submit any bug reports to [email protected].
Requires \*(C`mod_perl 2\*(C' version 2.02 or later Requires Authen::CAS::Client Requires Apache::Session::Wrapper
Yves Agostini CPAN ID: YVESAGO Univ Metz [email protected] http://www.crium.univ-metz.fr
Copyright (c) 2009 by Yves Agostini
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the \s-1LICENSE\s0 file included with this module.