Drop grouped brackets for single declarations
Signed-off-by: Aurélien Sibiril <81782+aureliensibiril@users.noreply.github.com>
This commit is contained in:
@@ -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.
|
const CallbackPath = "/api/console/v1/connectors/complete"
|
||||||
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.
|
type providerDefinition struct {
|
||||||
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.
|
||||||
|
|||||||
Reference in New Issue
Block a user