Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions terraform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ The following variables must be set for your environment:
`worker_secret` - The client secret from the worker the **Terraform Administration** environment that you created. \
`pingone_environment_id` - The environment ID of the **Terraform Administration** environment that you created. \
`region` - Options are `AsiaPacific` `Canada` `Europe` and `NorthAmerica` \
`region_code` - Options are `AP` `AU` `CA` `EU` and `NA` \
`license_id` - The license ID that you would like to use. If left blank, it will default to the license used for the environment that you created. \
`admin_user_id` - The id of the user account that you created. This can be found on the API tab of your user. \
`admin_username` - The username of the user account that you created. \
Expand All @@ -72,6 +73,7 @@ The following variables must be set for your environment:
| worker_secret | STRING | Required: **TRUE** Default: |
| pingone_environment_id | STRING | Required: **TRUE** Default: |
| region | STRING | Required: **TRUE** Default: |
| region_code | STRING | Required: **TRUE** Default: |
| license_name | STRING | Required: **TRUE** Default: |
| admin_user_id | STRING | Required: **TRUE** Default: |
| admin_username | STRING | Required: **TRUE** Default: |
Expand Down
76 changes: 38 additions & 38 deletions terraform/davinci.tf
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ resource "davinci_connection" "PingOne" {

property {
name = "clientId"
value = pingone_application.dv_worker_app.oidc_options[0].client_id
value = pingone_application.dv_worker_app.oidc_options.client_id
}

property {
name = "clientSecret"
value = pingone_application.dv_worker_app.oidc_options[0].client_secret
value = pingone_application_secret.dv_worker_app.secret
}

property {
Expand All @@ -106,12 +106,12 @@ resource "davinci_connection" "PingOne-MFA" {

property {
name = "clientId"
value = pingone_application.dv_worker_app.oidc_options[0].client_id
value = pingone_application.dv_worker_app.oidc_options.client_id
}

property {
name = "clientSecret"
value = pingone_application.dv_worker_app.oidc_options[0].client_secret
value = pingone_application_secret.dv_worker_app.secret
}

property {
Expand All @@ -125,8 +125,8 @@ resource "davinci_connection" "PingOne-MFA" {
}

property {
name = "policyId"
value = pingone_mfa_policy.master_flow_mfa_policy.id
name = "policyId"
value = pingone_mfa_device_policy.master_flow_mfa_device_policy.id
}
}

Expand All @@ -137,12 +137,12 @@ resource "davinci_connection" "PingOne-Authorize" {

property {
name = "clientId"
value = pingone_application.dv_worker_app.oidc_options[0].client_id
value = pingone_application.dv_worker_app.oidc_options.client_id
}

property {
name = "clientSecret"
value = pingone_application.dv_worker_app.oidc_options[0].client_secret
value = pingone_application_secret.dv_worker_app.secret
}

property {
Expand All @@ -158,12 +158,12 @@ resource "davinci_connection" "PingOne-Notifications" {

property {
name = "clientId"
value = pingone_application.dv_worker_app.oidc_options[0].client_id
value = pingone_application.dv_worker_app.oidc_options.client_id
}

property {
name = "clientSecret"
value = pingone_application.dv_worker_app.oidc_options[0].client_secret
value = pingone_application_secret.dv_worker_app.secret
}

property {
Expand All @@ -184,12 +184,12 @@ resource "davinci_connection" "PingOne-Protect" {

property {
name = "clientId"
value = pingone_application.dv_worker_app.oidc_options[0].client_id
value = pingone_application.dv_worker_app.oidc_options.client_id
}

property {
name = "clientSecret"
value = pingone_application.dv_worker_app.oidc_options[0].client_secret
value = pingone_application_secret.dv_worker_app.secret
}

property {
Expand All @@ -210,12 +210,12 @@ resource "davinci_connection" "PingOne-Verify" {

property {
name = "clientId"
value = pingone_application.dv_worker_app.oidc_options[0].client_id
value = pingone_application.dv_worker_app.oidc_options.client_id
}

property {
name = "clientSecret"
value = pingone_application.dv_worker_app.oidc_options[0].client_secret
value = pingone_application_secret.dv_worker_app.secret
}

property {
Expand Down Expand Up @@ -641,27 +641,27 @@ resource "davinci_variable" "gv-p1PasswordPolicy" {
mutable = "true"
name = "gv-p1PasswordPolicy"
type = "object"
value = replace(replace(replace(jsonencode({
"id": data.pingone_password_policy.standard_password_policy.id,
"environment": { "id": data.pingone_password_policy.standard_password_policy.environment_id },
"name": data.pingone_password_policy.standard_password_policy.name,
"description": data.pingone_password_policy.standard_password_policy.description,
"excludesProfileData": data.pingone_password_policy.standard_password_policy.exclude_profile_data,
"notSimilarToCurrent": data.pingone_password_policy.standard_password_policy.not_similar_to_current,
"excludesCommonlyUsed": data.pingone_password_policy.standard_password_policy.exclude_commonly_used_passwords,
"maxAgeDays": 22,
"history": { "count": data.pingone_password_policy.standard_password_policy.password_history[0].prior_password_count, "retentionDays": data.pingone_password_policy.standard_password_policy.password_history[0].retention_days },
"lockout": { "failureCount": data.pingone_password_policy.standard_password_policy.account_lockout[0].fail_count, "durationSeconds": data.pingone_password_policy.standard_password_policy.account_lockout[0].duration_seconds },
"length": { "min": data.pingone_password_policy.standard_password_policy.password_length[0].min, "max": data.pingone_password_policy.standard_password_policy.password_length[0].max },
"minCharacters": {
"~!@#$%^&*()-_=+[]{}|;:,.<>/?": data.pingone_password_policy.standard_password_policy.min_characters[0].special_characters,
"0123456789": data.pingone_password_policy.standard_password_policy.min_characters[0].numeric,
"ABCDEFGHIJKLMNOPQRSTUVWXYZ": data.pingone_password_policy.standard_password_policy.min_characters[0].alphabetical_uppercase,
"abcdefghijklmnopqrstuvwxyz": data.pingone_password_policy.standard_password_policy.min_characters[0].alphabetical_lowercase
},
"populationCount": data.pingone_password_policy.standard_password_policy.population_count,
"default": true
}), "\\u0026", "&"), "\\u003c", "<"), "\\u003e", ">")
value = replace(replace(replace(jsonencode({
"id" : data.pingone_password_policy.standard_password_policy.id,
"environment" : { "id" : data.pingone_password_policy.standard_password_policy.environment_id },
"name" : data.pingone_password_policy.standard_password_policy.name,
"description" : data.pingone_password_policy.standard_password_policy.description,
"excludesProfileData" : data.pingone_password_policy.standard_password_policy.excludes_profile_data,
"notSimilarToCurrent" : data.pingone_password_policy.standard_password_policy.not_similar_to_current,
"excludesCommonlyUsed" : data.pingone_password_policy.standard_password_policy.excludes_commonly_used_passwords,
"maxAgeDays" : 22,
"history" : { "count" : data.pingone_password_policy.standard_password_policy.history.count, "retentionDays" : data.pingone_password_policy.standard_password_policy.history.retention_days },
"lockout" : { "failureCount" : data.pingone_password_policy.standard_password_policy.lockout.failure_count, "durationSeconds" : data.pingone_password_policy.standard_password_policy.lockout.duration_seconds },
"length" : { "min" : data.pingone_password_policy.standard_password_policy.length.min, "max" : data.pingone_password_policy.standard_password_policy.length.max },
"minCharacters" : {
"~!@#$%^&*()-_=+[]{}|;:,.<>/?" : data.pingone_password_policy.standard_password_policy.min_characters.special_characters,
"0123456789" : data.pingone_password_policy.standard_password_policy.min_characters.numeric,
"ABCDEFGHIJKLMNOPQRSTUVWXYZ" : data.pingone_password_policy.standard_password_policy.min_characters.alphabetical_uppercase,
"abcdefghijklmnopqrstuvwxyz" : data.pingone_password_policy.standard_password_policy.min_characters.alphabetical_lowercase
},
"populationCount" : data.pingone_password_policy.standard_password_policy.population_count,
"default" : true
}), "\\u0026", "&"), "\\u003c", "<"), "\\u003e", ">")
}

resource "davinci_variable" "gv-p1PopulationId" {
Expand All @@ -673,7 +673,7 @@ resource "davinci_variable" "gv-p1PopulationId" {
mutable = "true"
name = "gv-p1PopulationId"
type = "string"
value = data.pingone_population.default_population.id
value = pingone_population_default.default_population.id
}

resource "davinci_variable" "gv-passwordlessAllowedTypes" {
Expand Down Expand Up @@ -891,7 +891,7 @@ resource "davinci_variable" "populationId" {
mutable = "true"
name = "populationId"
type = "string"
value = data.pingone_population.default_population.id
value = pingone_population_default.default_population.id
}

resource "davinci_variable" "preppedDevices" {
Expand Down Expand Up @@ -1100,7 +1100,7 @@ resource "davinci_variable" "gv-mfaPolicyId" {
mutable = "true"
name = "gv-mfaPolicyId"
type = "string"
value = pingone_mfa_policy.master_flow_mfa_policy.id
value = pingone_mfa_device_policy.master_flow_mfa_device_policy.id
}

resource "davinci_variable" "gv-progressiveProfilingAuthentication" {
Expand Down
4 changes: 2 additions & 2 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
pingone = {
source = "pingidentity/pingone"
version = ">= 0.27.0, < 1.0.0"
version = ">= 1.0.0, < 2.0.0"
}
davinci = {
source = "pingidentity/davinci"
Expand All @@ -15,7 +15,7 @@ provider "pingone" {
client_id = var.worker_id
client_secret = var.worker_secret
environment_id = var.pingone_environment_id
region = var.region
region_code = var.region_code
}

provider "davinci" {
Expand Down
Loading