forked from okta/terraform-provider-okta
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbasic.tf
More file actions
66 lines (56 loc) · 1.46 KB
/
Copy pathbasic.tf
File metadata and controls
66 lines (56 loc) · 1.46 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
resource "okta_idp_social" "facebook" {
type = "FACEBOOK"
protocol_type = "OAUTH2"
name = "testAcc_facebook_replace_with_uuid"
scopes = [
"public_profile",
"email",
]
client_id = "abcd123"
client_secret = "abcd123"
username_template = "idpuser.email"
}
resource "okta_user_schema_property" "schema_custom" {
index = "customfieldId"
title = "Test Custom Field"
type = "string"
description = "Test custom field"
required = false
min_length = 1
max_length = 50
permissions = "READ_ONLY"
master = "PROFILE_MASTER"
}
resource "okta_idp_social" "google" {
type = "GOOGLE"
protocol_type = "OIDC"
name = "testAcc_google_replace_with_uuid"
scopes = [
"profile",
"email",
"openid",
]
client_id = "abcd123"
client_secret = "abcd123"
username_template = "idpuser.email"
}
resource "okta_idp_social" "microsoft" {
type = "MICROSOFT"
protocol_type = "OIDC"
name = "testAcc_microsoft_replace_with_uuid"
scopes = [
"openid",
"email",
"profile",
"https://graph.microsoft.com/User.Read",
]
client_id = "abcd123"
client_secret = "abcd123"
username_template = "idpuser.userPrincipalName"
groups_action = "ASSIGN"
groups_assignment = [okta_group.test.id]
}
resource "okta_group" "test" {
name = "testAcc_replace_with_uuid"
description = "testing, testing, testing"
}