mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 09:05:55 +00:00
only validate config when auth is enabled
Co-authored-by: reese <45641995+reesporte@users.noreply.github.com>
This commit is contained in:
parent
cebba84bee
commit
e8f5458100
1 changed files with 3 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue