google_identity_platform_tenant_oauth_idp_config

OIDC IdP configuration for a Identity Toolkit project within a tenant.

You must enable the Google Identity Platform in the marketplace prior to using this resource.

Open in Cloud Shell

Example Usage - Identity Platform Tenant Oauth Idp Config Basic

resource "google_identity_platform_tenant" "tenant" {
  display_name  = "tenant"
}

resource "google_identity_platform_tenant_oauth_idp_config" "tenant_oauth_idp_config" {
  name          = "oidc.oauth-idp-config"
  tenant        = google_identity_platform_tenant.tenant.name
  display_name  = "Display Name"
  client_id     = "client-id"
  issuer        = "issuer"
  enabled       = true
  client_secret = "secret"
}

Argument Reference

The following arguments are supported:


Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

Timeouts

This resource provides the following Timeouts configuration options:

Import

TenantOauthIdpConfig can be imported using any of these accepted formats:

In Terraform v1.5.0 and later, use an import block to import TenantOauthIdpConfig using one of the formats above. For example:

import {
  id = "projects/{{project}}/tenants/{{tenant}}/oauthIdpConfigs/{{name}}"
  to = google_identity_platform_tenant_oauth_idp_config.default
}

When using the terraform import command, TenantOauthIdpConfig can be imported using one of the formats above. For example:

$ terraform import google_identity_platform_tenant_oauth_idp_config.default projects/{{project}}/tenants/{{tenant}}/oauthIdpConfigs/{{name}}
$ terraform import google_identity_platform_tenant_oauth_idp_config.default {{project}}/{{tenant}}/{{name}}
$ terraform import google_identity_platform_tenant_oauth_idp_config.default {{tenant}}/{{name}}

User Project Overrides

This resource supports User Project Overrides.