Newer Version Available

This content describes an older version of this product. View Latest

Connect 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.

To connect to a Salesforce community, you can use the OAuth web server and user-agent workflows.

To authenticate a user using the authorize URL, replace the login.salesforce.com host name with the full path to the community URL. This is the non-communities URL.
This is the communities URL.
When implemented successfully, this URL directs users to your app’s branded login page. After they authorize the app, set a user access token and a refresh token for future authentication. In requests for the token endpoint, replace the host with the community.
To request a Chatter REST API resource, use the Salesforce host name and specify the community ID.
Alternately, you can replace the host name with the full path to the community URL.