how to create a oauth client id for gcp programmat

2019-05-20 03:43发布

问题:

I can create OAuth2.0 Client IDs and Client Secret with Authorized redirect URIs using the GUI in GCP.. The Console URL is given below for reference

https://console.cloud.google.com/apis/credentials

How do we do this in cloud shell or with the GCloud SDK

回答1:

It seems that no API from Google can manage OAuth client ID or Credentials related configuration.

I've not found any on API Library and many other questions related to this give the same answer (can't manage API Key for example).

If you're a Terraform user, they're an open issue on Google Provider: https://github.com/terraform-providers/terraform-provider-google/issues/1287