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


Gungho documentation  | view source Contained in the Gungho distribution.

Index


NAME

Top

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

SYNOPSIS

Top

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

DESCRIPTION

Top

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

Subclasses must override the authenticate() method.

METHODS

Top

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.


Gungho documentation  | view source Contained in the Gungho distribution.