0

get_request_token works PLAINTEXT, but returns "Unauthorized" using HMAC - C#, .NET

Hi.

I'm using C# to connect to OAuth using oAuthBase to generate HMAC hashes base strings, and signatures.

If I go PLAINTEXT, I recieve request token and access token fine, but if I try HMAC-SHA1, I cant start. It tells me "Forbidden / Unauthorized" When I submit the following:

https://api.login.yahoo.com/oauth/v2/get_request_token?
oauth_callback=oob&
oauth_consumer_key=dj0yJmk9YTBvWFZyc1FmNmF1JmQ9WVdrOWRtSkNZVGhvTm1VbWNHbzlOREV4T0RrMU5UWXkmcz1jb25zdW1lcnNlY3JldCZ4PTcx&
oauth_nonce=655035032&
oauth_signature=1410a7dd2043cbec1a99cf3944d99c0ba4d21ea2&&
oauth_signature_method=HMAC-SHA1&
oauth_timestamp=1313515629


I have tried appending just one '&' to the oauth_signature, but no help.

If I replace oauth_signature and oauth_signature_method with the following (PLAINTEXT version) it works:

https://api.login.yahoo.com/oauth/v2/get_request_token?
oauth_callback=oob&
oauth_consumer_key=dj0yJmk9YTBvWFZyc1FmNmF1JmQ9WVdrOWRtSkNZVGhvTm1VbWNHbzlOREV4T0RrMU5UWXkmcz1jb25zdW1lcnNlY3JldCZ4PTcx&
oauth_nonce=256160138&
oauth_signature=1410a7dd2043cbec1a99cf3944d99c0ba4d21ea2%26&
oauth_signature_method=PLAINTEXT&
oauth_timestamp=1313516104


Thanks in advance for your help.-Ray.

by
1 Reply

Recent Posts

in OAuth General Discussion YDN SDKs