From 789678e8eb59e0186722de9480d44a71a918dbe2 Mon Sep 17 00:00:00 2001 From: asafmahlev Date: Sun, 16 Jun 2024 16:23:55 +0300 Subject: [PATCH] fix --- kusto/kcsb.go | 4 ++-- quickstart/utils/authentication/authentication.go | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/kusto/kcsb.go b/kusto/kcsb.go index 899947b3..e7b92234 100644 --- a/kusto/kcsb.go +++ b/kusto/kcsb.go @@ -156,8 +156,8 @@ func (kcsb *ConnectionStringBuilder) resetConnectionString() { kcsb.ApplicationKey = "" kcsb.AuthorityId = "" kcsb.ApplicationCertificatePath = "" - kcsb.ApplicationCertificateBytes = []byte{} - kcsb.ApplicationCertificatePassword = []byte{} + kcsb.ApplicationCertificateBytes = nil + kcsb.ApplicationCertificatePassword = nil kcsb.SendCertificateChain = false kcsb.ApplicationToken = "" kcsb.AzCli = false diff --git a/quickstart/utils/authentication/authentication.go b/quickstart/utils/authentication/authentication.go index b77bb2e2..f3559e02 100644 --- a/quickstart/utils/authentication/authentication.go +++ b/quickstart/utils/authentication/authentication.go @@ -52,7 +52,6 @@ func GenerateConnectionString(clusterUrl string, authenticationMode Authenticati func createApplicationCertificateConnectionString(kcs *kusto.ConnectionStringBuilder) *kusto.ConnectionStringBuilder { var appId = os.Getenv("APP_ID") var cert = os.Getenv("PUBLIC_CERT_FILE_PATH") - var thumbprint = os.Getenv("CERT_THUMBPRINT") var appTenant = os.Getenv("APP_TENANT") - return kcs.WithAppCertificate(appId, cert, thumbprint, true, appTenant) + return kcs.WithAppCertificatePath(appId, cert, nil, true, appTenant) }