Skip to content

Proxy requests to github for an oauth token to preserve client_secret for client side apps.

License

Notifications You must be signed in to change notification settings

goodybag/github-oauth-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub OAuth Proxy

proxy github oauth token requests to preserve client_secret for client-side apps, such as browser extensions and static pages.

Configuration

Create a config.json file in the same directory as server.js which looks like this:

{
  "client_id":"[your github application client id]",
  "client_secret":"[your github application client secret]"
}

Use

npm start

Then make an application/json POST request to the server containing the temporary code github gave you:

{
  "code":"[your code]"
}

About

Proxy requests to github for an oauth token to preserve client_secret for client side apps.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published