cancel
Showing results for 
Search instead for 
Did you mean: 

Error occurring on Salesforce Authentication skill - Authenticate With Credential

LuweiZhang
Level 3
I am using Salesforce Authentication skill.I can get the Consumer Key and Consumer Secret, but the error is occurring on Authenticate With Credential Action.
"Internal : Unexpected error Error during Web API HTTP Request
HTTP Status Code: 400
HTTP Response Content: {"error":"invalid_grant","error_description":"authentication failure"}"
22120.png

22121.png

Thanks in Advance,
Luwei
1 BEST ANSWER

Helpful Answers

Additional Information:(Sorry for checking the above comments so late.)

I modified the Connected App in Salesforce (Edit Policies) as below.
Step1. Open the App Manager from Set Up.
22111.png
22112.png

Step2. Choose the APP you Created, and Click "Manage".
22113.png

Step3. Click "Edit Policies"
22114.png
Step4. Change the OAuth Policies below.
・Relax IP restrictions
・Permitted Users to "All users may self-authorize"22115.png
​​
------------------------------
Luwei Zhang
Consultant
Asia/Tokyo
------------------------------

View answer in original post

4 REPLIES 4

LuweiZhang
Level 3
I was able to resolve it.
Modify the Connected app in Salesforce: (Edit Policies)

・Relax IP restrictions
・Permitted Users to "All users may self-authorize"

Hi Luwei,

Request you to please explain where exactly you did the below 2 changes

・Relax IP restrictions
・Permitted Users to "All users may self-authorize"

Thanks,
Anirudh

------------------------------
Anirudh Pavan Prasad CG
IT ANalyst
TCS
Asia/Dili
------------------------------

Anonymous
Not applicable
Invalid Grant error means password that you pass is incorrect. Adddtionally the comments below by Luwei will also help 
Also you need to enable the API access for the Profile Set in Salesforce 
Below settings need to be adjusted in the connected app which needs to be created to access the Salesforce API .

------------------------------
Wasif Ahmad
Consultant
Deloitte
Asia/Kolkata
------------------------------

Additional Information:(Sorry for checking the above comments so late.)

I modified the Connected App in Salesforce (Edit Policies) as below.
Step1. Open the App Manager from Set Up.
22111.png
22112.png

Step2. Choose the APP you Created, and Click "Manage".
22113.png

Step3. Click "Edit Policies"
22114.png
Step4. Change the OAuth Policies below.
・Relax IP restrictions
・Permitted Users to "All users may self-authorize"22115.png
​​
------------------------------
Luwei Zhang
Consultant
Asia/Tokyo
------------------------------