Forum Discussion
Missing method WithAadUserPromptAuthentication in Microsoft.Azure.Kusto.Data.NETStandard Nuget
- Feb 11, 2019
The reason for the method WithAadUserPromptAuthentication being absent in the .NET Standard version of the SDK is that this scenario (with interactive pop-up dialog) is not implemented in ADAL (AAD Authentication Library) for .NET Standard.
Hope this helps.
The reason for the method WithAadUserPromptAuthentication being absent in the .NET Standard version of the SDK is that this scenario (with interactive pop-up dialog) is not implemented in ADAL (AAD Authentication Library) for .NET Standard.
Hope this helps.
- lakyedFeb 12, 2019
Microsoft
Thank you Vladik. That answers my question. A follow up question.
Do I have an option to use integrated windows authentication with Microsoft.Azure.Kusto.Data.NETStandard
- NikitaBhopaleAug 19, 2020Copper Contributor
Hi lakyed .
Did you get any solution for this WithAadUserPromptAuthentication method?
How to pull data of kusto database into visual studio?
Could you plz share any sample code which will be working with useriD Password and federated property.?
Or instead of console application? could you plz guide me for web application. I want to pull data into web application ....
- lakyedAug 20, 2020
Microsoft
NikitaBhopale The question was posted long ago and is not applicable any more I guess. The reason being Kusto authentication is now through AAD app authentication. Below is the code sample that I am using for my connection currently in a .NetStandard project.
// Create Kusto connection var serviceUri = appSettings.KustoConfigSection.HostAddress; var authority = "72f988bf-86f1-41af-91ab-2d7cd011db47"; // AAD tenant GUID var applicationClientId = appSettings.KustoConfigSection.AppID; // App ID var applicationKey = appSettings.KustoConfigSection.ClientSecret; // Client secret KustoConnectionStringBuilder kustoConnectionString = new KustoConnectionStringBuilder(serviceUri) .WithAadApplicationKeyAuthentication(applicationClientId, applicationKey, authority); this.searchClient = KustoClientFactory.CreateCslQueryProvider(kustoConnectionString); this.searchClient.DefaultDatabaseName = appSettings.KustoConfigSection.Database;