WTF::Apache::Authz - Apache2 AUTHZ phase handler
This document describes WTF::Apache::Authz version 1.02
This module contains a single function that acts as a handler for the Apache2 AUTHZ phase. The function sets up a list of authorizations the user is authorized to have based on the ``authz_employee'' table. It saves these in ``$r->pnotes('authz')'' as a reference to a hash such that it's easy to later test whether a user has a particular authorization:
my $got_this_authz = ( $r->pnotes('authz')->{$authz_name} == 1 ) ? 1 : 0; # ...or just ( $r->pnotes('authz')->{$authz_name} ) for short
Based on the URI, the function checks whether the user is authorized to view or act on the URI through a large if conditional.
WTF::Apache::Authz requires Apache2 with mod_perl2. It also requires a valid Apache2 configuration to associate itself with the proper Apahce2 phase.
WTF::Apache::Authz 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.