'Is there any terraform resource (or CLI commands) for oauth config in GCP, also to add Authorized domains in GCP

enter image description here enter image description here I would like to know if is there any terraform resource (or command line) to do the following tasks in Google Cloud Platform (GCP):

  1. Add an authorized DNS domain in API & Services --> Oauth consent screen (please see the attached image/screenshot above).

  2. Add authorized redirect URIs in Client ID for web application (please see another attached image/screenshot above).

The question is due to I need to automate those tasks for a production deployment, but I have not found a way to automate it (preferably using terraforming code, through native resources or null resources), or in any other way.

thanks!



Solution 1:[1]

This must be completed in the Google Cloud Console. There are no public APIs nor CLI commands that provide these features.

Solution 2:[2]

I posted this question a few years ago. I wonder if at this time there are any terraform (or command line) resources to do what I described in the original question.

Thanks,

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 John Hanley
Solution 2 José Enrique Hernández