[Bps-public-commit] jifty-plugin-authentication-twitter branch, master, updated. 06c2427398795dc9bf78c9b425ca1b455a8b757a
Shawn Moore
sartak at bestpractical.com
Tue Jun 8 11:02:07 EDT 2010
The branch, master has been updated
via 06c2427398795dc9bf78c9b425ca1b455a8b757a (commit)
from 4d8801171dc849a550a542f6809ccf30ef7cf1ab (commit)
Summary of changes:
.../Plugin/Authentication/Twitter/Dispatcher.pm | 16 +++++-----------
1 files changed, 5 insertions(+), 11 deletions(-)
- Log -----------------------------------------------------------------
commit 06c2427398795dc9bf78c9b425ca1b455a8b757a
Author: Shawn M Moore <sartak at gmail.com>
Date: Tue Jun 8 11:02:59 2010 -0400
Reordering
diff --git a/lib/Jifty/Plugin/Authentication/Twitter/Dispatcher.pm b/lib/Jifty/Plugin/Authentication/Twitter/Dispatcher.pm
index 6eb4361..2bf597a 100644
--- a/lib/Jifty/Plugin/Authentication/Twitter/Dispatcher.pm
+++ b/lib/Jifty/Plugin/Authentication/Twitter/Dispatcher.pm
@@ -18,19 +18,8 @@ Jifty::Plugin::Authentication::Twitter::Dispatcher - dispatcher for Twitter plug
All the dispatcher rules jifty needs to support L<Jifty::Authentication::Twitter>
-=head1 RULES
-
-=head2 before '/twitter/callback'
-
-Handles the login callback. You probably don't need to worry about this.
-
=cut
-on '/twitter/callback' => run {
- my $token = Jifty->web->request->argument('oauth_token');
- my $secret = Jifty::CAS->key('twitter_oauth' => $token);
-};
-
on '/twitter/login' => run {
my ($plugin) = Jifty->find_plugin('Jifty::Plugin::Authentication::Twitter');
my $request_token_request = Net::OAuth::RequestTokenRequest->new(
@@ -79,5 +68,10 @@ on '/twitter/login' => run {
Jifty::Dispatcher::_abort();
};
+on '/twitter/callback' => run {
+ my $token = Jifty->web->request->argument('oauth_token');
+ my $secret = Jifty::CAS->key('twitter_oauth' => $token);
+};
+
1;
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list