« blib/lib/Web/Authenticate/Authenticator/Redirect/Role.pm
↑ Summary
blib/lib/Web/Authenticate/Cookie/Handler/Role.pm »
| 1 | use strict; | ||
| 2 | package Web::Authenticate::Authenticator::Role; | ||
| 3 | $Web::Authenticate::Authenticator::Role::VERSION = '0.002'; | ||
| 4 | use Mouse::Role; | ||
| 5 | #ABSTRACT: A Mouse::Role that defines what methods a Web::Authenticate::Authenticator object should contain. | ||
| 6 | |||
| 7 | |||
| 8 | requires 'authenticate'; | ||
| 9 | |||
| 10 | 1; | ||
| 11 | |||
| 12 | __END__ | ||
| 13 | |||
| 14 | =pod | ||
| 15 | |||
| 16 | =encoding UTF-8 | ||
| 17 | |||
| 18 | =head1 NAME | ||
| 19 | |||
| 20 | Web::Authenticate::Authenticator::Role - A Mouse::Role that defines what methods a Web::Authenticate::Authenticator object should contain. | ||
| 21 | |||
| 22 | =head1 VERSION | ||
| 23 | |||
| 24 | version 0.002 | ||
| 25 | |||
| 26 | =head1 METHODS | ||
| 27 | |||
| 28 | =head2 authenticate | ||
| 29 | |||
| 30 | Authenticates a user based on some criteria. Returns true (1) or false (undef). | ||
| 31 | |||
| 32 | my $authenticated = $authenticator->authenticate($user); | ||
| 33 | |||
| 34 | =head1 AUTHOR | ||
| 35 | |||
| 36 | Adam Hopkins <srchulo@cpan.org> | ||
| 37 | |||
| 38 | =head1 COPYRIGHT AND LICENSE | ||
| 39 | |||
| 40 | This software is copyright (c) 2017 by Adam Hopkins. | ||
| 41 | |||
| 42 | This is free software; you can redistribute it and/or modify it under | ||
| 43 | the same terms as the Perl 5 programming language system itself. | ||
| 44 | |||
| 45 | =cut |