使用 jaxrs 插件通过 spring-security-core 保护 Jersey RESTful 服务

发布于 09-29 10:39 字数 219 浏览 7 评论 0原文

我需要在 Grails 应用程序中为客户端实现一些 RESTful Web 服务,并且我想使用 jaxrs 插件,但我很难找到有关如何实现不基于领域的安全性的信息(tomcat-users .xml)。我正在使用 spring-security-core 插件,我想利用它对我的网络服务进行身份验证。如何将凭据发送到 Web 服务,然后使用 Spring Security 对这些凭据进行身份验证?有人能指出我正确的方向吗?

I'm needing to implement some RESTful webservices for a client in a Grails app and I want to use the jaxrs plugin but I am having a heck of a time finding information on how to implement security that isn't realm based (tomcat-users.xml). I am using the spring-security-core plugin and I'd like to utilize it to authenticate against my webservices. How do I send credentials to the webservice and then authenticate those using spring security? Can someone point me in the right direction?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文