Error: invalid_scope - This app hasn't been verified to access
Error: invalid_scope - This app hasn't been verified to access
有没有人遇到过这个错误?我一直在研究、测试并努力使这个错误消失,但似乎没有任何效果。
这是与以下帖子类似的问题:
Google Api:: Error: invalid_scope
403 error when calling Google People API
遗憾的是,这些帖子从未得到解决或没有帮助。
令人费解的是,我正在按照此处列出的示例进行操作:https://developers.google.com/api-client-library/javascript/samples/samples. Along with testing the ONLY the scopes I need here: https://developers.google.com/people/api/rest/v1/people/get。
但是,我似乎无法通过表明我正在传递无效范围的弹出屏幕。
仅供参考,我有 API 控制台设置以使用 Google 人员 API、Google+ 和 Google 联系人。我在 "gapi.auth2.init" 配置调用中使用我的客户端 ID 和 api 密钥。
任何见解都会非常有帮助!感谢您的时间和回复。
这是一个范围问题,因为我的 Web 应用程序尚未通过 Google OAuth 验证。
作为开发人员,您可以通过在此处输入您的测试帐户来测试源代码:https://groups.google.com/forum/#!forum/risky-access-by-unreviewed-apps
要获得批准,您必须在此处提交表格:https://support.google.com/code/contact/oauth_app_verification
谷歌搜索一段时间后,我遇到了这个问题和 google 的范围列表:
https://developers.google.com/identity/protocols/googlescopes
以防万一这有帮助。
我从 google 开发人员示例页面复制并粘贴了代码
Search list
那个例子对我不起作用。我收到了关于无效范围的相同错误...
解决方案是更改以下行:
private static final Collection<String> SCOPES = Arrays.asList("YouTubeScopes.https://www.googleapis.com/auth/youtube.force-ssl YouTubeScopes.https://www.googleapis.com/auth/youtubepartner");
以下行:
private static final Collection<String> SCOPES = Arrays.asList("https://www.googleapis.com/auth/youtube.force-ssl https://www.googleapis.com/auth/youtubepartner");
基本上我只是摆脱了 "YouTubeScopes" 前缀,它已经开始工作了。
有没有人遇到过这个错误?我一直在研究、测试并努力使这个错误消失,但似乎没有任何效果。
这是与以下帖子类似的问题:
Google Api:: Error: invalid_scope
403 error when calling Google People API
遗憾的是,这些帖子从未得到解决或没有帮助。
令人费解的是,我正在按照此处列出的示例进行操作:https://developers.google.com/api-client-library/javascript/samples/samples. Along with testing the ONLY the scopes I need here: https://developers.google.com/people/api/rest/v1/people/get。
但是,我似乎无法通过表明我正在传递无效范围的弹出屏幕。
仅供参考,我有 API 控制台设置以使用 Google 人员 API、Google+ 和 Google 联系人。我在 "gapi.auth2.init" 配置调用中使用我的客户端 ID 和 api 密钥。
任何见解都会非常有帮助!感谢您的时间和回复。
这是一个范围问题,因为我的 Web 应用程序尚未通过 Google OAuth 验证。
作为开发人员,您可以通过在此处输入您的测试帐户来测试源代码:https://groups.google.com/forum/#!forum/risky-access-by-unreviewed-apps
要获得批准,您必须在此处提交表格:https://support.google.com/code/contact/oauth_app_verification
谷歌搜索一段时间后,我遇到了这个问题和 google 的范围列表:
https://developers.google.com/identity/protocols/googlescopes
以防万一这有帮助。
我从 google 开发人员示例页面复制并粘贴了代码 Search list
那个例子对我不起作用。我收到了关于无效范围的相同错误...
解决方案是更改以下行:
private static final Collection<String> SCOPES = Arrays.asList("YouTubeScopes.https://www.googleapis.com/auth/youtube.force-ssl YouTubeScopes.https://www.googleapis.com/auth/youtubepartner");
以下行:
private static final Collection<String> SCOPES = Arrays.asList("https://www.googleapis.com/auth/youtube.force-ssl https://www.googleapis.com/auth/youtubepartner");
基本上我只是摆脱了 "YouTubeScopes" 前缀,它已经开始工作了。