From e8f54581007e576746ca52c51ea3f09d9a95d94f Mon Sep 17 00:00:00 2001 From: souhailanoor <90720110+souhailanoor@users.noreply.github.com> Date: Fri, 3 Dec 2021 11:58:08 -0600 Subject: [PATCH] only validate config when auth is enabled Co-authored-by: reese <45641995+reesporte@users.noreply.github.com> --- server/config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/config.go b/server/config.go index 4d69521a1..6bf2b22c4 100644 --- a/server/config.go +++ b/server/config.go @@ -610,6 +610,9 @@ func lookupAddr(ctx context.Context, resolver *net.Resolver, host string) (strin } func (c *Config) ValidateAuth() ([]error, error) { + if !c.Auth.Enable { + return []error{}, nil + } authConfig := map[string]string{ "ClientId": c.Auth.ClientId, "ClientSecret": c.Auth.ClientSecret,