From 4c2f3c3b7dc08ed62f01115ed727e85932ba9636 Mon Sep 17 00:00:00 2001 From: alexweininger Date: Thu, 30 Nov 2023 15:43:33 -0500 Subject: [PATCH 1/2] auth: Use management endpoint by default --- auth/src/getSessionFromVSCode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/src/getSessionFromVSCode.ts b/auth/src/getSessionFromVSCode.ts index 0f69d22fee..1a24ba8649 100644 --- a/auth/src/getSessionFromVSCode.ts +++ b/auth/src/getSessionFromVSCode.ts @@ -12,7 +12,7 @@ function ensureEndingSlash(value: string): string { function getResourceScopes(scopes?: string | string[]): string[] { if (scopes === undefined || scopes === "" || scopes.length === 0) { - scopes = ensureEndingSlash(getConfiguredAzureEnv().resourceManagerEndpointUrl); + scopes = ensureEndingSlash(getConfiguredAzureEnv().managementEndpointUrl); } const arrScopes = (Array.isArray(scopes) ? scopes : [scopes]) .map((scope) => { From 6bb414e172d2287e52827431716c3728710b8234 Mon Sep 17 00:00:00 2001 From: alexweininger Date: Thu, 30 Nov 2023 15:44:18 -0500 Subject: [PATCH 2/2] auth: Bump version to 2.1.0 --- auth/package-lock.json | 4 ++-- auth/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/auth/package-lock.json b/auth/package-lock.json index 125cac9f2a..1f9e32b17f 100644 --- a/auth/package-lock.json +++ b/auth/package-lock.json @@ -1,12 +1,12 @@ { "name": "@microsoft/vscode-azext-azureauth", - "version": "2.0.0", + "version": "2.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@microsoft/vscode-azext-azureauth", - "version": "2.0.0", + "version": "2.1.0", "license": "MIT", "dependencies": { "@azure/arm-resources-subscriptions": "^2.1.0", diff --git a/auth/package.json b/auth/package.json index aaea02e4cf..472c478dbb 100644 --- a/auth/package.json +++ b/auth/package.json @@ -1,7 +1,7 @@ { "name": "@microsoft/vscode-azext-azureauth", "author": "Microsoft Corporation", - "version": "2.0.0", + "version": "2.1.0", "description": "Azure authentication helpers for Visual Studio Code", "tags": [ "azure",