NephiaX::Auth::Twitter - Twitter Authorizer
An web application that powered by Nephia.
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;
};
ytnobody [email protected]
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.