Haineko::HTTPD::Auth - Basic authentication at connecting Haineko server
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.
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 ); } };
basic() is a authenticator using $Haineko::HTTPD::Auth::PasswordDB.
https://github.com/azumakuniyuki/Haineko
azumakuniyuki <perl.org [at] azumakuniyuki.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Haineko, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Haineko
CPAN shell
perl -MCPAN -e shell install Haineko
For more information on module installation, please visit the detailed CPAN module installation guide.