1

I'm currenty using drupal, with the oauthconnector, to interact with different services.

I'm trying to connect with Freelancer.com (Sandbox environment), and I'm getting an error when I have logged in to the service (REMOVED_984c3db">https://www.sandbox.freelancer.com/users/api-token/auth.php?oauth_token=21b7e73_REMOVED_984c3db - I have removed some of the oauth_token here, just for safety :) )

Failed to find token.

In 1 seconds you'll be redirected automatically.

Or click here to continue.

2
  • Can you post some code how are you trying do it? Apr 3, 2013 at 13:32
  • Actually, I'm just using the library. I can intercept all the oauth traffic, if it has interest?
    – Froelund
    Apr 3, 2013 at 13:42

1 Answer 1

1

I have finally figured this out.

The normal behaviour in the OAUTH protocol, for getting the requestToken, is to send a HTTP-POST, containing a http.authorization header. The data in this, is the following

oauth_version=\"1.0\",oauth_nonce=\"87_HIDDEN_66bd\",oauth_timestamp=\"1365000670\",oauth_consumer_key=\"de99_HIDDEN_cf18\",oauth_callback=\"htt_HIDDEN_Fauthorized\",oauth_signature_method=\"HMAC-SHA1\",oauth_signature=\"hyT_HIDDEN_sc%3D\"

Sadly, freelancer.com can't accept this. These parameter MUST be send in a HTTP-GET, with the data as query-parameters.

Like so: /RequestRequestToken/requestRequestToken.json?oauth_version=1.0&oauth_nonce=5bb_HIDDEN_144&oauth_timestamp=1365013875&oauth_consumer_key=de9_HIDDEN_cf18&oauth_callback=http_HIDDEN_authorized&oauth_signature_method=HMAC-SHA1&oauth_signature=qkX_HIDDEN_3D

A wierd thing is though, that the "wrong" request actually returns a request_token - that just doesn't work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.