RolesFor/Schema/LDAPAuth.pm untested

filter: Statementstmt 0.0% 0 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 10 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package OpusVL::AppKit::RolesFor::Schema::LDAPAuth;
2 # FIXME: should probably rename this class.
3  
4 use namespace::autoclean;
5 use Moose::Role;
6  
7 has password_check => (is => 'rw', isa => 'OpusVL::AppKit::RolesFor::Auth');
8  
9 1;
10  
11 __END__
12  
13 =pod
14  
15 =encoding UTF-8
16  
17 =head1 NAME
18  
19 OpusVL::AppKit::RolesFor::Schema::LDAPAuth
20  
21 =head1 VERSION
22  
23 version 2
24  
25 =head1 SYNOPSIS
26  
27 # in your schema
28 extends 'DBIx::Class::Schema';
29 with 'OpusVL::AppKit::RolesFor::Schema::LDAPAuth';
30  
31 =head1 DESCRIPTION
32  
33 This role extends your DBIC Schema to allow the AppKitAuthDB to make use of alternative
34 authentication methods. You can for example use LDAP
35 for it's password authentication while still storing user information in the database.
36  
37 =head1 NAME
38  
39 OpusVL::AppKit::RolesFor::Schema::LDAPAuth
40  
41 =head1 ATTRIBUTES
42  
43 =head2 password_check
44  
45 The auth object that provides
46  
47 =head1 SEE ALSO
48  
49 To complete the integration with Catalyst you need to add the trait
50 L<OpusVL::AppKit::RolesFor::Model::LDAPAuth> to your model to use LDAP authentication.
51  
52 L<OpusVL::AppKit::LDAPAuth> is the class used to do the actual authentication.
53  
54 =head1 AUTHOR
55  
56 Colin Newell <colin@opusvl.com>
57  
58 =head1 COPYRIGHT AND LICENSE
59  
60 This software is copyright (c) 2016 by OpusVL.
61  
62 This is free software; you can redistribute it and/or modify it under
63 the same terms as the Perl 5 programming language system itself.
64  
65 =cut