OAuth同意画面未显示 [英] OAuth consent screen not showing
问题描述
最近在我的本地开发人员中实施了Google登录.一切正常,除非我选择一个Google帐户登录,否则不会显示同意屏幕.它确实获得了授权,因为我可以在我的帐户"的与您的帐户相关的应用部分中看到我的网站.
Recently implemented Google sign-in in my local dev. Everything works fine, except when I choose one of my Google accounts to log in, the consent screen does not show up. It does get authorized, as I can see my website in Apps connected to your account section of My Account.
我已经在API&的凭据"部分下配置了 OAuth同意屏幕.服务控制台.不确定为什么不显示吗?我尝试发送approval_prompt=force
,但没有任何效果.还尝试了prompt=select_account+consent
这给我一个错误.
I have already configured OAuth consent screen under Credentials section of APIs & Services console. Not sure why it's not showing up? I tried sending approval_prompt=force
but it had no effect. Also tried prompt=select_account+consent
which give me an error.
一些附加信息:
-
authorization_url=https://accounts.google.com/o/oauth2/v2/auth
-
base_url=https://www.googleapis.com/oauth2/v3/userinfo
-
access_token_url=https://www.googleapis.com/oauth2/v4/token
authorization_url=https://accounts.google.com/o/oauth2/v2/auth
base_url=https://www.googleapis.com/oauth2/v3/userinfo
access_token_url=https://www.googleapis.com/oauth2/v4/token
推荐答案
根据设计,在所描述的方案(带有配置文件/电子邮件范围的帐户选择)中未显示同意屏幕.
我是Google产品小组的成员,在只有电子邮件和/或个人资料范围被请求并且用户明确选择他们的范围的情况下,我们删除了同意屏幕(显示允许共享数据的允许/拒绝"屏幕) Google帐户,因为帐户选择界面已经显示了将与该应用共享的电子邮件和个人资料(名称/图片)信息.
I'm on the product team at Google and we removed the consent screen (the "Allow/Deny" screen showing the data being shared) in cases where only email and/or profile scopes are requested and the user explicitly selects their Google Account, since the account selection UI already shows the email and profile (name/picture) information that will be shared with the app.
这篇关于OAuth同意画面未显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!