简体   繁体   English

为什么新的配置文件范围会中断我的应用程序中对Google Classroom API的请求?

[英]Why are the new profile scopes breaking requests to Google Classroom API in my app?

I have an application set up to access the Google Classroom API. 我已经设置了访问Google Classroom API的应用程序。 I have it authorized and can pull Course and Roster data. 我已经授权它,可以提取课程和花名册数据。 It's updated to use the V1 calls, but when I add in the Profile.Name and Profile.Email scopes, I get the following error: 它已更新为使用V1调用,但是当我在Profile.Name和Profile.Email范围中添加时,出现以下错误:

{
  "code" : 403,
  "errors" : [ {
    "domain" : "global",
    "message" : "Unregistered request was blocked. Please sign up using Google Developers Console.",
    "reason" : "forbidden"
  } ],
  "message" : "Unregistered request was blocked. Please sign up using Google Developers Console.",
  "status" : "PERMISSION_DENIED"
}

The service account has been authorized in the admin console with all 4 relevant Classroom scopes. 该服务帐户已在管理控制台中获得所有4个相关Classroom范围的授权。 The Domain has also been confirmed as having the Classroom APIs enabled, if I attempt to use them through the OAuth playground it all works fine. 该域也已被确认启用了Classroom API,如果我尝试通过OAuth游乐场使用它们,则一切正常。

Any ideas as to why I'm getting the error only when I add in the profile scopes? 关于为什么仅在添加配置文件作用域时才出现错误的任何想法?

The issue was that we were required to fill in a second form for Google to authorize the domain, we'd only found the first one. 问题是我们需要填写第二份表格供Google授权域,而我们只找到了第一个。 After filling in the new form, it all started working. 填写新表格后,所有内容都开始工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 通过 Google Classroom API 创建教师时请求的身份验证范围不足错误 - Request had insufficient authentication scopes error when creating teacher through Google Classroom API 为什么我不能使用Google Classroom API? - Why can't I use the Google Classroom API? 调整图像大小会损坏我的应用程序,为什么? - Resizing an image is breaking my app why? 为什么我的Google Maps Android应用程序无法与Android App Api Key一起使用? - Why does my Google Maps Android app not work with my Android App Api Key? Google Classroom API - 学生的“emailAddress”和“photoUrl”未收到回复 - Google Classroom API - Student's “emailAddress” and “photoUrl” are not coming in the response 如何以编程方式在您的 android 应用程序中打开谷歌教室 - how to open google classroom in your android app programatically 使用Google Drive API备份我的应用 - Using Google Drive API to backup my app 为什么Google Geofencing无法在我的Android应用程序中正常工作? - Why is Google Geofencing not working in my android app? 在哪里获得新的Firebase Cloud Message API的Java范围依赖关系? - Where to get Scopes dependencies for java for new Firebase Cloud Message API? Gmail API - 从新邮件下载附件所需的范围 - JAVA - Gmail API - Download attachments from new mails required SCOPES - JAVA
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM