MCPcopy
hub / github.com/ContainerSSH/ContainerSSH / PublicKeyAuthConfig

Struct PublicKeyAuthConfig

config/auth.go:271–277  ·  view source on GitHub ↗

endregion region PubKeyAuth PublicKeyAuthConfig holds the configuration for public key authentication.

Source from the content-addressed store, hash-verified

269
270// PublicKeyAuthConfig holds the configuration for public key authentication.
271type PublicKeyAuthConfig struct {
272 // Method is the authenticator to use for public keys.
273 Method PublicKeyAuthMethod `json:"method" yaml:"method" default:""`
274
275 // Webhook configures the webhook authenticator for public key authentication.
276 Webhook AuthWebhookClientConfig `json:"webhook" yaml:"webhook"`
277}
278
279func (c PublicKeyAuthConfig) Validate() error {
280 if err := c.Method.Validate(); err != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected