Hi Vedanth,
The invalid_grant error usually occurs due to authentication or OAuth configuration issues between Salesforce and Databricks Lakeflow Connect.
Could you please verify the following points:
- Ensure the Salesforce user account is not locked and has API access enabled.
- Verify whether you are using the correct login URL:
- If password-based authentication is used, make sure the Salesforce security token is appended to the password.
- Check whether the Connected App OAuth scopes include:
- Full access (full)
- Refresh token access (refresh_token, offline_access)
- Confirm that IP restrictions or MFA policies are not blocking the authentication request.
- Try reauthorizing the connection after resetting the security token.
- Also verify whether the connected app is approved for all users or the specific integration user profile.
This issue is commonly caused by expired refresh tokens, incorrect OAuth scopes, MFA enforcement, or incorrect environment endpoints.