Skip to content

Commit 1dbd7ab

Browse files
Source Amazon Seller Partner: OAuth support (#13119)
* Update docs * add oauth * add spec.py * test * fix * fix * add lwa_app_id * test * test * fix * add beta version * fix * test * test * test * merge * fix * fix * fix * test * test * test * test * sort AWSRegion * up * add import * up * up * up * fix * fix tests * bump version * upd * auto-bump connector version * format Co-authored-by: Octavia Squidington III <[email protected]>
1 parent d6d52c5 commit 1dbd7ab

File tree

13 files changed

+587
-264
lines changed

13 files changed

+587
-264
lines changed

airbyte-config/init/src/main/resources/seed/source_definitions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
- name: Amazon Seller Partner
2626
sourceDefinitionId: e55879a8-0ef8-4557-abcf-ab34c53ec460
2727
dockerRepository: airbyte/source-amazon-seller-partner
28-
dockerImageTag: 0.2.18
28+
dockerImageTag: 0.2.19
2929
sourceType: api
3030
documentationUrl: https://docs.airbyte.io/integrations/sources/amazon-seller-partner
3131
icon: amazonsellerpartner.svg

airbyte-config/init/src/main/resources/seed/source_specs.yaml

Lines changed: 112 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -213,14 +213,64 @@
213213
type: "string"
214214
path_in_connector_config:
215215
- "client_secret"
216-
- dockerImage: "airbyte/source-amazon-seller-partner:0.2.18"
216+
- dockerImage: "airbyte/source-amazon-seller-partner:0.2.19"
217217
spec:
218218
documentationUrl: "https://docs.airbyte.io/integrations/sources/amazon-seller-partner"
219219
changelogUrl: "https://docs.airbyte.io/integrations/sources/amazon-seller-partner"
220220
connectionSpecification:
221221
title: "Amazon Seller Partner Spec"
222222
type: "object"
223223
properties:
224+
app_id:
225+
title: "App Id *"
226+
description: "Your Amazon App ID"
227+
airbyte_secret: true
228+
order: 0
229+
type: "string"
230+
auth_type:
231+
title: "Auth Type"
232+
const: "oauth2.0"
233+
order: 1
234+
type: "string"
235+
lwa_app_id:
236+
title: "LWA Client Id"
237+
description: "Your Login with Amazon Client ID."
238+
order: 2
239+
type: "string"
240+
lwa_client_secret:
241+
title: "LWA Client Secret"
242+
description: "Your Login with Amazon Client Secret."
243+
airbyte_secret: true
244+
order: 3
245+
type: "string"
246+
refresh_token:
247+
title: "Refresh Token"
248+
description: "The Refresh Token obtained via OAuth flow authorization."
249+
airbyte_secret: true
250+
order: 4
251+
type: "string"
252+
aws_access_key:
253+
title: "AWS Access Key"
254+
description: "Specifies the AWS access key used as part of the credentials\
255+
\ to authenticate the user."
256+
airbyte_secret: true
257+
order: 5
258+
type: "string"
259+
aws_secret_key:
260+
title: "AWS Secret Access Key"
261+
description: "Specifies the AWS secret key used as part of the credentials\
262+
\ to authenticate the user."
263+
airbyte_secret: true
264+
order: 6
265+
type: "string"
266+
role_arn:
267+
title: "Role ARN"
268+
description: "Specifies the Amazon Resource Name (ARN) of an IAM role that\
269+
\ you want to use to perform operations requested using this profile.\
270+
\ (Needs permission to 'Assume Role' STS)."
271+
airbyte_secret: true
272+
order: 7
273+
type: "string"
224274
replication_start_date:
225275
title: "Start Date"
226276
description: "UTC date and time in the format 2017-01-25T00:00:00Z. Any\
@@ -257,40 +307,6 @@
257307
- "500"
258308
- "1980"
259309
type: "integer"
260-
refresh_token:
261-
title: "Refresh Token"
262-
description: "The Refresh Token obtained via OAuth flow authorization."
263-
airbyte_secret: true
264-
type: "string"
265-
lwa_app_id:
266-
title: "LwA App Id"
267-
description: "Your Login with Amazon App ID"
268-
airbyte_secret: true
269-
type: "string"
270-
lwa_client_secret:
271-
title: "LwA Client Secret"
272-
description: "Your Login with Amazon Client Secret."
273-
airbyte_secret: true
274-
type: "string"
275-
aws_access_key:
276-
title: "AWS Access Key"
277-
description: "Specifies the AWS access key used as part of the credentials\
278-
\ to authenticate the user."
279-
airbyte_secret: true
280-
type: "string"
281-
aws_secret_key:
282-
title: "AWS Secret Access Key"
283-
description: "Specifies the AWS secret key used as part of the credentials\
284-
\ to authenticate the user."
285-
airbyte_secret: true
286-
type: "string"
287-
role_arn:
288-
title: "Role ARN"
289-
description: "Specifies the Amazon Resource Name (ARN) of an IAM role that\
290-
\ you want to use to perform operations requested using this profile.\
291-
\ (Needs permission to 'Assume Role' STS)."
292-
airbyte_secret: true
293-
type: "string"
294310
aws_environment:
295311
title: "AWSEnvironment"
296312
description: "An enumeration."
@@ -303,37 +319,38 @@
303319
description: "An enumeration."
304320
enum:
305321
- "AE"
322+
- "AU"
323+
- "BR"
324+
- "CA"
306325
- "DE"
307-
- "PL"
308326
- "EG"
309327
- "ES"
310328
- "FR"
329+
- "GB"
311330
- "IN"
312331
- "IT"
332+
- "JP"
333+
- "MX"
313334
- "NL"
335+
- "PL"
314336
- "SA"
315337
- "SE"
338+
- "SG"
316339
- "TR"
317340
- "UK"
318-
- "AU"
319-
- "JP"
320-
- "SG"
321341
- "US"
322-
- "BR"
323-
- "CA"
324-
- "MX"
325-
- "GB"
326342
type: "string"
327343
required:
328-
- "replication_start_date"
329-
- "refresh_token"
330344
- "lwa_app_id"
331345
- "lwa_client_secret"
346+
- "refresh_token"
332347
- "aws_access_key"
333348
- "aws_secret_key"
334349
- "role_arn"
350+
- "replication_start_date"
335351
- "aws_environment"
336352
- "region"
353+
additionalProperties: true
337354
definitions:
338355
AWSEnvironment:
339356
title: "AWSEnvironment"
@@ -347,30 +364,72 @@
347364
description: "An enumeration."
348365
enum:
349366
- "AE"
367+
- "AU"
368+
- "BR"
369+
- "CA"
350370
- "DE"
351-
- "PL"
352371
- "EG"
353372
- "ES"
354373
- "FR"
374+
- "GB"
355375
- "IN"
356376
- "IT"
377+
- "JP"
378+
- "MX"
357379
- "NL"
380+
- "PL"
358381
- "SA"
359382
- "SE"
383+
- "SG"
360384
- "TR"
361385
- "UK"
362-
- "AU"
363-
- "JP"
364-
- "SG"
365386
- "US"
366-
- "BR"
367-
- "CA"
368-
- "MX"
369-
- "GB"
370387
type: "string"
371388
supportsNormalization: false
372389
supportsDBT: false
373390
supported_destination_sync_modes: []
391+
advanced_auth:
392+
auth_flow_type: "oauth2.0"
393+
predicate_key:
394+
- "auth_type"
395+
predicate_value: "oauth2.0"
396+
oauth_config_specification:
397+
oauth_user_input_from_connector_config_specification:
398+
type: "object"
399+
additionalProperties: false
400+
properties:
401+
app_id:
402+
type: "string"
403+
path_in_connector_config:
404+
- "app_id"
405+
complete_oauth_output_specification:
406+
type: "object"
407+
additionalProperties: false
408+
properties:
409+
refresh_token:
410+
type: "string"
411+
path_in_connector_config:
412+
- "refresh_token"
413+
complete_oauth_server_input_specification:
414+
type: "object"
415+
additionalProperties: false
416+
properties:
417+
lwa_app_id:
418+
type: "string"
419+
lwa_client_secret:
420+
type: "string"
421+
complete_oauth_server_output_specification:
422+
type: "object"
423+
additionalProperties: false
424+
properties:
425+
lwa_app_id:
426+
type: "string"
427+
path_in_connector_config:
428+
- "lwa_app_id"
429+
lwa_client_secret:
430+
type: "string"
431+
path_in_connector_config:
432+
- "lwa_client_secret"
374433
- dockerImage: "airbyte/source-amazon-sqs:0.1.0"
375434
spec:
376435
documentationUrl: "https://docs.airbyte.io/integrations/sources/amazon-sqs"

airbyte-integrations/connectors/source-amazon-seller-partner/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ RUN pip install .
1212
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
1313
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]
1414

15-
LABEL io.airbyte.version=0.2.18
15+
LABEL io.airbyte.version=0.2.19
1616
LABEL io.airbyte.name=airbyte/source-amazon-seller-partner

airbyte-integrations/connectors/source-amazon-seller-partner/acceptance-test-config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
connector_image: airbyte/source-amazon-seller-partner:dev
22
tests:
33
spec:
4-
- spec_path: "source_amazon_seller_partner/spec.json"
4+
- spec_path: "integration_tests/spec.json"
55
connection:
66
# - config_path: "secrets/config.json"
77
# status: "succeed"

0 commit comments

Comments
 (0)