MCPcopy
hub / github.com/filebrowser/filebrowser / ProxyAuth

Struct ProxyAuth

auth/proxy.go:16–18  ·  view source on GitHub ↗

ProxyAuth is a proxy implementation of an auther.

Source from the content-addressed store, hash-verified

14
15// ProxyAuth is a proxy implementation of an auther.
16type ProxyAuth struct {
17 Header string `json:"header"`
18}
19
20// Auth authenticates the user via an HTTP header.
21func (a ProxyAuth) Auth(r *http.Request, usr users.Store, setting *settings.Settings, srv *settings.Server) (*users.User, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected