plugauthlite - Minimal PlugAuth server
version 0.07
% htpasswd % plugauthlite
Very minimal PlugAuth server implementation suitable for Clustericious apps to authenticate against using Clustericious::Plugin::PlugAuth.
The only prerequsites are Mojolicious and a Perl supported by Mojolicious.
It provides authentication only (not authorization). Username/password combinations are specified in a standard Apache like password file. If Crypt::PasswdMD5 is installed then the passwords can be encrypted.
The password file is specified using the environment variable PLUGAUTH_LITE_FILE and passwd in the current directory is used by default. If the environment variable PLUGAUTH_LITE_PLAIN is true then it will not attempt to use Crypt::PasswdMD5 and will not use encryption for the password file.
PLUGAUTH_LITE_FILE
passwd
PLUGAUTH_LITE_PLAIN
Any routes not specified return 404.
if username and password provided using BASIC authentication and are correct
Return 200 ok
if username and password provided using BASIC authentication but are not correct
Return 403 not ok
if username and password are not provided using BASIC authentication
Return 401 please authenticate
For this server all user/action/resource combination are authorized. If you need to customize the authorization, use the full featured PlugAuth server or partially featured Mojolicious::Plugin::PlugAuthLite plugin.
if the given user (#user) is permitted to perform the given action (#action) on the given resource (*resource)
Graham Ollis <plicease@cpan.org>
This software is copyright (c) 2013 by Graham Ollis.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install PlugAuth::Lite, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PlugAuth::Lite
CPAN shell
perl -MCPAN -e shell install PlugAuth::Lite
For more information on module installation, please visit the detailed CPAN module installation guide.