From 36f787b3423c07bd5b6e3893480c85856cbba454 Mon Sep 17 00:00:00 2001 From: Noan Le Renard Date: Thu, 2 Jun 2022 15:59:34 +0100 Subject: [PATCH] fix for cloudflare-go compability --- .../provider/resource_cloudflare_access_identity_provider.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/provider/resource_cloudflare_access_identity_provider.go b/internal/provider/resource_cloudflare_access_identity_provider.go index 7ee9c543fe..1204de27b3 100644 --- a/internal/provider/resource_cloudflare_access_identity_provider.go +++ b/internal/provider/resource_cloudflare_access_identity_provider.go @@ -207,7 +207,7 @@ func convertSchemaToStruct(d *schema.ResourceData) (cloudflare.AccessIdentityPro IDPConfig.SsoTargetURL = d.Get("config.0.sso_target_url").(string) IDPConfig.SupportGroups = d.Get("config.0.support_groups").(bool) IDPConfig.TokenURL = d.Get("config.0.token_url").(string) - IDPConfig.PKCEenabled = d.Get("config.0.pkce_enabled").(bool) + IDPConfig.PKCEEnabled = d.Get("config.0.pkce_enabled").(bool) } return IDPConfig, nil @@ -244,7 +244,7 @@ func convertStructToSchema(d *schema.ResourceData, options cloudflare.AccessIden "sso_target_url": options.SsoTargetURL, "support_groups": options.SupportGroups, "token_url": options.TokenURL, - "pkce_enabled": options.PKCEenabled, + "pkce_enabled": options.PKCEEnabled, } return []interface{}{m}