Catalyst::Plugin::Authentication::Credential::Livedoor - livedoor Auth API for Catalyst.


Catalyst-Plugin-Authentication-Credential-Livedoor documentation  | view source Contained in the Catalyst-Plugin-Authentication-Credential-Livedoor distribution.

Index


NAME

Top

Catalyst::Plugin::Authentication::Credential::Livedoor - livedoor Auth API for Catalyst.

SYNOPSIS

Top

  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

Top

Catalyst::Plugin::Authentication::Credential::Livedoor provides authentication via livedoor Auth API

AUTHOR

Top

Tomohiro IKEBE <ikebe@shebang.jp>

SEE ALSO

Top

http://auth.livedoor.com/

LICENSE

Top

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

Top


Catalyst-Plugin-Authentication-Credential-Livedoor documentation  | view source Contained in the Catalyst-Plugin-Authentication-Credential-Livedoor distribution.