Stephen Adkins > App-Context > App::Authentication::Htpasswd

Download:
App-Context-0.968.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 9817   Source  

NAME ^

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

SYNOPSIS ^

    use App;

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

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

DESCRIPTION ^

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

Public Methods: ^

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 ^

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

SEE ALSO ^

App::Context, App::Service

syntax highlighting: