forked from okta/terraform-provider-okta
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbasic_inline_hook.tf
43 lines (41 loc) · 1.28 KB
/
basic_inline_hook.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
resource "okta_inline_hook" "test" {
name = "testAcc_replace_with_uuid"
status = "ACTIVE"
type = "com.okta.saml.tokens.transform"
version = "1.0.2"
channel = {
type = "HTTP"
version = "1.0.0"
uri = "https://example.com/test1"
method = "POST"
}
auth = {
key = "Authorization"
type = "HEADER"
value = "secret"
}
}
resource "okta_app_saml" "test" {
label = "testAcc_replace_with_uuid"
sso_url = "http://google.com"
recipient = "http://here.com"
destination = "http://its-about-the-journey.com"
audience = "http://audience.com"
subject_name_id_template = "$${user.userName}"
subject_name_id_format = "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress"
response_signed = true
signature_algorithm = "RSA_SHA256"
digest_algorithm = "SHA256"
honor_force_authn = false
authn_context_class_ref = "urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport"
inline_hook_id = okta_inline_hook.test.id
depends_on = [
okta_inline_hook.test
]
attribute_statements {
type = "GROUP"
name = "groups"
filter_type = "REGEX"
filter_value = ".*"
}
}