[Catalyst] OpenID authentication

Sebastian Riedel sri at oook.de
Sat Nov 12 09:08:39 CET 2005


Am 12.11.2005 um 08:02 schrieb Benjamin Trott:

> 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?

Nice! This was our try. :)

     http://dev.catalyst.perl.org/file/trunk/Catalyst-Plugin- 
Authenticate-OpenID/lib/Catalyst/Plugin/Authenticate/OpenID.pm


--
sebastian




More information about the Catalyst mailing list