Affected: Apex server-side SDK
Symptoms
Both of the following error occurs when running the bridge:
Salesforce auth failure: 400{"error":"invalid_grant","error_description":"authentication failure"}<nil>
Error running bridge: {"error":"invalid_grant","error_description":"authentication failure"}
Cause
Either the OAuth 2.0 Username-Password flow is blocked, or the OAUTH_USERNAME or OAUTH_PASSWORD environment variables are invalid.
Solution
- Ensure that the Allow OAuth Username-Password Flows option is enabled.
- Double-check that the
OAUTH_USERNAMEandOAUTH_PASSWORDenvironment variables are correct.