[
https://issues.apache.org/jira/browse/CAMEL-15286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17362982#comment-17362982
]
Jeremy Ross commented on CAMEL-15286:
-------------------------------------
[~davsclaus] There remains the issue of needing to integration two different
salesforce organizations. Providing login config via URI param is one approach,
however there may be deeper changes needed in the component to support this.
> 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
> Assignee: Dhiraj Sureshkumar Bokde
> Priority: Major
> 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)