Can't authorize salesforce integration

joemailey1

Premier Customer
Joined
May 13, 2020
Messages
10
Reaction score
1
We are currently trying to setup the crm integration with salesforce.
But we are currently getting errors when trying to authorise.

We get a message displayed:
{
"state": [
"The state field is required."
]
}

With the url returning: api/oauth2crm?error=invalid_request&error_description=missing+required+code+challenge

We've followed the guidelines and double checked the setup. But it's still failing.
We also followed a forum post suggesting we turn off PKCE as suggested on other forum posts.

Anything else we can do / follow to try and get to the bottom of this?
 

Attachments

  • pkc.png
    pkc.png
    3.9 KB · Views: 12
I am getting exactly the same - I have redone the Salesforce side twice but can't seem to fix it :-(

Has anyone got it working?
 
Following the guide we eventually got it working.
I found another post about someone trying to get it working in a salesforce sandbox / test environment.

Which pointed me to the fix we need to do. The template supplied with 3CX is for a production sales force.
So it wouldn't work in our test salesforce test / sandbox environment.

We had to take a copy of the template and replace the salesforce URL being called in it with the one for the sandbox / test environment. Then it worked just like it says in the guide.
 
Following the guide we eventually got it working.
I found another post about someone trying to get it working in a salesforce sandbox / test environment.

Which pointed me to the fix we need to do. The template supplied with 3CX is for a production sales force.
So it wouldn't work in our test salesforce test / sandbox environment.

We had to take a copy of the template and replace the salesforce URL being called in it with the one for the sandbox / test environment. Then it worked just like it says in the guide.
Correct, if you're integrating with a testing sandbox, the URL should be changed from "login.salesforce.com" to "test.salesforce.com".
 

Forum statistics

Threads
112,147
Messages
590,960
Members
165,167
Latest member
Finatra.us