middleware

package
v0.0.0-...-a4c5897 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2021 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cors

func Cors(next http.Handler) http.Handler

func GetRequireAuthMiddleware

func GetRequireAuthMiddleware(jwtSignatory *jwt.JwtSignatory) func(http.HandlerFunc) http.HandlerFunc

GetRequireAuthMiddleware returns the middleware function for Authenticate. The reason why we have split this out is because there is an external dependency (jwt.JwtSignatory) that we don't want to have to pass in every time we use this middleware.

Types

This section is empty.

Jump to

Keyboard shortcuts

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