https://github.com/andrewsomething/digitalocean-oauth-example
https://glitch.com/edit/#!/digitalocean-oauth-example
https://github.com/andrewsomething/digitalocean-oauth-example
Last synced: 5 months ago
JSON representation
https://glitch.com/edit/#!/digitalocean-oauth-example
- Host: GitHub
- URL: https://github.com/andrewsomething/digitalocean-oauth-example
- Owner: andrewsomething
- Created: 2021-12-13T22:20:39.000Z (over 4 years ago)
- Default Branch: glitch
- Last Pushed: 2021-12-13T22:21:05.000Z (over 4 years ago)
- Last Synced: 2025-07-04T01:37:45.302Z (about 1 year ago)
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
DigitalOcean Passport Example
========================
An example app implementing DigitalOcean OAuth with Passport.js.
## Getting Started
To bring your own remix to life, you'll need to visit DigitalOcean's [app registration](https://cloud.digitalocean.com/settings/api/applications) page to create a new oauth app, and use `https://{your-remix}.glitch.me/login/digitalocean/return` as the Authorization callback URL. Once you've done this, place the resulting ClientID and ClientSecret into the `.env` file.
## View the Code
On the back-end,
- the app starts at `server.js`
- frameworks and packages are in `package.json`
- app secrets are safely stored in `.env`
On the front-end,
- edit `index.html` and `success.html`
## Credits
- Built with [passport-digitalocean](https://github.com/harbur/passport-digitalocean)
- Remixed from the [GitHub Passport Example](https://glitch.com/~github-oauth)
## Docs
- Find out more about the DigitalOcean OAuth API in the [DigitalOcean developer documentation](https://developers.digitalocean.com/documentation/oauth/).
- Learn more about OAuth on the [DigitalOcean community site](https://www.digitalocean.com/community/tutorials/an-introduction-to-oauth-2).