@azure/identity 2.0.5-alpha.20220221.1 → 2.0.5

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/CHANGELOG.md CHANGED
@@ -1,15 +1,10 @@
1
1
  # Release History
2
2
 
3
- ## 2.0.5 (Unreleased)
4
-
5
- ### Features Added
6
-
7
- ### Breaking Changes
3
+ ## 2.0.5 (2022-06-22)
8
4
 
9
5
  ### Bugs Fixed
10
6
 
11
- ### Other Changes
12
-
7
+ - Fixed a bug in `InteractiveBrowserCredential` for Mac OS where the [app was not getting closed](https://github.com/Azure/azure-sdk-for-js/issues/21726) after the authorization succeeded.
13
8
  ## 2.0.4 (2022-02-18)
14
9
 
15
10
  ### Bugs Fixed
@@ -57,7 +52,7 @@
57
52
 
58
53
  After multiple beta releases over the past year, we're proud to announce the general availability of version 2 of the `@azure/identity` package. This version includes the best parts of v1, plus several improvements.
59
54
 
60
- This changelog entry showcases the changes that have been made from version 1 of this package. See the [v1-to-v2 migration guide](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/identity/identity/migration-v1-v2.md) for details on how to upgrade your application to use the version 2 of `@azure/identity`. For information on troubleshooting the Identity package, see the [troubleshooting guide](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/identity/identity/Troubleshooting.md).
55
+ This changelog entry showcases the changes that have been made from version 1 of this package. See the [v1-to-v2 migration guide](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/identity/identity/migration-v1-v2.md) for details on how to upgrade your application to use the version 2 of `@azure/identity`. For information on troubleshooting the Identity package, see the [troubleshooting guide](https://aka.ms/azsdk/js/identity/troubleshoot).
61
56
 
62
57
  ### Features Added
63
58
 
@@ -138,7 +133,7 @@ Azure Service Fabric support hasn't been added on the initial version 2 of Ident
138
133
  - `InteractiveBrowserCredential` has a new `loginHint` constructor option, which allows a username to be pre-selected for interactive logins.
139
134
  - In `AzureCliCredential`, we allow specifying a `tenantId` in the parameters through the `AzureCliCredentialOptions`.
140
135
  - A new error, named `AuthenticationRequiredError`, has been added. This error shows up when a credential fails to authenticate silently.
141
- - Errors and logged exceptions may point to the new [troubleshooting guidelines](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/identity/identity/Troubleshooting.md).
136
+ - Errors and logged exceptions may point to the new [troubleshooting guidelines](https://aka.ms/azsdk/js/identity/troubleshoot).
142
137
  - On all of the credentials we're providing, the initial authentication attempt in the lifetime of your app will include an additional request to first discover relevant endpoint metadata information from Azure.
143
138
 
144
139
  ### Breaking changes
package/README.md CHANGED
@@ -297,7 +297,7 @@ import { setLogLevel } from "@azure/logger";
297
297
  setLogLevel("info");
298
298
  ```
299
299
 
300
- For assistance with troubleshooting, see the [troubleshooting guide](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/identity/identity/Troubleshooting.md).
300
+ For assistance with troubleshooting, see the [troubleshooting guide](https://aka.ms/azsdk/js/identity/troubleshoot).
301
301
 
302
302
  ## Next steps
303
303
 
package/dist/index.js CHANGED
@@ -3133,7 +3133,8 @@ class MsalOpenBrowser extends MsalNode {
3133
3133
  };
3134
3134
  const response = await this.publicApp.getAuthCodeUrl(authCodeUrlParameters);
3135
3135
  try {
3136
- await interactiveBrowserMockable.open(response, { wait: true });
3136
+ // A new instance on macOS only which allows it to not hang, does not fix the issue on linux
3137
+ await interactiveBrowserMockable.open(response, { wait: true, newInstance: true });
3137
3138
  }
3138
3139
  catch (e) {
3139
3140
  throw new CredentialUnavailableError(`InteractiveBrowserCredential: Could not open a browser window. Error: ${e.message}`);