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