CGI::Application::Plugin::Authentication::Driver::CDBI - Class::DBI
use base qw(CGI::Application);
DRIVER => [ 'CDBI',
CLASS => 'My::CDBI::Users',
FIELD_METHODS => [qw(user MD5:passphrase)]
CREDENTIALS => [qw(auth_username auth_password)],
This Authentication driver uses the Class::DBI module to allow you to
authenticate against any Class::DBI class.
The Class::DBI authentication driver accepts the following required parameters.
Specifies the Class::DBI class to use for authentication. This class must be
loaded prior to use.
FIELD_METHODS is an arrayref of the methods in the Class::DBI class specified by
CLASS to be used during authentication. The order of these methods needs to
match the order of the CREDENTIALS. For example, if CREDENTIALS is set to:
CREDENTIALS => [qw(auth_user auth_domain auth_password)]
Then FIELD_METHODS must be set to:
FIELD_METHODS => [qw(userid domain password)]
FIELD_METHODS supports filters as specified by
This method will test the provided credentials against the values found in the
database, according to the Driver configuration.
Shawn Sorichetti, "<firstname.lastname@example.org>"
Please report any bugs or feature requests to
or through the web interface at
I will be notified, and then you'll automatically be notified of progress on
your bug as I make changes.
Special thanks to Cees Hek for writing CGI::Application::Plugin::Authentication
and his assistance in writing this module.
Copyright 2005 Shawn Sorichetti, all rights reserved.
This program is free software; you can redistribute it and/or modify it under
the same terms as Perl itself.