| Catalyst-Plugin-Authentication-Credential-Livedoor documentation | view source | Contained in the Catalyst-Plugin-Authentication-Credential-Livedoor distribution. |
Catalyst::Plugin::Authentication::Credential::Livedoor - livedoor Auth API for Catalyst.
use Catalyst qw(
Authentication
Authentication::Credential::Livedoor
Session
Session::Store::FastMmap
Session::State::Cookie
);
MyApp->config(
authentication => {
livedoor => {
app_key => '...',
secret => '...',
get_livedoor_id => 1,
}
}
);
sub login : Local {
my( $self, $c ) = @_;
$c->res->redirect( $c->authenticate_livedoor_url );
}
sub auth_callback : Local {
my( $self, $c ) = @_;
if ( $c->authenticate_livedoor ) {
$c->res->redirect($c->uri_for('/'));
}
else {
# login failed.
}
}
Catalyst::Plugin::Authentication::Credential::Livedoor provides authentication via livedoor Auth API
Tomohiro IKEBE <ikebe@shebang.jp>
http://auth.livedoor.com/
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| Catalyst-Plugin-Authentication-Credential-Livedoor documentation | view source | Contained in the Catalyst-Plugin-Authentication-Credential-Livedoor distribution. |