Skip to content

googleIdentityPlatformOauthIdpConfig

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

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as google from "./.gen/providers/google";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: google.
For a more precise conversion please use the --provider flag in convert.*/
new google.identityPlatformOauthIdpConfig.IdentityPlatformOauthIdpConfig(
  this,
  "oauth_idp_config",
  {
    client_id: "client-id",
    client_secret: "secret",
    display_name: "Display Name",
    enabled: true,
    issuer: "issuer",
    name: "oidc.oauth-idp-config",
  }
);

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.

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


  • displayName - (Optional) Human friendly display name.

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

  • clientSecret - (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 20 minutes.
  • update - Default is 20 minutes.
  • delete - Default is 20 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.