OIDC IdP configuration for a Identity Toolkit project.
You must enable the Google Identity Platform in the marketplace prior to using this resource.
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"
}
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.
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}}
This resource provides the following Timeouts configuration options:
create
- Default is 20 minutes.update
- Default is 20 minutes.delete
- Default is 20 minutes.OauthIdpConfig can be imported using any of these accepted formats:
projects/{{project}}/oauthIdpConfigs/{{name}}
{{project}}/{{name}}
{{name}}
In Terraform v1.5.0 and later, use an import
block to import OauthIdpConfig using one of the formats above. For example:
import {
id = "projects/{{project}}/oauthIdpConfigs/{{name}}"
to = google_identity_platform_oauth_idp_config.default
}
When using the terraform import
command, OauthIdpConfig can be imported using one of the formats above. For example:
$ 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}}
This resource supports User Project Overrides.