I have currently developed a Java API client that connect against the Salesforce instance of my company. Using the following tutorial:
https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_calls_login.htm
The issue I am having is, that I would like to disable the session time out for this API user, I changed it into the Salesforce Session management settings but the maximum value is 12 hours but I would like that the session would never expire...
I read on this question that OAuth can be used for this purpouse...
would it be enough by changing the AuthUrl to an OAuth endpoint ?
String username = "[email protected]";
String password = "testi8Pforce8inNUD6i8P3YxMUJNMvkyjQa";
// Is this what I should change? from Soap to an OAuth endpoint?
String authEndPoint = "https://login.salesforce.com/services/Soap/c/35.0/";
ConnectorConfig config = new ConnectorConfig();
config.setUsername(username);
config.setPassword(password);
config.setAuthEndpoint(authEndPoint);
Is this the right approach ? any help would be highly appreciated