[librest] oauth-proxy: Use POST method doe OAuth 1.0 authentication.



commit 30ea270ebc3b1347a11f92e110e7905646b7fb1b
Author: Eitan Isaacson <eitan monotonous org>
Date:   Thu Feb 24 15:22:20 2011 -0800

    oauth-proxy: Use POST method doe OAuth 1.0 authentication.
    
    Fixes: https://bugs.meego.com/show_bug.cgi?id=13843

 rest/oauth-proxy.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/rest/oauth-proxy.c b/rest/oauth-proxy.c
index 76ebef6..03549dc 100644
--- a/rest/oauth-proxy.c
+++ b/rest/oauth-proxy.c
@@ -386,6 +386,7 @@ oauth_proxy_request_token (OAuthProxy *proxy,
 
   call = rest_proxy_new_call (REST_PROXY (proxy));
   rest_proxy_call_set_function (call, function ? function : "request_token");
+  rest_proxy_call_set_method (call, "POST");
 
   if (callback_uri)
     rest_proxy_call_add_param (call, "oauth_callback", callback_uri);
@@ -463,6 +464,7 @@ oauth_proxy_request_token_async (OAuthProxy            *proxy,
 
   call = rest_proxy_new_call (REST_PROXY (proxy));
   rest_proxy_call_set_function (call, function ? function : "request_token");
+  rest_proxy_call_set_method (call, "POST");
 
   if (callback_uri)
     rest_proxy_call_add_param (call, "oauth_callback", callback_uri);
@@ -501,6 +503,7 @@ oauth_proxy_access_token (OAuthProxy *proxy,
 
   call = rest_proxy_new_call (REST_PROXY (proxy));
   rest_proxy_call_set_function (call, function ? function : "access_token");
+  rest_proxy_call_set_method (call, "POST");
 
   if (verifier)
     rest_proxy_call_add_param (call, "oauth_verifier", verifier);
@@ -579,6 +582,7 @@ oauth_proxy_access_token_async (OAuthProxy            *proxy,
 
   call = rest_proxy_new_call (REST_PROXY (proxy));
   rest_proxy_call_set_function (call, function ? function : "access_token");
+  rest_proxy_call_set_method (call, "POST");
 
   if (verifier)
     rest_proxy_call_add_param (call, "oauth_verifier", verifier);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]