[Catalyst] OpenID authentication

Benjamin Trott ben at sixapart.com
Sat Nov 12 08:02:14 CET 2005


Hi,

I just uploaded to CPAN version 0.01 of
Catalyst::Plugin::Authentication::OpenID, which provides support for using
OpenID auth in Catalyst apps. More about OpenID: <http://www.openid.net/>.

It plays well with existing session plugins, and in fact, is recommended to
be used alongside any of the session plugins. From the synopsis:

    use Catalyst qw( Authentication::OpenID );

    sub begin : Private {
        my($self, $c) = @_;
        if ($c->authenticate_openid) {
            my $identity = $c->req->{openid_identity};
        } else {
            $c->res->redirect('<your-login-screen>')
                unless $c->res->redirect;
        }
    }

Hope this is helpful. I know it's been pretty useful in building some demo
apps internally, so we figured it was generally useful for building apps
without having to worry about building explicit authentication. Thoughts?

Ben




More information about the Catalyst mailing list