Hi Christian,
I'm afraid you have configure the interceptor yourself, or write some
configuration to setup Jetty server as others show you.
If you are using ServiceMix you can try out the Sergey shows
JAASLoginInterceptor, and setup right context name for you to use.
Here is an configuration[1] which is shows in Blueprint, but I think you
can use it in Spring at same time.
[1]https://github.com/fusesource/fuse/blob/master/examples/secure-rest/src/main/resources/OSGI-INF/blueprint/blueprint.xml
On 7/18/12 5:30 AM, Christian Müller wrote:
Thanks Yogesh for taking time for my question.
The information in [1] only helps for the client site (unit testing), but I
have to provide this service (the server part).
The information in [2] and [3] are useful how to implement such kind of CXF
interceptor, but I still hope there is an existing solution in CXF or Jetty
which doesn't force me to implement this. May be only a simple
PasswordCallback or so...
[1]
http://cxf.apache.org/docs/client-http-transport-including-ssl-support.html
[2]
http://chrisdail.com/2008/03/31/apache-cxf-with-http-basic-authentication/
[3]
http://chrisdail.com/2008/08/13/http-basic-authentication-with-apache-cxf-revisited/
Best,
Christian
On Tue, Jul 17, 2012 at 9:45 PM, ychawla <premiergenerat...@yahoo.com>wrote:
Hi Christian,
What about adding an HTTP Conduit to your CXF bean?
http://cxf.apache.org/docs/client-http-transport-including-ssl-support.html
Is your requirement for inbound or outbound HTTP basic auth? Depending on
your container, you might be able to do this at the Apache HTTPD or Tomcat
layer as well.
Thanks,
Yogesh
--
View this message in context:
http://camel.465427.n5.nabble.com/camel-cxf-and-HTTP-BASIC-authentication-tp5716163p5716169.html
Sent from the Camel - Users mailing list archive at Nabble.com.
--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang