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:
- My Developer Edition domain (e.g., https://myinstance.salesforce.com)
- The default https://login.salesforce.com
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: