Unable to get request token using HMAC-SHA1

Sriram Viswanathan1 Jul 2010 2:17 AM
Hi,

I am unable to get request token using HMAC-SHA1

This is the call

https://api.login.yahoo.com/oauth/v2/get_request_token?
oauth_nonce=gettingToken
&oauth_timestamp=1277975227
&oauth_consumer_key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
&oauth_signature_method=HMAC-SHA1
&oauth_signature=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
&oauth_version=1.0
&oauth_callback=http://yahoo.com/

I am getting oauth_problem=signature_invalid.

I am using the Consumer key and Consumer secret for oauth_consumer_key and oauth_signature respectively.

Thanks in Advance
Sriram Viswanathan1 Jul 2010 9:03 AM
When I use oauth_type=plaintext, I get the token and all other details.

But the problem is for fetching the guid, if I send oauth_type=plaintext, I get an error which says, oauth_type rejected.
Sriram Viswanathan1 Jul 2010 6:54 PM
Correction, I was referring to oauth_signature_method, mistakenly wrote it as oauth_type.
omiga1 Jul 2010 11:03 PM
Hi Sriram,

Can you please provide the ckey and signature? Actually
there is no secrecy in the ckey because in the OAuth flow,
any user can see it in the request parameters.

Thanks,
Yu Wang
Yahoo! Membership Team
lm2 Feb 2012 7:24 PM
Hi Yu Wang<br>I`m getting the same problem in my BlackBerry &nbsp;5.0 application developing<br>I have got Access Token by use PlainText but when I send request to get user information by using&nbsp;<em style="font-weight:bold;font-style:normal;font-family:arial, sans-serif;line-height:14px;font-size:small;">HMAC</em><span style="color:#222222;font-family:arial, sans-serif;line-height:14px;font-size:small;">-</span><em style="font-weight:bold;font-style:normal;font-family:arial, sans-serif;line-height:14px;font-size:small;">SHA1</em><span style="color:#222222;font-family:arial, sans-serif;line-height:14px;font-size:small;">&nbsp;·&nbsp;follow Yahoo oauth&nbsp;</span>, I get&nbsp;<span style="color:#008000;font-family:monospace;line-height:normal;white-space:pre;font-size:medium;">OAuth oauth_problem=&quot;signature_invalid&quot;, realm=&quot;yahooapis.com respond. </span>I use Oauth library for J2ME and whenever I use&nbsp;<em style="font-size:small;font-weight:bold;font-style:normal;font-family:arial, sans-serif;line-height:14px;">HMAC</em><span style="font-size:small;color:#222222;font-family:arial, sans-serif;line-height:14px;">-</span><em style="font-size:small;font-weight:bold;font-style:normal;font-family:arial, sans-serif;line-height:14px;">SHA1</em>&nbsp;method to get access token, responds are unsuccessful.<br>&nbsp;Please help me .<br>&nbsp;Thank<span style="color:#008000;font-family:monospace;line-height:normal;white-space:pre;font-size:medium;"><br></span>
Stéphane Popoff25 Feb 2012 1:12 AM
Hi,<br><br>I there a solution to this problem ?<br><br>Stéphane