-
-
10 Apr 2007 02:35:01 UTC
- Distribution: Catalyst-Plugin-Authentication-Credential-JugemKey
- Module version: 0.04
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues
- Testers (167 / 7 / 0)
- Kwalitee
Bus factor: 0- 83.33% Coverage
- License: unknown
- Activity
24 month- Tools
- Download (4.22KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Catalyst
- Test::More
- WebService::JugemKey::Auth
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- NAME
- VERSION
- SYNOPSIS
- METHODS
- INTERNAL METHODS
- SEE ALSO
- AUTHOR
- BUGS
- SUPPORT
- ACKNOWLEDGEMENTS
- COPYRIGHT & LICENSE
NAME
Catalyst::Plugin::Authentication::Credential::JugemKey - JugemKey authentication plugin for Catalyst
VERSION
Version 0.04
SYNOPSIS
# load plugin and setup use Catalyst qw( Authentication Authentication::Credential::JugemKey Session Session::Store::FastMmap Session::State::Cookie ); __PACKAGE__->config->{authentication}->{jugemkey} = { api_key => 'your api_key', secret => 'your shared secret', perms => 'permission', }; # in controller # redirect login url sub login : Path('/jugemkey/login') { my ( $self, $c ) = @_; $c->res->redirect( $c->authenticate_jugemkey_url({ callback_url => 'http://your_callback_url/jugemkey/auth', param1 => 'value1', param2 => 'value2', }) ); } # callback url sub auth : Path('/jugemkey/auth') { my ( $self, $c ) = @_; if ( my $user = $c->authenticate_jugemkey_get_token ) { # login successful $c->session->{name} = $user->name; $c->session->{token} = $user->token; $c->res->redirect( $c->uri_for('/') ); } else { # something wrong } }
METHODS
- authenticate_jugemkey_url
-
Creates login url.
- authenticate_jugemkey_get_token
-
Exchange frob for token and JugemKey user name.
INTERNAL METHODS
- setup
SEE ALSO
WebService::JugemKey::Auth, http://jugemkey.jp/api/auth/
AUTHOR
Gosuke Miyashita,
<gosukenator at gmail.com>
BUGS
Please report any bugs or feature requests to
bug-catalyst-plugin-authentication-credential-jugemkey at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Catalyst-Plugin-Authentication-Credential-JugemKey. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Catalyst::Plugin::Authentication::Credential::JugemKey
You can also look for information at:
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Catalyst-Plugin-Authentication-Credential-JugemKey
CPAN Ratings
http://cpanratings.perl.org/d/Catalyst-Plugin-Authentication-Credential-JugemKey
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Catalyst-Plugin-Authentication-Credential-JugemKey
Search CPAN
http://search.cpan.org/dist/Catalyst-Plugin-Authentication-Credential-JugemKey
ACKNOWLEDGEMENTS
COPYRIGHT & LICENSE
Copyright 2006 Gosuke Miyashita, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install Catalyst::Plugin::Authentication::Credential::JugemKey, copy and paste the appropriate command in to your terminal.
cpanm Catalyst::Plugin::Authentication::Credential::JugemKey
perl -MCPAN -e shell install Catalyst::Plugin::Authentication::Credential::JugemKey
For more information on module installation, please visit the detailed CPAN module installation guide.