middleware

package
v0.0.0-...-2cd49de Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AUDIENCE = os.Getenv("AUTH0_API_IDENTIFIER")
	DOMAIN   = os.Getenv("AUTH0_DOMAIN")
)

Functions

func AuthRequired

func AuthRequired() gin.HandlerFunc

Function AuthRequired returns a gin middleware handler for auth0 authentication. Auth0 audience and domain values must be set in the environment. HTTP status 401 is returned if the request is not authorised.

Types

This section is empty.

Jump to

Keyboard shortcuts

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