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

    Details

    • Type: Feature Request
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 5.4.0.CR1
    • Fix Version/s: None
    • Component/s: drools-api
    • Labels:
      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);
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  ge0ffrey Geoffrey De Smet
                • Votes:
                  2 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated: