Skip to content

nephia/NephiaX-Auth-Twitter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

NephiaX::Auth::Twitter - Twitter Authorizer

DESCRIPTION

An web application that powered by Nephia.

SYNOPSIS

use Plack::Builder;
use NephiaX::Auth::Twitter;
builder {
    mount '/auth' => NephiaX::Auth::Twitter->run(
        consumer_key    => 'your consumer key',
        consumer_secret => 'your consumer secret',
        handler => sub {
            my ($c, $twitter_id) = @_;
            ### You have to imprement logic that stores twitter_id into your db and/or cookie.
            [302, [Location => '/userarea/somepage'], []];
        },
    );
    mount '/' => Your::App->run;
};

AUTHOR

ytnobody [email protected]

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

Nephia