droplet-oauth

command module
v0.0.0-...-44f8dcd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2022 License: MIT Imports: 8 Imported by: 0

README

droplet-oauth

A simple example of using Go & DigitalOcean API via OAuth to list your droplets.

Screenshot

Usage

The application uses DigitalOcean OAuth API to request an access token used to list droplets, so you need to register an OAuth application via the DigitalOcean control panel. Once you have created one, export its details and a random session key as environment variables (or alternatively use an .env file):

CLIENT_SECRET=client-secret-here
CLIENT_ID=client-id-here
SESSION_KEY=crypto-random-string-here
REDIRECT_URL=https://droplet.yourdomain.dev/redirect

Finally, start the stack:

docker compose up -d

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL