【问题标题】:How to get rid of "This app isn't verified" warning while using Google OAuth api?使用 Google OAuth api 时如何摆脱“此应用未验证”警告?
【发布时间】:2020-11-10 22:19:07
【问题描述】:

我正在尝试使用 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 同意屏幕中的验证状态是否存在问题?任何帮助,将不胜感激。谢谢

【问题讨论】:

    标签: node.js api google-oauth google-authentication passport-google-oauth


    【解决方案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-02-15
      • 1970-01-01
      • 1970-01-01
      • 2016-02-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-07-24
      • 2010-10-17
      相关资源
      最近更新 更多