@azure/identity 2.0.4-alpha.20220217.2 → 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,14 +1,15 @@
1
1
  # Release History
2
2
 
3
- ## 2.0.4 (Unreleased)
3
+ ## 2.0.5 (2022-06-22)
4
4
 
5
- ### Features Added
5
+ ### Bugs Fixed
6
6
 
7
- ### Breaking Changes
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.
8
+ ## 2.0.4 (2022-02-18)
8
9
 
9
10
  ### Bugs Fixed
10
11
 
11
- ### Other Changes
12
+ - Fixed a regression in version 2.0.3 in which providing an options bag, but _not_ a client ID, to the `ManagedIdentityCredential` constructor would discard the `options` parameter.
12
13
 
13
14
  ## 2.0.3 (2022-02-16)
14
15
 
@@ -51,7 +52,7 @@
51
52
 
52
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.
53
54
 
54
- 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).
55
56
 
56
57
  ### Features Added
57
58
 
@@ -132,7 +133,7 @@ Azure Service Fabric support hasn't been added on the initial version 2 of Ident
132
133
  - `InteractiveBrowserCredential` has a new `loginHint` constructor option, which allows a username to be pre-selected for interactive logins.
133
134
  - In `AzureCliCredential`, we allow specifying a `tenantId` in the parameters through the `AzureCliCredentialOptions`.
134
135
  - A new error, named `AuthenticationRequiredError`, has been added. This error shows up when a credential fails to authenticate silently.
135
- - 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).
136
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.
137
138
 
138
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
@@ -368,7 +368,7 @@ function getIdentityClientAuthorityHost(options) {
368
368
  class IdentityClient extends coreClient.ServiceClient {
369
369
  constructor(options) {
370
370
  var _a;
371
- const packageDetails = `azsdk-js-identity/2.0.4`;
371
+ const packageDetails = `azsdk-js-identity/2.0.5`;
372
372
  const userAgentPrefix = ((_a = options === null || options === void 0 ? void 0 : options.userAgentOptions) === null || _a === void 0 ? void 0 : _a.userAgentPrefix)
373
373
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
374
374
  : `${packageDetails}`;
@@ -2782,7 +2782,7 @@ class ManagedIdentityCredential {
2782
2782
  }
2783
2783
  else {
2784
2784
  // options only constructor
2785
- _options = options;
2785
+ _options = clientIdOrOptions;
2786
2786
  }
2787
2787
  this.identityClient = new IdentityClient(_options);
2788
2788
  this.isAvailableIdentityClient = new IdentityClient(Object.assign(Object.assign({}, _options), { retryOptions: {
@@ -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}`);