Step Two: Set Up Authorization
Create a connected app in a Salesforce organization and enable OAuth. The client application uses the connected app to connect to Salesforce.
Connecting to Salesforce Communities
To use OAuth to connect to a Salesforce community, replace the server instance name with the full path to the community URL.