简体   繁体   中英

In Jetty/Jersey I use a filter for custom auth headers to get mapped to user roles. How do I accomplish this using ReSTlet?

In the current version of my application, I have a Servlet filter which looks for custom headers and maps those headers into role information which is then passed to my Jersey JAX-RS servlet. I would like to implement a compatible solution using ReSTlet, but Guards do not seem to be able to do what I want and RoleChecker is deprecated. Anyone have any thoughts?

I think the Jax-rs extension lacks the support of the @Context annotation. An issue is opened: https://github.com/restlet/restlet-framework-java/issues/532

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM