From: Jay Kuri Date: Wed, 21 Nov 2007 18:49:20 +0000 (+0000) Subject: Changing authentication config to support Plugin::Authentication X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b10ba7eaf549f2dc4a5d57b98b6270b8a8f643d3;p=catagits%2FCatalyst-Plugin-Authentication.git Changing authentication config to support Plugin::Authentication --- diff --git a/lib/Catalyst/Plugin/Authentication.pm b/lib/Catalyst/Plugin/Authentication.pm index 1fefb34..3f5a1fa 100644 --- a/lib/Catalyst/Plugin/Authentication.pm +++ b/lib/Catalyst/Plugin/Authentication.pm @@ -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; diff --git a/t/lib/AuthRealmTestApp.pm b/t/lib/AuthRealmTestApp.pm index 9467275..36cb291 100644 --- a/t/lib/AuthRealmTestApp.pm +++ b/t/lib/AuthRealmTestApp.pm @@ -84,7 +84,7 @@ sub moose : Local { $c->res->body( "ok" ); } -__PACKAGE__->config->{authentication} = { +__PACKAGE__->config->{'Plugin::Authentication'} = { default_realm => 'members', realms => { members => {