Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //ErrForbidden - requester does not have sufficient permission to perform request - // non of the rules have not returned non nil response ErrForbidden = errors.New("forbidden") //ErrNotAllowed - token is malformed, expired or not present ErrNotAllowed = errors.New("not allowed") )
Functions ¶
func GenerateJWT ¶
func RequestMiddleware ¶
func RequestMiddleware(log *logan.Entry, bouncer Bouncer, next http.HandlerFunc) http.HandlerFunc
Types ¶
Click to show internal directories.
Click to hide internal directories.