0

Oauth "signature_valid": Can't get oauth to work withYahoo???

I am making a request directly to yahoo like this:

https://api.login.yahoo.com/oauth/v2/get_re...nce-calculation
&oauth_callback=http://localhost:3000/register
&oauth_signature_method=HMAC-SHA1
&oauth_timestamp=1274941494
&oauth_consumer_key=my-extra-long-consumer-key-
&oauth_version=1.0
&oauth_signature=calculated-signature%3D

But it always returns "signature_invalid".

I have tried putting this into the header, into a query string like above. I have tried changing my application key and secret. I have tried https and http. Nothing works.

Does this not work at all?

I'm trying to use this with ruby with no luck. I've searched this and it seems there's a ton of people with this same problem.

Any ideas?

Lance

by
1 Reply
  • In case anyone stumbles upon this, here's what was going on.

    In ruby, using the oauth gem, I was passing a hash of the same query params to the "get_request_token" method:

    consumer.get_request_token(:oauth_callback => callback_url, {hash of => other stuff})

    That adds a body to the request or something, so just leave it out:

    consumer.get_request_token(:oauth_callback => callback_url)

    Everything works! Wooo
    0

Recent Posts

in OAuth General Discussion YDN SDKs