The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Gungho::Component::Authentication - Base Class For WWW Authentication

SYNOPSIS

   package MyAuth;
   use base qw(Gungho::Component::Authentication);

DESCRIPTION

Gungho::Component::Authentication provides the base mechanism to detect and authenticate WWW Authentication responses.

Subclasses must override the authenticate() method.

METHODS

authenticate($is_proxy, $auth_params, $request, $response)

Should authenticate the request, and do any re-dispatching if need be. Should return 1 if the request has been redispatched.

check_authentication_challenge($c, $req, $res)

Checks the given request/response for a WWW Authentication challenge, and re-dispatches the request if need be.

Returns 1 if the request has been redispatched (in which case your engine class should not forward this response to handle_response()), 0 otherwise.