0

PART signature invalid error


After weeks of searching and trying different things I have no way to go but to ask for help here.  Writing a Yahoo Contact Import app that will let users enter their login and be able to see all their friends so they can be invited to the web platform.

Step 1: Get Request Token
https://login.yahoo.com/WSLogin/V1/get_auth_token?passwd=PRIVATE&
oauth_consumer_key=dj0yJmk9d3RUOU1ZNGhUbU4zJmQ9WVdrOVdqTk5hRU5tTjJjbWNHbzlNVGN5TmpNMU56QTJNZy0tJnM9Y29uc
3VtZXJzZWNyZXQmeD1mYQ--&login=PRIVATE

Above gets the Request Token just fine and I move on to the next step

Step 2: Exchange PART for OAuth Credentials API Address

https://api.login.yahoo.com/oauth/v2/get_token?oauth_signature=ab90c1817d80bc901d3187266fd5d509
40f4eff4%26&oauth_timestamp=1322814815&oauth_nonce=9StnfsF3USn7CVlnymT8uPp384HaqeHB&
oauth_consumer_key=dj0yJmk9d3RUOU1ZNGhUbU4zJmQ9WVdrOVdqTk5hRU5tTjJjbWNHbzlNVGN5TmpNMU56QTJNZy
0tJnM9Y29uc3VtZXJzZWNyZXQmeD1mYQ--&oauth_token=UergRT9u3AZYDXgwsTAQJamdjCNdonZ5slBi1Yjeciv
FaYZT6.Gk3Zj1K_xgcTOTvSr.y8GwAZ3eGWmydI4.S5hOOXNv7BrXGgF83ixBRnVIMT8WkpA2QXZX77K.uJYQsCMUjcFKKI
FjfbkHIqPJ7S3DihXhF40Q_WXqB9jACqkKwMIGkVpTmtaGOCsSCWJOzGXpG_dtFO2GzYeZiuqzS3CouFlHLwtpp88-&
oauth_verifier=None&oauth_version=1.0&oauth_signature_method=PLAINTEXT

I get signature invalid in response (see below the response)

$VAR1 = bless( { '_protocol' => 'HTTP/1.1', '_content' => 'oauth_problem=signature_invalid', '_rc' => '401', '_headers' => bless( { 'connection' => 'close', 'client-response-num' => 1, 'date' => 'Fri, 02 Dec 2011 08:33:36 GMT', 'client-ssl-cert-issuer' => '/C=US/O=Equifax/OU=Equifax Secure Certificate Authority', 'client-ssl-cipher' => 'AES256-SHA', 'client-peer' => '98.139.139.164:443', 'p3p' => 'policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"', 'client-warning' => 'Unsupported authentication scheme \'oauth\'', 'client-date' => 'Fri, 02 Dec 2011 08:33:36 GMT', 'client-ssl-warning' => 'Peer certificate not verified', 'content-type' => 'application/x-www-form-urlencoded', 'client-ssl-cert-subject' => '/C=US/ST=California/L=Santa Clara/O=Yahoo! Inc./OU=Yahoo/CN=*.login.yahoo.com', 'www-authenticate' => 'OAuth oauth_problem=signature_invalid', 'client-transfer-encoding' => 'chunked' }, 'HTTP::Headers' ), '_msg' => 'Forbidden', '_request' => bless( { '_content' => '', '_uri' => bless( do{\(my $o = 'https://api.login.yahoo.com/oauth/v2/get_token?oauth_signature=ab90c1817d80bc901d3187266fd5d50940f4eff4%26&oauth_timestamp=1322814815&oauth_nonce=9StnfsF3USn7CVlnymT8uPp384HaqeHB&oauth_consumer_key=dj0yJmk9d3RUOU1ZNGhUbU4zJmQ9WVdrOVdqTk5hRU5tTjJjbWNHbzlNVGN5TmpNMU56QTJNZy0tJnM9Y29uc3VtZXJzZWNyZXQmeD1mYQ--&oauth_token=UergRT9u3AZYDXgwsTAQJamdjCNdonZ5slBi1YjecivFaYZT6.Gk3Zj1K_xgcTOTvSr.y8GwAZ3eGWmydI4.S5hOOXNv7BrXGgF83ixBRnVIMT8WkpA2QXZX77K.uJYQsCMUjcFKKIFjfbkHIqPJ7S3DihXhF40Q_WXqB9jACqkKwMIGkVpTmtaGOCsSCWJOzGXpG_dtFO2GzYeZiuqzS3CouFlHLwtpp88-&oauth_verifier=None&oauth_version=1.0&oauth_signature_method=PLAINTEXT')}, 'URI::https' ), '_headers' => bless( { 'user-agent' => 'libwww-perl/5.805', 'content-type' => 'application/x-www-form-urlencoded', 'content-length' => 0 }, 'HTTP::Headers' ), '_method' => 'POST' }, 'HTTP::Request' ) }, 'HTTP::Response' );

Can someone advise if I am missing something? I am simply doing following to send the query:

$res = $ua->request(POST $string); # string being the query specified above as is

Please help.

Mola

by
0 Replies

Recent Posts

in OAuth General Discussion YDN SDKs