Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.1
-
Fix Version/s: None
-
Component/s: Core
-
Labels:None
-
Number of attachments :
Description
org.codehaus.xfire.transport.http.CommonsHttpMessageSender does not support NTLM authentication.
Here is snippet from XFire 1.1 about authorization:
String username = (String) context.getContextualProperty(Channel.USERNAME);
if (username != null)
{
String password = (String) context.getContextualProperty(Channel.PASSWORD);
client.getParams().setAuthenticationPreemptive(true);
state.setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(username, password));
}
There should be a way to plug custom credentials to the transport stack. To workaround this I had to reimplement
whole http handling stack as subsequent layers are created as local variables instead of access by dependency.
Can attach this patch or at least some code sample ? This will make our work easier