-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 Pipedrive: add oAuth support #6821
Conversation
params = {"api_token": self._api_token, "limit": self.page_size, **next_page_token} | ||
params = {"limit": self.page_size, **next_page_token} | ||
|
||
if isinstance(self.authenticator, NoAuth): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks weird, why can't we create an authenticator inherited from AuthBase? ParamAuthenticator?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@keu We can, but we're trying to add new features for OAuth without changing existing ones. Should I find another solution?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comments
@@ -135,6 +135,8 @@ jobs: | |||
MYSQL_SSH_PWD_TEST_CREDS: ${{ secrets.MYSQL_SSH_PWD_TEST_CREDS }} | |||
POSTHOG_TEST_CREDS: ${{ secrets.POSTHOG_TEST_CREDS }} | |||
PIPEDRIVE_INTEGRATION_TESTS_CREDS: ${{ secrets.PIPEDRIVE_INTEGRATION_TESTS_CREDS }} | |||
PIPEDRIVE_INTEGRATION_TESTS_CREDS_OAUTH: ${{ secrets.PIPEDRIVE_INTEGRATION_TESTS_CREDS_OAUTH }} | |||
PIPEDRIVE_INTEGRATION_TESTS_CREDS_OLD: ${{ secrets.PIPEDRIVE_INTEGRATION_TESTS_CREDS_OLD }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PIPEDRIVE_INTEGRATION_TESTS_CREDS_OLD: ${{ secrets.PIPEDRIVE_INTEGRATION_TESTS_CREDS_OLD }} | |
PIPEDRIVE_INTEGRATION_TESTS_CREDS_TOKEN: ${{ secrets.PIPEDRIVE_INTEGRATION_TESTS_CREDS_TOKEN }} |
@sherifnada if we going to support both,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think _OLD
is the legacy format of the config and is present to make sure backwards compat is working
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct
@@ -106,7 +106,9 @@ write_standard_creds source-paypal-transaction "$PAYPAL_TRANSACTION_CREDS" | |||
write_standard_creds source-mysql "$MYSQL_SSH_KEY_TEST_CREDS" "ssh-key-config.json" | |||
write_standard_creds source-mysql "$MYSQL_SSH_PWD_TEST_CREDS" "ssh-pwd-config.json" | |||
write_standard_creds source-posthog "$POSTHOG_TEST_CREDS" | |||
write_standard_creds source-pipedrive "$PIPEDRIVE_INTEGRATION_TESTS_CREDS" | |||
write_standard_creds source-pipedrive "$PIPEDRIVE_INTEGRATION_TESTS_CREDS" "config.json" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why there are 3 different configs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 - new style config for OAuth
2 - new style config for Token auth
3 - old style config for Token auth
/test connector=connectors/source-pipedrive
|
airbyte-integrations/connectors/source-pipedrive/source_pipedrive/spec.json
Outdated
Show resolved
Hide resolved
…ive/spec.json Co-authored-by: Sherif A. Nada <snadalive@gmail.com>
/test connector=connectors/source-pipedrive
|
/test connector=connectors/source-pipedrive
|
/publish connector=connectors/source-pipedrive
|
* Add oauth support * Upd changelog * Update airbyte-integrations/connectors/source-pipedrive/source_pipedrive/spec.json Co-authored-by: Sherif A. Nada <snadalive@gmail.com> Co-authored-by: Sherif A. Nada <snadalive@gmail.com>
What
Closes #6821
Pre-merge Checklist
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
bootstrap.md
. See description and examplesdocs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampleAirbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing./publish
command described here