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

Struct instanceMiddleware

auth/instance_middleware.go:104–107  ·  view source on GitHub ↗

instanceMiddleware is the authentication middleware used with gorilla

Source from the content-addressed store, hash-verified

102// instanceMiddleware is the authentication middleware
103// used with gorilla
104type instanceMiddleware struct {
105 store dbCommon.Store
106 cfg config.JWTAuth
107}
108
109// NewjwtMiddleware returns a populated jwtMiddleware
110func NewInstanceMiddleware(store dbCommon.Store, cfg config.JWTAuth) (Middleware, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected