Connect to Experience Cloud Sites

To use OAuth to connect to an Experience Cloud site, use the full path to the site URL.

To authenticate a user using the authorize URL, replace the {myDomainName}.my.salesforce.com host name with the full path to the site URL. This URL example is the non-site URL.

1https://{myDomainName}.my.salesforce.com/services/oauth2/authorize?response_type=token&client_id={yourAppId}&redirect_uri={yourRedirectUris}

This URL example is the site URL.

1https://{myDomainName}.my.site.com/services/oauth2/authorize?response_type=token&client_id={yourAppId}&redirect_uri={yourRedirectUri}

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

1https://{myDomainName}.my.site.com/services/oauth2/token

To request a Connect REST API resource, use the site URL and specify the site ID.

1https://{myDomainName}.my.site.com/services/data/v29.0/connect/communities/{communityId}/chatter/feeds/news/me/feed-elements

Alternately, you can replace the host name with the full path to the site URL.

1https://{myDomainName}.my.site.com/{sitePath}/services/data/v29.0/connect/communities/{communityId}/chatter/feeds/news/me/feed-elements