From c6a5d98755b70c1a988fdcdd2d853827b72e30e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Sibiril?= <81782+aureliensibiril@users.noreply.github.com> Date: Fri, 10 Apr 2026 10:12:48 +0200 Subject: [PATCH] Drop grouped brackets for single declarations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Aurélien Sibiril <81782+aureliensibiril@users.noreply.github.com> --- pkg/connector/providers.go | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/pkg/connector/providers.go b/pkg/connector/providers.go index f2070576a..246f3db24 100644 --- a/pkg/connector/providers.go +++ b/pkg/connector/providers.go @@ -14,25 +14,21 @@ package connector -const ( - // CallbackPath is the HTTP path for the OAuth2 callback endpoint. - CallbackPath = "/api/console/v1/connectors/complete" -) +// CallbackPath is the HTTP path for the OAuth2 callback endpoint. +const CallbackPath = "/api/console/v1/connectors/complete" -type ( - // providerDefinition holds the static OAuth2 properties for a provider. - // These are intrinsic to the provider and do not vary between deployments. - // Scopes are not part of this — they are passed by the caller at - // initiate time via InitiateOptions, since the same provider may be used - // in multiple contexts requiring different scope sets. - providerDefinition struct { - AuthURL string - TokenURL string - ExtraAuthParams map[string]string - TokenEndpointAuth string // "post-form" (default), "basic-form", or "basic-json" - SupportsIncrementalAuth bool - } -) +// providerDefinition holds the static OAuth2 properties for a provider. +// These are intrinsic to the provider and do not vary between deployments. +// Scopes are not part of this — they are passed by the caller at +// initiate time via InitiateOptions, since the same provider may be used +// in multiple contexts requiring different scope sets. +type providerDefinition struct { + AuthURL string + TokenURL string + ExtraAuthParams map[string]string + TokenEndpointAuth string // "post-form" (default), "basic-form", or "basic-json" + SupportsIncrementalAuth bool +} // providerDefinitions maps provider names to their static OAuth2 definitions. // Only ClientID and ClientSecret come from deployment config.