Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/razonyang/go-auth0-web-app
Auth0 Integration Samples for Go Web Applications
https://github.com/razonyang/go-auth0-web-app
auth0 go go-auth0
Last synced: 14 days ago
JSON representation
Auth0 Integration Samples for Go Web Applications
- Host: GitHub
- URL: https://github.com/razonyang/go-auth0-web-app
- Owner: razonyang
- License: mit
- Created: 2020-07-08T08:41:14.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-11-25T14:38:45.000Z (almost 4 years ago)
- Last Synced: 2024-04-13T22:26:36.647Z (7 months ago)
- Topics: auth0, go, go-auth0
- Language: Go
- Homepage: https://go-auth0.razonyang.com
- Size: 78.1 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go Auth0 Web Application
Auth0 Integration Samples for Go Web Applications.
## Configuration
The first thing you need to do is create an [Auth0](http://www.auth0.com/) application, and then modify the relevant configuration.
| Env | Description | Default Value |
|---|---|---|
| `APP_MODE` | prod or dev | `prod` |
| `HTTP_ADDR` | HTTP address | `:8080` |
| `AUTH0_CLIENT_ID` | Auth0 client ID | - |
| `AUTH0_DOMAIN` | Auth0 domain | - |
| `AUTH0_CLIENT_SECRET` | Auth0 client secret | - |
| `AUTH0_CALLBACK_URL` | Auth0 callback URL | `http://localhost:8080/callback` |> Don't forget to modify the corresponding callback URL for Auth0 application.
Checkout [.env.example](.env.example) for details.
## Usage
```shell
$ go get -u pkg.razonyang.com/go-auth0-web-app
$ touch .env
$ go-auth0-web-app serve
```## Structure
```text
/cmd commands
/internal
/core core components
/handlers HTTP handler
/middleware middleware
/public static resources
/views templates
```