使用 jaxrs 插件通过 spring-security-core 保护 Jersey RESTful 服务
我需要在 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 技术交流群。

我发现以下内容并使用解决方案的修改版本来解决我的问题
http://blogs.bytecode.com.au/glen/2010/01/15/hacking-custom-authentication-providers-with-grails-spring-security .html
I found the following and used a modified version of the solution to solve my problem
http://blogs.bytecode.com.au/glen/2010/01/15/hacking-custom-authentication-providers-with-grails-spring-security.html