MCPcopy Create free account
hub / github.com/cloudbase/garm / jwtMiddleware

Struct jwtMiddleware

auth/jwt.go:47–50  ·  view source on GitHub ↗

jwtMiddleware is the authentication middleware used with gorilla

Source from the content-addressed store, hash-verified

45// jwtMiddleware is the authentication middleware
46// used with gorilla
47type jwtMiddleware struct {
48 store dbCommon.Store
49 cfg config.JWTAuth
50}
51
52// NewjwtMiddleware returns a populated jwtMiddleware
53func NewjwtMiddleware(store dbCommon.Store, cfg config.JWTAuth) (Middleware, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected