Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I'm not clear on what you mean by wanting to find a node module (all of which are essentially 3rd party API's) that provides OAuth2 client capability that will work against facebook and twitter without an extra server call.</p> <p>However that being said, you might look at these:</p> <ul> <li><a href="https://github.com/ciaranj/node-oauth" rel="nofollow">https://github.com/ciaranj/node-oauth</a></li> <li><a href="https://github.com/lexer/node-oauth2" rel="nofollow">https://github.com/lexer/node-oauth2</a></li> <li><a href="https://github.com/coolaj86/node-oauth2-examples" rel="nofollow">https://github.com/coolaj86/node-oauth2-examples</a></li> <li><a href="https://github.com/AF83/oauth2_client_node" rel="nofollow">https://github.com/AF83/oauth2_client_node</a></li> </ul> <p>And since Node.js is javascript, you can wrap up regular javascript written for client-side browsers provided you simulate the necessary browser environment elements expected by the client-side javascript.</p> <p>Your question made me think it might be useful to encapsulate the OAuth library provided here: <a href="https://github.com/andreassolberg/jso" rel="nofollow">https://github.com/andreassolberg/jso</a>, and roll it up into a Node module such that you could have a client that behaves like a browser against an OAuth2 provider but from within Node.</p> <p>So here are the beginnings of that project:</p> <p>Here it is on github (<a href="https://github.com/hoonto/node-jso" rel="nofollow">https://github.com/hoonto/node-jso</a>) or</p> <pre><code>npm instal node-jso </code></pre> <p>It won't likely work yet as I need to patch up the way it is doing local storage and xhr, but that's pretty trivial I think to fix.</p> <p>I am providing some callback functions, so you can use it like so:</p> <pre><code>var jso = require("node-jso")('http://www.google.com'); jso.onlocation = function(location){ //Handle location changes }; jso.onhash = function(hash){ //Handle hash changes }; jso.onhref = function(href){ //Handle href changes }; jso.jso_configure({ "facebook": { client_id: "xxxxxxxxxx", redirect_uri: "http://localhost/~andreas/jso/", authorization: "https://www.facebook.com/dialog/oauth", presenttoken: "qs" } }); </code></pre> <p>If you'd like to help out feel free to submit pull requests!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload