azuma, kuniyuki > Haineko-0.2.16 > Haineko::HTTPD::Auth

Download:
Haineko-0.2.16.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Haineko::HTTPD::Auth - Basic authentication at connecting Haineko server

DESCRIPTION ^

Haineko::HTTPD::Auth is an authenticator for Basic Authentication at connecting Haineko server. It is called from Plack::MiddleWare::Auth::Basic in libexec/haineko.psgi.

SYNOPSIS ^

    use Haineko::HTTPD::Auth;
    use Haineko::JSON;
    $Haineko::HTTPD::Auth::PasswordDB = Haineko::JSON->loadfile('/path/to/password');
    builder {
        enable 'Auth::Basic', 'authenticator' => sub {
            my $u = shift;
            my $p = shift;
            return Haineko::HTTPD::Auth->basic( 'username' => $u, 'password' => $p );
        }
    };

CLASS METHODS ^

basic( %argvs )

basic() is a authenticator using $Haineko::HTTPD::Auth::PasswordDB.

REPOSITORY ^

https://github.com/azumakuniyuki/Haineko

AUTHOR ^

azumakuniyuki <perl.org [at] azumakuniyuki.org>

LICENSE ^

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: