mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-14 01:25:37 -05:00
* initial commit, removed all adal code * remove all authLibrary references in extension/azurecore * removed authLibrary references from src/sql * remove MSAL/ADAL setting option * wip fixing tests and removing Msal from method names * fixed tests * create accountInfo mock * fix tests * fix clientApplication mock * remove clientapplication * fix compile * add typing * wip * wip * wip * fix tree provider * remove SimpleTokenCache, FileDatabase & tests * remove remaining adal / authentication library references: * remove comma from package.nls.json * fix error fetching subscriptions * fix tests * remove getAzureAuthenticationLibraryConfig * remove adal check * fix build * remove test * undo remove customProviderSettings * fix bracket
535 lines
19 KiB
JSON
535 lines
19 KiB
JSON
{
|
|
"name": "azurecore",
|
|
"displayName": "%azure.displayName%",
|
|
"description": "%azure.description%",
|
|
"version": "0.1.0",
|
|
"publisher": "Microsoft",
|
|
"preview": true,
|
|
"engines": {
|
|
"vscode": "^1.30.1",
|
|
"azdata": "*"
|
|
},
|
|
"activationEvents": [
|
|
"*"
|
|
],
|
|
"enableProposedApi": true,
|
|
"main": "./out/extension",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/Microsoft/azuredatastudio.git"
|
|
},
|
|
"capabilities": {
|
|
"virtualWorkspaces": false,
|
|
"untrustedWorkspaces": {
|
|
"supported": true
|
|
}
|
|
},
|
|
"contributes": {
|
|
"resourceViewResources": [
|
|
{
|
|
"id": "azure-resources",
|
|
"name": "%azure.resource.view.title%",
|
|
"icon": "./resources/azure.svg"
|
|
}
|
|
],
|
|
"configuration": [
|
|
{
|
|
"type": "object",
|
|
"title": "%azure.resource.config.title%",
|
|
"properties": {
|
|
"azure.resource.config.filter": {
|
|
"type": "array",
|
|
"default": null,
|
|
"description": "%azure.resource.config.filter.description%"
|
|
},
|
|
"azure.tenant.config.filter": {
|
|
"type": "array",
|
|
"default": [],
|
|
"description": "%azure.tenant.config.filter.description%"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "object",
|
|
"title": "%config.azureAccountConfigurationSection%",
|
|
"properties": {
|
|
"accounts.azure.cloud.enablePublicCloud": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "%config.enablePublicCloudDescription%"
|
|
},
|
|
"accounts.azure.cloud.enableUsGovCloud": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "%config.enableUsGovCloudDescription%"
|
|
},
|
|
"accounts.azure.cloud.enableChinaCloud": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "%config.enableChinaCloudDescription%"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "object",
|
|
"title": "%config.azureAuthMethodConfigurationSection%",
|
|
"properties": {
|
|
"accounts.azure.auth.codeGrant": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "%config.azureCodeGrantMethod%"
|
|
},
|
|
"accounts.azure.auth.deviceCode": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "%config.azureDeviceCodeMethod%"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "object",
|
|
"title": "Azure",
|
|
"properties": {
|
|
"azure.noSystemKeychain": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "%config.noSystemKeychain%",
|
|
"when": "isLinux || isWeb"
|
|
},
|
|
"azure.piiLogging": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "%config.piiLogging%"
|
|
},
|
|
"azure.loggingLevel": {
|
|
"type": "string",
|
|
"description": "%config.loggingLevel%",
|
|
"default": "Error",
|
|
"enum": [
|
|
"Off",
|
|
"Critical",
|
|
"Error",
|
|
"Warning",
|
|
"Information",
|
|
"Verbose",
|
|
"All"
|
|
]
|
|
},
|
|
"azure.customProviderSettings": {
|
|
"type": "array",
|
|
"description": "%config.customProviderSettings%",
|
|
"scope": "resource",
|
|
"items": {
|
|
"type": "object",
|
|
"description": "%config.providerSettingsTitle%",
|
|
"required": ["name", "settings"],
|
|
"properties":{
|
|
"name": {
|
|
"type": "string",
|
|
"default": "Azure Public",
|
|
"description": "%config.providerSettingsName%"
|
|
},
|
|
"settings": {
|
|
"type": "object",
|
|
"description": "%config.providerSettingsDescription%",
|
|
"required": ["metadata"],
|
|
"properties": {
|
|
"metadata": {
|
|
"type": "object",
|
|
"required": ["displayName", "id"],
|
|
"properties": {
|
|
"displayName": {
|
|
"type": "string",
|
|
"default": "Azure Public Cloud",
|
|
"description": "%config.providerSettingsMetadata%"
|
|
},
|
|
"id": {
|
|
"type": "string",
|
|
"default": "azure_publicCloud",
|
|
"description": "%config.providerSettingsId%"
|
|
},
|
|
"endpoints": {
|
|
"type": "object",
|
|
"required": ["host", "clientId", "scopes", "sqlResource", "microsoftResource", "armResource", "graphResource", "azureStorageResource"],
|
|
"properties": {
|
|
"type": "object",
|
|
"host": {
|
|
"type": "string",
|
|
"default": "https://login.microsoftonline.com/",
|
|
"description": "%config.providerSettings.endpoints.host%"
|
|
},
|
|
"clientId": {
|
|
"type": "string",
|
|
"default": "a69788c6-1d43-44ed-9ca3-b83e194da255",
|
|
"description": "%config.providerSettings.endpoints.clientId%"
|
|
},
|
|
"microsoftResource": {
|
|
"type": "string",
|
|
"default": "https://management.core.windows.net/",
|
|
"description": "%config.providerSettings.endpoints.microsoftResource%"
|
|
},
|
|
"graphResource": {
|
|
"type": "string",
|
|
"default": "https://graph.windows.net/",
|
|
"description": "%config.providerSettings.endpoints.graphResource%"
|
|
},
|
|
"msGraphResource": {
|
|
"type": "string",
|
|
"default": "https://graph.microsoft.com/",
|
|
"description": "%config.providerSettings.endpoints.msGraphResource%"
|
|
},
|
|
"armResource": {
|
|
"type": "string",
|
|
"default": "https://management.azure.com/",
|
|
"description": "%config.providerSettings.endpoints.armResource%"
|
|
},
|
|
"sqlResource": {
|
|
"type": "string",
|
|
"default": "https://database.windows.net/",
|
|
"description": "%config.providerSettings.endpoints.sqlResource%"
|
|
},
|
|
"azureKeyVaultResource": {
|
|
"type": "string",
|
|
"default": "https://vault.azure.net/",
|
|
"description": "%config.providerSettings.endpoints.azureKeyVaultResource%"
|
|
},
|
|
"azureLogAnalyticsResource": {
|
|
"type": "string",
|
|
"default": "https://api.loganalytics.io/",
|
|
"description": "%config.providerSettings.endpoints.logAnalytics%"
|
|
},
|
|
"azureStorageResource": {
|
|
"type": "object",
|
|
"properties": {
|
|
"endpoint": {
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "%config.providerSettings.endpoints.azureStorageResource%"
|
|
},
|
|
"endpointSuffix": {
|
|
"type": "string",
|
|
"default": ".core.windows.net/",
|
|
"description": "%config.providerSettings.endpoints.azureStorageResourceSuffix%"
|
|
}
|
|
}
|
|
},
|
|
"azureKustoResource": {
|
|
"type": "string",
|
|
"default": "https://kusto.kusto.windows.net/",
|
|
"description": "%config.providerSettings.endpoints.azureKustoResource%"
|
|
},
|
|
"powerBiResource": {
|
|
"type": "string",
|
|
"default": "https://analysis.windows.net/powerbi/api/",
|
|
"description": "%config.providerSettings.endpoints.powerBiResource%"
|
|
},
|
|
"scopes": {
|
|
"type": "string",
|
|
"default": "https://management.azure.com/user_impersonation",
|
|
"description": "%config.providerSettings.endpoints.scopes%"
|
|
},
|
|
"portalEndpoint": {
|
|
"type": "string",
|
|
"default": "https://portal.azure.com",
|
|
"description": "%config.providerSettings.endpoints.portal%"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"account-type": [
|
|
{
|
|
"id": "microsoft",
|
|
"icon": {
|
|
"light": "./resources/users.svg",
|
|
"dark": "./resources/users.svg"
|
|
}
|
|
},
|
|
{
|
|
"id": "work_school",
|
|
"icon": {
|
|
"light": "./resources/users.svg",
|
|
"dark": "./resources/users.svg"
|
|
}
|
|
}
|
|
],
|
|
"commands": [
|
|
{
|
|
"command": "accounts.clearTokenCache",
|
|
"title": "%accounts.clearTokenCache%",
|
|
"category": "Azure Accounts"
|
|
},
|
|
{
|
|
"command": "azure.resource.signin",
|
|
"title": "%azure.resource.signin.title%",
|
|
"icon": "$(add)"
|
|
},
|
|
{
|
|
"command": "azure.resource.refreshall",
|
|
"title": "%azure.resource.refreshall.title%",
|
|
"icon": "$(refresh)"
|
|
},
|
|
{
|
|
"command": "azure.resource.azureview.refresh",
|
|
"title": "%azure.resource.refresh.title%",
|
|
"icon": "$(refresh)"
|
|
},
|
|
{
|
|
"command": "azure.resource.connectiondialog.refresh",
|
|
"title": "%azure.resource.refresh.title%",
|
|
"icon": "$(refresh)"
|
|
},
|
|
{
|
|
"command": "azure.resource.selecttenants",
|
|
"title": "%azure.resource.selecttenants.title%",
|
|
"icon": "$(filter)"
|
|
},
|
|
{
|
|
"command": "azure.resource.selectsubscriptions",
|
|
"title": "%azure.resource.selectsubscriptions.title%",
|
|
"icon": "$(filter)"
|
|
},
|
|
{
|
|
"command": "azure.resource.startterminal",
|
|
"title": "%azure.resource.startterminal.title%",
|
|
"icon": "$(console)"
|
|
},
|
|
{
|
|
"command": "azure.resource.openInAzurePortal",
|
|
"title": "%azure.openInAzurePortal.title%"
|
|
},
|
|
{
|
|
"command": "azure.resource.connectsqlserver",
|
|
"title": "%azure.resource.connectsqlserver.title%",
|
|
"icon": {
|
|
"dark": "resources/dark/connect_to_inverse.svg",
|
|
"light": "resources/light/connect_to.svg"
|
|
}
|
|
},
|
|
{
|
|
"command": "azure.resource.connectsqldb",
|
|
"title": "%azure.resource.connectsqldb.title%",
|
|
"icon": {
|
|
"dark": "resources/dark/add_to_server_list_inverse.svg",
|
|
"light": "resources/light/add_to_server_list.svg"
|
|
}
|
|
},
|
|
{
|
|
"command": "azure.dataGrid.openInAzurePortal",
|
|
"title": "%azure.openInAzurePortal.title%"
|
|
}
|
|
],
|
|
"connectionTreeProvider": [
|
|
{
|
|
"id": "connectionDialog/azureResourceExplorer",
|
|
"name": "%azure.resource.explorer.title%"
|
|
}
|
|
],
|
|
"dataExplorer": {
|
|
"dataExplorer": [
|
|
{
|
|
"id": "azureResourceExplorer",
|
|
"name": "%azure.resource.explorer.title%"
|
|
}
|
|
]
|
|
},
|
|
"menus": {
|
|
"commandPalette": [
|
|
{
|
|
"command": "azure.resource.signin",
|
|
"when": "true"
|
|
},
|
|
{
|
|
"command": "azure.resource.refreshall",
|
|
"when": "true"
|
|
},
|
|
{
|
|
"command": "azure.resource.selectsubscriptions",
|
|
"when": "false"
|
|
},
|
|
{
|
|
"command": "azure.resource.selecttenants",
|
|
"when": "false"
|
|
},
|
|
{
|
|
"command": "azure.resource.azureview.refresh",
|
|
"when": "false"
|
|
},
|
|
{
|
|
"command": "azure.resource.connectiondialog.refresh",
|
|
"when": "false"
|
|
},
|
|
{
|
|
"command": "azure.resource.connectsqlserver",
|
|
"when": "false"
|
|
},
|
|
{
|
|
"command": "azure.dataGrid.openInAzurePortal",
|
|
"when": "false"
|
|
}
|
|
],
|
|
"view/title": [
|
|
{
|
|
"command": "azure.resource.signin",
|
|
"when": "view == azureResourceExplorer",
|
|
"group": "navigation@1"
|
|
},
|
|
{
|
|
"command": "azure.resource.refreshall",
|
|
"when": "view == azureResourceExplorer",
|
|
"group": "navigation@2"
|
|
}
|
|
],
|
|
"view/item/context": [
|
|
{
|
|
"command": "azure.resource.selecttenants",
|
|
"when": "viewItem == azure.resource.itemType.multipleTenantAccount",
|
|
"group": "inline"
|
|
},
|
|
{
|
|
"command": "azure.resource.selecttenants",
|
|
"when": "viewItem == azure.resource.itemType.multipleTenantAccount",
|
|
"group": "azurecore"
|
|
},
|
|
{
|
|
"command": "azure.resource.selectsubscriptions",
|
|
"when": "viewItem == azure.resource.itemType.singleTenantAccount",
|
|
"group": "inline"
|
|
},
|
|
{
|
|
"command": "azure.resource.selectsubscriptions",
|
|
"when": "viewItem == azure.resource.itemType.singleTenantAccount",
|
|
"group": "azurecore"
|
|
},
|
|
{
|
|
"command": "azure.resource.selectsubscriptions",
|
|
"when": "viewItem == azure.resource.itemType.tenant",
|
|
"group": "inline"
|
|
},
|
|
{
|
|
"command": "azure.resource.selectsubscriptions",
|
|
"when": "viewItem == azure.resource.itemType.tenant",
|
|
"group": "azurecore"
|
|
},
|
|
{
|
|
"command": "azure.resource.azureview.refresh",
|
|
"when": "viewItem =~ /^azure\\.resource\\.itemType\\.(?:singleTenantAccount|multipleTenantAccount|subscription|tenant|databaseContainer|databaseServerContainer|synapseSqlPoolContainer|synapseWorkspaceContainer)$/",
|
|
"group": "inline"
|
|
},
|
|
{
|
|
"command": "azure.resource.azureview.refresh",
|
|
"when": "viewItem =~ /^azure\\.resource\\.itemType\\.(?:singleTenantAccount|multipleTenantAccount|subscription|tenant|databaseContainer|databaseServerContainer|synapseSqlPoolContainer|synapseWorkspaceContainer)$/",
|
|
"group": "azurecore"
|
|
},
|
|
{
|
|
"command": "azure.resource.connectsqlserver",
|
|
"when": "viewItem =~ /^azure\\.resource\\.itemType\\.(?:database|databaseServer|synapseSqlPool|synapseWorkspace|sqlInstance)$/",
|
|
"group": "inline"
|
|
},
|
|
{
|
|
"command": "azure.resource.connectsqlserver",
|
|
"when": "viewItem =~ /^azure\\.resource\\.itemType\\.(?:database|databaseServer|synapseSqlPool|synapseWorkspace|sqlInstance)$/",
|
|
"group": "azurecore"
|
|
},
|
|
{
|
|
"command": "azure.resource.startterminal",
|
|
"when": "viewItem =~ /^azure\\.resource\\.itemType\\.(?:singleTenantAccount|multipleTenantAccount)$/",
|
|
"group": "inline"
|
|
},
|
|
{
|
|
"command": "azure.resource.connectsqlserver",
|
|
"when": "viewItem == azure.resource.itemType.azureDataExplorer",
|
|
"group": "inline"
|
|
},
|
|
{
|
|
"command": "azure.resource.connectsqlserver",
|
|
"when": "viewItem == azure.resource.itemType.azureMonitor",
|
|
"group": "inline"
|
|
},
|
|
{
|
|
"command": "azure.resource.startterminal",
|
|
"when": "viewItem =~ /^azure\\.resource\\.itemType\\.(?:singleTenantAccount|multipleTenantAccount)$/",
|
|
"group": "azurecore"
|
|
}
|
|
],
|
|
"connectionDialog/browseTree": [
|
|
{
|
|
"command": "azure.resource.selectsubscriptions",
|
|
"when": "contextValue == azure.resource.itemType.tenant",
|
|
"group": "navigation"
|
|
},
|
|
{
|
|
"command": "azure.resource.selecttenants",
|
|
"when": "contextValue == azure.resource.itemType.multipleTenantAccount",
|
|
"group": "navigation"
|
|
},
|
|
{
|
|
"command": "azure.resource.selectsubscriptions",
|
|
"when": "contextValue == azure.resource.itemType.singleTenantAccount",
|
|
"group": "navigation"
|
|
},
|
|
{
|
|
"command": "azure.resource.connectiondialog.refresh",
|
|
"when": "contextValue =~ /^azure\\.resource\\.itemType\\.(?:singleTenantAccount|multipleTenantAccount|tenant)$/",
|
|
"group": "navigation"
|
|
},
|
|
{
|
|
"command": "azure.resource.signin",
|
|
"when": "treeId == connectionDialog/azureResourceExplorer",
|
|
"group": "navigation"
|
|
},
|
|
{
|
|
"command": "azure.resource.refreshall",
|
|
"when": "treeId == connectionDialog/azureResourceExplorer",
|
|
"group": "navigation"
|
|
}
|
|
],
|
|
"dataGrid/item/context": [
|
|
{
|
|
"command": "azure.dataGrid.openInAzurePortal",
|
|
"group": "y_portal"
|
|
}
|
|
]
|
|
},
|
|
"hasAzureResourceProviders": true
|
|
},
|
|
"dependencies": {
|
|
"@azure/arm-resourcegraph": "^4.0.0",
|
|
"@azure/arm-subscriptions": "^3.0.0",
|
|
"@azure/msal-common": "^11.0.0",
|
|
"@azure/msal-node": "^1.16.0",
|
|
"@azure/storage-blob": "^12.13.0",
|
|
"axios": "^0.27.2",
|
|
"lockfile": "1.0.4",
|
|
"node-fetch": "^2.6.7",
|
|
"qs": "^6.9.1",
|
|
"universalify": "^0.1.2",
|
|
"vscode-nls": "^4.0.0",
|
|
"ws": "^7.4.6"
|
|
},
|
|
"devDependencies": {
|
|
"@microsoft/azdata-test": "^3.0.1",
|
|
"@microsoft/vscodetestcover": "^1.2.1",
|
|
"@types/keytar": "4.4.0",
|
|
"@types/lockfile": "^1.0.2",
|
|
"@types/mocha": "^7.0.2",
|
|
"@types/node": "^12.20.55",
|
|
"@types/qs": "^6.9.1",
|
|
"@types/request": "^2.48.1",
|
|
"@types/sinon": "^9.0.4",
|
|
"@types/ws": "^6.0.4",
|
|
"mocha": "^7.1.1",
|
|
"should": "^13.2.1",
|
|
"sinon": "^9.0.2",
|
|
"typemoq": "^2.1.0"
|
|
}
|
|
}
|