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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Information Provided
    • None
    • 3.x
    • camel-salesforce
    • None
    • 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

            dhirajsb Dhiraj Sureshkumar Bokde
            lb Luca Burgazzoli
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: