0

unable_to_determine_oauth_type

Could somebody please help me.

For the first time, I'm trying to use oauth to sign a simple Yahoo! web query via a GET method.

I'm getting the following error page:

"Please provide valid credentials. OAuth oauth_problem="unable_to_determine_oauth_type", realm="yahooapis.com""

I'm confident that my HMAC-SHA1 code is working a treat, the problem seems to be the construction of the Base String and exactly which bits of it need URL escaping.

My base string is (line breaks only for readability) :

GET&http://yboss.yahooapis.com/ysearch/web
&oauth_consumer_key=xyz...hidden for security reasons...abc--
%26oauth_signature_method%3DHMAC-SHA1
%26oauth_version%3D1.0
%26oauth_timestamp%3D1354716516
%26oauth_nonce%3D11928148
%26xoauth_lang_pref%3Den-us
%26format%3Dxml
%26style%3Draw
%26abstract%3Dlong
%26q%3Dapples

Notice how '&' is used twice before escaping comes into effect - just like Yahoo! shows on their page http://developer.yahoo.com/oauth/guide/oauth-signing.html

by
3 Replies
  • I've read http://tools.ietf.org/html/rfc5849#section-3.4.1 and http://tools.ietf.org/html/rfc5849#section-3.4.1.3 - so now my parameters are in alphabetic order, removed the parameters format, style and abstract just to keep things simple. Still no joy.

    It's like threading a needle in a blacked-out room whilst wearing boxing gloves tied behind your back!

    0
  • same here

    0
  • I am getting the same error too for no different reason. Because my other website works.

    0

Recent Posts

in OAuth General Discussion YDN SDKs