mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-17 02:51:45 -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;
|
return completeParams;
|
||||||
}
|
}
|
||||||
|
|
||||||
internal string RefreshAzureToken(string ownerUri)
|
internal string RefreshAuthToken(string ownerUri)
|
||||||
{
|
{
|
||||||
TryFindConnection(ownerUri, out ConnectionInfo connection);
|
TryFindConnection(ownerUri, out ConnectionInfo connection);
|
||||||
|
|
||||||
@@ -274,7 +274,7 @@ namespace Microsoft.Kusto.ServiceLayer.Connection
|
|||||||
{
|
{
|
||||||
AccountId = connection.ConnectionDetails.GetOptionValue("azureAccount", string.Empty),
|
AccountId = connection.ConnectionDetails.GetOptionValue("azureAccount", string.Empty),
|
||||||
Authority = connection.ConnectionDetails.GetOptionValue("azureTenantId", string.Empty),
|
Authority = connection.ConnectionDetails.GetOptionValue("azureTenantId", string.Empty),
|
||||||
Provider = "Azure",
|
Provider = connection.ConnectionDetails.AuthenticationType,
|
||||||
Resource = "SQL"
|
Resource = "SQL"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ namespace Microsoft.Kusto.ServiceLayer.DataSource
|
|||||||
|
|
||||||
private void RefreshAuthToken()
|
private void RefreshAuthToken()
|
||||||
{
|
{
|
||||||
string accountToken = ConnectionService.Instance.RefreshAzureToken(_ownerUri);
|
string accountToken = ConnectionService.Instance.RefreshAuthToken(_ownerUri);
|
||||||
_kustoQueryProvider.Dispose();
|
_kustoQueryProvider.Dispose();
|
||||||
_kustoAdminProvider.Dispose();
|
_kustoAdminProvider.Dispose();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user