« blib/lib/Web/Authenticate/RedirectHandler/Role.pm
↑ Summary
blib/lib/Web/Authenticate/RequestUrlProvider/Role.pm »
| 1 | use strict; | ||
| 2 | package Web::Authenticate::RequestUrlProvider::CgiRequestUrlProvider; | ||
| 3 | $Web::Authenticate::RequestUrlProvider::CgiRequestUrlProvider::VERSION = '0.003'; | ||
| 4 | use Mouse; | ||
| 5 | use CGI; | ||
| 6 | #ABSTRACT: The default implementation of Web::Authentication::RequestUrlProvider. | ||
| 7 | |||
| 8 | with 'Web::Authenticate::RequestUrlProvider::Role'; | ||
| 9 | |||
| 10 | |||
| 11 | |||
| 12 | sub url { CGI->new->url(-full => 1, -query=>1, -rewrite => 1) } | ||
| 13 | |||
| 14 | 1; | ||
| 15 | |||
| 16 | __END__ | ||
| 17 | |||
| 18 | =pod | ||
| 19 | |||
| 20 | =encoding UTF-8 | ||
| 21 | |||
| 22 | =head1 NAME | ||
| 23 | |||
| 24 | Web::Authenticate::RequestUrlProvider::CgiRequestUrlProvider - The default implementation of Web::Authentication::RequestUrlProvider. | ||
| 25 | |||
| 26 | =head1 VERSION | ||
| 27 | |||
| 28 | version 0.003 | ||
| 29 | |||
| 30 | =head1 SYNOPSIS | ||
| 31 | |||
| 32 | my $url = $cgi_request_url_provider->url; | ||
| 33 | |||
| 34 | =head1 DESCRIPTION | ||
| 35 | |||
| 36 | This RequestUrlProvider uses L<CGI> to get the current url. | ||
| 37 | |||
| 38 | =head1 METHODS | ||
| 39 | |||
| 40 | =head2 url | ||
| 41 | |||
| 42 | Returns the current url using the L<url|CGI> method from L<CGI> with full, query, and rewrite set to 1. | ||
| 43 | |||
| 44 | =head1 AUTHOR | ||
| 45 | |||
| 46 | Adam Hopkins <srchulo@cpan.org> | ||
| 47 | |||
| 48 | =head1 COPYRIGHT AND LICENSE | ||
| 49 | |||
| 50 | This software is copyright (c) 2017 by Adam Hopkins. | ||
| 51 | |||
| 52 | This is free software; you can redistribute it and/or modify it under | ||
| 53 | the same terms as the Perl 5 programming language system itself. | ||
| 54 | |||
| 55 | =cut |