Hi,

I have had the task to create a WS based on an existing WSDL.
I used CXF 3.1.11 to create it, and deployed it on Tomcat with basic 
authentication.
And all that worked fine.

I use the username in my service by getting a Pricipal in the WS.
java.security.Principal principal = wsContext.getUserPrincipal();

However now I need to call the WS without password is authenticated, but still 
I need the username in my WS.
If I do not authenticate in Tomcat the getUserPrincipal() returns null.
I can see that I do a lot of things in CXF, but I cannot point out how to do it.
Can you help me in the right direction?


Best Regards

Jørgen Christian

Reply via email to