App::Authentication::Htpasswd - Interface for authentication using an htpasswd file
use App; $context = App->context(); $authentication = $context->service("Authentication"); # or ... $authentication = $context->authentication(); if ($authentication->validate_password($username, $password)) { ... }
An App::Authentication::Htpasswd service is a means by which a user may be authenticated using an htpasswd file.
* Signature: $username = $auth->validate_password(); * Param: void * Return: $username string * Throws: App::Exception::Authentication * Since: 0.01 Sample Usage: $username = $auth->validate_password();
* Author: Stephen Adkins <spadkins@gmail.com> * License: This is free software. It is licensed under the same terms as Perl itself.
App::Context, App::Service
App::Context
App::Service
To install App::Context, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Context
CPAN shell
perl -MCPAN -e shell install App::Context
For more information on module installation, please visit the detailed CPAN module installation guide.