Hey all, I'm looking for some guidance. I have a server side JS application in which I'm trying to use the oauth JS implementation that John Kristian wrote.
I'm using http://term.ie/oauth/example/ as a test service provider. With the following code, I'm able to generate a signed URL that results in a successful request. However, when the same code is used on the server side, the generated URL results in an failed request with a message stating that the signature is invalid. I'm 99% positive that sha1.js is the culprit here. I've tried tweaking the configurable variables at the top of the file, but I haven't been able to get anything to work. Has anyone been successful in getting oAuth.js to work on the server side? Any advice? Thanks! <script src="javascripts/oauth.js"></script> <script src="javascripts/sha1.js"></script> <script> var accessor = { consumerKey: 'key', consumerSecret: 'secret' } var message = { action: 'http://term.ie/oauth/example/request_token.php', parameters: { } } OAuth.completeRequest(message, accessor); var signedUrl = OAuth.addToURL(message.action, message.parameters); document.write('<b>client:</b> '+signedUrl); </script> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "OAuth" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/oauth?hl=en -~----------~----~----~----~------~----~------~--~---
