Skip to content

Commit

Permalink
馃悰 Source Hubspot: migrate to advancedAuth (#26831)
Browse files Browse the repository at this point in the history
Remove authSpecification from connector specification in favour of advancedAuth
  • Loading branch information
tolik0 committed Jun 1, 2023
1 parent 7c6b7da commit 7b55372
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 15 deletions.
2 changes: 1 addition & 1 deletion airbyte-integrations/connectors/source-hubspot/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ COPY source_hubspot ./source_hubspot
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]

LABEL io.airbyte.version=0.8.2
LABEL io.airbyte.version=0.8.3
LABEL io.airbyte.name=airbyte/source-hubspot
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ data:
connectorSubtype: api
connectorType: source
definitionId: 36c891d9-4bd9-43ac-bad2-10e12756272c
dockerImageTag: 0.8.2
dockerImageTag: 0.8.3
dockerRepository: airbyte/source-hubspot
githubIssueLabel: source-hubspot
icon: hubspot.svg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ connectionSpecification:
properties:
credentials_title:
type: string
title: Credentials
title: Auth Type
description: Name of the credentials
const: OAuth Credentials
order: 0
Expand Down Expand Up @@ -74,7 +74,7 @@ connectionSpecification:
properties:
credentials_title:
type: string
title: Credentials
title: Auth Type
description: Name of the credentials set
const: Private App Credentials
order: 0
Expand All @@ -86,14 +86,41 @@ connectionSpecification:
if you need help finding this token.
type: string
airbyte_secret: true
authSpecification:
auth_type: oauth2.0
oauth2Specification:
rootObject:
- credentials
- "0"
oauthFlowInitParameters:
- ["client_id"]
- ["client_secret"]
oauthFlowOutputParameters:
- ["refresh_token"]
advanced_auth:
auth_flow_type: oauth2.0
predicate_key:
- credentials
- credentials_title
predicate_value: OAuth Credentials
oauth_config_specification:
complete_oauth_output_specification:
type: object
additionalProperties: false
properties:
refresh_token:
type: string
path_in_connector_config:
- credentials
- refresh_token
complete_oauth_server_input_specification:
type: object
additionalProperties: false
properties:
client_id:
type: string
client_secret:
type: string
complete_oauth_server_output_specification:
type: object
additionalProperties: false
properties:
client_id:
type: string
path_in_connector_config:
- credentials
- client_id
client_secret:
type: string
path_in_connector_config:
- credentials
- client_secret
1 change: 1 addition & 0 deletions docs/integrations/sources/hubspot.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ Now that you have set up the Hubspot source connector, check out the following H
## Changelog
| Version | Date | Pull Request | Subject |
|:--------|:-----------|:---------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------|
| 0.8.3 | 2023-05-31 | [26831](https://github.com/airbytehq/airbyte/pull/26831) | Remove authSpecification from connector specification in favour of advancedAuth |
| 0.8.2 | 2023-05-16 | [26418](https://github.com/airbytehq/airbyte/pull/26418) | Added custom availability strategy which catches permission errors from parent streams |
| 0.8.1 | 2023-05-29 | [26719](https://github.com/airbytehq/airbyte/pull/26719) | Handle issue when `state` value is literally `"" (empty str)` |
| 0.8.0 | 2023-04-10 | [16032](https://github.com/airbytehq/airbyte/pull/16032) | Add new stream `Custom Object` |
Expand Down

0 comments on commit 7b55372

Please sign in to comment.