Grails 3.x 中应该使用 Spring Sec OAuth 的哪个插件/模块? [英] Which plugin / module of Spring Sec OAuth should be used in Grails 3.x?
问题描述
我正在尝试将我的 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屋!