Catalyst::Plugin::Authentication::Credential::Flickr - Flickr authentication for Catalyst


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

Index


NAME

Top

Catalyst::Plugin::Authentication::Credential::Flickr - Flickr authentication for Catalyst

SYNOPSIS

Top

    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('/') );
        }
    }

DESCRIPTION

Top

This module provide authentication via Flickr, using it's api.

EXTENDED METHODS

Top

setup

METHODS

Top

authenticate_flickr_url

authenticate_flickr

SEE ALSO

Top

Catalyst::Plugin::Authentication, Catalyst::Plugin::Authentication::Credential::TypeKey

AUTHOR

Top

Daisuke Murase <typester@cpan.org>

COPYRIGHT

Top


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