Validate validates the authentication client configuration.
()
| 409 | |
| 410 | // Validate validates the authentication client configuration. |
| 411 | func (c *AuthWebhookClientConfig) Validate() error { |
| 412 | if c.AuthTimeout < 100*time.Millisecond { |
| 413 | return newError("timeout", "auth timeout value %s is too low, must be at least 100ms", c.AuthTimeout.String()) |
| 414 | } |
| 415 | if err := c.HTTPClientConfiguration.Validate(); err != nil { |
| 416 | return err |
| 417 | } |
| 418 | return nil |
| 419 | } |
| 420 | |
| 421 | // endregion |
| 422 |