Skip to content

chrisfromsoup/node-oauth-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js OAuth example

Read the blog post here (from original author - this is not me)

This is an example node application that implements Githubs OAuth2 API.

In order to run the application:

  1. Register your new application on Github : https://github.com/settings/applications/new. In the "callback URL" field, enter "http://localhost:8080/oauth/redirect". Once you register, you will get a client ID and client secret.
  2. Replace the values of the clientID and clientSecret variables in the index.js file
  3. Replace the clientID URL param in public/index.html and comment/uncomment as appropriate.
  4. Install dependencies by executing: npm install or yarn.
  5. Start the server by executing node index.js
  6. Navigate to http://localhost:8080 on your browser.

Releases

No releases published

Packages

No packages published

Languages

  • HTML 52.7%
  • JavaScript 47.3%