middleware

package
v0.1.1-0...-b30295a Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrJWTMissing setter
	ErrJWTMissing = echo.NewHTTPError(http.StatusUnauthorized, "missing or malformed jwt")
	//ErrJWTInvalid setter
	ErrJWTInvalid = echo.NewHTTPError(http.StatusForbidden, "invalid or expired jwt")
)

Functions

func JWT

func JWT(key interface{}) echo.MiddlewareFunc

JWT func

func JWTWithConfig

func JWTWithConfig(config JWTConfig) echo.MiddlewareFunc

JWTWithConfig func

Types

type JWTConfig

type JWTConfig struct {
	Skipper    Skipper
	SigningKey interface{}
}

JWTConfig struct

type Skipper

type Skipper func(c echo.Context) bool

Skipper func

Jump to

Keyboard shortcuts

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