[Bps-public-commit] jifty-plugin-authentication-twitter branch, master, updated. 7833e9452d6cf3287be55110b6f358c206b5600c

Shawn Moore sartak at bestpractical.com
Thu Jun 10 15:25:48 EDT 2010


The branch, master has been updated
       via  7833e9452d6cf3287be55110b6f358c206b5600c (commit)
      from  60426ce4c5e57d1fcece3d7b9764b8cec1c36fe5 (commit)

Summary of changes:
 .../Plugin/Authentication/Twitter/Dispatcher.pm    |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 7833e9452d6cf3287be55110b6f358c206b5600c
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Thu Jun 10 15:26:35 2010 -0400

    Retrieve the right SHA1 for the request token secret

diff --git a/lib/Jifty/Plugin/Authentication/Twitter/Dispatcher.pm b/lib/Jifty/Plugin/Authentication/Twitter/Dispatcher.pm
index 74b97f1..fed8f73 100644
--- a/lib/Jifty/Plugin/Authentication/Twitter/Dispatcher.pm
+++ b/lib/Jifty/Plugin/Authentication/Twitter/Dispatcher.pm
@@ -73,7 +73,8 @@ on '/twitter/login' => run {
 on '/twitter/callback' => run {
     my ($plugin) = Jifty->find_plugin('Jifty::Plugin::Authentication::Twitter');
     my $request_token = Jifty->web->request->argument('oauth_token');
-    my $request_secret = Jifty::CAS->key('twitter_oauth' => $request_token);
+    my $cas_key = Jifty::CAS->key('twitter_oauth' => $request_token);
+    my $request_secret = Jifty::CAS->retrieve('twitter_oauth' => $cas_key)->content;
 
     my $access_token_request = Net::OAuth::AccessTokenRequest->new(
         consumer_key     => $plugin->consumer_key,

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list