From 2f731d7733ebd4d01b0d57530c960c8a7220ef88 Mon Sep 17 00:00:00 2001 From: Patrick Cowland <44225864+patrickcping@users.noreply.github.com> Date: Mon, 19 Aug 2024 09:37:26 +0100 Subject: [PATCH] Bump pingone provider in documentation (#355) * Bump pingone provider in documentation * changelog --- .changelog/355.txt | 3 ++ .../guides/migrate-application-flow-policy.md | 8 ++--- docs/index.md | 29 ++++++++++--------- examples/provider/provider-env.sh | 1 + examples/provider/provider-with-pingone.tf | 28 +++++++++--------- .../guides/migrate-application-flow-policy.md | 8 ++--- 6 files changed, 41 insertions(+), 36 deletions(-) create mode 100644 .changelog/355.txt diff --git a/.changelog/355.txt b/.changelog/355.txt new file mode 100644 index 00000000..fed18200 --- /dev/null +++ b/.changelog/355.txt @@ -0,0 +1,3 @@ +```release-note:note +Bump pingone Terraform provider in documentation. +``` diff --git a/docs/guides/migrate-application-flow-policy.md b/docs/guides/migrate-application-flow-policy.md index fe87c865..5c49fc87 100644 --- a/docs/guides/migrate-application-flow-policy.md +++ b/docs/guides/migrate-application-flow-policy.md @@ -82,12 +82,12 @@ resource "pingone_application" "oidc_sdk_sample_app" { name = "Sample App" description = "A custom sample OIDC application to demonstrate PingOne integration." - oidc_options { + oidc_options = { type = "SINGLE_PAGE_APP" grant_types = ["AUTHORIZATION_CODE", "IMPLICIT", "REFRESH_TOKEN"] response_types = ["CODE", "TOKEN", "ID_TOKEN"] pkce_enforcement = "S256_REQUIRED" - token_endpoint_authn_method = "NONE" + token_endpoint_auth_method = "NONE" redirect_uris = var.redirect_uris post_logout_redirect_uris = ["${var.app_url}"] } @@ -147,12 +147,12 @@ resource "pingone_application" "oidc_sdk_sample_app" { name = "Sample App" description = "A custom sample OIDC application to demonstrate PingOne integration." - oidc_options { + oidc_options = { type = "SINGLE_PAGE_APP" grant_types = ["AUTHORIZATION_CODE", "IMPLICIT", "REFRESH_TOKEN"] response_types = ["CODE", "TOKEN", "ID_TOKEN"] pkce_enforcement = "S256_REQUIRED" - token_endpoint_authn_method = "NONE" + token_endpoint_auth_method = "NONE" redirect_uris = var.redirect_uris post_logout_redirect_uris = ["${var.app_url}"] } diff --git a/docs/index.md b/docs/index.md index 3dee93ea..c484c021 100644 --- a/docs/index.md +++ b/docs/index.md @@ -72,6 +72,7 @@ $ export PINGONE_REGION="NorthAmerica" $ # Optional if using PingOne TF provider $ export PINGONE_CLIENT_ID="client-id" $ export PINGONE_CLIENT_SECRET="client-secret" +$ export PINGONE_REGION_CODE="NA" $ terraform plan ``` @@ -88,7 +89,7 @@ terraform { } pingone = { source = "pingidentity/pingone" - version = "~> 0.25" + version = ">= 1.0, < 2.0" } } } @@ -104,7 +105,7 @@ provider "pingone" { client_id = var.pingone_admin_client_id client_secret = var.pingone_admin_client_secret environment_id = var.pingone_admin_environment_id - region = var.pingone_region + region_code = var.pingone_region_code } resource "pingone_environment" "dv_example" { @@ -112,18 +113,18 @@ resource "pingone_environment" "dv_example" { description = "A new trial environment for DaVinci Terraform configuration-as-code." license_id = var.license_id - service { - type = "SSO" - } - - service { - type = "MFA" - } - - service { - type = "DaVinci" - tags = ["DAVINCI_MINIMAL"] - } + services = [ + { + type = "SSO" + }, + { + type = "MFA" + }, + { + type = "DaVinci" + tags = ["DAVINCI_MINIMAL"] + } + ] } resource "davinci_flow" "mainflow" { diff --git a/examples/provider/provider-env.sh b/examples/provider/provider-env.sh index 442cfe03..38b3683b 100644 --- a/examples/provider/provider-env.sh +++ b/examples/provider/provider-env.sh @@ -5,4 +5,5 @@ $ export PINGONE_REGION="NorthAmerica" $ # Optional if using PingOne TF provider $ export PINGONE_CLIENT_ID="client-id" $ export PINGONE_CLIENT_SECRET="client-secret" +$ export PINGONE_REGION_CODE="NA" $ terraform plan \ No newline at end of file diff --git a/examples/provider/provider-with-pingone.tf b/examples/provider/provider-with-pingone.tf index e9199923..39785946 100644 --- a/examples/provider/provider-with-pingone.tf +++ b/examples/provider/provider-with-pingone.tf @@ -6,7 +6,7 @@ terraform { } pingone = { source = "pingidentity/pingone" - version = "~> 0.25" + version = ">= 1.0, < 2.0" } } } @@ -22,7 +22,7 @@ provider "pingone" { client_id = var.pingone_admin_client_id client_secret = var.pingone_admin_client_secret environment_id = var.pingone_admin_environment_id - region = var.pingone_region + region_code = var.pingone_region_code } resource "pingone_environment" "dv_example" { @@ -30,18 +30,18 @@ resource "pingone_environment" "dv_example" { description = "A new trial environment for DaVinci Terraform configuration-as-code." license_id = var.license_id - service { - type = "SSO" - } - - service { - type = "MFA" - } - - service { - type = "DaVinci" - tags = ["DAVINCI_MINIMAL"] - } + services = [ + { + type = "SSO" + }, + { + type = "MFA" + }, + { + type = "DaVinci" + tags = ["DAVINCI_MINIMAL"] + } + ] } resource "davinci_flow" "mainflow" { diff --git a/templates/guides/migrate-application-flow-policy.md b/templates/guides/migrate-application-flow-policy.md index fe87c865..5c49fc87 100644 --- a/templates/guides/migrate-application-flow-policy.md +++ b/templates/guides/migrate-application-flow-policy.md @@ -82,12 +82,12 @@ resource "pingone_application" "oidc_sdk_sample_app" { name = "Sample App" description = "A custom sample OIDC application to demonstrate PingOne integration." - oidc_options { + oidc_options = { type = "SINGLE_PAGE_APP" grant_types = ["AUTHORIZATION_CODE", "IMPLICIT", "REFRESH_TOKEN"] response_types = ["CODE", "TOKEN", "ID_TOKEN"] pkce_enforcement = "S256_REQUIRED" - token_endpoint_authn_method = "NONE" + token_endpoint_auth_method = "NONE" redirect_uris = var.redirect_uris post_logout_redirect_uris = ["${var.app_url}"] } @@ -147,12 +147,12 @@ resource "pingone_application" "oidc_sdk_sample_app" { name = "Sample App" description = "A custom sample OIDC application to demonstrate PingOne integration." - oidc_options { + oidc_options = { type = "SINGLE_PAGE_APP" grant_types = ["AUTHORIZATION_CODE", "IMPLICIT", "REFRESH_TOKEN"] response_types = ["CODE", "TOKEN", "ID_TOKEN"] pkce_enforcement = "S256_REQUIRED" - token_endpoint_authn_method = "NONE" + token_endpoint_auth_method = "NONE" redirect_uris = var.redirect_uris post_logout_redirect_uris = ["${var.app_url}"] }