forked from okta/terraform-provider-okta
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfactor_sequence.tf
More file actions
80 lines (71 loc) · 1.6 KB
/
Copy pathfactor_sequence.tf
File metadata and controls
80 lines (71 loc) · 1.6 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
data "okta_group" "all" {
name = "Everyone"
}
resource "okta_policy_signon" "test" {
name = "testAcc_replace_with_uuid"
status = "ACTIVE"
description = "Terraform Acceptance Test SignOn Policy"
groups_included = [
data.okta_group.all.id
]
}
data "okta_behavior" "new_city" {
name = "New City"
}
resource "okta_network_zone" "test" {
name = "testAcc_replace_with_uuid"
type = "IP"
gateways = [
"1.2.3.4/24",
"2.3.4.5-2.3.4.15"
]
proxies = [
"2.2.3.4/24",
"3.3.4.5-3.3.4.15"
]
depends_on = [okta_policy_rule_signon.test]
status = "ACTIVE"
}
resource "okta_policy_rule_signon" "test" {
policy_id = okta_policy_signon.test.id
name = "testAcc_replace_with_uuid"
status = "ACTIVE"
access = "CHALLENGE"
behaviors = [
data.okta_behavior.new_city.id
]
factor_sequence {
primary_criteria_factor_type = "password"
primary_criteria_provider = "OKTA"
secondary_criteria {
factor_type = "push"
provider = "OKTA"
}
secondary_criteria {
factor_type = "token:hotp"
provider = "CUSTOM"
}
secondary_criteria {
factor_type = "token:software:totp"
provider = "OKTA"
}
}
factor_sequence {
primary_criteria_factor_type = "token:hotp"
primary_criteria_provider = "CUSTOM"
}
depends_on = [
okta_factor.okta_sms,
okta_factor.okta_email,
okta_factor.hotp
]
}
resource "okta_factor" "okta_sms" {
provider_id = "okta_sms"
}
resource "okta_factor" "okta_email" {
provider_id = "okta_email"
}
resource "okta_factor" "hotp" {
provider_id = "hotp"
}