Dancer::Plugin::Authorize::Credentials::Config - Dancer::Plugin::Authorize authentication via the Dancer configuration file!
version 1.110720
# in your app code my $auth = auth($login, $password); if ($auth) { # login successful } # use your own encryption (if the user account password is encrypted) my $auth = auth($login, encrypt($password)); if ($auth) { # login successful }
Dancer::Plugin::Authorize::Credentials::Config uses your Dancer application configuration file as the application's user management system.
The authorize method (found in every authentication class) validates a user against the defined datastore using the supplied arguments and configuration file options.
plugins: Authorize: credentials: class: Config options: accounts: user01: name: Joe Schmoe password: foobar roles: - guest - user user02: name: Jacque Fock password: barbaz roles: - admin
Al Newkirk <awncorp@cpan.org>
This software is copyright (c) 2010 by awncorp.
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 Dancer::Plugin::Authorize, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dancer::Plugin::Authorize
CPAN shell
perl -MCPAN -e shell install Dancer::Plugin::Authorize
For more information on module installation, please visit the detailed CPAN module installation guide.