@azure/identity 3.1.2-alpha.20221205.5 → 3.1.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/dist/index.js CHANGED
@@ -2210,7 +2210,6 @@ class ManagedIdentityCredential {
2210
2210
  const resultToken = await this.authenticateManagedIdentity(scopes, Object.assign(Object.assign({}, updatedOptions), appTokenProviderParameters));
2211
2211
  if (resultToken) {
2212
2212
  logger$c.info(`SetAppTokenProvider has saved the token in cache`);
2213
- logger$c.info(`token = ${resultToken.token}`);
2214
2213
  const expiresInSeconds = (resultToken === null || resultToken === void 0 ? void 0 : resultToken.expiresOnTimestamp)
2215
2214
  ? Math.floor((resultToken.expiresOnTimestamp - Date.now()) / 1000)
2216
2215
  : 0;
@@ -2715,6 +2714,10 @@ class ChainedTokenCredential {
2715
2714
  * ```
2716
2715
  */
2717
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";
2718
2721
  this._sources = [];
2719
2722
  this._sources = sources;
2720
2723
  }
@@ -3240,6 +3243,8 @@ const defaultCredentials = [
3240
3243
  class DefaultAzureCredential extends ChainedTokenCredential {
3241
3244
  constructor(options) {
3242
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.";
3243
3248
  }
3244
3249
  }
3245
3250