title: Access salesforce sandbox data from developer edition account app
body: <p>I have an requirement where I need to fetch the sandbox data using an app created in a developer edition account.
  I have authorize app on the sandbox account using below link.</p>
  <p><a href="https://test.salesforce.com/services/oauth2/authorize?client_id=%7Bdeveloper_account_app_client_id%7D&amp;redirect_uri=https://login.salesforce.com/services/oauth2/success&amp;response_type=code" rel="nofollow noreferrer">https://test.salesforce.com/services/oauth2/authorize?client_id={developer_account_app_client_id}&amp;redirect_uri=https://login.salesforce.com/services/oauth2/success&amp;response_type=code</a></p>
  <p>This url ask sandbox user to allow access. After allowing access, api call failed with below error.</p>
  <p><code>java.lang.RuntimeException: RuntimeException: HTTP status: 400 - Bad Request message: {&quot;error&quot;:&quot;invalid_grant&quot;,&quot;error_description&quot;:&quot;user hasn't approved this consumer&quot;}</code></p>
  <p>I am using Talend studio for this and below is the configuration.</p>
  <p><a href="https://i.stack.imgur.com/Cu0Yd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Cu0Yd.png" alt="Salesforce connection" /></a></p>