English 中文(简体)
Grails and OAuth
原标题:Grails and OAuth
  • 时间:2011-08-17 16:01:43
  •  标签:
  • grails
  • oauth

I am using a REST JSON webservice which I want to secure. The service is secured with very basic Spring security and the session is stored on the server. So before the user can access the url "/api/resource" he/she needs to login first.

我想知道:

  • Only allow registered users to access my rest api
  • Only allow registered clients with registered users to access my rest api(e.g. GWT, Android, iOS). I dont want to let the users access my api if the client is not registered.

在很多方面,我看到了OAuth

我在我的项目中使用铁路,但我没有发现对奥乌特的任何支持。 是否有任何人利用奥乌特铁路? 使用铁路是否容易?

救助

最佳回答

我把奥阿纽特图书馆编成法典,该图书馆确实很简单,而且与格罗莫夫合作。

它叫作人,你可以在这里尝试:

http://github.com/fernandezpablo85/reg-java”rel=“nofollow”http://github.com/fernandezpablo85/ reg-java

EDIT

如果你需要执行奥阿瑟公司,我知道的唯一图书馆是

它没有很好的文件记录,但它有,有些实例

问题回答

检查这一图景:

https://github.com/synergyj/grails-spring-social-core

他们已经有2个执行项目,即Twitter和Facebook! 现在,你们只是要创造你们自己的成就!

Use the spring security oauth provider plugin. Creating an oauth provider is complex and you are in for a long haul of research and development but at the end you will have some experience that few have. Enjoy!





相关问题
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....