@azure/identity 3.1.3-alpha.20230103.2 → 3.1.3

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/dist/index.js CHANGED
@@ -256,7 +256,7 @@ function credentialLogger(title, log = logger$l) {
256
256
  /**
257
257
  * Current version of the `@azure/identity` package.
258
258
  */
259
- const SDK_VERSION = `3.1.3`;
259
+ const SDK_VERSION = `3.1.2`;
260
260
  /**
261
261
  * The default client ID for authentication
262
262
  * @internal
@@ -2202,7 +2202,7 @@ class ManagedIdentityCredential {
2202
2202
  const appTokenParameters = {
2203
2203
  correlationId: this.identityClient.getCorrelationId(),
2204
2204
  tenantId: (options === null || options === void 0 ? void 0 : options.tenantId) || "organizations",
2205
- scopes: Array.isArray(scopes) ? scopes : [scopes],
2205
+ scopes: [...scopes],
2206
2206
  claims: options === null || options === void 0 ? void 0 : options.claims,
2207
2207
  };
2208
2208
  this.confidentialApp.SetAppTokenProvider(async (appTokenProviderParameters = appTokenParameters) => {
@@ -2714,6 +2714,10 @@ class ChainedTokenCredential {
2714
2714
  * ```
2715
2715
  */
2716
2716
  constructor(...sources) {
2717
+ /**
2718
+ * The message to use when the chained token fails to get a token
2719
+ */
2720
+ this.UnavailableMessage = "ChainedTokenCredential => failed to retrieve a token from the included credentials";
2717
2721
  this._sources = [];
2718
2722
  this._sources = sources;
2719
2723
  }
@@ -3239,6 +3243,8 @@ const defaultCredentials = [
3239
3243
  class DefaultAzureCredential extends ChainedTokenCredential {
3240
3244
  constructor(options) {
3241
3245
  super(...defaultCredentials.map((ctor) => new ctor(options)));
3246
+ this.UnavailableMessage =
3247
+ "DefaultAzureCredential => failed to retrieve a token from the included credentials. To troubleshoot, visit https://aka.ms/azsdk/js/identity/defaultazurecredential/troubleshoot.";
3242
3248
  }
3243
3249
  }
3244
3250