Configurations options 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_default_supported_idp_config" "idp_config" {
enabled = true
idp_id = "playgames.google.com"
client_id = "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
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}}/defaultSupportedIdpConfigs/{{idp_id}}
name
-
The name of the DefaultSupportedIdpConfig resource
This resource provides the following Timeouts configuration options:
create
- Default is 20 minutes.update
- Default is 20 minutes.delete
- Default is 20 minutes.DefaultSupportedIdpConfig can be imported using any of these accepted formats:
projects/{{project}}/defaultSupportedIdpConfigs/{{idp_id}}
{{project}}/{{idp_id}}
{{idp_id}}
In Terraform v1.5.0 and later, use an import
block to import DefaultSupportedIdpConfig using one of the formats above. For example:
import {
id = "projects/{{project}}/defaultSupportedIdpConfigs/{{idp_id}}"
to = google_identity_platform_default_supported_idp_config.default
}
When using the terraform import
command, DefaultSupportedIdpConfig can be imported using one of the formats above. For example:
$ terraform import google_identity_platform_default_supported_idp_config.default projects/{{project}}/defaultSupportedIdpConfigs/{{idp_id}}
$ terraform import google_identity_platform_default_supported_idp_config.default {{project}}/{{idp_id}}
$ terraform import google_identity_platform_default_supported_idp_config.default {{idp_id}}
This resource supports User Project Overrides.