Newer Version Available
Connect to Experience Cloud Sites
To use OAuth to connect to an Experience Cloud site, use the full path to the site
URL.
To connect to an Experience Cloud site, use the OAuth web server and user-agent workflows.
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?
2response_type=token&client_id=your_app_id&redirect_uri=your_redirect_urisThis URL example is the site
URL.
1https://MyDomainName.my.site.com/services/oauth2/authorize?
2response_type=token&client_id=your_app_id&redirect_uri=your_redirect_uriWhen 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.
To
request a Connect REST API resource, use the site URL and specify the site
ID.
Alternately,
you can replace the host name with the full path to the site
URL.
1https://MyDomainName.my.site.com/services/oauth2/token1https://MyDomainName.my.site.com/services/data/v29.0/connect
2/communities/communityId/chatter/feeds/news/me/feed-elements1https://MyDomainName.my.site.com/sitepath/services/data/v29.0/connect
2/communities/communityId/chatter/feeds/news/me/feed-elements