Azure / azure-kusto-java

Microsoft Azure Kusto Library for Java
MIT License
38 stars 43 forks source link

Add support for using DefaultAzureCredential #377

Open Soggywaters opened 4 months ago

Soggywaters commented 4 months ago

Is your feature request related to a problem? Please describe. Alot of Azure SDKs in Java (but also other supported languages) allow the use of DefaultAzureCredential, which is very helpful when doing local development but also using managed identities on Azure.

The Kusto auth looks to be setup very similar.

Describe the solution you'd like Instead of using the auth providers in the Kusto lib, use the Azure DefaultAzureCredentials utility method from the Azure identity library.

Describe alternatives you've considered A bunch of if-else/switch-case statements.

AsafMah commented 3 months ago

This is planned for the next version. (currently blocked, #364 will solve it)

For now, you can use CallbackTokenProvider to wrap the functionality