[英]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. 在我的应用程序的当前版本中,我有一个Servlet过滤器,该过滤器查找自定义标头并将这些标头映射到角色信息,然后将其传递到我的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.
我想使用ReSTlet实现一个兼容的解决方案,但是Guards似乎无法执行我想要的操作,因此不推荐使用RoleChecker。 Anyone have any thoughts?
有人有什么想法吗?
I think the Jax-rs extension lacks the support of the @Context annotation. 我认为Jax-rs扩展缺少@Context注释的支持。 An issue is opened: https://github.com/restlet/restlet-framework-java/issues/532
一个问题被打开了: https : //github.com/restlet/restlet-framework-java/issues/532
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.