From db484ed6e2a84d01f82d405c7d452a69c2fecbb2 Mon Sep 17 00:00:00 2001 From: Serhii Lazebnyi Date: Thu, 26 Mar 2026 16:12:24 +0000 Subject: [PATCH] feat(source-gong): migrate OAuth scope to scopes object array Convert scope string to scopes array format with {{scopes_param}} template variable, matching the pattern used by zendesk-chat, monday, and other connectors. Related: https://github.com/airbytehq/airbyte-internal-issues/issues/16023 --- .../connectors/source-gong/manifest.yaml | 9 +++++++-- .../connectors/source-gong/metadata.yaml | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/airbyte-integrations/connectors/source-gong/manifest.yaml b/airbyte-integrations/connectors/source-gong/manifest.yaml index b268184441ba..ec1faee7bbb3 100644 --- a/airbyte-integrations/connectors/source-gong/manifest.yaml +++ b/airbyte-integrations/connectors/source-gong/manifest.yaml @@ -548,7 +548,13 @@ spec: predicate_value: OAuth2.0 oauth_config_specification: oauth_connector_input_specification: - consent_url: https://app.gong.io/oauth2/authorize?client_id={{client_id_value}}&redirect_uri={{redirect_uri_value}}&response_type=code&state={{state_value}}&scope={{scope_value | urlEncode}} + scopes: + - scope: "api:calls:read:basic" + - scope: "api:calls:read:extensive" + - scope: "api:users:read" + - scope: "api:stats:scorecards" + - scope: "api:stats:interaction" + consent_url: https://app.gong.io/oauth2/authorize?client_id={{client_id_value}}&redirect_uri={{redirect_uri_value}}&response_type=code&state={{state_value}}&{{scopes_param}} access_token_url: https://app.gong.io/oauth2/generate-customer-token access_token_headers: Authorization: "Basic {{ (client_id_value ~ ':' ~ client_secret_value) | b64encode }}" @@ -557,7 +563,6 @@ spec: grant_type: authorization_code redirect_uri: "{{ redirect_uri_value }}" code: "{{ auth_code_value }}" - scope: api:calls:read:basic api:calls:read:extensive api:users:read api:stats:scorecards api:stats:interaction extract_output: - access_token - refresh_token diff --git a/airbyte-integrations/connectors/source-gong/metadata.yaml b/airbyte-integrations/connectors/source-gong/metadata.yaml index de766ad3b253..d89b7715f054 100644 --- a/airbyte-integrations/connectors/source-gong/metadata.yaml +++ b/airbyte-integrations/connectors/source-gong/metadata.yaml @@ -7,7 +7,7 @@ data: connectorSubtype: api connectorType: source definitionId: 32382e40-3b49-4b99-9c5c-4076501914e7 - dockerImageTag: 0.6.2 + dockerImageTag: 0.6.3 dockerRepository: airbyte/source-gong documentationUrl: https://docs.airbyte.com/integrations/sources/gong githubIssueLabel: source-gong