MCPcopy
hub / github.com/openfaas/faas / BasicAuthInjector

Struct BasicAuthInjector

gateway/pkg/middleware/basic_auth_injector.go:14–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12)
13
14type BasicAuthInjector struct {
15 Credentials *auth.BasicAuthCredentials
16}
17
18func (b BasicAuthInjector) Inject(r *http.Request) {
19 if r != nil && b.Credentials != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected