[jboss-jira] [JBoss JIRA] (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).
Geoffrey De Smet (JIRA)
jira-events at lists.jboss.org
Mon Apr 16 09:05:17 EDT 2012
Geoffrey De Smet created JBRULES-3465:
-----------------------------------------
Summary: 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).
Key: JBRULES-3465
URL: https://issues.jboss.org/browse/JBRULES-3465
Project: Drools
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: drools-api
Affects Versions: 5.4.0.CR1
Reporter: Geoffrey De Smet
Currently, you can workaround like this sometimes:
{code}
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);
{code}
we should support this::
{code}
KnowledgeAgentConfiguration conf = KnowledgeAgentFactory.newKnowledgeAgentConfiguration();
conf.setUsername("admin"); // Or via setProperty()
conf.setPasword("admin".toCharArray()); // Or via setProperty()
KnowledgeAgent ka = KnowledgeAgentFactory.newKnowledgeAgent("test", conf);
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list