
Support
This integration is supported by Auth0. Learn more
Salesforce Community
Allow users to sign up and Log In to Salesforce community
Community Cloud is a Salesforce platform that gives companies the tools to create branded online communities. These communities can be created for connecting with customers, external partners and employees. Customer communities can be used for support and feedback.
Support
This integration is supported by Auth0. Learn more
The Salesforce Community social connection allows users to log in to your application using their Salesforce Community profile. Salesforce communities are branded spaces that allow employees, customers, and partners to connect. To learn more, see Salesforce's Set Up and Manage Salesforce Communities documentation.
By default, Auth0 automatically syncs user profile data with each user login, thereby ensuring that changes made in the connection source are automatically updated in Auth0. Optionally, you can disable user profile data synchronization to allow for updating profile attributes from your application.
Prerequisites
Before you begin, sign up for and configure an account with Salesforce.
Get Salesforce credentials
If you have already set up a Salesforce Sandbox, set up your app in the Sandbox, and deployed the app to production, then you need to locate the app's production Consumer Key and Consumer Secret.
Alternatively, if you are setting up a new app in production, you need to create an app in Salesforce and generate credentials for it, using Salesforce's Create a Connected App documentation. During this process, Salesforce will generate a Consumer Key and Consumer Secret for your application; make note of these.
While setting up your app, use the following settings:
Field | Value to Provide |
---|---|
API (Enable OAuth Settings) | Click Enable OAuth Settings |
Callback URL | https://YOUR_DOMAIN/login/callback |
Selected OAuth Scopes | Add Access your basic information |
Find your Auth0 domain name
If your Auth0 domain name is not shown above and you are not using our custom domains feature, your domain name is your tenant name, your regional subdomain (unless your tenant is in the US region and was created before June 2020), plus.auth0.com
. For example, if your tenant name were exampleco-enterprises
, your Auth0 domain name would be exampleco-enterprises.us.auth0.com
and your callback URL would be https://exampleco-enterprises.us.auth0.com/login/callback
. (If your tenant is in the US and was created before June 2020, then your domain name would be https://exampleco-enterprises.auth0.com
.)
If you are using custom domains, your redirect URI will have the following format: https://<YOUR CUSTOM DOMAIN>/login/callback
.
Find Salesforce Community's base path
Salesforce Community base paths have the following format: https://{communitydomain}.force.com/{communitybasepath}
For example, if the community name is Trailblazers
and the community exists for customers, the base path would be https://trailblazers.force.com/customers
.
Test connection
You're ready to test your connection.
Salesforce Community Authorization URL
When you authenticate users in a Salesforce Community, you use different endpoints than the regular Salesforce app. The authorization URL is the base path plus /oauth2/authorize
. For example, if the community name is Trailblazers
and the community exists for customers, the authorization URL would be:
https://trailblazers.force.com/customers/oauth2/authorize?
response_type=token&
client_id=your_app_id&
redirect_uri=your_redirect_uri
You only need to configure the base path for the social connection because Auth0 automatically passes all required OAuth2 parameters (e.g., response_type
, client_id
) and concatenates other elements to the base path (i.e., oauth2/authorize
).
Support
This integration is supported by Auth0. Learn more