On 18/12/13 16:12, blacar wrote:
Hi Sergey,

I've been looking at Adam Bien article
http://www.oracle.com/technetwork/articles/java/jaxrs20-1929352.html where
those filters are explained e.g.:

@Provider
@PreMatching
public class PreMatchingFilter implements ContainerRequestFilter {

     public void filter(ContainerRequestContext requestContext) throws
IOException {
         ....
         ....
     }
}

I see i could have access to requestContext that would provide access also
to SecurityContext, headers, Request, and other information.

Would this be enough? ... or still "injected with HttpServletRequest (into a
@Context-annotated field)" would be useful?

I've been able to declare it easily as a provider in the jaxrs:server and it
looks like it is working.

I see i can access SecurityContext but getUserPrincipal() returns null at
this moment, of course.

I haven't had the experience of working with Shiro, so please give it a try and let us know how it can be made to work :-), we can then document it
Thanks, Sergey

Thanks,




--
View this message in context: 
http://cxf.547215.n5.nabble.com/CXF-Restful-Web-Service-with-Apache-Shiro-tp5737956p5737979.html
Sent from the cxf-user mailing list archive at Nabble.com.


Reply via email to