Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Source Instagram: migrate to advanced auth #26656

Merged
Merged
Show file tree
Hide file tree
Changes from 23 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
92b7e1f
Connector health: source hubspot, gitlab, snapchat-marketing: fix builds
davydov-d May 10, 2023
01ee45e
Merge branch 'master' of github.com:airbytehq/airbyte
davydov-d May 10, 2023
4ae17ec
Merge branch 'master' of github.com:airbytehq/airbyte
davydov-d May 12, 2023
3fadfe3
Merge branch 'master' of github.com:airbytehq/airbyte
davydov-d May 12, 2023
a51c998
Merge branch 'master' of github.com:airbytehq/airbyte
davydov-d May 15, 2023
afd1fae
Merge branch 'master' of github.com:airbytehq/airbyte
davydov-d May 16, 2023
72efed0
Merge branch 'master' of github.com:airbytehq/airbyte
davydov-d May 17, 2023
db47568
Merge branch 'master' of github.com:airbytehq/airbyte
davydov-d May 17, 2023
7880cf0
Merge branch 'master' of github.com:airbytehq/airbyte
davydov-d May 19, 2023
d1d08dc
Merge branch 'master' of github.com:airbytehq/airbyte
davydov-d May 19, 2023
5e731f7
Merge branch 'master' of github.com:airbytehq/airbyte
davydov-d May 22, 2023
a8780f9
Merge branch 'master' of github.com:airbytehq/airbyte
davydov-d May 23, 2023
cac6c95
Merge branch 'master' of github.com:airbytehq/airbyte
davydov-d May 24, 2023
c772743
Merge branch 'master' of github.com:airbytehq/airbyte
davydov-d May 24, 2023
ebf235c
Merge branch 'master' of github.com:airbytehq/airbyte
davydov-d May 24, 2023
313db7d
Merge branch 'master' of github.com:airbytehq/airbyte
davydov-d May 25, 2023
779dfee
Merge branch 'master' of github.com:airbytehq/airbyte
davydov-d May 26, 2023
92995de
Merge branch 'master' of github.com:airbytehq/airbyte
davydov-d May 26, 2023
651eb1e
#26237 source instagram - migrate to advancedAuth
davydov-d May 26, 2023
ce72148
source instagram: upd changelog
davydov-d May 26, 2023
e8ea574
#26237: source instagram: upd exepcted spec
davydov-d May 26, 2023
986f29e
Merge branch 'master' of github.com:airbytehq/airbyte
davydov-d May 29, 2023
b13e80f
Merge branch 'master' into ddavydov/#26237-source-instagram-migrate-t…
davydov-d May 29, 2023
c70d132
Merge branch 'master' into ddavydov/#26237-source-instagram-migrate-t…
davydov-d May 29, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -12,5 +12,5 @@ RUN pip install .
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]

LABEL io.airbyte.version=1.0.6
LABEL io.airbyte.version=1.0.7
LABEL io.airbyte.name=airbyte/source-instagram
Expand Up @@ -24,12 +24,48 @@
},
"supportsIncremental": true,
"supported_destination_sync_modes": ["append"],
"authSpecification": {
"auth_type": "oauth2.0",
"oauth2Specification": {
"rootObject": [],
"oauthFlowInitParameters": [],
"oauthFlowOutputParameters": [["access_token"]]
"advanced_auth": {
"auth_flow_type": "oauth2.0",
"oauth_config_specification": {
"complete_oauth_output_specification": {
"type": "object",
"properties": {
"access_token": {
"type": "string",
"path_in_connector_config": [
"access_token"
]
}
}
},
"complete_oauth_server_input_specification": {
"type": "object",
"properties": {
"client_id": {
"type": "string"
},
"client_secret": {
"type": "string"
}
}
},
"complete_oauth_server_output_specification": {
"type": "object",
"properties": {
"client_id": {
"type": "string",
"path_in_connector_config": [
"client_id"
]
},
"client_secret": {
"type": "string",
"path_in_connector_config": [
"client_secret"
]
}
}
}
}
}
}
Expand Up @@ -5,7 +5,7 @@ data:
connectorSubtype: api
connectorType: source
definitionId: 6acf6b55-4f1e-4fca-944e-1a3caef8aba8
dockerImageTag: 1.0.6
dockerImageTag: 1.0.7
dockerRepository: airbyte/source-instagram
githubIssueLabel: source-instagram
icon: instagram.svg
Expand Down
Expand Up @@ -5,7 +5,7 @@
from datetime import datetime
from typing import Any, List, Mapping, Tuple

from airbyte_cdk.models import AuthSpecification, ConnectorSpecification, DestinationSyncMode, OAuth2Specification
from airbyte_cdk.models import AdvancedAuth, ConnectorSpecification, DestinationSyncMode, OAuthConfigSpecification
from airbyte_cdk.sources import AbstractSource
from airbyte_cdk.sources.streams import Stream
from pydantic import BaseModel, Field
Expand Down Expand Up @@ -85,10 +85,42 @@ def spec(self, *args, **kwargs) -> ConnectorSpecification:
supportsIncremental=True,
supported_destination_sync_modes=[DestinationSyncMode.append],
connectionSpecification=ConnectorConfig.schema(),
authSpecification=AuthSpecification(
auth_type="oauth2.0",
oauth2Specification=OAuth2Specification(
rootObject=[], oauthFlowInitParameters=[], oauthFlowOutputParameters=[["access_token"]]
advanced_auth=AdvancedAuth(
auth_flow_type="oauth2.0",
oauth_config_specification=OAuthConfigSpecification(
complete_oauth_output_specification={
"type": "object",
"properties": {
"access_token": {
"type": "string",
"path_in_connector_config": ["access_token"]
}
}
},
complete_oauth_server_input_specification={
"type": "object",
"properties": {
"client_id": {
"type": "string"
},
"client_secret": {
"type": "string"
}
}
},
complete_oauth_server_output_specification={
"type": "object",
"properties": {
"client_id": {
"type": "string",
"path_in_connector_config": ["client_id"]
},
"client_secret": {
"type": "string",
"path_in_connector_config": ["client_secret"]
}
}
}
),
),
)
1 change: 1 addition & 0 deletions docs/integrations/sources/instagram.md
Expand Up @@ -82,6 +82,7 @@ AirbyteRecords are required to conform to the [Airbyte type](https://docs.airbyt

| Version | Date | Pull Request | Subject |
|:--------|:-----------|:---------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------|
| 1.0.7 | 2023-05-26 | [26656](https://github.com/airbytehq/airbyte/pull/26656) | Remove authSpecification from connector specification in favour of advancedAuth |
| 1.0.6 | 2023-03-28 | [26599](https://github.com/airbytehq/airbyte/pull/26599) | Media posted before business account conversion |
| 1.0.5 | 2023-03-28 | [24634](https://github.com/airbytehq/airbyte/pull/24634) | Add user-friendly message for no instagram_business_accounts case |
| 1.0.4 | 2023-03-15 | [23671](https://github.com/airbytehq/airbyte/pull/23671) | Add info about main permissions in spec and doc links in error message to navigate user |
Expand Down