@azure/msal-browser 5.29.0 → 5.30.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 (322) 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 +1 -1
  5. package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
  6. package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
  7. package/dist/broker/nativeBroker/PlatformAuthRequest.mjs +1 -1
  8. package/dist/cache/AccountManager.mjs +1 -1
  9. package/dist/cache/AsyncMemoryStorage.mjs +1 -1
  10. package/dist/cache/BrowserCacheManager.mjs +2 -3
  11. package/dist/cache/BrowserCacheManager.mjs.map +1 -1
  12. package/dist/cache/CacheHelpers.mjs +1 -1
  13. package/dist/cache/CacheKeys.mjs +1 -1
  14. package/dist/cache/CookieStorage.mjs +1 -1
  15. package/dist/cache/DatabaseStorage.mjs +1 -1
  16. package/dist/cache/EncryptedData.mjs +1 -1
  17. package/dist/cache/LocalStorage.mjs +1 -1
  18. package/dist/cache/MemoryStorage.mjs +1 -1
  19. package/dist/cache/SessionStorage.mjs +1 -1
  20. package/dist/cache/TokenCache.mjs +1 -1
  21. package/dist/config/Configuration.mjs +11 -2
  22. package/dist/config/Configuration.mjs.map +1 -1
  23. package/dist/controllers/NestedAppAuthController.mjs +1 -1
  24. package/dist/controllers/StandardController.mjs +1 -1
  25. package/dist/crypto/BrowserCrypto.mjs +185 -3
  26. package/dist/crypto/BrowserCrypto.mjs.map +1 -1
  27. package/dist/crypto/CryptoOps.mjs +1 -1
  28. package/dist/crypto/PkceGenerator.mjs +1 -1
  29. package/dist/crypto/SignedHttpRequest.mjs +1 -1
  30. package/dist/crypto/TokenBindingKeyManager.mjs +1 -1
  31. package/dist/custom_auth/CustomAuthConstants.mjs +1 -1
  32. package/dist/custom_auth/CustomAuthPublicClientApplication.mjs +1 -1
  33. package/dist/custom_auth/controller/CustomAuthStandardController.mjs +1 -1
  34. package/dist/custom_auth/core/CustomAuthAuthority.mjs +1 -1
  35. package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +1 -1
  36. package/dist/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
  37. package/dist/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
  38. package/dist/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs +1 -1
  39. package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +1 -1
  40. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -1
  41. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -1
  42. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +1 -1
  43. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
  44. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +1 -1
  45. package/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs +1 -1
  46. package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +1 -1
  47. package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -1
  48. package/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs +1 -1
  49. package/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +1 -1
  50. package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +1 -1
  51. package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs +1 -1
  52. package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs +1 -1
  53. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs +1 -1
  54. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.mjs +1 -1
  55. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.mjs +1 -1
  56. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs +1 -1
  57. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.mjs +1 -1
  58. package/dist/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.mjs +1 -1
  59. package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs +1 -1
  60. package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs +1 -1
  61. package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs +1 -1
  62. package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs +1 -1
  63. package/dist/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.mjs +1 -1
  64. package/dist/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
  65. package/dist/custom_auth/core/error/CustomAuthError.mjs +1 -1
  66. package/dist/custom_auth/core/error/HttpError.mjs +1 -1
  67. package/dist/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
  68. package/dist/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
  69. package/dist/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
  70. package/dist/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
  71. package/dist/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
  72. package/dist/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
  73. package/dist/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
  74. package/dist/custom_auth/core/error/ParsedUrlError.mjs +1 -1
  75. package/dist/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
  76. package/dist/custom_auth/core/error/UnexpectedError.mjs +1 -1
  77. package/dist/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
  78. package/dist/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
  79. package/dist/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
  80. package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
  81. package/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
  82. package/dist/custom_auth/core/interaction_client/jit/JitClient.mjs +1 -1
  83. package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +1 -1
  84. package/dist/custom_auth/core/interaction_client/mfa/MfaClient.mjs +1 -1
  85. package/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +1 -1
  86. package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs +1 -1
  87. package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs +1 -1
  88. package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs +1 -1
  89. package/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
  90. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
  91. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +1 -1
  92. package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
  93. package/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
  94. package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
  95. package/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
  96. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
  97. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
  98. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.mjs +1 -1
  99. package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs +1 -1
  100. package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs +1 -1
  101. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.mjs +1 -1
  102. package/dist/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.mjs +1 -1
  103. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs +1 -1
  104. package/dist/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.mjs +1 -1
  105. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs +1 -1
  106. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs +1 -1
  107. package/dist/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
  108. package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
  109. package/dist/custom_auth/core/telemetry/FlowApiIdHelperV2.mjs +1 -1
  110. package/dist/custom_auth/core/telemetry/PublicApiId.mjs +1 -1
  111. package/dist/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
  112. package/dist/custom_auth/core/utils/CustomHeaderUtils.mjs +1 -1
  113. package/dist/custom_auth/core/utils/UrlUtils.mjs +1 -1
  114. package/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
  115. package/dist/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
  116. package/dist/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
  117. package/dist/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
  118. package/dist/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
  119. package/dist/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
  120. package/dist/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
  121. package/dist/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
  122. package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
  123. package/dist/custom_auth/index.mjs +1 -1
  124. package/dist/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
  125. package/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
  126. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
  127. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
  128. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
  129. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
  130. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
  131. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
  132. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
  133. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
  134. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
  135. package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs +1 -1
  136. package/dist/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateTransitionHandlerV2.mjs +1 -1
  137. package/dist/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
  138. package/dist/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
  139. package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
  140. package/dist/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
  141. package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
  142. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
  143. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -1
  144. package/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +1 -1
  145. package/dist/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
  146. package/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
  147. package/dist/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
  148. package/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
  149. package/dist/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
  150. package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs +1 -1
  151. package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.mjs +1 -1
  152. package/dist/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
  153. package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
  154. package/dist/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
  155. package/dist/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
  156. package/dist/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
  157. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
  158. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
  159. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
  160. package/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
  161. package/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
  162. package/dist/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
  163. package/dist/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
  164. package/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
  165. package/dist/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
  166. package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs +1 -1
  167. package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountCodeRequiredStateV2.mjs +1 -1
  168. package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountPasswordRequiredStateV2.mjs +1 -1
  169. package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountStateTransitionHelperV2.mjs +1 -1
  170. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.mjs +1 -1
  171. package/dist/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
  172. package/dist/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
  173. package/dist/encode/Base64Decode.mjs +1 -1
  174. package/dist/encode/Base64Encode.mjs +1 -1
  175. package/dist/error/BrowserAuthError.mjs +1 -1
  176. package/dist/error/BrowserAuthErrorCodes.mjs +3 -2
  177. package/dist/error/BrowserAuthErrorCodes.mjs.map +1 -1
  178. package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
  179. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  180. package/dist/error/NativeAuthError.mjs +1 -1
  181. package/dist/error/NativeAuthErrorCodes.mjs +1 -1
  182. package/dist/error/NestedAppAuthError.mjs +1 -1
  183. package/dist/event/EventHandler.mjs +1 -1
  184. package/dist/event/EventMessage.mjs +1 -1
  185. package/dist/event/EventType.mjs +1 -1
  186. package/dist/index.mjs +1 -1
  187. package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
  188. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  189. package/dist/interaction_client/PlatformAuthInteractionClient.mjs +1 -1
  190. package/dist/interaction_client/PopupClient.mjs +27 -21
  191. package/dist/interaction_client/PopupClient.mjs.map +1 -1
  192. package/dist/interaction_client/RedirectClient.mjs +13 -11
  193. package/dist/interaction_client/RedirectClient.mjs.map +1 -1
  194. package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
  195. package/dist/interaction_client/SilentCacheClient.mjs +1 -1
  196. package/dist/interaction_client/SilentIframeClient.mjs +5 -8
  197. package/dist/interaction_client/SilentIframeClient.mjs.map +1 -1
  198. package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
  199. package/dist/interaction_client/StandardInteractionClient.mjs +5 -1
  200. package/dist/interaction_client/StandardInteractionClient.mjs.map +1 -1
  201. package/dist/interaction_handler/InteractionHandler.mjs +1 -1
  202. package/dist/interaction_handler/SilentHandler.mjs +1 -1
  203. package/dist/log-strings-mapping.json +701 -697
  204. package/dist/naa/BridgeError.mjs +1 -1
  205. package/dist/naa/BridgeProxy.mjs +1 -1
  206. package/dist/naa/BridgeStatusCode.mjs +1 -1
  207. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
  208. package/dist/navigation/NavigationClient.mjs +1 -1
  209. package/dist/network/FetchClient.mjs +1 -1
  210. package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
  211. package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
  212. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  213. package/dist/packageMetadata.mjs +2 -2
  214. package/dist/popup_relay/constants.mjs +24 -6
  215. package/dist/popup_relay/constants.mjs.map +1 -1
  216. package/dist/popup_relay/index.mjs +142 -44
  217. package/dist/popup_relay/index.mjs.map +1 -1
  218. package/dist/popup_relay/relayClient.mjs +66 -23
  219. package/dist/popup_relay/relayClient.mjs.map +1 -1
  220. package/dist/protocol/Authorize.mjs +70 -13
  221. package/dist/protocol/Authorize.mjs.map +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 +2 -1
  225. package/dist/request/SilentRequestHelpers.mjs.map +1 -1
  226. package/dist/response/ResponseHandler.mjs +1 -1
  227. package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  228. package/dist/telemetry/BrowserPerformanceEvents.mjs +9 -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/BrowserDetection.mjs +1 -1
  234. package/dist/utils/BrowserProtocolUtils.mjs +1 -1
  235. package/dist/utils/BrowserUtils.mjs +1 -1
  236. package/dist/utils/Helpers.mjs +1 -1
  237. package/dist/utils/IframeMonitor.mjs +1 -1
  238. package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
  239. package/dist/utils/PopupMonitor.mjs +1 -1
  240. package/dist/utils/PopupOriginCheck.mjs +1 -1
  241. package/dist/webBrokerBridge/PendingRequestRegistry.mjs +1 -1
  242. package/dist/webBrokerBridge/PerfEventNames.mjs +1 -1
  243. package/dist/webBrokerBridge/WebBrokerBridgeError.mjs +1 -1
  244. package/dist/webBrokerBridge/WebBrokerBridgeErrorMap.mjs +1 -1
  245. package/dist/webBrokerBridge/adapter/CrossVersionRequestAdapter.mjs +1 -1
  246. package/dist/webBrokerBridge/index.mjs +1 -1
  247. package/lib/custom-auth-path/log-strings-mapping.json +13 -9
  248. package/lib/custom-auth-path/msal-custom-auth.cjs +519 -143
  249. package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
  250. package/lib/custom-auth-path/msal-custom-auth.js +519 -143
  251. package/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
  252. package/lib/log-strings-mapping.json +13 -9
  253. package/lib/msal-browser.cjs +523 -145
  254. package/lib/msal-browser.cjs.map +1 -1
  255. package/lib/msal-browser.js +523 -145
  256. package/lib/msal-browser.js.map +1 -1
  257. package/lib/msal-browser.min.js +2 -2
  258. package/lib/popup-relay/msal-popup-relay.cjs +231 -60
  259. package/lib/popup-relay/msal-popup-relay.cjs.map +1 -1
  260. package/lib/popup-relay/msal-popup-relay.js +231 -60
  261. package/lib/popup-relay/msal-popup-relay.js.map +1 -1
  262. package/lib/popup-relay/msal-popup-relay.min.js +2 -2
  263. package/lib/redirect-bridge/msal-redirect-bridge.cjs +39 -10
  264. package/lib/redirect-bridge/msal-redirect-bridge.cjs.map +1 -1
  265. package/lib/redirect-bridge/msal-redirect-bridge.js +39 -10
  266. package/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -1
  267. package/lib/redirect-bridge/msal-redirect-bridge.min.js +2 -2
  268. package/lib/web-broker-bridge/msal-web-broker-bridge.cjs +1 -1
  269. package/package.json +2 -2
  270. package/src/cache/BrowserCacheManager.ts +1 -5
  271. package/src/config/Configuration.ts +35 -0
  272. package/src/crypto/BrowserCrypto.ts +363 -0
  273. package/src/error/AsymmetricEarSubErrors.ts +18 -0
  274. package/src/error/BrowserAuthErrorCodes.ts +1 -0
  275. package/src/interaction_client/PopupClient.ts +59 -29
  276. package/src/interaction_client/RedirectClient.ts +15 -14
  277. package/src/interaction_client/SilentIframeClient.ts +9 -13
  278. package/src/interaction_client/StandardInteractionClient.ts +4 -0
  279. package/src/packageMetadata.ts +1 -1
  280. package/src/popup_relay/constants.ts +34 -3
  281. package/src/popup_relay/index.ts +200 -45
  282. package/src/popup_relay/relayClient.ts +108 -24
  283. package/src/protocol/Authorize.ts +118 -11
  284. package/src/request/PopupRequest.ts +1 -0
  285. package/src/request/RedirectRequest.ts +1 -0
  286. package/src/request/SilentRequestHelpers.ts +1 -0
  287. package/src/request/SsoSilentRequest.ts +1 -0
  288. package/src/telemetry/BrowserPerformanceEvents.ts +7 -0
  289. package/types/cache/BrowserCacheManager.d.ts.map +1 -1
  290. package/types/config/Configuration.d.ts +14 -0
  291. package/types/config/Configuration.d.ts.map +1 -1
  292. package/types/crypto/BrowserCrypto.d.ts +34 -0
  293. package/types/crypto/BrowserCrypto.d.ts.map +1 -1
  294. package/types/custom_auth/CustomAuthConstants.d.ts +1 -1
  295. package/types/error/AsymmetricEarSubErrors.d.ts +14 -0
  296. package/types/error/AsymmetricEarSubErrors.d.ts.map +1 -0
  297. package/types/error/BrowserAuthErrorCodes.d.ts +1 -0
  298. package/types/error/BrowserAuthErrorCodes.d.ts.map +1 -1
  299. package/types/interaction_client/PopupClient.d.ts +3 -1
  300. package/types/interaction_client/PopupClient.d.ts.map +1 -1
  301. package/types/interaction_client/RedirectClient.d.ts +0 -1
  302. package/types/interaction_client/RedirectClient.d.ts.map +1 -1
  303. package/types/interaction_client/SilentIframeClient.d.ts.map +1 -1
  304. package/types/interaction_client/StandardInteractionClient.d.ts.map +1 -1
  305. package/types/packageMetadata.d.ts +1 -1
  306. package/types/popup_relay/constants.d.ts +10 -3
  307. package/types/popup_relay/constants.d.ts.map +1 -1
  308. package/types/popup_relay/index.d.ts +27 -11
  309. package/types/popup_relay/index.d.ts.map +1 -1
  310. package/types/popup_relay/relayClient.d.ts +9 -11
  311. package/types/popup_relay/relayClient.d.ts.map +1 -1
  312. package/types/protocol/Authorize.d.ts +5 -0
  313. package/types/protocol/Authorize.d.ts.map +1 -1
  314. package/types/request/PopupRequest.d.ts +1 -1
  315. package/types/request/PopupRequest.d.ts.map +1 -1
  316. package/types/request/RedirectRequest.d.ts +1 -1
  317. package/types/request/RedirectRequest.d.ts.map +1 -1
  318. package/types/request/SilentRequestHelpers.d.ts.map +1 -1
  319. package/types/request/SsoSilentRequest.d.ts +1 -1
  320. package/types/request/SsoSilentRequest.d.ts.map +1 -1
  321. package/types/telemetry/BrowserPerformanceEvents.d.ts +7 -0
  322. package/types/telemetry/BrowserPerformanceEvents.d.ts.map +1 -1
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v5.29.0 2026-11-06 */
1
+ /*! @azure/msal-browser v5.30.0 2026-11-18 */
2
2
  'use strict';
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
@@ -6,24 +6,7 @@
6
6
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.msalPopupRelay = {}));
7
7
  })(this, (function (exports) { 'use strict';
8
8
 
9
- /*
10
- * Copyright (c) Microsoft Corporation. All rights reserved.
11
- * Licensed under the MIT License.
12
- */
13
- /**
14
- * postMessage envelope type used to relay an auth response from a popup-relay
15
- * page (see `runPopupRelay`) back to the embedded frame that opened it. See
16
- * {@link BrowserAuthOptions.popupRelayUri}.
17
- *
18
- * Kept dependency-free so both the relay-page entry (`./index.js`) and the
19
- * client-side helpers (`./relayClient.js`) can import it without either bundle
20
- * pulling in the other's dependencies.
21
- *
22
- * @internal
23
- */
24
- const POPUP_RELAY_RESPONSE_TYPE = "msal:popup-relay-response:v1";
25
-
26
- /*! @azure/msal-common v16.16.1 2026-11-06 */
9
+ /*! @azure/msal-common v16.17.0 2026-11-18 */
27
10
  /*
28
11
  * Copyright (c) Microsoft Corporation. All rights reserved.
29
12
  * Licensed under the MIT License.
@@ -79,6 +62,38 @@
79
62
  return new BrowserAuthError(errorCode, correlationId, subError);
80
63
  }
81
64
 
65
+ /*
66
+ * Copyright (c) Microsoft Corporation. All rights reserved.
67
+ * Licensed under the MIT License.
68
+ */
69
+ /**
70
+ * postMessage envelope type used to relay an auth response from a popup-relay
71
+ * page (see `runPopupRelay`) back to the embedded frame that opened it. See
72
+ * {@link BrowserAuthOptions.popupRelayUri}.
73
+ *
74
+ * Shared by the relay-page entry and client helpers without importing either
75
+ * implementation into the other bundle.
76
+ *
77
+ * @internal
78
+ */
79
+ const POPUP_RELAY_RESPONSE_TYPE = "msal:popup-relay-response:v1";
80
+ /** @internal Response bound to an authenticated v2 relay document. */
81
+ const POPUP_RELAY_V2_RESPONSE_TYPE = "msal:popup-relay-response:v2";
82
+ /** @internal Ready signal for the authenticated popup-relay request handoff. */
83
+ const POPUP_RELAY_READY_TYPE = "msal:popup-relay-ready:v2";
84
+ /** @internal Request delivered only to the same-origin relay window. */
85
+ const POPUP_RELAY_REQUEST_TYPE = "msal:popup-relay-request:v2";
86
+ /** @internal Resolve the compatibility default without downgrading invalid versions. */
87
+ function getPopupRelayProtocolVersion(version, correlationId = "") {
88
+ if (version === undefined) {
89
+ return 1;
90
+ }
91
+ if (version !== 1 && version !== 2) {
92
+ throw createBrowserAuthError(popupRelayUnsupportedFlow, correlationId, "popup_relay_invalid_protocol");
93
+ }
94
+ return version;
95
+ }
96
+
82
97
  /*
83
98
  * Copyright (c) Microsoft Corporation. All rights reserved.
84
99
  * Licensed under the MIT License.
@@ -94,6 +109,65 @@
94
109
  InteractionType["None"] = "none";
95
110
  })(InteractionType || (InteractionType = {}));
96
111
 
112
+ /*
113
+ * Copyright (c) Microsoft Corporation. All rights reserved.
114
+ * Licensed under the MIT License.
115
+ */
116
+ // UUID hex digits
117
+ const UUID_CHARS = "0123456789abcdef";
118
+ // Array to store UINT32 random value
119
+ const UINT32_ARR = new Uint32Array(1);
120
+ /**
121
+ * Returns random Uint32 value.
122
+ * @returns {number}
123
+ */
124
+ function getRandomUint32() {
125
+ window.crypto.getRandomValues(UINT32_ARR);
126
+ return UINT32_ARR[0];
127
+ }
128
+ /**
129
+ * Creates a UUID v7 from the current timestamp.
130
+ * Implementation relies on the system clock to guarantee increasing order of generated identifiers.
131
+ * @returns {number}
132
+ */
133
+ function createNewGuid() {
134
+ const currentTimestamp = Date.now();
135
+ const baseRand = getRandomUint32() * 0x400 + (getRandomUint32() & 0x3ff);
136
+ // Result byte array
137
+ const bytes = new Uint8Array(16);
138
+ // A 12-bit `rand_a` field value
139
+ const randA = Math.trunc(baseRand / 2 ** 30);
140
+ // The higher 30 bits of 62-bit `rand_b` field value
141
+ const randBHi = baseRand & (2 ** 30 - 1);
142
+ // The lower 32 bits of 62-bit `rand_b` field value
143
+ const randBLo = getRandomUint32();
144
+ bytes[0] = currentTimestamp / 2 ** 40;
145
+ bytes[1] = currentTimestamp / 2 ** 32;
146
+ bytes[2] = currentTimestamp / 2 ** 24;
147
+ bytes[3] = currentTimestamp / 2 ** 16;
148
+ bytes[4] = currentTimestamp / 2 ** 8;
149
+ bytes[5] = currentTimestamp;
150
+ bytes[6] = 0x70 | (randA >>> 8);
151
+ bytes[7] = randA;
152
+ bytes[8] = 0x80 | (randBHi >>> 24);
153
+ bytes[9] = randBHi >>> 16;
154
+ bytes[10] = randBHi >>> 8;
155
+ bytes[11] = randBHi;
156
+ bytes[12] = randBLo >>> 24;
157
+ bytes[13] = randBLo >>> 16;
158
+ bytes[14] = randBLo >>> 8;
159
+ bytes[15] = randBLo;
160
+ let text = "";
161
+ for (let i = 0; i < bytes.length; i++) {
162
+ text += UUID_CHARS.charAt(bytes[i] >>> 4);
163
+ text += UUID_CHARS.charAt(bytes[i] & 0xf);
164
+ if (i === 3 || i === 5 || i === 7 || i === 9) {
165
+ text += "-";
166
+ }
167
+ }
168
+ return text;
169
+ }
170
+
97
171
  /*
98
172
  * Copyright (c) Microsoft Corporation. All rights reserved.
99
173
  * Licensed under the MIT License.
@@ -170,12 +244,10 @@
170
244
  });
171
245
  }
172
246
  /**
173
- * Validates a navigation target taken from the relay page's hash before it can
247
+ * Validates a navigation target before it can
174
248
  * reach `window.open` or a form `action`.
175
249
  *
176
- * The hash is *not* authority: anyone can craft a link to the deployed relay
177
- * page, so a target must be proven safe rather than assumed to have been built
178
- * by MSAL. Only absolute `https:` URLs without embedded credentials are
250
+ * Only absolute `https:` URLs without embedded credentials are
179
251
  * accepted, which rules out active/local schemes (`javascript:`, `data:`,
180
252
  * `blob:`, `vbscript:`, `file:`) that would otherwise execute in — or read
181
253
  * from — the relay page's own first-party security origin. `https:`-only also
@@ -218,24 +290,16 @@
218
290
  return raw;
219
291
  }
220
292
  /**
221
- * Parses and fully validates the relayed request carried in the relay page's
222
- * hash. Every field is treated as attacker-controlled: the shape is checked
223
- * exactly (no implicit GET fallback for an unknown `method`) and both
293
+ * Fully validates a v1 descriptor or an authenticated v2 request. The shape
294
+ * is checked exactly (no implicit GET fallback for an unknown `method`) and both
224
295
  * navigation targets — the GET `url` and the POST `action` — are run through
225
296
  * {@link validateNavigationTarget}.
226
297
  */
227
298
  function parseRelayRequest(rawReq, allowedAuthorityOrigins) {
228
- let parsed;
229
- try {
230
- parsed = JSON.parse(rawReq);
231
- }
232
- catch (e) {
233
- parsed = null;
234
- }
235
- if (typeof parsed !== "object" || parsed === null) {
299
+ if (typeof rawReq !== "object" || rawReq === null) {
236
300
  throwRelayError(BAD_REQUEST_SUBERROR);
237
301
  }
238
- const request = parsed;
302
+ const request = rawReq;
239
303
  const id = request.id;
240
304
  if (typeof id !== "string" || !id) {
241
305
  throwRelayError(BAD_REQUEST_SUBERROR);
@@ -288,17 +352,22 @@
288
352
  /**
289
353
  * Entry point for the top-level "popup-relay" page referenced by
290
354
  * `auth.popupRelayUri`. Call this from the relay page (which MSAL opens as a
291
- * top-level popup from inside an embedded, cross-origin iframe). It:
355
+ * top-level popup from inside an embedded, cross-origin iframe).
356
+ *
357
+ * V1 (the compatibility default) is deprecated due to security concerns. It
358
+ * executes validated but unauthenticated fragment descriptors and returns the
359
+ * legacy response envelope. It retains the legacy risk when origins are not
360
+ * pinned; retire that endpoint after migrating callers.
361
+ *
362
+ * V2 must be explicitly selected on both the app and its separate relay
363
+ * endpoint. It:
292
364
  *
293
- * 1. Reads the IdP navigation MSAL passed in this page's hash (a GET URL, or a
294
- * POST form for the form_post / EAR response modes), then scrubs the hash.
295
- * 2. Validates that navigation. The relay page is directly reachable, so the
296
- * hash is untrusted input: the request shape is checked exactly and the
297
- * navigation target must be an absolute `https:` URL (optionally pinned to
298
- * {@link PopupRelayOptions.allowedAuthorityOrigins}). Anything else — in
299
- * particular active schemes such as `javascript:` — is rejected before it
300
- * can reach `window.open` or a form `action`.
301
- * 3. Opens the IdP child popup and performs that navigation (the relay page
365
+ * 1. Reads the request id from the hash, then scrubs the hash. Navigation
366
+ * descriptors in the hash are never executed.
367
+ * 2. Reserves a blank child popup during the user gesture, then requests the
368
+ * navigation from the opener through an origin- and source-checked
369
+ * postMessage handoff bound to this relay document's nonce.
370
+ * 3. Validates and performs the authenticated navigation (the relay page
302
371
  * stays put, so its `window.opener` link back to the embedded frame
303
372
  * survives COOP).
304
373
  * 4. Waits for the child's redirect URI page (which must run the redirect
@@ -317,10 +386,27 @@
317
386
  * @param options - {@link PopupRelayOptions}
318
387
  */
319
388
  function runPopupRelay(options) {
389
+ const protocolVersion = getPopupRelayProtocolVersion(options?.protocolVersion);
320
390
  const opener = window.opener;
321
391
  const targetOrigin = window.location.origin;
322
392
  const hashParams = new URLSearchParams(window.location.hash.replace(/^#/, ""));
323
- const rawReq = hashParams.get("req") || "";
393
+ const incomingVersion = hashParams.has("id") ? 2 : 1;
394
+ let legacyDescriptor;
395
+ if (incomingVersion === 1) {
396
+ try {
397
+ legacyDescriptor = JSON.parse(hashParams.get("req") || "");
398
+ }
399
+ catch {
400
+ legacyDescriptor = null;
401
+ }
402
+ }
403
+ let id = hashParams.get("id") || "";
404
+ if (incomingVersion === 1 &&
405
+ legacyDescriptor &&
406
+ typeof legacyDescriptor === "object" &&
407
+ "id" in legacyDescriptor) {
408
+ id = legacyDescriptor.id;
409
+ }
324
410
  // Scrub the relayed request out of the relay page's own URL immediately.
325
411
  if (typeof window.history.replaceState === "function") {
326
412
  window.history.replaceState(null, "", window.location.origin + window.location.pathname);
@@ -328,14 +414,28 @@
328
414
  if (!opener) {
329
415
  throw createBrowserAuthError(popupRelayUnsupportedFlow, "", "popup_relay_no_opener");
330
416
  }
331
- /*
332
- * Validate everything before opening anything: the relay page is directly
333
- * reachable, so the hash is attacker-controlled input, not authority.
334
- */
335
- const request = parseRelayRequest(rawReq, options?.allowedAuthorityOrigins);
336
- const id = request.id;
417
+ if (typeof id !== "string" || !id) {
418
+ throwRelayError(BAD_REQUEST_SUBERROR);
419
+ }
420
+ if (incomingVersion !== protocolVersion) {
421
+ const error = createBrowserAuthError(popupRelayUnsupportedFlow, "", "popup_relay_protocol_mismatch");
422
+ opener.postMessage({
423
+ type: incomingVersion === 1
424
+ ? POPUP_RELAY_RESPONSE_TYPE
425
+ : POPUP_RELAY_V2_RESPONSE_TYPE,
426
+ id,
427
+ error: error.errorCode,
428
+ subError: error.subError,
429
+ }, targetOrigin);
430
+ throw error;
431
+ }
432
+ const legacyRequest = protocolVersion === 1
433
+ ? parseRelayRequest(legacyDescriptor, options?.allowedAuthorityOrigins)
434
+ : undefined;
435
+ const nonce = protocolVersion === 2 ? createNewGuid() : undefined;
337
436
  const channel = new BroadcastChannel(id);
338
437
  let settled = false;
438
+ let requestReceived = protocolVersion === 1;
339
439
  /*
340
440
  * Timer handles are kept on a const holder so relay() (declared before the
341
441
  * timers are created) can clear them — `let` handles trip prefer-const, and
@@ -355,7 +455,16 @@
355
455
  }
356
456
  clearInterval(timers.closedPoll);
357
457
  clearTimeout(timers.timeoutId);
358
- opener.postMessage({ type: POPUP_RELAY_RESPONSE_TYPE, id, ...message }, targetOrigin);
458
+ window.removeEventListener("message", onRequest);
459
+ window.removeEventListener("pagehide", onPageHide);
460
+ opener.postMessage({
461
+ type: protocolVersion === 1
462
+ ? POPUP_RELAY_RESPONSE_TYPE
463
+ : POPUP_RELAY_V2_RESPONSE_TYPE,
464
+ id,
465
+ ...(protocolVersion === 2 ? { nonce } : {}),
466
+ ...message,
467
+ }, targetOrigin);
359
468
  setTimeout(() => {
360
469
  try {
361
470
  window.close();
@@ -368,21 +477,75 @@
368
477
  // The redirect bridge broadcasts the raw auth response payload here.
369
478
  channel.onmessage = (event) => {
370
479
  const payload = event.data && event.data.payload;
371
- if (payload) {
480
+ if (requestReceived && payload) {
372
481
  relay({ payload });
373
482
  }
374
483
  };
484
+ const onRequest = (event) => {
485
+ const data = event.data;
486
+ if (settled ||
487
+ requestReceived ||
488
+ protocolVersion !== 2 ||
489
+ !childPopup ||
490
+ event.origin !== targetOrigin ||
491
+ event.source !== opener ||
492
+ !data ||
493
+ data.type !== POPUP_RELAY_REQUEST_TYPE ||
494
+ data.id !== id ||
495
+ data.nonce !== nonce) {
496
+ return;
497
+ }
498
+ window.removeEventListener("message", onRequest);
499
+ try {
500
+ const request = parseRelayRequest(data.request, options?.allowedAuthorityOrigins);
501
+ if (request.id !== id) {
502
+ throwRelayError(BAD_REQUEST_SUBERROR);
503
+ }
504
+ requestReceived = true;
505
+ if (request.method === "GET") {
506
+ childPopup.location.replace(request.url);
507
+ }
508
+ else {
509
+ createForm(childPopup.document, request.action, request.fields).submit();
510
+ }
511
+ }
512
+ catch (e) {
513
+ relay({
514
+ error: e instanceof BrowserAuthError
515
+ ? e.errorCode
516
+ : popupWindowError,
517
+ subError: e instanceof BrowserAuthError
518
+ ? e.subError
519
+ : "popup_relay_navigation_failed",
520
+ });
521
+ childPopup.close();
522
+ }
523
+ };
375
524
  const features = buildChildPopupFeatures(options?.popupWindowAttributes);
376
- const childPopup = request.method === "POST"
377
- ? window.open("about:blank", "msalPopupRelayChild", features)
378
- : window.open(request.url, "msalPopupRelayChild", features);
525
+ // Reserve a fresh window before the asynchronous handoff consumes activation.
526
+ const childPopup = legacyRequest?.method === "GET"
527
+ ? window.open(legacyRequest.url, "msalPopupRelayChild", features)
528
+ : window.open("about:blank", protocolVersion === 1 ? "msalPopupRelayChild" : "_blank", features);
379
529
  if (!childPopup) {
380
530
  relay({ error: popupWindowError });
381
531
  return;
382
532
  }
383
- if (request.method === "POST") {
384
- createForm(childPopup.document, request.action, request.fields).submit();
533
+ function onPageHide() {
534
+ settled = true;
535
+ window.removeEventListener("message", onRequest);
536
+ window.removeEventListener("pagehide", onPageHide);
537
+ clearInterval(timers.closedPoll);
538
+ clearTimeout(timers.timeoutId);
539
+ channel.close();
540
+ childPopup?.close();
541
+ }
542
+ if (protocolVersion === 2) {
543
+ window.addEventListener("message", onRequest);
385
544
  }
545
+ else if (legacyRequest?.method === "POST") {
546
+ createForm(childPopup.document, legacyRequest.action, legacyRequest.fields).submit();
547
+ }
548
+ window.addEventListener("pagehide", onPageHide);
386
549
  timers.closedPoll = window.setInterval(() => {
387
550
  if (childPopup.closed && !settled) {
388
551
  /*
@@ -410,9 +573,17 @@
410
573
  catch (e) {
411
574
  /* ignore */
412
575
  }
413
- relay({ error: timedOut });
576
+ relay({
577
+ error: timedOut,
578
+ subError: requestReceived
579
+ ? undefined
580
+ : "popup_relay_handshake_timeout",
581
+ });
414
582
  }
415
583
  }, options?.timeoutMs || DEFAULT_POPUP_RELAY_TIMEOUT_MS);
584
+ if (protocolVersion === 2) {
585
+ opener.postMessage({ type: POPUP_RELAY_READY_TYPE, id, nonce }, targetOrigin);
586
+ }
416
587
  }
417
588
 
418
589
  exports.runPopupRelay = runPopupRelay;
@@ -1 +1 @@
1
- {"version":3,"file":"msal-popup-relay.js","sources":["../../../../src/popup_relay/constants.ts","../../../msal-common/dist-browser/error/AuthError.mjs","../../../../src/error/BrowserAuthErrorCodes.ts","../../../../src/error/BrowserAuthError.ts","../../../../src/utils/BrowserConstants.ts","../../../../src/protocol/Authorize.ts","../../../../src/popup_relay/index.ts"],"sourcesContent":[null,"/*! @azure/msal-common v16.16.1 2026-11-06 */\n'use strict';\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nfunction getDefaultErrorMessage(code) {\r\n return `See https://aka.ms/msal.js.errors#${code} for details`;\r\n}\r\n/**\r\n * General error class thrown by the MSAL.js library.\r\n */\r\nclass AuthError extends Error {\r\n constructor(errorCode, correlationId, errorMessage, suberror) {\r\n const message = errorMessage ||\r\n (errorCode ? getDefaultErrorMessage(errorCode) : \"\");\r\n const errorString = message ? `${errorCode}: ${message}` : errorCode;\r\n super(errorString);\r\n Object.setPrototypeOf(this, AuthError.prototype);\r\n this.errorCode = errorCode || \"\";\r\n this.errorMessage = message || \"\";\r\n this.subError = suberror || \"\";\r\n this.correlationId = correlationId;\r\n this.name = \"AuthError\";\r\n }\r\n}\r\nfunction createAuthError(code, correlationId, additionalMessage) {\r\n return new AuthError(code, correlationId, additionalMessage || getDefaultErrorMessage(code));\r\n}\n\nexport { AuthError, createAuthError, getDefaultErrorMessage };\n//# sourceMappingURL=AuthError.mjs.map\n",null,null,null,null,null],"names":["getDefaultErrorMessage","BrowserAuthErrorCodes.popupRelayUnsupportedFlow","Br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M,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,qBAAqB,EAAE,QAAQ,CAAC,CAAC;QAEpE,IAAI,CAAC,UAAU,EAAE;YACb,KAAK,CAAC,EAAE,KAAK,EAAEC,gBAAsC,EAAE,CAAC,CAAC;YACzD,OAAO;IACV,IAAA,CAAA;IAED,IAAA,IAAI,OAAO,CAAC,MAAM,KAAK,MAAM,EAAE;IAC3B,QAAA,UAAU,CACN,UAAU,CAAC,QAAQ,EACnB,OAAO,CAAC,MAAM,EACd,OAAO,CAAC,MAAM,CACjB,CAAC,MAAM,EAAE,CAAC;IACd,IAAA,CAAA;QAED,MAAM,CAAC,UAAU,GAAG,MAAM,CAAC,WAAW,CAAC,MAAK;IACxC,QAAA,IAAI,UAAU,CAAC,MAAM,IAAI,CAAC,OAAO,EAAE;IAC/B;;;;;;;IAOG;IACH,YAAA,YAAY,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;gBAC/B,KAAK,CAAC,EAAE,KAAK,EAAEC,aAAmC,EAAE,CAAC,CAAC;IACzD,QAAA,CAAA;QACL,CAAC,EAAE,GAAG,CAAC,CAAC;QAER,MAAM,CAAC,SAAS,GAAG,MAAM,CAAC,UAAU,CAAC,MAAK;YACtC,IAAI,CAAC,OAAO,EAAE;IACV;;;IAGG;IACH,YAAA,aAAa,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;gBACjC,IAAI;oBACA,UAAU,CAAC,KAAK,EAAE,CAAC;IACtB,YAAA,CAAA;IAAC,YAAA,OAAO,CAAC,EAAE;;IAEX,YAAA,CAAA;gBACD,KAAK,CAAC,EAAE,KAAK,EAAEC,QAA8B,EAAE,CAAC,CAAC;IACpD,QAAA,CAAA;IACL,IAAA,CAAC,EAAE,OAAO,EAAE,SAAS,IAAI,8BAA8B,CAAC,CAAC;IAC7D;;;;;;;;"}
1
+ {"version":3,"file":"msal-popup-relay.js","sources":["../../../msal-common/dist-browser/error/AuthError.mjs","../../../../src/error/BrowserAuthErrorCodes.ts","../../../../src/error/BrowserAuthError.ts","../../../../src/popup_relay/constants.ts","../../../../src/utils/BrowserConstants.ts","../../../../src/crypto/BrowserCrypto.ts","../../../../src/protocol/Authorize.ts","../../../../src/popup_relay/index.ts"],"sourcesContent":["/*! @azure/msal-common v16.17.0 2026-11-18 */\n'use strict';\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nfunction getDefaultErrorMessage(code) {\r\n return `See https://aka.ms/msal.js.errors#${code} for details`;\r\n}\r\n/**\r\n * General error class thrown by the MSAL.js library.\r\n */\r\nclass AuthError extends Error {\r\n constructor(errorCode, correlationId, errorMessage, suberror) {\r\n const message = errorMessage ||\r\n (errorCode ? getDefaultErrorMessage(errorCode) : \"\");\r\n const errorString = message ? `${errorCode}: ${message}` : errorCode;\r\n super(errorString);\r\n Object.setPrototypeOf(this, AuthError.prototype);\r\n this.errorCode = errorCode || \"\";\r\n this.errorMessage = message || \"\";\r\n this.subError = suberror || \"\";\r\n this.correlationId = correlationId;\r\n this.name = \"AuthError\";\r\n }\r\n}\r\nfunction createAuthError(code, correlationId, additionalMessage) {\r\n return new AuthError(code, correlationId, additionalMessage || getDefaultErrorMessage(code));\r\n}\n\nexport { AuthError, createAuthError, getDefaultErrorMessage };\n//# sourceMappingURL=AuthError.mjs.map\n",null,null,null,null,null,null,null],"names":["getDefaultErrorMessage","BrowserAuthErrorCodes.popupRelayUnsupportedFlow","BrowserAuthErrorCodes.popupWindowError","BrowserAuthErrorCodes.userCancelled","BrowserAuthErrorCodes.timedOut"],"mappings":";;;;;;;;IAAA;IAEA;IACA;IACA;IACA;IACA,SAASA,wBAAsB,CAAC,IAAI,EAAE;IACtC,IAAI,OAAO,CAAC,kCAAkC,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;IACnE,CAAC;IACD;IACA;IACA;IACA,MAAM,SAAS,SAAS,KAAK,CAAC;IAC9B,IAAI,WAAW,CAAC,SAAS,EAAE,aAAa,EAAE,Y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(o,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((o="undefined"!=typeof globalThis?globalThis:o||self).msalPopupRelay={})}(this,function(o){class t extends Error{constructor(o,e,r,n){const i=r||(o?`See https://aka.ms/msal.js.errors#${o} for details`:"");super(i?`${o}: ${i}`:o),Object.setPrototypeOf(this,t.prototype),this.errorCode=o||"",this.errorMessage=i||"",this.subError=n||"",this.correlationId=e,this.name="AuthError"}}const e="popup_relay_unsupported_flow";class r extends t{constructor(o,t,e){super(o,t,`See https://aka.ms/msal.js.errors#${o} for details`,e),Object.setPrototypeOf(this,r.prototype),this.name="BrowserAuthError"}}function n(o,t,e){return new r(o,t,e)}var i;!function(o){o.Redirect="redirect",o.Popup="popup",o.Silent="silent",o.None="none"}(i||(i={}));const s="popup_relay_bad_request",p="popup_relay_invalid_allowed_origin";function a(o){throw n(e,"",o)}function l(o){try{return new URL(o)}catch(o){return null}}function u(o,t){"string"==typeof o&&o||a(s);const e=l(o);(!e||"https:"!==e.protocol||e.username||e.password)&&a("popup_relay_unsafe_url"),void 0===t||Array.isArray(t)||a(p);const r=void 0===t?void 0:function(o){return o.map(o=>{const t="string"==typeof o?l(o):null;return(!t||"https:"!==t.protocol||t.username||t.password)&&a(p),t.origin})}(t);return r&&r.indexOf(e.origin)<0&&a("popup_relay_untrusted_authority"),o}o.runPopupRelay=function(o){const t=window.opener,r=window.location.origin,i=new URLSearchParams(window.location.hash.replace(/^#/,"")).get("req")||"";if("function"==typeof window.history.replaceState&&window.history.replaceState(null,"",window.location.origin+window.location.pathname),!t)throw n(e,"","popup_relay_no_opener");const p=function(o,t){let e;try{e=JSON.parse(o)}catch(o){e=null}"object"==typeof e&&null!==e||a(s);const r=e,n=r.id;if("string"==typeof n&&n||a(s),"GET"===r.method)return{id:n,method:"GET",url:u(r.url,t)};if("POST"===r.method){const o=u(r.action,t),e=r.fields;("object"!=typeof e||null===e||Array.isArray(e))&&a(s);const i={};return Object.keys(e).forEach(o=>{const t=e[o];"string"!=typeof t&&a(s),i[o]=t}),{id:n,method:"POST",action:o,fields:i}}return a(s)}(i,o?.allowedAuthorityOrigins),l=p.id,c=new BroadcastChannel(l);let d=!1;const h={},f=o=>{if(!d){d=!0;try{c.close()}catch(o){}clearInterval(h.closedPoll),clearTimeout(h.timeoutId),t.postMessage({type:"msal:popup-relay-response:v1",id:l,...o},r),setTimeout(()=>{try{window.close()}catch(o){}},0)}};c.onmessage=o=>{const t=o.data&&o.data.payload;t&&f({payload:t})};const y=function(o){const t=[`width=${o?.popupSize?.width||520}`,`height=${o?.popupSize?.height||640}`];return void 0!==o?.popupPosition?.top&&t.push(`top=${o.popupPosition.top}`),void 0!==o?.popupPosition?.left&&t.push(`left=${o.popupPosition.left}`),t.push("scrollbars=yes"),t.join(",")}(o?.popupWindowAttributes),w="POST"===p.method?window.open("about:blank","msalPopupRelayChild",y):window.open(p.url,"msalPopupRelayChild",y);w?("POST"===p.method&&function(o,t,e){const r=o.createElement("form");return r.method="post",r.action=t,Object.keys(e).forEach(t=>{const n=o.createElement("input");n.hidden=!0,n.name=t,n.value=e[t],r.appendChild(n)}),o.body.appendChild(r),r}(w.document,p.action,p.fields).submit(),h.closedPoll=window.setInterval(()=>{w.closed&&!d&&(clearTimeout(h.timeoutId),f({error:"user_cancelled"}))},500),h.timeoutId=window.setTimeout(()=>{if(!d){clearInterval(h.closedPoll);try{w.close()}catch(o){}f({error:"timed_out"})}},o?.timeoutMs||3e5)):f({error:"popup_window_error"})}});
1
+ /*! @azure/msal-browser v5.30.0 2026-11-18 */
2
+ "use strict";!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports):"function"==typeof define&&define.amd?define(["exports"],o):o((e="undefined"!=typeof globalThis?globalThis:e||self).msalPopupRelay={})}(this,function(e){class o extends Error{constructor(e,t,r,n){const i=r||(e?`See https://aka.ms/msal.js.errors#${e} for details`:"");super(i?`${e}: ${i}`:e),Object.setPrototypeOf(this,o.prototype),this.errorCode=e||"",this.errorMessage=i||"",this.subError=n||"",this.correlationId=t,this.name="AuthError"}}const t="popup_window_error",r="popup_relay_unsupported_flow";class n extends o{constructor(e,o,t){super(e,o,`See https://aka.ms/msal.js.errors#${e} for details`,t),Object.setPrototypeOf(this,n.prototype),this.name="BrowserAuthError"}}function i(e,o,t){return new n(e,o,t)}const s="msal:popup-relay-response:v1",a="msal:popup-relay-response:v2";var p;!function(e){e.Redirect="redirect",e.Popup="popup",e.Silent="silent",e.None="none"}(p||(p={}));const l="0123456789abcdef",c=new Uint32Array(1);function u(){return window.crypto.getRandomValues(c),c[0]}function d(e,o,t){const r=e.createElement("form");return r.method="post",r.action=o,Object.keys(t).forEach(o=>{const n=e.createElement("input");n.hidden=!0,n.name=o,n.value=t[o],r.appendChild(n)}),e.body.appendChild(r),r}const h="popup_relay_bad_request",f="popup_relay_invalid_allowed_origin";function y(e){throw i(r,"",e)}function w(e){try{return new URL(e)}catch(e){return null}}function m(e,o){"string"==typeof e&&e||y(h);const t=w(e);(!t||"https:"!==t.protocol||t.username||t.password)&&y("popup_relay_unsafe_url"),void 0===o||Array.isArray(o)||y(f);const r=void 0===o?void 0:function(e){return e.map(e=>{const o="string"==typeof e?w(e):null;return(!o||"https:"!==o.protocol||o.username||o.password)&&y(f),o.origin})}(o);return r&&r.indexOf(t.origin)<0&&y("popup_relay_untrusted_authority"),e}function _(e,o){"object"==typeof e&&null!==e||y(h);const t=e,r=t.id;if("string"==typeof r&&r||y(h),"GET"===t.method)return{id:r,method:"GET",url:m(t.url,o)};if("POST"===t.method){const e=m(t.action,o),n=t.fields;("object"!=typeof n||null===n||Array.isArray(n))&&y(h);const i={};return Object.keys(n).forEach(e=>{const o=n[e];"string"!=typeof o&&y(h),i[e]=o}),{id:r,method:"POST",action:e,fields:i}}return y(h)}e.runPopupRelay=function(e){const o=function(e,o=""){if(void 0===e)return 1;if(1!==e&&2!==e)throw i(r,o,"popup_relay_invalid_protocol");return e}(e?.protocolVersion),p=window.opener,c=window.location.origin,f=new URLSearchParams(window.location.hash.replace(/^#/,"")),w=f.has("id")?2:1;let m;if(1===w)try{m=JSON.parse(f.get("req")||"")}catch{m=null}let g=f.get("id")||"";if(1===w&&m&&"object"==typeof m&&"id"in m&&(g=m.id),"function"==typeof window.history.replaceState&&window.history.replaceState(null,"",window.location.origin+window.location.pathname),!p)throw i(r,"","popup_relay_no_opener");if("string"==typeof g&&g||y(h),w!==o){const e=i(r,"","popup_relay_protocol_mismatch");throw p.postMessage({type:1===w?s:a,id:g,error:e.errorCode,subError:e.subError},c),e}const v=1===o?_(m,e?.allowedAuthorityOrigins):void 0,b=2===o?function(){const e=Date.now(),o=1024*u()+(1023&u()),t=new Uint8Array(16),r=Math.trunc(o/2**30),n=o&2**30-1,i=u();t[0]=e/2**40,t[1]=e/2**32,t[2]=e/2**24,t[3]=e/65536,t[4]=e/256,t[5]=e,t[6]=112|r>>>8,t[7]=r,t[8]=128|n>>>24,t[9]=n>>>16,t[10]=n>>>8,t[11]=n,t[12]=i>>>24,t[13]=i>>>16,t[14]=i>>>8,t[15]=i;let s="";for(let e=0;e<t.length;e++)s+=l.charAt(t[e]>>>4),s+=l.charAt(15&t[e]),3!==e&&5!==e&&7!==e&&9!==e||(s+="-");return s}():void 0,E=new BroadcastChannel(g);let P=!1,T=1===o;const A={},O=e=>{if(!P){P=!0;try{E.close()}catch(e){}clearInterval(A.closedPoll),clearTimeout(A.timeoutId),window.removeEventListener("message",S),window.removeEventListener("pagehide",L),p.postMessage({type:1===o?s:a,id:g,...2===o?{nonce:b}:{},...e},c),setTimeout(()=>{try{window.close()}catch(e){}},0)}};E.onmessage=e=>{const o=e.data&&e.data.payload;T&&o&&O({payload:o})};const S=r=>{const i=r.data;if(!P&&!T&&2===o&&I&&r.origin===c&&r.source===p&&i&&"msal:popup-relay-request:v2"===i.type&&i.id===g&&i.nonce===b){window.removeEventListener("message",S);try{const o=_(i.request,e?.allowedAuthorityOrigins);o.id!==g&&y(h),T=!0,"GET"===o.method?I.location.replace(o.url):d(I.document,o.action,o.fields).submit()}catch(e){O({error:e instanceof n?e.errorCode:t,subError:e instanceof n?e.subError:"popup_relay_navigation_failed"}),I.close()}}},j=function(e){const o=[`width=${e?.popupSize?.width||520}`,`height=${e?.popupSize?.height||640}`];return void 0!==e?.popupPosition?.top&&o.push(`top=${e.popupPosition.top}`),void 0!==e?.popupPosition?.left&&o.push(`left=${e.popupPosition.left}`),o.push("scrollbars=yes"),o.join(",")}(e?.popupWindowAttributes),I="GET"===v?.method?window.open(v.url,"msalPopupRelayChild",j):window.open("about:blank",1===o?"msalPopupRelayChild":"_blank",j);function L(){P=!0,window.removeEventListener("message",S),window.removeEventListener("pagehide",L),clearInterval(A.closedPoll),clearTimeout(A.timeoutId),E.close(),I?.close()}I?(2===o?window.addEventListener("message",S):"POST"===v?.method&&d(I.document,v.action,v.fields).submit(),window.addEventListener("pagehide",L),A.closedPoll=window.setInterval(()=>{I.closed&&!P&&(clearTimeout(A.timeoutId),O({error:"user_cancelled"}))},500),A.timeoutId=window.setTimeout(()=>{if(!P){clearInterval(A.closedPoll);try{I.close()}catch(e){}O({error:"timed_out",subError:T?void 0:"popup_relay_handshake_timeout"})}},e?.timeoutMs||3e5),2===o&&p.postMessage({type:"msal:popup-relay-ready:v2",id:g,nonce:b},c)):O({error:t})}});
@@ -1,8 +1,8 @@
1
- /*! @azure/msal-browser v5.29.0 2026-11-06 */
1
+ /*! @azure/msal-browser v5.30.0 2026-11-18 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
5
- /*! @azure/msal-common v16.16.1 2026-11-06 */
5
+ /*! @azure/msal-common v16.17.0 2026-11-18 */
6
6
  // Resource delimiter - used for certain cache entries
7
7
  const RESOURCE_DELIM = "|";
8
8
  const FORWARD_SLASH = "/";
@@ -13,7 +13,7 @@ const AADAuthority = {
13
13
  COMMON: "common",
14
14
  ORGANIZATIONS: "organizations"};
15
15
 
16
- /*! @azure/msal-common v16.16.1 2026-11-06 */
16
+ /*! @azure/msal-common v16.17.0 2026-11-18 */
17
17
  /*
18
18
  * Copyright (c) Microsoft Corporation. All rights reserved.
19
19
  * Licensed under the MIT License.
@@ -39,7 +39,7 @@ class AuthError extends Error {
39
39
  }
40
40
  }
41
41
 
42
- /*! @azure/msal-common v16.16.1 2026-11-06 */
42
+ /*! @azure/msal-common v16.17.0 2026-11-18 */
43
43
 
44
44
  /*
45
45
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -62,11 +62,11 @@ function createClientAuthError(errorCode, correlationId, additionalMessage) {
62
62
  return new ClientAuthError(errorCode, correlationId, additionalMessage);
63
63
  }
64
64
 
65
- /*! @azure/msal-common v16.16.1 2026-11-06 */
65
+ /*! @azure/msal-common v16.17.0 2026-11-18 */
66
66
  const invalidState = "invalid_state";
67
67
  const noCryptoObject = "no_crypto_object";
68
68
 
69
- /*! @azure/msal-common v16.16.1 2026-11-06 */
69
+ /*! @azure/msal-common v16.17.0 2026-11-18 */
70
70
 
71
71
  /*
72
72
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -86,12 +86,12 @@ function createClientConfigurationError(errorCode, correlationId) {
86
86
  return new ClientConfigurationError(errorCode, correlationId);
87
87
  }
88
88
 
89
- /*! @azure/msal-common v16.16.1 2026-11-06 */
89
+ /*! @azure/msal-common v16.17.0 2026-11-18 */
90
90
  const authorityUriInsecure = "authority_uri_insecure";
91
91
  const urlParseError = "url_parse_error";
92
92
  const urlEmptyError = "empty_url_error";
93
93
 
94
- /*! @azure/msal-common v16.16.1 2026-11-06 */
94
+ /*! @azure/msal-common v16.17.0 2026-11-18 */
95
95
  /*
96
96
  * Copyright (c) Microsoft Corporation. All rights reserved.
97
97
  * Licensed under the MIT License.
@@ -171,12 +171,18 @@ class StringUtils {
171
171
  }
172
172
  }
173
173
 
174
- /*! @azure/msal-common v16.16.1 2026-11-06 */
174
+ /*! @azure/msal-common v16.17.0 2026-11-18 */
175
175
 
176
176
  /*
177
177
  * Copyright (c) Microsoft Corporation. All rights reserved.
178
178
  * Licensed under the MIT License.
179
179
  */
180
+ // Matches ASCII controls, space, DEL, backslash, or the userinfo separator (@).
181
+ const UNSAFE_AUTHORITY = /[\x00-\x20\x7f\\@]/;
182
+ const DEFAULT_PORTS = {
183
+ "https:": ":443",
184
+ "http:": ":80",
185
+ };
180
186
  /**
181
187
  * Url object class which can perform various transformations on url strings.
182
188
  */
@@ -292,6 +298,29 @@ class UrlString {
292
298
  AbsolutePath: match[5],
293
299
  QueryString: match[7],
294
300
  };
301
+ let parsedUrl;
302
+ try {
303
+ parsedUrl = new URL(this.urlString);
304
+ }
305
+ catch {
306
+ throw createClientConfigurationError(urlParseError, this.correlationId);
307
+ }
308
+ const host = urlComponents.HostNameAndPort?.toLowerCase();
309
+ const schemeAndAuthority = `${urlComponents.Protocol}//${host}`;
310
+ const defaultPort = DEFAULT_PORTS[parsedUrl.protocol] ?? "";
311
+ /*
312
+ * Cross-check the original host; reparsing parsedUrl would hide parser differences.
313
+ * URL has validated IPv6 syntax, so only bracketed hosts need a normalization comparison.
314
+ */
315
+ const hostMatches = host === parsedUrl.host ||
316
+ host === `${parsedUrl.host}${defaultPort}` ||
317
+ (host?.startsWith("[") &&
318
+ new URL(`${urlComponents.Protocol}//${host}`).host ===
319
+ parsedUrl.host);
320
+ // Check authority ambiguity without restricting resource paths, queries, or fragments.
321
+ if (UNSAFE_AUTHORITY.test(schemeAndAuthority) || !hostMatches) {
322
+ throw createClientConfigurationError(urlParseError, this.correlationId);
323
+ }
295
324
  let pathSegments = urlComponents.AbsolutePath.split("/");
296
325
  pathSegments = pathSegments.filter((val) => val && val.length > 0); // remove empty elements
297
326
  urlComponents.PathSegments = pathSegments;
@@ -329,7 +358,7 @@ class UrlString {
329
358
  }
330
359
  }
331
360
 
332
- /*! @azure/msal-common v16.16.1 2026-11-06 */
361
+ /*! @azure/msal-common v16.17.0 2026-11-18 */
333
362
  /**
334
363
  * Parses the state into the RequestStateObject, which contains the LibraryState info and the state passed by the user.
335
364
  * @param base64Decode