I am trying to set up Salesforce as a new source. ...
# replication-ask-ai
j
I am trying to set up Salesforce as a new source. When I click authenticate, I get the error message "error=redirect_uri_mismatch&error_description=redirect_uri%20must%20match%20configuration". I have set the redirect uri in my Salesforce app to http://localhost:8000/auth_flow as directed by Airbyte, so I'm not sure what to do!
k
The error
redirect_uri_mismatch
means the redirect URI registered in your Salesforce Connected App doesn't exactly match what Airbyte is sending during the OAuth flow. A few things to check: 1. Verify the exact redirect URI: The knowledge sources indicate that for self-managed Airbyte, the callback URL should be in the format
https://your-airbyte-domain.com/auth/callback
. [Salesforce destination setup] Note that
http://localhost:8000/auth_flow
uses
http
(not
https
) and the path
/auth_flow
— make sure this matches exactly what Airbyte displays in its UI when setting up the connector, including the protocol, domain, port, and path. 2. Use the URI shown in the Airbyte UI: The Airbyte documentation advises: "Confirm that the redirect URI registered with the third-party platform matches the URI used by Airbyte. Airbyte's user interface provides this URI when you set up a new connector. Make sure you enter this value exactly." [OAuth troubleshooting] Double-check the Airbyte UI to confirm the exact URI it expects, as it may differ slightly from what you've entered in Salesforce. 3. Check for trailing slashes or typos: Even a small difference (e.g., a trailing slash,
http
vs
https
, or a different path) will cause this error. The knowledge sources don't provide more specific details about the exact redirect URI format for a localhost self-managed setup, so I'd recommend carefully copying the URI directly from the Airbyte connector setup screen and pasting it into your Salesforce Connected App's Callback URL field. 👍 0 button 👎 0 button â„šī¸ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.
j
@kapa.ai Now I am getting "error=invalid_request&error_description=missing%20required%20code%20challenge"
k
New message text here
j
@kapa.ai Can you help me generate a refresh token? I'm getting {"error":"unknown_error","error_description":"retry your request"} when trying to follow the directions linked by Airbyte (https://medium.com/@bpmmendis94/obtain-access-refresh-tokens-from-salesforce-rest-api-a324fe4ccd9b)
k
New message text here