NAME
Catalyst::Plugin::Authentication::Credential::Livedoor - livedoor Auth API for Catalyst.
SYNOPSIS
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.
}
}
DESCRIPTION
Catalyst::Plugin::Authentication::Credential::Livedoor provides authentication via livedoor Auth API
AUTHOR
Tomohiro IKEBE <ikebe@shebang.jp>
SEE ALSO
http://auth.livedoor.com/
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.