@azure/msal-browser 5.23.0 → 5.25.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 (290) hide show
  1. package/dist/app/IPublicClientApplication.mjs +1 -1
  2. package/dist/app/PublicClientApplication.mjs +1 -1
  3. package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
  4. package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +111 -27
  5. package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs.map +1 -1
  6. package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +178 -67
  7. package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs.map +1 -1
  8. package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +61 -22
  9. package/dist/broker/nativeBroker/PlatformAuthProvider.mjs.map +1 -1
  10. package/dist/broker/nativeBroker/PlatformAuthRequest.mjs +1 -1
  11. package/dist/cache/AccountManager.mjs +1 -1
  12. package/dist/cache/AsyncMemoryStorage.mjs +1 -1
  13. package/dist/cache/BrowserCacheManager.mjs +1 -1
  14. package/dist/cache/CacheHelpers.mjs +1 -1
  15. package/dist/cache/CacheKeys.mjs +1 -1
  16. package/dist/cache/CookieStorage.mjs +1 -1
  17. package/dist/cache/DatabaseStorage.mjs +1 -1
  18. package/dist/cache/EncryptedData.mjs +1 -1
  19. package/dist/cache/LocalStorage.mjs +97 -29
  20. package/dist/cache/LocalStorage.mjs.map +1 -1
  21. package/dist/cache/MemoryStorage.mjs +1 -1
  22. package/dist/cache/SessionStorage.mjs +1 -1
  23. package/dist/cache/TokenCache.mjs +1 -1
  24. package/dist/config/Configuration.mjs +1 -1
  25. package/dist/controllers/NestedAppAuthController.mjs +1 -1
  26. package/dist/controllers/StandardController.mjs +23 -22
  27. package/dist/controllers/StandardController.mjs.map +1 -1
  28. package/dist/crypto/BrowserCrypto.mjs +1 -1
  29. package/dist/crypto/CryptoOps.mjs +1 -1
  30. package/dist/crypto/PkceGenerator.mjs +1 -1
  31. package/dist/crypto/SignedHttpRequest.mjs +1 -1
  32. package/dist/crypto/TokenBindingKeyManager.mjs +1 -1
  33. package/dist/custom_auth/CustomAuthConstants.mjs +1 -1
  34. package/dist/custom_auth/CustomAuthPublicClientApplication.mjs +1 -1
  35. package/dist/custom_auth/controller/CustomAuthStandardController.mjs +1 -1
  36. package/dist/custom_auth/core/CustomAuthAuthority.mjs +1 -1
  37. package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +1 -1
  38. package/dist/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
  39. package/dist/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
  40. package/dist/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs +1 -1
  41. package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +1 -1
  42. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -1
  43. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -1
  44. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +1 -1
  45. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
  46. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +1 -1
  47. package/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs +1 -1
  48. package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +1 -1
  49. package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -1
  50. package/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs +1 -1
  51. package/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +1 -1
  52. package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +1 -1
  53. package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs +1 -1
  54. package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs +1 -1
  55. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.mjs +1 -1
  56. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs +1 -1
  57. package/dist/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.mjs +1 -1
  58. package/dist/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.mjs +1 -1
  59. package/dist/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.mjs +1 -1
  60. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs +1 -1
  61. package/dist/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.mjs +1 -1
  62. package/dist/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.mjs +1 -1
  63. package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs +1 -1
  64. package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs +1 -1
  65. package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs +1 -1
  66. package/dist/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.mjs +1 -1
  67. package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs +1 -1
  68. package/dist/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
  69. package/dist/custom_auth/core/error/CustomAuthError.mjs +1 -1
  70. package/dist/custom_auth/core/error/HttpError.mjs +1 -1
  71. package/dist/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
  72. package/dist/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
  73. package/dist/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
  74. package/dist/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
  75. package/dist/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
  76. package/dist/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
  77. package/dist/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
  78. package/dist/custom_auth/core/error/ParsedUrlError.mjs +1 -1
  79. package/dist/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
  80. package/dist/custom_auth/core/error/UnexpectedError.mjs +1 -1
  81. package/dist/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
  82. package/dist/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
  83. package/dist/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
  84. package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
  85. package/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
  86. package/dist/custom_auth/core/interaction_client/jit/JitClient.mjs +1 -1
  87. package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +1 -1
  88. package/dist/custom_auth/core/interaction_client/mfa/MfaClient.mjs +1 -1
  89. package/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +1 -1
  90. package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs +1 -1
  91. package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs +1 -1
  92. package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs +1 -1
  93. package/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
  94. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
  95. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +1 -1
  96. package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
  97. package/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
  98. package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
  99. package/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
  100. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
  101. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
  102. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.mjs +1 -1
  103. package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs +1 -1
  104. package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs +1 -1
  105. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.mjs +1 -1
  106. package/dist/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.mjs +1 -1
  107. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs +1 -1
  108. package/dist/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.mjs +1 -1
  109. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs +1 -1
  110. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs +1 -1
  111. package/dist/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
  112. package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
  113. package/dist/custom_auth/core/telemetry/FlowApiIdHelperV2.mjs +1 -1
  114. package/dist/custom_auth/core/telemetry/PublicApiId.mjs +1 -1
  115. package/dist/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
  116. package/dist/custom_auth/core/utils/CustomHeaderUtils.mjs +1 -1
  117. package/dist/custom_auth/core/utils/UrlUtils.mjs +1 -1
  118. package/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
  119. package/dist/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
  120. package/dist/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
  121. package/dist/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
  122. package/dist/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
  123. package/dist/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
  124. package/dist/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
  125. package/dist/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
  126. package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
  127. package/dist/custom_auth/index.mjs +1 -1
  128. package/dist/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
  129. package/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
  130. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
  131. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
  132. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
  133. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
  134. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
  135. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
  136. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
  137. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
  138. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
  139. package/dist/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.mjs +1 -1
  140. package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs +1 -1
  141. package/dist/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
  142. package/dist/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
  143. package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
  144. package/dist/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
  145. package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
  146. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
  147. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -1
  148. package/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +1 -1
  149. package/dist/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
  150. package/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
  151. package/dist/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
  152. package/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
  153. package/dist/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
  154. package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.mjs +1 -1
  155. package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.mjs +1 -1
  156. package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.mjs +1 -1
  157. package/dist/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.mjs +1 -1
  158. package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs +1 -1
  159. package/dist/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
  160. package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
  161. package/dist/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
  162. package/dist/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
  163. package/dist/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
  164. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
  165. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
  166. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
  167. package/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
  168. package/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
  169. package/dist/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
  170. package/dist/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
  171. package/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
  172. package/dist/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
  173. package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.mjs +1 -1
  174. package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.mjs +1 -1
  175. package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs +1 -1
  176. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.mjs +1 -1
  177. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.mjs +1 -1
  178. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.mjs +1 -1
  179. package/dist/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
  180. package/dist/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
  181. package/dist/encode/Base64Decode.mjs +1 -1
  182. package/dist/encode/Base64Encode.mjs +1 -1
  183. package/dist/error/BrowserAuthError.mjs +1 -1
  184. package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
  185. package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
  186. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  187. package/dist/error/NativeAuthError.mjs +1 -1
  188. package/dist/error/NativeAuthErrorCodes.mjs +1 -1
  189. package/dist/error/NestedAppAuthError.mjs +1 -1
  190. package/dist/event/EventHandler.mjs +1 -1
  191. package/dist/event/EventMessage.mjs +1 -1
  192. package/dist/event/EventType.mjs +1 -1
  193. package/dist/index.mjs +1 -1
  194. package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
  195. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  196. package/dist/interaction_client/PlatformAuthInteractionClient.mjs +14 -13
  197. package/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
  198. package/dist/interaction_client/PopupClient.mjs +1 -1
  199. package/dist/interaction_client/RedirectClient.mjs +1 -1
  200. package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
  201. package/dist/interaction_client/SilentCacheClient.mjs +1 -1
  202. package/dist/interaction_client/SilentIframeClient.mjs +1 -1
  203. package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
  204. package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
  205. package/dist/interaction_handler/InteractionHandler.mjs +1 -1
  206. package/dist/interaction_handler/SilentHandler.mjs +1 -1
  207. package/dist/log-strings-mapping.json +23 -11
  208. package/dist/naa/BridgeError.mjs +1 -1
  209. package/dist/naa/BridgeProxy.mjs +1 -1
  210. package/dist/naa/BridgeStatusCode.mjs +1 -1
  211. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
  212. package/dist/navigation/NavigationClient.mjs +1 -1
  213. package/dist/network/FetchClient.mjs +1 -1
  214. package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
  215. package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
  216. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  217. package/dist/packageMetadata.mjs +2 -2
  218. package/dist/popup_relay/constants.mjs +1 -1
  219. package/dist/popup_relay/index.mjs +1 -1
  220. package/dist/popup_relay/relayClient.mjs +1 -1
  221. package/dist/protocol/Authorize.mjs +1 -1
  222. package/dist/redirect_bridge/index.mjs +1 -1
  223. package/dist/request/RequestHelpers.mjs +1 -1
  224. package/dist/request/SilentRequestHelpers.mjs +127 -0
  225. package/dist/request/SilentRequestHelpers.mjs.map +1 -0
  226. package/dist/response/ResponseHandler.mjs +1 -1
  227. package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  228. package/dist/telemetry/BrowserPerformanceEvents.mjs +16 -2
  229. package/dist/telemetry/BrowserPerformanceEvents.mjs.map +1 -1
  230. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  231. package/dist/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
  232. package/dist/utils/BrowserConstants.mjs +1 -1
  233. package/dist/utils/BrowserProtocolUtils.mjs +1 -1
  234. package/dist/utils/BrowserUtils.mjs +1 -1
  235. package/dist/utils/Helpers.mjs +1 -1
  236. package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
  237. package/dist/webBrokerBridge/PendingRequestRegistry.mjs +1 -1
  238. package/dist/webBrokerBridge/PerfEventNames.mjs +1 -1
  239. package/dist/webBrokerBridge/WebBrokerBridgeError.mjs +1 -1
  240. package/dist/webBrokerBridge/WebBrokerBridgeErrorMap.mjs +1 -1
  241. package/dist/webBrokerBridge/adapter/CrossVersionRequestAdapter.mjs +1 -1
  242. package/dist/webBrokerBridge/index.mjs +1 -1
  243. package/lib/custom-auth-path/log-strings-mapping.json +23 -11
  244. package/lib/custom-auth-path/msal-custom-auth.cjs +668 -234
  245. package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
  246. package/lib/custom-auth-path/msal-custom-auth.js +668 -234
  247. package/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
  248. package/lib/log-strings-mapping.json +23 -11
  249. package/lib/msal-browser.cjs +670 -236
  250. package/lib/msal-browser.cjs.map +1 -1
  251. package/lib/msal-browser.js +670 -236
  252. package/lib/msal-browser.js.map +1 -1
  253. package/lib/msal-browser.min.js +2 -2
  254. package/lib/popup-relay/msal-popup-relay.cjs +2 -2
  255. package/lib/popup-relay/msal-popup-relay.cjs.map +1 -1
  256. package/lib/popup-relay/msal-popup-relay.js +2 -2
  257. package/lib/popup-relay/msal-popup-relay.js.map +1 -1
  258. package/lib/popup-relay/msal-popup-relay.min.js +1 -1
  259. package/lib/redirect-bridge/msal-redirect-bridge.cjs +10 -10
  260. package/lib/redirect-bridge/msal-redirect-bridge.cjs.map +1 -1
  261. package/lib/redirect-bridge/msal-redirect-bridge.js +10 -10
  262. package/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -1
  263. package/lib/redirect-bridge/msal-redirect-bridge.min.js +1 -1
  264. package/lib/web-broker-bridge/msal-web-broker-bridge.cjs +1 -1
  265. package/package.json +3 -3
  266. package/src/broker/nativeBroker/PlatformAuthDOMHandler.ts +177 -43
  267. package/src/broker/nativeBroker/PlatformAuthExtensionHandler.ts +261 -110
  268. package/src/broker/nativeBroker/PlatformAuthProvider.ts +92 -37
  269. package/src/cache/LocalStorage.ts +135 -28
  270. package/src/controllers/StandardController.ts +36 -37
  271. package/src/interaction_client/PlatformAuthInteractionClient.ts +56 -15
  272. package/src/packageMetadata.ts +1 -1
  273. package/src/request/SilentRequestHelpers.ts +218 -0
  274. package/src/telemetry/BrowserPerformanceEvents.ts +20 -0
  275. package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts +2 -1
  276. package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts.map +1 -1
  277. package/types/broker/nativeBroker/PlatformAuthExtensionHandler.d.ts +3 -1
  278. package/types/broker/nativeBroker/PlatformAuthExtensionHandler.d.ts.map +1 -1
  279. package/types/broker/nativeBroker/PlatformAuthProvider.d.ts +1 -1
  280. package/types/broker/nativeBroker/PlatformAuthProvider.d.ts.map +1 -1
  281. package/types/cache/LocalStorage.d.ts +4 -5
  282. package/types/cache/LocalStorage.d.ts.map +1 -1
  283. package/types/controllers/StandardController.d.ts.map +1 -1
  284. package/types/custom_auth/CustomAuthConstants.d.ts +1 -1
  285. package/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
  286. package/types/packageMetadata.d.ts +1 -1
  287. package/types/request/SilentRequestHelpers.d.ts +34 -0
  288. package/types/request/SilentRequestHelpers.d.ts.map +1 -0
  289. package/types/telemetry/BrowserPerformanceEvents.d.ts +13 -0
  290. package/types/telemetry/BrowserPerformanceEvents.d.ts.map +1 -1
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
1
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
2
2
  'use strict';
3
3
  import { createBrowserAuthError } from '../error/BrowserAuthError.mjs';
4
4
  import { DB_NAME, DB_VERSION, DB_TABLE_NAME } from '../utils/BrowserConstants.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
1
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,6 +1,6 @@
1
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
1
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
2
2
  'use strict';
3
- import { invoke, invokeAsync } from '@azure/msal-common/browser';
3
+ import { invoke, invokeAsync, Constants } from '@azure/msal-common/browser';
4
4
  import { Base64Decode, GenerateHKDF, GenerateBaseKey, UrlEncodeArr, ImportExistingCache, Decrypt, Encrypt } from '../telemetry/BrowserPerformanceEvents.mjs';
5
5
  import { LocalStorageUpdated } from '../telemetry/BrowserRootPerformanceEvents.mjs';
6
6
  import { generateHKDF, createNewGuid, generateBaseKey, decrypt, encrypt } from '../crypto/BrowserCrypto.mjs';
@@ -11,7 +11,7 @@ import { createBrowserConfigurationAuthError } from '../error/BrowserConfigurati
11
11
  import { CookieStorage, SameSiteOptions } from './CookieStorage.mjs';
12
12
  import { MemoryStorage } from './MemoryStorage.mjs';
13
13
  import { getAccountKeys, getTokenKeys } from './CacheHelpers.mjs';
14
- import { PREFIX, getAccountKeysCacheKey, getTokenKeysCacheKey } from './CacheKeys.mjs';
14
+ import { PREFIX, getAccountKeysCacheKey, getTokenKeysCacheKey, CACHE_KEY_SEPARATOR } from './CacheKeys.mjs';
15
15
  import { isEncrypted } from './EncryptedData.mjs';
16
16
  import { storageNotSupported } from '../error/BrowserConfigurationAuthErrorCodes.mjs';
17
17
  import { uninitializedPublicClientApplication } from '../error/BrowserAuthErrorCodes.mjs';
@@ -73,7 +73,9 @@ class LocalStorage {
73
73
  await invokeAsync(this.importExistingCache.bind(this), ImportExistingCache, this.logger, this.performanceClient, correlationId)(correlationId);
74
74
  // Register listener for cache updates in other tabs
75
75
  this.broadcast.addEventListener("message", (event) => {
76
- this.updateCache(event, correlationId);
76
+ this.updateCache(event, correlationId).catch(() => {
77
+ this.logger.error("0ufnan", correlationId);
78
+ });
77
79
  });
78
80
  this.initialized = true;
79
81
  }
@@ -135,19 +137,20 @@ class LocalStorage {
135
137
  this.broadcast.postMessage({
136
138
  key: key,
137
139
  value: value,
138
- context: this.getContext(key),
140
+ context: this.getBroadcastContext(key),
139
141
  });
140
142
  }
141
143
  removeItem(key) {
142
- if (this.memoryStorage.containsKey(key)) {
143
- this.memoryStorage.removeItem(key);
144
+ const itemExists = this.containsKey(key) || this.memoryStorage.containsKey(key);
145
+ window.localStorage.removeItem(key);
146
+ this.memoryStorage.removeItem(key);
147
+ if (itemExists) {
144
148
  this.broadcast.postMessage({
145
149
  key: key,
146
150
  value: null,
147
- context: this.getContext(key),
151
+ context: this.getBroadcastContext(key),
148
152
  });
149
153
  }
150
- window.localStorage.removeItem(key);
151
154
  }
152
155
  getKeys() {
153
156
  return Object.keys(window.localStorage);
@@ -264,29 +267,73 @@ class LocalStorage {
264
267
  await Promise.all(promiseArr);
265
268
  return importedArr;
266
269
  }
267
- /**
268
- * Gets encryption context for a given cache entry. This is clientId for app specific entries, empty string for shared entries
269
- * @param key
270
- * @returns
271
- */
272
270
  getContext(key) {
273
- let context = "";
274
- if (key.includes(this.clientId)) {
275
- context = this.clientId; // Used to bind encryption key to this appId
271
+ return key.includes(this.clientId) ? this.clientId : "";
272
+ }
273
+ getBroadcastContext(key) {
274
+ const normalizedKey = key.toLowerCase();
275
+ const keySegments = normalizedKey.split(CACHE_KEY_SEPARATOR);
276
+ if (keySegments.length > 1) {
277
+ return keySegments[4] === this.clientId.toLowerCase()
278
+ ? this.clientId
279
+ : "";
280
+ }
281
+ const credentialType = this.getCredentialType(normalizedKey);
282
+ if (credentialType) {
283
+ const ownerPrefix = `-${credentialType}-${this.clientId.toLowerCase()}-`;
284
+ return normalizedKey.includes(ownerPrefix) ? this.clientId : "";
285
+ }
286
+ return normalizedKey.includes(this.clientId.toLowerCase())
287
+ ? this.clientId
288
+ : "";
289
+ }
290
+ getCredentialType(key) {
291
+ const normalizedKey = key.toLowerCase();
292
+ const keySegments = normalizedKey.split(CACHE_KEY_SEPARATOR);
293
+ const structuredCredentialType = keySegments[3];
294
+ return Object.values(Constants.CredentialType)
295
+ .map((type) => type.toLowerCase())
296
+ .find((type) => structuredCredentialType === type ||
297
+ normalizedKey.includes(`-${type}-`));
298
+ }
299
+ isFamilyRefreshToken(key, credentialType) {
300
+ if (credentialType !==
301
+ Constants.CredentialType.REFRESH_TOKEN.toLowerCase()) {
302
+ return false;
276
303
  }
277
- return context;
304
+ const normalizedKey = key.toLowerCase();
305
+ const keySegments = normalizedKey.split(CACHE_KEY_SEPARATOR);
306
+ return keySegments.length > 1
307
+ ? keySegments[4] === Constants.THE_FAMILY_ID
308
+ : normalizedKey.includes(`-${credentialType}-${Constants.THE_FAMILY_ID}-`);
278
309
  }
279
- updateCache(event, correlationId) {
310
+ isContextValid(key, context) {
311
+ const credentialType = this.getCredentialType(key);
312
+ const isFamilyRefreshToken = credentialType && this.isFamilyRefreshToken(key, credentialType);
313
+ const isClientBoundCredential = !!credentialType && !isFamilyRefreshToken;
314
+ return ((!isClientBoundCredential || !!context) &&
315
+ context === this.getBroadcastContext(key));
316
+ }
317
+ async updateCache(event, correlationId) {
280
318
  this.logger.trace("17cxcm", correlationId);
281
319
  const perfMeasurement = this.performanceClient.startMeasurement(LocalStorageUpdated);
282
320
  perfMeasurement.add({ isBackground: true });
283
- const { key, value, context } = event.data;
284
- if (!key) {
321
+ const key = event.data?.key;
322
+ const context = event.data?.context;
323
+ if (typeof key !== "string" || !key) {
285
324
  this.logger.error("0e10qr", correlationId);
286
325
  perfMeasurement.end({ success: false, errorCode: "noKey" });
287
326
  return;
288
327
  }
289
- if (context && context !== this.clientId) {
328
+ if (typeof context !== "string") {
329
+ this.logger.error("16gtk4", correlationId);
330
+ perfMeasurement.end({
331
+ success: false,
332
+ errorCode: "noContext",
333
+ });
334
+ return;
335
+ }
336
+ if (!this.isContextValid(key, context)) {
290
337
  this.logger.trace(`04rtdy ${context}`, correlationId);
291
338
  /*
292
339
  * Discarded rather than ended: this is expected routing, not a failure.
@@ -304,15 +351,36 @@ class LocalStorage {
304
351
  perfMeasurement.discard();
305
352
  return;
306
353
  }
307
- if (!value) {
308
- this.memoryStorage.removeItem(key);
309
- this.logger.verbose("04ypih", correlationId);
354
+ const persistedValue = this.getItem(key);
355
+ try {
356
+ const value = await this.getItemFromEncryptedCache(key, correlationId);
357
+ // A newer write or removal occurred while this entry was decrypted.
358
+ if (this.getItem(key) !== persistedValue) {
359
+ perfMeasurement.discard();
360
+ return;
361
+ }
362
+ if (!value) {
363
+ this.memoryStorage.removeItem(key);
364
+ this.logger.verbose("04ypih", correlationId);
365
+ }
366
+ else {
367
+ this.memoryStorage.setItem(key, value);
368
+ this.logger.verbose("1vzsgt", correlationId);
369
+ }
370
+ perfMeasurement.end({ success: true });
310
371
  }
311
- else {
312
- this.memoryStorage.setItem(key, value);
313
- this.logger.verbose("1vzsgt", correlationId);
372
+ catch {
373
+ if (this.getItem(key) !== persistedValue) {
374
+ perfMeasurement.discard();
375
+ return;
376
+ }
377
+ this.memoryStorage.removeItem(key);
378
+ this.logger.error("0flmza", correlationId);
379
+ perfMeasurement.end({
380
+ success: false,
381
+ errorCode: "cacheUpdateFailed",
382
+ });
314
383
  }
315
- perfMeasurement.end({ success: true });
316
384
  }
317
385
  }
318
386
 
@@ -1 +1 @@
1
- {"version":3,"file":"LocalStorage.mjs","sources":["../../src/cache/LocalStorage.ts"],"sourcesContent":[null],"names":["BrowserConfigurationAuthErrorCodes.storageNotSupported","BrowserPerformanceEvents.Base64Decode","BrowserPerformanceEvents.GenerateHKDF","BrowserPerformanceEvents.GenerateBaseKey","BrowserPerformanceEvents.UrlEncodeArr","BrowserPerformanceEvents.ImportExistingCache","BrowserAuthErrorCodes.uninitializedPublicClientApplication","BrowserPerformanceEvents.Decrypt","BrowserPerformanceEvents.Encrypt","CacheKeys.PREFIX","CacheKeys.getAccountKeysCacheKey","CacheKeys.getTokenKeysCacheKey","BrowserRootPerformanceEvents.LocalStorageUpdated"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;AAGG;AAmCH,MAAM,cAAc,GAAG,uBAAuB,CAAC;AAC/C,MAAM,sBAAsB,GAAG,sBAAsB,CAAC;MAOzC,YAAY,CAAA;AASrB,IAAA,WAAA,CACI,QAAgB,EAChB,MAAc,EACd,iBAAqC,EAAA;AAErC,QAAA,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE;YACtB,MAAM,mCAAmC,CACrCA,mBAAsD,EACtD,EAAE,CACL,CAAC;AACL,QAAA,CAAA;AACD,QAAA,IAAI,CAAC,aAAa,GAAG,IAAI,aAAa,EAAU,CAAC;AACjD,QAAA,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;AACzB,QAAA,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACzB,QAAA,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;AACrB,QAAA,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,SAAS,GAAG,IAAI,gBAAgB,CAAC,sBAAsB,CAAC,CAAC;IAClE,CAAC;IAED,MAAM,UAAU,CAAC,aAAqB,EAAA;AAClC,QAAA,MAAM,OAAO,GAAG,IAAI,aAAa,EAAE,CAAC;QACpC,MAAM,YAAY,GAAG,O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,QAAA,CAAA;QAED,IAAI,CAAC,KAAK,EAAE;AACR,YAAA,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;YACnC,IAAI,CAAC,MAAM,CAAC,OAAO,CACf,QAAA,EAAA,aAAA,CAAA,CAAA;AAGP,QAAA,CAAA;AAAM,aAAA;YACH,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;YACvC,IAAI,CAAC,MAAM,CAAC,OAAO,CACf,QAAA,EAAA,aAAA,CAAA,CAAA;AAGP,QAAA,CAAA;QACD,eAAe,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IAC3C,CAAC;AACJ;;;;"}
1
+ {"version":3,"file":"LocalStorage.mjs","sources":["../../src/cache/LocalStorage.ts"],"sourcesContent":[null],"names":["BrowserConfigurationAuthErrorCodes.storageNotSupported","BrowserPerformanceEvents.Base64Decode","BrowserPerformanceEvents.GenerateHKDF","BrowserPerformanceEvents.GenerateBaseKey","BrowserPerformanceEvents.UrlEncodeArr","BrowserPerformanceEvents.ImportExistingCache","BrowserAuthErrorCodes.uninitializedPublicClientApplication","BrowserPerformanceEvents.Decrypt","BrowserPerformanceEvents.Encrypt","CacheKeys.PREFIX","CacheKeys.getAccountKeysCacheKey","CacheKeys.getTokenKeysCacheKey","CacheKeys.CACHE_KEY_SEPARATOR","BrowserRootPerformanceEvents.LocalStorageUpdated"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;AAGG;AAoCH,MAAM,cAAc,GAAG,uBAAuB,CAAC;AAC/C,MAAM,sBAAsB,GAAG,sBAAsB,CAAC;MAOzC,YAAY,CAAA;AASrB,IAAA,WAAA,CACI,QAAgB,EAChB,MAAc,EACd,iBAAqC,EAAA;AAErC,QAAA,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE;YACtB,MAAM,mCAAmC,CACrCA,mBAAsD,EACtD,EAAE,CACL,CAAC;AACL,QAAA,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MAAM,CAAC,OAAO,CACf,QAAA,EAAA,aAAA,CAAA,CAAA;AAGP,YAAA,CAAA;AAAM,iBAAA;gBACH,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;gBACvC,IAAI,CAAC,MAAM,CAAC,OAAO,CACf,QAAA,EAAA,aAAA,CAAA,CAAA;AAGP,YAAA,CAAA;YACD,eAAe,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;AAC1C,QAAA,CAAA;QAAC,MAAM;YACJ,IAAI,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,cAAc,EAAE;gBACtC,eAAe,CAAC,OAAO,EAAE,CAAC;gBAC1B,OAAO;AACV,YAAA,CAAA;AAED,YAAA,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;YACnC,IAAI,CAAC,MAAM,CAAC,KAAK,CACb,QAAA,EAAA,aAAA,CAAA,CAAA;YAGJ,eAAe,CAAC,GAAG,CAAC;AAChB,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,SAAS,EAAE,mBAAmB;AACjC,aAAA,CAAC,CAAC;AACN,QAAA,CAAA;IACL,CAAC;AACJ;;;;"}
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
1
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
1
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
2
2
  'use strict';
3
3
  import { createBrowserConfigurationAuthError } from '../error/BrowserConfigurationAuthError.mjs';
4
4
  import { storageNotSupported } from '../error/BrowserConfigurationAuthErrorCodes.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
1
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
2
2
  'use strict';
3
3
  import { StubPerformanceClient, AuthToken, Logger, buildStaticAuthorityOptions, AuthorityFactory, Authority, invokeAsync, AccountEntityUtils, buildAccountToCache, CacheHelpers, ScopeSet, TimeUtils } from '@azure/msal-common/browser';
4
4
  import { buildConfiguration } from '../config/Configuration.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
1
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
2
2
  'use strict';
3
3
  import { StubPerformanceClient, ProtocolMode, Logger, LogLevel, createClientConfigurationError, ClientConfigurationErrorCodes, DEFAULT_SYSTEM_OPTIONS, Constants, AzureCloudInstance, StubbedNetworkModule } from '@azure/msal-common/browser';
4
4
  import { BrowserCacheLocation } from '../utils/BrowserConstants.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
1
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
2
2
  'use strict';
3
3
  import { DEFAULT_CRYPTO_IMPLEMENTATION, DEFAULT_TOKEN_BINDING_KEY_MANAGER, buildStaticAuthorityOptions, enforceResourceParameter, TimeUtils, AuthError, Constants, AccountEntityUtils, AuthToken } from '@azure/msal-common/browser';
4
4
  import { AcquireTokenPopup, SsoSilent, AcquireTokenSilent } from '../telemetry/BrowserRootPerformanceEvents.mjs';
@@ -1,7 +1,7 @@
1
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
1
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
2
2
  'use strict';
3
3
  import { CryptoOps } from '../crypto/CryptoOps.mjs';
4
- import { DEFAULT_CRYPTO_IMPLEMENTATION, DEFAULT_TOKEN_BINDING_KEY_MANAGER, buildStaticAuthorityOptions, invokeAsync, enforceResourceParameter, InteractionRequiredAuthError, createClientAuthError, ClientAuthErrorCodes, AccountEntityUtils, AuthToken, CacheHelpers, TimeUtils, Constants, AuthError, getRequestThumbprint, InteractionRequiredAuthErrorCodes } from '@azure/msal-common/browser';
4
+ import { DEFAULT_CRYPTO_IMPLEMENTATION, DEFAULT_TOKEN_BINDING_KEY_MANAGER, buildStaticAuthorityOptions, invokeAsync, enforceResourceParameter, InteractionRequiredAuthError, createClientAuthError, ClientAuthErrorCodes, AccountEntityUtils, AuthToken, CacheHelpers, TimeUtils, Constants, AuthError, InteractionRequiredAuthErrorCodes } from '@azure/msal-common/browser';
5
5
  import { InitializeCache, HandleNativeRedirectPromiseMeasurement, HandleRedirectPromiseMeasurement, NativeInteractionClientAcquireTokenRedirect, AcquireTokenByCodeAsync, SilentCacheClientAcquireToken, SilentRefreshClientAcquireToken, SilentIframeClientAcquireToken, NativeInteractionClientAcquireToken, AcquireTokenSilentAsync, InitializeSilentRequest, AcquireTokenBySilentIframe, AwaitConcurrentIframe, AcquireTokenFromCache, AcquireTokenByRefreshToken, GeneratePkceCodes } from '../telemetry/BrowserPerformanceEvents.mjs';
6
6
  import { InitializeClientApplication, AcquireTokenRedirect, AcquireTokenPreRedirect, AcquireTokenPopup, SsoCapable, SsoSilent, AcquireTokenByCode, AcquireTokenSilent } from '../telemetry/BrowserRootPerformanceEvents.mjs';
7
7
  import { BrowserCacheManager, DEFAULT_BROWSER_CACHE_MANAGER } from '../cache/BrowserCacheManager.mjs';
@@ -27,6 +27,7 @@ import { generatePkceCodes } from '../crypto/PkceGenerator.mjs';
27
27
  import { getPlatformAuthProvider, isPlatformAuthAllowed } from '../broker/nativeBroker/PlatformAuthProvider.mjs';
28
28
  import { collectInstanceStats } from '../utils/MsalFrameStatsUtils.mjs';
29
29
  import { TokenBindingKeyManager } from '../crypto/TokenBindingKeyManager.mjs';
30
+ import { resolveSilentRequestPreparation } from '../request/SilentRequestHelpers.mjs';
30
31
  import { spaCodeAndNativeAccountIdPresent, unableToAcquireTokenFromNativePlatform, authCodeOrNativeAccountIdRequired, nativeConnectionNotEstablished, noAccountError } from '../error/BrowserAuthErrorCodes.mjs';
31
32
 
32
33
  /*
@@ -84,6 +85,9 @@ class StandardController {
84
85
  this.hybridAuthCodeResponses = new Map();
85
86
  // Initialize performance client
86
87
  this.performanceClient = this.config.telemetry.client;
88
+ this.performanceClient.addGlobalFields({
89
+ allowPlatformBroker: this.config.system.allowPlatformBroker,
90
+ });
87
91
  // Initialize environment-specific crypto and token-binding services.
88
92
  if (this.isBrowserEnvironment) {
89
93
  this.browserCrypto = new CryptoOps(this.logger, this.performanceClient);
@@ -344,9 +348,9 @@ class StandardController {
344
348
  enforceResourceParameter(this.config.auth.isMcp, request);
345
349
  this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, InteractionType.Redirect, request);
346
350
  let result;
347
- if (this.platformAuthProvider &&
348
- this.canUsePlatformBroker(request)) {
349
- const nativeClient = new PlatformAuthInteractionClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, ApiId.acquireTokenRedirect, this.performanceClient, this.platformAuthProvider, this.getNativeAccountId(request), this.nativeInternalStorage, correlationId, this.tokenBindingKeyManager);
351
+ const platformAuthProvider = this.platformAuthProvider;
352
+ if (this.canUsePlatformBroker(request) && platformAuthProvider) {
353
+ const nativeClient = new PlatformAuthInteractionClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, ApiId.acquireTokenRedirect, this.performanceClient, platformAuthProvider, this.getNativeAccountId(request), this.nativeInternalStorage, correlationId, this.tokenBindingKeyManager);
350
354
  result = invokeAsync(nativeClient.acquireTokenRedirect.bind(nativeClient), NativeInteractionClientAcquireTokenRedirect, this.logger, this.performanceClient, correlationId)(request, atrMeasurement).catch((e) => {
351
355
  if (e instanceof NativeAuthError &&
352
356
  isFatalNativeAuthError(e)) {
@@ -1031,11 +1035,8 @@ class StandardController {
1031
1035
  canUsePlatformBroker(request, accountId) {
1032
1036
  const correlationId = this.getRequestCorrelationId(request);
1033
1037
  this.logger.trace("1n9lbl", correlationId);
1034
- if (!this.platformAuthProvider) {
1035
- this.logger.trace("0vnu11", correlationId);
1036
- return false;
1037
- }
1038
- if (!isPlatformAuthAllowed(this.config, this.logger, correlationId, this.platformAuthProvider, request.authenticationScheme)) {
1038
+ const platformAuthAllowed = isPlatformAuthAllowed(this.config, this.logger, correlationId, this.platformAuthProvider, request.authenticationScheme, this.performanceClient);
1039
+ if (!platformAuthAllowed) {
1039
1040
  this.logger.trace("0yoy1g", correlationId);
1040
1041
  return false;
1041
1042
  }
@@ -1299,23 +1300,23 @@ class StandardController {
1299
1300
  * @returns
1300
1301
  */
1301
1302
  async acquireTokenSilentDeduped(request, account, correlationId) {
1302
- const thumbprint = getRequestThumbprint(this.config.auth.clientId, {
1303
- ...request,
1304
- authority: request.authority || this.config.auth.authority,
1305
- correlationId: correlationId,
1306
- }, account.homeAccountId);
1307
- const silentRequestKey = JSON.stringify(thumbprint);
1308
- const inProgressRequest = this.activeSilentTokenRequests.get(silentRequestKey);
1303
+ const preparedRequest = resolveSilentRequestPreparation({
1304
+ request,
1305
+ account,
1306
+ correlationId,
1307
+ config: this.config,
1308
+ }, this.platformAuthProvider, this.logger, this.performanceClient);
1309
+ const inProgressRequest = this.activeSilentTokenRequests.get(preparedRequest.key);
1309
1310
  if (typeof inProgressRequest === "undefined") {
1310
1311
  this.logger.verbose("0fcjbk", correlationId);
1311
1312
  this.performanceClient.addFields({ deduped: false }, correlationId);
1312
1313
  const activeRequest = invokeAsync(this.acquireTokenSilentAsync.bind(this), AcquireTokenSilentAsync, this.logger, this.performanceClient, correlationId)({
1313
- ...request,
1314
+ ...preparedRequest.request,
1314
1315
  correlationId,
1315
- }, account);
1316
- this.activeSilentTokenRequests.set(silentRequestKey, activeRequest);
1316
+ }, preparedRequest.account);
1317
+ this.activeSilentTokenRequests.set(preparedRequest.key, activeRequest);
1317
1318
  return activeRequest.finally(() => {
1318
- this.activeSilentTokenRequests.delete(silentRequestKey);
1319
+ this.activeSilentTokenRequests.delete(preparedRequest.key);
1319
1320
  });
1320
1321
  }
1321
1322
  else {
@@ -1429,7 +1430,7 @@ class StandardController {
1429
1430
  */
1430
1431
  async acquireTokenSilentNoIframe(silentRequest, cacheLookupPolicy) {
1431
1432
  // if the cache policy is set to access_token only, we should not be hitting the native layer yet
1432
- if (isPlatformAuthAllowed(this.config, this.logger, silentRequest.correlationId, this.platformAuthProvider, silentRequest.authenticationScheme) &&
1433
+ if (isPlatformAuthAllowed(this.config, this.logger, silentRequest.correlationId, this.platformAuthProvider, silentRequest.authenticationScheme, this.performanceClient) &&
1433
1434
  silentRequest.account.nativeAccountId) {
1434
1435
  this.logger.verbose("0sczo4", silentRequest.correlationId);
1435
1436
  this.performanceClient.addFields({ isPlatformBrokerRequest: true }, silentRequest.correlationId);