Skip to content

Commit b1ccb4e

Browse files
authored
Merge pull request #401 from GoogleCloudPlatform/oauth2AuthCodeFlow
Support for oauth2AuthCodeFlow in Connectors
2 parents 9e19b2b + 27ac9d2 commit b1ccb4e

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

internal/client/connections/connectors.go

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ type connectionRequest struct {
6464
LockConfig *lockConfig `json:"lockConfig,omitempty"`
6565
DestinationConfigs *[]destinationConfig `json:"destinationConfigs,omitempty"`
6666
AuthConfig *authConfig `json:"authConfig,omitempty"`
67+
AuthOverrideEnabled bool `json:"authOverrideEnabled,omitempty"`
6768
ServiceAccount *string `json:"serviceAccount,omitempty"`
6869
Suspended *bool `json:"suspended,omitempty"`
6970
NodeConfig *nodeConfig `json:"nodeConfig,omitempty"`
@@ -78,8 +79,10 @@ type authConfig struct {
7879
UserPassword *userPassword `json:"userPassword,omitempty"`
7980
Oauth2JwtBearer *oauth2JwtBearer `json:"oauth2JwtBearer,omitempty"`
8081
Oauth2ClientCredentials *oauth2ClientCredentials `json:"oauth2ClientCredentials,omitempty"`
82+
Oauth2AuthCodeFlow *oauth2AuthCodeFlow `json:"oauth2AuthCodeFlow,omitempty"`
8183
SshPublicKey *sshPublicKey `json:"sshPublicKey,omitempty"`
8284
AdditionalVariables *[]configVar `json:"additionalVariables,omitempty"`
85+
AuthKey string `json:"authKey,omitempty"`
8386
}
8487

8588
type lockConfig struct {
@@ -88,7 +91,8 @@ type lockConfig struct {
8891
}
8992

9093
type logConfig struct {
91-
Enabled bool `json:"enabled,omitempty"`
94+
Enabled bool `json:"enabled,omitempty"`
95+
Level string `json:"level,omitempty"`
9296
}
9397

9498
type sslConfig struct {
@@ -135,6 +139,14 @@ type oauth2JwtBearer struct {
135139
JwtClaims jwtClaims `json:"jwtClaims,omitempty"`
136140
}
137141

142+
type oauth2AuthCodeFlow struct {
143+
ClientId string `json:"clientId,omitempty"`
144+
ClientSecret *secret `json:"clientSecret,omitempty"`
145+
ClientSecretDetails *secretDetails `json:"clientSecretDetails,omitempty"`
146+
Scopes []string `json:"scopes,omitempty"`
147+
AuthUri string `json:"authUri,omitempty"`
148+
}
149+
138150
type oauth2ClientCredentials struct {
139151
ClientId string `json:"clientId,omitempty"`
140152
ClientSecret *secret `json:"clientSecret,omitempty"`

0 commit comments

Comments
 (0)