Hershey108
Hershey108

Reputation: 38

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. 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:

{
  "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. 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.

Any ideas as to why I'm getting the error only when I add in the profile scopes?

Upvotes: 0

Views: 223

Answers (1)

Hershey108
Hershey108

Reputation: 38

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. After filling in the new form, it all started working.

Upvotes: 1

Related Questions