@azure/msal-browser 2.31.0 → 2.32.0

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.
Files changed (70) hide show
  1. package/README.md +1 -1
  2. package/dist/_virtual/_tslib.js +1 -1
  3. package/dist/app/ClientApplication.js +1 -1
  4. package/dist/app/IPublicClientApplication.js +1 -1
  5. package/dist/app/PublicClientApplication.js +1 -1
  6. package/dist/broker/nativeBroker/NativeMessageHandler.js +1 -1
  7. package/dist/cache/AsyncMemoryStorage.js +1 -1
  8. package/dist/cache/BrowserCacheManager.js +1 -1
  9. package/dist/cache/BrowserStorage.js +1 -1
  10. package/dist/cache/CryptoKeyStore.js +1 -1
  11. package/dist/cache/DatabaseStorage.js +1 -1
  12. package/dist/cache/MemoryStorage.js +1 -1
  13. package/dist/cache/TokenCache.js +2 -2
  14. package/dist/cache/TokenCache.js.map +1 -1
  15. package/dist/config/Configuration.js +1 -1
  16. package/dist/crypto/BrowserCrypto.js +1 -1
  17. package/dist/crypto/CryptoOps.js +1 -1
  18. package/dist/crypto/GuidGenerator.js +1 -1
  19. package/dist/crypto/ModernBrowserCrypto.js +1 -1
  20. package/dist/crypto/MsBrowserCrypto.js +1 -1
  21. package/dist/crypto/MsrBrowserCrypto.js +1 -1
  22. package/dist/crypto/PkceGenerator.js +1 -1
  23. package/dist/crypto/SignedHttpRequest.js +1 -1
  24. package/dist/encode/Base64Decode.js +1 -1
  25. package/dist/encode/Base64Encode.js +1 -1
  26. package/dist/error/BrowserAuthError.js +1 -1
  27. package/dist/error/BrowserConfigurationAuthError.js +1 -1
  28. package/dist/error/NativeAuthError.js +1 -1
  29. package/dist/event/EventHandler.js +1 -1
  30. package/dist/event/EventMessage.js +1 -1
  31. package/dist/event/EventType.js +1 -1
  32. package/dist/index.cjs.js +104 -79
  33. package/dist/index.cjs.js.map +1 -1
  34. package/dist/index.d.ts +1 -0
  35. package/dist/index.d.ts.map +1 -1
  36. package/dist/index.js +1 -1
  37. package/dist/interaction_client/BaseInteractionClient.js +3 -3
  38. package/dist/interaction_client/BaseInteractionClient.js.map +1 -1
  39. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.js +1 -1
  40. package/dist/interaction_client/NativeInteractionClient.js +1 -1
  41. package/dist/interaction_client/PopupClient.js +1 -1
  42. package/dist/interaction_client/RedirectClient.js +1 -1
  43. package/dist/interaction_client/SilentAuthCodeClient.js +1 -1
  44. package/dist/interaction_client/SilentCacheClient.js +1 -1
  45. package/dist/interaction_client/SilentIframeClient.js +1 -1
  46. package/dist/interaction_client/SilentRefreshClient.js +1 -1
  47. package/dist/interaction_client/StandardInteractionClient.js +2 -2
  48. package/dist/interaction_client/StandardInteractionClient.js.map +1 -1
  49. package/dist/interaction_handler/InteractionHandler.js +2 -2
  50. package/dist/interaction_handler/InteractionHandler.js.map +1 -1
  51. package/dist/interaction_handler/RedirectHandler.js +1 -1
  52. package/dist/interaction_handler/SilentHandler.js +1 -1
  53. package/dist/internals.js +1 -1
  54. package/dist/navigation/NavigationClient.js +1 -1
  55. package/dist/network/FetchClient.js +1 -1
  56. package/dist/network/XhrClient.js +1 -1
  57. package/dist/packageMetadata.d.ts +1 -1
  58. package/dist/packageMetadata.js +2 -2
  59. package/dist/packageMetadata.js.map +1 -1
  60. package/dist/telemetry/BrowserPerformanceClient.js +1 -1
  61. package/dist/telemetry/BrowserPerformanceMeasurement.js +1 -1
  62. package/dist/utils/BrowserConstants.js +1 -1
  63. package/dist/utils/BrowserProtocolUtils.js +1 -1
  64. package/dist/utils/BrowserStringUtils.js +1 -1
  65. package/dist/utils/BrowserUtils.js +1 -1
  66. package/dist/utils/MathUtils.js +1 -1
  67. package/lib/msal-browser.js +104 -79
  68. package/lib/msal-browser.js.map +1 -1
  69. package/lib/msal-browser.min.js +33 -33
  70. package/package.json +2 -2
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v2.31.0 2022-11-07 */
1
+ /*! @azure/msal-browser v2.32.0 2022-11-22 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
@@ -117,7 +117,7 @@ function __spread() {
117
117
  return ar;
118
118
  }
119
119
 
120
- /*! @azure/msal-common v8.0.0 2022-11-07 */
120
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
121
121
  /*! *****************************************************************************
122
122
  Copyright (c) Microsoft Corporation.
123
123
 
@@ -204,7 +204,7 @@ function __spreadArrays() {
204
204
  return r;
205
205
  }
206
206
 
207
- /*! @azure/msal-common v8.0.0 2022-11-07 */
207
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
208
208
 
209
209
  /*
210
210
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -247,6 +247,7 @@ var Constants = {
247
247
  AUTHORIZATION_PENDING: "authorization_pending",
248
248
  NOT_DEFINED: "not_defined",
249
249
  EMPTY_STRING: "",
250
+ NOT_APPLICABLE: "N/A",
250
251
  FORWARD_SLASH: "/",
251
252
  IMDS_ENDPOINT: "http://169.254.169.254/metadata/instance/compute/location",
252
253
  IMDS_VERSION: "2020-06-01",
@@ -585,7 +586,7 @@ var JsonTypes;
585
586
  JsonTypes["Jwk"] = "JWK";
586
587
  })(JsonTypes || (JsonTypes = {}));
587
588
 
588
- /*! @azure/msal-common v8.0.0 2022-11-07 */
589
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
589
590
 
590
591
  /*
591
592
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -641,7 +642,7 @@ var AuthError = /** @class */ (function (_super) {
641
642
  return AuthError;
642
643
  }(Error));
643
644
 
644
- /*! @azure/msal-common v8.0.0 2022-11-07 */
645
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
645
646
 
646
647
  /*
647
648
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -716,7 +717,7 @@ var DEFAULT_CRYPTO_IMPLEMENTATION = {
716
717
  }
717
718
  };
718
719
 
719
- /*! @azure/msal-common v8.0.0 2022-11-07 */
720
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
720
721
 
721
722
  /*
722
723
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1211,7 +1212,7 @@ var ClientAuthError = /** @class */ (function (_super) {
1211
1212
  return ClientAuthError;
1212
1213
  }(AuthError));
1213
1214
 
1214
- /*! @azure/msal-common v8.0.0 2022-11-07 */
1215
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
1215
1216
 
1216
1217
  /*
1217
1218
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1336,7 +1337,7 @@ var StringUtils = /** @class */ (function () {
1336
1337
  return StringUtils;
1337
1338
  }());
1338
1339
 
1339
- /*! @azure/msal-common v8.0.0 2022-11-07 */
1340
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
1340
1341
 
1341
1342
  /*
1342
1343
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1516,12 +1517,12 @@ var Logger = /** @class */ (function () {
1516
1517
  return Logger;
1517
1518
  }());
1518
1519
 
1519
- /*! @azure/msal-common v8.0.0 2022-11-07 */
1520
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
1520
1521
  /* eslint-disable header/header */
1521
1522
  var name$1 = "@azure/msal-common";
1522
- var version$1 = "8.0.0";
1523
+ var version$1 = "9.0.0";
1523
1524
 
1524
- /*! @azure/msal-common v8.0.0 2022-11-07 */
1525
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
1525
1526
  /*
1526
1527
  * Copyright (c) Microsoft Corporation. All rights reserved.
1527
1528
  * Licensed under the MIT License.
@@ -1542,7 +1543,7 @@ exports.AzureCloudInstance = void 0;
1542
1543
  AzureCloudInstance["AzureUsGovernment"] = "https://login.microsoftonline.us";
1543
1544
  })(exports.AzureCloudInstance || (exports.AzureCloudInstance = {}));
1544
1545
 
1545
- /*! @azure/msal-common v8.0.0 2022-11-07 */
1546
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
1546
1547
 
1547
1548
  /*
1548
1549
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1701,7 +1702,7 @@ var CredentialEntity = /** @class */ (function () {
1701
1702
  return CredentialEntity;
1702
1703
  }());
1703
1704
 
1704
- /*! @azure/msal-common v8.0.0 2022-11-07 */
1705
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
1705
1706
 
1706
1707
  /*
1707
1708
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1956,7 +1957,7 @@ var ClientConfigurationError = /** @class */ (function (_super) {
1956
1957
  return ClientConfigurationError;
1957
1958
  }(ClientAuthError));
1958
1959
 
1959
- /*! @azure/msal-common v8.0.0 2022-11-07 */
1960
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
1960
1961
 
1961
1962
  /*
1962
1963
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2140,7 +2141,7 @@ var ScopeSet = /** @class */ (function () {
2140
2141
  return ScopeSet;
2141
2142
  }());
2142
2143
 
2143
- /*! @azure/msal-common v8.0.0 2022-11-07 */
2144
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
2144
2145
 
2145
2146
  /*
2146
2147
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2178,7 +2179,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
2178
2179
  };
2179
2180
  }
2180
2181
 
2181
- /*! @azure/msal-common v8.0.0 2022-11-07 */
2182
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
2182
2183
  /*
2183
2184
  * Copyright (c) Microsoft Corporation. All rights reserved.
2184
2185
  * Licensed under the MIT License.
@@ -2193,7 +2194,7 @@ var AuthorityType;
2193
2194
  AuthorityType[AuthorityType["Dsts"] = 2] = "Dsts";
2194
2195
  })(AuthorityType || (AuthorityType = {}));
2195
2196
 
2196
- /*! @azure/msal-common v8.0.0 2022-11-07 */
2197
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
2197
2198
 
2198
2199
  /*
2199
2200
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2432,7 +2433,7 @@ var AccountEntity = /** @class */ (function () {
2432
2433
  return AccountEntity;
2433
2434
  }());
2434
2435
 
2435
- /*! @azure/msal-common v8.0.0 2022-11-07 */
2436
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
2436
2437
 
2437
2438
  /*
2438
2439
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2484,7 +2485,7 @@ var AuthToken = /** @class */ (function () {
2484
2485
  return AuthToken;
2485
2486
  }());
2486
2487
 
2487
- /*! @azure/msal-common v8.0.0 2022-11-07 */
2488
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
2488
2489
 
2489
2490
  /*
2490
2491
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3363,7 +3364,7 @@ var DefaultStorageClass = /** @class */ (function (_super) {
3363
3364
  return DefaultStorageClass;
3364
3365
  }(CacheManager));
3365
3366
 
3366
- /*! @azure/msal-common v8.0.0 2022-11-07 */
3367
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
3367
3368
 
3368
3369
  /*
3369
3370
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3457,7 +3458,7 @@ function buildAuthOptions(authOptions) {
3457
3458
  return __assign({ clientCapabilities: [], azureCloudOptions: DEFAULT_AZURE_CLOUD_OPTIONS, skipAuthorityMetadataCache: false }, authOptions);
3458
3459
  }
3459
3460
 
3460
- /*! @azure/msal-common v8.0.0 2022-11-07 */
3461
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
3461
3462
 
3462
3463
  /*
3463
3464
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3477,7 +3478,7 @@ var ServerError = /** @class */ (function (_super) {
3477
3478
  return ServerError;
3478
3479
  }(AuthError));
3479
3480
 
3480
- /*! @azure/msal-common v8.0.0 2022-11-07 */
3481
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
3481
3482
 
3482
3483
  /*
3483
3484
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3573,7 +3574,7 @@ var ThrottlingUtils = /** @class */ (function () {
3573
3574
  return ThrottlingUtils;
3574
3575
  }());
3575
3576
 
3576
- /*! @azure/msal-common v8.0.0 2022-11-07 */
3577
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
3577
3578
 
3578
3579
  /*
3579
3580
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3622,7 +3623,7 @@ var NetworkManager = /** @class */ (function () {
3622
3623
  return NetworkManager;
3623
3624
  }());
3624
3625
 
3625
- /*! @azure/msal-common v8.0.0 2022-11-07 */
3626
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
3626
3627
  /*
3627
3628
  * Copyright (c) Microsoft Corporation. All rights reserved.
3628
3629
  * Licensed under the MIT License.
@@ -3633,7 +3634,7 @@ var CcsCredentialType;
3633
3634
  CcsCredentialType["UPN"] = "UPN";
3634
3635
  })(CcsCredentialType || (CcsCredentialType = {}));
3635
3636
 
3636
- /*! @azure/msal-common v8.0.0 2022-11-07 */
3637
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
3637
3638
 
3638
3639
  /*
3639
3640
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3724,7 +3725,7 @@ var BaseClient = /** @class */ (function () {
3724
3725
  return BaseClient;
3725
3726
  }());
3726
3727
 
3727
- /*! @azure/msal-common v8.0.0 2022-11-07 */
3728
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
3728
3729
 
3729
3730
  /*
3730
3731
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3810,7 +3811,7 @@ var RequestValidator = /** @class */ (function () {
3810
3811
  return RequestValidator;
3811
3812
  }());
3812
3813
 
3813
- /*! @azure/msal-common v8.0.0 2022-11-07 */
3814
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
3814
3815
 
3815
3816
  /*
3816
3817
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4188,7 +4189,7 @@ var RequestParameterBuilder = /** @class */ (function () {
4188
4189
  return RequestParameterBuilder;
4189
4190
  }());
4190
4191
 
4191
- /*! @azure/msal-common v8.0.0 2022-11-07 */
4192
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
4192
4193
 
4193
4194
  /*
4194
4195
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4252,7 +4253,7 @@ var IdTokenEntity = /** @class */ (function (_super) {
4252
4253
  return IdTokenEntity;
4253
4254
  }(CredentialEntity));
4254
4255
 
4255
- /*! @azure/msal-common v8.0.0 2022-11-07 */
4256
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
4256
4257
  /*
4257
4258
  * Copyright (c) Microsoft Corporation. All rights reserved.
4258
4259
  * Licensed under the MIT License.
@@ -4302,7 +4303,7 @@ var TimeUtils = /** @class */ (function () {
4302
4303
  return TimeUtils;
4303
4304
  }());
4304
4305
 
4305
- /*! @azure/msal-common v8.0.0 2022-11-07 */
4306
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
4306
4307
 
4307
4308
  /*
4308
4309
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4416,7 +4417,7 @@ var AccessTokenEntity = /** @class */ (function (_super) {
4416
4417
  return AccessTokenEntity;
4417
4418
  }(CredentialEntity));
4418
4419
 
4419
- /*! @azure/msal-common v8.0.0 2022-11-07 */
4420
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
4420
4421
 
4421
4422
  /*
4422
4423
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4483,7 +4484,7 @@ var RefreshTokenEntity = /** @class */ (function (_super) {
4483
4484
  return RefreshTokenEntity;
4484
4485
  }(CredentialEntity));
4485
4486
 
4486
- /*! @azure/msal-common v8.0.0 2022-11-07 */
4487
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
4487
4488
 
4488
4489
  /*
4489
4490
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4558,7 +4559,7 @@ var InteractionRequiredAuthError = /** @class */ (function (_super) {
4558
4559
  return InteractionRequiredAuthError;
4559
4560
  }(AuthError));
4560
4561
 
4561
- /*! @azure/msal-common v8.0.0 2022-11-07 */
4562
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
4562
4563
  /*
4563
4564
  * Copyright (c) Microsoft Corporation. All rights reserved.
4564
4565
  * Licensed under the MIT License.
@@ -4574,7 +4575,7 @@ var CacheRecord = /** @class */ (function () {
4574
4575
  return CacheRecord;
4575
4576
  }());
4576
4577
 
4577
- /*! @azure/msal-common v8.0.0 2022-11-07 */
4578
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
4578
4579
 
4579
4580
  /*
4580
4581
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4645,7 +4646,7 @@ var ProtocolUtils = /** @class */ (function () {
4645
4646
  return ProtocolUtils;
4646
4647
  }());
4647
4648
 
4648
- /*! @azure/msal-common v8.0.0 2022-11-07 */
4649
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
4649
4650
 
4650
4651
  /*
4651
4652
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4879,7 +4880,7 @@ var UrlString = /** @class */ (function () {
4879
4880
  return UrlString;
4880
4881
  }());
4881
4882
 
4882
- /*! @azure/msal-common v8.0.0 2022-11-07 */
4883
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
4883
4884
 
4884
4885
  /*
4885
4886
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4980,7 +4981,7 @@ var PopTokenGenerator = /** @class */ (function () {
4980
4981
  return PopTokenGenerator;
4981
4982
  }());
4982
4983
 
4983
- /*! @azure/msal-common v8.0.0 2022-11-07 */
4984
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
4984
4985
 
4985
4986
  /*
4986
4987
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5050,7 +5051,7 @@ var AppMetadataEntity = /** @class */ (function () {
5050
5051
  return AppMetadataEntity;
5051
5052
  }());
5052
5053
 
5053
- /*! @azure/msal-common v8.0.0 2022-11-07 */
5054
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
5054
5055
  /*
5055
5056
  * Copyright (c) Microsoft Corporation. All rights reserved.
5056
5057
  * Licensed under the MIT License.
@@ -5086,7 +5087,7 @@ var AppMetadataEntity = /** @class */ (function () {
5086
5087
  return TokenCacheContext;
5087
5088
  }());
5088
5089
 
5089
- /*! @azure/msal-common v8.0.0 2022-11-07 */
5090
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
5090
5091
 
5091
5092
  /*
5092
5093
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5366,7 +5367,7 @@ var ResponseHandler = /** @class */ (function () {
5366
5367
  return ResponseHandler;
5367
5368
  }());
5368
5369
 
5369
- /*! @azure/msal-common v8.0.0 2022-11-07 */
5370
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
5370
5371
 
5371
5372
  /*
5372
5373
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5819,7 +5820,7 @@ var AuthorizationCodeClient = /** @class */ (function (_super) {
5819
5820
  return AuthorizationCodeClient;
5820
5821
  }(BaseClient));
5821
5822
 
5822
- /*! @azure/msal-common v8.0.0 2022-11-07 */
5823
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
5823
5824
  /*
5824
5825
  * Copyright (c) Microsoft Corporation. All rights reserved.
5825
5826
  * Licensed under the MIT License.
@@ -5944,7 +5945,7 @@ var PerformanceEventStatus;
5944
5945
  PerformanceEventStatus[PerformanceEventStatus["Completed"] = 2] = "Completed";
5945
5946
  })(PerformanceEventStatus || (PerformanceEventStatus = {}));
5946
5947
 
5947
- /*! @azure/msal-common v8.0.0 2022-11-07 */
5948
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
5948
5949
 
5949
5950
  /*
5950
5951
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6209,7 +6210,7 @@ var RefreshTokenClient = /** @class */ (function (_super) {
6209
6210
  return RefreshTokenClient;
6210
6211
  }(BaseClient));
6211
6212
 
6212
- /*! @azure/msal-common v8.0.0 2022-11-07 */
6213
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
6213
6214
 
6214
6215
  /*
6215
6216
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6333,7 +6334,7 @@ var SilentFlowClient = /** @class */ (function (_super) {
6333
6334
  return SilentFlowClient;
6334
6335
  }(BaseClient));
6335
6336
 
6336
- /*! @azure/msal-common v8.0.0 2022-11-07 */
6337
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
6337
6338
  /*
6338
6339
  * Copyright (c) Microsoft Corporation. All rights reserved.
6339
6340
  * Licensed under the MIT License.
@@ -6345,7 +6346,7 @@ function isOpenIdConfigResponse(response) {
6345
6346
  response.hasOwnProperty("jwks_uri"));
6346
6347
  }
6347
6348
 
6348
- /*! @azure/msal-common v8.0.0 2022-11-07 */
6349
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
6349
6350
  /*
6350
6351
  * Copyright (c) Microsoft Corporation. All rights reserved.
6351
6352
  * Licensed under the MIT License.
@@ -6354,7 +6355,7 @@ var rawMetdataJSON = { "endpointMetadata": { "https://login.microsoftonline.com/
6354
6355
  var EndpointMetadata = rawMetdataJSON.endpointMetadata;
6355
6356
  var InstanceDiscoveryMetadata = rawMetdataJSON.instanceDiscoveryMetadata;
6356
6357
 
6357
- /*! @azure/msal-common v8.0.0 2022-11-07 */
6358
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
6358
6359
  /*
6359
6360
  * Copyright (c) Microsoft Corporation. All rights reserved.
6360
6361
  * Licensed under the MIT License.
@@ -6368,7 +6369,7 @@ exports.ProtocolMode = void 0;
6368
6369
  ProtocolMode["OIDC"] = "OIDC";
6369
6370
  })(exports.ProtocolMode || (exports.ProtocolMode = {}));
6370
6371
 
6371
- /*! @azure/msal-common v8.0.0 2022-11-07 */
6372
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
6372
6373
 
6373
6374
  /*
6374
6375
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6445,7 +6446,7 @@ var AuthorityMetadataEntity = /** @class */ (function () {
6445
6446
  return AuthorityMetadataEntity;
6446
6447
  }());
6447
6448
 
6448
- /*! @azure/msal-common v8.0.0 2022-11-07 */
6449
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
6449
6450
  /*
6450
6451
  * Copyright (c) Microsoft Corporation. All rights reserved.
6451
6452
  * Licensed under the MIT License.
@@ -6455,7 +6456,7 @@ function isCloudInstanceDiscoveryResponse(response) {
6455
6456
  response.hasOwnProperty("metadata"));
6456
6457
  }
6457
6458
 
6458
- /*! @azure/msal-common v8.0.0 2022-11-07 */
6459
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
6459
6460
 
6460
6461
  /*
6461
6462
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6577,7 +6578,7 @@ var RegionDiscovery = /** @class */ (function () {
6577
6578
  return RegionDiscovery;
6578
6579
  }());
6579
6580
 
6580
- /*! @azure/msal-common v8.0.0 2022-11-07 */
6581
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
6581
6582
 
6582
6583
  /*
6583
6584
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6588,7 +6589,7 @@ var RegionDiscovery = /** @class */ (function () {
6588
6589
  * endpoint. It will store the pertinent config data in this object for use during token calls.
6589
6590
  */
6590
6591
  var Authority = /** @class */ (function () {
6591
- function Authority(authority, networkInterface, cacheManager, authorityOptions, proxyUrl) {
6592
+ function Authority(authority, networkInterface, cacheManager, authorityOptions, logger, proxyUrl) {
6592
6593
  this.canonicalAuthority = authority;
6593
6594
  this._canonicalAuthority.validateAsUri();
6594
6595
  this.networkInterface = networkInterface;
@@ -6597,6 +6598,7 @@ var Authority = /** @class */ (function () {
6597
6598
  this.regionDiscovery = new RegionDiscovery(networkInterface);
6598
6599
  this.regionDiscoveryMetadata = { region_used: undefined, region_source: undefined, region_outcome: undefined };
6599
6600
  this.proxyUrl = proxyUrl || Constants.EMPTY_STRING;
6601
+ this.logger = logger;
6600
6602
  }
6601
6603
  Object.defineProperty(Authority.prototype, "authorityType", {
6602
6604
  // See above for AuthorityType
@@ -7023,36 +7025,50 @@ var Authority = /** @class */ (function () {
7023
7025
  */
7024
7026
  Authority.prototype.updateCloudDiscoveryMetadata = function (metadataEntity) {
7025
7027
  return __awaiter(this, void 0, void 0, function () {
7026
- var metadata, harcodedMetadata;
7028
+ var metadata, metadataEntityExpired, harcodedMetadata;
7027
7029
  return __generator(this, function (_a) {
7028
7030
  switch (_a.label) {
7029
7031
  case 0:
7032
+ this.logger.verbose("Attempting to get cloud discovery metadata in the config");
7033
+ this.logger.verbosePii("Known Authorities: " + (this.authorityOptions.knownAuthorities || Constants.NOT_APPLICABLE));
7034
+ this.logger.verbosePii("Authority Metadata: " + (this.authorityOptions.authorityMetadata || Constants.NOT_APPLICABLE));
7035
+ this.logger.verbosePii("Canonical Authority: " + (metadataEntity.canonical_authority || Constants.NOT_APPLICABLE));
7030
7036
  metadata = this.getCloudDiscoveryMetadataFromConfig();
7031
7037
  if (metadata) {
7038
+ this.logger.verbose("Found cloud discovery metadata in the config.");
7032
7039
  metadataEntity.updateCloudDiscoveryMetadata(metadata, false);
7033
7040
  return [2 /*return*/, AuthorityMetadataSource.CONFIG];
7034
7041
  }
7035
- // If The cached metadata came from config but that config was not passed to this instance, we must go to the network
7036
- if (this.isAuthoritySameType(metadataEntity) && metadataEntity.aliasesFromNetwork && !metadataEntity.isExpired()) {
7042
+ // If the cached metadata came from config but that config was not passed to this instance, we must go to the network
7043
+ this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the cache.");
7044
+ metadataEntityExpired = metadataEntity.isExpired();
7045
+ if (this.isAuthoritySameType(metadataEntity) && metadataEntity.aliasesFromNetwork && !metadataEntityExpired) {
7046
+ this.logger.verbose("Found metadata in the cache.");
7037
7047
  // No need to update
7038
7048
  return [2 /*return*/, AuthorityMetadataSource.CACHE];
7039
7049
  }
7040
- harcodedMetadata = this.getCloudDiscoveryMetadataFromHarcodedValues();
7050
+ else if (metadataEntityExpired) {
7051
+ this.logger.verbose("The metadata entity is expired.");
7052
+ }
7053
+ this.logger.verbose("Did not find cloud discovery metadata in the cache... Attempting to get cloud discovery metadata from the network.");
7041
7054
  return [4 /*yield*/, this.getCloudDiscoveryMetadataFromNetwork()];
7042
7055
  case 1:
7043
7056
  metadata = _a.sent();
7044
7057
  if (metadata) {
7058
+ this.logger.verbose("Found cloud discovery metadata from the network.");
7045
7059
  metadataEntity.updateCloudDiscoveryMetadata(metadata, true);
7046
7060
  return [2 /*return*/, AuthorityMetadataSource.NETWORK];
7047
7061
  }
7062
+ this.logger.verbose("Did not find cloud discovery metadata from the network... Attempting to get cloud discovery metadata from hardcoded values.");
7063
+ harcodedMetadata = this.getCloudDiscoveryMetadataFromHarcodedValues();
7048
7064
  if (harcodedMetadata && !this.options.skipAuthorityMetadataCache) {
7065
+ this.logger.verbose("Found cloud discovery metadata from hardcoded values.");
7049
7066
  metadataEntity.updateCloudDiscoveryMetadata(harcodedMetadata, false);
7050
7067
  return [2 /*return*/, AuthorityMetadataSource.HARDCODED_VALUES];
7051
7068
  }
7052
- else {
7053
- // Metadata could not be obtained from config, cache or network
7054
- throw ClientConfigurationError.createUntrustedAuthorityError();
7055
- }
7069
+ // Metadata could not be obtained from config, cache or network
7070
+ this.logger.verbose("Did not find cloud discovery metadata from hardcoded values... Metadata could not be obtained from config, cache, network or hardcoded value. Throwing Untrusted Authority Error.");
7071
+ throw ClientConfigurationError.createUntrustedAuthorityError();
7056
7072
  }
7057
7073
  });
7058
7074
  });
@@ -7063,19 +7079,28 @@ var Authority = /** @class */ (function () {
7063
7079
  Authority.prototype.getCloudDiscoveryMetadataFromConfig = function () {
7064
7080
  // Check if network response was provided in config
7065
7081
  if (this.authorityOptions.cloudDiscoveryMetadata) {
7082
+ this.logger.verbose("The cloud discovery metadata has been provided as a network response, in the config.");
7066
7083
  try {
7084
+ this.logger.verbose("Attempting to parse the cloud discovery metadata.");
7067
7085
  var parsedResponse = JSON.parse(this.authorityOptions.cloudDiscoveryMetadata);
7068
7086
  var metadata = Authority.getCloudDiscoveryMetadataFromNetworkResponse(parsedResponse.metadata, this.hostnameAndPort);
7087
+ this.logger.verbose("Parsed the cloud discovery metadata.");
7069
7088
  if (metadata) {
7089
+ this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata.");
7070
7090
  return metadata;
7071
7091
  }
7092
+ else {
7093
+ this.logger.verbose("There is no metadata attached to the parsed cloud discovery metadata.");
7094
+ }
7072
7095
  }
7073
7096
  catch (e) {
7097
+ this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error.");
7074
7098
  throw ClientConfigurationError.createInvalidCloudDiscoveryMetadataError();
7075
7099
  }
7076
7100
  }
7077
7101
  // If cloudDiscoveryMetadata is empty or does not contain the host, check knownAuthorities
7078
7102
  if (this.isInKnownAuthorities()) {
7103
+ this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host.");
7079
7104
  return Authority.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);
7080
7105
  }
7081
7106
  return null;
@@ -7249,7 +7274,7 @@ var Authority = /** @class */ (function () {
7249
7274
  return Authority;
7250
7275
  }());
7251
7276
 
7252
- /*! @azure/msal-common v8.0.0 2022-11-07 */
7277
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
7253
7278
 
7254
7279
  /*
7255
7280
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7268,13 +7293,13 @@ var AuthorityFactory = /** @class */ (function () {
7268
7293
  * @param networkClient
7269
7294
  * @param protocolMode
7270
7295
  */
7271
- AuthorityFactory.createDiscoveredInstance = function (authorityUri, networkClient, cacheManager, authorityOptions, proxyUrl) {
7296
+ AuthorityFactory.createDiscoveredInstance = function (authorityUri, networkClient, cacheManager, authorityOptions, logger, proxyUrl) {
7272
7297
  return __awaiter(this, void 0, void 0, function () {
7273
7298
  var acquireTokenAuthority, e_1;
7274
7299
  return __generator(this, function (_a) {
7275
7300
  switch (_a.label) {
7276
7301
  case 0:
7277
- acquireTokenAuthority = AuthorityFactory.createInstance(authorityUri, networkClient, cacheManager, authorityOptions, proxyUrl);
7302
+ acquireTokenAuthority = AuthorityFactory.createInstance(authorityUri, networkClient, cacheManager, authorityOptions, logger, proxyUrl);
7278
7303
  _a.label = 1;
7279
7304
  case 1:
7280
7305
  _a.trys.push([1, 3, , 4]);
@@ -7300,17 +7325,17 @@ var AuthorityFactory = /** @class */ (function () {
7300
7325
  * @param networkInterface
7301
7326
  * @param protocolMode
7302
7327
  */
7303
- AuthorityFactory.createInstance = function (authorityUrl, networkInterface, cacheManager, authorityOptions, proxyUrl) {
7328
+ AuthorityFactory.createInstance = function (authorityUrl, networkInterface, cacheManager, authorityOptions, logger, proxyUrl) {
7304
7329
  // Throw error if authority url is empty
7305
7330
  if (StringUtils.isEmpty(authorityUrl)) {
7306
7331
  throw ClientConfigurationError.createUrlEmptyError();
7307
7332
  }
7308
- return new Authority(authorityUrl, networkInterface, cacheManager, authorityOptions, proxyUrl);
7333
+ return new Authority(authorityUrl, networkInterface, cacheManager, authorityOptions, logger, proxyUrl);
7309
7334
  };
7310
7335
  return AuthorityFactory;
7311
7336
  }());
7312
7337
 
7313
- /*! @azure/msal-common v8.0.0 2022-11-07 */
7338
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
7314
7339
 
7315
7340
  /*
7316
7341
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7341,7 +7366,7 @@ var ServerTelemetryEntity = /** @class */ (function () {
7341
7366
  return ServerTelemetryEntity;
7342
7367
  }());
7343
7368
 
7344
- /*! @azure/msal-common v8.0.0 2022-11-07 */
7369
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
7345
7370
 
7346
7371
  /*
7347
7372
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7369,7 +7394,7 @@ var ThrottlingEntity = /** @class */ (function () {
7369
7394
  return ThrottlingEntity;
7370
7395
  }());
7371
7396
 
7372
- /*! @azure/msal-common v8.0.0 2022-11-07 */
7397
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
7373
7398
 
7374
7399
  /*
7375
7400
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7386,7 +7411,7 @@ var StubbedNetworkModule = {
7386
7411
  }
7387
7412
  };
7388
7413
 
7389
- /*! @azure/msal-common v8.0.0 2022-11-07 */
7414
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
7390
7415
 
7391
7416
  /*
7392
7417
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7431,7 +7456,7 @@ var JoseHeaderError = /** @class */ (function (_super) {
7431
7456
  return JoseHeaderError;
7432
7457
  }(AuthError));
7433
7458
 
7434
- /*! @azure/msal-common v8.0.0 2022-11-07 */
7459
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
7435
7460
 
7436
7461
  /*
7437
7462
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7471,7 +7496,7 @@ var JoseHeader = /** @class */ (function () {
7471
7496
  return JoseHeader;
7472
7497
  }());
7473
7498
 
7474
- /*! @azure/msal-common v8.0.0 2022-11-07 */
7499
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
7475
7500
 
7476
7501
  /*
7477
7502
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7530,7 +7555,7 @@ var AuthenticationHeaderParser = /** @class */ (function () {
7530
7555
  return AuthenticationHeaderParser;
7531
7556
  }());
7532
7557
 
7533
- /*! @azure/msal-common v8.0.0 2022-11-07 */
7558
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
7534
7559
 
7535
7560
  /*
7536
7561
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7692,7 +7717,7 @@ var ServerTelemetryManager = /** @class */ (function () {
7692
7717
  return ServerTelemetryManager;
7693
7718
  }());
7694
7719
 
7695
- /*! @azure/msal-common v8.0.0 2022-11-07 */
7720
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
7696
7721
 
7697
7722
  /*
7698
7723
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7987,7 +8012,7 @@ var PerformanceClient = /** @class */ (function () {
7987
8012
  return PerformanceClient;
7988
8013
  }());
7989
8014
 
7990
- /*! @azure/msal-common v8.0.0 2022-11-07 */
8015
+ /*! @azure/msal-common v9.0.0 2022-11-22 */
7991
8016
 
7992
8017
  /*
7993
8018
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -9862,7 +9887,7 @@ var DEFAULT_BROWSER_CACHE_MANAGER = function (clientId, logger) {
9862
9887
 
9863
9888
  /* eslint-disable header/header */
9864
9889
  var name = "@azure/msal-browser";
9865
- var version = "2.31.0";
9890
+ var version = "2.32.0";
9866
9891
 
9867
9892
  /*
9868
9893
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -10415,11 +10440,11 @@ var BaseInteractionClient = /** @class */ (function () {
10415
10440
  };
10416
10441
  if (!requestAuthority) return [3 /*break*/, 2];
10417
10442
  this.logger.verbose("Creating discovered authority with request authority");
10418
- return [4 /*yield*/, AuthorityFactory.createDiscoveredInstance(requestAuthority, this.config.system.networkClient, this.browserStorage, authorityOptions)];
10443
+ return [4 /*yield*/, AuthorityFactory.createDiscoveredInstance(requestAuthority, this.config.system.networkClient, this.browserStorage, authorityOptions, this.logger)];
10419
10444
  case 1: return [2 /*return*/, _a.sent()];
10420
10445
  case 2:
10421
10446
  this.logger.verbose("Creating discovered authority with configured authority");
10422
- return [4 /*yield*/, AuthorityFactory.createDiscoveredInstance(this.config.auth.authority, this.config.system.networkClient, this.browserStorage, authorityOptions)];
10447
+ return [4 /*yield*/, AuthorityFactory.createDiscoveredInstance(this.config.auth.authority, this.config.system.networkClient, this.browserStorage, authorityOptions, this.logger)];
10423
10448
  case 3: return [2 /*return*/, _a.sent()];
10424
10449
  }
10425
10450
  });
@@ -10648,7 +10673,7 @@ var StandardInteractionClient = /** @class */ (function (_super) {
10648
10673
  userAuthority = requestAuthority ? requestAuthority : this.config.auth.authority;
10649
10674
  builtAuthority = Authority.generateAuthority(userAuthority, requestAzureCloudOptions || this.config.auth.azureCloudOptions);
10650
10675
  this.logger.verbose("Creating discovered authority with configured authority", this.correlationId);
10651
- return [4 /*yield*/, AuthorityFactory.createDiscoveredInstance(builtAuthority, this.config.system.networkClient, this.browserStorage, authorityOptions)
10676
+ return [4 /*yield*/, AuthorityFactory.createDiscoveredInstance(builtAuthority, this.config.system.networkClient, this.browserStorage, authorityOptions, this.logger)
10652
10677
  .then(function (result) {
10653
10678
  getAuthorityMeasurement.endMeasurement({
10654
10679
  success: true
@@ -10826,7 +10851,7 @@ var InteractionHandler = /** @class */ (function () {
10826
10851
  switch (_a.label) {
10827
10852
  case 0:
10828
10853
  cloudInstanceAuthorityUri = "https://" + cloudInstanceHostname + "/" + authority.tenant + "/";
10829
- return [4 /*yield*/, AuthorityFactory.createDiscoveredInstance(cloudInstanceAuthorityUri, networkModule, this.browserStorage, authority.options)];
10854
+ return [4 /*yield*/, AuthorityFactory.createDiscoveredInstance(cloudInstanceAuthorityUri, networkModule, this.browserStorage, authority.options, this.logger)];
10830
10855
  case 1:
10831
10856
  cloudInstanceAuthority = _a.sent();
10832
10857
  this.authModule.updateAuthority(cloudInstanceAuthority);
@@ -14945,7 +14970,7 @@ var TokenCache = /** @class */ (function () {
14945
14970
  authorityMetadata: this.config.auth.authorityMetadata,
14946
14971
  skipAuthorityMetadataCache: this.config.auth.skipAuthorityMetadataCache,
14947
14972
  };
14948
- authority = new Authority(authorityUrl, this.config.system.networkClient, this.storage, authorityOptions);
14973
+ authority = new Authority(authorityUrl, this.config.system.networkClient, this.storage, authorityOptions, this.logger);
14949
14974
  // "clientInfo" from options takes precedence over "clientInfo" in response
14950
14975
  if (options.clientInfo) {
14951
14976
  this.logger.trace("TokenCache - homeAccountId from options");