MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / mapAuthenticator

Struct mapAuthenticator

pkg/webmiddleware/basic_auth.go:32–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32type mapAuthenticator struct {
33 usernamesPasswords map[string]string
34}
35
36func (a *mapAuthenticator) Authenticate(username, password string) (bool, error) {
37 validPassword, ok := a.usernamesPasswords[username]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected