Google 同意屏幕未按预期显示 [英] Google consent screen not shown as expected
问题描述
我已在 cloud.google.com 上注册了一个网络应用程序.OAuth 2.0 客户端 ID"如下所示:
我正在使用 grails 和 grails oauth 插件.在 Config.groovy 中,我添加了以下代码段:
google {api = GoogleApi键 = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com'秘密 = 'yyyyyyyyyyyyyyyyyyyyyyy'范围 = 'https://www.googleapis.com/auth/userinfo.profile'回调 = "http://localhost:8080/grailsOauthPluginDemo/oauth/google/callback"successUri = "http://localhost:8080/grailsOauthPluginDemo/oauthCallBack/google"failureUri = "http://localhost:8080/grailsOauthPluginDemo/oauthCallBack/failure"}
并将以下内容写入 index.gsp
<oauth:connect provider="google">Google</oauth:connect><br/>
我使用我的个人谷歌帐户登录.我正在使用 ,目前为同意页面使用不同的模板.
希望有帮助!
I have registered a web application at cloud.google.com. "The OAuth 2.0 Client ID" looks like this:
I am using grails and the grails oauth plugin. In Config.groovy I added the follwoing snippet:
google {
api = GoogleApi
key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com'
secret = 'yyyyyyyyyyyyyyyyyyyyyyyy'
scope = 'https://www.googleapis.com/auth/userinfo.profile'
callback = "http://localhost:8080/grailsOauthPluginDemo/oauth/google/callback"
successUri = "http://localhost:8080/grailsOauthPluginDemo/oauthCallBack/google"
failureUri = "http://localhost:8080/grailsOauthPluginDemo/oauthCallBack/failure"
}
and the following into index.gsp
<oauth:connect provider="google">Google</oauth:connect><br/>
I am logged in with my personal google account. I am using the https://github.com/manishkbharti/grailsOauthPluginDemo and when clicking the Google link I get to the consent page which looks like this:
I was expecting to get a page looking something like the following with my applications name. I know that I have to add a picture but the applications name should popup.
I believe that the grailsOauthPluginDemo is using Google's OAuth1.0a API which currently uses different templates for the consent page.
Hope that helps!
这篇关于Google 同意屏幕未按预期显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!