Setup
1
Get credentials
Go to developer.salesforce.com and set up a Connected App in Setup > App Manager. Under OAuth Settings, enable OAuth and add your redirect URI:2
Scopes
Default scopes:openid, id, email
Salesforce uses org-specific domains (e.g.
mycompany.my.salesforce.com). The default authorization endpoint is login.salesforce.com but this can be customized for sandbox orgs using test.salesforce.com.