@azure/msal-browser 3.0.0 → 3.0.2

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 (204) hide show
  1. package/README.md +22 -62
  2. package/dist/app/IPublicClientApplication.d.ts +4 -2
  3. package/dist/app/IPublicClientApplication.d.ts.map +1 -1
  4. package/dist/app/{IPublicClientApplication.js → IPublicClientApplication.mjs} +3 -3
  5. package/dist/app/IPublicClientApplication.mjs.map +1 -0
  6. package/dist/app/PublicClientApplication.d.ts +5 -3
  7. package/dist/app/PublicClientApplication.d.ts.map +1 -1
  8. package/dist/app/{PublicClientApplication.js → PublicClientApplication.mjs} +7 -6
  9. package/dist/app/PublicClientApplication.mjs.map +1 -0
  10. package/dist/broker/nativeBroker/{NativeMessageHandler.js → NativeMessageHandler.mjs} +5 -5
  11. package/dist/broker/nativeBroker/NativeMessageHandler.mjs.map +1 -0
  12. package/dist/cache/{AsyncMemoryStorage.js → AsyncMemoryStorage.mjs} +5 -5
  13. package/dist/cache/AsyncMemoryStorage.mjs.map +1 -0
  14. package/dist/cache/BrowserCacheManager.d.ts +4 -1
  15. package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
  16. package/dist/cache/{BrowserCacheManager.js → BrowserCacheManager.mjs} +7 -7
  17. package/dist/cache/BrowserCacheManager.mjs.map +1 -0
  18. package/dist/cache/{BrowserStorage.js → BrowserStorage.mjs} +4 -4
  19. package/dist/cache/BrowserStorage.mjs.map +1 -0
  20. package/dist/cache/{CryptoKeyStore.js → CryptoKeyStore.mjs} +3 -3
  21. package/dist/cache/CryptoKeyStore.mjs.map +1 -0
  22. package/dist/cache/{DatabaseStorage.js → DatabaseStorage.mjs} +4 -4
  23. package/dist/cache/DatabaseStorage.mjs.map +1 -0
  24. package/dist/cache/{MemoryStorage.js → MemoryStorage.mjs} +2 -2
  25. package/dist/cache/MemoryStorage.mjs.map +1 -0
  26. package/dist/cache/{TokenCache.js → TokenCache.mjs} +3 -3
  27. package/dist/cache/TokenCache.mjs.map +1 -0
  28. package/dist/config/Configuration.d.ts +2 -0
  29. package/dist/config/Configuration.d.ts.map +1 -1
  30. package/dist/config/{Configuration.js → Configuration.mjs} +6 -6
  31. package/dist/config/Configuration.mjs.map +1 -0
  32. package/dist/controllers/{ControllerFactory.js → ControllerFactory.mjs} +7 -7
  33. package/dist/controllers/ControllerFactory.mjs.map +1 -0
  34. package/dist/controllers/IController.d.ts +19 -2
  35. package/dist/controllers/IController.d.ts.map +1 -1
  36. package/dist/controllers/StandardController.d.ts +1 -1
  37. package/dist/controllers/StandardController.d.ts.map +1 -1
  38. package/dist/controllers/{StandardController.js → StandardController.mjs} +20 -20
  39. package/dist/controllers/StandardController.mjs.map +1 -0
  40. package/dist/crypto/{BrowserCrypto.js → BrowserCrypto.mjs} +5 -5
  41. package/dist/crypto/BrowserCrypto.mjs.map +1 -0
  42. package/dist/crypto/{CryptoOps.js → CryptoOps.mjs} +10 -10
  43. package/dist/crypto/CryptoOps.mjs.map +1 -0
  44. package/dist/crypto/{GuidGenerator.js → GuidGenerator.mjs} +3 -3
  45. package/dist/crypto/GuidGenerator.mjs.map +1 -0
  46. package/dist/crypto/{ModernBrowserCrypto.js → ModernBrowserCrypto.mjs} +3 -3
  47. package/dist/crypto/ModernBrowserCrypto.mjs.map +1 -0
  48. package/dist/crypto/{PkceGenerator.js → PkceGenerator.mjs} +4 -4
  49. package/dist/crypto/PkceGenerator.mjs.map +1 -0
  50. package/dist/crypto/{SignedHttpRequest.js → SignedHttpRequest.mjs} +4 -4
  51. package/dist/crypto/SignedHttpRequest.mjs.map +1 -0
  52. package/dist/encode/{Base64Decode.js → Base64Decode.mjs} +3 -3
  53. package/dist/encode/Base64Decode.mjs.map +1 -0
  54. package/dist/encode/{Base64Encode.js → Base64Encode.mjs} +3 -3
  55. package/dist/encode/Base64Encode.mjs.map +1 -0
  56. package/dist/error/{BrowserAuthError.js → BrowserAuthError.mjs} +2 -2
  57. package/dist/error/BrowserAuthError.mjs.map +1 -0
  58. package/dist/error/{BrowserConfigurationAuthError.js → BrowserConfigurationAuthError.mjs} +2 -2
  59. package/dist/error/BrowserConfigurationAuthError.mjs.map +1 -0
  60. package/dist/error/{NativeAuthError.js → NativeAuthError.mjs} +3 -3
  61. package/dist/error/NativeAuthError.mjs.map +1 -0
  62. package/dist/event/{EventHandler.js → EventHandler.mjs} +3 -3
  63. package/dist/event/EventHandler.mjs.map +1 -0
  64. package/dist/event/{EventMessage.js → EventMessage.mjs} +4 -4
  65. package/dist/event/EventMessage.mjs.map +1 -0
  66. package/dist/event/{EventType.js → EventType.mjs} +2 -2
  67. package/dist/event/EventType.mjs.map +1 -0
  68. package/dist/index.d.ts +5 -2
  69. package/dist/index.d.ts.map +1 -1
  70. package/dist/{index.js → index.mjs} +17 -17
  71. package/dist/index.mjs.map +1 -0
  72. package/dist/interaction_client/{BaseInteractionClient.js → BaseInteractionClient.mjs} +5 -5
  73. package/dist/interaction_client/BaseInteractionClient.mjs.map +1 -0
  74. package/dist/interaction_client/{HybridSpaAuthorizationCodeClient.js → HybridSpaAuthorizationCodeClient.mjs} +2 -2
  75. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs.map +1 -0
  76. package/dist/interaction_client/NativeInteractionClient.d.ts +6 -0
  77. package/dist/interaction_client/NativeInteractionClient.d.ts.map +1 -1
  78. package/dist/interaction_client/{NativeInteractionClient.js → NativeInteractionClient.mjs} +39 -9
  79. package/dist/interaction_client/NativeInteractionClient.mjs.map +1 -0
  80. package/dist/interaction_client/{PopupClient.js → PopupClient.mjs} +10 -10
  81. package/dist/interaction_client/PopupClient.mjs.map +1 -0
  82. package/dist/interaction_client/{RedirectClient.js → RedirectClient.mjs} +10 -10
  83. package/dist/interaction_client/RedirectClient.mjs.map +1 -0
  84. package/dist/interaction_client/{SilentAuthCodeClient.js → SilentAuthCodeClient.mjs} +7 -7
  85. package/dist/interaction_client/SilentAuthCodeClient.mjs.map +1 -0
  86. package/dist/interaction_client/{SilentCacheClient.js → SilentCacheClient.mjs} +5 -5
  87. package/dist/interaction_client/SilentCacheClient.mjs.map +1 -0
  88. package/dist/interaction_client/{SilentIframeClient.js → SilentIframeClient.mjs} +8 -8
  89. package/dist/interaction_client/SilentIframeClient.mjs.map +1 -0
  90. package/dist/interaction_client/{SilentRefreshClient.js → SilentRefreshClient.mjs} +5 -5
  91. package/dist/interaction_client/SilentRefreshClient.mjs.map +1 -0
  92. package/dist/interaction_client/{StandardInteractionClient.js → StandardInteractionClient.mjs} +8 -8
  93. package/dist/interaction_client/StandardInteractionClient.mjs.map +1 -0
  94. package/dist/interaction_handler/{InteractionHandler.js → InteractionHandler.mjs} +4 -4
  95. package/dist/interaction_handler/InteractionHandler.mjs.map +1 -0
  96. package/dist/interaction_handler/{RedirectHandler.js → RedirectHandler.mjs} +5 -5
  97. package/dist/interaction_handler/RedirectHandler.mjs.map +1 -0
  98. package/dist/interaction_handler/{SilentHandler.js → SilentHandler.mjs} +5 -5
  99. package/dist/interaction_handler/SilentHandler.mjs.map +1 -0
  100. package/dist/{internals.js → internals.mjs} +16 -16
  101. package/dist/internals.mjs.map +1 -0
  102. package/dist/navigation/{NavigationClient.js → NavigationClient.mjs} +2 -2
  103. package/dist/navigation/NavigationClient.mjs.map +1 -0
  104. package/dist/network/{FetchClient.js → FetchClient.mjs} +4 -4
  105. package/dist/network/FetchClient.mjs.map +1 -0
  106. package/dist/network/{XhrClient.js → XhrClient.mjs} +4 -4
  107. package/dist/network/XhrClient.mjs.map +1 -0
  108. package/dist/operatingcontext/{BaseOperatingContext.js → BaseOperatingContext.mjs} +4 -4
  109. package/dist/operatingcontext/BaseOperatingContext.mjs.map +1 -0
  110. package/dist/operatingcontext/{StandardOperatingContext.js → StandardOperatingContext.mjs} +3 -3
  111. package/dist/operatingcontext/StandardOperatingContext.mjs.map +1 -0
  112. package/dist/operatingcontext/{TeamsAppOperatingContext.js → TeamsAppOperatingContext.mjs} +3 -3
  113. package/dist/operatingcontext/TeamsAppOperatingContext.mjs.map +1 -0
  114. package/dist/packageMetadata.d.ts +1 -1
  115. package/dist/packageMetadata.mjs +8 -0
  116. package/dist/packageMetadata.mjs.map +1 -0
  117. package/dist/request/PopupRequest.d.ts +3 -1
  118. package/dist/request/PopupRequest.d.ts.map +1 -1
  119. package/dist/request/RedirectRequest.d.ts +3 -1
  120. package/dist/request/RedirectRequest.d.ts.map +1 -1
  121. package/dist/request/SilentRequest.d.ts +2 -0
  122. package/dist/request/SilentRequest.d.ts.map +1 -1
  123. package/dist/request/SsoSilentRequest.d.ts +5 -2
  124. package/dist/request/SsoSilentRequest.d.ts.map +1 -1
  125. package/dist/telemetry/{BrowserPerformanceClient.js → BrowserPerformanceClient.mjs} +6 -6
  126. package/dist/telemetry/BrowserPerformanceClient.mjs.map +1 -0
  127. package/dist/telemetry/{BrowserPerformanceMeasurement.js → BrowserPerformanceMeasurement.mjs} +2 -2
  128. package/dist/telemetry/BrowserPerformanceMeasurement.mjs.map +1 -0
  129. package/dist/utils/{BrowserConstants.js → BrowserConstants.mjs} +2 -2
  130. package/dist/utils/BrowserConstants.mjs.map +1 -0
  131. package/dist/utils/{BrowserProtocolUtils.js → BrowserProtocolUtils.mjs} +2 -2
  132. package/dist/utils/BrowserProtocolUtils.mjs.map +1 -0
  133. package/dist/utils/{BrowserStringUtils.js → BrowserStringUtils.mjs} +2 -2
  134. package/dist/utils/BrowserStringUtils.mjs.map +1 -0
  135. package/dist/utils/{BrowserUtils.js → BrowserUtils.mjs} +6 -6
  136. package/dist/utils/BrowserUtils.mjs.map +1 -0
  137. package/dist/utils/{MathUtils.js → MathUtils.mjs} +2 -2
  138. package/dist/utils/MathUtils.mjs.map +1 -0
  139. package/lib/{msal-browser.cjs.js → msal-browser.cjs} +129 -69
  140. package/lib/msal-browser.cjs.map +1 -0
  141. package/lib/msal-browser.js +128 -68
  142. package/lib/msal-browser.js.map +1 -1
  143. package/lib/msal-browser.min.js +56 -56
  144. package/package.json +13 -14
  145. package/dist/app/IPublicClientApplication.js.map +0 -1
  146. package/dist/app/PublicClientApplication.js.map +0 -1
  147. package/dist/broker/nativeBroker/NativeMessageHandler.js.map +0 -1
  148. package/dist/cache/AsyncMemoryStorage.js.map +0 -1
  149. package/dist/cache/BrowserCacheManager.js.map +0 -1
  150. package/dist/cache/BrowserStorage.js.map +0 -1
  151. package/dist/cache/CryptoKeyStore.js.map +0 -1
  152. package/dist/cache/DatabaseStorage.js.map +0 -1
  153. package/dist/cache/MemoryStorage.js.map +0 -1
  154. package/dist/cache/TokenCache.js.map +0 -1
  155. package/dist/cache/entities/CacheRecord.d.ts +0 -6
  156. package/dist/cache/entities/CacheRecord.d.ts.map +0 -1
  157. package/dist/config/Configuration.js.map +0 -1
  158. package/dist/controllers/ControllerFactory.js.map +0 -1
  159. package/dist/controllers/StandardController.js.map +0 -1
  160. package/dist/crypto/BrowserCrypto.js.map +0 -1
  161. package/dist/crypto/CryptoOps.js.map +0 -1
  162. package/dist/crypto/GuidGenerator.js.map +0 -1
  163. package/dist/crypto/ModernBrowserCrypto.js.map +0 -1
  164. package/dist/crypto/PkceGenerator.js.map +0 -1
  165. package/dist/crypto/SignedHttpRequest.js.map +0 -1
  166. package/dist/encode/Base64Decode.js.map +0 -1
  167. package/dist/encode/Base64Encode.js.map +0 -1
  168. package/dist/error/BrowserAuthError.js.map +0 -1
  169. package/dist/error/BrowserConfigurationAuthError.js.map +0 -1
  170. package/dist/error/NativeAuthError.js.map +0 -1
  171. package/dist/event/EventHandler.js.map +0 -1
  172. package/dist/event/EventMessage.js.map +0 -1
  173. package/dist/event/EventType.js.map +0 -1
  174. package/dist/index.js.map +0 -1
  175. package/dist/interaction_client/BaseInteractionClient.js.map +0 -1
  176. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.js.map +0 -1
  177. package/dist/interaction_client/NativeInteractionClient.js.map +0 -1
  178. package/dist/interaction_client/PopupClient.js.map +0 -1
  179. package/dist/interaction_client/RedirectClient.js.map +0 -1
  180. package/dist/interaction_client/SilentAuthCodeClient.js.map +0 -1
  181. package/dist/interaction_client/SilentCacheClient.js.map +0 -1
  182. package/dist/interaction_client/SilentIframeClient.js.map +0 -1
  183. package/dist/interaction_client/SilentRefreshClient.js.map +0 -1
  184. package/dist/interaction_client/StandardInteractionClient.js.map +0 -1
  185. package/dist/interaction_handler/InteractionHandler.js.map +0 -1
  186. package/dist/interaction_handler/RedirectHandler.js.map +0 -1
  187. package/dist/interaction_handler/SilentHandler.js.map +0 -1
  188. package/dist/internals.js.map +0 -1
  189. package/dist/navigation/NavigationClient.js.map +0 -1
  190. package/dist/network/FetchClient.js.map +0 -1
  191. package/dist/network/XhrClient.js.map +0 -1
  192. package/dist/operatingcontext/BaseOperatingContext.js.map +0 -1
  193. package/dist/operatingcontext/StandardOperatingContext.js.map +0 -1
  194. package/dist/operatingcontext/TeamsAppOperatingContext.js.map +0 -1
  195. package/dist/packageMetadata.js +0 -8
  196. package/dist/packageMetadata.js.map +0 -1
  197. package/dist/telemetry/BrowserPerformanceClient.js.map +0 -1
  198. package/dist/telemetry/BrowserPerformanceMeasurement.js.map +0 -1
  199. package/dist/utils/BrowserConstants.js.map +0 -1
  200. package/dist/utils/BrowserProtocolUtils.js.map +0 -1
  201. package/dist/utils/BrowserStringUtils.js.map +0 -1
  202. package/dist/utils/BrowserUtils.js.map +0 -1
  203. package/dist/utils/MathUtils.js.map +0 -1
  204. 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.2 2023-08-18 */
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.2 2023-08-18 */
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.2 2023-08-18 */
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.2 2023-08-18 */
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.2 2023-08-18 */
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.2 2023-08-18 */
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.2 2023-08-18 */
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.2 2023-08-18 */
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.2";
1321
1321
 
1322
- /*! @azure/msal-common v14.0.0 2023-08-08 */
1322
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
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.2 2023-08-18 */
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.2 2023-08-18 */
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.2 2023-08-18 */
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.2 2023-08-18 */
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.2 2023-08-18 */
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.2 2023-08-18 */
1893
1893
 
1894
1894
  /*
1895
1895
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1916,6 +1916,7 @@
1916
1916
  * idTokenClaims: Object containing claims parsed from ID token
1917
1917
  * nativeAccountId: Account identifier on the native device
1918
1918
  * }
1919
+ * @internal
1919
1920
  */
1920
1921
  class AccountEntity {
1921
1922
  /**
@@ -2112,7 +2113,7 @@
2112
2113
  }
2113
2114
  }
2114
2115
 
2115
- /*! @azure/msal-common v14.0.0 2023-08-08 */
2116
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
2116
2117
 
2117
2118
  /*
2118
2119
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2163,7 +2164,7 @@
2163
2164
  }
2164
2165
  }
2165
2166
 
2166
- /*! @azure/msal-common v14.0.0 2023-08-08 */
2167
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
2167
2168
 
2168
2169
  /*
2169
2170
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2171,6 +2172,7 @@
2171
2172
  */
2172
2173
  /**
2173
2174
  * Interface class which implement cache storage functions used by MSAL to perform validity checks, and store tokens.
2175
+ * @internal
2174
2176
  */
2175
2177
  class CacheManager {
2176
2178
  constructor(clientId, cryptoImpl, logger) {
@@ -2657,7 +2659,11 @@
2657
2659
  return null;
2658
2660
  }
2659
2661
  else if (numIdTokens > 1) {
2660
- throw ClientAuthError.createMultipleMatchingTokensInCacheError();
2662
+ this.commonLogger.info("CacheManager:getIdToken - Multiple id tokens found, clearing them");
2663
+ idTokens.forEach((idToken) => {
2664
+ this.removeIdToken(idToken.generateCredentialKey());
2665
+ });
2666
+ return null;
2661
2667
  }
2662
2668
  this.commonLogger.info("CacheManager:getIdToken - Returning id token");
2663
2669
  return idTokens[0];
@@ -2767,7 +2773,11 @@
2767
2773
  return null;
2768
2774
  }
2769
2775
  else if (numAccessTokens > 1) {
2770
- throw ClientAuthError.createMultipleMatchingTokensInCacheError();
2776
+ this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them");
2777
+ accessTokens.forEach((accessToken) => {
2778
+ this.removeAccessToken(accessToken.generateCredentialKey());
2779
+ });
2780
+ return null;
2771
2781
  }
2772
2782
  this.commonLogger.info("CacheManager:getAccessToken - Returning access token");
2773
2783
  return accessTokens[0];
@@ -3079,6 +3089,7 @@
3079
3089
  return obj;
3080
3090
  }
3081
3091
  }
3092
+ /** @internal */
3082
3093
  class DefaultStorageClass extends CacheManager {
3083
3094
  setAccount() {
3084
3095
  const notImplErr = "Storage interface - setAccount() has not been implemented for the cacheStorage interface.";
@@ -3178,7 +3189,7 @@
3178
3189
  }
3179
3190
  }
3180
3191
 
3181
- /*! @azure/msal-common v14.0.0 2023-08-08 */
3192
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
3182
3193
 
3183
3194
  /*
3184
3195
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3280,7 +3291,7 @@
3280
3291
  return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
3281
3292
  }
3282
3293
 
3283
- /*! @azure/msal-common v14.0.0 2023-08-08 */
3294
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
3284
3295
 
3285
3296
  /*
3286
3297
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3297,12 +3308,13 @@
3297
3308
  }
3298
3309
  }
3299
3310
 
3300
- /*! @azure/msal-common v14.0.0 2023-08-08 */
3311
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
3301
3312
 
3302
3313
  /*
3303
3314
  * Copyright (c) Microsoft Corporation. All rights reserved.
3304
3315
  * Licensed under the MIT License.
3305
3316
  */
3317
+ /** @internal */
3306
3318
  class ThrottlingUtils {
3307
3319
  /**
3308
3320
  * Prepares a RequestThumbprint to be stored as a key.
@@ -3394,12 +3406,13 @@
3394
3406
  }
3395
3407
  }
3396
3408
 
3397
- /*! @azure/msal-common v14.0.0 2023-08-08 */
3409
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
3398
3410
 
3399
3411
  /*
3400
3412
  * Copyright (c) Microsoft Corporation. All rights reserved.
3401
3413
  * Licensed under the MIT License.
3402
3414
  */
3415
+ /** @internal */
3403
3416
  class NetworkManager {
3404
3417
  constructor(networkClient, cacheManager) {
3405
3418
  this.networkClient = networkClient;
@@ -3430,7 +3443,7 @@
3430
3443
  }
3431
3444
  }
3432
3445
 
3433
- /*! @azure/msal-common v14.0.0 2023-08-08 */
3446
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
3434
3447
  /*
3435
3448
  * Copyright (c) Microsoft Corporation. All rights reserved.
3436
3449
  * Licensed under the MIT License.
@@ -3440,7 +3453,7 @@
3440
3453
  UPN: "UPN",
3441
3454
  };
3442
3455
 
3443
- /*! @azure/msal-common v14.0.0 2023-08-08 */
3456
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
3444
3457
 
3445
3458
  /*
3446
3459
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3525,12 +3538,13 @@
3525
3538
  }
3526
3539
  }
3527
3540
 
3528
- /*! @azure/msal-common v14.0.0 2023-08-08 */
3541
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
3529
3542
 
3530
3543
  /*
3531
3544
  * Copyright (c) Microsoft Corporation. All rights reserved.
3532
3545
  * Licensed under the MIT License.
3533
3546
  */
3547
+ /** @internal */
3534
3548
  class RequestParameterBuilder {
3535
3549
  constructor() {
3536
3550
  this.parameters = new Map();
@@ -3908,7 +3922,7 @@
3908
3922
  }
3909
3923
  }
3910
3924
 
3911
- /*! @azure/msal-common v14.0.0 2023-08-08 */
3925
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
3912
3926
 
3913
3927
  /*
3914
3928
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3916,6 +3930,7 @@
3916
3930
  */
3917
3931
  /**
3918
3932
  * Base application class which will construct requests to send to and handle responses from the Microsoft STS using the authorization code flow.
3933
+ * @internal
3919
3934
  */
3920
3935
  class BaseClient {
3921
3936
  constructor(configuration, performanceClient) {
@@ -4003,7 +4018,7 @@
4003
4018
  }
4004
4019
  }
4005
4020
 
4006
- /*! @azure/msal-common v14.0.0 2023-08-08 */
4021
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
4007
4022
 
4008
4023
  /*
4009
4024
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4142,7 +4157,7 @@
4142
4157
  }
4143
4158
  }
4144
4159
 
4145
- /*! @azure/msal-common v14.0.0 2023-08-08 */
4160
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
4146
4161
 
4147
4162
  /*
4148
4163
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4201,7 +4216,7 @@
4201
4216
  }
4202
4217
  }
4203
4218
 
4204
- /*! @azure/msal-common v14.0.0 2023-08-08 */
4219
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
4205
4220
  /*
4206
4221
  * Copyright (c) Microsoft Corporation. All rights reserved.
4207
4222
  * Licensed under the MIT License.
@@ -4248,7 +4263,7 @@
4248
4263
  }
4249
4264
  }
4250
4265
 
4251
- /*! @azure/msal-common v14.0.0 2023-08-08 */
4266
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
4252
4267
 
4253
4268
  /*
4254
4269
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4362,7 +4377,7 @@
4362
4377
  }
4363
4378
  }
4364
4379
 
4365
- /*! @azure/msal-common v14.0.0 2023-08-08 */
4380
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
4366
4381
 
4367
4382
  /*
4368
4383
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4424,7 +4439,7 @@
4424
4439
  }
4425
4440
  }
4426
4441
 
4427
- /*! @azure/msal-common v14.0.0 2023-08-08 */
4442
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
4428
4443
 
4429
4444
  /*
4430
4445
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4505,11 +4520,12 @@
4505
4520
  }
4506
4521
  }
4507
4522
 
4508
- /*! @azure/msal-common v14.0.0 2023-08-08 */
4523
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
4509
4524
  /*
4510
4525
  * Copyright (c) Microsoft Corporation. All rights reserved.
4511
4526
  * Licensed under the MIT License.
4512
4527
  */
4528
+ /** @internal */
4513
4529
  class CacheRecord {
4514
4530
  constructor(accountEntity, idTokenEntity, accessTokenEntity, refreshTokenEntity, appMetadataEntity) {
4515
4531
  this.account = accountEntity || null;
@@ -4520,7 +4536,7 @@
4520
4536
  }
4521
4537
  }
4522
4538
 
4523
- /*! @azure/msal-common v14.0.0 2023-08-08 */
4539
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
4524
4540
 
4525
4541
  /*
4526
4542
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4594,7 +4610,7 @@
4594
4610
  }
4595
4611
  }
4596
4612
 
4597
- /*! @azure/msal-common v14.0.0 2023-08-08 */
4613
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
4598
4614
 
4599
4615
  /*
4600
4616
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4878,7 +4894,7 @@
4878
4894
  }
4879
4895
  }
4880
4896
 
4881
- /*! @azure/msal-common v14.0.0 2023-08-08 */
4897
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
4882
4898
  /*
4883
4899
  * Copyright (c) Microsoft Corporation. All rights reserved.
4884
4900
  * Licensed under the MIT License.
@@ -5106,7 +5122,7 @@
5106
5122
  "status",
5107
5123
  ]);
5108
5124
 
5109
- /*! @azure/msal-common v14.0.0 2023-08-08 */
5125
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
5110
5126
 
5111
5127
  /*
5112
5128
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5116,6 +5132,7 @@
5116
5132
  SW: "sw",
5117
5133
  UHW: "uhw",
5118
5134
  };
5135
+ /** @internal */
5119
5136
  class PopTokenGenerator {
5120
5137
  constructor(cryptoUtils, performanceClient) {
5121
5138
  this.cryptoUtils = cryptoUtils;
@@ -5191,7 +5208,7 @@
5191
5208
  }
5192
5209
  }
5193
5210
 
5194
- /*! @azure/msal-common v14.0.0 2023-08-08 */
5211
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
5195
5212
 
5196
5213
  /*
5197
5214
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5260,7 +5277,7 @@
5260
5277
  }
5261
5278
  }
5262
5279
 
5263
- /*! @azure/msal-common v14.0.0 2023-08-08 */
5280
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
5264
5281
  /*
5265
5282
  * Copyright (c) Microsoft Corporation. All rights reserved.
5266
5283
  * Licensed under the MIT License.
@@ -5287,7 +5304,7 @@
5287
5304
  }
5288
5305
  }
5289
5306
 
5290
- /*! @azure/msal-common v14.0.0 2023-08-08 */
5307
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
5291
5308
 
5292
5309
  /*
5293
5310
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5295,6 +5312,7 @@
5295
5312
  */
5296
5313
  /**
5297
5314
  * Class that handles response parsing.
5315
+ * @internal
5298
5316
  */
5299
5317
  class ResponseHandler {
5300
5318
  constructor(clientId, cacheStorage, cryptoObj, logger, serializableCache, persistencePlugin, performanceClient) {
@@ -5581,7 +5599,7 @@
5581
5599
  }
5582
5600
  }
5583
5601
 
5584
- /*! @azure/msal-common v14.0.0 2023-08-08 */
5602
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
5585
5603
 
5586
5604
  /*
5587
5605
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5589,6 +5607,7 @@
5589
5607
  */
5590
5608
  /**
5591
5609
  * Oauth2.0 Authorization Code client
5610
+ * @internal
5592
5611
  */
5593
5612
  class AuthorizationCodeClient extends BaseClient {
5594
5613
  constructor(configuration, performanceClient) {
@@ -5742,7 +5761,8 @@
5742
5761
  async createTokenRequestBody(request) {
5743
5762
  this.performanceClient?.addQueueMeasurement(PerformanceEvents.AuthClientCreateTokenRequestBody, request.correlationId);
5744
5763
  const parameterBuilder = new RequestParameterBuilder();
5745
- parameterBuilder.addClientId(this.config.authOptions.clientId);
5764
+ parameterBuilder.addClientId(request.tokenBodyParameters?.[AADServerParamKeys.CLIENT_ID] ||
5765
+ this.config.authOptions.clientId);
5746
5766
  /*
5747
5767
  * For hybrid spa flow, there will be a code but no verifier
5748
5768
  * In this scenario, don't include redirect uri as auth code will not be bound to redirect URI
@@ -5857,7 +5877,8 @@
5857
5877
  async createAuthCodeUrlQueryString(request) {
5858
5878
  this.performanceClient?.addQueueMeasurement(PerformanceEvents.AuthClientCreateQueryString, request.correlationId);
5859
5879
  const parameterBuilder = new RequestParameterBuilder();
5860
- parameterBuilder.addClientId(this.config.authOptions.clientId);
5880
+ parameterBuilder.addClientId(request.extraQueryParameters?.[AADServerParamKeys.CLIENT_ID] ||
5881
+ this.config.authOptions.clientId);
5861
5882
  const requestScopes = [
5862
5883
  ...(request.scopes || []),
5863
5884
  ...(request.extraScopesToConsent || []),
@@ -6019,7 +6040,7 @@
6019
6040
  }
6020
6041
  }
6021
6042
 
6022
- /*! @azure/msal-common v14.0.0 2023-08-08 */
6043
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
6023
6044
 
6024
6045
  /*
6025
6046
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6027,6 +6048,7 @@
6027
6048
  */
6028
6049
  /**
6029
6050
  * OAuth2.0 refresh token client
6051
+ * @internal
6030
6052
  */
6031
6053
  class RefreshTokenClient extends BaseClient {
6032
6054
  constructor(configuration, performanceClient) {
@@ -6261,12 +6283,13 @@
6261
6283
  }
6262
6284
  }
6263
6285
 
6264
- /*! @azure/msal-common v14.0.0 2023-08-08 */
6286
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
6265
6287
 
6266
6288
  /*
6267
6289
  * Copyright (c) Microsoft Corporation. All rights reserved.
6268
6290
  * Licensed under the MIT License.
6269
6291
  */
6292
+ /** @internal */
6270
6293
  class SilentFlowClient extends BaseClient {
6271
6294
  constructor(configuration, performanceClient) {
6272
6295
  super(configuration, performanceClient);
@@ -6364,7 +6387,7 @@
6364
6387
  }
6365
6388
  }
6366
6389
 
6367
- /*! @azure/msal-common v14.0.0 2023-08-08 */
6390
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
6368
6391
  /*
6369
6392
  * Copyright (c) Microsoft Corporation. All rights reserved.
6370
6393
  * Licensed under the MIT License.
@@ -6376,7 +6399,7 @@
6376
6399
  response.hasOwnProperty("jwks_uri"));
6377
6400
  }
6378
6401
 
6379
- /*! @azure/msal-common v14.0.0 2023-08-08 */
6402
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
6380
6403
  /*
6381
6404
  * Copyright (c) Microsoft Corporation. All rights reserved.
6382
6405
  * Licensed under the MIT License.
@@ -7262,12 +7285,13 @@
7262
7285
  }
7263
7286
  }
7264
7287
 
7265
- /*! @azure/msal-common v14.0.0 2023-08-08 */
7288
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
7266
7289
 
7267
7290
  /*
7268
7291
  * Copyright (c) Microsoft Corporation. All rights reserved.
7269
7292
  * Licensed under the MIT License.
7270
7293
  */
7294
+ /** @internal */
7271
7295
  class AuthorityMetadataEntity {
7272
7296
  constructor() {
7273
7297
  this.expiresAt =
@@ -7342,7 +7366,7 @@
7342
7366
  }
7343
7367
  }
7344
7368
 
7345
- /*! @azure/msal-common v14.0.0 2023-08-08 */
7369
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
7346
7370
  /*
7347
7371
  * Copyright (c) Microsoft Corporation. All rights reserved.
7348
7372
  * Licensed under the MIT License.
@@ -7352,7 +7376,7 @@
7352
7376
  response.hasOwnProperty("metadata"));
7353
7377
  }
7354
7378
 
7355
- /*! @azure/msal-common v14.0.0 2023-08-08 */
7379
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
7356
7380
  /*
7357
7381
  * Copyright (c) Microsoft Corporation. All rights reserved.
7358
7382
  * Licensed under the MIT License.
@@ -7362,7 +7386,7 @@
7362
7386
  response.hasOwnProperty("error_description"));
7363
7387
  }
7364
7388
 
7365
- /*! @azure/msal-common v14.0.0 2023-08-08 */
7389
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
7366
7390
 
7367
7391
  /*
7368
7392
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7473,7 +7497,7 @@
7473
7497
  },
7474
7498
  };
7475
7499
 
7476
- /*! @azure/msal-common v14.0.0 2023-08-08 */
7500
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
7477
7501
 
7478
7502
  /*
7479
7503
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7482,6 +7506,7 @@
7482
7506
  /**
7483
7507
  * The authority class validates the authority URIs used by the user, and retrieves the OpenID Configuration Data from the
7484
7508
  * endpoint. It will store the pertinent config data in this object for use during token calls.
7509
+ * @internal
7485
7510
  */
7486
7511
  class Authority {
7487
7512
  constructor(authority, networkInterface, cacheManager, authorityOptions, logger, performanceClient, correlationId) {
@@ -7695,7 +7720,8 @@
7695
7720
  get defaultOpenIdConfigurationEndpoint() {
7696
7721
  const canonicalAuthorityHost = this.hostnameAndPort;
7697
7722
  if (this.authorityType === AuthorityType.Adfs ||
7698
- !this.isAliasOfKnownMicrosoftAuthority(canonicalAuthorityHost)) {
7723
+ (this.protocolMode !== ProtocolMode.AAD &&
7724
+ !this.isAliasOfKnownMicrosoftAuthority(canonicalAuthorityHost))) {
7699
7725
  return `${this.canonicalAuthority}.well-known/openid-configuration`;
7700
7726
  }
7701
7727
  return `${this.canonicalAuthority}v2.0/.well-known/openid-configuration`;
@@ -8237,12 +8263,13 @@
8237
8263
  AADAuthorityConstants.ORGANIZATIONS,
8238
8264
  ]);
8239
8265
 
8240
- /*! @azure/msal-common v14.0.0 2023-08-08 */
8266
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
8241
8267
 
8242
8268
  /*
8243
8269
  * Copyright (c) Microsoft Corporation. All rights reserved.
8244
8270
  * Licensed under the MIT License.
8245
8271
  */
8272
+ /** @internal */
8246
8273
  class AuthorityFactory {
8247
8274
  /**
8248
8275
  * Create an authority object of the correct type based on the url
@@ -8287,7 +8314,7 @@
8287
8314
  }
8288
8315
  }
8289
8316
 
8290
- /*! @azure/msal-common v14.0.0 2023-08-08 */
8317
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
8291
8318
 
8292
8319
  /*
8293
8320
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8317,7 +8344,7 @@
8317
8344
  }
8318
8345
  }
8319
8346
 
8320
- /*! @azure/msal-common v14.0.0 2023-08-08 */
8347
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
8321
8348
 
8322
8349
  /*
8323
8350
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8343,7 +8370,7 @@
8343
8370
  }
8344
8371
  }
8345
8372
 
8346
- /*! @azure/msal-common v14.0.0 2023-08-08 */
8373
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
8347
8374
 
8348
8375
  /*
8349
8376
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8360,7 +8387,7 @@
8360
8387
  },
8361
8388
  };
8362
8389
 
8363
- /*! @azure/msal-common v14.0.0 2023-08-08 */
8390
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
8364
8391
 
8365
8392
  /*
8366
8393
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8402,12 +8429,13 @@
8402
8429
  }
8403
8430
  }
8404
8431
 
8405
- /*! @azure/msal-common v14.0.0 2023-08-08 */
8432
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
8406
8433
 
8407
8434
  /*
8408
8435
  * Copyright (c) Microsoft Corporation. All rights reserved.
8409
8436
  * Licensed under the MIT License.
8410
8437
  */
8438
+ /** @internal */
8411
8439
  class JoseHeader {
8412
8440
  constructor(options) {
8413
8441
  this.typ = options.typ;
@@ -8441,7 +8469,7 @@
8441
8469
  }
8442
8470
  }
8443
8471
 
8444
- /*! @azure/msal-common v14.0.0 2023-08-08 */
8472
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
8445
8473
 
8446
8474
  /*
8447
8475
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8499,12 +8527,13 @@
8499
8527
  }
8500
8528
  }
8501
8529
 
8502
- /*! @azure/msal-common v14.0.0 2023-08-08 */
8530
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
8503
8531
 
8504
8532
  /*
8505
8533
  * Copyright (c) Microsoft Corporation. All rights reserved.
8506
8534
  * Licensed under the MIT License.
8507
8535
  */
8536
+ /** @internal */
8508
8537
  class ServerTelemetryManager {
8509
8538
  constructor(telemetryRequest, cacheManager) {
8510
8539
  this.cacheOutcome = CacheOutcome.NO_CACHE_HIT;
@@ -8698,7 +8727,7 @@
8698
8727
  }
8699
8728
  }
8700
8729
 
8701
- /*! @azure/msal-common v14.0.0 2023-08-08 */
8730
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
8702
8731
 
8703
8732
  /*
8704
8733
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -9109,7 +9138,7 @@
9109
9138
  }
9110
9139
  }
9111
9140
 
9112
- /*! @azure/msal-common v14.0.0 2023-08-08 */
9141
+ /*! @azure/msal-common v14.0.2 2023-08-18 */
9113
9142
 
9114
9143
  /*
9115
9144
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -11354,7 +11383,7 @@
11354
11383
 
11355
11384
  /* eslint-disable header/header */
11356
11385
  const name = "@azure/msal-browser";
11357
- const version = "3.0.0";
11386
+ const version = "3.0.2";
11358
11387
 
11359
11388
  /*
11360
11389
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -12578,6 +12607,10 @@
12578
12607
  * Copyright (c) Microsoft Corporation. All rights reserved.
12579
12608
  * Licensed under the MIT License.
12580
12609
  */
12610
+ const BrokerServerParamKeys = {
12611
+ BROKER_CLIENT_ID: "brk_client_id",
12612
+ BROKER_REDIRECT_URI: "brk_redirect_uri",
12613
+ };
12581
12614
  class NativeInteractionClient extends BaseInteractionClient {
12582
12615
  constructor(config, browserStorage, browserCrypto, logger, eventHandler, navigationClient, apiId, performanceClient, provider, accountId, nativeStorageImpl, correlationId) {
12583
12616
  super(config, browserStorage, browserCrypto, logger, eventHandler, navigationClient, performanceClient, provider, correlationId);
@@ -13069,10 +13102,14 @@
13069
13102
  extraParameters: {
13070
13103
  ...request.extraQueryParameters,
13071
13104
  ...request.tokenQueryParameters,
13072
- telemetry: NativeConstants.MATS_TELEMETRY,
13073
13105
  },
13074
13106
  extendedExpiryToken: false, // Make this configurable?
13075
13107
  };
13108
+ this.handleExtraBrokerParams(validatedRequest);
13109
+ validatedRequest.extraParameters =
13110
+ validatedRequest.extraParameters || {};
13111
+ validatedRequest.extraParameters.telemetry =
13112
+ NativeConstants.MATS_TELEMETRY;
13076
13113
  if (request.authenticationScheme === AuthenticationScheme.POP) {
13077
13114
  // add POP request type
13078
13115
  const shrParameters = {
@@ -13089,6 +13126,28 @@
13089
13126
  }
13090
13127
  return validatedRequest;
13091
13128
  }
13129
+ /**
13130
+ * Handles extra broker request parameters
13131
+ * @param request {NativeTokenRequest}
13132
+ * @private
13133
+ */
13134
+ handleExtraBrokerParams(request) {
13135
+ if (!request.extraParameters) {
13136
+ return;
13137
+ }
13138
+ if (request.extraParameters.hasOwnProperty(BrokerServerParamKeys.BROKER_CLIENT_ID) &&
13139
+ request.extraParameters.hasOwnProperty(BrokerServerParamKeys.BROKER_REDIRECT_URI) &&
13140
+ request.extraParameters.hasOwnProperty(AADServerParamKeys.CLIENT_ID)) {
13141
+ const child_client_id = request.extraParameters[AADServerParamKeys.CLIENT_ID];
13142
+ const child_redirect_uri = request.redirectUri;
13143
+ const brk_redirect_uri = request.extraParameters[BrokerServerParamKeys.BROKER_REDIRECT_URI];
13144
+ request.extraParameters = {
13145
+ child_client_id,
13146
+ child_redirect_uri,
13147
+ };
13148
+ request.redirectUri = brk_redirect_uri;
13149
+ }
13150
+ }
13092
13151
  }
13093
13152
 
13094
13153
  /*
@@ -17801,7 +17860,7 @@
17801
17860
  * Silently acquire an access token for a given set of scopes. Returns currently processing promise if parallel requests are made.
17802
17861
  *
17803
17862
  * @param {@link (SilentRequest:type)}
17804
- * @returns {Promise.<AuthenticationResult>} - a promise that is fulfilled when this function has completed, or rejected if an error was raised. Returns the {@link AuthResponse} object
17863
+ * @returns {Promise.<AuthenticationResult>} - a promise that is fulfilled when this function has completed, or rejected if an error was raised. Returns the {@link AuthenticationResult} object
17805
17864
  */
17806
17865
  acquireTokenSilent(silentRequest) {
17807
17866
  return this.controller.acquireTokenSilent(silentRequest);
@@ -18025,6 +18084,7 @@
18025
18084
  }
18026
18085
  /**
18027
18086
  * Returns the configuration object
18087
+ * @internal
18028
18088
  */
18029
18089
  getConfiguration() {
18030
18090
  return this.controller.getConfiguration();