Salesforce Asked on December 26, 2020
I’m trying to get an access token using following curl:
curl --data grant_type=password&client_id=Y&client_secret=Z&username=A&password=B+C
https://login.salesforce.com/services/oauth2/token
where Y = Consumer Key, Z = secret, A = username and B = password and C = security token.
I get the following error:
{"error":"invalid_grant","error_description":"authentication failure"}
I followed the instructions at https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_understanding_username_password_oauth_flow.htm. If anyone can tell me what I’ve done wrong, it would be brilliant. I’ve no clue why im getting this error.
This could be related to the login issue salesforce reported as fixed, however at least on the instance I'm on this issue is still ongoing for logins through the API.
From the report on status.salesforce.com, that you can find below, using the instance url https://<yourinstance>.salesforce.com
instead of https://login.salesforce.com
should fix the problem.
Salesforce login error issue
May 17th 2017, 8:42 am
On May 17, 2017, The Salesforce Technology Team mitigated an intermittent login issue affecting a subset of customers. The issue began at 03:45 UTC and was resolved as of 05:47 UTC. Some customers may have experienced an intermittent error when attempting to login to test.salesforce.com or login.salesforce.com instead of directly to their instance. Thank you for your continued business and patience during this situation.
Answered by Markus Slabina on December 26, 2020
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP