Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    CGI::Application::Plugin::Authentication::Driver::Generic 0.20

    Download button

    No screenshots available
    Downloads: 331  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    SiteSuite | More programs
    Perl Artistic License / FREE
    January 27th, 2007, 13:05 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    CGI::Application::Plugin::Authentication::Driver::Generic description

    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 => [ 'Generic', { user1 => '123', user2 => '123' } ],
    );

    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 => [ 'Generic', %users ],
    );

    - or -

    my @users = (
    ['example.com', 'user1', '123'],
    ['example.com', 'user2', '123'],
    ['foobar.com', 'user1', '123'],
    );
    __PACKAGE__->authen->config(
    DRIVER => [ 'Generic', @users ],
    CREDENTIALS => [ 'authen_domain', 'authen_username', 'authen_password' ]
    );

    - or -

    sub check_password {
    my @credentials = @_;
    if ($credentials[0] eq 'test' && $credentials[1] eq 'secret') {
    return 'testuser';
    }
    return;
    }

    __PACKAGE__->authen->config(
    DRIVER => [ 'Generic', &check_password ],
    );


    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Authentication driver | Authentication Plugin | Perl module | module | Authentication | driver

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM