Skip to main content
Walz IT 님이 #Integration에 질문했습니다
Hi, I'm running into an issue with getting an access token using a connected app with grant_type = password.  Here is my curl script:

curl https://test.salesforce.com/services/oauth2/token -H "Content-Type:application/x-www-form-urlencoded" -d "grant_type=password" -d "client_id=<my client_id>" -d "client_secret=<my client_secret>" -d "username=<myusername@domain.com>" -d "<my password+secret>"

I'm getting an invalid_grant error  "Authentication failure" 

 
답변 3개
  1. 2016년 10월 5일 오전 5:07
    Hi,

    Going to connected apps in Salesforce and changing 'permitted users' from 'Admin approved users are pre-authorized' to 'All users may self-authorize' 

    Please refer below link step 9 which worked for others it may help you.

    http://stackoverflow.com/questions/12794302/salesforce-authentication-failing

    Hope this helps you!

    Please mark it as Best Answer if my reply was helpful. It will make it available for other as the proper solution. 

     

    Thanks and Regards

    Sandhya

     
0/9000