function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Bill JonesBill Jones 

Local Development Against REST API

Hello,

I am building an app that will interact with the REST API. Currently, when I run the app locally and attempt to get the request token, I receive the following error:

59
error=redirect_uri_mismatch&error_description=redirect_uri%20must%20match%20configuration
0

How can I do local development against the REST API?
EnreecoEnreeco
This is a good starting point for making things work is here https://www.salesforce.com/us/developer/docs/api_rest/Content/quickstart_oauth.htm.
You have to setup a new connected application in order to match the "redirect URI" with the one you are using locally (e.g. http://localhost:XXXX/redirectUrl).
Hope this helps