First of all, a Connected App must be configured in SalesForce.
Access Setup in SalesForce:
Enter "Apps" and select "Build ... Create ... Apps".
Create the connected app. The most important settings are the following:
Setting | Value | Explanation |
---|---|---|
Callback URL | https://login.salesforce.com/services/oauth2/authorize |