[Catalyst-commits] r7150 - in trunk/Catalyst-Plugin-Authentication: lib/Catalyst/Plugin t/lib

jayk at dev.catalyst.perl.org jayk at dev.catalyst.perl.org
Wed Nov 21 18:49:20 GMT 2007


Author: jayk
Date: 2007-11-21 18:49:20 +0000 (Wed, 21 Nov 2007)
New Revision: 7150

Modified:
   trunk/Catalyst-Plugin-Authentication/lib/Catalyst/Plugin/Authentication.pm
   trunk/Catalyst-Plugin-Authentication/t/lib/AuthRealmTestApp.pm
Log:
Changing authentication config to support Plugin::Authentication

Modified: trunk/Catalyst-Plugin-Authentication/lib/Catalyst/Plugin/Authentication.pm
===================================================================
--- trunk/Catalyst-Plugin-Authentication/lib/Catalyst/Plugin/Authentication.pm	2007-11-21 18:48:37 UTC (rev 7149)
+++ trunk/Catalyst-Plugin-Authentication/lib/Catalyst/Plugin/Authentication.pm	2007-11-21 18:49:20 UTC (rev 7150)
@@ -179,7 +179,7 @@
     ## 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;
     

Modified: trunk/Catalyst-Plugin-Authentication/t/lib/AuthRealmTestApp.pm
===================================================================
--- trunk/Catalyst-Plugin-Authentication/t/lib/AuthRealmTestApp.pm	2007-11-21 18:48:37 UTC (rev 7149)
+++ trunk/Catalyst-Plugin-Authentication/t/lib/AuthRealmTestApp.pm	2007-11-21 18:49:20 UTC (rev 7150)
@@ -84,7 +84,7 @@
 	$c->res->body( "ok" );
 }
 
-__PACKAGE__->config->{authentication} = {  
+__PACKAGE__->config->{'Plugin::Authentication'} = {  
     default_realm => 'members',
     realms => {
         members => {




More information about the Catalyst-commits mailing list