-
Notifications
You must be signed in to change notification settings - Fork 38
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 authentication after spring 2021 #46
Comments
Unless addressed, this integration wrapper will stop working after February 15th 2021 'Spring Release. @mneedham91 any thoughts? Has anyone from Pardot reached out to assist or advise? |
Salesforce documentation identifies several alternative OAuth workflow options for replacing the current Pardot UID/pwd based approach. In the likelihood that there will not be a 'one size fits all' solution, anticipate need for 'Authorization Option' parameter for this wrapper that supports various options as they are implemented, including backward compatibility to the current approach. I am working with a client that is already using SSO Salesforce UID/Pwd for interactive access to Pardot and evaluating options for making the Pardot API (and this wrapper) work. The Pardot API authentication page includes an example using this workflow with a mild caveat on its use. The following from the above referenced Salesforce documentation page includes much stronger language concerning the risks of using this option:
That said, I "think" my client has other Salesforce API activity using this OAuth workflow, so may end up going with this I intend to have our solution implemented in late Jan/early Feb timeframe. fyi - @mneedham91 |
I've confirmed that my client is using the Salesforce UID/Pwd OAuth workflow for their other non-Pardot Salesforce API activity. However, they are encrypting and storing the pwd/uid in an Azure AD vault, using a departmental (vs enterpise std) approach that includes unrelated (to my efforts) tech stack components. Consequently, have just started looking at AWS Encryption SDK as a possibly generic option that others here may wish to leverage. It's available in a python library, free, and entirely client side - no requirement to use AWS. See AWS Encryption SDK for info. I'm going to continue to investigate, but will need to clear this approach with the client's security team after the holidays. fyi - @mneedham91 |
By the way, I did have the client raise this topic with their Salesforce support contact. Their response was to reference this issue. |
In case people need something that works before the Feb 15, 2021 deadline, here is an example implementation:
Update: I forked and released PyPardotSF: https://github.com/anelendata/PyPardotSF (*) Bulk Import API (v3): https://developer.pardot.com/kb/api-version-3/import/ |
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@81e7234#diff-74771ec4a270fac563e3db312b4383c44598a049af2871431a456501b85553ef) |
Daigo, This is awesome!! Thank you for level of detail re. the connected app configuration. |
Btw, I'm deciding whether to permanently fork PyPardot4 to release a package (with some other name and after code & doc clean up) that handles both ver 3 & 4 API and Salesforce OAuth described above. It also supports Import API to batch upload the prospects (my main motivation for the fork). Update: I forked and released PyPardotSF: https://github.com/anelendata/PyPardotSF |
Daigo, I'm successfully getting the token & refresh token. Am I correct in thinking I need to manually execute the post method to get headers built before I can do anything else? If so, can you provide example? What I'm really asking for is updated "Using it is simple" example as in the readme for original. (Apologies - brand new to python, but appreciating opportunity to learn on your code). |
@skpadgett: Let's move this discussion to https://github.com/anelendata/PyPardotSF |
Hi @daigotanaka, I tried your package PyPardotSF. I can get the new access token with the refresh token, however the access token does not work. For example, when I ran |
Hi, do you know if this issue would be resolved by Feb 15th or should we start looking for alternatives? |
It's been working fine for me. Did you follow the steps described on PardotSF README.md?
|
@mneedham91 is this repo still maintained? |
Hi @daigotanaka I followed the steps in readme again, and it works now. Thank you so much! |
As per pardot documentation, "In the Spring '21 and later releases of the Pardot API, authentication with the API key / user key will not be supported".
How does pypardot4 is going to me impacted with this?
The text was updated successfully, but these errors were encountered: