Newer Version Available
Log In with Hardware 2FA
Learn how to log in to Data Loader with OAuth and hardware 2FA.
To log in using OAuth and two-factor authentication (2FA)
-
Create a Connected App in Salesforce for your
Salesforce org's OAuth authentication Data Loader.
- Make sure that the API (Enable OAuth Settings) section of the app's configuration is completed as follows:
- Check Enabled OAuth Settings. The section expands into more detail.
- Check Enable for Device Flow. Checking this box automatically populates the Callback URL.
- For Selected OAuth Scopes, select: Manage user data via APIs (api).
- Click Save.
-
Get the client id of your Connected App.
- Go to Setup, and enter App Manager in search. Click App Manager
- Locate the Connected App you created in step 1, and select View from the pull-down menu on the right.
- Copy the value for the Consumer Key. The value of Consumer Key is the client id you need in the next steps.
- Launch Data Loader.
- Before logging in to Data Loader, go to Data Loader's Settings menu, and select Settings.
- In the Settings window, check Enable OAuth login from browser. In the Client ID in Production field, paste in the client id you copied from step 2c. Leave the rest of the settings unchanged.
- Click OK.
- Choose an action from Data Loader's main menu (for example, Insert, Update, Export).
- In the Step 1: Log In screen, select OAuth, and select your Environment.
- Click Log in.
- To complete the login process, follow the instructions in the Login from Browser window. By clicking the Link to Verification Page, you’re guided through a 2FA login sequence in your browser. You can use a hardware key, if necessary.