MCPcopy Index your code
hub / github.com/ContainerSSH/ContainerSSH / Validate

Method Validate

config/auth.go:323–335  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

321}
322
323func (c KeyboardInteractiveAuthConfig) Validate() error {
324 if err := c.Method.Validate(); err != nil {
325 return wrap(err, "method")
326 }
327 switch c.Method {
328 case KeyboardInteractiveAuthMethodDisabled:
329 return nil
330 case KeyboardInteractiveAuthMethodOAuth2:
331 return wrap(c.OAuth2.Validate(), "oauth2")
332 default:
333 return newError("method", "BUG: unsupported keyboard-interactive authentication method: %s", c.Method)
334 }
335}
336
337// KeyboardInteractiveAuthMethod provides the methods usable for keyboard-interactive authentication.
338type KeyboardInteractiveAuthMethod string

Callers

nothing calls this directly

Calls 3

wrapFunction · 0.85
newErrorFunction · 0.85
ValidateMethod · 0.65

Tested by

no test coverage detected