You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Luca Burgazzoli (Jira)" <ji...@apache.org> on 2020/07/09 12:01:00 UTC
[jira] [Created] (CAMEL-15286) camel-salesforce: make it possible
to provide login options as uri param
Luca Burgazzoli created CAMEL-15286:
---------------------------------------
Summary: camel-salesforce: make it possible to provide login options as uri param
Key: CAMEL-15286
URL: https://issues.apache.org/jira/browse/CAMEL-15286
Project: Camel
Issue Type: Improvement
Components: camel-salesforce
Reporter: Luca Burgazzoli
Fix For: 3.x
Configuring the Salesforce is quite complex compared to other complex as it requires to write some java beans:
{code:java}
SalesforceComponent component = new SalesforceComponent();
SalesforceEndpointConfig config = new SalesforceEndpointConfig();
SalesforceLoginConfig loginConfig = new SalesforceLoginConfig();
loginConfig.setType(AuthenticationType.REFRESH_TOKEN);
loginConfig.setClientId(properties.getProperty("clientId"));
loginConfig.setClientSecret(properties.getProperty("clientSecret"));
loginConfig.setRefreshToken(properties.getProperty("refreshToken"));
component.setPackages("org.apache.camel.example.salesforce");
component.setConfig(config);
component.setLoginConfig(loginConfig);
{code}
It would be nice if most of the configuration could be done with uri params only and to require to write beans only for really advanced options.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)