title: Snowflake connection string using azureAd
body: <p>We are using azureAd for snowflake authentication.  I am working with snowflake.data and c# to access the data. What should i used in my connection string to indicate azureAd?</p>
  <p>Edit:
  I am trying to access snowflake through the c# api not a browser.
  Here is the code I did not  add before:</p>
  <pre class="lang-cs prettyprint-override"><code>using Snowflake.Data.Client;
  
  
  var connectString = &quot;schema=CustomerDATA;port=443;WAREHOUSE=CUSTOMER_WH;ROLE=ANALYST;db=YES;&quot;;
  
  using (var conn = new SnowflakeDbConnection())
  {
      conn.ConnectionString = connectString;
      conn.Open();
      var cmd = conn.CreateCommand();
      cmd.CommandText = &quot;select top 100 * from Customers;&quot;;
      var reader = cmd.ExecuteReader();
      while (reader.Read())
      {
          Console.WriteLine(reader.GetString(0));
      }
  
      conn.Close();
  }
  </code></pre>
  <p>when the program tries to open the connection, it complains about missing properties in the connection string like user, account, and password.   Is there a different way to open the connection in c# where I use Azure AD?</p>