[英]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.