MCPcopy Create free account
hub / github.com/corestoreio/pkg / WithSimpleBasicAuth

Function WithSimpleBasicAuth

net/auth/options.go:206–222  ·  view source on GitHub ↗

WithSimpleBasicAuth sets a single username/password for a scope. Username and password must be provided as "plain text" arguments. This basic auth handler calls the next authentication provider if the authentication fails. Username and password will be compared in constant time.

(username, password, realm string, scopeIDs ...scope.TypeID)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 5

basicAuthValidatorFunction · 0.85
basicAuthFunction · 0.85
basicAuthHandlerFunction · 0.85
findScopedConfigMethod · 0.45
updateScopedConfigMethod · 0.45

Tested by

no test coverage detected