Skip to content

Commit

Permalink
Bump pingone provider in documentation (#355)
Browse files Browse the repository at this point in the history
* Bump pingone provider in documentation

* changelog
  • Loading branch information
patrickcping authored Aug 19, 2024
1 parent 9612880 commit 2f731d7
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 36 deletions.
3 changes: 3 additions & 0 deletions .changelog/355.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:note
Bump pingone Terraform provider in documentation.
```
8 changes: 4 additions & 4 deletions docs/guides/migrate-application-flow-policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}"]
}
Expand Down Expand Up @@ -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}"]
}
Expand Down
29 changes: 15 additions & 14 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand All @@ -88,7 +89,7 @@ terraform {
}
pingone = {
source = "pingidentity/pingone"
version = "~> 0.25"
version = ">= 1.0, < 2.0"
}
}
}
Expand All @@ -104,26 +105,26 @@ 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" {
name = "DaVinci Terraform 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" {
Expand Down
1 change: 1 addition & 0 deletions examples/provider/provider-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
28 changes: 14 additions & 14 deletions examples/provider/provider-with-pingone.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ terraform {
}
pingone = {
source = "pingidentity/pingone"
version = "~> 0.25"
version = ">= 1.0, < 2.0"
}
}
}
Expand All @@ -22,26 +22,26 @@ 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" {
name = "DaVinci Terraform 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" {
Expand Down
8 changes: 4 additions & 4 deletions templates/guides/migrate-application-flow-policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}"]
}
Expand Down Expand Up @@ -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}"]
}
Expand Down

0 comments on commit 2f731d7

Please sign in to comment.