MCPcopy
hub / github.com/filebrowser/filebrowser / HookAuth

Struct HookAuth

auth/hook.go:29–36  ·  view source on GitHub ↗

HookAuth is a hook implementation of an Auther.

Source from the content-addressed store, hash-verified

27
28// HookAuth is a hook implementation of an Auther.
29type 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.
39func (a *HookAuth) Auth(r *http.Request, usr users.Store, stg *settings.Settings, srv *settings.Server) (*users.User, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected