» google_identity_platform_oauth_idp_config

OIDC IdP configuration for a Identity Toolkit project.

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

» Example Usage - Identity Platform Oauth Idp Config Basic

resource "google_identity_platform_oauth_idp_config" "oauth_idp_config" {
  name          = "oidc.oauth-idp-config"
  display_name  = "Display Name"
  client_id     = "client-id"
  issuer        = "issuer"
  enabled       = true
  client_secret = "secret"
}

» Argument Reference

The following arguments are supported:

  • name - (Required) The name of the OauthIdpConfig. Must start with oidc..

  • issuer - (Required) For OIDC Idps, the issuer identifier.

  • client_id - (Required) The client id of an OAuth client.


  • display_name - (Optional) Human friendly display name.

  • enabled - (Optional) If this config allows users to sign in with the provider.

  • client_secret - (Optional) The client secret of the OAuth client, to enable OIDC code flow.

  • project - (Optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

» Attributes Reference

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

  • id - an identifier for the resource with format projects/{{project}}/oauthIdpConfigs/{{name}}

» Timeouts

This resource provides the following Timeouts configuration options:

  • create - Default is 4 minutes.
  • update - Default is 4 minutes.
  • delete - Default is 4 minutes.

» Import

OauthIdpConfig can be imported using any of these accepted formats:

$ terraform import google_identity_platform_oauth_idp_config.default projects/{{project}}/oauthIdpConfigs/{{name}}
$ terraform import google_identity_platform_oauth_idp_config.default {{project}}/{{name}}
$ terraform import google_identity_platform_oauth_idp_config.default {{name}}

» User Project Overrides

This resource supports User Project Overrides.