Skip to content

simov/oauth-like-a-boss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OAuth Like a BOSS

Once And For All

How

  1. Create OAuth App on GitHub, and set its Authorization callback URL to http://localhost:3000/connect/github/callback
  2. Replace all instances of APP_ID and APP_SECRET in grant/config.json and in server/app.go with your actual OAuth App credentials
  3. Load the chrome folder as Unpacked Extension in Chrome
  4. Execute cd grant/; npm i; node app.js
  5. Execute go run server/app.go

Login

Chapter Login
The Usual Stuff Navigate to http://localhost:3000/login, pick a scope and click the Login button
Login From Another Host Navigate to https://simov.github.io/oauth-like-a-boss/ and click the Login button
Login From Browser Extension Click the extension button to the right of the browser's address bar
Login From Another Language Navigate to http://localhost:4000/login

In all cases take a look at the console to see the access token