I have set up a test application on my developer instance of Salesforce. I have a client_id, client_secret and I have the necessary security token appended to my password.
I am trying to authenticate using the password grant type. When I send the following http request (using Postman) to
https://na16.salesforce.com/services/oauth2/token
POST /services/oauth2/token HTTP/1.1
Host: na6.salesforce.com
Cache-Control: no-cache
Content-Type: application/x-www-form-urlencoded
grant_type=password&client_id=XXXXX&client_secret=YYYYY&username=my.name%40mydomain.com&password=PWDSECURITYTOKEN
I receive the following JSON result:
{
"error_description": "authentication failure",
"error": "invalid_grant"
}
Any idea what I can look at to debug this? Am I missing something?
Thanks!