middleware

package
v0.0.0-...-3d95c69 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const VerifyHandlerKey = "INNER_FUNC_AUTH_REQUIRED"

VerifyHandlerKey is key that identify inner handler.

Variables

View Source
var (
	// ErrTokenExpired is occurred when token expired
	ErrTokenExpired = errors.New("Token expired")

	// ErrUnauthorizedToken is occurred when token is invalid
	ErrUnauthorizedToken = errors.New("Token is unauthorized")
)

Functions

func AddAuthHandler

func AddAuthHandler(conf config.JwtConfig) gin.HandlerFunc

AddAuthHandler is

func AuthRequired

func AuthRequired() gin.HandlerFunc

AuthRequired Middleware

Types

This section is empty.

Jump to

Keyboard shortcuts

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