CGI::Application::Plugin::Authentication::Driver::CDBI(3pm)

CGI::Application::Plugin::Authentication::Driver::CDBI3pm

Class::dbi authentication driver

Usage

  use base qw(CGI::Application);
  use CGI::Application::Plugin::Authentication;
  __PACKAGE__->authen->config(
    DRIVER => [ 'CDBI',
      CLASS   => 'My::CDBI::Users',
      FIELD_METHODS => [qw(user MD5:passphrase)]
    ],
    CREDENTIALS => [qw(auth_username auth_password)],
  );

Version

Version 0.03

THIS MODULE IS UNSUPPORTED! YOU CAN ADOPT IT IF YOU LIKE IT! WRITE TO [email protected] IF YOU WANT TO MAINTAIN IT.

Overview

This Authentication driver uses the Class::DBI module to allow you to authenticate against any Class::DBI class.

Parameters

The Class::DBI authentication driver accepts the following required parameters.

CLASS (required)

Specifies the Class::DBI class to use for authentication. This class must be loaded prior to use.

FIELD_METHODS (required)

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 CGI::Application::Plugin::Authentication::Driver

Methods

verify_credentials

This method will test the provided credentials against the values found in the database, according to the Driver configuration.

Acknowledgements

Special thanks to Cees Hek for writing CGI::Application::Plugin::Authentication and his assistance in writing this module.

Releases

6 releases since Debian 7 (Wheezy); the text changed 5 times.

  1. 7
  2. 8
  3. 9
  4. 10
  5. 12
  6. 13

Author

Shawn Sorichetti, "<[email protected]>"

Bugs

Please report any bugs or feature requests to "bug-cgi-application-plugin-authentication-driver-cdbi@rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CGI-Application-Plugin-Authentication-Driver-CDBI>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

From libcgi-application-plugin-authentication-perl 0.25+~cs0.5-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.