Drop grouped brackets for single declarations

Signed-off-by: Aurélien Sibiril <81782+aureliensibiril@users.noreply.github.com>
This commit is contained in:
Aurélien Sibiril
2026-04-10 10:12:48 +02:00
parent cc6d271f10
commit c6a5d98755

View File

@@ -14,25 +14,21 @@
package connector package connector
const (
// CallbackPath is the HTTP path for the OAuth2 callback endpoint. // CallbackPath is the HTTP path for the OAuth2 callback endpoint.
CallbackPath = "/api/console/v1/connectors/complete" const CallbackPath = "/api/console/v1/connectors/complete"
)
type (
// providerDefinition holds the static OAuth2 properties for a provider. // providerDefinition holds the static OAuth2 properties for a provider.
// These are intrinsic to the provider and do not vary between deployments. // 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 // Scopes are not part of this — they are passed by the caller at
// initiate time via InitiateOptions, since the same provider may be used // initiate time via InitiateOptions, since the same provider may be used
// in multiple contexts requiring different scope sets. // in multiple contexts requiring different scope sets.
providerDefinition struct { type providerDefinition struct {
AuthURL string AuthURL string
TokenURL string TokenURL string
ExtraAuthParams map[string]string ExtraAuthParams map[string]string
TokenEndpointAuth string // "post-form" (default), "basic-form", or "basic-json" TokenEndpointAuth string // "post-form" (default), "basic-form", or "basic-json"
SupportsIncrementalAuth bool SupportsIncrementalAuth bool
} }
)
// providerDefinitions maps provider names to their static OAuth2 definitions. // providerDefinitions maps provider names to their static OAuth2 definitions.
// Only ClientID and ClientSecret come from deployment config. // Only ClientID and ClientSecret come from deployment config.