Merge pull request #14 from devanlai/fix-auth-enable-from-config

Fix auth modes enabled by config file
This commit is contained in:
Soren L. Hansen 2021-05-31 16:26:23 -07:00 committed by GitHub
commit 97c080dc59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,8 +65,12 @@ func main() {
utils.ApplyFlags(cliFlags, flagMappings, c, appOptions, backendOptions) utils.ApplyFlags(cliFlags, flagMappings, c, appOptions, backendOptions)
appOptions.EnableBasicAuth = c.IsSet("credential") if c.IsSet("credential") {
appOptions.EnableTLSClientAuth = c.IsSet("tls-ca-crt") appOptions.EnableBasicAuth = true
}
if c.IsSet("tls-ca-crt") {
appOptions.EnableTLSClientAuth = true
}
err = appOptions.Validate() err = appOptions.Validate()
if err != nil { if err != nil {