MCPcopy
hub / github.com/marmotedu/iam / BasicStrategy

Struct BasicStrategy

internal/pkg/middleware/auth/basic.go:20–22  ·  view source on GitHub ↗

BasicStrategy defines Basic authentication strategy.

Source from the content-addressed store, hash-verified

18
19// BasicStrategy defines Basic authentication strategy.
20type BasicStrategy struct {
21 compare func(username string, password string) bool
22}
23
24var _ middleware.AuthStrategy = &BasicStrategy{}
25

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected