当我或其他用户尝试使用OAuth2进行授权时,我不断收到我的应用需要验证的错误.那是什么意思?

Ste*_*zyl 16 google-api google-contacts-api google-oauth gmail-api

尝试使用我自己的帐户授权我的应用时收到此错误:

Your project is trying to access scopes that need to go through the verification process.

{invalid=https://www.googleapis.com/auth/contacts}

If you need to use one of these scopes, submit a verification request. Learn More
Run Code Online (Sandbox Code Playgroud)

当我使用其他帐户时,错误消息是不同的:

This app hasn’t been verified to access:
{invalid=https://www.googleapis.com/auth/contacts}


Are you the developer? If this project needs these scopes, sign in to an account with access to edit your project and try again.

If not, contact the developer for help.
Run Code Online (Sandbox Code Playgroud)

Ste*_*zyl 22

根据2017年5月11日的公告,可以访问某些用户数据的公开可用应用程序必须通过审核.如果您发现应用存在访问错误,请使用我们的OAuth开发人员验证表单提交请求.

对于个人使用的应用程序和您正在测试的应用程序,请加入Google小组Risky Access Permissions By Unreviewed Apps,允许您批准个人和测试帐户的数据访问.有关详细信息,请参阅Google API服务用户数据政策.

更新:修正了损坏的链接到表单.

  • 我加入了谷歌集团 - 通常需要多长时间才能让我能够使用我自己的帐户进行测试?如果谷歌的任何人为了上帝的爱而读这篇文章,请考虑编写更好的,用勺子文档,因为这个猜谜游戏很荒谬. (3认同)
  • 链接的组现在标记为已阻止.是否有关于如何加入该组的更新信息? (3认同)
  • 以下是 [OAuth 开发者验证](https://support.google.com/code/contact/oauth_app_verification) 的_正确_ URL。 (2认同)
  • 哇,怎么会有人知道这样做?据我所知,它不是直接在Google API的OAuth2文档中或链接到,并且错误消息在调试问题时完全没用.这个答案为我节省了很多时间/挫折感谢,谢谢! (2认同)