Once And For All
- Create OAuth App on GitHub, and set its Authorization callback URL to
http://localhost:3000/connect/github/callback
- Replace all instances of
APP_ID
andAPP_SECRET
ingrant/config.json
and inserver/app.go
with your actual OAuth App credentials - Load the
chrome
folder as Unpacked Extension in Chrome - Execute
cd grant/; npm i; node app.js
- Execute
go run server/app.go
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