summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEitan Isaacson <eitan@monotonous.org>2011-02-24 15:22:20 -0800
committerEitan Isaacson <eitan@monotonous.org>2011-03-07 16:10:25 -0500
commit30ea270ebc3b1347a11f92e110e7905646b7fb1b (patch)
treed290fdd1281131b7c84c356253e0768524728599
parent2d1dbfe7073b1e153ff881426b40a9a517fb796b (diff)
oauth-proxy: Use POST method doe OAuth 1.0 authentication.
Fixes: https://bugs.meego.com/show_bug.cgi?id=13843
-rw-r--r--rest/oauth-proxy.c4
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);