0

Get request_token error

i am trying ot connect with yahoo oauth.

I can get request_token when oauth_callback=oob
My request parameters like so.
CODEBOX
oauth_callback=oob
oauth_consumer_key=dj0yJmk9RzYwV0h2Sm5teENFJmQ9WVdrOVEweGFUMjh5TkhVbWNHbzlNVFV6T
lRRM05UUXlNQS0tJnM9Y29uc3VtZXJzZWNyZXQmeD1iNg--
oauth_nonce=8527756
oauth_signature_method=HMAC-SHA1
oauth_timestamp=1265441153
oauth_version=1.0
xoauth_lang_pref=ZH-TW


Then i get the signature base string
CODEBOX
GET&https%3A%2F%2Fapi.login.yahoo.com%2Foauth%2Fv2%2Fget_request_token&oauth_callback%3Doob%26oauth_consumer_key%3Ddj0yJmk9RzYwV0h2Sm5teENFJmQ9WVdrOVEweGFUMjh5TkhVbWNHbzlNVFV6TlRRM05UUXlNQS0tJn
M9Y29uc3VtZXJzZWNyZXQmeD1iNg--%26oauth_nonce%3D8527756%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1265441153%26oauth_version%3D1.0%26xoauth_lang_pref%3DZH-TW


But when i specify the callback url, i get error 401
My request parameters like so.
CODEBOX
oauth_callback=http://a.b.c/test/TestYahoo.aspx
oauth_consumer_key=dj0yJmk9RzYwV0h2Sm5teENFJmQ9WVdrOVEweGFUMjh5TkhVbWNHbzlNVFV6T
lRRM05UUXlNQS0tJnM9Y29uc3VtZXJzZWNyZXQmeD1iNg--
oauth_nonce=1113165
oauth_signature_method=HMAC-SHA1
oauth_timestamp=1265441423
oauth_version=1.0
xoauth_lang_pref=ZH-TW


Then i get the signature base string
CODEBOX
GET&https%3A%2F%2Fapi.login.yahoo.com%2Foauth%2Fv2%2Fget_request_token&oauth_callback%3Dhttp%3A%2F%2Fa.b.c%2Ftest%2FTestYahoo.aspx%26oauth_consumer_key%3Ddj0yJmk9RzYwV0h2Sm5teENFJmQ9WVdrOVEweGFUMjh5TkhVbWNHbzlNVFV6TlRRM05UUXlNQS0tJn
M9Y29uc3VtZXJzZWNyZXQmeD1iNg--%26oauth_nonce%3D1113165%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1265441423%26oauth_version%3D1.0%26xoauth_lang_pref%3DZH-TW


I think the signature base string error
So what am I doing wrong?

by
0 Replies

Recent Posts

in OAuth General Discussion YDN SDKs