Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AsafMah committed Jul 23, 2024
1 parent d4bbc15 commit 789678e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions kusto/kcsb.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions quickstart/utils/authentication/authentication.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 789678e

Please sign in to comment.