News for hackers. Stuff that matters.
Re:Runnable – Edit, run, and share code in your browser by tantalor on Friday March 08, 2013 @11:49AM (#5344365)
In some of the examples that use OAuth, the tokens are things like GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET.

  var params = {
  	code: code,
  	client_id: 'GOOGLE_CLIENT_ID',
  	client_secret: 'GOOGLE_CLIENT_SECRET',
  	redirect_uri: callbackURL,
  	grant_type: 'authorization_code'
  };
Are these replaced somehow with real values? Where does that happen?
Re:Runnable – Edit, run, and share code in your browser by enos_feedler on Friday March 08, 2013 @12:00PM (#5344441)
They are replaced with real values on a proxy server, outside of the node.js process.
Re:Runnable – Edit, run, and share code in your browser by tantalor on Friday March 08, 2013 @01:01PM (#5344781)
Thought so! As I was walking to work I realized this was the easiest way to protect the integrity of the tokens.