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

Authorise button links to Setting tab an doesn't' connect to Salesforce account #532

Open
elliewhittaker opened this issue Apr 15, 2024 · 5 comments
Labels
needs to be replicated We need to see this issue again to know how it's happening

Comments

@elliewhittaker
Copy link

Describe the bug
Salesforce object sync plugin settings have been applied correctly for the live version. When we click to authorise and link to the correct Salesforce account we are taken back to the settings tab and not connected to Salesforce at all. This has happened with multiple people testing it.

To Reproduce
See video

steps.to.reproduct.button.not.working.error.1.mov

Expected behavior
We want to link to Salesforce to finalise the integration.

Screenshots

Environment (please complete the following information):

  • Other relevant plugins Advanced Custom Fields PRO, bbPress, BuddyPress, Gravity Forms
@jonathanstegall
Copy link
Member

Nobody is currently working on this plugin, but here's my advice:

  • I can see that there's a URL query string that you have when you are sent back to the authorize tab. What is that query string value? It seems like it starts with "missing-required" but I can't see what it ends with, but my guess is that it will be at least somewhat useful in what you might be missing.
    image
  • You should also check your server logs and see if there are any relevant PHP errors.

@jonathanstegall jonathanstegall added the needs to be replicated We need to see this issue again to know how it's happening label May 17, 2024
@boblodi
Copy link

boblodi commented May 17, 2024

I am having the same problem. I get "error=invalid_client_id&error_description=client%20identifier%20invalid" no matter how long i wait, either by setting a timer or waiting overnight. I have tried different apps, different app names, different settings, different secret keys, and i cannot get it to authenticate this whole week.

@jonathanstegall
Copy link
Member

@boblodi that is a very different problem than the original post. It suggests that something is wrong with your Salesforce app. You might be using the wrong base URL (for example, you might be using production instead of sandbox, or vice versa), or one of the credentials is entered incorrectly. But in any case, it's not the same error code as reported initially (something about a missing required value), so it's likely that what you're seeing is not caused by the same problem.

@boblodi
Copy link

boblodi commented May 18, 2024 via email

@tazar003
Copy link

tazar003 commented May 18, 2024

I am actually having a similar issue, but probably with more factors. I am using WPFusion and it's not honoring the existing connection that is setup. So I disable the setting in Fusion "Use WP Fusion's credentials to authorize Object Sync for Salesforce."
I setup the new app and enter all the details as I have in other sites. When I click authorize I am getting this URL

/wp-admin/options-general.php?page=object-sync-salesforce-admin&error_description=missing+required+code+challenge

Plugins: BuddyBoss, WPFusion, MiniOrange SAML2.0. (Tried deactivating all plugins)

PHP: 8.3 (Also tried 8.1 and 8.2)
Error on screen: Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /www/ntlhub_725/public/wp-content/plugins/object-sync-for-salesforce/classes/class-object-sync-sf-admin.php on line 2677

Fix:
For the Login Base URL I was using 'login.salesforce.com'
I switched this to https://****.my.salesforce.com/

Once I updated this, I was able to authorize and connect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs to be replicated We need to see this issue again to know how it's happening
Projects
None yet
Development

No branches or pull requests

4 participants