https://github.com/simov/oauth-like-a-boss
Once And For All
https://github.com/simov/oauth-like-a-boss
Last synced: about 1 year ago
JSON representation
Once And For All
- Host: GitHub
- URL: https://github.com/simov/oauth-like-a-boss
- Owner: simov
- License: mit
- Created: 2019-01-06T12:56:20.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-04-19T06:32:50.000Z (over 6 years ago)
- Last Synced: 2025-04-10T11:04:26.328Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 11
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OAuth Like a BOSS
> _Once And For All_
### [:rocket: :sparkles: D E V . T O :sparkles: :rocket:][dev.to]
## 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_
[OAuth App]: https://github.com/settings/applications/new
[dev.to]: https://dev.to/simov/oauth-like-a-boss-2m3b