Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/heroku-examples/heroku-oauth-example-go
Example Go app OAuth'ing against Heroku
https://github.com/heroku-examples/heroku-oauth-example-go
Last synced: 2 days ago
JSON representation
Example Go app OAuth'ing against Heroku
- Host: GitHub
- URL: https://github.com/heroku-examples/heroku-oauth-example-go
- Owner: heroku-examples
- Created: 2012-12-22T20:03:53.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2017-08-01T13:54:52.000Z (over 7 years ago)
- Last Synced: 2024-11-12T09:49:02.358Z (3 months ago)
- Language: Go
- Size: 57.6 KB
- Stars: 15
- Watchers: 31
- Forks: 7
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Heroku OAuth Example: Go
Example Go application that uses the Heroku OAuth web flow for authentication.
The [OAuth developer documentation](https://devcenter.heroku.com/articles/oauth) has additional resources.
## Platform Installation
```
$ heroku create go-heroku-oauth-example-$USER
$ heroku labs:enable runtime-dyno-metadata
$ heroku plugins:install heroku-cli-oauth
$ heroku clients:create "Go OAuth Example ($USER)" https://go-heroku-oauth-example-$USER.herokuapp.com/auth/heroku/callback
$ heroku config:add HEROKU_OAUTH_ID= # set to `id` from command output above
$ heroku config:add HEROKU_OAUTH_SECRET= # set to `secret` from command output above
$ heroku config:add COOKIE_SECRET=`openssl rand -hex 32`
$ heroku config:add COOKIE_ENCRYPT=`openssl rand -hex 16`
$ git push heroku master
$ heroku open
```