| Catalyst-Plugin-Authentication-Credential-AOL documentation | view source | Contained in the Catalyst-Plugin-Authentication-Credential-AOL distribution. |
Catalyst::Plugin::Authentication::Credential::AOL - AOL OpenAuth credential
# myapp.yaml
authentication:
aol:
devId: AOL_DEVELOPER_TOKEN
# MyApp.pm
package MyApp;
use Catalyst qw/
Authentication
Authentication::Credential::AOL
Session
Session::Store::FastMmap
Session::State::Cookie
/;
# MyApp/Controller/Signin.pm
sub aol : Local {
my($self, $c) = @_;
if ($c->authenticate_aol) {
# login succeed
$c->res->redirect("/");
}
# login failed
}
# in your templates
<a href="[% c.uri_for('/signin/aol') | html %]">Sign in via AOL</a>
Catalyst::Plugin::Authentication::Credential::AOL is a Catalyst Authentication credential plugin for AOL OpenAuth. Since AOL does OpenID you can just use OpenID credential, but OpenAuth gives more granular control over authentication.
Tatsuhiko Miyagawa <miyagawa@bulknews.net>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| Catalyst-Plugin-Authentication-Credential-AOL documentation | view source | Contained in the Catalyst-Plugin-Authentication-Credential-AOL distribution. |