diff --git a/auth/src/AzureAuthentication.ts b/auth/src/AzureAuthentication.ts index da81782663..852d2bd315 100644 --- a/auth/src/AzureAuthentication.ts +++ b/auth/src/AzureAuthentication.ts @@ -11,7 +11,7 @@ import type * as vscode from 'vscode'; export interface AzureAuthentication { /** * Gets a VS Code authentication session for an Azure subscription. - * Always uses the default scope, `https://management.azure.com/.default/.default.` + * Always uses the default scope, `https://management.azure.com/.default/` and respects `managementEndpointUrl` from the configured Azure environment. * * @returns A VS Code authentication session or undefined, if none could be obtained. */ diff --git a/auth/src/AzureDevOpsSubscriptionProvider.ts b/auth/src/AzureDevOpsSubscriptionProvider.ts index bfd4f012f4..d890f9cd3a 100644 --- a/auth/src/AzureDevOpsSubscriptionProvider.ts +++ b/auth/src/AzureDevOpsSubscriptionProvider.ts @@ -152,7 +152,7 @@ export class AzureDevOpsSubscriptionProvider implements AzureSubscriptionProvide } const accessToken = (await this._tokenCredential?.getToken("https://management.azure.com/.default"))?.token || ''; - const getSession = (_scopes: string[] | undefined) => { + const getSession = () => { return { accessToken, id: this._tokenCredential?.tenantId || '',