-
Notifications
You must be signed in to change notification settings - Fork 0
/
okta_authenticators.tf
57 lines (48 loc) · 1.57 KB
/
okta_authenticators.tf
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
# see https://registry.terraform.io/providers/okta/okta/latest/docs/resources/authenticator
resource "okta_authenticator" "okta_email" {
key = "okta_email"
legacy_ignore_name = false
name = "Email"
status = "ACTIVE"
settings = jsonencode({
"allowedFor" : "recovery"
"tokenLifetimeInMinutes" : var.password_recipe.email_token_lifetime
})
}
# see https://registry.terraform.io/providers/okta/okta/latest/docs/resources/authenticator
resource "okta_authenticator" "okta_password" {
key = "okta_password"
legacy_ignore_name = false
name = "Password"
status = "ACTIVE"
settings = jsonencode({
"allowedFor" : "authentication"
})
}
# see https://registry.terraform.io/providers/okta/okta/latest/docs/resources/authenticator
resource "okta_authenticator" "okta_verify" {
key = "okta_verify"
legacy_ignore_name = false
name = "Okta Verify"
status = "ACTIVE"
settings = jsonencode({
"channelBinding" : {
"required" : "HIGH_RISK_ONLY",
"style" : "NUMBER_CHALLENGE",
}
"compliance" : {
"fips" : "OPTIONAL"
}
"userVerification" : "PREFERRED"
})
}
# see https://registry.terraform.io/providers/okta/okta/latest/docs/resources/authenticator
resource "okta_authenticator" "security_question" {
key = "security_question"
legacy_ignore_name = false
name = "Security Question"
status = "ACTIVE"
settings = jsonencode({
"allowedFor" : "recovery"
})
}