Hi,

           I dunno how oauth in javascript works. I implemented oauth in
Java and I faced the same signature invalid issue. I broke my head for about
2 weeks before I found a solution. Anyways this was the problem. I was
running my app on a box which was sitting behind an apache webserver
machine. So when I send out requests for any end point, the opensocial
container used to sign the requests with my public IP address and while
verifying the response from my end, the IP with which I would be signing was
my local server's which was sitting behind my apache. Hence there was a
mismatch and it used to fire the signature invalid exception everytime.
After finding this out, I fixed the issue by replacing the IP in my oauth
message with that of my public IP before I do a validation. Now it works
like a charm. Hope this helps :)

On Fri, Feb 12, 2010 at 1:32 PM, Test <test....@gmail.com> wrote:

> After referring so many threads from Google and Yahoo, I was not able
> to get an accurate/correct/exact answer/solution/fix for the
> signature_invalid problem which i am also facing.
>                               In those threads most of the samples
> for OAuth application were in JAVA,C#  and Perl languages.But I wanted
> it working in Javascript. Though I found the sample code from
> http://oauth.googlecode.com/svn/code/javascript/ - still it was not
> that much clear to get the contacts of a user from Yahoo Social API. I
> followed the exact steps of OAuth too. After struggling for one week I
> am posting this thread out of frustration.I just needed a full fledged
> working sample or example of Getting contacts from Yahoo using OAuth
> in JS.Wherever I searched the Signature and Token Issues for Yahoo
> OAUTH, I was not able to get a complete answer.
>
> Even I tried the simple CURL command to GET/POST a request for Yahoo
> Social API. There too I was getting the same error,
>
> When I tried with "https://social.yahooapis.com/v1/user/"+guid+"/
> contacts"; I am getting Connection timed Out or Connection to the host
> lost.
> I am not sure why Yahoo Social API is not returning the exact error
> response as I got signature_invalid and token_rejected errors for mere
> API calls.
>
> Is there any solutions or suggestions atleast for gettting it work??
>
> Any help would be greatly appreciated.
>
> Thanks
> Test SCF
>
> --
> You received this message because you are subscribed to the Google Groups
> "OAuth" group.
> To post to this group, send email to oa...@googlegroups.com.
> To unsubscribe from this group, send email to
> oauth+unsubscr...@googlegroups.com <oauth%2bunsubscr...@googlegroups.com>.
> For more options, visit this group at
> http://groups.google.com/group/oauth?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"OAuth" group.
To post to this group, send email to oa...@googlegroups.com.
To unsubscribe from this group, send email to 
oauth+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/oauth?hl=en.

Reply via email to