Catalyst::Authentication::Credential::Flickr

Flickr authentication for Catalyst
Download

Catalyst::Authentication::Credential::Flickr Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Menno Blom
  • Publisher web site:
  • http://search.cpan.org/~blom/

Catalyst::Authentication::Credential::Flickr Tags


Catalyst::Authentication::Credential::Flickr Description

Flickr authentication for Catalyst Catalyst::Authentication::Credential::Flickr is a Perl module that handles Flickr API authentication in a Catalyst application.SYNOPSISIn MyApp.pm use Catalyst qw/ Authentication Session Session::Store::FastMmap Session::State::Cookie /; MyApp->config( "Plugin::Authentication" => { default_realm => "flickr", realms => { flickr => { credential => { class => "Flickr", }, key => 'flickr-key-here', secret => 'flickr-secret-here', perms => 'read', }, }, }, );And then in your Controller: sub login : Local { my ($self, $c) = @_; my $realm = $c->get_auth_realm('flickr'); $c->res->redirect( $realm->credential->authenticate_flickr_url($c) ); }And finally the callback you specified in your API key request (e.g. example.com/flickr/ ): sub flickr : Local { my ($self, $c) = @_; $c->authenticate(); $c->res->redirect("/super/secret/member/area"); } Requirements: · Perl


Catalyst::Authentication::Credential::Flickr Related Software