Configurations options for the tenant for authenticating with a the standard set of Identity Toolkit-trusted IDPs.
You must enable the Google Identity Platform in the marketplace prior to using this resource.
resource "google_identity_platform_tenant" "tenant" {
display_name = "tenant"
}
resource "google_identity_platform_tenant_default_supported_idp_config" "idp_config" {
enabled = true
tenant = google_identity_platform_tenant.tenant.name
idp_id = "playgames.google.com"
client_id = "my-client-id"
client_secret = "secret"
}
The following arguments are supported:
idp_id
-
(Required)
ID of the IDP. Possible values include:
apple.com
facebook.com
gc.apple.com
github.com
google.com
linkedin.com
microsoft.com
playgames.google.com
twitter.com
yahoo.com
tenant
-
(Required)
The name of the tenant where this DefaultSupportedIdpConfig resource exists
client_id
-
(Required)
OAuth client ID
client_secret
-
(Required)
OAuth client secret
enabled
-
(Optional)
If this IDP allows the user to sign in
project
- (Optional) The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
In addition to the arguments listed above, the following computed attributes are exported:
id
- an identifier for the resource with format projects/{{project}}/tenants/{{tenant}}/defaultSupportedIdpConfigs/{{idp_id}}
name
-
The name of the default supported IDP config resource
This resource provides the following Timeouts configuration options:
create
- Default is 20 minutes.update
- Default is 20 minutes.delete
- Default is 20 minutes.TenantDefaultSupportedIdpConfig can be imported using any of these accepted formats:
projects/{{project}}/tenants/{{tenant}}/defaultSupportedIdpConfigs/{{idp_id}}
{{project}}/{{tenant}}/{{idp_id}}
{{tenant}}/{{idp_id}}
In Terraform v1.5.0 and later, use an import
block to import TenantDefaultSupportedIdpConfig using one of the formats above. For example:
import {
id = "projects/{{project}}/tenants/{{tenant}}/defaultSupportedIdpConfigs/{{idp_id}}"
to = google_identity_platform_tenant_default_supported_idp_config.default
}
When using the terraform import
command, TenantDefaultSupportedIdpConfig can be imported using one of the formats above. For example:
$ terraform import google_identity_platform_tenant_default_supported_idp_config.default projects/{{project}}/tenants/{{tenant}}/defaultSupportedIdpConfigs/{{idp_id}}
$ terraform import google_identity_platform_tenant_default_supported_idp_config.default {{project}}/{{tenant}}/{{idp_id}}
$ terraform import google_identity_platform_tenant_default_supported_idp_config.default {{tenant}}/{{idp_id}}
This resource supports User Project Overrides.