go-auth0-web-app

command module
v0.0.0-...-a06835e Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: MIT Imports: 1 Imported by: 0

README

Go Auth0 Web Application

Auth0 Integration Samples for Go Web Applications.

Configuration

The first thing you need to do is create an Auth0 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 for details.

Usage

$ go get -u pkg.razonyang.com/go-auth0-web-app
$ touch .env
$ go-auth0-web-app serve

Structure

/cmd                commands
/internal
    /core           core components
    /handlers       HTTP handler
    /middleware     middleware
/public             static resources
/views              templates

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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