endregion region PubKeyAuth PublicKeyAuthConfig holds the configuration for public key authentication.
| 269 | |
| 270 | // PublicKeyAuthConfig holds the configuration for public key authentication. |
| 271 | type 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 | |
| 279 | func (c PublicKeyAuthConfig) Validate() error { |
| 280 | if err := c.Method.Validate(); err != nil { |
nothing calls this directly
no outgoing calls
no test coverage detected