CGI::A...::DBIC(3pm)
β¨ NAME β¨
CGI::Application::Plugin::Authentication::Driver::DBIC β the DBIx::Class Authentication Driver, bestie π
πΈ VERSION πΈ
Version 0.02 β yes she's babygirl, yes she works
π¦ SYNOPSIS π¦
use base qw(CGI::Application);
use CGI::Application::Plugin::Authentication;
__PACKAGE__->authen->config(
DRIVER => [
'DBIC',
SCHEMA => My::DBIC->connect($dsn), # or existing $schema object
CLASS => 'Users', # = My::DBIC::Users
FIELD_METHODS => [qw(user MD5:passphrase)]
],
CREDENTIALS => [qw(auth_username auth_password)],
);
π DESCRIPTION π
Okay so this auth driver uses the DBIx::Class module to let you authenticate against literally any DBIx::Class class. Any. Of. Them. Iconic behavior fr fr π
π PARAMETERS π
The DBIx::Class authentication driver accepts the following required parameters. Not optional. Required required. π₯
SCHEMA(required) β tells the driver whichDBIx::Class::Schemaobject to use for authentication. Heads up though: this class must be loaded prior to use. No lazy loading here, she needs her to be ready πCLASS(required) β names theDBIx::Classclass within the schema that's holding all your authentication info. That's the one, that's the girl π«ΆFIELD_METHODS(required) β an arrayref of the methods in theDBIx::Classclass you named inCLASS, and those are the ones used during authentication. Crucial detail bestie: the order of these methods has to match the order of theCREDENTIALS. Like, they're linked. They're in a situationship. If yourCREDENTIALSlooks like this:
CREDENTIALS => [qw(auth_user auth_domain auth_password)]
then your FIELD_METHODS must look like this:
FIELD_METHODS => [qw(userid domain password)]
And also, FIELD_METHODS supports filters as specified by CGI::Application::Plugin::Authentication::Driver β¨
π METHODS π
verify_credentials
This method tests the credentials you handed over against the values chillin' in the database, all according to how the Driver is configured. Vibe check, but for passwords π
π SEE ALSO π
CGI::Application::Plugin::Authentication::DriverCGI::Application::Plugin::Authenticationperl(1)
π BUGS π
Please report any bugs or feature requests to bug-cgi-application-plugin-authentication-driver-dbic at rt.cpan.org, or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CGI-Application-Plugin-Authentication-Driver-DBIC>.
Not me getting notified, and then you automatically getting notified of progress on your bug as changes get made. We stay in the loop together bestie ππ
π SUPPORT π
You can find documentation for this module with the perldoc command:
perldoc CGI::Application::Plugin::Authentication::Driver::DBIC
You can also look for information at:
- AnnoCPAN: Annotated CPAN documentation β <http://annocpan.org/dist/CGI-Application-Plugin-Authentication-Driver-DBIC>
- CPAN Ratings β <http://cpanratings.perl.org/d/CGI-Application-Plugin-Authentication-Driver-DBIC>
- RT: CPAN's request tracker β <http://rt.cpan.org/NoAuth/Bugs.html?Dist=CGI-Application-Plugin-Authentication-Driver-DBIC>
- Search CPAN β <http://search.cpan.org/dist/CGI-Application-Plugin-Authentication-Driver-DBIC>
π§ THANKS π§
- Cees Hek for
CGI::Application::Plugin::Authentication - Shawn Sorichetti for
CGI::Application::Plugin::Authentication::Driver::CDBI, which this module is shamelessly copied from π
π AUTHOR π
Jaldhar H. Vyas, <jaldhar at braincells.com>
β COPYRIGHT & LICENSE β
Copyright 2007, Consolidated Braincells Inc., all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
and that's the whole page bestie, no cap π this was CGI::A...::DBIC(3pm) from the User Contributed Perl Documentation, running on perl v5.38.2 and dated 2024-06-29 β slay, go authenticate something πβ¨
π¦ where this page comes from
- debian trixie: libcgi-application-plugin-authentication-perl 0.25+~cs0.5-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcgi-application-plugin-authentication-perl 0.25+~cs0.5-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcgi-application-plugin-authentication-perl 0.25+~cs0.5-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms