Changing authentication config to support Plugin::Authentication
Jay Kuri [Wed, 21 Nov 2007 18:49:20 +0000 (18:49 +0000)]
lib/Catalyst/Plugin/Authentication.pm
t/lib/AuthRealmTestApp.pm

index 1fefb34..3f5a1fa 100644 (file)
@@ -179,7 +179,7 @@ sub _authentication_initialize {
     ## make classdata where it is used.  
     $app->mk_classdata( '_auth_realms' => {});
     
-    my $cfg = $app->config->{'authentication'} ||= {};
+    my $cfg = $app->config->{'Plugin::Authentication'} ||= $app->config->{'authentication'} ||= {};
 
     $cfg->{use_session} = 1;
     
index 9467275..36cb291 100644 (file)
@@ -84,7 +84,7 @@ sub moose : Local {
        $c->res->body( "ok" );
 }
 
-__PACKAGE__->config->{authentication} = {  
+__PACKAGE__->config->{'Plugin::Authentication'} = {  
     default_realm => 'members',
     realms => {
         members => {