MCPcopy
hub / github.com/cloudflare/cloudflared / UserPassAuthAuthenticator

Struct UserPassAuthAuthenticator

socks/authenticator.go:28–30  ·  view source on GitHub ↗

UserPassAuthAuthenticator is used to handle the user/password mode

Source from the content-addressed store, hash-verified

26
27// UserPassAuthAuthenticator is used to handle the user/password mode
28type UserPassAuthAuthenticator struct {
29 IsValid func(string, string) bool
30}
31
32// NewUserPassAuthAuthenticator creates a new username/password validator Authenticator
33func NewUserPassAuthAuthenticator(isValid func(string, string) bool) Authenticator {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected