hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.33k stars 1.73k forks source link

Support Oauth consent screen scope configuration #17649

Open red8888 opened 7 months ago

red8888 commented 7 months ago

Community Note

Description

How do I do this with terraform? https://developers.google.com/workspace/guides/configure-oauth-consent

There seem to be two resources, but they include nothing about scopes

# https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/iap_client

resource "google_iap_brand" "project_brand" {
  support_email     = "support@example.com"
  application_title = "Cloud IAP protected Application"
  project           = google_project_service.project_service.project
}

resource "google_iap_client" "project_client" {
  display_name = "Test Client"
  brand        =  google_iap_brand.project_brand.name
}

Is this unsupported?

New or Affected Resource(s)

Potential Terraform Configuration

I not sure which resource should handle this config

References

No response

~b/330932729~ b/117642601

SarahFrench commented 7 months ago

Note from triage: Possibly related to https://github.com/hashicorp/terraform-provider-google/issues/14749

bryan0515 commented 7 months ago

For internal user use case, please use the Google managed OAuth client - https://cloud.google.com/iap/docs/custom-oauth-configuration

For external user use case, please use the UI option. These resources only support the internal user use case.

melinath commented 7 months ago

Kicking back to triage.

rileykarson commented 6 months ago

The step the user is requesting here doesn't seem to have an API- marking upstream.

carloscaequifax commented 4 months ago

Is there a way to configure Oauth consent screen on GCP yet using terraform ?

mitchellrust commented 2 weeks ago

Seems this is still unavailable for external users, would love if this could make it into a future roadmap!