Grails 3.x中应该使用Spring Sec OAuth的哪个插件/模块? [英] Which plugin / module of Spring Sec OAuth should be used in Grails 3.x?

查看:165
本文介绍了Grails 3.x中应该使用Spring Sec OAuth的哪个插件/模块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将我的Grails 2.5项目迁移到Grails 3.1.4中。在我以前的BuildConfig中,我使用了以下代码:

I'm trying to migrate my Grails 2.5 project into Grails 3.1.4. In my old BuildConfig I was using the following:

plugins {
  compile ':spring-security-core:2.0-RC5'
  compile ':spring-security-oauth:2.1.0-RC4'
  compile ':spring-security-oauth-facebook:0.2'
  compile ':spring-security-oauth-google:0.3.1'
}

现在我的build.gradle如下所示:

Now my build.gradle looks like:

dependencies {
  compile 'org.grails.plugins:spring-security-core:3.1.1'
  //compile 'org.grails.plugins:spring-security-oauth:2.1.0-RC4'
  //compile 'org.grails.plugins:spring-security-oauth-facebook:0.2'
  //compile 'org.grails.plugins:spring-security-oauth-google:0.3.1'
}

构建是成功的,直到我取消评论行的注释为止。这会导致如下错误:

The build is successfull, until I uncomment the commented lines. That leads to errors like:

Could not resolve all dependencies for configuration ':runtime'.
 Could not find spring-security-core.zip (org.grails.plugins:spring-security-core:3.1.1).
   Searched in the following locations:
     https://repo.grails.org/grails/core/org/grails/plugins/spring-security-core/3.1.1/spring-security-core-3.1.1.zip

那么,安装&在Grails 3中使用OAuth(2?)插件?

So, what is the proper way to install & use OAuth (2?) plugin in Grails 3?

推荐答案

抱歉,我忘记回复,但@injecteer我目前正在测试下面的插件与Grails 3.2.2及其工作到目前为止。所以我认为接受的答案已不再有效。

Sorry I forget to reply but @injecteer I am currently testing following plugins with Grails 3.2.2 and its working so far. So I think accepted answer is no longer valid.

compile "org.grails.plugins:spring-security-oauth2:1.1.0"
compile "org.grails.plugins:spring-security-oauth2-facebook:1.0.0"
compile "org.grails.plugins:spring-security-oauth2-google:1.1.0"

这篇关于Grails 3.x中应该使用Spring Sec OAuth的哪个插件/模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆