@azure/msal-browser 3.0.0 → 3.0.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 (190) hide show
  1. package/README.md +19 -59
  2. package/dist/app/{IPublicClientApplication.js → IPublicClientApplication.mjs} +3 -3
  3. package/dist/app/IPublicClientApplication.mjs.map +1 -0
  4. package/dist/app/{PublicClientApplication.js → PublicClientApplication.mjs} +5 -5
  5. package/dist/app/PublicClientApplication.mjs.map +1 -0
  6. package/dist/broker/nativeBroker/{NativeMessageHandler.js → NativeMessageHandler.mjs} +5 -5
  7. package/dist/broker/nativeBroker/NativeMessageHandler.mjs.map +1 -0
  8. package/dist/cache/{AsyncMemoryStorage.js → AsyncMemoryStorage.mjs} +5 -5
  9. package/dist/cache/AsyncMemoryStorage.mjs.map +1 -0
  10. package/dist/cache/{BrowserCacheManager.js → BrowserCacheManager.mjs} +7 -7
  11. package/dist/cache/BrowserCacheManager.mjs.map +1 -0
  12. package/dist/cache/{BrowserStorage.js → BrowserStorage.mjs} +4 -4
  13. package/dist/cache/BrowserStorage.mjs.map +1 -0
  14. package/dist/cache/{CryptoKeyStore.js → CryptoKeyStore.mjs} +3 -3
  15. package/dist/cache/CryptoKeyStore.mjs.map +1 -0
  16. package/dist/cache/{DatabaseStorage.js → DatabaseStorage.mjs} +4 -4
  17. package/dist/cache/DatabaseStorage.mjs.map +1 -0
  18. package/dist/cache/{MemoryStorage.js → MemoryStorage.mjs} +2 -2
  19. package/dist/cache/MemoryStorage.mjs.map +1 -0
  20. package/dist/cache/{TokenCache.js → TokenCache.mjs} +3 -3
  21. package/dist/cache/TokenCache.mjs.map +1 -0
  22. package/dist/config/{Configuration.js → Configuration.mjs} +6 -6
  23. package/dist/config/Configuration.mjs.map +1 -0
  24. package/dist/controllers/{ControllerFactory.js → ControllerFactory.mjs} +7 -7
  25. package/dist/controllers/ControllerFactory.mjs.map +1 -0
  26. package/dist/controllers/{StandardController.js → StandardController.mjs} +20 -20
  27. package/dist/controllers/StandardController.mjs.map +1 -0
  28. package/dist/crypto/{BrowserCrypto.js → BrowserCrypto.mjs} +5 -5
  29. package/dist/crypto/BrowserCrypto.mjs.map +1 -0
  30. package/dist/crypto/{CryptoOps.js → CryptoOps.mjs} +10 -10
  31. package/dist/crypto/CryptoOps.mjs.map +1 -0
  32. package/dist/crypto/{GuidGenerator.js → GuidGenerator.mjs} +3 -3
  33. package/dist/crypto/GuidGenerator.mjs.map +1 -0
  34. package/dist/crypto/{ModernBrowserCrypto.js → ModernBrowserCrypto.mjs} +3 -3
  35. package/dist/crypto/ModernBrowserCrypto.mjs.map +1 -0
  36. package/dist/crypto/{PkceGenerator.js → PkceGenerator.mjs} +4 -4
  37. package/dist/crypto/PkceGenerator.mjs.map +1 -0
  38. package/dist/crypto/{SignedHttpRequest.js → SignedHttpRequest.mjs} +4 -4
  39. package/dist/crypto/SignedHttpRequest.mjs.map +1 -0
  40. package/dist/encode/{Base64Decode.js → Base64Decode.mjs} +3 -3
  41. package/dist/encode/Base64Decode.mjs.map +1 -0
  42. package/dist/encode/{Base64Encode.js → Base64Encode.mjs} +3 -3
  43. package/dist/encode/Base64Encode.mjs.map +1 -0
  44. package/dist/error/{BrowserAuthError.js → BrowserAuthError.mjs} +2 -2
  45. package/dist/error/BrowserAuthError.mjs.map +1 -0
  46. package/dist/error/{BrowserConfigurationAuthError.js → BrowserConfigurationAuthError.mjs} +2 -2
  47. package/dist/error/BrowserConfigurationAuthError.mjs.map +1 -0
  48. package/dist/error/{NativeAuthError.js → NativeAuthError.mjs} +3 -3
  49. package/dist/error/NativeAuthError.mjs.map +1 -0
  50. package/dist/event/{EventHandler.js → EventHandler.mjs} +3 -3
  51. package/dist/event/EventHandler.mjs.map +1 -0
  52. package/dist/event/{EventMessage.js → EventMessage.mjs} +4 -4
  53. package/dist/event/EventMessage.mjs.map +1 -0
  54. package/dist/event/{EventType.js → EventType.mjs} +2 -2
  55. package/dist/event/EventType.mjs.map +1 -0
  56. package/dist/{index.js → index.mjs} +17 -17
  57. package/dist/index.mjs.map +1 -0
  58. package/dist/interaction_client/{BaseInteractionClient.js → BaseInteractionClient.mjs} +5 -5
  59. package/dist/interaction_client/BaseInteractionClient.mjs.map +1 -0
  60. package/dist/interaction_client/{HybridSpaAuthorizationCodeClient.js → HybridSpaAuthorizationCodeClient.mjs} +2 -2
  61. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs.map +1 -0
  62. package/dist/interaction_client/NativeInteractionClient.d.ts +6 -0
  63. package/dist/interaction_client/NativeInteractionClient.d.ts.map +1 -1
  64. package/dist/interaction_client/{NativeInteractionClient.js → NativeInteractionClient.mjs} +39 -9
  65. package/dist/interaction_client/NativeInteractionClient.mjs.map +1 -0
  66. package/dist/interaction_client/{PopupClient.js → PopupClient.mjs} +10 -10
  67. package/dist/interaction_client/PopupClient.mjs.map +1 -0
  68. package/dist/interaction_client/{RedirectClient.js → RedirectClient.mjs} +10 -10
  69. package/dist/interaction_client/RedirectClient.mjs.map +1 -0
  70. package/dist/interaction_client/{SilentAuthCodeClient.js → SilentAuthCodeClient.mjs} +7 -7
  71. package/dist/interaction_client/SilentAuthCodeClient.mjs.map +1 -0
  72. package/dist/interaction_client/{SilentCacheClient.js → SilentCacheClient.mjs} +5 -5
  73. package/dist/interaction_client/SilentCacheClient.mjs.map +1 -0
  74. package/dist/interaction_client/{SilentIframeClient.js → SilentIframeClient.mjs} +8 -8
  75. package/dist/interaction_client/SilentIframeClient.mjs.map +1 -0
  76. package/dist/interaction_client/{SilentRefreshClient.js → SilentRefreshClient.mjs} +5 -5
  77. package/dist/interaction_client/SilentRefreshClient.mjs.map +1 -0
  78. package/dist/interaction_client/{StandardInteractionClient.js → StandardInteractionClient.mjs} +8 -8
  79. package/dist/interaction_client/StandardInteractionClient.mjs.map +1 -0
  80. package/dist/interaction_handler/{InteractionHandler.js → InteractionHandler.mjs} +4 -4
  81. package/dist/interaction_handler/InteractionHandler.mjs.map +1 -0
  82. package/dist/interaction_handler/{RedirectHandler.js → RedirectHandler.mjs} +5 -5
  83. package/dist/interaction_handler/RedirectHandler.mjs.map +1 -0
  84. package/dist/interaction_handler/{SilentHandler.js → SilentHandler.mjs} +5 -5
  85. package/dist/interaction_handler/SilentHandler.mjs.map +1 -0
  86. package/dist/{internals.js → internals.mjs} +16 -16
  87. package/dist/internals.mjs.map +1 -0
  88. package/dist/navigation/{NavigationClient.js → NavigationClient.mjs} +2 -2
  89. package/dist/navigation/NavigationClient.mjs.map +1 -0
  90. package/dist/network/{FetchClient.js → FetchClient.mjs} +4 -4
  91. package/dist/network/FetchClient.mjs.map +1 -0
  92. package/dist/network/{XhrClient.js → XhrClient.mjs} +4 -4
  93. package/dist/network/XhrClient.mjs.map +1 -0
  94. package/dist/operatingcontext/{BaseOperatingContext.js → BaseOperatingContext.mjs} +4 -4
  95. package/dist/operatingcontext/BaseOperatingContext.mjs.map +1 -0
  96. package/dist/operatingcontext/{StandardOperatingContext.js → StandardOperatingContext.mjs} +3 -3
  97. package/dist/operatingcontext/StandardOperatingContext.mjs.map +1 -0
  98. package/dist/operatingcontext/{TeamsAppOperatingContext.js → TeamsAppOperatingContext.mjs} +3 -3
  99. package/dist/operatingcontext/TeamsAppOperatingContext.mjs.map +1 -0
  100. package/dist/packageMetadata.d.ts +1 -1
  101. package/dist/packageMetadata.mjs +8 -0
  102. package/dist/packageMetadata.mjs.map +1 -0
  103. package/dist/request/PopupRequest.d.ts +3 -1
  104. package/dist/request/PopupRequest.d.ts.map +1 -1
  105. package/dist/request/RedirectRequest.d.ts +3 -1
  106. package/dist/request/RedirectRequest.d.ts.map +1 -1
  107. package/dist/request/SilentRequest.d.ts +2 -0
  108. package/dist/request/SilentRequest.d.ts.map +1 -1
  109. package/dist/request/SsoSilentRequest.d.ts +5 -2
  110. package/dist/request/SsoSilentRequest.d.ts.map +1 -1
  111. package/dist/telemetry/{BrowserPerformanceClient.js → BrowserPerformanceClient.mjs} +6 -6
  112. package/dist/telemetry/BrowserPerformanceClient.mjs.map +1 -0
  113. package/dist/telemetry/{BrowserPerformanceMeasurement.js → BrowserPerformanceMeasurement.mjs} +2 -2
  114. package/dist/telemetry/BrowserPerformanceMeasurement.mjs.map +1 -0
  115. package/dist/utils/{BrowserConstants.js → BrowserConstants.mjs} +2 -2
  116. package/dist/utils/BrowserConstants.mjs.map +1 -0
  117. package/dist/utils/{BrowserProtocolUtils.js → BrowserProtocolUtils.mjs} +2 -2
  118. package/dist/utils/BrowserProtocolUtils.mjs.map +1 -0
  119. package/dist/utils/{BrowserStringUtils.js → BrowserStringUtils.mjs} +2 -2
  120. package/dist/utils/BrowserStringUtils.mjs.map +1 -0
  121. package/dist/utils/{BrowserUtils.js → BrowserUtils.mjs} +6 -6
  122. package/dist/utils/BrowserUtils.mjs.map +1 -0
  123. package/dist/utils/{MathUtils.js → MathUtils.mjs} +2 -2
  124. package/dist/utils/MathUtils.mjs.map +1 -0
  125. package/lib/{msal-browser.cjs.js → msal-browser.cjs} +107 -67
  126. package/lib/msal-browser.cjs.map +1 -0
  127. package/lib/msal-browser.js +106 -66
  128. package/lib/msal-browser.js.map +1 -1
  129. package/lib/msal-browser.min.js +55 -55
  130. package/package.json +13 -14
  131. package/dist/app/IPublicClientApplication.js.map +0 -1
  132. package/dist/app/PublicClientApplication.js.map +0 -1
  133. package/dist/broker/nativeBroker/NativeMessageHandler.js.map +0 -1
  134. package/dist/cache/AsyncMemoryStorage.js.map +0 -1
  135. package/dist/cache/BrowserCacheManager.js.map +0 -1
  136. package/dist/cache/BrowserStorage.js.map +0 -1
  137. package/dist/cache/CryptoKeyStore.js.map +0 -1
  138. package/dist/cache/DatabaseStorage.js.map +0 -1
  139. package/dist/cache/MemoryStorage.js.map +0 -1
  140. package/dist/cache/TokenCache.js.map +0 -1
  141. package/dist/cache/entities/CacheRecord.d.ts +0 -6
  142. package/dist/cache/entities/CacheRecord.d.ts.map +0 -1
  143. package/dist/config/Configuration.js.map +0 -1
  144. package/dist/controllers/ControllerFactory.js.map +0 -1
  145. package/dist/controllers/StandardController.js.map +0 -1
  146. package/dist/crypto/BrowserCrypto.js.map +0 -1
  147. package/dist/crypto/CryptoOps.js.map +0 -1
  148. package/dist/crypto/GuidGenerator.js.map +0 -1
  149. package/dist/crypto/ModernBrowserCrypto.js.map +0 -1
  150. package/dist/crypto/PkceGenerator.js.map +0 -1
  151. package/dist/crypto/SignedHttpRequest.js.map +0 -1
  152. package/dist/encode/Base64Decode.js.map +0 -1
  153. package/dist/encode/Base64Encode.js.map +0 -1
  154. package/dist/error/BrowserAuthError.js.map +0 -1
  155. package/dist/error/BrowserConfigurationAuthError.js.map +0 -1
  156. package/dist/error/NativeAuthError.js.map +0 -1
  157. package/dist/event/EventHandler.js.map +0 -1
  158. package/dist/event/EventMessage.js.map +0 -1
  159. package/dist/event/EventType.js.map +0 -1
  160. package/dist/index.js.map +0 -1
  161. package/dist/interaction_client/BaseInteractionClient.js.map +0 -1
  162. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.js.map +0 -1
  163. package/dist/interaction_client/NativeInteractionClient.js.map +0 -1
  164. package/dist/interaction_client/PopupClient.js.map +0 -1
  165. package/dist/interaction_client/RedirectClient.js.map +0 -1
  166. package/dist/interaction_client/SilentAuthCodeClient.js.map +0 -1
  167. package/dist/interaction_client/SilentCacheClient.js.map +0 -1
  168. package/dist/interaction_client/SilentIframeClient.js.map +0 -1
  169. package/dist/interaction_client/SilentRefreshClient.js.map +0 -1
  170. package/dist/interaction_client/StandardInteractionClient.js.map +0 -1
  171. package/dist/interaction_handler/InteractionHandler.js.map +0 -1
  172. package/dist/interaction_handler/RedirectHandler.js.map +0 -1
  173. package/dist/interaction_handler/SilentHandler.js.map +0 -1
  174. package/dist/internals.js.map +0 -1
  175. package/dist/navigation/NavigationClient.js.map +0 -1
  176. package/dist/network/FetchClient.js.map +0 -1
  177. package/dist/network/XhrClient.js.map +0 -1
  178. package/dist/operatingcontext/BaseOperatingContext.js.map +0 -1
  179. package/dist/operatingcontext/StandardOperatingContext.js.map +0 -1
  180. package/dist/operatingcontext/TeamsAppOperatingContext.js.map +0 -1
  181. package/dist/packageMetadata.js +0 -8
  182. package/dist/packageMetadata.js.map +0 -1
  183. package/dist/telemetry/BrowserPerformanceClient.js.map +0 -1
  184. package/dist/telemetry/BrowserPerformanceMeasurement.js.map +0 -1
  185. package/dist/utils/BrowserConstants.js.map +0 -1
  186. package/dist/utils/BrowserProtocolUtils.js.map +0 -1
  187. package/dist/utils/BrowserStringUtils.js.map +0 -1
  188. package/dist/utils/BrowserUtils.js.map +0 -1
  189. package/dist/utils/MathUtils.js.map +0 -1
  190. package/lib/msal-browser.cjs.js.map +0 -1
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v3.0.0 2023-08-08 */
1
+ /*! @azure/msal-browser v3.0.1 2023-08-11 */
2
2
  'use strict';
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
@@ -6,7 +6,7 @@
6
6
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.msal = {}));
7
7
  })(this, (function (exports) { 'use strict';
8
8
 
9
- /*! @azure/msal-common v14.0.0 2023-08-08 */
9
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
10
10
  /*
11
11
  * Copyright (c) Microsoft Corporation. All rights reserved.
12
12
  * Licensed under the MIT License.
@@ -366,7 +366,7 @@
366
366
  Pop: "pop",
367
367
  };
368
368
 
369
- /*! @azure/msal-common v14.0.0 2023-08-08 */
369
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
370
370
 
371
371
  /*
372
372
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -420,7 +420,7 @@
420
420
  }
421
421
  }
422
422
 
423
- /*! @azure/msal-common v14.0.0 2023-08-08 */
423
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
424
424
 
425
425
  /*
426
426
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -465,7 +465,7 @@
465
465
  },
466
466
  };
467
467
 
468
- /*! @azure/msal-common v14.0.0 2023-08-08 */
468
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
469
469
 
470
470
  /*
471
471
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -987,7 +987,7 @@
987
987
  }
988
988
  }
989
989
 
990
- /*! @azure/msal-common v14.0.0 2023-08-08 */
990
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
991
991
 
992
992
  /*
993
993
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1114,7 +1114,7 @@
1114
1114
  }
1115
1115
  }
1116
1116
 
1117
- /*! @azure/msal-common v14.0.0 2023-08-08 */
1117
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
1118
1118
 
1119
1119
  /*
1120
1120
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1314,12 +1314,12 @@
1314
1314
  }
1315
1315
  }
1316
1316
 
1317
- /*! @azure/msal-common v14.0.0 2023-08-08 */
1317
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
1318
1318
  /* eslint-disable header/header */
1319
1319
  const name$1 = "@azure/msal-common";
1320
- const version$1 = "14.0.0";
1320
+ const version$1 = "14.0.1";
1321
1321
 
1322
- /*! @azure/msal-common v14.0.0 2023-08-08 */
1322
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
1323
1323
  /*
1324
1324
  * Copyright (c) Microsoft Corporation. All rights reserved.
1325
1325
  * Licensed under the MIT License.
@@ -1339,7 +1339,7 @@
1339
1339
  AzureUsGovernment: "https://login.microsoftonline.us",
1340
1340
  };
1341
1341
 
1342
- /*! @azure/msal-common v14.0.0 2023-08-08 */
1342
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
1343
1343
 
1344
1344
  /*
1345
1345
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1621,7 +1621,7 @@
1621
1621
  }
1622
1622
  }
1623
1623
 
1624
- /*! @azure/msal-common v14.0.0 2023-08-08 */
1624
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
1625
1625
 
1626
1626
  /*
1627
1627
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1821,7 +1821,7 @@
1821
1821
  }
1822
1822
  }
1823
1823
 
1824
- /*! @azure/msal-common v14.0.0 2023-08-08 */
1824
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
1825
1825
 
1826
1826
  /*
1827
1827
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1861,7 +1861,7 @@
1861
1861
  };
1862
1862
  }
1863
1863
 
1864
- /*! @azure/msal-common v14.0.0 2023-08-08 */
1864
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
1865
1865
  /*
1866
1866
  * Copyright (c) Microsoft Corporation. All rights reserved.
1867
1867
  * Licensed under the MIT License.
@@ -1876,7 +1876,7 @@
1876
1876
  Ciam: 3,
1877
1877
  };
1878
1878
 
1879
- /*! @azure/msal-common v14.0.0 2023-08-08 */
1879
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
1880
1880
  /*
1881
1881
  * Copyright (c) Microsoft Corporation. All rights reserved.
1882
1882
  * Licensed under the MIT License.
@@ -1889,7 +1889,7 @@
1889
1889
  OIDC: "OIDC",
1890
1890
  };
1891
1891
 
1892
- /*! @azure/msal-common v14.0.0 2023-08-08 */
1892
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
1893
1893
 
1894
1894
  /*
1895
1895
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2112,7 +2112,7 @@
2112
2112
  }
2113
2113
  }
2114
2114
 
2115
- /*! @azure/msal-common v14.0.0 2023-08-08 */
2115
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
2116
2116
 
2117
2117
  /*
2118
2118
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2163,7 +2163,7 @@
2163
2163
  }
2164
2164
  }
2165
2165
 
2166
- /*! @azure/msal-common v14.0.0 2023-08-08 */
2166
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
2167
2167
 
2168
2168
  /*
2169
2169
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2657,7 +2657,11 @@
2657
2657
  return null;
2658
2658
  }
2659
2659
  else if (numIdTokens > 1) {
2660
- throw ClientAuthError.createMultipleMatchingTokensInCacheError();
2660
+ this.commonLogger.info("CacheManager:getIdToken - Multiple id tokens found, clearing them");
2661
+ idTokens.forEach((idToken) => {
2662
+ this.removeIdToken(idToken.generateCredentialKey());
2663
+ });
2664
+ return null;
2661
2665
  }
2662
2666
  this.commonLogger.info("CacheManager:getIdToken - Returning id token");
2663
2667
  return idTokens[0];
@@ -2767,7 +2771,11 @@
2767
2771
  return null;
2768
2772
  }
2769
2773
  else if (numAccessTokens > 1) {
2770
- throw ClientAuthError.createMultipleMatchingTokensInCacheError();
2774
+ this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them");
2775
+ accessTokens.forEach((accessToken) => {
2776
+ this.removeAccessToken(accessToken.generateCredentialKey());
2777
+ });
2778
+ return null;
2771
2779
  }
2772
2780
  this.commonLogger.info("CacheManager:getAccessToken - Returning access token");
2773
2781
  return accessTokens[0];
@@ -3178,7 +3186,7 @@
3178
3186
  }
3179
3187
  }
3180
3188
 
3181
- /*! @azure/msal-common v14.0.0 2023-08-08 */
3189
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
3182
3190
 
3183
3191
  /*
3184
3192
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3280,7 +3288,7 @@
3280
3288
  return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
3281
3289
  }
3282
3290
 
3283
- /*! @azure/msal-common v14.0.0 2023-08-08 */
3291
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
3284
3292
 
3285
3293
  /*
3286
3294
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3297,7 +3305,7 @@
3297
3305
  }
3298
3306
  }
3299
3307
 
3300
- /*! @azure/msal-common v14.0.0 2023-08-08 */
3308
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
3301
3309
 
3302
3310
  /*
3303
3311
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3394,7 +3402,7 @@
3394
3402
  }
3395
3403
  }
3396
3404
 
3397
- /*! @azure/msal-common v14.0.0 2023-08-08 */
3405
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
3398
3406
 
3399
3407
  /*
3400
3408
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3430,7 +3438,7 @@
3430
3438
  }
3431
3439
  }
3432
3440
 
3433
- /*! @azure/msal-common v14.0.0 2023-08-08 */
3441
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
3434
3442
  /*
3435
3443
  * Copyright (c) Microsoft Corporation. All rights reserved.
3436
3444
  * Licensed under the MIT License.
@@ -3440,7 +3448,7 @@
3440
3448
  UPN: "UPN",
3441
3449
  };
3442
3450
 
3443
- /*! @azure/msal-common v14.0.0 2023-08-08 */
3451
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
3444
3452
 
3445
3453
  /*
3446
3454
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3525,7 +3533,7 @@
3525
3533
  }
3526
3534
  }
3527
3535
 
3528
- /*! @azure/msal-common v14.0.0 2023-08-08 */
3536
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
3529
3537
 
3530
3538
  /*
3531
3539
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3908,7 +3916,7 @@
3908
3916
  }
3909
3917
  }
3910
3918
 
3911
- /*! @azure/msal-common v14.0.0 2023-08-08 */
3919
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
3912
3920
 
3913
3921
  /*
3914
3922
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4003,7 +4011,7 @@
4003
4011
  }
4004
4012
  }
4005
4013
 
4006
- /*! @azure/msal-common v14.0.0 2023-08-08 */
4014
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
4007
4015
 
4008
4016
  /*
4009
4017
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4142,7 +4150,7 @@
4142
4150
  }
4143
4151
  }
4144
4152
 
4145
- /*! @azure/msal-common v14.0.0 2023-08-08 */
4153
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
4146
4154
 
4147
4155
  /*
4148
4156
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4201,7 +4209,7 @@
4201
4209
  }
4202
4210
  }
4203
4211
 
4204
- /*! @azure/msal-common v14.0.0 2023-08-08 */
4212
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
4205
4213
  /*
4206
4214
  * Copyright (c) Microsoft Corporation. All rights reserved.
4207
4215
  * Licensed under the MIT License.
@@ -4248,7 +4256,7 @@
4248
4256
  }
4249
4257
  }
4250
4258
 
4251
- /*! @azure/msal-common v14.0.0 2023-08-08 */
4259
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
4252
4260
 
4253
4261
  /*
4254
4262
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4362,7 +4370,7 @@
4362
4370
  }
4363
4371
  }
4364
4372
 
4365
- /*! @azure/msal-common v14.0.0 2023-08-08 */
4373
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
4366
4374
 
4367
4375
  /*
4368
4376
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4424,7 +4432,7 @@
4424
4432
  }
4425
4433
  }
4426
4434
 
4427
- /*! @azure/msal-common v14.0.0 2023-08-08 */
4435
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
4428
4436
 
4429
4437
  /*
4430
4438
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4505,7 +4513,7 @@
4505
4513
  }
4506
4514
  }
4507
4515
 
4508
- /*! @azure/msal-common v14.0.0 2023-08-08 */
4516
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
4509
4517
  /*
4510
4518
  * Copyright (c) Microsoft Corporation. All rights reserved.
4511
4519
  * Licensed under the MIT License.
@@ -4520,7 +4528,7 @@
4520
4528
  }
4521
4529
  }
4522
4530
 
4523
- /*! @azure/msal-common v14.0.0 2023-08-08 */
4531
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
4524
4532
 
4525
4533
  /*
4526
4534
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4594,7 +4602,7 @@
4594
4602
  }
4595
4603
  }
4596
4604
 
4597
- /*! @azure/msal-common v14.0.0 2023-08-08 */
4605
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
4598
4606
 
4599
4607
  /*
4600
4608
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4878,7 +4886,7 @@
4878
4886
  }
4879
4887
  }
4880
4888
 
4881
- /*! @azure/msal-common v14.0.0 2023-08-08 */
4889
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
4882
4890
  /*
4883
4891
  * Copyright (c) Microsoft Corporation. All rights reserved.
4884
4892
  * Licensed under the MIT License.
@@ -5106,7 +5114,7 @@
5106
5114
  "status",
5107
5115
  ]);
5108
5116
 
5109
- /*! @azure/msal-common v14.0.0 2023-08-08 */
5117
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
5110
5118
 
5111
5119
  /*
5112
5120
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5191,7 +5199,7 @@
5191
5199
  }
5192
5200
  }
5193
5201
 
5194
- /*! @azure/msal-common v14.0.0 2023-08-08 */
5202
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
5195
5203
 
5196
5204
  /*
5197
5205
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5260,7 +5268,7 @@
5260
5268
  }
5261
5269
  }
5262
5270
 
5263
- /*! @azure/msal-common v14.0.0 2023-08-08 */
5271
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
5264
5272
  /*
5265
5273
  * Copyright (c) Microsoft Corporation. All rights reserved.
5266
5274
  * Licensed under the MIT License.
@@ -5287,7 +5295,7 @@
5287
5295
  }
5288
5296
  }
5289
5297
 
5290
- /*! @azure/msal-common v14.0.0 2023-08-08 */
5298
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
5291
5299
 
5292
5300
  /*
5293
5301
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5581,7 +5589,7 @@
5581
5589
  }
5582
5590
  }
5583
5591
 
5584
- /*! @azure/msal-common v14.0.0 2023-08-08 */
5592
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
5585
5593
 
5586
5594
  /*
5587
5595
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5742,7 +5750,8 @@
5742
5750
  async createTokenRequestBody(request) {
5743
5751
  this.performanceClient?.addQueueMeasurement(PerformanceEvents.AuthClientCreateTokenRequestBody, request.correlationId);
5744
5752
  const parameterBuilder = new RequestParameterBuilder();
5745
- parameterBuilder.addClientId(this.config.authOptions.clientId);
5753
+ parameterBuilder.addClientId(request.tokenBodyParameters?.[AADServerParamKeys.CLIENT_ID] ||
5754
+ this.config.authOptions.clientId);
5746
5755
  /*
5747
5756
  * For hybrid spa flow, there will be a code but no verifier
5748
5757
  * In this scenario, don't include redirect uri as auth code will not be bound to redirect URI
@@ -5857,7 +5866,8 @@
5857
5866
  async createAuthCodeUrlQueryString(request) {
5858
5867
  this.performanceClient?.addQueueMeasurement(PerformanceEvents.AuthClientCreateQueryString, request.correlationId);
5859
5868
  const parameterBuilder = new RequestParameterBuilder();
5860
- parameterBuilder.addClientId(this.config.authOptions.clientId);
5869
+ parameterBuilder.addClientId(request.extraQueryParameters?.[AADServerParamKeys.CLIENT_ID] ||
5870
+ this.config.authOptions.clientId);
5861
5871
  const requestScopes = [
5862
5872
  ...(request.scopes || []),
5863
5873
  ...(request.extraScopesToConsent || []),
@@ -6019,7 +6029,7 @@
6019
6029
  }
6020
6030
  }
6021
6031
 
6022
- /*! @azure/msal-common v14.0.0 2023-08-08 */
6032
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
6023
6033
 
6024
6034
  /*
6025
6035
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6261,7 +6271,7 @@
6261
6271
  }
6262
6272
  }
6263
6273
 
6264
- /*! @azure/msal-common v14.0.0 2023-08-08 */
6274
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
6265
6275
 
6266
6276
  /*
6267
6277
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6364,7 +6374,7 @@
6364
6374
  }
6365
6375
  }
6366
6376
 
6367
- /*! @azure/msal-common v14.0.0 2023-08-08 */
6377
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
6368
6378
  /*
6369
6379
  * Copyright (c) Microsoft Corporation. All rights reserved.
6370
6380
  * Licensed under the MIT License.
@@ -6376,7 +6386,7 @@
6376
6386
  response.hasOwnProperty("jwks_uri"));
6377
6387
  }
6378
6388
 
6379
- /*! @azure/msal-common v14.0.0 2023-08-08 */
6389
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
6380
6390
  /*
6381
6391
  * Copyright (c) Microsoft Corporation. All rights reserved.
6382
6392
  * Licensed under the MIT License.
@@ -7262,7 +7272,7 @@
7262
7272
  }
7263
7273
  }
7264
7274
 
7265
- /*! @azure/msal-common v14.0.0 2023-08-08 */
7275
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
7266
7276
 
7267
7277
  /*
7268
7278
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7342,7 +7352,7 @@
7342
7352
  }
7343
7353
  }
7344
7354
 
7345
- /*! @azure/msal-common v14.0.0 2023-08-08 */
7355
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
7346
7356
  /*
7347
7357
  * Copyright (c) Microsoft Corporation. All rights reserved.
7348
7358
  * Licensed under the MIT License.
@@ -7352,7 +7362,7 @@
7352
7362
  response.hasOwnProperty("metadata"));
7353
7363
  }
7354
7364
 
7355
- /*! @azure/msal-common v14.0.0 2023-08-08 */
7365
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
7356
7366
  /*
7357
7367
  * Copyright (c) Microsoft Corporation. All rights reserved.
7358
7368
  * Licensed under the MIT License.
@@ -7362,7 +7372,7 @@
7362
7372
  response.hasOwnProperty("error_description"));
7363
7373
  }
7364
7374
 
7365
- /*! @azure/msal-common v14.0.0 2023-08-08 */
7375
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
7366
7376
 
7367
7377
  /*
7368
7378
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7473,7 +7483,7 @@
7473
7483
  },
7474
7484
  };
7475
7485
 
7476
- /*! @azure/msal-common v14.0.0 2023-08-08 */
7486
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
7477
7487
 
7478
7488
  /*
7479
7489
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8237,7 +8247,7 @@
8237
8247
  AADAuthorityConstants.ORGANIZATIONS,
8238
8248
  ]);
8239
8249
 
8240
- /*! @azure/msal-common v14.0.0 2023-08-08 */
8250
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
8241
8251
 
8242
8252
  /*
8243
8253
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8287,7 +8297,7 @@
8287
8297
  }
8288
8298
  }
8289
8299
 
8290
- /*! @azure/msal-common v14.0.0 2023-08-08 */
8300
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
8291
8301
 
8292
8302
  /*
8293
8303
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8317,7 +8327,7 @@
8317
8327
  }
8318
8328
  }
8319
8329
 
8320
- /*! @azure/msal-common v14.0.0 2023-08-08 */
8330
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
8321
8331
 
8322
8332
  /*
8323
8333
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8343,7 +8353,7 @@
8343
8353
  }
8344
8354
  }
8345
8355
 
8346
- /*! @azure/msal-common v14.0.0 2023-08-08 */
8356
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
8347
8357
 
8348
8358
  /*
8349
8359
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8360,7 +8370,7 @@
8360
8370
  },
8361
8371
  };
8362
8372
 
8363
- /*! @azure/msal-common v14.0.0 2023-08-08 */
8373
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
8364
8374
 
8365
8375
  /*
8366
8376
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8402,7 +8412,7 @@
8402
8412
  }
8403
8413
  }
8404
8414
 
8405
- /*! @azure/msal-common v14.0.0 2023-08-08 */
8415
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
8406
8416
 
8407
8417
  /*
8408
8418
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8441,7 +8451,7 @@
8441
8451
  }
8442
8452
  }
8443
8453
 
8444
- /*! @azure/msal-common v14.0.0 2023-08-08 */
8454
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
8445
8455
 
8446
8456
  /*
8447
8457
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8499,7 +8509,7 @@
8499
8509
  }
8500
8510
  }
8501
8511
 
8502
- /*! @azure/msal-common v14.0.0 2023-08-08 */
8512
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
8503
8513
 
8504
8514
  /*
8505
8515
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8698,7 +8708,7 @@
8698
8708
  }
8699
8709
  }
8700
8710
 
8701
- /*! @azure/msal-common v14.0.0 2023-08-08 */
8711
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
8702
8712
 
8703
8713
  /*
8704
8714
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -9109,7 +9119,7 @@
9109
9119
  }
9110
9120
  }
9111
9121
 
9112
- /*! @azure/msal-common v14.0.0 2023-08-08 */
9122
+ /*! @azure/msal-common v14.0.1 2023-08-11 */
9113
9123
 
9114
9124
  /*
9115
9125
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -11354,7 +11364,7 @@
11354
11364
 
11355
11365
  /* eslint-disable header/header */
11356
11366
  const name = "@azure/msal-browser";
11357
- const version = "3.0.0";
11367
+ const version = "3.0.1";
11358
11368
 
11359
11369
  /*
11360
11370
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -12578,6 +12588,10 @@
12578
12588
  * Copyright (c) Microsoft Corporation. All rights reserved.
12579
12589
  * Licensed under the MIT License.
12580
12590
  */
12591
+ const BrokerServerParamKeys = {
12592
+ BROKER_CLIENT_ID: "brk_client_id",
12593
+ BROKER_REDIRECT_URI: "brk_redirect_uri",
12594
+ };
12581
12595
  class NativeInteractionClient extends BaseInteractionClient {
12582
12596
  constructor(config, browserStorage, browserCrypto, logger, eventHandler, navigationClient, apiId, performanceClient, provider, accountId, nativeStorageImpl, correlationId) {
12583
12597
  super(config, browserStorage, browserCrypto, logger, eventHandler, navigationClient, performanceClient, provider, correlationId);
@@ -13069,10 +13083,14 @@
13069
13083
  extraParameters: {
13070
13084
  ...request.extraQueryParameters,
13071
13085
  ...request.tokenQueryParameters,
13072
- telemetry: NativeConstants.MATS_TELEMETRY,
13073
13086
  },
13074
13087
  extendedExpiryToken: false, // Make this configurable?
13075
13088
  };
13089
+ this.handleExtraBrokerParams(validatedRequest);
13090
+ validatedRequest.extraParameters =
13091
+ validatedRequest.extraParameters || {};
13092
+ validatedRequest.extraParameters.telemetry =
13093
+ NativeConstants.MATS_TELEMETRY;
13076
13094
  if (request.authenticationScheme === AuthenticationScheme.POP) {
13077
13095
  // add POP request type
13078
13096
  const shrParameters = {
@@ -13089,6 +13107,28 @@
13089
13107
  }
13090
13108
  return validatedRequest;
13091
13109
  }
13110
+ /**
13111
+ * Handles extra broker request parameters
13112
+ * @param request {NativeTokenRequest}
13113
+ * @private
13114
+ */
13115
+ handleExtraBrokerParams(request) {
13116
+ if (!request.extraParameters) {
13117
+ return;
13118
+ }
13119
+ if (request.extraParameters.hasOwnProperty(BrokerServerParamKeys.BROKER_CLIENT_ID) &&
13120
+ request.extraParameters.hasOwnProperty(BrokerServerParamKeys.BROKER_REDIRECT_URI) &&
13121
+ request.extraParameters.hasOwnProperty(AADServerParamKeys.CLIENT_ID)) {
13122
+ const child_client_id = request.extraParameters[AADServerParamKeys.CLIENT_ID];
13123
+ const child_redirect_uri = request.redirectUri;
13124
+ const brk_redirect_uri = request.extraParameters[BrokerServerParamKeys.BROKER_REDIRECT_URI];
13125
+ request.extraParameters = {
13126
+ child_client_id,
13127
+ child_redirect_uri,
13128
+ };
13129
+ request.redirectUri = brk_redirect_uri;
13130
+ }
13131
+ }
13092
13132
  }
13093
13133
 
13094
13134
  /*