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

时间:2010-10-27 04:32:08

标签: grails spring-security jersey jax-rs

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

1 个答案:

答案 0 :(得分:1)

我发现以下内容并使用解决方案的修改版本来解决我的问题

http://blogs.bytecode.com.au/glen/2010/01/15/hacking-custom-authentication-providers-with-grails-spring-security.html