I just looked into the examples of how to use LoginContext. Yes the
first parameter is the name that points to the section in the login
config (what was SampleClient in the config in my mail).
I wonder if this is a bug in the cxf code. sec:Authorization is normally
used for soemthing quite different. In any case I think we should have a
default like "cxfClient" or similar.
Christian
Am 12.09.2011 15:03, schrieb Michael Sliwak:
I successfully logged in with Kerberos using httpcomponents-client as
described here http://hc.apache.org/httpcomponents-client-
ga/tutorial/html/authentication.html#spnego
After a debugging run it seems that you have to set
<sec:Authorization/>
when using<sec:UserName /> and<sec:Password /> in cxf.xml.
Line 104 in SpnegoAuthSupplier.java creates a new LoginContext with
authPolicy.getAuthorization() as the first constructor argument. Currently this
method returns null as I did not set<sec:Authorization/> in cxf.xml. Maybe
this sets the name for the login.conf section. SampleClient in your example.
I'll give it a try.
--
--
Christian Schneider
http://www.liquid-reality.de
Open Source Architect
Talend Application Integration Division http://www.talend.com