Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-3465

KnowlegeAgentConfiguration should support a username and password property for HTTP authentication when the changset.xml itself is retrieved from HTTP (or shouldn't contain the username/password).

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Unresolved
    • Major
    • None
    • 5.4.0.CR1
    • drools-api
    • None

    Description

      Currently, you can workaround like this sometimes:

              KnowledgeAgentConfiguration conf = KnowledgeAgentFactory.newKnowledgeAgentConfiguration();
              Authenticator.setDefault(new Authenticator() { // =========================== BAD - Does NOT work when there are multiple agents with different usernames
                  @Override
                  protected PasswordAuthentication getPasswordAuthentication() {
                      return new PasswordAuthentication("admin", "admin".toCharArray());
                  }
              });
              KnowledgeAgent ka = KnowledgeAgentFactory.newKnowledgeAgent("test", conf);
      

      we should support this::

              KnowledgeAgentConfiguration conf = KnowledgeAgentFactory.newKnowledgeAgentConfiguration();
              conf.setUsername("admin"); // Or via setProperty()
              conf.setPasword("admin".toCharArray()); // Or via setProperty()
              KnowledgeAgent ka = KnowledgeAgentFactory.newKnowledgeAgent("test", conf);
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              Archiver:
              rhn-support-ceverson Clark Everson

              Dates

                Created:
                Updated:
                Archived:

                PagerDuty