MCPcopy Create free account
hub / github.com/SenseUnit/dumbproxy / Auth

Interface Auth

auth/auth.go:14–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12)
13
14type Auth interface {
15 Validate(ctx context.Context, wr http.ResponseWriter, req *http.Request) (string, bool)
16 io.Closer
17}
18
19func NewAuth(paramstr string, logger *clog.CondLogger) (Auth, error) {
20 url, err := url.Parse(paramstr)

Callers 8

requireBasicAuthFunction · 0.65
TestNewResponseStaticFunction · 0.65
handleSuccessMethod · 0.65
handleRejectMethod · 0.65
handleRejectMethod · 0.65
ValidateMethod · 0.65
ServeHTTPMethod · 0.65
rejectMethod · 0.65

Implementers 9

RedisAuthauth/redis.go
BasicAuthauth/basic.go
TLSCookieAuthauth/tlscookie.go
StaticRejectAuthauth/rejectstatic.go
HMACAuthauth/hmac.go
RejectHTTPAuthauth/rejecthttp.go
CertAuthauth/cert.go
NoAuthauth/noauth.go
staticRejecthandler/direct_test.go

Calls

no outgoing calls

Tested by

no test coverage detected