X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FAuthentication%2FRealm%2FAdaptor.pm;h=59450ec43aab79ceeb18075643f2832e7dcb1405;hb=d0102990c9dbedc43f39aba51e3de000422f3832;hp=bf018946898c616de72c00872d71f913a35acf02;hpb=c6a2d572d24523a391e1bbdc608414bab834fa6c;p=catagits%2FCatalyst-Authentication-Realm-Adaptor.git diff --git a/lib/Catalyst/Authentication/Realm/Adaptor.pm b/lib/Catalyst/Authentication/Realm/Adaptor.pm index bf01894..59450ec 100644 --- a/lib/Catalyst/Authentication/Realm/Adaptor.pm +++ b/lib/Catalyst/Authentication/Realm/Adaptor.pm @@ -106,9 +106,9 @@ sub find_user { Catalyst::Exception->throw(__PACKAGE__ . " realm: " . $self->name . "'s store_adaptor is configured to use a code ref that doesn't exist"); } } - return $self->SUPER::authenticate($c, $newauthinfo); + return $self->SUPER::find_user($c, $newauthinfo); } else { - return $self->SUPER::authenticate($c, $authinfo); + return $self->SUPER::find_user($c, $authinfo); } } @@ -233,7 +233,7 @@ with a status of either 'temporary' or 'active.' This realm works by intercepting the original authentication information between the time C<< $c->authenticate($authinfo) >> is called and the time the -realm's C<$realm->authenticate($c,$authinfo)> method is called, allowing for +realm's C<< $realm->authenticate($c,$authinfo) >> method is called, allowing for the $authinfo parameter to be modified or replaced as your application requires. It can also operate after the call to the credential's C method but before the call to the store's C @@ -248,7 +248,7 @@ credential and store options. This module can operate in two points during authentication processing. The first is prior the realm's C call (immediately after the call to -C<<$c->authenticate()>>.) To operate here, your filter options should go in a hash +C<< $c->authenticate() >>.) To operate here, your filter options should go in a hash under the key C. The second point is after the call to credential's C method but @@ -404,7 +404,7 @@ be better solved by adjusting your credential or store directly. That said, there are some areas where this module can be particularly useful. For example, this module allows for global application of additional arguments to authinfo for a certain realm via your config. It also allows for preliminary -testing of alternate configs before you adjust every C<<$c->authenticate()>> call +testing of alternate configs before you adjust every C<< $c->authenticate() >> call within your application. It is also useful when combined with the various external authentication @@ -425,7 +425,7 @@ even with Catalyst's flexible authentication system. With all of that said, caution is warranted when using this module. It modifies the behavior of the application in ways that are not obvious and can therefore lead to extremely hard to track-down bugs. This is especially true when using -the C filter method. When a developer calls C<<$c->authenticate()>> +the C filter method. When a developer calls C<< $c->authenticate() >> they are not expecting any actions to be called before it returns. If you use the C method, I strongly recommend that you use it only as a