There is no persistent data associated with this resource.
resource "google_identity_platform_project_default_config" "default" {
sign_in {
allow_duplicate_emails = true
anonymous {
enabled = true
}
email {
enabled = true
password_required = false
}
phone_number {
enabled = true
test_phone_numbers = {
"+11231231234" = "000000"
}
}
}
}
The following arguments are supported:
sign_in
-
(Optional)
Configuration related to local sign in methods.
Structure is documented below.
project
- (Optional) The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
email
-
(Optional)
Configuration options related to authenticating a user by their email address.
Structure is documented below.
phone_number
-
(Optional)
Configuration options related to authenticated a user by their phone number.
Structure is documented below.
anonymous
-
(Optional)
Configuration options related to authenticating an anonymous user.
Structure is documented below.
allow_duplicate_emails
-
(Optional)
Whether to allow more than one account to have the same email.
hash_config
-
(Output)
Output only. Hash config information.
Structure is documented below.
enabled
-
(Optional)
Whether email auth is enabled for the project or not.
password_required
-
(Optional)
Whether a password is required for email auth or not. If true, both an email and
password must be provided to sign in. If false, a user may sign in via either
email/password or email link.
The phone_number
block supports:
enabled
-
(Optional)
Whether phone number auth is enabled for the project or not.
test_phone_numbers
-
(Optional)
A map of
enabled
-
(Required)
Whether anonymous user auth is enabled for the project or not.The hash_config
block contains:
algorithm
-
(Output)
Different password hash algorithms used in Identity Toolkit.
signer_key
-
(Output)
Signer key in base64.
salt_separator
-
(Output)
Non-printable character to be inserted between the salt and plain text password in base64.
rounds
-
(Output)
How many rounds for hash calculation. Used by scrypt and other similar password derivation algorithms.
memory_cost
-
(Output)
Memory cost for hash calculation. Used by scrypt and other similar password derivation algorithms. See https://tools.ietf.org/html/rfc7914 for explanation of field.
In addition to the arguments listed above, the following computed attributes are exported:
id
- an identifier for the resource with format {{project}}
name
-
The name of the Config resource. Example: "projects/my-awesome-project/config"
This resource provides the following Timeouts configuration options:
create
- Default is 20 minutes.update
- Default is 20 minutes.delete
- Default is 20 minutes.ProjectDefaultConfig can be imported using any of these accepted formats:
projects/{{project}}/config/{{name}}
{{project}}/{{name}}
{{name}}
In Terraform v1.5.0 and later, use an import
block to import ProjectDefaultConfig using one of the formats above. For example:
import {
id = "projects/{{project}}/config/{{name}}"
to = google_identity_platform_project_default_config.default
}
When using the terraform import
command, ProjectDefaultConfig can be imported using one of the formats above. For example:
$ terraform import google_identity_platform_project_default_config.default projects/{{project}}/config/{{name}}
$ terraform import google_identity_platform_project_default_config.default {{project}}/{{name}}
$ terraform import google_identity_platform_project_default_config.default {{name}}
This resource supports User Project Overrides.