From 02e9f8d3ef0d0eb5c3d4115c6cf2b2e184e7a97f Mon Sep 17 00:00:00 2001 From: Cheena Malhotra <13396919+cheenamalhotra@users.noreply.github.com> Date: Wed, 30 Nov 2022 15:02:08 -0800 Subject: [PATCH] Rename to security token to match STS (#21338) --- src/sql/azdata.proposed.d.ts | 4 ++-- .../services/objectExplorer/browser/objectExplorerService.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sql/azdata.proposed.d.ts b/src/sql/azdata.proposed.d.ts index eb6ed26cc6..4a9853565f 100644 --- a/src/sql/azdata.proposed.d.ts +++ b/src/sql/azdata.proposed.d.ts @@ -469,14 +469,14 @@ declare module 'azdata' { /** * Authentication token for the current session. */ - token?: accounts.AccountSecurityToken | undefined; + securityToken?: accounts.AccountSecurityToken | undefined; } export interface ExpandNodeInfo { /** * Authentication token for the current session. */ - token?: accounts.AccountSecurityToken | undefined; + securityToken?: accounts.AccountSecurityToken | undefined; } // End Object Explorer interfaces ---------------------------- diff --git a/src/sql/workbench/services/objectExplorer/browser/objectExplorerService.ts b/src/sql/workbench/services/objectExplorer/browser/objectExplorerService.ts index 513b12de73..851ec2c452 100644 --- a/src/sql/workbench/services/objectExplorer/browser/objectExplorerService.ts +++ b/src/sql/workbench/services/objectExplorer/browser/objectExplorerService.ts @@ -441,7 +441,7 @@ export class ObjectExplorerService implements IObjectExplorerService { self.callExpandOrRefreshFromProvider(provider, { sessionId: session.sessionId!, nodePath: node.nodePath, - token: session.token + securityToken: session.securityToken }, refresh).then(isExpanding => { if (!isExpanding) { // The provider stated it's not going to expand the node, therefore do not need to track when merging results @@ -601,7 +601,7 @@ export class ObjectExplorerService implements IObjectExplorerService { // Refresh access token on connection if needed. let refreshResult = await this._connectionManagementService.refreshAzureAccountTokenIfNecessary(connection); if (refreshResult) { - session.token = { + session.securityToken = { token: connection.options['azureAccountToken'], expiresOn: connection.options['expiresOn'] };