MCPcopy
hub / github.com/fabiolb/fabio / AuthScheme

Interface AuthScheme

auth/auth.go:10–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8)
9
10type AuthScheme interface {
11 Authorized(request *http.Request, response http.ResponseWriter) bool
12}
13
14func LoadAuthSchemes(cfg map[string]config.AuthScheme) (map[string]AuthScheme, error) {
15 auths := map[string]AuthScheme{}

Implementers 3

basicauth/basic.go
Targetroute/target.go
testAuthroute/auth_test.go

Calls

no outgoing calls

Tested by

no test coverage detected