CGI::Application::Plugin::Authentication::Driver::GenericCGI::Application::Plugin::Authentication::Driver::Generic is a Generic Authentication driver. | |
Download |
CGI::Application::Plugin::Authentication::Driver::Generic Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- SiteSuite
- Publisher web site:
- http://search.cpan.org/~ceeshek/CGI-Application-Plugin-Authentication-0.12/lib/CGI/Application/Plugin/Authentication/Driver/Generic.pm
CGI::Application::Plugin::Authentication::Driver::Generic Tags
CGI::Application::Plugin::Authentication::Driver::Generic Description
CGI::Application::Plugin::Authentication::Driver::Generic is a Generic Authentication driver. CGI::Application::Plugin::Authentication::Driver::Generic is a Generic Authentication driver.SYNOPSIS use base qw(CGI::Application); use CGI::Application::Plugin::Authentication; __PACKAGE__->authen->config( DRIVER => , );This Driver offers a simple way to provide a user database to the CGI::Application::Plugin::Authentication plugin. It offers three ways to provide a list of users to the plugin by providing a hash of username/password pairs, an array of arrays containing the username and password pairs, or a code reference that returns back the username, or undef on success or failure.EXAMPLE my %users = ( user1 => '123', user2 => '123', ); __PACKAGE__->authen->config( DRIVER => , ); - or - my @users = ( , , , ); __PACKAGE__->authen->config( DRIVER => , CREDENTIALS => ); - or - sub check_password { my @credentials = @_; if ($credentials eq 'test' && $credentials eq 'secret') { return 'testuser'; } return; } __PACKAGE__->authen->config( DRIVER => , ); Requirements: · Perl
CGI::Application::Plugin::Authentication::Driver::Generic Related Software