@azure/msal-browser 2.32.0 → 2.32.1

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.d.ts +9 -0
  9. package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
  10. package/dist/cache/BrowserCacheManager.js +14 -1
  11. package/dist/cache/BrowserCacheManager.js.map +1 -1
  12. package/dist/cache/BrowserStorage.js +1 -1
  13. package/dist/cache/CryptoKeyStore.js +1 -1
  14. package/dist/cache/DatabaseStorage.js +1 -1
  15. package/dist/cache/MemoryStorage.js +1 -1
  16. package/dist/cache/TokenCache.js +1 -1
  17. package/dist/config/Configuration.js +1 -1
  18. package/dist/crypto/BrowserCrypto.js +1 -1
  19. package/dist/crypto/CryptoOps.js +1 -1
  20. package/dist/crypto/GuidGenerator.js +1 -1
  21. package/dist/crypto/ModernBrowserCrypto.js +1 -1
  22. package/dist/crypto/MsBrowserCrypto.js +1 -1
  23. package/dist/crypto/MsrBrowserCrypto.js +1 -1
  24. package/dist/crypto/PkceGenerator.js +1 -1
  25. package/dist/crypto/SignedHttpRequest.js +1 -1
  26. package/dist/encode/Base64Decode.js +1 -1
  27. package/dist/encode/Base64Encode.js +1 -1
  28. package/dist/error/BrowserAuthError.js +1 -1
  29. package/dist/error/BrowserConfigurationAuthError.js +1 -1
  30. package/dist/error/NativeAuthError.js +1 -1
  31. package/dist/event/EventHandler.js +1 -1
  32. package/dist/event/EventMessage.js +1 -1
  33. package/dist/event/EventType.js +1 -1
  34. package/dist/index.cjs.js +124 -73
  35. package/dist/index.cjs.js.map +1 -1
  36. package/dist/index.js +1 -1
  37. package/dist/interaction_client/BaseInteractionClient.js +1 -1
  38. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.js +1 -1
  39. package/dist/interaction_client/NativeInteractionClient.js +1 -1
  40. package/dist/interaction_client/PopupClient.js +1 -1
  41. package/dist/interaction_client/RedirectClient.js +1 -1
  42. package/dist/interaction_client/SilentAuthCodeClient.js +1 -1
  43. package/dist/interaction_client/SilentCacheClient.js +1 -1
  44. package/dist/interaction_client/SilentIframeClient.js +1 -1
  45. package/dist/interaction_client/SilentRefreshClient.js +1 -1
  46. package/dist/interaction_client/StandardInteractionClient.js +1 -1
  47. package/dist/interaction_handler/InteractionHandler.js +1 -1
  48. package/dist/interaction_handler/RedirectHandler.js +1 -1
  49. package/dist/interaction_handler/SilentHandler.js +1 -1
  50. package/dist/internals.js +1 -1
  51. package/dist/navigation/NavigationClient.js +1 -1
  52. package/dist/network/FetchClient.js +1 -1
  53. package/dist/network/XhrClient.js +1 -1
  54. package/dist/packageMetadata.d.ts +1 -1
  55. package/dist/packageMetadata.js +2 -2
  56. package/dist/packageMetadata.js.map +1 -1
  57. package/dist/telemetry/BrowserPerformanceClient.js +1 -1
  58. package/dist/telemetry/BrowserPerformanceMeasurement.js +1 -1
  59. package/dist/utils/BrowserConstants.d.ts +2 -1
  60. package/dist/utils/BrowserConstants.d.ts.map +1 -1
  61. package/dist/utils/BrowserConstants.js +2 -1
  62. package/dist/utils/BrowserConstants.js.map +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 +124 -73
  68. package/lib/msal-browser.js.map +1 -1
  69. package/lib/msal-browser.min.js +41 -40
  70. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v2.32.0 2022-11-22 */
1
+ /*! @azure/msal-browser v2.32.1 2022-12-07 */
2
2
  'use strict';
3
3
  import { AccountEntity, CacheManager } from '@azure/msal-common';
4
4
  import { EventType } from './EventType.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v2.32.0 2022-11-22 */
1
+ /*! @azure/msal-browser v2.32.1 2022-12-07 */
2
2
  'use strict';
3
3
  import { EventType } from './EventType.js';
4
4
  import { InteractionType, InteractionStatus } from '../utils/BrowserConstants.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v2.32.0 2022-11-22 */
1
+ /*! @azure/msal-browser v2.32.1 2022-12-07 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v2.32.0 2022-11-22 */
1
+ /*! @azure/msal-browser v2.32.1 2022-12-07 */
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 v9.0.0 2022-11-22 */
120
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
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 v9.0.0 2022-11-22 */
207
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
208
208
 
209
209
  /*
210
210
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -258,7 +258,8 @@ var Constants = {
258
258
  KNOWN_PUBLIC_CLOUDS: ["login.microsoftonline.com", "login.windows.net", "login.microsoft.com", "sts.windows.net"],
259
259
  TOKEN_RESPONSE_TYPE: "token",
260
260
  ID_TOKEN_RESPONSE_TYPE: "id_token",
261
- SHR_NONCE_VALIDITY: 240
261
+ SHR_NONCE_VALIDITY: 240,
262
+ INVALID_INSTANCE: "invalid_instance",
262
263
  };
263
264
  var OIDC_DEFAULT_SCOPES = [
264
265
  Constants.OPENID_SCOPE,
@@ -586,7 +587,7 @@ var JsonTypes;
586
587
  JsonTypes["Jwk"] = "JWK";
587
588
  })(JsonTypes || (JsonTypes = {}));
588
589
 
589
- /*! @azure/msal-common v9.0.0 2022-11-22 */
590
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
590
591
 
591
592
  /*
592
593
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -642,7 +643,7 @@ var AuthError = /** @class */ (function (_super) {
642
643
  return AuthError;
643
644
  }(Error));
644
645
 
645
- /*! @azure/msal-common v9.0.0 2022-11-22 */
646
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
646
647
 
647
648
  /*
648
649
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -717,7 +718,7 @@ var DEFAULT_CRYPTO_IMPLEMENTATION = {
717
718
  }
718
719
  };
719
720
 
720
- /*! @azure/msal-common v9.0.0 2022-11-22 */
721
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
721
722
 
722
723
  /*
723
724
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1212,7 +1213,7 @@ var ClientAuthError = /** @class */ (function (_super) {
1212
1213
  return ClientAuthError;
1213
1214
  }(AuthError));
1214
1215
 
1215
- /*! @azure/msal-common v9.0.0 2022-11-22 */
1216
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
1216
1217
 
1217
1218
  /*
1218
1219
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1337,7 +1338,7 @@ var StringUtils = /** @class */ (function () {
1337
1338
  return StringUtils;
1338
1339
  }());
1339
1340
 
1340
- /*! @azure/msal-common v9.0.0 2022-11-22 */
1341
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
1341
1342
 
1342
1343
  /*
1343
1344
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1517,12 +1518,12 @@ var Logger = /** @class */ (function () {
1517
1518
  return Logger;
1518
1519
  }());
1519
1520
 
1520
- /*! @azure/msal-common v9.0.0 2022-11-22 */
1521
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
1521
1522
  /* eslint-disable header/header */
1522
1523
  var name$1 = "@azure/msal-common";
1523
- var version$1 = "9.0.0";
1524
+ var version$1 = "9.0.1";
1524
1525
 
1525
- /*! @azure/msal-common v9.0.0 2022-11-22 */
1526
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
1526
1527
  /*
1527
1528
  * Copyright (c) Microsoft Corporation. All rights reserved.
1528
1529
  * Licensed under the MIT License.
@@ -1543,7 +1544,7 @@ exports.AzureCloudInstance = void 0;
1543
1544
  AzureCloudInstance["AzureUsGovernment"] = "https://login.microsoftonline.us";
1544
1545
  })(exports.AzureCloudInstance || (exports.AzureCloudInstance = {}));
1545
1546
 
1546
- /*! @azure/msal-common v9.0.0 2022-11-22 */
1547
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
1547
1548
 
1548
1549
  /*
1549
1550
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1702,7 +1703,7 @@ var CredentialEntity = /** @class */ (function () {
1702
1703
  return CredentialEntity;
1703
1704
  }());
1704
1705
 
1705
- /*! @azure/msal-common v9.0.0 2022-11-22 */
1706
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
1706
1707
 
1707
1708
  /*
1708
1709
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1957,7 +1958,7 @@ var ClientConfigurationError = /** @class */ (function (_super) {
1957
1958
  return ClientConfigurationError;
1958
1959
  }(ClientAuthError));
1959
1960
 
1960
- /*! @azure/msal-common v9.0.0 2022-11-22 */
1961
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
1961
1962
 
1962
1963
  /*
1963
1964
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2141,7 +2142,7 @@ var ScopeSet = /** @class */ (function () {
2141
2142
  return ScopeSet;
2142
2143
  }());
2143
2144
 
2144
- /*! @azure/msal-common v9.0.0 2022-11-22 */
2145
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
2145
2146
 
2146
2147
  /*
2147
2148
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2179,7 +2180,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
2179
2180
  };
2180
2181
  }
2181
2182
 
2182
- /*! @azure/msal-common v9.0.0 2022-11-22 */
2183
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
2183
2184
  /*
2184
2185
  * Copyright (c) Microsoft Corporation. All rights reserved.
2185
2186
  * Licensed under the MIT License.
@@ -2194,7 +2195,7 @@ var AuthorityType;
2194
2195
  AuthorityType[AuthorityType["Dsts"] = 2] = "Dsts";
2195
2196
  })(AuthorityType || (AuthorityType = {}));
2196
2197
 
2197
- /*! @azure/msal-common v9.0.0 2022-11-22 */
2198
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
2198
2199
 
2199
2200
  /*
2200
2201
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2433,7 +2434,7 @@ var AccountEntity = /** @class */ (function () {
2433
2434
  return AccountEntity;
2434
2435
  }());
2435
2436
 
2436
- /*! @azure/msal-common v9.0.0 2022-11-22 */
2437
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
2437
2438
 
2438
2439
  /*
2439
2440
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2485,7 +2486,7 @@ var AuthToken = /** @class */ (function () {
2485
2486
  return AuthToken;
2486
2487
  }());
2487
2488
 
2488
- /*! @azure/msal-common v9.0.0 2022-11-22 */
2489
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
2489
2490
 
2490
2491
  /*
2491
2492
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3364,7 +3365,7 @@ var DefaultStorageClass = /** @class */ (function (_super) {
3364
3365
  return DefaultStorageClass;
3365
3366
  }(CacheManager));
3366
3367
 
3367
- /*! @azure/msal-common v9.0.0 2022-11-22 */
3368
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
3368
3369
 
3369
3370
  /*
3370
3371
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3458,7 +3459,7 @@ function buildAuthOptions(authOptions) {
3458
3459
  return __assign({ clientCapabilities: [], azureCloudOptions: DEFAULT_AZURE_CLOUD_OPTIONS, skipAuthorityMetadataCache: false }, authOptions);
3459
3460
  }
3460
3461
 
3461
- /*! @azure/msal-common v9.0.0 2022-11-22 */
3462
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
3462
3463
 
3463
3464
  /*
3464
3465
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3478,7 +3479,7 @@ var ServerError = /** @class */ (function (_super) {
3478
3479
  return ServerError;
3479
3480
  }(AuthError));
3480
3481
 
3481
- /*! @azure/msal-common v9.0.0 2022-11-22 */
3482
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
3482
3483
 
3483
3484
  /*
3484
3485
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3574,7 +3575,7 @@ var ThrottlingUtils = /** @class */ (function () {
3574
3575
  return ThrottlingUtils;
3575
3576
  }());
3576
3577
 
3577
- /*! @azure/msal-common v9.0.0 2022-11-22 */
3578
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
3578
3579
 
3579
3580
  /*
3580
3581
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3623,7 +3624,7 @@ var NetworkManager = /** @class */ (function () {
3623
3624
  return NetworkManager;
3624
3625
  }());
3625
3626
 
3626
- /*! @azure/msal-common v9.0.0 2022-11-22 */
3627
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
3627
3628
  /*
3628
3629
  * Copyright (c) Microsoft Corporation. All rights reserved.
3629
3630
  * Licensed under the MIT License.
@@ -3634,7 +3635,7 @@ var CcsCredentialType;
3634
3635
  CcsCredentialType["UPN"] = "UPN";
3635
3636
  })(CcsCredentialType || (CcsCredentialType = {}));
3636
3637
 
3637
- /*! @azure/msal-common v9.0.0 2022-11-22 */
3638
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
3638
3639
 
3639
3640
  /*
3640
3641
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3725,7 +3726,7 @@ var BaseClient = /** @class */ (function () {
3725
3726
  return BaseClient;
3726
3727
  }());
3727
3728
 
3728
- /*! @azure/msal-common v9.0.0 2022-11-22 */
3729
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
3729
3730
 
3730
3731
  /*
3731
3732
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3811,7 +3812,7 @@ var RequestValidator = /** @class */ (function () {
3811
3812
  return RequestValidator;
3812
3813
  }());
3813
3814
 
3814
- /*! @azure/msal-common v9.0.0 2022-11-22 */
3815
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
3815
3816
 
3816
3817
  /*
3817
3818
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4189,7 +4190,7 @@ var RequestParameterBuilder = /** @class */ (function () {
4189
4190
  return RequestParameterBuilder;
4190
4191
  }());
4191
4192
 
4192
- /*! @azure/msal-common v9.0.0 2022-11-22 */
4193
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
4193
4194
 
4194
4195
  /*
4195
4196
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4253,7 +4254,7 @@ var IdTokenEntity = /** @class */ (function (_super) {
4253
4254
  return IdTokenEntity;
4254
4255
  }(CredentialEntity));
4255
4256
 
4256
- /*! @azure/msal-common v9.0.0 2022-11-22 */
4257
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
4257
4258
  /*
4258
4259
  * Copyright (c) Microsoft Corporation. All rights reserved.
4259
4260
  * Licensed under the MIT License.
@@ -4303,7 +4304,7 @@ var TimeUtils = /** @class */ (function () {
4303
4304
  return TimeUtils;
4304
4305
  }());
4305
4306
 
4306
- /*! @azure/msal-common v9.0.0 2022-11-22 */
4307
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
4307
4308
 
4308
4309
  /*
4309
4310
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4417,7 +4418,7 @@ var AccessTokenEntity = /** @class */ (function (_super) {
4417
4418
  return AccessTokenEntity;
4418
4419
  }(CredentialEntity));
4419
4420
 
4420
- /*! @azure/msal-common v9.0.0 2022-11-22 */
4421
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
4421
4422
 
4422
4423
  /*
4423
4424
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4484,7 +4485,7 @@ var RefreshTokenEntity = /** @class */ (function (_super) {
4484
4485
  return RefreshTokenEntity;
4485
4486
  }(CredentialEntity));
4486
4487
 
4487
- /*! @azure/msal-common v9.0.0 2022-11-22 */
4488
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
4488
4489
 
4489
4490
  /*
4490
4491
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4559,7 +4560,7 @@ var InteractionRequiredAuthError = /** @class */ (function (_super) {
4559
4560
  return InteractionRequiredAuthError;
4560
4561
  }(AuthError));
4561
4562
 
4562
- /*! @azure/msal-common v9.0.0 2022-11-22 */
4563
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
4563
4564
  /*
4564
4565
  * Copyright (c) Microsoft Corporation. All rights reserved.
4565
4566
  * Licensed under the MIT License.
@@ -4575,7 +4576,7 @@ var CacheRecord = /** @class */ (function () {
4575
4576
  return CacheRecord;
4576
4577
  }());
4577
4578
 
4578
- /*! @azure/msal-common v9.0.0 2022-11-22 */
4579
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
4579
4580
 
4580
4581
  /*
4581
4582
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4646,7 +4647,7 @@ var ProtocolUtils = /** @class */ (function () {
4646
4647
  return ProtocolUtils;
4647
4648
  }());
4648
4649
 
4649
- /*! @azure/msal-common v9.0.0 2022-11-22 */
4650
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
4650
4651
 
4651
4652
  /*
4652
4653
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4880,7 +4881,7 @@ var UrlString = /** @class */ (function () {
4880
4881
  return UrlString;
4881
4882
  }());
4882
4883
 
4883
- /*! @azure/msal-common v9.0.0 2022-11-22 */
4884
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
4884
4885
 
4885
4886
  /*
4886
4887
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4981,7 +4982,7 @@ var PopTokenGenerator = /** @class */ (function () {
4981
4982
  return PopTokenGenerator;
4982
4983
  }());
4983
4984
 
4984
- /*! @azure/msal-common v9.0.0 2022-11-22 */
4985
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
4985
4986
 
4986
4987
  /*
4987
4988
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5051,7 +5052,7 @@ var AppMetadataEntity = /** @class */ (function () {
5051
5052
  return AppMetadataEntity;
5052
5053
  }());
5053
5054
 
5054
- /*! @azure/msal-common v9.0.0 2022-11-22 */
5055
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
5055
5056
  /*
5056
5057
  * Copyright (c) Microsoft Corporation. All rights reserved.
5057
5058
  * Licensed under the MIT License.
@@ -5087,7 +5088,7 @@ var AppMetadataEntity = /** @class */ (function () {
5087
5088
  return TokenCacheContext;
5088
5089
  }());
5089
5090
 
5090
- /*! @azure/msal-common v9.0.0 2022-11-22 */
5091
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
5091
5092
 
5092
5093
  /*
5093
5094
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5367,7 +5368,7 @@ var ResponseHandler = /** @class */ (function () {
5367
5368
  return ResponseHandler;
5368
5369
  }());
5369
5370
 
5370
- /*! @azure/msal-common v9.0.0 2022-11-22 */
5371
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
5371
5372
 
5372
5373
  /*
5373
5374
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5820,7 +5821,7 @@ var AuthorizationCodeClient = /** @class */ (function (_super) {
5820
5821
  return AuthorizationCodeClient;
5821
5822
  }(BaseClient));
5822
5823
 
5823
- /*! @azure/msal-common v9.0.0 2022-11-22 */
5824
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
5824
5825
  /*
5825
5826
  * Copyright (c) Microsoft Corporation. All rights reserved.
5826
5827
  * Licensed under the MIT License.
@@ -5945,7 +5946,7 @@ var PerformanceEventStatus;
5945
5946
  PerformanceEventStatus[PerformanceEventStatus["Completed"] = 2] = "Completed";
5946
5947
  })(PerformanceEventStatus || (PerformanceEventStatus = {}));
5947
5948
 
5948
- /*! @azure/msal-common v9.0.0 2022-11-22 */
5949
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
5949
5950
 
5950
5951
  /*
5951
5952
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6210,7 +6211,7 @@ var RefreshTokenClient = /** @class */ (function (_super) {
6210
6211
  return RefreshTokenClient;
6211
6212
  }(BaseClient));
6212
6213
 
6213
- /*! @azure/msal-common v9.0.0 2022-11-22 */
6214
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
6214
6215
 
6215
6216
  /*
6216
6217
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6334,7 +6335,7 @@ var SilentFlowClient = /** @class */ (function (_super) {
6334
6335
  return SilentFlowClient;
6335
6336
  }(BaseClient));
6336
6337
 
6337
- /*! @azure/msal-common v9.0.0 2022-11-22 */
6338
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
6338
6339
  /*
6339
6340
  * Copyright (c) Microsoft Corporation. All rights reserved.
6340
6341
  * Licensed under the MIT License.
@@ -6346,7 +6347,7 @@ function isOpenIdConfigResponse(response) {
6346
6347
  response.hasOwnProperty("jwks_uri"));
6347
6348
  }
6348
6349
 
6349
- /*! @azure/msal-common v9.0.0 2022-11-22 */
6350
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
6350
6351
  /*
6351
6352
  * Copyright (c) Microsoft Corporation. All rights reserved.
6352
6353
  * Licensed under the MIT License.
@@ -6355,7 +6356,7 @@ var rawMetdataJSON = { "endpointMetadata": { "https://login.microsoftonline.com/
6355
6356
  var EndpointMetadata = rawMetdataJSON.endpointMetadata;
6356
6357
  var InstanceDiscoveryMetadata = rawMetdataJSON.instanceDiscoveryMetadata;
6357
6358
 
6358
- /*! @azure/msal-common v9.0.0 2022-11-22 */
6359
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
6359
6360
  /*
6360
6361
  * Copyright (c) Microsoft Corporation. All rights reserved.
6361
6362
  * Licensed under the MIT License.
@@ -6369,7 +6370,7 @@ exports.ProtocolMode = void 0;
6369
6370
  ProtocolMode["OIDC"] = "OIDC";
6370
6371
  })(exports.ProtocolMode || (exports.ProtocolMode = {}));
6371
6372
 
6372
- /*! @azure/msal-common v9.0.0 2022-11-22 */
6373
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
6373
6374
 
6374
6375
  /*
6375
6376
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6446,7 +6447,7 @@ var AuthorityMetadataEntity = /** @class */ (function () {
6446
6447
  return AuthorityMetadataEntity;
6447
6448
  }());
6448
6449
 
6449
- /*! @azure/msal-common v9.0.0 2022-11-22 */
6450
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
6450
6451
  /*
6451
6452
  * Copyright (c) Microsoft Corporation. All rights reserved.
6452
6453
  * Licensed under the MIT License.
@@ -6456,7 +6457,17 @@ function isCloudInstanceDiscoveryResponse(response) {
6456
6457
  response.hasOwnProperty("metadata"));
6457
6458
  }
6458
6459
 
6459
- /*! @azure/msal-common v9.0.0 2022-11-22 */
6460
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
6461
+ /*
6462
+ * Copyright (c) Microsoft Corporation. All rights reserved.
6463
+ * Licensed under the MIT License.
6464
+ */
6465
+ function isCloudInstanceDiscoveryErrorResponse(response) {
6466
+ return (response.hasOwnProperty("error") &&
6467
+ response.hasOwnProperty("error_description"));
6468
+ }
6469
+
6470
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
6460
6471
 
6461
6472
  /*
6462
6473
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6578,7 +6589,7 @@ var RegionDiscovery = /** @class */ (function () {
6578
6589
  return RegionDiscovery;
6579
6590
  }());
6580
6591
 
6581
- /*! @azure/msal-common v9.0.0 2022-11-22 */
6592
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
6582
6593
 
6583
6594
  /*
6584
6595
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7055,7 +7066,7 @@ var Authority = /** @class */ (function () {
7055
7066
  case 1:
7056
7067
  metadata = _a.sent();
7057
7068
  if (metadata) {
7058
- this.logger.verbose("Found cloud discovery metadata from the network.");
7069
+ this.logger.verbose("cloud discovery metadata was successfully returned from getCloudDiscoveryMetadataFromNetwork()");
7059
7070
  metadataEntity.updateCloudDiscoveryMetadata(metadata, true);
7060
7071
  return [2 /*return*/, AuthorityMetadataSource.NETWORK];
7061
7072
  }
@@ -7066,8 +7077,8 @@ var Authority = /** @class */ (function () {
7066
7077
  metadataEntity.updateCloudDiscoveryMetadata(harcodedMetadata, false);
7067
7078
  return [2 /*return*/, AuthorityMetadataSource.HARDCODED_VALUES];
7068
7079
  }
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.");
7080
+ // Metadata could not be obtained from the config, cache, network or hardcoded values
7081
+ this.logger.error("Did not find cloud discovery metadata from hardcoded values... Metadata could not be obtained from config, cache, network or hardcoded values. Throwing Untrusted Authority Error.");
7071
7082
  throw ClientConfigurationError.createUntrustedAuthorityError();
7072
7083
  }
7073
7084
  });
@@ -7112,7 +7123,7 @@ var Authority = /** @class */ (function () {
7112
7123
  */
7113
7124
  Authority.prototype.getCloudDiscoveryMetadataFromNetwork = function () {
7114
7125
  return __awaiter(this, void 0, void 0, function () {
7115
- var instanceDiscoveryEndpoint, options, match, response, metadata;
7126
+ var instanceDiscoveryEndpoint, options, match, response, typedResponseBody, metadata, error_1, typedError;
7116
7127
  return __generator(this, function (_a) {
7117
7128
  switch (_a.label) {
7118
7129
  case 0:
@@ -7128,21 +7139,47 @@ var Authority = /** @class */ (function () {
7128
7139
  return [4 /*yield*/, this.networkInterface.sendGetRequestAsync(instanceDiscoveryEndpoint, options)];
7129
7140
  case 2:
7130
7141
  response = _a.sent();
7131
- metadata = isCloudInstanceDiscoveryResponse(response.body)
7132
- ? response.body.metadata
7133
- : [];
7134
- if (metadata.length === 0) {
7135
- // If no metadata is returned, authority is untrusted
7142
+ typedResponseBody = void 0;
7143
+ metadata = void 0;
7144
+ if (isCloudInstanceDiscoveryResponse(response.body)) {
7145
+ typedResponseBody = response.body;
7146
+ metadata = typedResponseBody.metadata;
7147
+ this.logger.verbosePii("tenant_discovery_endpoint is: " + typedResponseBody.tenant_discovery_endpoint);
7148
+ }
7149
+ else if (isCloudInstanceDiscoveryErrorResponse(response.body)) {
7150
+ this.logger.warning("A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: " + response.status);
7151
+ typedResponseBody = response.body;
7152
+ if (typedResponseBody.error === Constants.INVALID_INSTANCE) {
7153
+ this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance.");
7154
+ return [2 /*return*/, null];
7155
+ }
7156
+ this.logger.warning("The CloudInstanceDiscoveryErrorResponse error is " + typedResponseBody.error);
7157
+ this.logger.warning("The CloudInstanceDiscoveryErrorResponse error description is " + typedResponseBody.error_description);
7158
+ this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []");
7159
+ metadata = [];
7160
+ }
7161
+ else {
7162
+ this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse");
7136
7163
  return [2 /*return*/, null];
7137
7164
  }
7165
+ this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request.");
7138
7166
  match = Authority.getCloudDiscoveryMetadataFromNetworkResponse(metadata, this.hostnameAndPort);
7139
7167
  return [3 /*break*/, 4];
7140
7168
  case 3:
7141
- _a.sent();
7169
+ error_1 = _a.sent();
7170
+ if (error_1 instanceof AuthError) {
7171
+ this.logger.error("There was a network error while attempting to get the cloud discovery instance metadata.\nError: " + error_1.errorCode + "\nError Description: " + error_1.errorMessage);
7172
+ }
7173
+ else {
7174
+ typedError = error_1;
7175
+ this.logger.error("A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.\nError: " + typedError.name + "\nError Description: " + typedError.message);
7176
+ }
7142
7177
  return [2 /*return*/, null];
7143
7178
  case 4:
7179
+ // Custom Domain scenario, host is trusted because Instance Discovery call succeeded
7144
7180
  if (!match) {
7145
- // Custom Domain scenario, host is trusted because Instance Discovery call succeeded
7181
+ this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request.");
7182
+ this.logger.verbose("Creating custom Authority for custom domain scenario.");
7146
7183
  match = Authority.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);
7147
7184
  }
7148
7185
  return [2 /*return*/, match];
@@ -7274,7 +7311,7 @@ var Authority = /** @class */ (function () {
7274
7311
  return Authority;
7275
7312
  }());
7276
7313
 
7277
- /*! @azure/msal-common v9.0.0 2022-11-22 */
7314
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
7278
7315
 
7279
7316
  /*
7280
7317
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7335,7 +7372,7 @@ var AuthorityFactory = /** @class */ (function () {
7335
7372
  return AuthorityFactory;
7336
7373
  }());
7337
7374
 
7338
- /*! @azure/msal-common v9.0.0 2022-11-22 */
7375
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
7339
7376
 
7340
7377
  /*
7341
7378
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7366,7 +7403,7 @@ var ServerTelemetryEntity = /** @class */ (function () {
7366
7403
  return ServerTelemetryEntity;
7367
7404
  }());
7368
7405
 
7369
- /*! @azure/msal-common v9.0.0 2022-11-22 */
7406
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
7370
7407
 
7371
7408
  /*
7372
7409
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7394,7 +7431,7 @@ var ThrottlingEntity = /** @class */ (function () {
7394
7431
  return ThrottlingEntity;
7395
7432
  }());
7396
7433
 
7397
- /*! @azure/msal-common v9.0.0 2022-11-22 */
7434
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
7398
7435
 
7399
7436
  /*
7400
7437
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7411,7 +7448,7 @@ var StubbedNetworkModule = {
7411
7448
  }
7412
7449
  };
7413
7450
 
7414
- /*! @azure/msal-common v9.0.0 2022-11-22 */
7451
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
7415
7452
 
7416
7453
  /*
7417
7454
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7456,7 +7493,7 @@ var JoseHeaderError = /** @class */ (function (_super) {
7456
7493
  return JoseHeaderError;
7457
7494
  }(AuthError));
7458
7495
 
7459
- /*! @azure/msal-common v9.0.0 2022-11-22 */
7496
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
7460
7497
 
7461
7498
  /*
7462
7499
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7496,7 +7533,7 @@ var JoseHeader = /** @class */ (function () {
7496
7533
  return JoseHeader;
7497
7534
  }());
7498
7535
 
7499
- /*! @azure/msal-common v9.0.0 2022-11-22 */
7536
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
7500
7537
 
7501
7538
  /*
7502
7539
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7555,7 +7592,7 @@ var AuthenticationHeaderParser = /** @class */ (function () {
7555
7592
  return AuthenticationHeaderParser;
7556
7593
  }());
7557
7594
 
7558
- /*! @azure/msal-common v9.0.0 2022-11-22 */
7595
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
7559
7596
 
7560
7597
  /*
7561
7598
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7717,7 +7754,7 @@ var ServerTelemetryManager = /** @class */ (function () {
7717
7754
  return ServerTelemetryManager;
7718
7755
  }());
7719
7756
 
7720
- /*! @azure/msal-common v9.0.0 2022-11-22 */
7757
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
7721
7758
 
7722
7759
  /*
7723
7760
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8012,7 +8049,7 @@ var PerformanceClient = /** @class */ (function () {
8012
8049
  return PerformanceClient;
8013
8050
  }());
8014
8051
 
8015
- /*! @azure/msal-common v9.0.0 2022-11-22 */
8052
+ /*! @azure/msal-common v9.0.1 2022-12-07 */
8016
8053
 
8017
8054
  /*
8018
8055
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8601,6 +8638,7 @@ var TemporaryCacheKeys;
8601
8638
  TemporaryCacheKeys["CCS_CREDENTIAL"] = "ccs.credential";
8602
8639
  TemporaryCacheKeys["CORRELATION_ID"] = "request.correlationId";
8603
8640
  TemporaryCacheKeys["NATIVE_REQUEST"] = "request.native";
8641
+ TemporaryCacheKeys["REDIRECT_CONTEXT"] = "request.redirect.context";
8604
8642
  })(TemporaryCacheKeys || (TemporaryCacheKeys = {}));
8605
8643
  /**
8606
8644
  * Cache keys stored in-memory
@@ -9874,6 +9912,19 @@ var BrowserCacheManager = /** @class */ (function (_super) {
9874
9912
  }
9875
9913
  return currentCacheKey;
9876
9914
  };
9915
+ /**
9916
+ * Returns application id as redirect context during AcquireTokenRedirect flow.
9917
+ */
9918
+ BrowserCacheManager.prototype.getRedirectRequestContext = function () {
9919
+ return this.getTemporaryCache(TemporaryCacheKeys.REDIRECT_CONTEXT, true);
9920
+ };
9921
+ /**
9922
+ * Sets application id as the redirect context during AcquireTokenRedirect flow.
9923
+ * @param value
9924
+ */
9925
+ BrowserCacheManager.prototype.setRedirectRequestContext = function (value) {
9926
+ this.setTemporaryCache(TemporaryCacheKeys.REDIRECT_CONTEXT, value, true);
9927
+ };
9877
9928
  return BrowserCacheManager;
9878
9929
  }(CacheManager));
9879
9930
  var DEFAULT_BROWSER_CACHE_MANAGER = function (clientId, logger) {
@@ -9887,7 +9938,7 @@ var DEFAULT_BROWSER_CACHE_MANAGER = function (clientId, logger) {
9887
9938
 
9888
9939
  /* eslint-disable header/header */
9889
9940
  var name = "@azure/msal-browser";
9890
- var version = "2.32.0";
9941
+ var version = "2.32.1";
9891
9942
 
9892
9943
  /*
9893
9944
  * Copyright (c) Microsoft Corporation. All rights reserved.