Monday 28 March 2016

How do I use OAuth with NodeJS and Github API

I failed miserably today by attempting to follow along with this tutorial link and got stuck at Providing a callback since I had no clue how to post the session code in exchange for the access token to github. I tried the modules http, https, request and failed. So I deleted the code and tried using passport-github but nothing worked. I think it requires a database with users set up or something. And I don't want to build a login system but instead simply to output users Github data on a webpage. Also I was doing this on localhost with a self signed certificate if that matters.

Submitted March 29, 2016 at 02:16AM by xDinomode

No comments:

Post a Comment