Debian Codegraph @

driver-cdbi/README

raw
1 NAME
2 THIS MODULE IS UNSUPPORTED! YOU CAN ADOPT IT IF YOU LIKE IT! WRITE TO
3 [email protected] IF YOU WANT TO MAINTAIN IT.
4
5 CGI::Application::Plugin::Authentication::Driver::CDBI - Class::DBI
6 Authentication Driver
7
8 VERSION
9 Version 0.03
10
11 THIS MODULE IS UNSUPPORTED! YOU CAN ADOPT IT IF YOU LIKE IT! WRITE TO
12 [email protected] IF YOU WANT TO MAINTAIN IT.
13
14 SYNOPSIS
15 use base qw(CGI::Application);
16 use CGI::Application::Plugin::Authentication;
17
18 __PACKAGE__->authen->config(
19 DRIVER => [ 'CDBI',
20 CLASS => 'My::CDBI::Users',
21 FIELD_METHODS => [qw(user MD5:passphrase)]
22 ],
23 CREDENTIALS => [qw(auth_username auth_password)],
24 );
25
26 DESCRIPTION
27 This Authentication driver uses the Class::DBI module to allow you to
28 authenticate against any Class::DBI class.
29
30 PARAMETERS
31 The Class::DBI authentication driver accepts the following required
32 parameters.
33
34 CLASS (required)
35 Specifies the Class::DBI class to use for authentication. This class
36 must be loaded prior to use.
37
38 FIELD_METHODS (required)
39 FIELD_METHODS is an arrayref of the methods in the Class::DBI class
40 specified by CLASS to be used during authentication. The order of these
41 methods needs to match the order of the CREDENTIALS. For example, if
42 CREDENTIALS is set to:
43
44 CREDENTIALS => [qw(auth_user auth_domain auth_password)]
45
46 Then FIELD_METHODS must be set to:
47
48 FIELD_METHODS => [qw(userid domain password)]
49
50 FIELD_METHODS supports filters as specified by
51 CGI::Application::Plugin::Authentication::Driver
52
53 METHODS
54 verify_credentials
55 This method will test the provided credentials against the values found
56 in the database, according to the Driver configuration.
57
58 SEE ALSO
59 CGI::Application::Plugin::Authentication::Driver,
60 CGI::Application::Plugin::Authentication, perl(1)
61
62 AUTHOR
63 Shawn Sorichetti, "<[email protected]>"
64
65 BUGS
66 Please report any bugs or feature requests to
67 "bug-cgi-application-plugin-authentication-driver-cdbi@rt.cpan.org", or
68 through the web interface at
69 <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CGI-Application-Plugin-A
70 uthentication-Driver-CDBI>. I will be notified, and then you'll
71 automatically be notified of progress on your bug as I make changes.
72
73 ACKNOWLEDGEMENTS
74 Special thanks to Cees Hek for writing
75 CGI::Application::Plugin::Authentication and his assistance in writing
76 this module.
77
78 COPYRIGHT & LICENSE
79 THIS MODULE IS UNSUPPORTED! YOU CAN ADOPT IT IF YOU LIKE IT! WRITE TO
80 [email protected] IF YOU WANT TO MAINTAIN IT.
81
82 Copyright 2005 Shawn Sorichetti, all rights reserved.
83
84 This program is free software; you can redistribute it and/or modify it
85 under the same terms as Perl itself.
86