Catalyst::Plugin::Authentication::Credential::Flickr - Flickr authentication for Catalyst
use Catalyst qw/ Authentication Authentication::Credential::Flickr Session Session::Store::FastMmap Session::State::Cookie /; MyApp->config( authentication => { use_session => 1, # default 1. see C::P::Authentication flickr => { key => 'your api_key', secret => 'your secret_key', perms => 'read', # or write }, }, ); sub default : Private { my ( $self, $c ) = @_; if ( $c->user_exists ) { # $c->user setted } } # redirect flickr's login form sub login : Local { my ( $self, $c ) = @_; $c->res->redirect( $c->authenticate_flickr_url ); } # login callback url sub auth : Path('/flickr') { my ( $self, $c ) = @_; if ( $c->authenticate_flickr ) { $c->res->redirect( $c->uri_for('/') ); } }
This module provide authentication via Flickr, using it's api.
Catalyst::Plugin::Authentication, Catalyst::Plugin::Authentication::Credential::TypeKey
Daisuke Murase <typester@cpan.org>
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.
To install Catalyst::Plugin::Authentication::Credential::Flickr, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Plugin::Authentication::Credential::Flickr
CPAN shell
perl -MCPAN -e shell install Catalyst::Plugin::Authentication::Credential::Flickr
For more information on module installation, please visit the detailed CPAN module installation guide.