You need to sign in to do that
Don't have an account?
Jayamaruthyraman Jaganath
OAuth token & Trailhead Playground
Does anyone know if we can get an OAuth token against a trail playground instance?
The following command always returns the {"error":"invalid_grant","error_description":"authentication failure"}* error.
curl -v https://TrailPlayground.my.salesforce.com/services/oauth2/token -d "grant_type=password" -d "client_id=xxxx" -d "client_secret=yyyyy" -d "username=user@email.com" -d "password=PW&Token" -H 'X-PrettyPrint:1'.
thanks
Jay
The following command always returns the {"error":"invalid_grant","error_description":"authentication failure"}* error.
curl -v https://TrailPlayground.my.salesforce.com/services/oauth2/token -d "grant_type=password" -d "client_id=xxxx" -d "client_secret=yyyyy" -d "username=user@email.com" -d "password=PW&Token" -H 'X-PrettyPrint:1'.
thanks
Jay
All Answers
I belive you should use (login.salesforce.com) like below,
curl -v https://login.salesforce.com/services/oauth2/token -d "grant_type=password" -d "client_id=xxxx" -d "client_secret=yyyyy" -d "username=user@email.com" -d "password=PW&Token" -H 'X-PrettyPrint:1'
Please let us know if this helps.
Thanks,
Govindaraj.S