[Catalyst] [Announcement] New Catalyst Authentication plugins!

Tatsuhiko Miyagawa miyagawa at gmail.com
Mon Nov 28 16:47:10 CET 2005


On 11/28/05, Yuval Kogman <nothingmuch at woobling.org> wrote:

> Note that due to broken-ness in Authen::TypeKey version 1.1 is not
> supported, so use version 1 of the typekey protocol..

Not sure what you mean by breakage, but I'm sure Authen::TypeKey is
not broken. I'm *now* able to use it on my site to authenticate TK
users via version 1.1 protocol. See Kwiki::TypeKey module on CPAN and
its live demo at
http://blog.bulknews.net/typekey-kwiki/

But let me admit that there was a little funkiness when I first tried
the authentication using v1.1 and I believe it was related to
need_email part. Can you explicitly supply need_email=0 or 1 in the
original login URL for TypeKey and see what happens?

And here's a trivial patch to fix a typo in C::P::Authentication which
I found during walking around the code.

Index: lib/Catalyst/Plugin/Authentication.pm
===================================================================
--- lib/Catalyst/Plugin/Authentication.pm    (revision 2261)
+++ lib/Catalyst/Plugin/Authentication.pm    (working copy)
@@ -106,7 +106,7 @@
     my ( $c, $frozen_user, $store_name ) = @_;

     return
-      unless $c->isa("Catalyst::PLugin::Session")
+      unless $c->isa("Catalyst::Plugin::Session")
       and $c->config->{authentication}{use_session}
       and $c->sessionid;



--
Tatsuhiko Miyagawa



More information about the Catalyst mailing list