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.
Click to show internal directories.
Click to hide internal directories.