From 752adfe3757c6a8c9b4d098998d092536dc94251 Mon Sep 17 00:00:00 2001 From: Tomasz Torcz <126086635+tomasz-torcz-airspace-intelligence@users.noreply.github.com> Date: Tue, 19 Dec 2023 12:00:52 +0100 Subject: [PATCH] Fix possible PKCE values in OIDC (#896) --- docs/resources/connection.md | 2 +- internal/auth0/connection/schema.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/resources/connection.md b/docs/resources/connection.md index 902d7f378..a5c46b0eb 100644 --- a/docs/resources/connection.md +++ b/docs/resources/connection.md @@ -768,7 +768,7 @@ Optional: Required: -- `pkce` (String) PKCE configuration. Possible values: `auto` (uses the strongest algorithm available), `s256` (uses the SHA-256 algorithm), `plain` (uses plaintext as described in the PKCE specification) or `disabled` (disables support for PKCE). +- `pkce` (String) PKCE configuration. Possible values: `auto` (uses the strongest algorithm available), `S256` (uses the SHA-256 algorithm), `plain` (uses plaintext as described in the PKCE specification) or `disabled` (disables support for PKCE). diff --git a/internal/auth0/connection/schema.go b/internal/auth0/connection/schema.go index 0dc4bda82..7ac4ecbed 100644 --- a/internal/auth0/connection/schema.go +++ b/internal/auth0/connection/schema.go @@ -802,9 +802,9 @@ var optionsSchema = &schema.Schema{ "pkce": { Type: schema.TypeString, Required: true, - ValidateFunc: validation.StringInSlice([]string{"auto", "s256", "plain", "disabled"}, false), + ValidateFunc: validation.StringInSlice([]string{"auto", "S256", "plain", "disabled"}, false), Description: "PKCE configuration. Possible values: `auto` (uses the strongest algorithm available), " + - "`s256` (uses the SHA-256 algorithm), `plain` (uses plaintext as described in the PKCE specification) " + + "`S256` (uses the SHA-256 algorithm), `plain` (uses plaintext as described in the PKCE specification) " + "or `disabled` (disables support for PKCE).", }, },