Azure / azure-kusto-node

JS SDK for the Kusto service
MIT License
53 stars 39 forks source link

Authentication via workload Identity #288

Closed mts-dyt closed 1 year ago

mts-dyt commented 1 year ago

Do you plan to implement authentication with workload identity? It seems to be supported in the GO SDK: https://github.com/Azure/azure-kusto-go/blob/master/README.md#using-a-k8s-workload-identity

AsafMah commented 1 year ago

You can use withTokenCredential and use the credential for it directly from azure identity - https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-in-azure-with-workload-identity

In go the syntactic sugar was contributed, you are welcome to contribute it here too if you want the syntactic sugar.

mts-dyt commented 1 year ago

Hi @AsafMah , I cannot see any withTokenCredential methods in the link provided. Can you please provided a simple example?

In examples provided in this repo, all CS to kusto are created by. KustoConnectionStringBuilder