From 27502acd10b74b411f46ca1353b6056edb1a3efb Mon Sep 17 00:00:00 2001 From: TwiN Date: Thu, 15 Dec 2022 23:25:37 -0500 Subject: [PATCH] chore: Improve oauth2 configuration error --- client/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/config.go b/client/config.go index 25682f6a..eea948a0 100644 --- a/client/config.go +++ b/client/config.go @@ -22,7 +22,7 @@ const ( var ( ErrInvalidDNSResolver = errors.New("invalid DNS resolver specified. Required format is {proto}://{ip}:{port}") ErrInvalidDNSResolverPort = errors.New("invalid DNS resolver port") - ErrInvalidClientOAuth2Config = errors.New("invalid OAuth2 configuration, all fields are required") + ErrInvalidClientOAuth2Config = errors.New("invalid oauth2 configuration: must define all fields for client credentials flow (token-url, client-id, client-secret, scopes)") defaultConfig = Config{ Insecure: false,