I'm reposting because the other cases where this issue was reported have not solved my problem. Right now I'm just trying to get a refresh_token that can later be used in a gcp cloud function to call the directory API. However the following curl command fails:
$ curl -d "my_client_id&scope=https://www.googleapis.com/auth/admin.directory.user" https://accounts.google.com/o/oauth2/device/code
With the following error:
{
"error" : "invalid_client",
"error_description" : "The OAuth client was not found."
}
Things I have tried:
- Made sure my OAuth Client ID is "other" and not web application.
- Changed the product name under consent screen to see if it can find the client ID
- Reset the client secret
- Renamed the Oauth Client Name
- Waited an hour
- Opened a ticket with Google under our G Suite contract (where they said they don't support their own APIs haha).
Anyone here have any good ideas?