Skip to content

Commit e169c62

Browse files
Extend IntegrationDefFormFieldAdapter field_name whitelist
1 parent cea27e5 commit e169c62

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

src/conductor/asyncio_client/adapters/models/integration_def_form_field_adapter.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ def field_name_validate_enum(cls, value):
9494
"oAuth2AuthCode",
9595
"oAuth2TokenExpiresAt",
9696
"oAuth2RedirectUri",
97+
"oAuth2Scope",
98+
"oAuth2Provider",
99+
"oAuth2AccessToken",
97100
}:
98101
raise ValueError(
99102
"must be one of enum values ("
@@ -111,7 +114,8 @@ def field_name_validate_enum(cls, value):
111114
"'schemaRegistryApiSecret', 'schemaRegistryAuthType', 'schemaRegistryUrl', "
112115
"'serviceAccountCredentials', 'stream', 'subscription', 'tls', 'tlsFile', "
113116
"'truststoreAuthenticationType', 'user', 'valueSubjectNameStrategy', "
114-
"'version', 'visibilityTimeout', 'oAuth2RefreshToken', 'oAuth2AuthCode', 'oAuth2TokenExpiresAt', 'oAuth2RedirectUri'"
117+
"'version', 'visibilityTimeout', 'oAuth2RefreshToken', 'oAuth2AuthCode', "
118+
"'oAuth2TokenExpiresAt', 'oAuth2RedirectUri', 'oAuth2Scope', 'oAuth2Provider', 'oAuth2AccessToken'"
115119
")"
116120
)
117121

src/conductor/client/adapters/models/integration_def_form_field_adapter.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ def field_name(self, field_name):
7373
"oAuth2AuthCode",
7474
"oAuth2TokenExpiresAt",
7575
"oAuth2RedirectUri",
76+
"oAuth2Scope",
77+
"oAuth2Provider",
78+
"oAuth2AccessToken",
7679
]
7780
if field_name not in allowed_values:
7881
raise ValueError(

0 commit comments

Comments
 (0)