mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 09:35:39 -05:00
Reset expiresOn property for non-Azure connections (#21452)
This commit is contained in:
@@ -873,6 +873,7 @@ export class ConnectionManagementService extends Disposable implements IConnecti
|
||||
&& connection.authenticationType !== Constants.AuthenticationType.AzureMFAAndUser
|
||||
&& connection.authenticationType !== Constants.AuthenticationType.DSTSAuth) {
|
||||
connection.options['azureAccountToken'] = undefined;
|
||||
connection.options['expiresOn'] = undefined;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -883,6 +884,7 @@ export class ConnectionManagementService extends Disposable implements IConnecti
|
||||
let dstsAccounts = accounts.filter(a => a.key.providerId.startsWith('dstsAuth'));
|
||||
if (dstsAccounts.length <= 0) {
|
||||
connection.options['azureAccountToken'] = undefined;
|
||||
connection.options['expiresOn'] = undefined;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user