-
Notifications
You must be signed in to change notification settings - Fork 16
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
Problems with Salesforce SSO authentication - Authentication lost after a few days #46
Comments
Thanks for the report, @cardax! Please work with Pardot Support to get this issue debugged and resolved. |
Thanks for your message @logoscreative. Unfortunately after 1 week I still didn't solve the issue with Salesforce support. |
Good morning @logoscreative, I would switch back to Pardot Authentication method (which worked perfectly), but it's going to be removed by Salesforce in Feb 2021... https://help.salesforce.com/articleView?id=000324534&type=1&mode=1 |
We probably have the same problem. For us, this error occurs about once every day. When I was looking for the reason for the error, I noticed that the script was checking for the wrong status code. Here is the full answer from the Salesforce API:
Is it possible that the access token is not renewed by the refresh token because it is waiting for the wrong status code? Here is the corresponding file with the line where I suspect the error: https://github.com/pardot/pardot-for-wordpress/blob/master/trunk/includes/pardot-api-class.php#L634 |
Thanks for your investigation @AndrejGen! For the time being the plug-in is unreliable, so we're switching back to including the tracking scripts via Google Tag Manager and Pardot Forms by HTML instead of this plug-in. I've opened a second case with Salesforce, and I'll update this issue if they can find some other explanation. |
Out of curiosity, I've modified the check for HTTP error 400 to 401 in the PHP file pardot-api-class.php and after refreshing the page it has correctly used the refresh token to get a new access token... |
@AndrejGen apparently, as you mentioned, the problem is only partially solved with the change in #47 (@noshirpatel-salesforce ). |
@AndrejGen and anyone else having the same problem and reading this thread: |
So the issue above, was marked fixed but they only provided a temporary workaround (which might last you a day or two until it is unauthenticated again). So as of right now, this issue is only active here. |
I am experiencing this same issue followed the steps in the known issue case and it is still occurring. |
Good morning,
I've configured the Pardot plugin to connect to our Salesforce org via SSO for different websites (1 Connected App per website).
After the initial configuration everything works for a few days, but after a while I get a message like "The Pardot plugin is activated (yay!), but it needs some quick configuration to start working correctly." and when I go to the settings page I see that the authentication has been lost.
Is it an issue with refresh tokens?
I configured the connected app to "Relax IP restrictions" and "Refresh Token Policy: Refresh token is valid until revoked".
The problem is that, when it loses authentication, the Campaign is gone and all Pardot forms and dynamic content disappear from the website so we can't really rely on this plugin for the moment...
Thanks in advance for your support!
The text was updated successfully, but these errors were encountered: