From e735e5e889d95a992c9cc4716ea3f749c560b875 Mon Sep 17 00:00:00 2001 From: Christo Grabowski <108154848+ChristoGrab@users.noreply.github.com> Date: Wed, 26 Jun 2024 15:20:23 -0700 Subject: [PATCH] Bulk update deprecated authenticators (#40549) --- .../connectors/source-gridly/metadata.yaml | 2 +- .../connectors/source-gridly/pyproject.toml | 2 +- .../source-gridly/source_gridly/source.py | 2 +- .../fixtures/data_generator/generator.py | 2 +- .../fixtures/data_generator/streams.py | 18 +++++++++--------- .../connectors/source-jira/metadata.yaml | 2 +- .../connectors/source-jira/pyproject.toml | 2 +- .../source-jira/source_jira/streams.py | 8 ++++---- .../connectors/source-linnworks/metadata.yaml | 2 +- .../connectors/source-linnworks/pyproject.toml | 2 +- .../source_linnworks/streams.py | 2 +- .../connectors/source-mixpanel/metadata.yaml | 2 +- .../connectors/source-mixpanel/pyproject.toml | 2 +- .../source-mixpanel/unit_tests/unit_test.py | 3 +-- .../connectors/source-pardot/metadata.yaml | 2 +- .../connectors/source-pardot/pyproject.toml | 2 +- .../source-pardot/source_pardot/source.py | 2 +- .../source_python_http_tutorial/source.py | 5 ++--- .../source-rd-station-marketing/metadata.yaml | 2 +- .../source-rd-station-marketing/pyproject.toml | 2 +- .../source_rd_station_marketing/source.py | 2 +- .../source-surveymonkey/metadata.yaml | 2 +- .../source-surveymonkey/pyproject.toml | 2 +- .../source-surveymonkey/unit_tests/conftest.py | 3 +-- .../unit_tests/test_for_updated_state.py | 2 +- .../connectors/source-us-census/metadata.yaml | 2 +- .../connectors/source-us-census/pyproject.toml | 2 +- .../source_us_census/source.py | 3 +-- .../source-us-census/unit_tests/unit_test.py | 3 +-- .../source-weatherstack/metadata.yaml | 2 +- .../source-weatherstack/pyproject.toml | 2 +- .../source_weatherstack/source.py | 3 +-- .../connectors/source-webflow/metadata.yaml | 2 +- .../connectors/source-webflow/pyproject.toml | 2 +- .../source-webflow/source_webflow/source.py | 2 +- .../2-reading-a-page.md | 2 +- docs/integrations/sources/gridly.md | 1 + docs/integrations/sources/jira.md | 1 + docs/integrations/sources/linnworks.md | 1 + docs/integrations/sources/mixpanel.md | 1 + docs/integrations/sources/pardot.md | 1 + .../sources/rd-station-marketing.md | 1 + docs/integrations/sources/surveymonkey.md | 1 + docs/integrations/sources/us-census.md | 1 + docs/integrations/sources/weatherstack.md | 1 + docs/integrations/sources/webflow.md | 1 + 46 files changed, 58 insertions(+), 54 deletions(-) diff --git a/airbyte-integrations/connectors/source-gridly/metadata.yaml b/airbyte-integrations/connectors/source-gridly/metadata.yaml index c06f5a47e09d..c42541dd5565 100644 --- a/airbyte-integrations/connectors/source-gridly/metadata.yaml +++ b/airbyte-integrations/connectors/source-gridly/metadata.yaml @@ -2,7 +2,7 @@ data: connectorSubtype: api connectorType: source definitionId: 6cbea164-3237-433b-9abb-36d384ee4cbf - dockerImageTag: 0.1.5 + dockerImageTag: 0.1.6 dockerRepository: airbyte/source-gridly githubIssueLabel: source-gridly icon: gridly.svg diff --git a/airbyte-integrations/connectors/source-gridly/pyproject.toml b/airbyte-integrations/connectors/source-gridly/pyproject.toml index 008bc6ab571c..2a32362e7116 100644 --- a/airbyte-integrations/connectors/source-gridly/pyproject.toml +++ b/airbyte-integrations/connectors/source-gridly/pyproject.toml @@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",] build-backend = "poetry.core.masonry.api" [tool.poetry] -version = "0.1.5" +version = "0.1.6" name = "source-gridly" description = "Source implementation for Gridly." authors = [ "Airbyte ",] diff --git a/airbyte-integrations/connectors/source-gridly/source_gridly/source.py b/airbyte-integrations/connectors/source-gridly/source_gridly/source.py index 74cdd41eb7e1..10a400672cfb 100644 --- a/airbyte-integrations/connectors/source-gridly/source_gridly/source.py +++ b/airbyte-integrations/connectors/source-gridly/source_gridly/source.py @@ -13,7 +13,7 @@ from airbyte_cdk.sources import AbstractSource from airbyte_cdk.sources.streams import Stream from airbyte_cdk.sources.streams.http import HttpStream -from airbyte_cdk.sources.streams.http.auth import TokenAuthenticator +from airbyte_cdk.sources.streams.http.requests_native_auth import TokenAuthenticator from source_gridly.helpers import Helpers diff --git a/airbyte-integrations/connectors/source-jira/integration_tests/fixtures/data_generator/generator.py b/airbyte-integrations/connectors/source-jira/integration_tests/fixtures/data_generator/generator.py index 4ea2f8b2ca5f..e4e2e8337782 100644 --- a/airbyte-integrations/connectors/source-jira/integration_tests/fixtures/data_generator/generator.py +++ b/airbyte-integrations/connectors/source-jira/integration_tests/fixtures/data_generator/generator.py @@ -7,7 +7,7 @@ from base64 import b64encode from typing import Any, List, Mapping -from airbyte_cdk.sources.streams.http.auth import TokenAuthenticator +from airbyte_cdk.sources.streams.http.requests_native_auth import TokenAuthenticator from streams import ( DashboardsGenerator, FiltersGenerator, diff --git a/airbyte-integrations/connectors/source-jira/integration_tests/fixtures/data_generator/streams.py b/airbyte-integrations/connectors/source-jira/integration_tests/fixtures/data_generator/streams.py index 574e7a8eccfb..5a295903035b 100644 --- a/airbyte-integrations/connectors/source-jira/integration_tests/fixtures/data_generator/streams.py +++ b/airbyte-integrations/connectors/source-jira/integration_tests/fixtures/data_generator/streams.py @@ -34,7 +34,7 @@ class GeneratorMixin: def get_generate_headers(self): - headers = {"Accept": "application/json", "Content-Type": "application/json", **self.authenticator.get_auth_header()} + headers = {"Accept": "application/json", "Content-Type": "application/json", **self._session.auth.get_auth_header()} return headers def generate_record( @@ -84,7 +84,7 @@ class FilterSharingGenerator(FilterSharing, GeneratorMixin): """ def generate(self): - filters_stream = Filters(authenticator=self.authenticator, domain=self._domain) + filters_stream = Filters(authenticator=self._session.auth, domain=self._domain) for filters in filters_stream.read_records(sync_mode=SyncMode.full_refresh): for index in range(random.randrange(4)): group_name = random.choice(["Test group 0", "Test group 1", "Test group 2"]) @@ -142,7 +142,7 @@ class IssueCommentsGenerator(IssueComments, GeneratorMixin): """ def generate(self): - issues_stream = Issues(authenticator=self.authenticator, domain=self._domain) + issues_stream = Issues(authenticator=self._session.auth, domain=self._domain) for issue in issues_stream.read_records(sync_mode=SyncMode.full_refresh): for index in range(20): payload = json.dumps( @@ -195,7 +195,7 @@ class IssueRemoteLinksGenerator(IssueRemoteLinks, GeneratorMixin): """ def generate(self): - issues_stream = Issues(authenticator=self.authenticator, domain=self._domain) + issues_stream = Issues(authenticator=self._session.auth, domain=self._domain) for issue in issues_stream.read_records(sync_mode=SyncMode.full_refresh): payload = json.dumps( { @@ -227,7 +227,7 @@ class IssueVotesGenerator(IssueVotes, GeneratorMixin): """ def generate(self): - issues_stream = Issues(authenticator=self.authenticator, domain=self._domain) + issues_stream = Issues(authenticator=self._session.auth, domain=self._domain) for issue in issues_stream.read_records(sync_mode=SyncMode.full_refresh): payload = None self.generate_record(payload, stream_slice={"key": issue["key"]}) @@ -239,7 +239,7 @@ class IssueWatchersGenerator(IssueWatchers, GeneratorMixin): """ def generate(self): - issues_stream = Issues(authenticator=self.authenticator, domain=self._domain) + issues_stream = Issues(authenticator=self._session.auth, domain=self._domain) for issue in issues_stream.read_records(sync_mode=SyncMode.full_refresh): payload = None self.generate_record(payload, stream_slice={"key": issue["key"]}) @@ -251,7 +251,7 @@ class IssueWorklogsGenerator(IssueWorklogs, GeneratorMixin): """ def generate(self): - issues_stream = Issues(authenticator=self.authenticator, domain=self._domain) + issues_stream = Issues(authenticator=self._session.auth, domain=self._domain) for issue in issues_stream.read_records(sync_mode=SyncMode.full_refresh): for index in range(random.randrange(1, 6)): payload = json.dumps( @@ -312,7 +312,7 @@ def path(self, **kwargs) -> str: return "component" def generate(self): - projects_stream = Projects(authenticator=self.authenticator, domain=self._domain) + projects_stream = Projects(authenticator=self._session.auth, domain=self._domain) for project in projects_stream.read_records(sync_mode=SyncMode.full_refresh): for index in range(random.randrange(6)): payload = json.dumps( @@ -337,7 +337,7 @@ def path(self, **kwargs) -> str: return "version" def generate(self): - projects_stream = Projects(authenticator=self.authenticator, domain=self._domain) + projects_stream = Projects(authenticator=self._session.auth, domain=self._domain) for project in projects_stream.read_records(sync_mode=SyncMode.full_refresh): for index in range(random.randrange(6)): payload = json.dumps( diff --git a/airbyte-integrations/connectors/source-jira/metadata.yaml b/airbyte-integrations/connectors/source-jira/metadata.yaml index 7f7b5af3d55f..346681318b72 100644 --- a/airbyte-integrations/connectors/source-jira/metadata.yaml +++ b/airbyte-integrations/connectors/source-jira/metadata.yaml @@ -10,7 +10,7 @@ data: connectorSubtype: api connectorType: source definitionId: 68e63de2-bb83-4c7e-93fa-a8a9051e3993 - dockerImageTag: 3.0.3 + dockerImageTag: 3.0.4 dockerRepository: airbyte/source-jira documentationUrl: https://docs.airbyte.com/integrations/sources/jira githubIssueLabel: source-jira diff --git a/airbyte-integrations/connectors/source-jira/pyproject.toml b/airbyte-integrations/connectors/source-jira/pyproject.toml index 8bccb38a7b0f..29c7ada7dbe0 100644 --- a/airbyte-integrations/connectors/source-jira/pyproject.toml +++ b/airbyte-integrations/connectors/source-jira/pyproject.toml @@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",] build-backend = "poetry.core.masonry.api" [tool.poetry] -version = "3.0.3" +version = "3.0.4" name = "source-jira" description = "Source implementation for Jira." authors = [ "Airbyte ",] diff --git a/airbyte-integrations/connectors/source-jira/source_jira/streams.py b/airbyte-integrations/connectors/source-jira/source_jira/streams.py index b8b63d19a137..f7dc8bb6f774 100644 --- a/airbyte-integrations/connectors/source-jira/source_jira/streams.py +++ b/airbyte-integrations/connectors/source-jira/source_jira/streams.py @@ -223,8 +223,8 @@ class Issues(IncrementalJiraStream): def __init__(self, **kwargs): super().__init__(**kwargs) self._project_ids = [] - self.issue_fields_stream = IssueFields(authenticator=self.authenticator, domain=self._domain, projects=self._projects) - self.projects_stream = Projects(authenticator=self.authenticator, domain=self._domain, projects=self._projects) + self.issue_fields_stream = IssueFields(authenticator=self._session.auth, domain=self._domain, projects=self._projects) + self.projects_stream = Projects(authenticator=self._session.auth, domain=self._domain, projects=self._projects) def path(self, **kwargs) -> str: return "search" @@ -340,7 +340,7 @@ class IssueWorklogs(IncrementalJiraStream): def __init__(self, **kwargs): super().__init__(**kwargs) self.issues_stream = Issues( - authenticator=self.authenticator, + authenticator=self._session.auth, domain=self._domain, projects=self._projects, start_date=self._start_date, @@ -370,7 +370,7 @@ class IssueComments(IncrementalJiraStream): def __init__(self, **kwargs): super().__init__(**kwargs) self.issues_stream = Issues( - authenticator=self.authenticator, + authenticator=self._session.auth, domain=self._domain, projects=self._projects, start_date=self._start_date, diff --git a/airbyte-integrations/connectors/source-linnworks/metadata.yaml b/airbyte-integrations/connectors/source-linnworks/metadata.yaml index 3362fa0c2270..422bc7c6fc5c 100644 --- a/airbyte-integrations/connectors/source-linnworks/metadata.yaml +++ b/airbyte-integrations/connectors/source-linnworks/metadata.yaml @@ -7,7 +7,7 @@ data: connectorSubtype: api connectorType: source definitionId: 7b86879e-26c5-4ef6-a5ce-2be5c7b46d1e - dockerImageTag: 0.1.12 + dockerImageTag: 0.1.13 dockerRepository: airbyte/source-linnworks documentationUrl: https://docs.airbyte.com/integrations/sources/linnworks githubIssueLabel: source-linnworks diff --git a/airbyte-integrations/connectors/source-linnworks/pyproject.toml b/airbyte-integrations/connectors/source-linnworks/pyproject.toml index 8c2f2aa50c5c..400309b38849 100644 --- a/airbyte-integrations/connectors/source-linnworks/pyproject.toml +++ b/airbyte-integrations/connectors/source-linnworks/pyproject.toml @@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",] build-backend = "poetry.core.masonry.api" [tool.poetry] -version = "0.1.12" +version = "0.1.13" name = "source-linnworks" description = "Source implementation for Linnworks." authors = [ "Airbyte ",] diff --git a/airbyte-integrations/connectors/source-linnworks/source_linnworks/streams.py b/airbyte-integrations/connectors/source-linnworks/source_linnworks/streams.py index 32257320e186..a3935d719844 100644 --- a/airbyte-integrations/connectors/source-linnworks/source_linnworks/streams.py +++ b/airbyte-integrations/connectors/source-linnworks/source_linnworks/streams.py @@ -28,7 +28,7 @@ def __init__(self, authenticator: Union[AuthBase, HttpAuthenticator] = None, sta @property def url_base(self) -> str: - return self.authenticator.get_server() + return self._session.auth.get_server() def next_page_token(self, response: requests.Response) -> Optional[Mapping[str, Any]]: return None diff --git a/airbyte-integrations/connectors/source-mixpanel/metadata.yaml b/airbyte-integrations/connectors/source-mixpanel/metadata.yaml index f67b10317f4b..4db84f59fbd0 100644 --- a/airbyte-integrations/connectors/source-mixpanel/metadata.yaml +++ b/airbyte-integrations/connectors/source-mixpanel/metadata.yaml @@ -11,7 +11,7 @@ data: connectorSubtype: api connectorType: source definitionId: 12928b32-bf0a-4f1e-964f-07e12e37153a - dockerImageTag: 3.1.4 + dockerImageTag: 3.1.5 dockerRepository: airbyte/source-mixpanel documentationUrl: https://docs.airbyte.com/integrations/sources/mixpanel githubIssueLabel: source-mixpanel diff --git a/airbyte-integrations/connectors/source-mixpanel/pyproject.toml b/airbyte-integrations/connectors/source-mixpanel/pyproject.toml index 4dc4e48c3dd7..aa6c6889ba9b 100644 --- a/airbyte-integrations/connectors/source-mixpanel/pyproject.toml +++ b/airbyte-integrations/connectors/source-mixpanel/pyproject.toml @@ -3,7 +3,7 @@ requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api" [tool.poetry] -version = "3.1.4" +version = "3.1.5" name = "source-mixpanel" description = "Source implementation for Mixpanel." authors = ["Airbyte "] diff --git a/airbyte-integrations/connectors/source-mixpanel/unit_tests/unit_test.py b/airbyte-integrations/connectors/source-mixpanel/unit_tests/unit_test.py index edb267435a85..1762aa42c718 100644 --- a/airbyte-integrations/connectors/source-mixpanel/unit_tests/unit_test.py +++ b/airbyte-integrations/connectors/source-mixpanel/unit_tests/unit_test.py @@ -5,7 +5,6 @@ from datetime import date, timedelta import pendulum -from airbyte_cdk.sources.streams.http.auth import NoAuth from source_mixpanel.streams import Export @@ -15,7 +14,7 @@ def test_date_slices(): # test with stream_state stream_slices = Export( - authenticator=NoAuth(), + authenticator=None, start_date=date.fromisoformat("2021-07-01"), end_date=date.fromisoformat("2021-07-03"), date_window_size=1, diff --git a/airbyte-integrations/connectors/source-pardot/metadata.yaml b/airbyte-integrations/connectors/source-pardot/metadata.yaml index 0e62130250bf..a2b6eb5fed59 100644 --- a/airbyte-integrations/connectors/source-pardot/metadata.yaml +++ b/airbyte-integrations/connectors/source-pardot/metadata.yaml @@ -2,7 +2,7 @@ data: connectorSubtype: api connectorType: source definitionId: ad15c7ba-72a7-440b-af15-b9a963dc1a8a - dockerImageTag: 0.1.5 + dockerImageTag: 0.1.6 dockerRepository: airbyte/source-pardot githubIssueLabel: source-pardot icon: salesforcepardot.svg diff --git a/airbyte-integrations/connectors/source-pardot/pyproject.toml b/airbyte-integrations/connectors/source-pardot/pyproject.toml index dde388f66610..3584898abb31 100644 --- a/airbyte-integrations/connectors/source-pardot/pyproject.toml +++ b/airbyte-integrations/connectors/source-pardot/pyproject.toml @@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",] build-backend = "poetry.core.masonry.api" [tool.poetry] -version = "0.1.5" +version = "0.1.6" name = "source-pardot" description = "Source implementation for Pardot." authors = [ "Airbyte ",] diff --git a/airbyte-integrations/connectors/source-pardot/source_pardot/source.py b/airbyte-integrations/connectors/source-pardot/source_pardot/source.py index cabeddb049a0..93ea6dac375d 100644 --- a/airbyte-integrations/connectors/source-pardot/source_pardot/source.py +++ b/airbyte-integrations/connectors/source-pardot/source_pardot/source.py @@ -7,7 +7,7 @@ from airbyte_cdk.sources import AbstractSource from airbyte_cdk.sources.streams import Stream -from airbyte_cdk.sources.streams.http.auth import TokenAuthenticator +from airbyte_cdk.sources.streams.http.requests_native_auth import TokenAuthenticator from .api import Pardot from .stream import Campaigns, EmailClicks, ListMembership, Lists, ProspectAccounts, Prospects, Users, VisitorActivities, Visitors, Visits diff --git a/airbyte-integrations/connectors/source-python-http-tutorial/source_python_http_tutorial/source.py b/airbyte-integrations/connectors/source-python-http-tutorial/source_python_http_tutorial/source.py index 81470c3d4626..07921116b35c 100644 --- a/airbyte-integrations/connectors/source-python-http-tutorial/source_python_http_tutorial/source.py +++ b/airbyte-integrations/connectors/source-python-http-tutorial/source_python_http_tutorial/source.py @@ -10,7 +10,6 @@ from airbyte_cdk.sources import AbstractSource from airbyte_cdk.sources.streams import Stream from airbyte_cdk.sources.streams.http import HttpStream -from airbyte_cdk.sources.streams.http.auth import NoAuth class ExchangeRates(HttpStream): @@ -106,10 +105,10 @@ def check_connection(self, logger, config) -> Tuple[bool, any]: return True, None def streams(self, config: Mapping[str, Any]) -> List[Stream]: - # NoAuth just means there is no authentication required for this API. It's only included for completeness + # No authentication is required for this API. It's only included for completeness # of the example, but if you don't need authentication, you don't need to pass an authenticator at all. # Other authenticators are available for API token-based auth and Oauth2. - auth = NoAuth() + auth = None # Parse the date from a string into a datetime object start_date = datetime.strptime(config["start_date"], "%Y-%m-%d") return [ExchangeRates(authenticator=auth, config=config, start_date=start_date)] diff --git a/airbyte-integrations/connectors/source-rd-station-marketing/metadata.yaml b/airbyte-integrations/connectors/source-rd-station-marketing/metadata.yaml index e2384c0ef01a..f8b512a0ba96 100644 --- a/airbyte-integrations/connectors/source-rd-station-marketing/metadata.yaml +++ b/airbyte-integrations/connectors/source-rd-station-marketing/metadata.yaml @@ -2,7 +2,7 @@ data: connectorSubtype: api connectorType: source definitionId: fb141f29-be2a-450b-a4f2-2cd203a00f84 - dockerImageTag: 0.1.8 + dockerImageTag: 0.1.9 dockerRepository: airbyte/source-rd-station-marketing githubIssueLabel: source-rd-station-marketing icon: rdstation.svg diff --git a/airbyte-integrations/connectors/source-rd-station-marketing/pyproject.toml b/airbyte-integrations/connectors/source-rd-station-marketing/pyproject.toml index c9b2ee9f5cb1..31e6216fc005 100644 --- a/airbyte-integrations/connectors/source-rd-station-marketing/pyproject.toml +++ b/airbyte-integrations/connectors/source-rd-station-marketing/pyproject.toml @@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",] build-backend = "poetry.core.masonry.api" [tool.poetry] -version = "0.1.8" +version = "0.1.9" name = "source-rd-station-marketing" description = "Source implementation for RD Station Marketing." authors = [ "Airbyte ",] diff --git a/airbyte-integrations/connectors/source-rd-station-marketing/source_rd_station_marketing/source.py b/airbyte-integrations/connectors/source-rd-station-marketing/source_rd_station_marketing/source.py index 07849d1bf9f5..9eab30bb38ed 100644 --- a/airbyte-integrations/connectors/source-rd-station-marketing/source_rd_station_marketing/source.py +++ b/airbyte-integrations/connectors/source-rd-station-marketing/source_rd_station_marketing/source.py @@ -9,7 +9,7 @@ from airbyte_cdk.models import SyncMode from airbyte_cdk.sources import AbstractSource from airbyte_cdk.sources.streams import Stream -from airbyte_cdk.sources.streams.http.auth import Oauth2Authenticator +from airbyte_cdk.sources.streams.http.requests_native_auth import Oauth2Authenticator from source_rd_station_marketing.streams import ( AnalyticsConversions, AnalyticsEmails, diff --git a/airbyte-integrations/connectors/source-surveymonkey/metadata.yaml b/airbyte-integrations/connectors/source-surveymonkey/metadata.yaml index c17e80499596..3cf5e24ab450 100644 --- a/airbyte-integrations/connectors/source-surveymonkey/metadata.yaml +++ b/airbyte-integrations/connectors/source-surveymonkey/metadata.yaml @@ -10,7 +10,7 @@ data: connectorSubtype: api connectorType: source definitionId: badc5925-0485-42be-8caa-b34096cb71b5 - dockerImageTag: 0.3.7 + dockerImageTag: 0.3.8 dockerRepository: airbyte/source-surveymonkey documentationUrl: https://docs.airbyte.com/integrations/sources/surveymonkey githubIssueLabel: source-surveymonkey diff --git a/airbyte-integrations/connectors/source-surveymonkey/pyproject.toml b/airbyte-integrations/connectors/source-surveymonkey/pyproject.toml index 645ab11e10fc..66653b257c0b 100644 --- a/airbyte-integrations/connectors/source-surveymonkey/pyproject.toml +++ b/airbyte-integrations/connectors/source-surveymonkey/pyproject.toml @@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",] build-backend = "poetry.core.masonry.api" [tool.poetry] -version = "0.3.7" +version = "0.3.8" name = "source-surveymonkey" description = "Source implementation for Surveymonkey." authors = [ "Airbyte ",] diff --git a/airbyte-integrations/connectors/source-surveymonkey/unit_tests/conftest.py b/airbyte-integrations/connectors/source-surveymonkey/unit_tests/conftest.py index 043ae568f284..74c9ae98ad01 100644 --- a/airbyte-integrations/connectors/source-surveymonkey/unit_tests/conftest.py +++ b/airbyte-integrations/connectors/source-surveymonkey/unit_tests/conftest.py @@ -8,7 +8,6 @@ import pytest from airbyte_cdk.models import SyncMode from airbyte_cdk.sources.declarative.incremental.per_partition_cursor import StreamSlice -from airbyte_cdk.sources.streams.http.auth import NoAuth from source_surveymonkey.source import SourceSurveymonkey @@ -34,7 +33,7 @@ def read_records(stream_name, slice=StreamSlice(partition={"survey_id": "3077854 @pytest.fixture def args_mock(): return { - "authenticator": NoAuth(), + "authenticator": None, "start_date": pendulum.parse("2000-01-01"), "survey_ids": [] } diff --git a/airbyte-integrations/connectors/source-surveymonkey/unit_tests/test_for_updated_state.py b/airbyte-integrations/connectors/source-surveymonkey/unit_tests/test_for_updated_state.py index 668f56bcfde1..32ef91a401c6 100644 --- a/airbyte-integrations/connectors/source-surveymonkey/unit_tests/test_for_updated_state.py +++ b/airbyte-integrations/connectors/source-surveymonkey/unit_tests/test_for_updated_state.py @@ -4,7 +4,7 @@ import pendulum import pytest -from airbyte_cdk.sources.streams.http.auth import TokenAuthenticator +from airbyte_cdk.sources.streams.http.requests_native_auth import TokenAuthenticator from source_surveymonkey.streams import Surveys diff --git a/airbyte-integrations/connectors/source-us-census/metadata.yaml b/airbyte-integrations/connectors/source-us-census/metadata.yaml index 6f2cb2342420..c9445e88d71b 100644 --- a/airbyte-integrations/connectors/source-us-census/metadata.yaml +++ b/airbyte-integrations/connectors/source-us-census/metadata.yaml @@ -2,7 +2,7 @@ data: connectorSubtype: api connectorType: source definitionId: c4cfaeda-c757-489a-8aba-859fb08b6970 - dockerImageTag: 0.1.7 + dockerImageTag: 0.1.8 dockerRepository: airbyte/source-us-census githubIssueLabel: source-us-census icon: uscensus.svg diff --git a/airbyte-integrations/connectors/source-us-census/pyproject.toml b/airbyte-integrations/connectors/source-us-census/pyproject.toml index 78b442251432..fdfaa2f51015 100644 --- a/airbyte-integrations/connectors/source-us-census/pyproject.toml +++ b/airbyte-integrations/connectors/source-us-census/pyproject.toml @@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",] build-backend = "poetry.core.masonry.api" [tool.poetry] -version = "0.1.7" +version = "0.1.8" name = "source-us-census" description = "Source implementation for Us Census." authors = [ "Airbyte ",] diff --git a/airbyte-integrations/connectors/source-us-census/source_us_census/source.py b/airbyte-integrations/connectors/source-us-census/source_us_census/source.py index 8e3b3bda6c26..5934f5375f90 100644 --- a/airbyte-integrations/connectors/source-us-census/source_us_census/source.py +++ b/airbyte-integrations/connectors/source-us-census/source_us_census/source.py @@ -12,7 +12,6 @@ from airbyte_cdk.sources import AbstractSource from airbyte_cdk.sources.streams import Stream from airbyte_cdk.sources.streams.http import HttpStream -from airbyte_cdk.sources.streams.http.auth import NoAuth def prepare_request_params(query_params: str, api_key: str) -> dict: @@ -213,6 +212,6 @@ def streams(self, config: Mapping[str, Any]) -> List[Stream]: query_params=config.get("query_params"), query_path=config.get("query_path"), api_key=config.get("api_key"), - authenticator=NoAuth(), + authenticator=None, ) ] diff --git a/airbyte-integrations/connectors/source-us-census/unit_tests/unit_test.py b/airbyte-integrations/connectors/source-us-census/unit_tests/unit_test.py index 7ad052f90af0..56e5fdbbb52e 100644 --- a/airbyte-integrations/connectors/source-us-census/unit_tests/unit_test.py +++ b/airbyte-integrations/connectors/source-us-census/unit_tests/unit_test.py @@ -6,7 +6,6 @@ import pytest import requests import responses -from airbyte_cdk.sources.streams.http.auth import NoAuth from source_us_census.source import UsCensusStream @@ -16,7 +15,7 @@ def us_census_stream(): query_params={}, query_path="data/test", api_key="MY_API_KEY", - authenticator=NoAuth(), + authenticator=None, ) diff --git a/airbyte-integrations/connectors/source-weatherstack/metadata.yaml b/airbyte-integrations/connectors/source-weatherstack/metadata.yaml index 1f0872014d89..10445f117982 100644 --- a/airbyte-integrations/connectors/source-weatherstack/metadata.yaml +++ b/airbyte-integrations/connectors/source-weatherstack/metadata.yaml @@ -2,7 +2,7 @@ data: connectorSubtype: api connectorType: source definitionId: 5db8292c-5f5a-11ed-9b6a-0242ac120002 - dockerImageTag: 0.1.4 + dockerImageTag: 0.1.5 dockerRepository: airbyte/source-weatherstack githubIssueLabel: source-weatherstack icon: weatherstack.svg diff --git a/airbyte-integrations/connectors/source-weatherstack/pyproject.toml b/airbyte-integrations/connectors/source-weatherstack/pyproject.toml index 7730aab2dc45..1085320a0c85 100644 --- a/airbyte-integrations/connectors/source-weatherstack/pyproject.toml +++ b/airbyte-integrations/connectors/source-weatherstack/pyproject.toml @@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",] build-backend = "poetry.core.masonry.api" [tool.poetry] -version = "0.1.4" +version = "0.1.5" name = "source-weatherstack" description = "Source implementation for Weatherstack." authors = [ "Airbyte ",] diff --git a/airbyte-integrations/connectors/source-weatherstack/source_weatherstack/source.py b/airbyte-integrations/connectors/source-weatherstack/source_weatherstack/source.py index c490d150bd77..a46580cdd372 100644 --- a/airbyte-integrations/connectors/source-weatherstack/source_weatherstack/source.py +++ b/airbyte-integrations/connectors/source-weatherstack/source_weatherstack/source.py @@ -9,7 +9,6 @@ from airbyte_cdk.sources import AbstractSource from airbyte_cdk.sources.streams import Stream from airbyte_cdk.sources.streams.http import HttpStream -from airbyte_cdk.sources.streams.http.auth import NoAuth from .constants import url_base @@ -320,7 +319,7 @@ def check_connection(self, logger, config) -> Tuple[bool, any]: return False, repr(e) def streams(self, config: Mapping[str, Any]) -> List[Stream]: - auth = NoAuth() + auth = None streams = [ CurrentWeather(authenticator=auth, config=config), Forecast(authenticator=auth, config=config), diff --git a/airbyte-integrations/connectors/source-webflow/metadata.yaml b/airbyte-integrations/connectors/source-webflow/metadata.yaml index 59f76c5a4cbe..50d70cc91b89 100644 --- a/airbyte-integrations/connectors/source-webflow/metadata.yaml +++ b/airbyte-integrations/connectors/source-webflow/metadata.yaml @@ -2,7 +2,7 @@ data: connectorSubtype: api connectorType: source definitionId: ef580275-d9a9-48bb-af5e-db0f5855be04 - dockerImageTag: 0.1.7 + dockerImageTag: 0.1.8 dockerRepository: airbyte/source-webflow githubIssueLabel: source-webflow icon: webflow.svg diff --git a/airbyte-integrations/connectors/source-webflow/pyproject.toml b/airbyte-integrations/connectors/source-webflow/pyproject.toml index be549d38d7c8..3adef08ce244 100644 --- a/airbyte-integrations/connectors/source-webflow/pyproject.toml +++ b/airbyte-integrations/connectors/source-webflow/pyproject.toml @@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",] build-backend = "poetry.core.masonry.api" [tool.poetry] -version = "0.1.7" +version = "0.1.8" name = "source-webflow" description = "Source implementation for Webflow." authors = [ "Airbyte ",] diff --git a/airbyte-integrations/connectors/source-webflow/source_webflow/source.py b/airbyte-integrations/connectors/source-webflow/source_webflow/source.py index f0209639ae09..f7e3daa64937 100644 --- a/airbyte-integrations/connectors/source-webflow/source_webflow/source.py +++ b/airbyte-integrations/connectors/source-webflow/source_webflow/source.py @@ -229,7 +229,7 @@ def get_json_schema(self) -> Mapping[str, Any]: """ collection_id = self.collection_id - schema_stream = CollectionSchema(authenticator=self.authenticator, collection_id=collection_id) + schema_stream = CollectionSchema(authenticator=self._session.auth, collection_id=collection_id) schema_records = schema_stream.read_records(sync_mode="full_refresh") # each record corresponds to a property in the json schema. So we loop over each of these properties diff --git a/docs/connector-development/tutorials/custom-python-connector/2-reading-a-page.md b/docs/connector-development/tutorials/custom-python-connector/2-reading-a-page.md index 11caf60c91a6..46e3e95ec0c3 100644 --- a/docs/connector-development/tutorials/custom-python-connector/2-reading-a-page.md +++ b/docs/connector-development/tutorials/custom-python-connector/2-reading-a-page.md @@ -177,7 +177,7 @@ import requests from airbyte_cdk.sources import AbstractSource from airbyte_cdk.sources.streams import Stream from airbyte_cdk.sources.streams.http import HttpStream -from airbyte_cdk.sources.streams.http.auth import Oauth2Authenticator, TokenAuthenticator +from airbyte_cdk.sources.streams.http.requests_native_auth import Oauth2Authenticator, TokenAuthenticator class SurveyMonkeyBaseStream(HttpStream, ABC): diff --git a/docs/integrations/sources/gridly.md b/docs/integrations/sources/gridly.md index bd07cd7bab3c..3b8a255e7dcb 100644 --- a/docs/integrations/sources/gridly.md +++ b/docs/integrations/sources/gridly.md @@ -39,6 +39,7 @@ Gridly support version control, by default the `grid id` is the same to the `bra | Version | Date | Pull Request | Subject | | :------ | :--------- | :------------------------------------------------------- | :---------------------------------------------------------- | +| 0.1.6 | 2024-06-26 | [40549](https://github.com/airbytehq/airbyte/pull/40549) | Migrate off deprecated auth package | | 0.1.5 | 2024-06-25 | [40495](https://github.com/airbytehq/airbyte/pull/40495) | Update dependencies | | 0.1.4 | 2024-06-22 | [39982](https://github.com/airbytehq/airbyte/pull/39982) | Update dependencies | | 0.1.3 | 2024-06-04 | [39051](https://github.com/airbytehq/airbyte/pull/39051) | [autopull] Upgrade base image to v1.2.1 | diff --git a/docs/integrations/sources/jira.md b/docs/integrations/sources/jira.md index f35b23def01e..c068812d0ed8 100644 --- a/docs/integrations/sources/jira.md +++ b/docs/integrations/sources/jira.md @@ -127,6 +127,7 @@ The Jira connector should not run into Jira API limitations under normal usage. | Version | Date | Pull Request | Subject | |:--------|:-----------|:-----------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------| +| 3.0.4 | 2024-06-26 | [40549](https://github.com/airbytehq/airbyte/pull/40549) | Migrate off deprecated auth package | | 3.0.3 | 2024-06-25 | [40444](https://github.com/airbytehq/airbyte/pull/40444) | Update dependencies | | 3.0.2 | 2024-06-21 | [40121](https://github.com/airbytehq/airbyte/pull/40121) | Update dependencies | | 3.0.1 | 2024-06-13 | [39458](https://github.com/airbytehq/airbyte/pull/39458) | Fix skipping custom_field_options entities when schema.items is options | diff --git a/docs/integrations/sources/linnworks.md b/docs/integrations/sources/linnworks.md index 399fac0e9f9f..eaf9ed78878f 100644 --- a/docs/integrations/sources/linnworks.md +++ b/docs/integrations/sources/linnworks.md @@ -74,6 +74,7 @@ Rate limits for the Linnworks API vary across endpoints. Use the [links in the * | Version | Date | Pull Request | Subject | | :------ | :--------- | :------------------------------------------------------- | :-------------------------------------------------------------------------- | +| 0.1.13 | 2024-06-26 | [40549](https://github.com/airbytehq/airbyte/pull/40549) | Migrate off deprecated auth package | | 0.1.12 | 2024-06-25 | [40275](https://github.com/airbytehq/airbyte/pull/40275) | Update dependencies | | 0.1.11 | 2024-06-22 | [40146](https://github.com/airbytehq/airbyte/pull/40146) | Update dependencies | | 0.1.10 | 2024-06-06 | [39196](https://github.com/airbytehq/airbyte/pull/39196) | [autopull] Upgrade base image to v1.2.2 | diff --git a/docs/integrations/sources/mixpanel.md b/docs/integrations/sources/mixpanel.md index 7fb64cce434e..a52043c135b7 100644 --- a/docs/integrations/sources/mixpanel.md +++ b/docs/integrations/sources/mixpanel.md @@ -58,6 +58,7 @@ Syncing huge date windows may take longer due to Mixpanel's low API rate-limits | Version | Date | Pull Request | Subject | |:--------|:-----------|:---------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| 3.1.5 | 2024-06-26 | [40549](https://github.com/airbytehq/airbyte/pull/40549) | Migrate off deprecated auth package | | 3.1.4 | 2024-06-25 | [40376](https://github.com/airbytehq/airbyte/pull/40376) | Update dependencies | | 3.1.3 | 2024-06-22 | [40138](https://github.com/airbytehq/airbyte/pull/40138) | Update dependencies | | 3.1.2 | 2024-06-18 | [38710](https://github.com/airbytehq/airbyte/pull/38710) | Update authenticator CDK package | diff --git a/docs/integrations/sources/pardot.md b/docs/integrations/sources/pardot.md index f1babe29ba0f..74ee9dcf4076 100644 --- a/docs/integrations/sources/pardot.md +++ b/docs/integrations/sources/pardot.md @@ -61,6 +61,7 @@ The Pardot connector should not run into Pardot API limitations under normal usa | Version | Date | Pull Request | Subject | | :------ | :--------- | :------------------------------------------------------- | :-------------------- | +| 0.1.6 | 2024-06-26 | [40549](https://github.com/airbytehq/airbyte/pull/40549) | Migrate off deprecated auth package | | 0.1.5 | 2024-06-25 | [40339](https://github.com/airbytehq/airbyte/pull/40339) | Update dependencies | | 0.1.4 | 2024-06-22 | [40118](https://github.com/airbytehq/airbyte/pull/40118) | Update dependencies | | 0.1.3 | 2024-06-04 | [39087](https://github.com/airbytehq/airbyte/pull/39087) | [autopull] Upgrade base image to v1.2.1 | diff --git a/docs/integrations/sources/rd-station-marketing.md b/docs/integrations/sources/rd-station-marketing.md index 56e385a22242..3a28f0a41640 100644 --- a/docs/integrations/sources/rd-station-marketing.md +++ b/docs/integrations/sources/rd-station-marketing.md @@ -47,6 +47,7 @@ Each endpoint has its own performance limitations, which also consider the accou | Version | Date | Pull Request | Subject | | :------ | :--------- | :-------------------------------------------------------- | :------------------------------- | +| 0.1.9 | 2024-06-26 | [40549](https://github.com/airbytehq/airbyte/pull/40549) | Migrate off deprecated auth package | | 0.1.8 | 2024-06-25 | [40324](https://github.com/airbytehq/airbyte/pull/40324) | Update dependencies | | 0.1.7 | 2024-06-22 | [40145](https://github.com/airbytehq/airbyte/pull/40145) | Update dependencies | | 0.1.6 | 2024-06-06 | [39228](https://github.com/airbytehq/airbyte/pull/39228) | [autopull] Upgrade base image to v1.2.2 | diff --git a/docs/integrations/sources/surveymonkey.md b/docs/integrations/sources/surveymonkey.md index 5b88c6063a37..6653fd0815e4 100644 --- a/docs/integrations/sources/surveymonkey.md +++ b/docs/integrations/sources/surveymonkey.md @@ -75,6 +75,7 @@ To cover more data from this source we use caching. | Version | Date | Pull Request | Subject | | :------ | :--------- | :------------------------------------------------------- | :------------------------------------------------------------------------------- | +| 0.3.8 | 2024-06-26 | [40549](https://github.com/airbytehq/airbyte/pull/40549) | Migrate off deprecated auth package | | 0.3.7 | 2024-06-25 | [40298](https://github.com/airbytehq/airbyte/pull/40298) | Update dependencies | | 0.3.6 | 2024-06-22 | [40031](https://github.com/airbytehq/airbyte/pull/40031) | Update dependencies | | 0.3.5 | 2024-06-07 | [39329](https://github.com/airbytehq/airbyte/pull/39329) | Add `CheckpointMixin` for state management | diff --git a/docs/integrations/sources/us-census.md b/docs/integrations/sources/us-census.md index cc56826178ab..e3a64f9dd22e 100644 --- a/docs/integrations/sources/us-census.md +++ b/docs/integrations/sources/us-census.md @@ -45,6 +45,7 @@ In addition, to understand how to configure the dataset path and query parameter | Version | Date | Pull Request | Subject | | :------ | :--------- | :------------------------------------------------------- | :------------------------------------------------ | +| 0.1.8 | 2024-06-26 | [40549](https://github.com/airbytehq/airbyte/pull/40549) | Migrate off deprecated auth package | | 0.1.7 | 2024-06-25 | [40294](https://github.com/airbytehq/airbyte/pull/40294) | Update dependencies | | 0.1.6 | 2024-06-22 | [39981](https://github.com/airbytehq/airbyte/pull/39981) | Update dependencies | | 0.1.5 | 2024-06-06 | [39262](https://github.com/airbytehq/airbyte/pull/39262) | [autopull] Upgrade base image to v1.2.2 | diff --git a/docs/integrations/sources/weatherstack.md b/docs/integrations/sources/weatherstack.md index a4b730bcce2f..ad6cc610c3d9 100644 --- a/docs/integrations/sources/weatherstack.md +++ b/docs/integrations/sources/weatherstack.md @@ -39,6 +39,7 @@ The free plan allows 250 calls per month, you won't get beyond these limits with | Version | Date | Pull Request | Subject | | :------ | :--------- | :------------------------------------------------------- | :-------------- | +| 0.1.5 | 2024-06-26 | [40549](https://github.com/airbytehq/airbyte/pull/40549) | Migrate off deprecated auth package | | 0.1.4 | 2024-06-25 | [40414](https://github.com/airbytehq/airbyte/pull/40414) | Update dependencies | | 0.1.3 | 2024-06-22 | [40086](https://github.com/airbytehq/airbyte/pull/40086) | Update dependencies | | 0.1.2 | 2024-06-06 | [39190](https://github.com/airbytehq/airbyte/pull/39190) | [autopull] Upgrade base image to v1.2.2 | diff --git a/docs/integrations/sources/webflow.md b/docs/integrations/sources/webflow.md index 53014c62979f..b525858a5f78 100644 --- a/docs/integrations/sources/webflow.md +++ b/docs/integrations/sources/webflow.md @@ -41,6 +41,7 @@ If you are interested in learning more about the Webflow API and implementation | Version | Date | Pull Request | Subject | | :------ | :--------- | :------------------------------------------------------- | :--------------------------------------------------------------------- | +| 0.1.8 | 2024-06-26 | [40549](https://github.com/airbytehq/airbyte/pull/40549) | Migrate off deprecated auth package | | 0.1.7 | 2024-06-25 | [40259](https://github.com/airbytehq/airbyte/pull/40259) | Update dependencies | | 0.1.6 | 2024-06-22 | [40009](https://github.com/airbytehq/airbyte/pull/40009) | Update dependencies | | 0.1.5 | 2024-06-06 | [39151](https://github.com/airbytehq/airbyte/pull/39151) | [autopull] Upgrade base image to v1.2.2 |