Skip to content

Commit 11db05a

Browse files
authored
Revert OKTA-1001373 Add authenticator methods to okta_authenticator (#2619)
1 parent 40679e5 commit 11db05a

26 files changed

Lines changed: 1080 additions & 3830 deletions

File tree

docs/data-sources/authenticator.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ data "okta_authenticator" "test_1" {
3535

3636
### Read-Only
3737

38-
- `method` (Set of Object) Method-level configuration for authenticators that support it (phone_number, okta_verify, custom_otp). (see [below for nested schema](#nestedatt--method))
3938
- `provider_auth_port` (Number) The RADIUS server port (for example 1812). This is defined when the On-Prem RADIUS server is configured
4039
- `provider_hostname` (String) Server host name or IP address
4140
- `provider_instance_id` (String) (Specific to `security_key`) App Instance ID.
@@ -46,13 +45,4 @@ data "okta_authenticator" "test_1" {
4645
- `status` (String) Status of the Authenticator.
4746
- `type` (String) Type of the authenticator
4847

49-
<a id="nestedatt--method"></a>
50-
### Nested Schema for `method`
51-
52-
Read-Only:
53-
54-
- `type` (String) The type of authenticator method.
55-
- `status` (String) The method status: ACTIVE or INACTIVE.
56-
- `settings` (String) Method-specific settings as a JSON string.
57-
5848

docs/resources/authenticator.md

Lines changed: 1 addition & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -70,66 +70,6 @@ resource "okta_authenticator" "otp" {
7070
legacy_ignore_name = false
7171
}
7272
73-
# Phone authenticator with method-level control
74-
resource "okta_authenticator" "phone" {
75-
name = "Phone Authentication"
76-
key = "phone_number"
77-
78-
# Enable SMS method
79-
method {
80-
type = "sms"
81-
status = "ACTIVE"
82-
}
83-
84-
# Disable voice method
85-
method {
86-
type = "voice"
87-
status = "INACTIVE"
88-
}
89-
}
90-
91-
# Okta Verify with specific methods enabled
92-
resource "okta_authenticator" "okta_verify" {
93-
name = "Okta Verify"
94-
key = "okta_verify"
95-
96-
method {
97-
type = "push"
98-
status = "ACTIVE"
99-
}
100-
101-
method {
102-
type = "totp"
103-
status = "ACTIVE"
104-
}
105-
106-
method {
107-
type = "signed_nonce"
108-
status = "INACTIVE"
109-
}
110-
}
111-
112-
# Custom OTP with method settings
113-
resource "okta_authenticator" "custom_otp_with_method" {
114-
name = "Custom OTP Authenticator"
115-
key = "custom_otp"
116-
status = "ACTIVE"
117-
legacy_ignore_name = false
118-
119-
method {
120-
type = "otp"
121-
status = "ACTIVE"
122-
settings = jsonencode({
123-
"protocol" : "TOTP",
124-
"encoding" : "base32",
125-
"algorithm" : "HMacSHA256",
126-
"timeIntervalInSeconds" : 30,
127-
"passCodeLength" : 6,
128-
"acceptableAdjacentIntervals" : 3
129-
})
130-
}
131-
}
132-
13373
resource "okta_authenticator" "custom_app" {
13474
key = "custom_app"
13575
name = "Custom Push Auth"
@@ -161,7 +101,6 @@ resource "okta_authenticator" "custom_app" {
161101

162102
### Optional
163103

164-
- `method` (Block Set) Method-level configuration for authenticators. Only supported for authenticators with key `phone_number`, `okta_verify`, or `custom_otp`. (see [below for nested schema](#nestedblock--method))
165104
- `agree_to_terms` (Boolean) A value of true indicates that the administrator accepts the terms for creating a new authenticator. Okta requires that you accept the terms when creating a new custom_app authenticator. Other authenticators don't require this field.
166105
- `legacy_ignore_name` (Boolean) Name does not trigger change detection (legacy behavior). Must be set to false for custom_app authenticators.
167106
- `provider_auth_port` (Number) The RADIUS server port (for example 1812). This is defined when the On-Prem RADIUS server is configured. Used only for authenticators with type `security_key`. Conflicts with `provider_json` argument.
@@ -180,32 +119,7 @@ resource "okta_authenticator" "custom_app" {
180119
- `id` (String) The ID of this resource.
181120
- `provider_instance_id` (String) App Instance ID.
182121
- `provider_type` (String) Provider type. Supported value for Duo: `DUO`. Supported value for Custom App: `PUSH`
183-
- `type` (String) The type of Authenticator. Values include: `password`, `security_question`, `phone`, `email`, `app`, `federated`, and `security_key`.
184-
185-
<a id="nestedblock--method"></a>
186-
### Nested Schema for `method`
187-
188-
Required:
189-
190-
- `type` (String) The method type. Supported values depend on the authenticator key:
191-
- For `phone_number`: `sms`, `voice`
192-
- For `okta_verify`: `push`, `totp`, `signed_nonce`
193-
- For `custom_otp`: `otp`
194-
195-
Optional:
196-
197-
- `status` (String) The method status: `ACTIVE` or `INACTIVE`. Default: `ACTIVE`
198-
- `settings` (String) Method-specific settings as a JSON string. Settings vary by method type:
199-
- For `otp` method (custom_otp authenticator):
200-
- `protocol` (String) - Protocol type: `TOTP` or `HOTP`
201-
- `encoding` (String) - Encoding format: `base32` or `base64`
202-
- `algorithm` (String) - Hash algorithm: `HMACSHA1`, `HMACSHA256`, or `HMACSHA512`
203-
- `timeIntervalInSeconds` (Number) - Time step in seconds (TOTP only)
204-
- `passCodeLength` (Number) - Length of the OTP code
205-
- `acceptableAdjacentIntervals` (Number) - Number of adjacent time intervals to accept
206-
- For `signed_nonce` method (okta_verify authenticator):
207-
- `algorithms` (Array) - Supported algorithms: `ES256`, `ES384`, `ES512`, `RS256`, `RS384`, `RS512`, `EdDSA`
208-
- `keyProtection` (String) - Key protection level: `ANY`, `SOFTWARE`, or `HARDWARE`
122+
- `type` (String) he type of Authenticator. Values include: `password`, `security_question`, `phone`, `email`, `app`, `federated`, and `security_key`.
209123

210124
## Import
211125

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
resource "okta_authenticator" "test1" {
2-
key = "custom_app"
3-
name = "VCRTestCustomAppAuthNew"
4-
status = "ACTIVE"
5-
agree_to_terms = "true"
6-
legacy_ignore_name = false
7-
settings = jsonencode({
8-
"userVerification" : "REQUIRED",
9-
"appInstanceId" : "0oa12345678ABCDEFG"
10-
})
11-
provider_json = jsonencode({
12-
"type" : "PUSH",
13-
"configuration" : {
14-
"fcm" : {
15-
"id" : "ppcABCDEFGH12345678"
16-
}
17-
}
18-
})
2+
key = "custom_app"
3+
name = "VCRTestCustomAppAuth"
4+
status = "ACTIVE"
5+
agree_to_terms = "true"
6+
legacy_ignore_name = false
7+
settings = jsonencode({
8+
"userVerification": "REQUIRED",
9+
"appInstanceId": "0oaspABCDEF12345678"
10+
})
11+
provider_json = jsonencode({
12+
"type": "PUSH",
13+
"configuration": {
14+
"fcm": {
15+
"id": "ppcrb12345678ABCDEF"
16+
}
17+
}
18+
})
1919
}
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
resource "okta_authenticator" "test1" {
2-
key = "custom_app"
3-
name = "VCRTestCustomAppAuthNewRenamed"
4-
status = "ACTIVE"
5-
agree_to_terms = "true"
6-
legacy_ignore_name = false
7-
settings = jsonencode({
8-
"userVerification" : "PREFERRED",
9-
"appInstanceId" : "0oa12345678ABCDEFG"
10-
})
11-
provider_json = jsonencode({
12-
"type" : "PUSH",
13-
"configuration" : {
14-
"fcm" : {
15-
"id" : "ppcABCDEFGH12345678"
16-
}
17-
}
18-
})
2+
key = "custom_app"
3+
name = "VCRTestCustomAppAuthRenamed"
4+
status = "ACTIVE"
5+
agree_to_terms = "true"
6+
legacy_ignore_name = false
7+
settings = jsonencode({
8+
"userVerification": "PREFERRED",
9+
"appInstanceId": "0oaspGHIJKL12345678"
10+
})
11+
provider_json = jsonencode({
12+
"type": "PUSH",
13+
"configuration": {
14+
"fcm": {
15+
"id": "ppcrb12345678ABCDEF"
16+
}
17+
}
18+
})
1919
}

examples/resources/okta_authenticator/custom_otp_with_method.tf

Lines changed: 0 additions & 20 deletions
This file was deleted.

examples/resources/okta_authenticator/okta_verify.tf

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,5 @@ resource "okta_authenticator" "okta_verify" {
1212
"userVerificationMethods" : ["BIOMETRICS"]
1313
})
1414
status = "ACTIVE"
15-
16-
# Optional: Control specific authentication methods
17-
method {
18-
type = "push"
19-
status = "ACTIVE"
20-
}
21-
22-
method {
23-
type = "totp"
24-
status = "ACTIVE"
25-
}
26-
27-
method {
28-
type = "signed_nonce"
29-
status = "ACTIVE"
30-
}
3115
}
3216

examples/resources/okta_authenticator/okta_verify_methods_updated.tf

Lines changed: 0 additions & 27 deletions
This file was deleted.

examples/resources/okta_authenticator/okta_verify_with_methods.tf

Lines changed: 0 additions & 27 deletions
This file was deleted.

examples/resources/okta_authenticator/phone_with_methods.tf

Lines changed: 0 additions & 17 deletions
This file was deleted.

examples/resources/okta_authenticator/phone_with_methods_updated.tf

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)