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

Function AuthUser

pkg/webmiddleware/basic_auth.go:50–52  ·  view source on GitHub ↗

AuthUser is the same as AuthUsers, but for a single user.

(username, password string)

Source from the content-addressed store, hash-verified

48
49// AuthUser is the same as AuthUsers, but for a single user.
50func AuthUser(username, password string) Authenticator {
51 return AuthUsers(map[string]string{username: password})
52}
53
54var noopAuthenticator = &mapAuthenticator{}
55

Callers 2

initWebMethod · 0.92
TestBasicAuthFunction · 0.85

Calls 1

AuthUsersFunction · 0.85

Tested by 1

TestBasicAuthFunction · 0.68