App::Authentication::Htpasswd - Interface for authentication using an htpasswd file


App-Context documentation  | view source Contained in the App-Context distribution.

Index


NAME

Top

App::Authentication::Htpasswd - Interface for authentication using an htpasswd file

SYNOPSIS

Top

    use App;

    $context = App->context();
    $authentication = $context->service("Authentication");  # or ...
    $authentication = $context->authentication();

    if ($authentication->validate_password($username, $password)) {
       ...
    }

DESCRIPTION

Top

An App::Authentication::Htpasswd service is a means by which a user may be authenticated using an htpasswd file.

Public Methods:

Top

validate_password()

    * Signature: $username = $auth->validate_password();
    * Param:     void
    * Return:    $username        string
    * Throws:    App::Exception::Authentication
    * Since:     0.01

    Sample Usage:

    $username = $auth->validate_password();

ACKNOWLEDGEMENTS

Top

 * Author:  Stephen Adkins <spadkins@gmail.com>
 * License: This is free software. It is licensed under the same terms as Perl itself.

SEE ALSO

Top

App::Context|App::Context, App::Service|App::Service


App-Context documentation  | view source Contained in the App-Context distribution.