In only a few weeks, Salesforce is moving all Pardot users to single sign-on (SSO) and all API integrations must use Salesforce OAuth.
If youāre adjusting the Pardot plugin on your WordPress website to get ready for these changes and, despite following the steps in our first blog, are hitting authentication errors, this blog may help.
In this post, weāre going to cover how to resolve common errors that may come up as you authenticate the Pardot Plugin in WordPress and the final step to authenticate user account settings for SSO.
1. Callback URL Error
After entering the Consumer Key, Consumer Secret and Business Unit, itās time to click the āAuthenticate with Salesforceā button. When doing so, if the button pulls up the following error on a new white page window, you likely have a problem with your connected appās callback URL.
error=redirect_uri_mismatch&error_description=redirect_uri%20must%20match%20configuration
In order to fix this error, edit your connected appās callback URL to be the URL of the Pardot pluginās settings page. For example, the callback URL should be something similar to the following URL.
https://yourdomain.com/wp-admin/options-general.php?page=pardot

2. Generic OAuth Error
If your previous errors change to the following OAuth Error, donāt fret, we have you covered. This error can be caused by the OAuth scopes field on your connected app.
Edit the app once more and add both the āProvide access to your data via the Web (web)ā and āPerform requests on your behalf at any time (refresh_token, offline_access)ā options in addition to your Pardot API option that should have been added from the first blog.


3. Authenticate your user account settings for SSO (without errors)
All thatās left to do now is to turn that ugly red text into beautiful green affirmation. Click āauthenticate with salesforceā and use your Salesforce login credentials (with 2FA if enabled) to complete your SSO setup.


Get ready for the SSO user updates coming in February
Hopefully, by following the steps above, you feel more prepared for the API and single sign-on updates coming up soon. What are other questions you have about the coming changes? And what have you done to prepare? Let us know in the comments.