mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-07 17:25:04 -05:00
Renamed RefreshAzureToken to RefreshAuthToken. Changed provider value to authenticationType. (#1183)
This commit is contained in:
@@ -266,7 +266,7 @@ namespace Microsoft.Kusto.ServiceLayer.Connection
|
||||
return completeParams;
|
||||
}
|
||||
|
||||
internal string RefreshAzureToken(string ownerUri)
|
||||
internal string RefreshAuthToken(string ownerUri)
|
||||
{
|
||||
TryFindConnection(ownerUri, out ConnectionInfo connection);
|
||||
|
||||
@@ -274,7 +274,7 @@ namespace Microsoft.Kusto.ServiceLayer.Connection
|
||||
{
|
||||
AccountId = connection.ConnectionDetails.GetOptionValue("azureAccount", string.Empty),
|
||||
Authority = connection.ConnectionDetails.GetOptionValue("azureTenantId", string.Empty),
|
||||
Provider = "Azure",
|
||||
Provider = connection.ConnectionDetails.AuthenticationType,
|
||||
Resource = "SQL"
|
||||
};
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace Microsoft.Kusto.ServiceLayer.DataSource
|
||||
|
||||
private void RefreshAuthToken()
|
||||
{
|
||||
string accountToken = ConnectionService.Instance.RefreshAzureToken(_ownerUri);
|
||||
string accountToken = ConnectionService.Instance.RefreshAuthToken(_ownerUri);
|
||||
_kustoQueryProvider.Dispose();
|
||||
_kustoAdminProvider.Dispose();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user