forked from okta/terraform-provider-okta
-
Notifications
You must be signed in to change notification settings - Fork 1
/
full_stack.tf
44 lines (39 loc) · 1.17 KB
/
full_stack.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
resource "okta_auth_server" "test" {
name = "testAcc_replace_with_uuid"
description = "test"
audiences = ["whatever.rise.zone"]
}
resource "okta_auth_server_claim" "test" {
auth_server_id = okta_auth_server.test.id
name = "test"
status = "ACTIVE"
claim_type = "RESOURCE"
value_type = "EXPRESSION"
value = "cool"
}
resource "okta_auth_server_scope" "test" {
auth_server_id = okta_auth_server.test.id
consent = "REQUIRED"
description = "This is a scope"
name = "test:something"
}
resource "okta_auth_server_policy" "test" {
auth_server_id = okta_auth_server.test.id
status = "ACTIVE"
name = "test"
description = "Policy"
priority = 1
client_whitelist = ["ALL_CLIENTS"]
}
data "okta_group" "all" {
name = "Everyone"
}
resource "okta_auth_server_policy_rule" "test" {
auth_server_id = okta_auth_server.test.id
policy_id = okta_auth_server_policy.test.id
status = "ACTIVE"
name = "test"
priority = 1
group_whitelist = [data.okta_group.all.id]
grant_type_whitelist = ["password"]
}