WTF::Apache::Authz - Apache2 AUTHZ phase handler


VERSION

This document describes WTF::Apache::Authz version 1.02


DESCRIPTION

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.


CONFIGURATION AND ENVIRONMENT

WTF::Apache::Authz requires Apache2 with mod_perl2. It also requires a valid Apache2 configuration to associate itself with the proper Apahce2 phase.


DEPENDENCIES

WTF::Apache::Authz depends on the following modules:


COPYRIGHT, LICENSE, AND DISCLAIMER OF WARRANTY

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.