Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-15286

camel-salesforce: make it possible to provide login options as uri param

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 3.8.0
    • Component/s: camel-salesforce
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Configuring the Salesforce is quite complex compared to other complex as it requires to write some java beans:

      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);
      

      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.

        Attachments

          Activity

            People

            • Assignee:
              dhirajsb Dhiraj Sureshkumar Bokde
              Reporter:
              lb Luca Burgazzoli
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: