WTF::Apache::Authen - Apache2 AUTHEN phase handler
This document describes WTF::Apache::Authen version 1.02
This module contains a single function that acts as a handler for the Apache2 AUTHEN phase. It uses a fairly standard Basic HTTP Authentication mechanism to check for a username and password combination against the WTF database.
On successful login, the function will update the user's last login date/time in the database, set a simple boolean session cookie (``authen'') so that on subsequent requests the application won't update the user's last login in the database, and will set ``$r->pnotes'' with:
In addition, and to support the ``Login As...'' functionality, the handler will check the ``login_as'' cookie for a value. If there's a value, that value is a valid user ID number of a person who reports up to the current user, and the current user has the ``login_as'' authorization, the handler will make changes to ``$r->pnotes'' as follows:
Additionally, the ``user_id'', ``user_name'', and ``is_admin'' records in pnotes will be set to the desired ``login_as'' user rather than the current user.
WTF::Apache::Authen requires Apache2 with mod_perl2. It also requires a valid Apache2 configuration to associate itself with the proper Apahce2 phase.
WTF::Apache::Authen depends on the following modules:
Use of this module implies the reading and agreement with the license under which this software is release. That license can be found in the ``license.txt'' file included with this distribution.