Forum Discussion

lakyed's avatar
lakyed
Icon for Microsoft rankMicrosoft
Feb 06, 2019
Solved

Missing method WithAadUserPromptAuthentication in Microsoft.Azure.Kusto.Data.NETStandard Nuget

 

I am using Nuget Microsoft.Azure.Kusto.Data.NETStandard (latest version published yesterday).

With the previous version I used to get the following error.

Kusto Connection String Builder has some invalid or conflicting properties: specified 'AAD Username password' authentication method has incorrect properties set. ',

Please consult Kusto Connection String documentation at https://docs.microsoft.com/en-us/azure/kusto/api/connection-strings/kusto

 

However, now the error changed and gives me further details as below.

Kusto Connection String Builder has some invalid or conflicting properties: Specified 'AAD Username password' authentication method has some incorrect properties. Missing: [User ID,Password].. ',

Please consult Kusto Connection String documentation at https://docs.microsoft.com/en-us/azure/kusto/api/connection-strings/kusto

Once I provided User ID and Password, it succeeded. (Which I don’t want to)

 

I also used KustoConnectionStringBuilder class from Microsoft.Azure.Kusto.Data  Nuget (.net framework) allows me to connect with out passing user name and password with the below highlighted method.

var kustoConnectionStringBuilder = new KustoConnectionStringBuilder($"https://{serviceName}.kusto.windows.net")

                    .WithAadUserPromptAuthentication(authority);

 

So my question is,

  • Why is this method missing from .NetStandard Nuget?
  • 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.

     

6 Replies

  • 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.

     

    • lakyed's avatar
      lakyed
      Icon for Microsoft rankMicrosoft

      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

      • NikitaBhopale's avatar
        NikitaBhopale
        Former Employee

        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 .... 

         

Resources