authmw

package
v0.0.0-...-34fb709 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateJwt

func ValidateJwt(tokenString, key string) (jwt.MapClaims, error)

Types

type AuthMWHandler

type AuthMWHandler struct {
	// contains filtered or unexported fields
}

func NewAuthMWHandler

func NewAuthMWHandler(logger *zap.SugaredLogger, key string) *AuthMWHandler

func (*AuthMWHandler) AuthMW

func (h *AuthMWHandler) AuthMW(next http.Handler) http.Handler

func (*AuthMWHandler) RequireAuthTokenHandler

func (h *AuthMWHandler) RequireAuthTokenHandler(rw http.ResponseWriter, r *http.Request) (jwt.MapClaims, error)

type KeyJWTClaims

type KeyJWTClaims struct{}

type KeyUserId

type KeyUserId struct{}

Jump to

Keyboard shortcuts

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