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

Function AuthUsers

pkg/webmiddleware/basic_auth.go:45–47  ·  view source on GitHub ↗

AuthUsers authenticates users with the given map[username]password.

(usernamesPasswords map[string]string)

Source from the content-addressed store, hash-verified

43
44// AuthUsers authenticates users with the given map[username]password.
45func AuthUsers(usernamesPasswords map[string]string) Authenticator {
46 return &mapAuthenticator{usernamesPasswords}
47}
48
49// AuthUser is the same as AuthUsers, but for a single user.
50func AuthUser(username, password string) Authenticator {

Callers 1

AuthUserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected