blib/lib/CGI/Application/Plugin/Authentication/Driver/Dummy.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 100% 17 / 17 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/CGI/Application/Plugin/Authentication/Driver/Filter/strip.pm ↑ Summary blib/lib/CGI/Application/Plugin/Authentication/Store.pm »
1 package CGI::Application::Plugin::Authentication::Driver::Dummy;
2  
3 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 4 ▶use base qw(CGI::Application::Plugin::Authentication::Driver);
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 =head1 NAME
9  
10 CGI::Application::Plugin::Authentication::Driver::Dummy - Dummy Authentication driver which
11 lets anyone authenticate regardless of the password they provide
12  
13  
14 =head1 SYNOPSIS
15  
16 use base qw(CGI::Application);
17 use CGI::Application::Plugin::Authentication;
18  
19 __PACKAGE__->authen->config(
20 DRIVER => 'Dummy',
21 );
22  
23 =head1 DESCRIPTION
24  
25 This Driver is the anti-authentication driver, since it doesn't check the
26 credentials at all, and just accepts whatever the user has entered.
27 It can be useful in development, or if you want a guest based system without
28 passwords.
29  
30  
31 =head1 EXAMPLE
32  
33 __PACKAGE__->authen->config(
34 DRIVER => 'Dummy',
35 );
36  
37  
38 =head1 METHODS
39  
40 =head2 verify_credentials
41  
42 This method will automatically return the first credential as the username without checking
43 anything else.
44  
45 =cut
46  
47 sub verify_credentials {
48 4 ▶ my $self = shift;
Subroutine verify_credentials: called CC=1 SCAR=0.0
Pod documented
49 4 return shift;
50 }
51  
52  
53 =head1 SEE ALSO
54  
55 L<CGI::Application::Plugin::Authentication::Driver>, L<CGI::Application::Plugin::Authentication>, perl(1)
56  
57  
58 =head1 LICENCE AND COPYRIGHT
59  
60 Copyright (c) 2005, SiteSuite. All rights reserved.
61  
62 This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
63  
64  
65 =head1 DISCLAIMER OF WARRANTY
66  
67 BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.
68  
69 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
70  
71 =cut
72  
73 4 1;
« blib/lib/CGI/Application/Plugin/Authentication/Driver/Filter/strip.pm ↑ Summary blib/lib/CGI/Application/Plugin/Authentication/Store.pm »