blib/lib/Web/Authenticate/Result/IsAuthenticated.pm untested

filter: Statementstmt 0.0% 0 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 13 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use strict;
2 package Web::Authenticate::Result::IsAuthenticated;
3 $Web::Authenticate::Result::IsAuthenticated::VERSION = '0.003';
4 use Mouse;
5 #ABSTRACT: The result of calling Web::Authenticate::is_authenticated.
6  
7  
8 has success => (
9 isa => 'Bool',
10 is => 'ro',
11 required => 1,
12 );
13  
14  
15 has user => (
16 does => 'Web::Authenticate::User::Role',
17 is => 'ro',
18 );
19  
20  
21 has failed_authenticator => (
22 does => 'Web::Authenticate::Authenticator::Role',
23 is => 'ro',
24 );
25  
26 1;
27  
28 __END__
29  
30 =pod
31  
32 =encoding UTF-8
33  
34 =head1 NAME
35  
36 Web::Authenticate::Result::IsAuthenticated - The result of calling Web::Authenticate::is_authenticated.
37  
38 =head1 VERSION
39  
40 version 0.003
41  
42 =head1 METHODS
43  
44 =head2 success
45  
46 Returns 1 if the call to login was successful, undef otherwise.
47  
48 =head2 user
49  
50 Returns the user that was logged in.
51  
52 =head2 failed_authenticator
53  
54 Returns the authenticator that caused the authenticate to fail, if there was one.
55  
56 =head1 AUTHOR
57  
58 Adam Hopkins <srchulo@cpan.org>
59  
60 =head1 COPYRIGHT AND LICENSE
61  
62 This software is copyright (c) 2017 by Adam Hopkins.
63  
64 This is free software; you can redistribute it and/or modify it under
65 the same terms as the Perl 5 programming language system itself.
66  
67 =cut