@azure/msal-browser 2.35.0 → 2.37.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 (122) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +213 -213
  3. package/dist/_virtual/_tslib.js +1 -1
  4. package/dist/app/ClientApplication.d.ts.map +1 -1
  5. package/dist/app/ClientApplication.js +2 -1
  6. package/dist/app/ClientApplication.js.map +1 -1
  7. package/dist/app/IPublicClientApplication.js +1 -1
  8. package/dist/app/IPublicClientApplication.js.map +1 -1
  9. package/dist/app/PublicClientApplication.js +1 -1
  10. package/dist/app/PublicClientApplication.js.map +1 -1
  11. package/dist/broker/nativeBroker/NativeMessageHandler.js +1 -1
  12. package/dist/broker/nativeBroker/NativeMessageHandler.js.map +1 -1
  13. package/dist/cache/AsyncMemoryStorage.js +1 -1
  14. package/dist/cache/AsyncMemoryStorage.js.map +1 -1
  15. package/dist/cache/BrowserCacheManager.d.ts +3 -2
  16. package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
  17. package/dist/cache/BrowserCacheManager.js +13 -9
  18. package/dist/cache/BrowserCacheManager.js.map +1 -1
  19. package/dist/cache/BrowserStorage.js +1 -1
  20. package/dist/cache/BrowserStorage.js.map +1 -1
  21. package/dist/cache/CryptoKeyStore.js +1 -1
  22. package/dist/cache/CryptoKeyStore.js.map +1 -1
  23. package/dist/cache/DatabaseStorage.js +1 -1
  24. package/dist/cache/DatabaseStorage.js.map +1 -1
  25. package/dist/cache/MemoryStorage.js +1 -1
  26. package/dist/cache/MemoryStorage.js.map +1 -1
  27. package/dist/cache/TokenCache.js +1 -1
  28. package/dist/cache/TokenCache.js.map +1 -1
  29. package/dist/config/Configuration.d.ts +5 -1
  30. package/dist/config/Configuration.d.ts.map +1 -1
  31. package/dist/config/Configuration.js +2 -1
  32. package/dist/config/Configuration.js.map +1 -1
  33. package/dist/crypto/BrowserCrypto.js +1 -1
  34. package/dist/crypto/BrowserCrypto.js.map +1 -1
  35. package/dist/crypto/CryptoOps.js +1 -1
  36. package/dist/crypto/CryptoOps.js.map +1 -1
  37. package/dist/crypto/GuidGenerator.js +1 -1
  38. package/dist/crypto/GuidGenerator.js.map +1 -1
  39. package/dist/crypto/ModernBrowserCrypto.js +1 -1
  40. package/dist/crypto/ModernBrowserCrypto.js.map +1 -1
  41. package/dist/crypto/MsBrowserCrypto.js +1 -1
  42. package/dist/crypto/MsBrowserCrypto.js.map +1 -1
  43. package/dist/crypto/MsrBrowserCrypto.js +1 -1
  44. package/dist/crypto/MsrBrowserCrypto.js.map +1 -1
  45. package/dist/crypto/PkceGenerator.js +1 -1
  46. package/dist/crypto/PkceGenerator.js.map +1 -1
  47. package/dist/crypto/SignedHttpRequest.js +1 -1
  48. package/dist/crypto/SignedHttpRequest.js.map +1 -1
  49. package/dist/encode/Base64Decode.js +1 -1
  50. package/dist/encode/Base64Decode.js.map +1 -1
  51. package/dist/encode/Base64Encode.js +1 -1
  52. package/dist/encode/Base64Encode.js.map +1 -1
  53. package/dist/error/BrowserAuthError.js +1 -1
  54. package/dist/error/BrowserAuthError.js.map +1 -1
  55. package/dist/error/BrowserConfigurationAuthError.js +1 -1
  56. package/dist/error/BrowserConfigurationAuthError.js.map +1 -1
  57. package/dist/error/NativeAuthError.js +1 -1
  58. package/dist/error/NativeAuthError.js.map +1 -1
  59. package/dist/event/EventHandler.js +1 -1
  60. package/dist/event/EventHandler.js.map +1 -1
  61. package/dist/event/EventMessage.js +1 -1
  62. package/dist/event/EventMessage.js.map +1 -1
  63. package/dist/event/EventType.js +1 -1
  64. package/dist/event/EventType.js.map +1 -1
  65. package/dist/index.cjs.js +116 -75
  66. package/dist/index.cjs.js.map +1 -1
  67. package/dist/index.js +1 -1
  68. package/dist/interaction_client/BaseInteractionClient.js +1 -1
  69. package/dist/interaction_client/BaseInteractionClient.js.map +1 -1
  70. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.js +1 -1
  71. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.js.map +1 -1
  72. package/dist/interaction_client/NativeInteractionClient.js +1 -1
  73. package/dist/interaction_client/NativeInteractionClient.js.map +1 -1
  74. package/dist/interaction_client/PopupClient.js +1 -1
  75. package/dist/interaction_client/PopupClient.js.map +1 -1
  76. package/dist/interaction_client/RedirectClient.js +1 -1
  77. package/dist/interaction_client/RedirectClient.js.map +1 -1
  78. package/dist/interaction_client/SilentAuthCodeClient.js +1 -1
  79. package/dist/interaction_client/SilentAuthCodeClient.js.map +1 -1
  80. package/dist/interaction_client/SilentCacheClient.js +1 -1
  81. package/dist/interaction_client/SilentCacheClient.js.map +1 -1
  82. package/dist/interaction_client/SilentIframeClient.js +1 -1
  83. package/dist/interaction_client/SilentIframeClient.js.map +1 -1
  84. package/dist/interaction_client/SilentRefreshClient.js +1 -1
  85. package/dist/interaction_client/SilentRefreshClient.js.map +1 -1
  86. package/dist/interaction_client/StandardInteractionClient.js +1 -1
  87. package/dist/interaction_client/StandardInteractionClient.js.map +1 -1
  88. package/dist/interaction_handler/InteractionHandler.js +1 -1
  89. package/dist/interaction_handler/InteractionHandler.js.map +1 -1
  90. package/dist/interaction_handler/RedirectHandler.js +1 -1
  91. package/dist/interaction_handler/RedirectHandler.js.map +1 -1
  92. package/dist/interaction_handler/SilentHandler.js +1 -1
  93. package/dist/interaction_handler/SilentHandler.js.map +1 -1
  94. package/dist/internals.js +1 -1
  95. package/dist/internals.js.map +1 -1
  96. package/dist/navigation/NavigationClient.js +1 -1
  97. package/dist/navigation/NavigationClient.js.map +1 -1
  98. package/dist/network/FetchClient.js +1 -1
  99. package/dist/network/FetchClient.js.map +1 -1
  100. package/dist/network/XhrClient.js +1 -1
  101. package/dist/network/XhrClient.js.map +1 -1
  102. package/dist/packageMetadata.d.ts +1 -1
  103. package/dist/packageMetadata.js +2 -2
  104. package/dist/packageMetadata.js.map +1 -1
  105. package/dist/telemetry/BrowserPerformanceClient.js +1 -1
  106. package/dist/telemetry/BrowserPerformanceClient.js.map +1 -1
  107. package/dist/telemetry/BrowserPerformanceMeasurement.js +1 -1
  108. package/dist/telemetry/BrowserPerformanceMeasurement.js.map +1 -1
  109. package/dist/utils/BrowserConstants.js +1 -1
  110. package/dist/utils/BrowserConstants.js.map +1 -1
  111. package/dist/utils/BrowserProtocolUtils.js +1 -1
  112. package/dist/utils/BrowserProtocolUtils.js.map +1 -1
  113. package/dist/utils/BrowserStringUtils.js +1 -1
  114. package/dist/utils/BrowserStringUtils.js.map +1 -1
  115. package/dist/utils/BrowserUtils.js +1 -1
  116. package/dist/utils/BrowserUtils.js.map +1 -1
  117. package/dist/utils/MathUtils.js +1 -1
  118. package/dist/utils/MathUtils.js.map +1 -1
  119. package/lib/msal-browser.js +116 -75
  120. package/lib/msal-browser.js.map +1 -1
  121. package/lib/msal-browser.min.js +30 -30
  122. package/package.json +95 -95
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v2.35.0 2023-04-03 */
1
+ /*! @azure/msal-browser v2.37.0 2023-05-01 */
2
2
  'use strict';
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
@@ -119,7 +119,7 @@
119
119
  return ar;
120
120
  }
121
121
 
122
- /*! @azure/msal-common v12.0.0 2023-04-03 */
122
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
123
123
  /*! *****************************************************************************
124
124
  Copyright (c) Microsoft Corporation.
125
125
 
@@ -206,7 +206,7 @@
206
206
  return r;
207
207
  }
208
208
 
209
- /*! @azure/msal-common v12.0.0 2023-04-03 */
209
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
210
210
 
211
211
  /*
212
212
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -226,6 +226,9 @@
226
226
  DSTS: "dstsv2",
227
227
  // Default AAD Instance Discovery Endpoint
228
228
  AAD_INSTANCE_DISCOVERY_ENDPT: "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=",
229
+ // CIAM URL
230
+ CIAM_AUTH_URL: ".ciamlogin.com",
231
+ AAD_TENANT_DOMAIN_SUFFIX: ".onmicrosoft.com",
229
232
  // Resource delimiter - used for certain cache entries
230
233
  RESOURCE_DELIM: "|",
231
234
  // Placeholder for non-existent account ids/objects
@@ -575,7 +578,7 @@
575
578
  JsonTypes["Pop"] = "pop";
576
579
  })(JsonTypes || (JsonTypes = {}));
577
580
 
578
- /*! @azure/msal-common v12.0.0 2023-04-03 */
581
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
579
582
 
580
583
  /*
581
584
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -631,7 +634,7 @@
631
634
  return AuthError;
632
635
  }(Error));
633
636
 
634
- /*! @azure/msal-common v12.0.0 2023-04-03 */
637
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
635
638
 
636
639
  /*
637
640
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -706,7 +709,7 @@
706
709
  }
707
710
  };
708
711
 
709
- /*! @azure/msal-common v12.0.0 2023-04-03 */
712
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
710
713
 
711
714
  /*
712
715
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1221,7 +1224,7 @@
1221
1224
  return ClientAuthError;
1222
1225
  }(AuthError));
1223
1226
 
1224
- /*! @azure/msal-common v12.0.0 2023-04-03 */
1227
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
1225
1228
 
1226
1229
  /*
1227
1230
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1346,7 +1349,7 @@
1346
1349
  return StringUtils;
1347
1350
  }());
1348
1351
 
1349
- /*! @azure/msal-common v12.0.0 2023-04-03 */
1352
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
1350
1353
 
1351
1354
  /*
1352
1355
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1536,12 +1539,12 @@
1536
1539
  return Logger;
1537
1540
  }());
1538
1541
 
1539
- /*! @azure/msal-common v12.0.0 2023-04-03 */
1542
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
1540
1543
  /* eslint-disable header/header */
1541
1544
  var name$1 = "@azure/msal-common";
1542
- var version$1 = "12.0.0";
1545
+ var version$1 = "13.0.0";
1543
1546
 
1544
- /*! @azure/msal-common v12.0.0 2023-04-03 */
1547
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
1545
1548
  /*
1546
1549
  * Copyright (c) Microsoft Corporation. All rights reserved.
1547
1550
  * Licensed under the MIT License.
@@ -1562,7 +1565,7 @@
1562
1565
  AzureCloudInstance["AzureUsGovernment"] = "https://login.microsoftonline.us";
1563
1566
  })(exports.AzureCloudInstance || (exports.AzureCloudInstance = {}));
1564
1567
 
1565
- /*! @azure/msal-common v12.0.0 2023-04-03 */
1568
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
1566
1569
 
1567
1570
  /*
1568
1571
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1817,7 +1820,7 @@
1817
1820
  return ClientConfigurationError;
1818
1821
  }(ClientAuthError));
1819
1822
 
1820
- /*! @azure/msal-common v12.0.0 2023-04-03 */
1823
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
1821
1824
 
1822
1825
  /*
1823
1826
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2016,7 +2019,7 @@
2016
2019
  return ScopeSet;
2017
2020
  }());
2018
2021
 
2019
- /*! @azure/msal-common v12.0.0 2023-04-03 */
2022
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
2020
2023
 
2021
2024
  /*
2022
2025
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2054,7 +2057,7 @@
2054
2057
  };
2055
2058
  }
2056
2059
 
2057
- /*! @azure/msal-common v12.0.0 2023-04-03 */
2060
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
2058
2061
  /*
2059
2062
  * Copyright (c) Microsoft Corporation. All rights reserved.
2060
2063
  * Licensed under the MIT License.
@@ -2067,9 +2070,10 @@
2067
2070
  AuthorityType[AuthorityType["Default"] = 0] = "Default";
2068
2071
  AuthorityType[AuthorityType["Adfs"] = 1] = "Adfs";
2069
2072
  AuthorityType[AuthorityType["Dsts"] = 2] = "Dsts";
2073
+ AuthorityType[AuthorityType["Ciam"] = 3] = "Ciam";
2070
2074
  })(AuthorityType || (AuthorityType = {}));
2071
2075
 
2072
- /*! @azure/msal-common v12.0.0 2023-04-03 */
2076
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
2073
2077
 
2074
2078
  /*
2075
2079
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2308,7 +2312,7 @@
2308
2312
  return AccountEntity;
2309
2313
  }());
2310
2314
 
2311
- /*! @azure/msal-common v12.0.0 2023-04-03 */
2315
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
2312
2316
 
2313
2317
  /*
2314
2318
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2360,7 +2364,7 @@
2360
2364
  return AuthToken;
2361
2365
  }());
2362
2366
 
2363
- /*! @azure/msal-common v12.0.0 2023-04-03 */
2367
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
2364
2368
 
2365
2369
  /*
2366
2370
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3408,7 +3412,7 @@
3408
3412
  return DefaultStorageClass;
3409
3413
  }(CacheManager));
3410
3414
 
3411
- /*! @azure/msal-common v12.0.0 2023-04-03 */
3415
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
3412
3416
 
3413
3417
  /*
3414
3418
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3501,7 +3505,7 @@
3501
3505
  return __assign({ clientCapabilities: [], azureCloudOptions: DEFAULT_AZURE_CLOUD_OPTIONS, skipAuthorityMetadataCache: false }, authOptions);
3502
3506
  }
3503
3507
 
3504
- /*! @azure/msal-common v12.0.0 2023-04-03 */
3508
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
3505
3509
 
3506
3510
  /*
3507
3511
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3521,7 +3525,7 @@
3521
3525
  return ServerError;
3522
3526
  }(AuthError));
3523
3527
 
3524
- /*! @azure/msal-common v12.0.0 2023-04-03 */
3528
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
3525
3529
 
3526
3530
  /*
3527
3531
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3617,7 +3621,7 @@
3617
3621
  return ThrottlingUtils;
3618
3622
  }());
3619
3623
 
3620
- /*! @azure/msal-common v12.0.0 2023-04-03 */
3624
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
3621
3625
 
3622
3626
  /*
3623
3627
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3666,7 +3670,7 @@
3666
3670
  return NetworkManager;
3667
3671
  }());
3668
3672
 
3669
- /*! @azure/msal-common v12.0.0 2023-04-03 */
3673
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
3670
3674
  /*
3671
3675
  * Copyright (c) Microsoft Corporation. All rights reserved.
3672
3676
  * Licensed under the MIT License.
@@ -3677,7 +3681,7 @@
3677
3681
  CcsCredentialType["UPN"] = "UPN";
3678
3682
  })(CcsCredentialType || (CcsCredentialType = {}));
3679
3683
 
3680
- /*! @azure/msal-common v12.0.0 2023-04-03 */
3684
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
3681
3685
 
3682
3686
  /*
3683
3687
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3768,7 +3772,7 @@
3768
3772
  return RequestValidator;
3769
3773
  }());
3770
3774
 
3771
- /*! @azure/msal-common v12.0.0 2023-04-03 */
3775
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
3772
3776
 
3773
3777
  /*
3774
3778
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4146,7 +4150,7 @@
4146
4150
  return RequestParameterBuilder;
4147
4151
  }());
4148
4152
 
4149
- /*! @azure/msal-common v12.0.0 2023-04-03 */
4153
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
4150
4154
 
4151
4155
  /*
4152
4156
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4248,7 +4252,7 @@
4248
4252
  return BaseClient;
4249
4253
  }());
4250
4254
 
4251
- /*! @azure/msal-common v12.0.0 2023-04-03 */
4255
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
4252
4256
 
4253
4257
  /*
4254
4258
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4386,7 +4390,7 @@
4386
4390
  return CredentialEntity;
4387
4391
  }());
4388
4392
 
4389
- /*! @azure/msal-common v12.0.0 2023-04-03 */
4393
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
4390
4394
 
4391
4395
  /*
4392
4396
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4450,7 +4454,7 @@
4450
4454
  return IdTokenEntity;
4451
4455
  }(CredentialEntity));
4452
4456
 
4453
- /*! @azure/msal-common v12.0.0 2023-04-03 */
4457
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
4454
4458
  /*
4455
4459
  * Copyright (c) Microsoft Corporation. All rights reserved.
4456
4460
  * Licensed under the MIT License.
@@ -4500,7 +4504,7 @@
4500
4504
  return TimeUtils;
4501
4505
  }());
4502
4506
 
4503
- /*! @azure/msal-common v12.0.0 2023-04-03 */
4507
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
4504
4508
 
4505
4509
  /*
4506
4510
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4614,7 +4618,7 @@
4614
4618
  return AccessTokenEntity;
4615
4619
  }(CredentialEntity));
4616
4620
 
4617
- /*! @azure/msal-common v12.0.0 2023-04-03 */
4621
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
4618
4622
 
4619
4623
  /*
4620
4624
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4681,7 +4685,7 @@
4681
4685
  return RefreshTokenEntity;
4682
4686
  }(CredentialEntity));
4683
4687
 
4684
- /*! @azure/msal-common v12.0.0 2023-04-03 */
4688
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
4685
4689
 
4686
4690
  /*
4687
4691
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4760,7 +4764,7 @@
4760
4764
  return InteractionRequiredAuthError;
4761
4765
  }(AuthError));
4762
4766
 
4763
- /*! @azure/msal-common v12.0.0 2023-04-03 */
4767
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
4764
4768
  /*
4765
4769
  * Copyright (c) Microsoft Corporation. All rights reserved.
4766
4770
  * Licensed under the MIT License.
@@ -4776,7 +4780,7 @@
4776
4780
  return CacheRecord;
4777
4781
  }());
4778
4782
 
4779
- /*! @azure/msal-common v12.0.0 2023-04-03 */
4783
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
4780
4784
 
4781
4785
  /*
4782
4786
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4847,7 +4851,7 @@
4847
4851
  return ProtocolUtils;
4848
4852
  }());
4849
4853
 
4850
- /*! @azure/msal-common v12.0.0 2023-04-03 */
4854
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
4851
4855
 
4852
4856
  /*
4853
4857
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5081,7 +5085,7 @@
5081
5085
  return UrlString;
5082
5086
  }());
5083
5087
 
5084
- /*! @azure/msal-common v12.0.0 2023-04-03 */
5088
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
5085
5089
  /*
5086
5090
  * Copyright (c) Microsoft Corporation. All rights reserved.
5087
5091
  * Licensed under the MIT License.
@@ -5310,7 +5314,7 @@
5310
5314
  "status",
5311
5315
  ]);
5312
5316
 
5313
- /*! @azure/msal-common v12.0.0 2023-04-03 */
5317
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
5314
5318
 
5315
5319
  /*
5316
5320
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5419,7 +5423,7 @@
5419
5423
  return PopTokenGenerator;
5420
5424
  }());
5421
5425
 
5422
- /*! @azure/msal-common v12.0.0 2023-04-03 */
5426
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
5423
5427
 
5424
5428
  /*
5425
5429
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5489,7 +5493,7 @@
5489
5493
  return AppMetadataEntity;
5490
5494
  }());
5491
5495
 
5492
- /*! @azure/msal-common v12.0.0 2023-04-03 */
5496
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
5493
5497
  /*
5494
5498
  * Copyright (c) Microsoft Corporation. All rights reserved.
5495
5499
  * Licensed under the MIT License.
@@ -5525,7 +5529,7 @@
5525
5529
  return TokenCacheContext;
5526
5530
  }());
5527
5531
 
5528
- /*! @azure/msal-common v12.0.0 2023-04-03 */
5532
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
5529
5533
 
5530
5534
  /*
5531
5535
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5812,7 +5816,7 @@
5812
5816
  return ResponseHandler;
5813
5817
  }());
5814
5818
 
5815
- /*! @azure/msal-common v12.0.0 2023-04-03 */
5819
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
5816
5820
 
5817
5821
  /*
5818
5822
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6290,7 +6294,7 @@
6290
6294
  return AuthorizationCodeClient;
6291
6295
  }(BaseClient));
6292
6296
 
6293
- /*! @azure/msal-common v12.0.0 2023-04-03 */
6297
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
6294
6298
 
6295
6299
  /*
6296
6300
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6564,7 +6568,7 @@
6564
6568
  return RefreshTokenClient;
6565
6569
  }(BaseClient));
6566
6570
 
6567
- /*! @azure/msal-common v12.0.0 2023-04-03 */
6571
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
6568
6572
 
6569
6573
  /*
6570
6574
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6688,7 +6692,7 @@
6688
6692
  return SilentFlowClient;
6689
6693
  }(BaseClient));
6690
6694
 
6691
- /*! @azure/msal-common v12.0.0 2023-04-03 */
6695
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
6692
6696
  /*
6693
6697
  * Copyright (c) Microsoft Corporation. All rights reserved.
6694
6698
  * Licensed under the MIT License.
@@ -6700,7 +6704,7 @@
6700
6704
  response.hasOwnProperty("jwks_uri"));
6701
6705
  }
6702
6706
 
6703
- /*! @azure/msal-common v12.0.0 2023-04-03 */
6707
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
6704
6708
  /*
6705
6709
  * Copyright (c) Microsoft Corporation. All rights reserved.
6706
6710
  * Licensed under the MIT License.
@@ -6709,7 +6713,7 @@
6709
6713
  var EndpointMetadata = rawMetdataJSON.endpointMetadata;
6710
6714
  var InstanceDiscoveryMetadata = rawMetdataJSON.instanceDiscoveryMetadata;
6711
6715
 
6712
- /*! @azure/msal-common v12.0.0 2023-04-03 */
6716
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
6713
6717
  /*
6714
6718
  * Copyright (c) Microsoft Corporation. All rights reserved.
6715
6719
  * Licensed under the MIT License.
@@ -6723,7 +6727,7 @@
6723
6727
  ProtocolMode["OIDC"] = "OIDC";
6724
6728
  })(exports.ProtocolMode || (exports.ProtocolMode = {}));
6725
6729
 
6726
- /*! @azure/msal-common v12.0.0 2023-04-03 */
6730
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
6727
6731
 
6728
6732
  /*
6729
6733
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6800,7 +6804,7 @@
6800
6804
  return AuthorityMetadataEntity;
6801
6805
  }());
6802
6806
 
6803
- /*! @azure/msal-common v12.0.0 2023-04-03 */
6807
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
6804
6808
  /*
6805
6809
  * Copyright (c) Microsoft Corporation. All rights reserved.
6806
6810
  * Licensed under the MIT License.
@@ -6810,7 +6814,7 @@
6810
6814
  response.hasOwnProperty("metadata"));
6811
6815
  }
6812
6816
 
6813
- /*! @azure/msal-common v12.0.0 2023-04-03 */
6817
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
6814
6818
  /*
6815
6819
  * Copyright (c) Microsoft Corporation. All rights reserved.
6816
6820
  * Licensed under the MIT License.
@@ -6820,7 +6824,7 @@
6820
6824
  response.hasOwnProperty("error_description"));
6821
6825
  }
6822
6826
 
6823
- /*! @azure/msal-common v12.0.0 2023-04-03 */
6827
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
6824
6828
 
6825
6829
  /*
6826
6830
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6952,7 +6956,7 @@
6952
6956
  return RegionDiscovery;
6953
6957
  }());
6954
6958
 
6955
- /*! @azure/msal-common v12.0.0 2023-04-03 */
6959
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
6956
6960
 
6957
6961
  /*
6958
6962
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6978,6 +6982,10 @@
6978
6982
  Object.defineProperty(Authority.prototype, "authorityType", {
6979
6983
  // See above for AuthorityType
6980
6984
  get: function () {
6985
+ // CIAM auth url pattern is being standardized as: <tenant>.ciamlogin.com
6986
+ if (this.canonicalAuthorityUrlComponents.HostNameAndPort.endsWith(Constants.CIAM_AUTH_URL)) {
6987
+ return AuthorityType.Ciam;
6988
+ }
6981
6989
  var pathSegments = this.canonicalAuthorityUrlComponents.PathSegments;
6982
6990
  if (pathSegments.length) {
6983
6991
  switch (pathSegments[0].toLowerCase()) {
@@ -7265,7 +7273,6 @@
7265
7273
  // No need to update
7266
7274
  return [2 /*return*/, AuthorityMetadataSource.CACHE];
7267
7275
  }
7268
- harcodedMetadata = this.getEndpointMetadataFromHardcodedValues();
7269
7276
  (_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.setPreQueueTime(exports.PerformanceEvents.AuthorityGetEndpointMetadataFromNetwork, this.correlationId);
7270
7277
  return [4 /*yield*/, this.getEndpointMetadataFromNetwork()];
7271
7278
  case 1:
@@ -7281,6 +7288,7 @@
7281
7288
  metadataEntity.updateEndpointMetadata(metadata, true);
7282
7289
  return [2 /*return*/, AuthorityMetadataSource.NETWORK];
7283
7290
  case 4:
7291
+ harcodedMetadata = this.getEndpointMetadataFromHardcodedValues();
7284
7292
  if (!(harcodedMetadata && !this.authorityOptions.skipAuthorityMetadataCache)) return [3 /*break*/, 7];
7285
7293
  if (!((_e = this.authorityOptions.azureRegionConfiguration) === null || _e === void 0 ? void 0 : _e.azureRegion)) return [3 /*break*/, 6];
7286
7294
  (_f = this.performanceClient) === null || _f === void 0 ? void 0 : _f.setPreQueueTime(exports.PerformanceEvents.AuthorityUpdateMetadataWithRegionalInformation, this.correlationId);
@@ -7405,8 +7413,8 @@
7405
7413
  /**
7406
7414
  * Updates the AuthorityMetadataEntity with new aliases, preferred_network and preferred_cache
7407
7415
  * and returns where the information was retrieved from
7408
- * @param cachedMetadata
7409
- * @param newMetadata
7416
+ * @param metadataEntity
7417
+ * @returns AuthorityMetadataSource
7410
7418
  */
7411
7419
  Authority.prototype.updateCloudDiscoveryMetadata = function (metadataEntity) {
7412
7420
  var _a, _b;
@@ -7416,6 +7424,7 @@
7416
7424
  switch (_c.label) {
7417
7425
  case 0:
7418
7426
  (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(exports.PerformanceEvents.AuthorityUpdateCloudDiscoveryMetadata, this.correlationId);
7427
+ // attempt to read metadata from the config
7419
7428
  this.logger.verbose("Attempting to get cloud discovery metadata in the config");
7420
7429
  this.logger.verbosePii("Known Authorities: " + (this.authorityOptions.knownAuthorities || Constants.NOT_APPLICABLE));
7421
7430
  this.logger.verbosePii("Authority Metadata: " + (this.authorityOptions.authorityMetadata || Constants.NOT_APPLICABLE));
@@ -7465,6 +7474,11 @@
7465
7474
  * Parse cloudDiscoveryMetadata config or check knownAuthorities
7466
7475
  */
7467
7476
  Authority.prototype.getCloudDiscoveryMetadataFromConfig = function () {
7477
+ // CIAM does not support cloud discovery metadata
7478
+ if (this.authorityType === AuthorityType.Ciam) {
7479
+ this.logger.verbose("CIAM authorities do not support cloud discovery metadata, generate the aliases from authority host.");
7480
+ return Authority.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);
7481
+ }
7468
7482
  // Check if network response was provided in config
7469
7483
  if (this.authorityOptions.cloudDiscoveryMetadata) {
7470
7484
  this.logger.verbose("The cloud discovery metadata has been provided as a network response, in the config.");
@@ -7684,10 +7698,30 @@
7684
7698
  }
7685
7699
  return metadata;
7686
7700
  };
7701
+ /**
7702
+ * Transform CIAM_AUTHORIY as per the below rules:
7703
+ * If no path segments found and it is a CIAM authority (hostname ends with .ciamlogin.com), then transform it
7704
+ *
7705
+ * NOTE: The transformation path should go away once STS supports CIAM with the format: `tenantIdorDomain.ciamlogin.com`
7706
+ * `ciamlogin.com` can also change in the future and we should accommodate the same
7707
+ *
7708
+ * @param authority
7709
+ */
7710
+ Authority.transformCIAMAuthority = function (authority) {
7711
+ var ciamAuthority = authority.endsWith(Constants.FORWARD_SLASH) ? authority : "" + authority + Constants.FORWARD_SLASH;
7712
+ var authorityUrl = new UrlString(authority);
7713
+ var authorityUrlComponents = authorityUrl.getUrlComponents();
7714
+ // check if transformation is needed
7715
+ if (authorityUrlComponents.PathSegments.length === 0 && (authorityUrlComponents.HostNameAndPort.endsWith(Constants.CIAM_AUTH_URL))) {
7716
+ var tenantIdOrDomain = authorityUrlComponents.HostNameAndPort.split(".")[0];
7717
+ ciamAuthority = "" + ciamAuthority + tenantIdOrDomain + Constants.AAD_TENANT_DOMAIN_SUFFIX;
7718
+ }
7719
+ return ciamAuthority;
7720
+ };
7687
7721
  return Authority;
7688
7722
  }());
7689
7723
 
7690
- /*! @azure/msal-common v12.0.0 2023-04-03 */
7724
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
7691
7725
 
7692
7726
  /*
7693
7727
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7708,12 +7742,13 @@
7708
7742
  */
7709
7743
  AuthorityFactory.createDiscoveredInstance = function (authorityUri, networkClient, cacheManager, authorityOptions, logger, performanceClient, correlationId) {
7710
7744
  return __awaiter(this, void 0, void 0, function () {
7711
- var acquireTokenAuthority, e_1;
7745
+ var authorityUriFinal, acquireTokenAuthority, e_1;
7712
7746
  return __generator(this, function (_a) {
7713
7747
  switch (_a.label) {
7714
7748
  case 0:
7715
7749
  performanceClient === null || performanceClient === void 0 ? void 0 : performanceClient.addQueueMeasurement(exports.PerformanceEvents.AuthorityFactoryCreateDiscoveredInstance, correlationId);
7716
- acquireTokenAuthority = AuthorityFactory.createInstance(authorityUri, networkClient, cacheManager, authorityOptions, logger, performanceClient, correlationId);
7750
+ authorityUriFinal = Authority.transformCIAMAuthority(authorityUri);
7751
+ acquireTokenAuthority = AuthorityFactory.createInstance(authorityUriFinal, networkClient, cacheManager, authorityOptions, logger, performanceClient, correlationId);
7717
7752
  _a.label = 1;
7718
7753
  case 1:
7719
7754
  _a.trys.push([1, 3, , 4]);
@@ -7750,7 +7785,7 @@
7750
7785
  return AuthorityFactory;
7751
7786
  }());
7752
7787
 
7753
- /*! @azure/msal-common v12.0.0 2023-04-03 */
7788
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
7754
7789
 
7755
7790
  /*
7756
7791
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7781,7 +7816,7 @@
7781
7816
  return ServerTelemetryEntity;
7782
7817
  }());
7783
7818
 
7784
- /*! @azure/msal-common v12.0.0 2023-04-03 */
7819
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
7785
7820
 
7786
7821
  /*
7787
7822
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7809,7 +7844,7 @@
7809
7844
  return ThrottlingEntity;
7810
7845
  }());
7811
7846
 
7812
- /*! @azure/msal-common v12.0.0 2023-04-03 */
7847
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
7813
7848
 
7814
7849
  /*
7815
7850
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7826,7 +7861,7 @@
7826
7861
  }
7827
7862
  };
7828
7863
 
7829
- /*! @azure/msal-common v12.0.0 2023-04-03 */
7864
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
7830
7865
 
7831
7866
  /*
7832
7867
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7871,7 +7906,7 @@
7871
7906
  return JoseHeaderError;
7872
7907
  }(AuthError));
7873
7908
 
7874
- /*! @azure/msal-common v12.0.0 2023-04-03 */
7909
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
7875
7910
 
7876
7911
  /*
7877
7912
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7911,7 +7946,7 @@
7911
7946
  return JoseHeader;
7912
7947
  }());
7913
7948
 
7914
- /*! @azure/msal-common v12.0.0 2023-04-03 */
7949
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
7915
7950
 
7916
7951
  /*
7917
7952
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7970,7 +8005,7 @@
7970
8005
  return AuthenticationHeaderParser;
7971
8006
  }());
7972
8007
 
7973
- /*! @azure/msal-common v12.0.0 2023-04-03 */
8008
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
7974
8009
 
7975
8010
  /*
7976
8011
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8132,7 +8167,7 @@
8132
8167
  return ServerTelemetryManager;
8133
8168
  }());
8134
8169
 
8135
- /*! @azure/msal-common v12.0.0 2023-04-03 */
8170
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
8136
8171
 
8137
8172
  /*
8138
8173
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8535,7 +8570,7 @@
8535
8570
  return PerformanceClient;
8536
8571
  }());
8537
8572
 
8538
- /*! @azure/msal-common v12.0.0 2023-04-03 */
8573
+ /*! @azure/msal-common v13.0.0 2023-05-01 */
8539
8574
 
8540
8575
  /*
8541
8576
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -9508,7 +9543,7 @@
9508
9543
  _this.logger = logger;
9509
9544
  _this.internalStorage = new MemoryStorage();
9510
9545
  _this.browserStorage = _this.setupBrowserStorage(_this.cacheConfig.cacheLocation);
9511
- _this.temporaryCacheStorage = _this.setupTemporaryCacheStorage(_this.cacheConfig.cacheLocation);
9546
+ _this.temporaryCacheStorage = _this.setupTemporaryCacheStorage(_this.cacheConfig.temporaryCacheLocation, _this.cacheConfig.cacheLocation);
9512
9547
  // Migrate cache entries from older versions of MSAL.
9513
9548
  if (cacheConfig.cacheMigrationEnabled) {
9514
9549
  _this.migrateCacheEntries();
@@ -9525,7 +9560,6 @@
9525
9560
  case exports.BrowserCacheLocation.LocalStorage:
9526
9561
  case exports.BrowserCacheLocation.SessionStorage:
9527
9562
  try {
9528
- // Temporary cache items will always be stored in session storage to mitigate problems caused by multiple tabs
9529
9563
  return new BrowserStorage(cacheLocation);
9530
9564
  }
9531
9565
  catch (e) {
@@ -9538,16 +9572,20 @@
9538
9572
  return new MemoryStorage();
9539
9573
  };
9540
9574
  /**
9541
- *
9575
+ * Returns a window storage class implementing the IWindowStorage interface that corresponds to the configured temporaryCacheLocation.
9576
+ * @param temporaryCacheLocation
9542
9577
  * @param cacheLocation
9543
9578
  */
9544
- BrowserCacheManager.prototype.setupTemporaryCacheStorage = function (cacheLocation) {
9579
+ BrowserCacheManager.prototype.setupTemporaryCacheStorage = function (temporaryCacheLocation, cacheLocation) {
9545
9580
  switch (cacheLocation) {
9546
9581
  case exports.BrowserCacheLocation.LocalStorage:
9547
9582
  case exports.BrowserCacheLocation.SessionStorage:
9548
9583
  try {
9549
- // Temporary cache items will always be stored in session storage to mitigate problems caused by multiple tabs
9550
- return new BrowserStorage(exports.BrowserCacheLocation.SessionStorage);
9584
+ /*
9585
+ * When users do not explicitly choose their own temporaryCacheLocation,
9586
+ * temporary cache items will always be stored in session storage to mitigate problems caused by multiple tabs
9587
+ */
9588
+ return new BrowserStorage(temporaryCacheLocation || exports.BrowserCacheLocation.SessionStorage);
9551
9589
  }
9552
9590
  catch (e) {
9553
9591
  this.logger.verbose(e);
@@ -9912,7 +9950,7 @@
9912
9950
  var accessRemoval = tokenKeys.accessToken.indexOf(key);
9913
9951
  if (accessRemoval > -1) {
9914
9952
  this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map");
9915
- tokenKeys.idToken.splice(accessRemoval, 1);
9953
+ tokenKeys.accessToken.splice(accessRemoval, 1);
9916
9954
  }
9917
9955
  else {
9918
9956
  this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");
@@ -9923,7 +9961,7 @@
9923
9961
  var refreshRemoval = tokenKeys.refreshToken.indexOf(key);
9924
9962
  if (refreshRemoval > -1) {
9925
9963
  this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map");
9926
- tokenKeys.idToken.splice(refreshRemoval, 1);
9964
+ tokenKeys.refreshToken.splice(refreshRemoval, 1);
9927
9965
  }
9928
9966
  else {
9929
9967
  this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken does not exist in map. Either it was previously removed or it was never added.");
@@ -10747,6 +10785,7 @@
10747
10785
  var DEFAULT_BROWSER_CACHE_MANAGER = function (clientId, logger) {
10748
10786
  var cacheOptions = {
10749
10787
  cacheLocation: exports.BrowserCacheLocation.MemoryStorage,
10788
+ temporaryCacheLocation: exports.BrowserCacheLocation.MemoryStorage,
10750
10789
  storeAuthStateInCookie: false,
10751
10790
  secureCookies: false,
10752
10791
  cacheMigrationEnabled: false
@@ -10756,7 +10795,7 @@
10756
10795
 
10757
10796
  /* eslint-disable header/header */
10758
10797
  var name = "@azure/msal-browser";
10759
- var version = "2.35.0";
10798
+ var version = "2.37.0";
10760
10799
 
10761
10800
  /*
10762
10801
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -13880,6 +13919,7 @@
13880
13919
  // Default cache options for browser
13881
13920
  var DEFAULT_CACHE_OPTIONS = {
13882
13921
  cacheLocation: exports.BrowserCacheLocation.SessionStorage,
13922
+ temporaryCacheLocation: exports.BrowserCacheLocation.SessionStorage,
13883
13923
  storeAuthStateInCookie: false,
13884
13924
  secureCookies: false,
13885
13925
  // Default cache migration to true if cache location is localStorage since entries are preserved across tabs/windows. Migration has little to no benefit in sessionStorage and memoryStorage
@@ -16565,6 +16605,7 @@
16565
16605
  // initialize in memory storage for native flows
16566
16606
  var nativeCacheOptions = {
16567
16607
  cacheLocation: exports.BrowserCacheLocation.MemoryStorage,
16608
+ temporaryCacheLocation: exports.BrowserCacheLocation.MemoryStorage,
16568
16609
  storeAuthStateInCookie: false,
16569
16610
  secureCookies: false,
16570
16611
  cacheMigrationEnabled: false