Salesforce Connector Guide > Salesforce Connections > Security Tokens and Trusted IP Ranges
  

Security Tokens and Trusted IP Ranges

Most Salesforce accounts require authentication to access the account. When you create a Salesforce connection, you can enter the security token or the OAuth access token. If your account requires a security token and you do not have one, you can generate or reset a security token. After you log in on the Salesforce web site, click Setup > My Personal Information > Reset My Security Token.
To avoid adding the security token to a Salesforce connection, you can add Informatica Cloud IP addresses to the Trusted IP Ranges in your Salesforce account. On the Salesforce web site, click Setup > Security Controls > Network Access, and then add the following IP addresses:
For more information, see the Salesforce documentation.

Generating OAuth Access Token

The OAuth utility is used to fetch access token for Salesforce connector.
    1. Download the OAuth utility package, oauth-tool.zip, from the following link: https://marketplace.informatica.com/solutions/sfdc_oauth_tool.
    Login with your Informatica Marketplace credentials. Register to the Informatica Marketplace if you do not have the credentials.
    2. Extract oauth-tool.zip.
    3. Navigate to oauth-tool\tomcat\conf.
    4. Open the server.xml file to update the mystore.jks file path.
    5. Update the mystore.jks file path to the one on your system where you extracted the oauth-tool.zip file. The following image shows the sample server.xml file:
    This image shows a sample server.xml file used to generate OAuth Access Token.
    6. Navigate to oauth-tool\tomcat\bin in the command prompt.
    7. Type the catalina.bat start command and press the Enter key to run the batch file.
    8. Open a browser window and paste the following URL in the address bar:
    The Salesforce Log In page appears.
    9. Log in to Salesforce using your credentials. You can view the OAuth access token generated with the other details, such as signature and instance URL. The following image shows the sample OAuth access token:
    This image shows a sample OAuth Access Token.