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

Pardot changes the authentication method in Feb 2021 #17

Open
daigotanaka opened this issue Dec 23, 2020 · 2 comments
Open

Pardot changes the authentication method in Feb 2021 #17

daigotanaka opened this issue Dec 23, 2020 · 2 comments

Comments

@daigotanaka
Copy link

Hi. Is the tap ready for the big authentication method change in Feb 2021? Everything will break if the tap doesn't update. I believe this tap is also used by StitchData's official integration and I don't see a trait of update efforts either on the GitHub repo. Am I wrong?

"In the Spring '21 and later releases of the Pardot API, authentication with the API key / user key will not be supported."
http://developer.pardot.com/kb/authentication/

@daigotanaka
Copy link
Author

daigotanaka commented Jan 5, 2021

FYI: There is an on-going discussion about updating PyPardot4 and I contributed by clearing the way of how to implement the Salesforce token auth method: mneedham91/PyPardot4#46 (comment)
By default, the token does not expire until revoked. So, the easiest would be to manually obtain token like the way scripted in setup_salesforce_auth_keys() method in the commit I referred in the comment. The code in this commit also allows instantiating the class with token & business_unit_id.

@daigotanaka
Copy link
Author

daigotanaka commented Jan 5, 2021

Just realized that I was confused about the refresh token policy. The refresh token doesn't expire by default but the token will expire if you do not use it for a while. So one way is to store refresh_token, consumer_key, and consumer_secret to obtain the token in the first call. (code: anelendata/PyPardotSF@81e7234#diff-74771ec4a270fac563e3db312b4383c44598a049af2871431a456501b85553ef)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant