@azure/identity 1.3.0 → 1.5.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 (54) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +8 -1
  3. package/dist/index.js +233 -168
  4. package/dist/index.js.map +1 -1
  5. package/dist-esm/src/client/identityClient.js +92 -51
  6. package/dist-esm/src/client/identityClient.js.map +1 -1
  7. package/dist-esm/src/client/msalClient.js.map +1 -1
  8. package/dist-esm/src/constants.js +5 -0
  9. package/dist-esm/src/constants.js.map +1 -1
  10. package/dist-esm/src/credentials/authorizationCodeCredential.browser.js.map +1 -1
  11. package/dist-esm/src/credentials/authorizationCodeCredential.js +8 -7
  12. package/dist-esm/src/credentials/authorizationCodeCredential.js.map +1 -1
  13. package/dist-esm/src/credentials/azureCliCredential.browser.js.map +1 -1
  14. package/dist-esm/src/credentials/azureCliCredential.js.map +1 -1
  15. package/dist-esm/src/credentials/chainedTokenCredential.js.map +1 -1
  16. package/dist-esm/src/credentials/clientCertificateCredential.browser.js.map +1 -1
  17. package/dist-esm/src/credentials/clientCertificateCredential.js +8 -7
  18. package/dist-esm/src/credentials/clientCertificateCredential.js.map +1 -1
  19. package/dist-esm/src/credentials/clientSecretCredential.js +10 -9
  20. package/dist-esm/src/credentials/clientSecretCredential.js.map +1 -1
  21. package/dist-esm/src/credentials/deviceCodeCredential.browser.js.map +1 -1
  22. package/dist-esm/src/credentials/deviceCodeCredential.js.map +1 -1
  23. package/dist-esm/src/credentials/environmentCredential.browser.js.map +1 -1
  24. package/dist-esm/src/credentials/environmentCredential.js.map +1 -1
  25. package/dist-esm/src/credentials/interactiveBrowserCredential.browser.js +2 -3
  26. package/dist-esm/src/credentials/interactiveBrowserCredential.browser.js.map +1 -1
  27. package/dist-esm/src/credentials/interactiveBrowserCredential.js.map +1 -1
  28. package/dist-esm/src/credentials/managedIdentityCredential/appServiceMsi2017.js +11 -5
  29. package/dist-esm/src/credentials/managedIdentityCredential/appServiceMsi2017.js.map +1 -1
  30. package/dist-esm/src/credentials/managedIdentityCredential/arcMsi.js +16 -9
  31. package/dist-esm/src/credentials/managedIdentityCredential/arcMsi.js.map +1 -1
  32. package/dist-esm/src/credentials/managedIdentityCredential/cloudShellMsi.js +4 -3
  33. package/dist-esm/src/credentials/managedIdentityCredential/cloudShellMsi.js.map +1 -1
  34. package/dist-esm/src/credentials/managedIdentityCredential/constants.js +2 -1
  35. package/dist-esm/src/credentials/managedIdentityCredential/constants.js.map +1 -1
  36. package/dist-esm/src/credentials/managedIdentityCredential/fabricMsi.js +6 -4
  37. package/dist-esm/src/credentials/managedIdentityCredential/fabricMsi.js.map +1 -1
  38. package/dist-esm/src/credentials/managedIdentityCredential/imdsMsi.js +42 -21
  39. package/dist-esm/src/credentials/managedIdentityCredential/imdsMsi.js.map +1 -1
  40. package/dist-esm/src/credentials/managedIdentityCredential/index.browser.js.map +1 -1
  41. package/dist-esm/src/credentials/managedIdentityCredential/index.js +1 -1
  42. package/dist-esm/src/credentials/managedIdentityCredential/index.js.map +1 -1
  43. package/dist-esm/src/credentials/managedIdentityCredential/models.js.map +1 -1
  44. package/dist-esm/src/credentials/managedIdentityCredential/utils.js +6 -2
  45. package/dist-esm/src/credentials/managedIdentityCredential/utils.js.map +1 -1
  46. package/dist-esm/src/credentials/usernamePasswordCredential.js +8 -7
  47. package/dist-esm/src/credentials/usernamePasswordCredential.js.map +1 -1
  48. package/dist-esm/src/credentials/visualStudioCodeCredential.browser.js.map +1 -1
  49. package/dist-esm/src/credentials/visualStudioCodeCredential.js.map +1 -1
  50. package/dist-esm/src/index.js.map +1 -1
  51. package/dist-esm/src/util/isNode.js +10 -0
  52. package/dist-esm/src/util/isNode.js.map +1 -0
  53. package/package.json +6 -7
  54. package/types/identity.d.ts +7 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # Release History
2
2
 
3
+ ## 1.5.2 (2021-09-01)
4
+
5
+ - Fixed a bug introduced on 1.5.0 that caused the `ManagedIdentityCredential` to fail authenticating in Arc environments. Since our new core disables unsafe requests by default, we had to change the security settings for the first request of the Arc MSI, which retrieves the file path where the authentication value is stored since this request generally happens through an HTTP endpoint.
6
+
7
+ ## 1.5.1 (2021-08-12)
8
+
9
+ - Fixed how we verify the IMDS endpoint is available. Now, besides skipping the `Metadata` header, we skip the URL query. Both will ensure that all the known IMDS endpoints return as early as possible.
10
+ - Added support for the `AZURE_POD_IDENTITY_AUTHORITY_HOST` environment variable. If present, the IMDS endpoint initial verification will be skipped.
11
+
12
+ ## 1.5.0 (2021-07-19)
13
+
14
+ - With this release, we've migrated from using `@azure/core-http` to `@azure/core-rest-pipeline` for the handling of HTTP requests. See [Azure Core v1 vs v2](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/core/core-rest-pipeline/documentation/core2.md) for more on the difference and benefits of the move. This removes our dependency on `node-fetch` and along with it issues we have seen in using this dependency in specific environments like Kubernetes pods.
15
+
16
+ ## 1.4.0 (2021-07-09)
17
+
18
+ - With this release, we drop support for Node.js versions that have reached the end of life, like Node.js 8. Read our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
19
+ - Updated the default timeout of the first request of the IMDS MSI from half a second to three seconds to compensate for the slowness caused by `node-fetch` for initial requests in specific environments, like Kubernetes pods.
20
+ - Upgraded `@azure/core-http` to version `^2.0.0`, and `@azure/core-tracing` to version `1.0.0-preview.12`.
21
+
3
22
  ## 1.3.0 (2021-04-05)
4
23
 
5
24
  ### Breaking Changes
package/README.md CHANGED
@@ -8,6 +8,14 @@ You can find examples for these various credentials in [Azure Identity Examples
8
8
 
9
9
  ## Getting started
10
10
 
11
+ ### Currently supported environments
12
+
13
+ - [LTS versions of Node.js](https://nodejs.org/about/releases/)
14
+ - **Note:** If your application runs on Node.js v8 or lower and you cannot upgrade your Node.js version to latest stable version, then pin your `@azure/identity` dependency to version 1.1.0.
15
+ - Latest versions of Safari, Chrome, Edge, and Firefox.
16
+ - Note: Among the different credentials exported in this library, `InteractiveBrowserCredential` is the only one that is supported in the browser.
17
+ - See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
18
+
11
19
  ### Install the package
12
20
 
13
21
  Install Azure Identity with `npm`:
@@ -18,7 +26,6 @@ npm install --save @azure/identity
18
26
 
19
27
  ### Prerequisites
20
28
 
21
- - Node.js 8 LTS or higher.
22
29
  - An [Azure subscription](https://azure.microsoft.com/free/).
23
30
  - The [Azure CLI][azure_cli] can also be useful for authenticating in a development environment and managing account roles.
24
31