MCPcopy
hub / github.com/perkeep/perkeep / DevAuth

Struct DevAuth

pkg/auth/auth.go:297–301  ·  view source on GitHub ↗

DevAuth is used for development. It has one password and one vivify password, but also accepts all passwords from localhost. Usernames are ignored.

Source from the content-addressed store, hash-verified

295// DevAuth is used for development. It has one password and one vivify password, but
296// also accepts all passwords from localhost. Usernames are ignored.
297type DevAuth struct {
298 Password string
299 // Password for the vivify mode, automatically set to "vivi" + Password
300 VivifyPass *string
301}
302
303func (da *DevAuth) AllowedAccess(req *http.Request) Operation {
304 _, pass, err := httputil.BasicAuth(req)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected