middleware

package
v0.0.0-...-21824ef Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JwtAuthentication

func JwtAuthentication(next http.Handler) http.HandlerFunc

JwtAuthentication middleware for authorizing endpoints

Types

type JwtContextKey

type JwtContextKey string

type Token

type Token struct {
	Email string `json:"email"`
	OrgID uint   `json:"org_id"`
	jwt.StandardClaims
}

Jump to

Keyboard shortcuts

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