in reply to Re: CGI Application Authentication using multiple drivers
in thread CGI Application Authentication using multiple drivers

This is where I got the idea that I could do it
http://search.cpan.org/~silasmonk/CGI-Application-Plugin-Authentication-0.18/lib/CGI/Application/Plugin/Authentication.pm#config

"You can provide multiple drivers which will be used, in order, to check the credentials until a valid response is received."

  • Comment on Re^2: CGI Application Authentication using multiple drivers

Replies are listed 'Best First'.
Re^3: CGI Application Authentication using multiple drivers
by Corion (Patriarch) on Jun 25, 2010 at 18:03 UTC

    Ah - I hadn't seen that. Why are you doing it differently than the documentation suggests?

      Can you point out what am I doing wrong? Thanks

        You write something like:

        DRIVER => [ 'DBI', ... ], DRIVER => [ 'Authen::Simple::LDAP', ... ],

        while the documentation suggests

        DRIVER => [ [ 'Generic', { user1 => '123' } ], [ 'Generic', sub { my ($u, $p) = @_; is_prime($p) ? 1 : 0 } ] ],