English 中文(简体)
使用jaxrs插件使用spring安全核心保护Jersey RESTful服务
原标题:Securing Jersey RESTful services with spring-security-core using jaxrs plugin

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

最佳回答

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

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

问题回答

暂无回答




相关问题
grails + gwt request handling via controllers

I am new to gwt. I am trying to integrate gwt+grails.Can anybody provide me a good example for handling the request using grails controllers and not a custom servlet.I will be really thankful if ...

Error loading the grails gwt module xml

I ve installed the plugin from this article by Peter http://www.cacoethes.co.uk/blog/groovyandgrails/the-command-pattern-w.... While compile time its not able to find the module file which is present ...

Sorting Objects Based on Custom Domain Class Methods

I have a domain class, in which I ve defined some methods which give the object a score based on different algorithms (eg. popularity). I now want to retrieve a list of these objects sorted by one of ...

Grails Packaging and Naming Conventions

Packaging Controllers, Services,etc. i.e. - com.company.controllers - com.company.services Is this a good practice or should be avoided by all means?? Another worth mentioning problem I encountered ...

Hibernate/GORM: collection was not processed by flush()

I have an integration test in my Grails application that fails when I try to save an entity of type Member invitingMember.save(flush: true) This raises the following exception org.hibernate....

热门标签