On Feb 20, 2006, at 6:51 PM, Ed Pigg wrote:
package MyApp;
use DBI;
use base 'CGI::Application';
use CGI::Application::Plugin::Session;
use CGI::Application::Plugin::DBH (qw/dbh_config dbh/);
use CGI::Application::Plugin::Authentication;
__PACKAGE__->authen->config(
# DRIVER => [ 'DBI',
# DBH => $self->dbh,
# TABLE => 'user_info',
# CONSTRAINTS => {
# 'user_info.user_name' => '__CREDENTIAL_1__',
# 'user_info.user_passwd' => '__CREDENTIAL_2__',
# } ],
DRIVER => [ 'Generic', { foo_user => 'foo', bar_user => 'bar' } ],
STORE => 'Session',
POST_LOGIN_RUNMODE => 'welcome',
);
__PACKAGE__->authen->protected_runmodes('welcome');
Ok. I slept on it and wrote a quick test for CAP::DBH to make sure I could get a database connection. I was able to get a successful test of DBH. So the problem must be in the authen->config Driver setup or how I'm calling authen. As I stated before, the Generic and Dummy drivers work as I expect and as documented.
Ed Pigg
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.