-
-
10 May 2014 19:38:39 UTC
- Distribution: Mojolicious-Plugin-ParamsAuth
- Module version: 0.03
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues (1)
- Testers (305 / 897 / 0)
- Kwalitee
Bus factor: 0- % Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (8.87KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Mojolicious
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Mojolicious::Plugin::ParamsAuth - URL Parameters Auth Helper
DESCRIPTION
Mojolicous::Plugin::ParamsAuth is a helper for authenticating using url parameters
USAGE
# Request: GET /?userinput=username&passinput=password use Mojolicious::Lite; plugin 'params_auth'; get '/' => sub { my $self = shift; return $self->render_text('ok') if $self->params_auth(userinput => passinput => sub { return 1 if "@_" eq 'username password' }); }; app->start;
Any number of parameters can be specified:
$self->params_auth( one => two => three => four => sub { } )
The subroutine callback receives form values as the parameter list.
METHODS
Mojolicious::Plugin::ParamsAuth 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-paramsauth
VERSION
0.03
AUTHOR
Glen Hinkle tempire@cpan.org
Module Install Instructions
To install Mojolicious::Plugin::ParamsAuth, copy and paste the appropriate command in to your terminal.
cpanm Mojolicious::Plugin::ParamsAuth
perl -MCPAN -e shell install Mojolicious::Plugin::ParamsAuth
For more information on module installation, please visit the detailed CPAN module installation guide.