Trouble Authenticating Salesforce Dev Edition with Celigo

Hi all,

I'm setting up a Celigo connection to a Salesforce Developer Edition org, but I keep hitting authentication errors, both with the OAuth 2.0 refresh token and JWT bearer flows. Here's what I've tried and what's happening:

Refresh Token Flow:
When the popup shows, I click "Use another domain".

I've tried:

But no matter what, I get this:

{
  "code": "oauth_statuscode_mismatch",
  "message": "salesforce.com returned statusCode 400, while expected status code is 200. Response body = {\"error\":\"invalid_grant\",\"error_description\":\"authentication failure\"}",
  "source": "connection",
  "resolved": false
}

JWT Bearer Token Flow:
I followed the JWT setup steps for my Connected App and used the same domain options above, but the response is:

{
  "code": "oauth_statuscode_mismatch",
  "message": "salesforce.com returned statusCode 400, while expected status code is 200. Response body = {\"error\":\"invalid_grant\",\"error_description\":\"user hasn't approved this consumer\"}",
  "source": "connection",
  "resolved": false
}

Salesforce Setup So Far:

  • Created a Connected App (Integrator_io)
  • Tried both "All users may self-authorize" and "Admin-approved users are pre-authorized"
  • Relaxed IP restrictions

Still no luck. Any help would be appreciated.

Some screenshots:


Hi Nuri,
I know we connected privately, but wanted to carry this over to this thread.
I just tried creating a new connection to my dev environment, and it worked on the first try. I used refresh token and I did not have to change the domain. I'm not sure if you tried this, but are you using the "Production" account type?
-Gene

:slight_smile: i @genecarbone Thanks.

That did the trick. Indeed in the Celigo Salesforce connection I had to change the Account type to Salesforce Production, which isn’t very intuitive at first, lol.

Works now!:slight_smile:

1 Like