X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FPlugin%2FAuthentication%2FCredential%2FTypeKey.pm;h=cbdfb5f46ee84db943e20fbf479bfd573871a49f;hb=e460bebe413c7762cf72b19384664965c83e4c41;hp=4d9df06f0807e9556653eac1e68a8eb0f38ca7e1;hpb=e0a35f10bc9cf9d138afe1de9aa5a7ba3e4b158c;p=catagits%2FCatalyst-Authentication-Credential-HTTP-Proxy.git diff --git a/lib/Catalyst/Plugin/Authentication/Credential/TypeKey.pm b/lib/Catalyst/Plugin/Authentication/Credential/TypeKey.pm index 4d9df06..cbdfb5f 100644 --- a/lib/Catalyst/Plugin/Authentication/Credential/TypeKey.pm +++ b/lib/Catalyst/Plugin/Authentication/Credential/TypeKey.pm @@ -54,7 +54,7 @@ sub authenticate_typekey { my $user; - if ( my $store = $config->{auth_store} ) { + if ( my $store = $config->{auth_store} || $c->default_auth_store ) { $store = $c->get_auth_store($store) unless ref $store; $user = $store->get_user( $p, $res ); }