mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Rename to security token to match STS (#21338)
This commit is contained in:
4
src/sql/azdata.proposed.d.ts
vendored
4
src/sql/azdata.proposed.d.ts
vendored
@@ -469,14 +469,14 @@ declare module 'azdata' {
|
|||||||
/**
|
/**
|
||||||
* Authentication token for the current session.
|
* Authentication token for the current session.
|
||||||
*/
|
*/
|
||||||
token?: accounts.AccountSecurityToken | undefined;
|
securityToken?: accounts.AccountSecurityToken | undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ExpandNodeInfo {
|
export interface ExpandNodeInfo {
|
||||||
/**
|
/**
|
||||||
* Authentication token for the current session.
|
* Authentication token for the current session.
|
||||||
*/
|
*/
|
||||||
token?: accounts.AccountSecurityToken | undefined;
|
securityToken?: accounts.AccountSecurityToken | undefined;
|
||||||
}
|
}
|
||||||
// End Object Explorer interfaces ----------------------------
|
// End Object Explorer interfaces ----------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -441,7 +441,7 @@ export class ObjectExplorerService implements IObjectExplorerService {
|
|||||||
self.callExpandOrRefreshFromProvider(provider, {
|
self.callExpandOrRefreshFromProvider(provider, {
|
||||||
sessionId: session.sessionId!,
|
sessionId: session.sessionId!,
|
||||||
nodePath: node.nodePath,
|
nodePath: node.nodePath,
|
||||||
token: session.token
|
securityToken: session.securityToken
|
||||||
}, refresh).then(isExpanding => {
|
}, refresh).then(isExpanding => {
|
||||||
if (!isExpanding) {
|
if (!isExpanding) {
|
||||||
// The provider stated it's not going to expand the node, therefore do not need to track when merging results
|
// 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.
|
// Refresh access token on connection if needed.
|
||||||
let refreshResult = await this._connectionManagementService.refreshAzureAccountTokenIfNecessary(connection);
|
let refreshResult = await this._connectionManagementService.refreshAzureAccountTokenIfNecessary(connection);
|
||||||
if (refreshResult) {
|
if (refreshResult) {
|
||||||
session.token = {
|
session.securityToken = {
|
||||||
token: connection.options['azureAccountToken'],
|
token: connection.options['azureAccountToken'],
|
||||||
expiresOn: connection.options['expiresOn']
|
expiresOn: connection.options['expiresOn']
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user