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.
To install Catalyst::Plugin::Authentication::Credential::Livedoor, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Plugin::Authentication::Credential::Livedoor
CPAN shell
perl -MCPAN -e shell install Catalyst::Plugin::Authentication::Credential::Livedoor
For more information on module installation, please visit the detailed CPAN module installation guide.