mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Remove deprecated azure graph endpoints (#24460)
* remove deprecated azure graph endpoints * cleanup enums * cleanup ProviderSettingsJson: remove graphResource * change enums back
This commit is contained in:
@@ -68,8 +68,7 @@ export abstract class AzureAuth implements vscode.Disposable {
|
|||||||
this.redirectUri = this.metadata.settings.redirectUri;
|
this.redirectUri = this.metadata.settings.redirectUri;
|
||||||
this.clientId = this.metadata.settings.clientId;
|
this.clientId = this.metadata.settings.clientId;
|
||||||
this.resources = [
|
this.resources = [
|
||||||
this.metadata.settings.armResource,
|
this.metadata.settings.armResource
|
||||||
this.metadata.settings.graphResource,
|
|
||||||
];
|
];
|
||||||
if (this.metadata.settings.sqlResource) {
|
if (this.metadata.settings.sqlResource) {
|
||||||
this.resources.push(this.metadata.settings.sqlResource);
|
this.resources.push(this.metadata.settings.sqlResource);
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ import * as azurecore from 'azurecore';
|
|||||||
|
|
||||||
export const enum SettingIds {
|
export const enum SettingIds {
|
||||||
marm = 'marm',
|
marm = 'marm',
|
||||||
graph = 'graph',
|
|
||||||
msgraph = 'msgraph',
|
msgraph = 'msgraph',
|
||||||
arm = 'arm',
|
arm = 'arm',
|
||||||
sql = 'sql',
|
sql = 'sql',
|
||||||
@@ -49,7 +48,6 @@ export type ProviderSettingsJson = {
|
|||||||
host: string,
|
host: string,
|
||||||
clientId: string,
|
clientId: string,
|
||||||
microsoftResource: string,
|
microsoftResource: string,
|
||||||
graphResource: string,
|
|
||||||
msGraphResource?: string,
|
msGraphResource?: string,
|
||||||
armResource: string,
|
armResource: string,
|
||||||
sqlResource: string,
|
sqlResource: string,
|
||||||
|
|||||||
@@ -23,11 +23,6 @@ const publicAzureSettings: ProviderSettings = {
|
|||||||
endpoint: 'https://management.core.windows.net/',
|
endpoint: 'https://management.core.windows.net/',
|
||||||
azureResourceId: AzureResource.MicrosoftResourceManagement
|
azureResourceId: AzureResource.MicrosoftResourceManagement
|
||||||
},
|
},
|
||||||
graphResource: {
|
|
||||||
id: SettingIds.graph,
|
|
||||||
endpoint: 'https://graph.windows.net/',
|
|
||||||
azureResourceId: AzureResource.Graph
|
|
||||||
},
|
|
||||||
msGraphResource: {
|
msGraphResource: {
|
||||||
id: SettingIds.msgraph,
|
id: SettingIds.msgraph,
|
||||||
endpoint: 'https://graph.microsoft.com/',
|
endpoint: 'https://graph.microsoft.com/',
|
||||||
@@ -103,11 +98,6 @@ const usGovAzureSettings: ProviderSettings = {
|
|||||||
endpoint: 'https://management.core.usgovcloudapi.net/',
|
endpoint: 'https://management.core.usgovcloudapi.net/',
|
||||||
azureResourceId: AzureResource.MicrosoftResourceManagement
|
azureResourceId: AzureResource.MicrosoftResourceManagement
|
||||||
},
|
},
|
||||||
graphResource: {
|
|
||||||
id: SettingIds.graph,
|
|
||||||
endpoint: 'https://graph.windows.net/',
|
|
||||||
azureResourceId: AzureResource.Graph
|
|
||||||
},
|
|
||||||
msGraphResource: {
|
msGraphResource: {
|
||||||
id: SettingIds.msgraph,
|
id: SettingIds.msgraph,
|
||||||
endpoint: 'https://graph.microsoft.us/',
|
endpoint: 'https://graph.microsoft.us/',
|
||||||
@@ -177,11 +167,6 @@ const chinaAzureSettings: ProviderSettings = {
|
|||||||
endpoint: 'https://management.core.chinacloudapi.cn/',
|
endpoint: 'https://management.core.chinacloudapi.cn/',
|
||||||
azureResourceId: AzureResource.MicrosoftResourceManagement
|
azureResourceId: AzureResource.MicrosoftResourceManagement
|
||||||
},
|
},
|
||||||
graphResource: {
|
|
||||||
id: SettingIds.graph,
|
|
||||||
endpoint: 'https://graph.chinacloudapi.cn',
|
|
||||||
azureResourceId: AzureResource.Graph
|
|
||||||
},
|
|
||||||
msGraphResource: {
|
msGraphResource: {
|
||||||
id: SettingIds.msgraph,
|
id: SettingIds.msgraph,
|
||||||
endpoint: 'https://microsoftgraph.chinacloudapi.cn',
|
endpoint: 'https://microsoftgraph.chinacloudapi.cn',
|
||||||
|
|||||||
5
extensions/azurecore/src/azurecore.d.ts
vendored
5
extensions/azurecore/src/azurecore.d.ts
vendored
@@ -93,11 +93,6 @@ declare module 'azurecore' {
|
|||||||
*/
|
*/
|
||||||
microsoftResource: Resource
|
microsoftResource: Resource
|
||||||
|
|
||||||
/**
|
|
||||||
* Information that describes the AAD graph resource
|
|
||||||
*/
|
|
||||||
graphResource: Resource;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Information that describes the MS graph resource
|
* Information that describes the MS graph resource
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -217,11 +217,6 @@ function buildCustomCloudProviderSettings(customProvider: ProviderSettingsJson):
|
|||||||
endpoint: customProvider.settings.metadata.endpoints.armResource,
|
endpoint: customProvider.settings.metadata.endpoints.armResource,
|
||||||
azureResourceId: AzureResource.ResourceManagement
|
azureResourceId: AzureResource.ResourceManagement
|
||||||
},
|
},
|
||||||
graphResource: {
|
|
||||||
id: SettingIds.graph,
|
|
||||||
endpoint: customProvider.settings.metadata.endpoints.graphResource,
|
|
||||||
azureResourceId: AzureResource.Graph
|
|
||||||
},
|
|
||||||
azureStorageResource: {
|
azureStorageResource: {
|
||||||
id: SettingIds.storage,
|
id: SettingIds.storage,
|
||||||
endpoint: customProvider.settings.metadata.endpoints.azureStorageResource.endpoint,
|
endpoint: customProvider.settings.metadata.endpoints.azureStorageResource.endpoint,
|
||||||
|
|||||||
5
src/sql/azdata.d.ts
vendored
5
src/sql/azdata.d.ts
vendored
@@ -2524,10 +2524,7 @@ declare module 'azdata' {
|
|||||||
* Azure Key Vault
|
* Azure Key Vault
|
||||||
*/
|
*/
|
||||||
AzureKeyVault = 3,
|
AzureKeyVault = 3,
|
||||||
/**
|
// 4 (formerly Azure Graph) is no longer used.
|
||||||
* Azure AD Graph
|
|
||||||
*/
|
|
||||||
Graph = 4,
|
|
||||||
/**
|
/**
|
||||||
* Microsoft Resource Management
|
* Microsoft Resource Management
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -476,7 +476,7 @@ export enum AzureResource {
|
|||||||
Sql = 1,
|
Sql = 1,
|
||||||
OssRdbms = 2,
|
OssRdbms = 2,
|
||||||
AzureKeyVault = 3,
|
AzureKeyVault = 3,
|
||||||
Graph = 4,
|
// 4 (formerly Azure Graph) is no longer used.
|
||||||
MicrosoftResourceManagement = 5,
|
MicrosoftResourceManagement = 5,
|
||||||
AzureDevOps = 6,
|
AzureDevOps = 6,
|
||||||
MsGraph = 7,
|
MsGraph = 7,
|
||||||
|
|||||||
Reference in New Issue
Block a user