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