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

filter: Statementstmt 0.0% 0 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 14 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use strict;
2 package Web::Authenticate::Result::Login;
3 $Web::Authenticate::Result::Login::VERSION = '0.002';
4 use Mouse;
5 #ABSTRACT: The result of calling Web::Authenticate::login.
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  
27 has auth_redir => (
28 does => 'Web::Authenticate::Authenticator::Redirect::Role',
29 is => 'ro',
30 );
31  
32 1;
33  
34 __END__
35  
36 =pod
37  
38 =encoding UTF-8
39  
40 =head1 NAME
41  
42 Web::Authenticate::Result::Login - The result of calling Web::Authenticate::login.
43  
44 =head1 VERSION
45  
46 version 0.002
47  
48 =head1 METHODS
49  
50 =head2 success
51  
52 Returns 1 if the call to L<Web::Authenticate/login> was successful, undef otherwise.
53  
54 =head2 user
55  
56 Returns the user that was logged in.
57  
58 =head2 failed_authenticator
59  
60 Returns the authenticator that caused the L<Web::Authenticate/login> to fail, if there was one.
61  
62 =head2 auth_redir
63  
64 Returns the L<Web::Authenticate::Authenticator::Redirect::Role> object that login used to redirect.
65  
66 =head1 AUTHOR
67  
68 Adam Hopkins <srchulo@cpan.org>
69  
70 =head1 COPYRIGHT AND LICENSE
71  
72 This software is copyright (c) 2017 by Adam Hopkins.
73  
74 This is free software; you can redistribute it and/or modify it under
75 the same terms as the Perl 5 programming language system itself.
76  
77 =cut