generated from oracle-quickstart/oci-quickstart-template
-
Notifications
You must be signed in to change notification settings - Fork 9
/
variables.tf
256 lines (239 loc) · 12.4 KB
/
variables.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
# Copyright (c) 2023 Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
variable "tenancy_ocid" {
type = string
description = "The OCID of the tenancy."
}
variable "identity_domains_configuration" {
description = "The identity domains configuration."
type = object({
default_compartment_id = optional(string)
default_defined_tags = optional(map(string))
default_freeform_tags = optional(map(string))
identity_domains = map(object({
compartment_id = optional(string),
display_name = string,
description = string,
home_region = optional(string),
license_type = string,
admin_email = optional(string),
admin_first_name = optional(string),
admin_last_name = optional(string),
admin_user_name = optional(string),
is_hidden_on_login = optional(bool),
is_notification_bypassed = optional(bool),
is_primary_email_required = optional(bool),
allow_signing_cert_public_access = bool,
defined_tags = optional(map(string)),
freeform_tags = optional(map(string)),
replica_region = optional(string)
}))
})
default = null
}
variable "identity_domain_groups_configuration" {
description = "The identity domain groups configuration."
type = object({
default_identity_domain_id = optional(string)
default_defined_tags = optional(map(string))
default_freeform_tags = optional(map(string))
groups = map(object({
identity_domain_id = optional(string),
name = string,
description = optional(string),
requestable = optional(bool),
members = optional(list(string)),
defined_tags = optional(map(string)),
freeform_tags = optional(map(string))
}))
})
default = null
}
variable "identity_domain_dynamic_groups_configuration" {
description = "The identity domain dynamic groups configuration."
type = object({
default_identity_domain_id = optional(string)
default_defined_tags = optional(map(string))
default_freeform_tags = optional(map(string))
dynamic_groups = map(object({
identity_domain_id = optional(string),
name = string,
description = optional(string),
matching_rule = string,
defined_tags = optional(map(string)),
freeform_tags = optional(map(string))
}))
})
default = null
}
variable "identity_domain_identity_providers_configuration" {
description = "The identity domain identity providers configuration."
type = object({
default_identity_domain_id = optional(string)
#default_defined_tags = optional(map(string))
#default_freeform_tags = optional(map(string))
identity_providers = map(object({
identity_domain_id = optional(string),
name = string,
description = optional(string),
icon_file = optional(string),
enabled = bool,
name_id_format = optional(string),
user_mapping_method = optional(string),
user_mapping_store_attribute = optional(string),
assertion_attribute = optional(string),
idp_metadata_file = optional(string),
identity_domain_idp_id = optional(string),
idp_issuer_uri = optional(string),
sso_service_url = optional(string),
sso_service_binding = optional(string),
idp_signing_certificate = optional(string),
idp_encryption_certificate = optional(string),
enable_global_logout = optional(bool),
idp_logout_request_url = optional(string),
idp_logout_response_url = optional(string),
idp_logout_binding = optional(string),
signature_hash_algorithm = optional(string),
send_signing_certificate = optional(bool),
add_to_default_idp_policy = bool,
#defined_tags = optional(map(string)),
#freeform_tags = optional(map(string))
}))
})
default = null
}
variable "identity_domain_applications_configuration" {
description = "The identity domain applications configuration."
type = object({
default_identity_domain_id = optional(string)
default_defined_tags = optional(map(string))
default_freeform_tags = optional(map(string))
applications = map(object({
identity_domain_id = optional(string),
name = string,
display_name = string,
description = optional(string),
type = string, # SAML, Mobile (public), Confidential, SCIM, FusionApps, GenericSCIM
active = optional(bool),
application_group_ids = optional(list(string)),
#urls
app_url = optional(string),
custom_signin_url = optional(string),
custom_signout_url = optional(string),
custom_error_url = optional(string),
custom_social_linking_callback_url = optional(string),
#display settings
display_in_my_apps = optional(bool),
user_can_request_access = optional(bool),
#autn and authz
enforce_grants_as_authorization = optional(bool),
#Client Configuration
configure_as_oauth_client = optional(bool),
allowed_grant_types = optional(list(string)), # device_code, refresh_token, jwt_assertion (jwt-bearer), client_credentials, resource_owner (password), authorization_code, implicit, saml2_assertion(saml2-bearer), tls_client_auth
allow_non_https_urls = optional(bool),
redirect_urls = optional(list(string)),
post_logout_redirect_urls = optional(list(string)),
logout_url = optional(string),
client_type = optional(string), # trusted, confidential
app_client_certificate = optional(object({
alias = string,
base64certificate = string
})),
allow_introspect_operation = optional(bool),
allow_on_behalf_of_operation = optional(bool),
id_token_encryption_algorithm = optional(string), # "A128CBC-HS256","A192CBC-HS384","A256CBC-HS512","A128GCM","A192GCM","A256GCM"
bypass_consent = optional(bool),
client_ip_address = optional(list(string)), #TBA
authorized_resources = optional(string), # Same as trust_scope: All(Account), Specific(Explicit)
resources = optional(list(string)), #resources listed must match scopes defined by an app
application_roles = optional(list(string)),
#Resource Server Configuration
configure_as_oauth_resource_server = optional(bool),
access_token_expiration = optional(string),
allow_token_refresh = optional(bool),
refresh_token_expiration = optional(string),
primary_audience = optional(string),
secondary_audiences = optional(list(string)),
scopes = optional(map(object({
scope = optional(string),
display_name = optional(string),
description = optional(string),
requires_user_consent = optional(bool)
}))),
# SAML SSO
identity_domain_sp_id = optional(string),
entity_id = optional(string),
assertion_consumer_url = optional(string),
name_id_format = optional(string), # "saml-emailaddress", "saml-x509", "saml-kerberos", "saml-persistent", "saml-transient", "saml-unspecified", "saml-windowsnamequalifier","saml-none"
name_id_value = optional(string),
signing_certificate = optional(string),
signed_sso = optional(string),
include_signing_certificate = optional(bool),
signature_hash_algorithm = optional(string),
enable_single_logout = optional(bool),
logout_binding = optional(string),
single_logout_url = optional(string),
logout_response_url = optional(string),
require_encrypted_assertion = optional(bool),
encryption_certificate = optional(string),
encryption_algorithm = optional(string), #AES-128,AES-192,AES-256,AES-128-CGM,AES-256-CGM,3DES
key_encryption_algorithm = optional(string), #RSA-V1.5, RSA-OAEP
attribute_configuration = optional(map(object({
assertion_attribute = string,
identity_domain_attribute = string,
format = optional(string)
}))),
app_links = optional(map(object({
relay_state = string,
application_icon = optional(string),
visible = optional(bool)
}))),
fusion_service_urls = optional(object({
crm_landing_page_url = optional(string),
scm_landing_page_url = optional(string),
hcm_landing_page_url = optional(string),
erp_landing_page_url = optional(string)
}))
#Web Tier Policy
web_tier_policy_json = optional(string)
# Catalog Apps Provisioning
enable_provisioning = optional(bool)
#Connectivity
target_app_id = optional(string)
host_name = optional(string) #also use as fa host name
client_id = optional(string)
client_secret = optional(string)
scope = optional(string)
authentication_server_url = optional(string)
authoritative_sync = optional(bool)
enable_synchronization = optional(bool)
admin_consent_granted = optional(bool)
# Catalog Apps: Specific for Generic SCIM
base_uri = optional(string)
custom_auth_headers = optional(string)
http_operation_types = optional(string)
# Catalog Apps: Specific for Oracle Fusion Applications 13 (FusionApps)
fa_port = optional(string)
fa_admin_user = optional(string)
fa_admin_password = optional(string)
fa_ssl_enabled = optional(bool)
fa_override_custom_sync = optional(bool)
fa_admin_roles = optional(list(string))
defined_tags = optional(map(string)),
freeform_tags = optional(map(string))
}))
})
default = null
}
variable module_name {
description = "The module name."
type = string
default = "iam-identity-domains"
}
variable compartments_dependency {
description = "A map of objects containing the externally managed compartments this module may depend on. All map objects must have the same type and must contain at least an 'id' attribute (representing the compartment OCID) of string type."
type = map(object({
id = string
}))
default = null
}