Hi
On 18/12/13 08:38, blacar wrote:
I'd like to secure a Spring + CXF Restful Web Service with Apache Shiro.
Is there a CXF interceptor or filter that can be used?
I have something like this in my ApplicationContext
<bean id="serviceImpl"
class="com.sicpa.pbpd.spike.spring.restAndShiro.ServiceImpl" />
<jaxrs:server id="greenstarJaxrsService"
address="http://localhost:6066/services">
<jaxrs:serviceBeans>
<ref bean="serviceImpl" />
</jaxrs:serviceBeans>
</jaxrs:server>
So: no WAR, no Application server (but embedded jetty), no Spring MVC, no
web.xml
What would be the best way to proceed?
I guess one way to do it is to have a JAX-RS 2.0 PreMatching
ContainerRequestFilter injected with HttpServletRequest (into a
@Context-annotated field), with this filter interacting directly with
Shiro API ?
I guess much depends on what exactly you need to do...
Cheers, Sergey
Thanks in advance,
Rafael
--
View this message in context:
http://cxf.547215.n5.nabble.com/CXF-Restful-Web-Service-with-Apache-Shiro-tp5737954.html
Sent from the cxf-user mailing list archive at Nabble.com.