Getting XAuth to work with Node.JS & OAuth

903 Views Asked by At

I'm building my first node.js app, and trying to integrate it with the Instapaper API. Instapaper only uses XAuth, and I'm a little confused how it works.

Should I use the node-oauth module and try to customize it for xauth? Or should I roll my own xauth? Or something else, maybe?

2

There are 2 best solutions below

1
Chance On BEST ANSWER

I'd checkout something like EveryAuth, see how they are handling the various options out there, forking it, and then contributing back with a new implementation.

Good luck man.

0
Derek Reynolds On

Here is how to get it working with the oauth module.

https://stackoverflow.com/a/9645033/186101

You'd still need to handle storing the tokens for your users, but that answer should get you u and running for testing the API in node.