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

Struct agentMiddleware

auth/agent_middleware.go:58–61  ·  view source on GitHub ↗

agentMiddleware is the authentication middleware used with gorilla

Source from the content-addressed store, hash-verified

56// agentMiddleware is the authentication middleware
57// used with gorilla
58type agentMiddleware struct {
59 store dbCommon.Store
60 cfg config.JWTAuth
61}
62
63// NewjwtMiddleware returns a populated jwtMiddleware
64func AgentMiddleware(store dbCommon.Store, cfg config.JWTAuth) (Middleware, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected