Skip to content

Commit

Permalink
fix for cloudflare-go compability
Browse files Browse the repository at this point in the history
  • Loading branch information
Noan Le Renard committed Jun 7, 2022
1 parent f92f8e2 commit 36f787b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit 36f787b

Please sign in to comment.