You need to sign in to do that
Don't have an account?
gs88834
OAuth 2.0 invalid_grant error with grant_type = password
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"
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"
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
All Answers
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
Love Shayari (https://shayaritumse.in/love-hindi-shayari)
Valentines Day Quotes (https://sayingsmagazine.com/valentines-day-quotes)
Romantic Good Morning Wishes (https://wishesmagazine.com/romantic-good-morning-wishes-for-gf-bf/)
word to pdf (http://fastkpdf.com/" style="color:blue; text-decoration:underline)
age calculator (https://www.realagecalculator.com/" style="color:blue; text-decoration:underline)
insta fonts (http://fontsbrother.com/" style="color:blue; text-decoration:underline)
news (https://news.rklearnway.com/" style="color:blue; text-decoration:underline)
theme download (https://rktechworld.com/" style="color:blue; text-decoration:underline)
blogging (http://rklearnway.com/" style="color:blue; text-decoration:underline)
sarkari result (http://sarkariline.com/" style="color:blue; text-decoration:underline)
Sarkarifoam (http://sarkarifoam.com/" style="color:blue; text-decoration:underline)
Hindi network (https://hindinetworks.com/" style="color:blue; text-decoration:underline)
Hindi gk (https://hindi-gk.info/" style="color:blue; text-decoration:underline)
word to pdf (http://fastkpdf.com/" style="color:blue; text-decoration:underline)
age calculator (https://www.realagecalculator.com/" style="color:blue; text-decoration:underline)
insta fonts (http://fontsbrother.com/" style="color:blue; text-decoration:underline)
news (https://news.rklearnway.com/" style="color:blue; text-decoration:underline)
theme download (https://rktechworld.com/" style="color:blue; text-decoration:underline)
blogging (http://rklearnway.com/" style="color:blue; text-decoration:underline)
sarkari result (http://sarkariline.com/" style="color:blue; text-decoration:underline)
Sarkarifoam (http://sarkarifoam.com/" style="color:blue; text-decoration:underline)
Hindi network (https://hindinetworks.com/" style="color:blue; text-decoration:underline)
Hindi gk (https://hindi-gk.info/" style="color:blue; text-decoration:underline)
word to pdf (http://fastkpdf.com/" style="color:blue; text-decoration:underline)
age calculator (https://www.realagecalculator.com/" style="color:blue; text-decoration:underline)
insta fonts (http://fontsbrother.com/" style="color:blue; text-decoration:underline)
news (https://news.rklearnway.com/" style="color:blue; text-decoration:underline)
theme download (https://rktechworld.com/" style="color:blue; text-decoration:underline)
blogging (http://rklearnway.com/" style="color:blue; text-decoration:underline)
sarkari result (http://sarkariline.com/" style="color:blue; text-decoration:underline)
Sarkarifoam (http://sarkarifoam.com/" style="color:blue; text-decoration:underline)
Hindi network (https://hindinetworks.com/" style="color:blue; text-decoration:underline)
Hindi gk (https://hindi-gk.info/" style="color:blue; text-decoration:underline)
word to pdf (http://fastkpdf.com/" style="color:blue; text-decoration:underline)
age calculator (https://www.realagecalculator.com/" style="color:blue; text-decoration:underline)
insta fonts (http://fontsbrother.com/" style="color:blue; text-decoration:underline)
news (https://news.rklearnway.com/" style="color:blue; text-decoration:underline)
theme download (https://rktechworld.com/" style="color:blue; text-decoration:underline)
blogging (http://rklearnway.com/" style="color:blue; text-decoration:underline)
sarkari result (http://sarkariline.com/" style="color:blue; text-decoration:underline)
Sarkarifoam (http://sarkarifoam.com/" style="color:blue; text-decoration:underline)
Hindi network (https://hindinetworks.com/" style="color:blue; text-decoration:underline)
Hindi gk (https://hindi-gk.info/" style="color:blue; text-decoration:underline)
word to pdfword to pdfword to pdfword to pdfword to pdf (http://fastkpdf.com/" style="color:blue; text-decoration:underline)
age calculator (https://www.realagecalculator.com/" style="color:blue; text-decoration:underline)
insta fonts (http://fontsbrother.com/" style="color:blue; text-decoration:underline)
news (https://news.rklearnway.com/" style="color:blue; text-decoration:underline)
theme download (https://rktechworld.com/" style="color:blue; text-decoration:underline)
blogging (http://rklearnway.com/" style="color:blue; text-decoration:underline)
sarkari result (http://sarkariline.com/" style="color:blue; text-decoration:underline)
Sarkarifoam (http://sarkarifoam.com/" style="color:blue; text-decoration:underline)
Hindi network (https://hindinetworks.com/" style="color:blue; text-decoration:underline)
Hindi gk (https://hindi-gk.info/" style="color:blue; text-decoration:underline)
Pdf to word (https://pdf.rklearnway.com/" style="color:blue; text-decoration:underline)
Real time news (http://realtimenews.org.in/" style="color:blue; text-decoration:underline)
https://aostv.xyz/ (http://aostv.xyz)
Check Out : https://www.clevescene.com/cleveland/java-burn-reviews-is-it-safe-kickstart-your-metabolism-with-a-morning-coffee/Content?oid=37404425
https://www.westword.com/storyhub/java-burn-reviews-javaburn-does-it-work-ingredients-side-effects-crucial-report
https://www.laweekly.com/java-burn-reviews-warning-weight-loss-coffee-any-side-effects-read/
https://www.riverfronttimes.com/stlouis/java-burn-reviews-does-javaburn-morning-coffee-drink-restore-energy-and-metabolism/Content?oid=36339877
https://www.nuvectramedical.com/java-burn-reviews/
https://www.clevescene.com/cleveland/exipure-reviews-kickstart-your-metabolism-with-this-supplement/Content?oid=37576786
https://www.laweekly.com/exipure-reviews-does-it-work-ingredients-side-effects-crucial-report/