Remove authentication hashes from API

This commit is contained in:
Ludovic Fernandez
2019-05-29 19:22:07 +02:00
committed by Traefiker Bot
parent 29307fe9fa
commit 51287d9316

View File

@@ -408,14 +408,14 @@ type Users []string
// Basic HTTP basic authentication
type Basic struct {
Users `json:"users,omitempty" mapstructure:","`
Users `json:"-" mapstructure:","`
UsersFile string `json:"usersFile,omitempty"`
RemoveHeader bool `json:"removeHeader,omitempty"`
}
// Digest HTTP authentication
type Digest struct {
Users `json:"users,omitempty" mapstructure:","`
Users `json:"-" mapstructure:","`
UsersFile string `json:"usersFile,omitempty"`
RemoveHeader bool `json:"removeHeader,omitempty"`
}
@@ -511,7 +511,7 @@ type ClientTLS struct {
CA string `description:"TLS CA" json:"ca,omitempty"`
CAOptional bool `description:"TLS CA.Optional" json:"caOptional,omitempty"`
Cert string `description:"TLS cert" json:"cert,omitempty"`
Key string `description:"TLS key" json:"key,omitempty"`
Key string `description:"TLS key" json:"-"`
InsecureSkipVerify bool `description:"TLS insecure skip verify" json:"insecureSkipVerify,omitempty"`
}