mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-01 14:47:38 +00:00
lib/promauth: do not show empty values in oauth2
config section at /config
page
This commit is contained in:
parent
9806e4793f
commit
bc72b83102
1 changed files with 4 additions and 4 deletions
|
@ -66,11 +66,11 @@ type ProxyClientConfig struct {
|
||||||
// OAuth2Config represent OAuth2 configuration
|
// OAuth2Config represent OAuth2 configuration
|
||||||
type OAuth2Config struct {
|
type OAuth2Config struct {
|
||||||
ClientID string `yaml:"client_id"`
|
ClientID string `yaml:"client_id"`
|
||||||
ClientSecret string `yaml:"client_secret"`
|
ClientSecret string `yaml:"client_secret,omitempty"`
|
||||||
ClientSecretFile string `yaml:"client_secret_file"`
|
ClientSecretFile string `yaml:"client_secret_file,omitempty"`
|
||||||
Scopes []string `yaml:"scopes"`
|
Scopes []string `yaml:"scopes,omitempty"`
|
||||||
TokenURL string `yaml:"token_url"`
|
TokenURL string `yaml:"token_url"`
|
||||||
EndpointParams map[string]string `yaml:"endpoint_params"`
|
EndpointParams map[string]string `yaml:"endpoint_params,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// String returns string representation of o.
|
// String returns string representation of o.
|
||||||
|
|
Loading…
Reference in a new issue