-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathidp.tf
More file actions
43 lines (34 loc) · 906 Bytes
/
idp.tf
File metadata and controls
43 lines (34 loc) · 906 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
resource "google_identity_platform_config" "default" {
project = local.project_id
authorized_domains = var.authorized_domains
sign_in {
allow_duplicate_emails = false
anonymous {
enabled = false
}
email {
enabled = true
password_required = true
}
phone_number {
enabled = false
}
}
multi_tenant {
allow_tenants = var.allow_tenants
default_tenant_location = var.default_tenant_location
}
monitoring {
request_logging {
enabled = var.enable_logging
}
}
depends_on = [google_project_service.identitytoolkit]
}
resource "google_identity_platform_default_supported_idp_config" "google" {
idp_id = var.idp_id
enabled = true
client_id = var.oauth_client_id
client_secret = var.oauth_client_secret
depends_on = [google_identity_platform_config.default]
}