HookAuth is a hook implementation of an Auther.
| 27 | |
| 28 | // HookAuth is a hook implementation of an Auther. |
| 29 | type HookAuth struct { |
| 30 | Users users.Store `json:"-"` |
| 31 | Settings *settings.Settings `json:"-"` |
| 32 | Server *settings.Server `json:"-"` |
| 33 | Cred hookCred `json:"-"` |
| 34 | Fields hookFields `json:"-"` |
| 35 | Command string `json:"command"` |
| 36 | } |
| 37 | |
| 38 | // Auth authenticates the user via a json in content body. |
| 39 | func (a *HookAuth) Auth(r *http.Request, usr users.Store, stg *settings.Settings, srv *settings.Server) (*users.User, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected