Goodreads Developers discussion
examples / showcase
>
How to use OAuth in Javascript to develop a windows 7 gadget
date
newest »
newest »
I'm pretty sure OAuth isn't secure over front end javascript. I'd be willing to bet you're the only person trying to do this.
The only one doing this? Well, as the state of the GR API documentation is, well, sorry, pretty sad (I can't even find which version of OAuth is being used, apparently v1 when looking at some implementations)Node.js is serverside javascript and has OAuth packages, so yes this is possible. I'm currently in the process of finding out what's the best method of doing this.
If you did Oauth in front end only code, someone could steal your API key, and start making malicous requests on behalf of your app. Then we'd likely ban your API key. OAuth (v1 or v2) isn't build for a completely "open source" model.
Hmm that's true. But you are forgetting the mixed frontend / backend development platforms such as Electron and node-webkit. Could it be done in those? The backend code could still be publicly visible but It is for example possible to obfuscate (and I don't mean uglify or minify) code. Also, you could set up your own proxy on a server (key could not be stolen) that doesn't need Oauth?



Are there any examples to use OAuth in javascript to access Goodreads API?