Browse Source

fix: Invert condition for unknown fields in config unmarshaller (#4596)

Signed-off-by: Maksim Nabokikh <maksim.nabokikh@flant.com>
pull/4598/head
Maksim Nabokikh 3 weeks ago committed by GitHub
parent
commit
e1d6c38ca2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      cmd/dex/config.go

2
cmd/dex/config.go

@ -25,7 +25,7 @@ import (
) )
func configUnmarshaller(b []byte, v interface{}) error { func configUnmarshaller(b []byte, v interface{}) error {
if featureflags.ConfigDisallowUnknownFields.Enabled() { if !featureflags.ConfigDisallowUnknownFields.Enabled() {
return json.Unmarshal(b, v) return json.Unmarshal(b, v)
} }
dec := json.NewDecoder(bytes.NewReader(b)) dec := json.NewDecoder(bytes.NewReader(b))

Loading…
Cancel
Save