@azure/identity 3.2.0-alpha.20230320.1 → 3.2.0-alpha.20230330.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.

Files changed (35) hide show
  1. package/dist/index.js +105 -43
  2. package/dist/index.js.map +1 -1
  3. package/dist-esm/src/client/identityClient.js +3 -2
  4. package/dist-esm/src/client/identityClient.js.map +1 -1
  5. package/dist-esm/src/credentials/azureCliCredential.js +4 -3
  6. package/dist-esm/src/credentials/azureCliCredential.js.map +1 -1
  7. package/dist-esm/src/credentials/azureCliCredentialOptions.js.map +1 -1
  8. package/dist-esm/src/credentials/azureDeveloperCliCredential.js +8 -3
  9. package/dist-esm/src/credentials/azureDeveloperCliCredential.js.map +1 -1
  10. package/dist-esm/src/credentials/azureDeveloperCliCredentialOptions.js.map +1 -1
  11. package/dist-esm/src/credentials/azurePowerShellCredential.js +9 -5
  12. package/dist-esm/src/credentials/azurePowerShellCredential.js.map +1 -1
  13. package/dist-esm/src/credentials/azurePowerShellCredentialOptions.js.map +1 -1
  14. package/dist-esm/src/credentials/defaultAzureCredential.js +18 -3
  15. package/dist-esm/src/credentials/defaultAzureCredential.js.map +1 -1
  16. package/dist-esm/src/credentials/defaultAzureCredentialOptions.js.map +1 -1
  17. package/dist-esm/src/credentials/managedIdentityCredential/appServiceMsi2017.js +2 -1
  18. package/dist-esm/src/credentials/managedIdentityCredential/appServiceMsi2017.js.map +1 -1
  19. package/dist-esm/src/credentials/managedIdentityCredential/appServiceMsi2019.js +2 -1
  20. package/dist-esm/src/credentials/managedIdentityCredential/appServiceMsi2019.js.map +1 -1
  21. package/dist-esm/src/credentials/managedIdentityCredential/arcMsi.js +2 -1
  22. package/dist-esm/src/credentials/managedIdentityCredential/arcMsi.js.map +1 -1
  23. package/dist-esm/src/credentials/managedIdentityCredential/cloudShellMsi.js +2 -1
  24. package/dist-esm/src/credentials/managedIdentityCredential/cloudShellMsi.js.map +1 -1
  25. package/dist-esm/src/credentials/managedIdentityCredential/fabricMsi.js +2 -1
  26. package/dist-esm/src/credentials/managedIdentityCredential/fabricMsi.js.map +1 -1
  27. package/dist-esm/src/credentials/managedIdentityCredential/imdsMsi.js +2 -1
  28. package/dist-esm/src/credentials/managedIdentityCredential/imdsMsi.js.map +1 -1
  29. package/dist-esm/src/credentials/managedIdentityCredential/index.js +32 -21
  30. package/dist-esm/src/credentials/managedIdentityCredential/index.js.map +1 -1
  31. package/dist-esm/src/credentials/managedIdentityCredential/models.js.map +1 -1
  32. package/dist-esm/src/credentials/managedIdentityCredential/utils.js +20 -1
  33. package/dist-esm/src/credentials/managedIdentityCredential/utils.js.map +1 -1
  34. package/package.json +1 -1
  35. package/types/identity.d.ts +17 -0
@@ -229,6 +229,7 @@ export declare enum AzureAuthorityHosts {
229
229
  export declare class AzureCliCredential implements TokenCredential {
230
230
  private tenantId?;
231
231
  private additionallyAllowedTenantIds;
232
+ private timeout?;
232
233
  /**
233
234
  * Creates an instance of the {@link AzureCliCredential}.
234
235
  *
@@ -257,6 +258,10 @@ export declare interface AzureCliCredentialOptions extends MultiTenantTokenCrede
257
258
  * Allows specifying a tenant ID
258
259
  */
259
260
  tenantId?: string;
261
+ /**
262
+ * Timeout configurable for making token requests, provided in milliseconds
263
+ */
264
+ processTimeoutInMs?: number;
260
265
  }
261
266
 
262
267
  /**
@@ -267,6 +272,7 @@ export declare interface AzureCliCredentialOptions extends MultiTenantTokenCrede
267
272
  export declare class AzurePowerShellCredential implements TokenCredential {
268
273
  private tenantId?;
269
274
  private additionallyAllowedTenantIds;
275
+ private timeout?;
270
276
  /**
271
277
  * Creates an instance of the {@link AzurePowerShellCredential}.
272
278
  *
@@ -302,6 +308,10 @@ export declare interface AzurePowerShellCredentialOptions extends MultiTenantTok
302
308
  * Allows specifying a tenant ID
303
309
  */
304
310
  tenantId?: string;
311
+ /**
312
+ * Timeout configurable for making token requests, provided in milliseconds
313
+ */
314
+ processTimeoutInMs?: number;
305
315
  }
306
316
 
307
317
  /**
@@ -673,6 +683,12 @@ export declare interface DefaultAzureCredentialOptions extends MultiTenantTokenC
673
683
  * By default it may use a generic tenant ID depending on the underlying credential.
674
684
  */
675
685
  tenantId?: string;
686
+ /**
687
+ * Timeout configurable for making token requests for developer credentials, namely, {@link AzurePowershellCredential},
688
+ * {@link AzureDeveloperCliCredential} and {@link AzureCliCredential}.
689
+ * This should be provided in milliseconds.
690
+ */
691
+ developerCredentialTimeOutInMs?: number;
676
692
  }
677
693
 
678
694
  /**
@@ -1060,6 +1076,7 @@ export declare class ManagedIdentityCredential implements TokenCredential {
1060
1076
  private isEndpointUnavailable;
1061
1077
  private isAvailableIdentityClient;
1062
1078
  private confidentialApp;
1079
+ private isAppTokenProviderInitialized;
1063
1080
  /**
1064
1081
  * Creates an instance of ManagedIdentityCredential with the client ID of a
1065
1082
  * user-assigned identity, or app registration (when working with AKS pod-identity).