@azure/identity 3.0.0-alpha.20220804.2 → 3.0.0-alpha.20220809.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of @azure/identity might be problematic. Click here for more details.

package/README.md CHANGED
@@ -88,7 +88,7 @@ If interactive authentication cannot be supported in the session, then the `-Use
88
88
 
89
89
  #### Authenticate via Visual Studio Code
90
90
 
91
- Developers using Visual Studio Code can use the [Azure Account extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.azure-account) to authenticate via the editor. Apps using `DefaultAzureCredential` or `VisualStudioCodeCredential` can then use this account to authenticate calls in their app when running locally.
91
+ Developers using Visual Studio Code can use the [Azure Account extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.azure-account) to authenticate via the editor. Apps using `VisualStudioCodeCredential` can then use this account to authenticate calls in their app when running locally.
92
92
 
93
93
  To authenticate in Visual Studio Code, ensure the Azure Account extension is installed. Once installed, open the **Command Palette** and run the **Azure: Sign In** command.
94
94
 
@@ -124,11 +124,13 @@ If used from Node.js, the `DefaultAzureCredential` will attempt to authenticate
124
124
 
125
125
  1. **Environment** - The `DefaultAzureCredential` will read account information specified via [environment variables](#environment-variables) and use it to authenticate.
126
126
  1. **Managed Identity** - If the application is deployed to an Azure host with Managed Identity enabled, the `DefaultAzureCredential` will authenticate with that account.
127
- 1. **Visual Studio Code** - If the developer has authenticated with the [Visual Studio Code Azure Account extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.azure-account), the `DefaultAzureCredential` will authenticate using that account.
128
- - In `@azure/identity` version 2.0 or later, the [`@azure/identity-vscode`](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity-vscode) package must be installed for the Visual Studio Code authentication to work.
129
127
  1. **Azure CLI** - If the developer has authenticated an account via the Azure CLI `az login` command, the `DefaultAzureCredential` will authenticate with that account.
130
128
  1. **Azure PowerShell** - If the developer has authenticated using the Azure PowerShell module `Connect-AzAccount` command, the `DefaultAzureCredential` will authenticate with that account.
131
129
 
130
+ #### Note about `VisualStudioCodeCredential`
131
+
132
+ Due to a [known issue](https://github.com/Azure/azure-sdk-for-js/issues/20500), `VisualStudioCodeCredential` has been removed from the `DefaultAzureCredential` token chain. When the issue is resolved in a future release it will return.
133
+
132
134
  ## Plugins
133
135
 
134
136
  Azure Identity for JavaScript provides a plugin API that allows us to provide certain functionality through separate _plugin packages_. The `@azure/identity` package exports a top-level function (`useIdentityPlugin`) that can be used to enable a plugin. We provide two plugin packages:
package/dist/index.js CHANGED
@@ -1279,6 +1279,7 @@ class VisualStudioCodeCredential {
1279
1279
  "You must install the identity-vscode plugin package (`npm install --save-dev @azure/identity-vscode`)",
1280
1280
  "and enable it by importing `useIdentityPlugin` from `@azure/identity` and calling",
1281
1281
  "`useIdentityPlugin(vsCodePlugin)` before creating a `VisualStudioCodeCredential`.",
1282
+ "To troubleshoot, visit https://aka.ms/azsdk/js/identity/vscodecredential/troubleshoot.",
1282
1283
  ].join(" "));
1283
1284
  }
1284
1285
  let scopeString = typeof scopes === "string" ? scopes : scopes.join(" ");
@@ -3103,7 +3104,6 @@ class DefaultManagedIdentityCredential extends ManagedIdentityCredential {
3103
3104
  const defaultCredentials = [
3104
3105
  EnvironmentCredential,
3105
3106
  DefaultManagedIdentityCredential,
3106
- VisualStudioCodeCredential,
3107
3107
  AzureCliCredential,
3108
3108
  AzurePowerShellCredential,
3109
3109
  ];