Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
jasperroel edited this page Mar 18, 2013 · 2 revisions

I get a 400 error?

Something like this: 400 {"error":"invalid_grant","error_description":"invalid authorization code"}?

There is a good possibility you are using the ChatterAuthMethod.PASSWORD schema.

In this case, your password needs the security token added. So, if your password is MyPassword and your security token is SecurityToken, you should use MyPasswordSecurityToken as the password.

Per https://www.salesforce.com/us/developer/docs/api_rest/index_Left.htm#CSHID=quickstart_oauth.htm|StartTopic=Content%2Fquickstart_oauth.htm|SkinName=webhelp " You will need to provide your client id, client secret, username and password with user security token appended. "

Clone this wiki locally