Bug fix for auth session restoration + Improvements to handling of default auth store
[catagits/Catalyst-Authentication-Credential-HTTP-Proxy.git] / lib / Catalyst / Plugin / Authentication / Credential / TypeKey.pm
index 4d9df06..cbdfb5f 100644 (file)
@@ -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 );
         }