Not supported by google identity toolkit

I come across this error when running terraform apply. Google identity platform is enabled in my project.

Error: Error creating Tenant: googleapi: Error 403: Your application has authenticated using end user credentials from the Google Cloud SDK or Google Cloud Shell which are not supported by the identitytoolkit.googleapis.com. We recommend configuring the billing/quota_project setting in gcloud or using a service account through the auth/impersonate_service_account setting. For more information about service accounts and how to use them in your application, see Authentication overview  |  Google Cloud.
Details:
[
{
@type”: “type.googleapis.com/google.rpc.ErrorInfo”,
“domain”: “googleapis.com”,
“metadata”: {
“consumer”: “projects/764086051850”,
“service”: “identitytoolkit.googleapis.com
},
“reason”: “SERVICE_DISABLED”
}
]

2 Likes

Did you find any solution for the issue? I’m having exactly the same problem for the same GCP product, Identity Toolkit. What is more annoying is that we have 2 GCP projects, one for Staging and another one for Production, and it only fails in one of them.