I am able to attach a filter in a CXF Servlet in a Web Application using
configuration stored in /WEB-INF/web.xml:

...

<filter>
  <filter-name>springSecurityFilterChain</filter-name>

<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>

<filter-mapping>
  <filter-name>springSecurityFilterChain</filter-name>
  <url-pattern>/*</url-pattern>
</filter-mapping>

...

It allows me to add Spring Security to CXF REST Web Services.

I want to do exactly the same behaviour but in an standalone CXF server,
not in a Web Application (no web.xml at all!). I'm using Spring to
configure my CXF server:

...

<jaxrs:server id="helloService" address="/hello">
<jaxrs:serviceBeans>
<ref bean="serviceBean" />
 </jaxrs:serviceBeans>
</jaxrs:server>
<bean id="serviceBean" class="sec.Hello" />

...

I don't know how to hook Spring Security to my CXF server. I have not found
any working example or documentation about linking Spring Security and CXF.

Reply via email to