Test your app through the Salesforce sandbox connection
Salesforce Sandbox is a copy of your production organization. You can create multiple copies of your organization in separate environments for different purposes such as development, testing and training, without compromising the data and applications in your production organization. You can quickly test your Auth0 login flow with the Salesforce Sandbox for development purposes, without harming the integrity of your production environment.
The Salesforce Sandbox social connection allows users to log in to your application using their Salesforce Sandbox profile, which is a separate instance of the Salesforce service, designed to allow you to isolate customization and development work from your production environment until you’re ready to deploy changes. To learn more, see Salesforce's Sandboxes: Staging Environments for Customizing and Testing 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.
Before you begin:
Set up app in Salesforce Sandbox
Create an app in Salesforce Sandbox 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 |
|Selected OAuth Scopes||Add |
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
If you are using custom domains, your redirect URI will have the following format:
https://<YOUR CUSTOM DOMAIN>/login/callback.
You're ready to test your connection.