MCPcopy
hub / github.com/gliderlabs/ssh / PasswordAuth

Function PasswordAuth

options.go:10–15  ·  view source on GitHub ↗

PasswordAuth returns a functional option that sets PasswordHandler on the server.

(fn PasswordHandler)

Source from the content-addressed store, hash-verified

8
9// PasswordAuth returns a functional option that sets PasswordHandler on the server.
10func PasswordAuth(fn PasswordHandler) Option {
11 return func(srv *Server) error {
12 srv.PasswordHandler = fn
13 return nil
14 }
15}
16
17// PublicKeyAuth returns a functional option that sets PublicKeyHandler on the server.
18func PublicKeyAuth(fn PublicKeyHandler) Option {

Callers 6

ExamplePasswordAuthFunction · 0.92
TestSetPermissionsFunction · 0.85
TestSetValueFunction · 0.85
TestPasswordAuthFunction · 0.85
TestPasswordAuthBadPassFunction · 0.85
TestConnWrappingFunction · 0.85

Calls

no outgoing calls

Tested by 6

ExamplePasswordAuthFunction · 0.74
TestSetPermissionsFunction · 0.68
TestSetValueFunction · 0.68
TestPasswordAuthFunction · 0.68
TestPasswordAuthBadPassFunction · 0.68
TestConnWrappingFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…