MCPcopy Create free account
hub / github.com/pydio/cells / NewBasicAuthenticator

Function NewBasicAuthenticator

common/auth/basic.go:30–37  ·  view source on GitHub ↗
(realm string, ttl time.Duration)

Source from the content-addressed store, hash-verified

28)
29
30func NewBasicAuthenticator(realm string, ttl time.Duration) *BasicAuthenticator {
31 ba := &BasicAuthenticator{
32 Realm: realm,
33 TTL: ttl,
34 }
35 ba.cache = make(map[string]*validBasicUser)
36 return ba
37}
38
39type validBasicUser struct {
40 Hash string

Callers 1

newHandlerFunction · 0.92

Calls 1

makeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…