0

我正在尝试使用 node.js 中的 passport-google-oauth 包实现 Google 身份验证。当我尝试使用 gmail 帐户注册时,它显示“此应用程序未验证”。请看图片。在此处输入图像描述但是当我点击“高级”然后选择继续时,它工作正常。在我的范围内,我有这些领域

 getGoogleLogin: passport.authenticate('google', {
                scope: ['https://www.googleapis.com/auth/plus.login',
                'https://www.googleapis.com/auth/plus.profile.emails.read']
            })

这是我的 Google OAuth 同意屏幕的样子:在此处输入图像描述

我在 Google OAuth 同意屏幕中的验证状态是否存在问题?任何帮助,将不胜感激。谢谢

4

1 回答 1

1

您目前正在使用 Google 标记为敏感的范围。任何敏感范围的使用都将要求您提交项目以供审核以删除This app isn't verified警告。

更多信息:https ://support.google.com/cloud/answer/7454865?hl=en

我还要注意,您似乎正在使用旧版范围。参考:https ://developers.google.com/+/scopes-shutdown

我会尝试将这些更新为更新的等价物:

https://www.googleapis.com/auth/userinfo.email
https://www.googleapis.com/auth/userinfo.profile
于 2020-07-22T20:53:26.170 回答