MCPcopy Index your code
hub / github.com/perkeep/perkeep / NewBasicAuth

Function NewBasicAuth

pkg/auth/auth.go:158–163  ·  view source on GitHub ↗

NewBasicAuth returns a UserPass Authmode, adequate to support HTTP basic authentication.

(username, password string)

Source from the content-addressed store, hash-verified

156// NewBasicAuth returns a UserPass Authmode, adequate to support HTTP
157// basic authentication.
158func NewBasicAuth(username, password string) AuthMode {
159 return &UserPass{
160 Username: username,
161 Password: password,
162 }
163}
164
165// NewTokenAuth returns an Authmode similar to HTTP Basic Auth, which is only
166// relying on token instead of a username and password.

Callers 5

basicAuthFunction · 0.92
NewHandlerFunction · 0.92
mainFunction · 0.92
newBasicAuthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected