-
-
03 Apr 2007 02:41:53 UTC
- Distribution: Catalyst-Plugin-Authentication-Credential-Hatena
- Module version: 0.04
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (1)
- Testers (311 / 71 / 0)
- Kwalitee
Bus factor: 0- 83.33% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (10.91KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Catalyst
- Hatena::API::Auth
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Catalyst::Plugin::Authentication::Credential::Hatena - Hatena authentication for Catalyst
SYNOPSIS
# load plugin and setup use Catalyst qw( Authentication Authentication::Credential::Hatena Session Session::Store::FastMmap Session::State::Cookie ); __PACKAGE__->config->{authentication}->{hatena} = { api_key => 'your api_key', secret => 'your shared secret', }; # in controller # redirect login url sub login : Path('/hatena/login') { my ( $self, $c ) = @_; $c->res->redirect( $c->authenticate_hatena_url ); } # callback url sub auth : Path('/hatena/auth') { my ( $self, $c ) = @_; if ( $c->authenticate_hatena ) { # login successful $c->res->redirect( $c->uri_for('/') ); } else { # something wrong } }
DESCRIPTION
This module provide authentication via Hatena, using its api.
SEE ALSO
Hatena::API::Auth, http://auth.hatena.ne.jp/
EXTENDED METHODS
setup
METHODS
authenticate_hatena_url
authenticate_hatena
AUTHOR
Daisuke Murase <typester@cpan.org>
COPYRIGHT
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
Module Install Instructions
To install Catalyst::Plugin::Authentication::Credential::Hatena, copy and paste the appropriate command in to your terminal.
cpanm Catalyst::Plugin::Authentication::Credential::Hatena
perl -MCPAN -e shell install Catalyst::Plugin::Authentication::Credential::Hatena
For more information on module installation, please visit the detailed CPAN module installation guide.