-
-
22 Sep 2014 20:41:39 UTC
- Distribution: Mojolicious-Plugin-BasicAuth
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (2)
- Testers (1509 / 0 / 0)
- Kwalitee
Bus factor: 0- 96.67% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (9.55KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Mojolicious
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Mojolicious::Plugin::BasicAuth - Basic HTTP Auth Helper
DESCRIPTION
Mojolicous::Plugin::BasicAuth is a helper for basic http authentication.
USAGE
use Mojolicious::Lite; plugin 'basic_auth'; get '/' => sub { my $self = shift; return $self->render_text('ok') if $self->basic_auth( realm => sub { return 1 if "@_" eq 'username password' } ); }; app->start;
METHODS
Mojolicious::Plugin::BasicAuth inherits all methods from Mojolicious::Plugin and implements the following new ones.
register
$plugin->register;
Register condition in Mojolicious application.
SEE ALSO
DEVELOPMENT
http://github.com/tempire/mojolicious-plugin-basicauth
VERSION
0.06
CREDITS
AUTHOR
Glen Hinkle <tempire@cpan.org>
Module Install Instructions
To install Mojolicious::Plugin::BasicAuth, copy and paste the appropriate command in to your terminal.
cpanm Mojolicious::Plugin::BasicAuth
perl -MCPAN -e shell install Mojolicious::Plugin::BasicAuth
For more information on module installation, please visit the detailed CPAN module installation guide.