@azure/msal-browser 5.29.1 → 5.31.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 (558) hide show
  1. package/README.md +4 -2
  2. package/dist/app/IPublicClientApplication.mjs +4 -1
  3. package/dist/app/IPublicClientApplication.mjs.map +1 -1
  4. package/dist/app/PublicClientApplication.mjs +14 -2
  5. package/dist/app/PublicClientApplication.mjs.map +1 -1
  6. package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
  7. package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +10 -23
  8. package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs.map +1 -1
  9. package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
  10. package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +2 -3
  11. package/dist/broker/nativeBroker/PlatformAuthProvider.mjs.map +1 -1
  12. package/dist/broker/nativeBroker/PlatformAuthRequest.mjs +1 -1
  13. package/dist/cache/AccountManager.mjs +1 -1
  14. package/dist/cache/AsyncMemoryStorage.mjs +1 -1
  15. package/dist/cache/BrowserCacheManager.mjs +40 -4
  16. package/dist/cache/BrowserCacheManager.mjs.map +1 -1
  17. package/dist/cache/CacheHelpers.mjs +1 -1
  18. package/dist/cache/CacheKeys.mjs +1 -1
  19. package/dist/cache/CookieStorage.mjs +1 -1
  20. package/dist/cache/DatabaseStorage.mjs +1 -1
  21. package/dist/cache/EncryptedData.mjs +1 -1
  22. package/dist/cache/LocalStorage.mjs +1 -1
  23. package/dist/cache/MemoryStorage.mjs +1 -1
  24. package/dist/cache/SessionStorage.mjs +1 -1
  25. package/dist/cache/TokenCache.mjs +1 -1
  26. package/dist/config/Configuration.mjs +11 -2
  27. package/dist/config/Configuration.mjs.map +1 -1
  28. package/dist/controllers/NestedAppAuthController.mjs +26 -5
  29. package/dist/controllers/NestedAppAuthController.mjs.map +1 -1
  30. package/dist/controllers/StandardController.mjs +44 -11
  31. package/dist/controllers/StandardController.mjs.map +1 -1
  32. package/dist/crypto/BrowserCrypto.mjs +189 -5
  33. package/dist/crypto/BrowserCrypto.mjs.map +1 -1
  34. package/dist/crypto/CryptoOps.mjs +1 -1
  35. package/dist/crypto/PkceGenerator.mjs +1 -1
  36. package/dist/crypto/SignedHttpRequest.mjs +1 -1
  37. package/dist/crypto/TokenBindingKeyManager.mjs +1 -1
  38. package/dist/custom_auth/CustomAuthConstants.mjs +1 -1
  39. package/dist/custom_auth/CustomAuthPublicClientApplication.mjs +1 -4
  40. package/dist/custom_auth/CustomAuthPublicClientApplication.mjs.map +1 -1
  41. package/dist/custom_auth/controller/CustomAuthStandardController.mjs +11 -4
  42. package/dist/custom_auth/controller/CustomAuthStandardController.mjs.map +1 -1
  43. package/dist/custom_auth/core/CustomAuthAuthority.mjs +3 -3
  44. package/dist/custom_auth/core/CustomAuthAuthority.mjs.map +1 -1
  45. package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +1 -1
  46. package/dist/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
  47. package/dist/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
  48. package/dist/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs +1 -1
  49. package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +1 -1
  50. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -4
  51. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs.map +1 -1
  52. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -3
  53. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs.map +1 -1
  54. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +1 -1
  55. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
  56. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +1 -8
  57. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs.map +1 -1
  58. package/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs +1 -1
  59. package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +1 -3
  60. package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs.map +1 -1
  61. package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -3
  62. package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs.map +1 -1
  63. package/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs +1 -1
  64. package/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +1 -1
  65. package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +1 -7
  66. package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs.map +1 -1
  67. package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs +1 -2
  68. package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs.map +1 -1
  69. package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs +1 -2
  70. package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs.map +1 -1
  71. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs +1 -1
  72. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.mjs +1 -2
  73. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.mjs.map +1 -1
  74. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.mjs +1 -2
  75. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.mjs.map +1 -1
  76. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs +2 -5
  77. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs.map +1 -1
  78. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.mjs +1 -2
  79. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.mjs.map +1 -1
  80. package/dist/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.mjs +1 -1
  81. package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs +1 -2
  82. package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs.map +1 -1
  83. package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs +1 -2
  84. package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs.map +1 -1
  85. package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs +1 -2
  86. package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs.map +1 -1
  87. package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs +1 -2
  88. package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs.map +1 -1
  89. package/dist/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.mjs +2 -3
  90. package/dist/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.mjs.map +1 -1
  91. package/dist/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
  92. package/dist/custom_auth/core/error/CustomAuthError.mjs +1 -1
  93. package/dist/custom_auth/core/error/HttpError.mjs +1 -1
  94. package/dist/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
  95. package/dist/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
  96. package/dist/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
  97. package/dist/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
  98. package/dist/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
  99. package/dist/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
  100. package/dist/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
  101. package/dist/custom_auth/core/error/ParsedUrlError.mjs +1 -1
  102. package/dist/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
  103. package/dist/custom_auth/core/error/UnexpectedError.mjs +1 -1
  104. package/dist/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
  105. package/dist/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
  106. package/dist/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
  107. package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
  108. package/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
  109. package/dist/custom_auth/core/interaction_client/jit/JitClient.mjs +1 -1
  110. package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +1 -1
  111. package/dist/custom_auth/core/interaction_client/mfa/MfaClient.mjs +1 -1
  112. package/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +1 -1
  113. package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs +32 -27
  114. package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs.map +1 -1
  115. package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs +1 -1
  116. package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs +6 -2
  117. package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs.map +1 -1
  118. package/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
  119. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
  120. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +1 -1
  121. package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
  122. package/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
  123. package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
  124. package/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
  125. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
  126. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
  127. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.mjs +1 -1
  128. package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs +7 -5
  129. package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs.map +1 -1
  130. package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs +12 -3
  131. package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs.map +1 -1
  132. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.mjs +1 -1
  133. package/dist/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.mjs +9 -39
  134. package/dist/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.mjs.map +1 -1
  135. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs +1 -1
  136. package/dist/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.mjs +1 -1
  137. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs +1 -1
  138. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs.map +1 -1
  139. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs +1 -1
  140. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs.map +1 -1
  141. package/dist/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
  142. package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
  143. package/dist/custom_auth/core/telemetry/FlowApiIdHelperV2.mjs +1 -1
  144. package/dist/custom_auth/core/telemetry/PublicApiId.mjs +1 -1
  145. package/dist/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
  146. package/dist/custom_auth/core/utils/CustomHeaderUtils.mjs +1 -1
  147. package/dist/custom_auth/core/utils/UrlUtils.mjs +1 -1
  148. package/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
  149. package/dist/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
  150. package/dist/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
  151. package/dist/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
  152. package/dist/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
  153. package/dist/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
  154. package/dist/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
  155. package/dist/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
  156. package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +2 -1
  157. package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs.map +1 -1
  158. package/dist/custom_auth/index.mjs +1 -1
  159. package/dist/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
  160. package/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
  161. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
  162. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
  163. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
  164. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
  165. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
  166. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
  167. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
  168. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
  169. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
  170. package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs +1 -2
  171. package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs.map +1 -1
  172. package/dist/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateTransitionHandlerV2.mjs +1 -1
  173. package/dist/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
  174. package/dist/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
  175. package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
  176. package/dist/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
  177. package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -3
  178. package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs.map +1 -1
  179. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -3
  180. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs.map +1 -1
  181. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -3
  182. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs.map +1 -1
  183. package/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +1 -1
  184. package/dist/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
  185. package/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
  186. package/dist/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
  187. package/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
  188. package/dist/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
  189. package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs +1 -2
  190. package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs.map +1 -1
  191. package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.mjs +1 -1
  192. package/dist/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
  193. package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
  194. package/dist/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
  195. package/dist/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
  196. package/dist/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
  197. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
  198. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
  199. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
  200. package/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
  201. package/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
  202. package/dist/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
  203. package/dist/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
  204. package/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
  205. package/dist/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
  206. package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs +1 -2
  207. package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs.map +1 -1
  208. package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountCodeRequiredStateV2.mjs +1 -1
  209. package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountPasswordRequiredStateV2.mjs +1 -1
  210. package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountStateTransitionHelperV2.mjs +1 -1
  211. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.mjs +1 -1
  212. package/dist/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
  213. package/dist/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
  214. package/dist/encode/Base64Decode.mjs +1 -1
  215. package/dist/encode/Base64Encode.mjs +1 -1
  216. package/dist/error/BrowserAuthError.mjs +1 -1
  217. package/dist/error/BrowserAuthErrorCodes.mjs +3 -2
  218. package/dist/error/BrowserAuthErrorCodes.mjs.map +1 -1
  219. package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
  220. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  221. package/dist/error/NativeAuthError.mjs +1 -1
  222. package/dist/error/NativeAuthErrorCodes.mjs +1 -1
  223. package/dist/error/NestedAppAuthError.mjs +1 -1
  224. package/dist/event/EventHandler.mjs +1 -1
  225. package/dist/event/EventMessage.mjs +1 -1
  226. package/dist/event/EventType.mjs +1 -1
  227. package/dist/index.mjs +1 -1
  228. package/dist/interaction_client/BaseInteractionClient.mjs +4 -2
  229. package/dist/interaction_client/BaseInteractionClient.mjs.map +1 -1
  230. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  231. package/dist/interaction_client/PlatformAuthInteractionClient.mjs +18 -5
  232. package/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
  233. package/dist/interaction_client/PopupClient.mjs +27 -21
  234. package/dist/interaction_client/PopupClient.mjs.map +1 -1
  235. package/dist/interaction_client/RedirectClient.mjs +8 -10
  236. package/dist/interaction_client/RedirectClient.mjs.map +1 -1
  237. package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
  238. package/dist/interaction_client/SilentCacheClient.mjs +1 -1
  239. package/dist/interaction_client/SilentIframeClient.mjs +5 -8
  240. package/dist/interaction_client/SilentIframeClient.mjs.map +1 -1
  241. package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
  242. package/dist/interaction_client/StandardInteractionClient.mjs +2 -1
  243. package/dist/interaction_client/StandardInteractionClient.mjs.map +1 -1
  244. package/dist/interaction_handler/InteractionHandler.mjs +1 -1
  245. package/dist/interaction_handler/SilentHandler.mjs +1 -1
  246. package/dist/log-strings-mapping.json +13 -9
  247. package/dist/naa/BridgeError.mjs +1 -1
  248. package/dist/naa/BridgeProxy.mjs +1 -1
  249. package/dist/naa/BridgeStatusCode.mjs +1 -1
  250. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
  251. package/dist/navigation/NavigationClient.mjs +1 -1
  252. package/dist/network/FetchClient.mjs +1 -1
  253. package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
  254. package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
  255. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  256. package/dist/packageMetadata.mjs +2 -2
  257. package/dist/popup_relay/constants.mjs +24 -6
  258. package/dist/popup_relay/constants.mjs.map +1 -1
  259. package/dist/popup_relay/index.mjs +142 -44
  260. package/dist/popup_relay/index.mjs.map +1 -1
  261. package/dist/popup_relay/relayClient.mjs +66 -23
  262. package/dist/popup_relay/relayClient.mjs.map +1 -1
  263. package/dist/protocol/Authorize.mjs +71 -13
  264. package/dist/protocol/Authorize.mjs.map +1 -1
  265. package/dist/redirect_bridge/index.mjs +1 -1
  266. package/dist/request/RequestHelpers.mjs +2 -1
  267. package/dist/request/RequestHelpers.mjs.map +1 -1
  268. package/dist/request/SilentRequestHelpers.mjs +7 -4
  269. package/dist/request/SilentRequestHelpers.mjs.map +1 -1
  270. package/dist/response/ResponseHandler.mjs +1 -1
  271. package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  272. package/dist/telemetry/BrowserPerformanceEvents.mjs +14 -2
  273. package/dist/telemetry/BrowserPerformanceEvents.mjs.map +1 -1
  274. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  275. package/dist/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
  276. package/dist/utils/BrowserConstants.mjs +1 -1
  277. package/dist/utils/BrowserDetection.mjs +1 -1
  278. package/dist/utils/BrowserProtocolUtils.mjs +1 -1
  279. package/dist/utils/BrowserUtils.mjs +1 -1
  280. package/dist/utils/Helpers.mjs +1 -1
  281. package/dist/utils/IframeMonitor.mjs +1 -1
  282. package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
  283. package/dist/utils/PopupMonitor.mjs +1 -1
  284. package/dist/utils/PopupOriginCheck.mjs +1 -1
  285. package/dist/webBrokerBridge/PendingRequestRegistry.mjs +1 -1
  286. package/dist/webBrokerBridge/PerfEventNames.mjs +1 -1
  287. package/dist/webBrokerBridge/WebBrokerBridgeError.mjs +1 -1
  288. package/dist/webBrokerBridge/WebBrokerBridgeErrorMap.mjs +1 -1
  289. package/dist/webBrokerBridge/adapter/CrossVersionRequestAdapter.mjs +1 -1
  290. package/dist/webBrokerBridge/index.mjs +1 -1
  291. package/lib/custom-auth-path/log-strings-mapping.json +13 -9
  292. package/lib/custom-auth-path/msal-custom-auth.cjs +764 -314
  293. package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
  294. package/lib/custom-auth-path/msal-custom-auth.js +764 -314
  295. package/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
  296. package/lib/log-strings-mapping.json +13 -9
  297. package/lib/msal-browser.cjs +791 -215
  298. package/lib/msal-browser.cjs.map +1 -1
  299. package/lib/msal-browser.js +791 -215
  300. package/lib/msal-browser.js.map +1 -1
  301. package/lib/msal-browser.min.js +2 -2
  302. package/lib/popup-relay/msal-popup-relay.cjs +231 -60
  303. package/lib/popup-relay/msal-popup-relay.cjs.map +1 -1
  304. package/lib/popup-relay/msal-popup-relay.js +231 -60
  305. package/lib/popup-relay/msal-popup-relay.js.map +1 -1
  306. package/lib/popup-relay/msal-popup-relay.min.js +2 -2
  307. package/lib/redirect-bridge/msal-redirect-bridge.cjs +10 -10
  308. package/lib/redirect-bridge/msal-redirect-bridge.cjs.map +1 -1
  309. package/lib/redirect-bridge/msal-redirect-bridge.js +10 -10
  310. package/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -1
  311. package/lib/redirect-bridge/msal-redirect-bridge.min.js +1 -1
  312. package/lib/web-broker-bridge/msal-web-broker-bridge.cjs +1 -1
  313. package/package.json +2 -2
  314. package/src/app/IPublicClientApplication.ts +16 -0
  315. package/src/app/PublicClientApplication.ts +22 -0
  316. package/src/broker/nativeBroker/PlatformAuthDOMHandler.ts +11 -44
  317. package/src/broker/nativeBroker/PlatformAuthProvider.ts +1 -2
  318. package/src/broker/nativeBroker/PlatformAuthResponse.ts +2 -6
  319. package/src/cache/BrowserCacheManager.ts +66 -6
  320. package/src/config/Configuration.ts +35 -0
  321. package/src/controllers/NestedAppAuthController.ts +35 -2
  322. package/src/controllers/StandardController.ts +76 -12
  323. package/src/controllers/UnknownOperatingContextController.ts +10 -0
  324. package/src/crypto/BrowserCrypto.ts +367 -2
  325. package/src/custom_auth/CustomAuthActionInputs.ts +0 -9
  326. package/src/custom_auth/CustomAuthPublicClientApplication.ts +0 -3
  327. package/src/custom_auth/ICustomAuthPublicClientApplicationV2.ts +0 -3
  328. package/src/custom_auth/controller/CustomAuthStandardController.ts +15 -2
  329. package/src/custom_auth/core/CustomAuthAuthority.ts +2 -1
  330. package/src/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.ts +0 -3
  331. package/src/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.ts +0 -2
  332. package/src/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.ts +0 -7
  333. package/src/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.ts +0 -2
  334. package/src/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.ts +0 -2
  335. package/src/custom_auth/core/auth_flow/mfa/state/MfaState.ts +0 -6
  336. package/src/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.ts +0 -1
  337. package/src/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.ts +0 -1
  338. package/src/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.ts +0 -4
  339. package/src/custom_auth/core/auth_flow/v2/CustomAuthResultV2.ts +0 -1
  340. package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.ts +0 -1
  341. package/src/custom_auth/core/auth_flow/v2/result/AuthMethodRegistrationChallengeResultV2.ts +0 -2
  342. package/src/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.ts +0 -2
  343. package/src/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.ts +0 -2
  344. package/src/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.ts +0 -2
  345. package/src/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.ts +0 -2
  346. package/src/custom_auth/core/auth_flow/v2/result/SubmitPasswordResultV2.ts +0 -2
  347. package/src/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.ts +0 -2
  348. package/src/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.ts +0 -1
  349. package/src/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.ts +0 -3
  350. package/src/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.ts +0 -1
  351. package/src/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.ts +0 -1
  352. package/src/custom_auth/core/auth_flow/v2/state/CompletedStateV2.ts +0 -1
  353. package/src/custom_auth/core/auth_flow/v2/state/FailedStateV2.ts +0 -1
  354. package/src/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.ts +0 -1
  355. package/src/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.ts +8 -6
  356. package/src/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.ts +1 -0
  357. package/src/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.ts +43 -29
  358. package/src/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.ts +21 -2
  359. package/src/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.ts +12 -8
  360. package/src/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.ts +35 -4
  361. package/src/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.ts +10 -47
  362. package/src/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.ts +1 -0
  363. package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.ts +9 -0
  364. package/src/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.ts +5 -5
  365. package/src/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.ts +2 -5
  366. package/src/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.ts +2 -4
  367. package/src/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.ts +1 -0
  368. package/src/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.ts +0 -2
  369. package/src/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.ts +0 -1
  370. package/src/custom_auth/sign_in/auth_flow/result/SignInResult.ts +0 -2
  371. package/src/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.ts +0 -2
  372. package/src/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.ts +0 -2
  373. package/src/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.ts +0 -2
  374. package/src/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.ts +0 -2
  375. package/src/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.ts +0 -1
  376. package/src/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.ts +0 -2
  377. package/src/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.ts +0 -2
  378. package/src/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.ts +0 -1
  379. package/src/error/AsymmetricEarSubErrors.ts +18 -0
  380. package/src/error/BrowserAuthErrorCodes.ts +1 -0
  381. package/src/interaction_client/BaseInteractionClient.ts +6 -1
  382. package/src/interaction_client/PlatformAuthInteractionClient.ts +28 -8
  383. package/src/interaction_client/PopupClient.ts +59 -29
  384. package/src/interaction_client/RedirectClient.ts +10 -13
  385. package/src/interaction_client/SilentIframeClient.ts +9 -13
  386. package/src/interaction_client/StandardInteractionClient.ts +1 -0
  387. package/src/packageMetadata.ts +1 -1
  388. package/src/popup_relay/constants.ts +34 -3
  389. package/src/popup_relay/index.ts +200 -45
  390. package/src/popup_relay/relayClient.ts +108 -24
  391. package/src/protocol/Authorize.ts +123 -11
  392. package/src/request/EndSessionPopupRequest.ts +3 -0
  393. package/src/request/PopupRequest.ts +1 -0
  394. package/src/request/RedirectRequest.ts +4 -0
  395. package/src/request/RequestHelpers.ts +5 -0
  396. package/src/request/SilentRequestHelpers.ts +10 -4
  397. package/src/request/SsoSilentRequest.ts +1 -0
  398. package/src/telemetry/BrowserPerformanceEvents.ts +14 -0
  399. package/types/app/IPublicClientApplication.d.ts +8 -0
  400. package/types/app/IPublicClientApplication.d.ts.map +1 -1
  401. package/types/app/PublicClientApplication.d.ts +6 -1
  402. package/types/app/PublicClientApplication.d.ts.map +1 -1
  403. package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts +0 -1
  404. package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts.map +1 -1
  405. package/types/broker/nativeBroker/PlatformAuthProvider.d.ts.map +1 -1
  406. package/types/broker/nativeBroker/PlatformAuthResponse.d.ts +2 -6
  407. package/types/broker/nativeBroker/PlatformAuthResponse.d.ts.map +1 -1
  408. package/types/cache/BrowserCacheManager.d.ts +20 -2
  409. package/types/cache/BrowserCacheManager.d.ts.map +1 -1
  410. package/types/config/Configuration.d.ts +14 -0
  411. package/types/config/Configuration.d.ts.map +1 -1
  412. package/types/controllers/NestedAppAuthController.d.ts +5 -0
  413. package/types/controllers/NestedAppAuthController.d.ts.map +1 -1
  414. package/types/controllers/StandardController.d.ts +4 -0
  415. package/types/controllers/StandardController.d.ts.map +1 -1
  416. package/types/controllers/UnknownOperatingContextController.d.ts +5 -0
  417. package/types/controllers/UnknownOperatingContextController.d.ts.map +1 -1
  418. package/types/crypto/BrowserCrypto.d.ts +34 -0
  419. package/types/crypto/BrowserCrypto.d.ts.map +1 -1
  420. package/types/custom_auth/CustomAuthActionInputs.d.ts +0 -9
  421. package/types/custom_auth/CustomAuthActionInputs.d.ts.map +1 -1
  422. package/types/custom_auth/CustomAuthConstants.d.ts +1 -1
  423. package/types/custom_auth/CustomAuthPublicClientApplication.d.ts +0 -3
  424. package/types/custom_auth/CustomAuthPublicClientApplication.d.ts.map +1 -1
  425. package/types/custom_auth/ICustomAuthPublicClientApplicationV2.d.ts +0 -3
  426. package/types/custom_auth/ICustomAuthPublicClientApplicationV2.d.ts.map +1 -1
  427. package/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
  428. package/types/custom_auth/core/CustomAuthAuthority.d.ts.map +1 -1
  429. package/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts +0 -3
  430. package/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts.map +1 -1
  431. package/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts +0 -2
  432. package/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts.map +1 -1
  433. package/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts +0 -7
  434. package/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts.map +1 -1
  435. package/types/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts +0 -2
  436. package/types/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts.map +1 -1
  437. package/types/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts +0 -2
  438. package/types/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts.map +1 -1
  439. package/types/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts +0 -6
  440. package/types/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts.map +1 -1
  441. package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.d.ts +0 -1
  442. package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.d.ts.map +1 -1
  443. package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.d.ts +0 -1
  444. package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.d.ts.map +1 -1
  445. package/types/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.d.ts +0 -4
  446. package/types/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.d.ts.map +1 -1
  447. package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts +0 -1
  448. package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts.map +1 -1
  449. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.d.ts +0 -1
  450. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.d.ts.map +1 -1
  451. package/types/custom_auth/core/auth_flow/v2/result/AuthMethodRegistrationChallengeResultV2.d.ts +0 -2
  452. package/types/custom_auth/core/auth_flow/v2/result/AuthMethodRegistrationChallengeResultV2.d.ts.map +1 -1
  453. package/types/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.d.ts +0 -2
  454. package/types/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.d.ts.map +1 -1
  455. package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts +0 -2
  456. package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts.map +1 -1
  457. package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts +0 -2
  458. package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts.map +1 -1
  459. package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts +0 -2
  460. package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts.map +1 -1
  461. package/types/custom_auth/core/auth_flow/v2/result/SubmitPasswordResultV2.d.ts +0 -2
  462. package/types/custom_auth/core/auth_flow/v2/result/SubmitPasswordResultV2.d.ts.map +1 -1
  463. package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts +0 -2
  464. package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts.map +1 -1
  465. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.d.ts +0 -1
  466. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.d.ts.map +1 -1
  467. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts +0 -1
  468. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts.map +1 -1
  469. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.d.ts +0 -1
  470. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.d.ts.map +1 -1
  471. package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts +0 -1
  472. package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts.map +1 -1
  473. package/types/custom_auth/core/auth_flow/v2/state/CompletedStateV2.d.ts +0 -1
  474. package/types/custom_auth/core/auth_flow/v2/state/CompletedStateV2.d.ts.map +1 -1
  475. package/types/custom_auth/core/auth_flow/v2/state/FailedStateV2.d.ts +0 -1
  476. package/types/custom_auth/core/auth_flow/v2/state/FailedStateV2.d.ts.map +1 -1
  477. package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts +0 -1
  478. package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts.map +1 -1
  479. package/types/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.d.ts +0 -1
  480. package/types/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.d.ts.map +1 -1
  481. package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts +1 -0
  482. package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts.map +1 -1
  483. package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts +3 -2
  484. package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts.map +1 -1
  485. package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts +10 -1
  486. package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts.map +1 -1
  487. package/types/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.d.ts +1 -1
  488. package/types/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.d.ts.map +1 -1
  489. package/types/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.d.ts.map +1 -1
  490. package/types/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.d.ts.map +1 -1
  491. package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts +1 -0
  492. package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts.map +1 -1
  493. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts +8 -0
  494. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts.map +1 -1
  495. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.d.ts +4 -5
  496. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.d.ts.map +1 -1
  497. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts +3 -6
  498. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts.map +1 -1
  499. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts +2 -5
  500. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts.map +1 -1
  501. package/types/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.d.ts.map +1 -1
  502. package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts +0 -2
  503. package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts.map +1 -1
  504. package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts +0 -1
  505. package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts.map +1 -1
  506. package/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts +0 -2
  507. package/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts.map +1 -1
  508. package/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts +0 -2
  509. package/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts.map +1 -1
  510. package/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts +0 -2
  511. package/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts.map +1 -1
  512. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts +0 -2
  513. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts.map +1 -1
  514. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts +0 -2
  515. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts.map +1 -1
  516. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts +0 -1
  517. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts.map +1 -1
  518. package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts +0 -2
  519. package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts.map +1 -1
  520. package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts +0 -2
  521. package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts.map +1 -1
  522. package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts +0 -1
  523. package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts.map +1 -1
  524. package/types/error/AsymmetricEarSubErrors.d.ts +14 -0
  525. package/types/error/AsymmetricEarSubErrors.d.ts.map +1 -0
  526. package/types/error/BrowserAuthErrorCodes.d.ts +1 -0
  527. package/types/error/BrowserAuthErrorCodes.d.ts.map +1 -1
  528. package/types/interaction_client/BaseInteractionClient.d.ts +3 -2
  529. package/types/interaction_client/BaseInteractionClient.d.ts.map +1 -1
  530. package/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
  531. package/types/interaction_client/PopupClient.d.ts +3 -1
  532. package/types/interaction_client/PopupClient.d.ts.map +1 -1
  533. package/types/interaction_client/RedirectClient.d.ts +0 -1
  534. package/types/interaction_client/RedirectClient.d.ts.map +1 -1
  535. package/types/interaction_client/SilentIframeClient.d.ts.map +1 -1
  536. package/types/interaction_client/StandardInteractionClient.d.ts.map +1 -1
  537. package/types/packageMetadata.d.ts +1 -1
  538. package/types/popup_relay/constants.d.ts +10 -3
  539. package/types/popup_relay/constants.d.ts.map +1 -1
  540. package/types/popup_relay/index.d.ts +27 -11
  541. package/types/popup_relay/index.d.ts.map +1 -1
  542. package/types/popup_relay/relayClient.d.ts +9 -11
  543. package/types/popup_relay/relayClient.d.ts.map +1 -1
  544. package/types/protocol/Authorize.d.ts +5 -0
  545. package/types/protocol/Authorize.d.ts.map +1 -1
  546. package/types/request/EndSessionPopupRequest.d.ts +3 -0
  547. package/types/request/EndSessionPopupRequest.d.ts.map +1 -1
  548. package/types/request/PopupRequest.d.ts +1 -1
  549. package/types/request/PopupRequest.d.ts.map +1 -1
  550. package/types/request/RedirectRequest.d.ts +4 -1
  551. package/types/request/RedirectRequest.d.ts.map +1 -1
  552. package/types/request/RequestHelpers.d.ts.map +1 -1
  553. package/types/request/SilentRequestHelpers.d.ts +1 -1
  554. package/types/request/SilentRequestHelpers.d.ts.map +1 -1
  555. package/types/request/SsoSilentRequest.d.ts +1 -1
  556. package/types/request/SsoSilentRequest.d.ts.map +1 -1
  557. package/types/telemetry/BrowserPerformanceEvents.d.ts +12 -0
  558. package/types/telemetry/BrowserPerformanceEvents.d.ts.map +1 -1
@@ -1,25 +1,8 @@
1
- /*! @azure/msal-browser v5.29.1 2026-11-12 */
1
+ /*! @azure/msal-browser v5.31.0 2026-12-02 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
5
- /*
6
- * Copyright (c) Microsoft Corporation. All rights reserved.
7
- * Licensed under the MIT License.
8
- */
9
- /**
10
- * postMessage envelope type used to relay an auth response from a popup-relay
11
- * page (see `runPopupRelay`) back to the embedded frame that opened it. See
12
- * {@link BrowserAuthOptions.popupRelayUri}.
13
- *
14
- * Kept dependency-free so both the relay-page entry (`./index.js`) and the
15
- * client-side helpers (`./relayClient.js`) can import it without either bundle
16
- * pulling in the other's dependencies.
17
- *
18
- * @internal
19
- */
20
- const POPUP_RELAY_RESPONSE_TYPE = "msal:popup-relay-response:v1";
21
-
22
- /*! @azure/msal-common v16.16.2 2026-11-12 */
5
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
23
6
  /*
24
7
  * Copyright (c) Microsoft Corporation. All rights reserved.
25
8
  * Licensed under the MIT License.
@@ -75,6 +58,38 @@ function createBrowserAuthError(errorCode, correlationId, subError) {
75
58
  return new BrowserAuthError(errorCode, correlationId, subError);
76
59
  }
77
60
 
61
+ /*
62
+ * Copyright (c) Microsoft Corporation. All rights reserved.
63
+ * Licensed under the MIT License.
64
+ */
65
+ /**
66
+ * postMessage envelope type used to relay an auth response from a popup-relay
67
+ * page (see `runPopupRelay`) back to the embedded frame that opened it. See
68
+ * {@link BrowserAuthOptions.popupRelayUri}.
69
+ *
70
+ * Shared by the relay-page entry and client helpers without importing either
71
+ * implementation into the other bundle.
72
+ *
73
+ * @internal
74
+ */
75
+ const POPUP_RELAY_RESPONSE_TYPE = "msal:popup-relay-response:v1";
76
+ /** @internal Response bound to an authenticated v2 relay document. */
77
+ const POPUP_RELAY_V2_RESPONSE_TYPE = "msal:popup-relay-response:v2";
78
+ /** @internal Ready signal for the authenticated popup-relay request handoff. */
79
+ const POPUP_RELAY_READY_TYPE = "msal:popup-relay-ready:v2";
80
+ /** @internal Request delivered only to the same-origin relay window. */
81
+ const POPUP_RELAY_REQUEST_TYPE = "msal:popup-relay-request:v2";
82
+ /** @internal Resolve the compatibility default without downgrading invalid versions. */
83
+ function getPopupRelayProtocolVersion(version, correlationId = "") {
84
+ if (version === undefined) {
85
+ return 1;
86
+ }
87
+ if (version !== 1 && version !== 2) {
88
+ throw createBrowserAuthError(popupRelayUnsupportedFlow, correlationId, "popup_relay_invalid_protocol");
89
+ }
90
+ return version;
91
+ }
92
+
78
93
  /*
79
94
  * Copyright (c) Microsoft Corporation. All rights reserved.
80
95
  * Licensed under the MIT License.
@@ -90,6 +105,65 @@ var InteractionType;
90
105
  InteractionType["None"] = "none";
91
106
  })(InteractionType || (InteractionType = {}));
92
107
 
108
+ /*
109
+ * Copyright (c) Microsoft Corporation. All rights reserved.
110
+ * Licensed under the MIT License.
111
+ */
112
+ // UUID hex digits
113
+ const UUID_CHARS = "0123456789abcdef";
114
+ // Array to store UINT32 random value
115
+ const UINT32_ARR = new Uint32Array(1);
116
+ /**
117
+ * Returns random Uint32 value.
118
+ * @returns {number}
119
+ */
120
+ function getRandomUint32() {
121
+ window.crypto.getRandomValues(UINT32_ARR);
122
+ return UINT32_ARR[0];
123
+ }
124
+ /**
125
+ * Creates a UUID v7 from the current timestamp.
126
+ * Implementation relies on the system clock to guarantee increasing order of generated identifiers.
127
+ * @returns {number}
128
+ */
129
+ function createNewGuid() {
130
+ const currentTimestamp = Date.now();
131
+ const baseRand = getRandomUint32() * 0x400 + (getRandomUint32() & 0x3ff);
132
+ // Result byte array
133
+ const bytes = new Uint8Array(16);
134
+ // A 12-bit `rand_a` field value
135
+ const randA = Math.trunc(baseRand / 2 ** 30);
136
+ // The higher 30 bits of 62-bit `rand_b` field value
137
+ const randBHi = baseRand & (2 ** 30 - 1);
138
+ // The lower 32 bits of 62-bit `rand_b` field value
139
+ const randBLo = getRandomUint32();
140
+ bytes[0] = currentTimestamp / 2 ** 40;
141
+ bytes[1] = currentTimestamp / 2 ** 32;
142
+ bytes[2] = currentTimestamp / 2 ** 24;
143
+ bytes[3] = currentTimestamp / 2 ** 16;
144
+ bytes[4] = currentTimestamp / 2 ** 8;
145
+ bytes[5] = currentTimestamp;
146
+ bytes[6] = 0x70 | (randA >>> 8);
147
+ bytes[7] = randA;
148
+ bytes[8] = 0x80 | (randBHi >>> 24);
149
+ bytes[9] = randBHi >>> 16;
150
+ bytes[10] = randBHi >>> 8;
151
+ bytes[11] = randBHi;
152
+ bytes[12] = randBLo >>> 24;
153
+ bytes[13] = randBLo >>> 16;
154
+ bytes[14] = randBLo >>> 8;
155
+ bytes[15] = randBLo;
156
+ let text = "";
157
+ for (let i = 0; i < bytes.length; i++) {
158
+ text += UUID_CHARS.charAt(bytes[i] >>> 4);
159
+ text += UUID_CHARS.charAt(bytes[i] & 0xf);
160
+ if (i === 3 || i === 5 || i === 7 || i === 9) {
161
+ text += "-";
162
+ }
163
+ }
164
+ return text;
165
+ }
166
+
93
167
  /*
94
168
  * Copyright (c) Microsoft Corporation. All rights reserved.
95
169
  * Licensed under the MIT License.
@@ -166,12 +240,10 @@ function normalizeAllowedOrigins(allowedAuthorityOrigins) {
166
240
  });
167
241
  }
168
242
  /**
169
- * Validates a navigation target taken from the relay page's hash before it can
243
+ * Validates a navigation target before it can
170
244
  * reach `window.open` or a form `action`.
171
245
  *
172
- * The hash is *not* authority: anyone can craft a link to the deployed relay
173
- * page, so a target must be proven safe rather than assumed to have been built
174
- * by MSAL. Only absolute `https:` URLs without embedded credentials are
246
+ * Only absolute `https:` URLs without embedded credentials are
175
247
  * accepted, which rules out active/local schemes (`javascript:`, `data:`,
176
248
  * `blob:`, `vbscript:`, `file:`) that would otherwise execute in — or read
177
249
  * from — the relay page's own first-party security origin. `https:`-only also
@@ -214,24 +286,16 @@ function validateNavigationTarget(raw, allowedAuthorityOrigins) {
214
286
  return raw;
215
287
  }
216
288
  /**
217
- * Parses and fully validates the relayed request carried in the relay page's
218
- * hash. Every field is treated as attacker-controlled: the shape is checked
219
- * exactly (no implicit GET fallback for an unknown `method`) and both
289
+ * Fully validates a v1 descriptor or an authenticated v2 request. The shape
290
+ * is checked exactly (no implicit GET fallback for an unknown `method`) and both
220
291
  * navigation targets — the GET `url` and the POST `action` — are run through
221
292
  * {@link validateNavigationTarget}.
222
293
  */
223
294
  function parseRelayRequest(rawReq, allowedAuthorityOrigins) {
224
- let parsed;
225
- try {
226
- parsed = JSON.parse(rawReq);
227
- }
228
- catch (e) {
229
- parsed = null;
230
- }
231
- if (typeof parsed !== "object" || parsed === null) {
295
+ if (typeof rawReq !== "object" || rawReq === null) {
232
296
  throwRelayError(BAD_REQUEST_SUBERROR);
233
297
  }
234
- const request = parsed;
298
+ const request = rawReq;
235
299
  const id = request.id;
236
300
  if (typeof id !== "string" || !id) {
237
301
  throwRelayError(BAD_REQUEST_SUBERROR);
@@ -284,17 +348,22 @@ function buildChildPopupFeatures(attributes) {
284
348
  /**
285
349
  * Entry point for the top-level "popup-relay" page referenced by
286
350
  * `auth.popupRelayUri`. Call this from the relay page (which MSAL opens as a
287
- * top-level popup from inside an embedded, cross-origin iframe). It:
351
+ * top-level popup from inside an embedded, cross-origin iframe).
352
+ *
353
+ * V1 (the compatibility default) is deprecated due to security concerns. It
354
+ * executes validated but unauthenticated fragment descriptors and returns the
355
+ * legacy response envelope. It retains the legacy risk when origins are not
356
+ * pinned; retire that endpoint after migrating callers.
357
+ *
358
+ * V2 must be explicitly selected on both the app and its separate relay
359
+ * endpoint. It:
288
360
  *
289
- * 1. Reads the IdP navigation MSAL passed in this page's hash (a GET URL, or a
290
- * POST form for the form_post / EAR response modes), then scrubs the hash.
291
- * 2. Validates that navigation. The relay page is directly reachable, so the
292
- * hash is untrusted input: the request shape is checked exactly and the
293
- * navigation target must be an absolute `https:` URL (optionally pinned to
294
- * {@link PopupRelayOptions.allowedAuthorityOrigins}). Anything else — in
295
- * particular active schemes such as `javascript:` — is rejected before it
296
- * can reach `window.open` or a form `action`.
297
- * 3. Opens the IdP child popup and performs that navigation (the relay page
361
+ * 1. Reads the request id from the hash, then scrubs the hash. Navigation
362
+ * descriptors in the hash are never executed.
363
+ * 2. Reserves a blank child popup during the user gesture, then requests the
364
+ * navigation from the opener through an origin- and source-checked
365
+ * postMessage handoff bound to this relay document's nonce.
366
+ * 3. Validates and performs the authenticated navigation (the relay page
298
367
  * stays put, so its `window.opener` link back to the embedded frame
299
368
  * survives COOP).
300
369
  * 4. Waits for the child's redirect URI page (which must run the redirect
@@ -313,10 +382,27 @@ function buildChildPopupFeatures(attributes) {
313
382
  * @param options - {@link PopupRelayOptions}
314
383
  */
315
384
  function runPopupRelay(options) {
385
+ const protocolVersion = getPopupRelayProtocolVersion(options?.protocolVersion);
316
386
  const opener = window.opener;
317
387
  const targetOrigin = window.location.origin;
318
388
  const hashParams = new URLSearchParams(window.location.hash.replace(/^#/, ""));
319
- const rawReq = hashParams.get("req") || "";
389
+ const incomingVersion = hashParams.has("id") ? 2 : 1;
390
+ let legacyDescriptor;
391
+ if (incomingVersion === 1) {
392
+ try {
393
+ legacyDescriptor = JSON.parse(hashParams.get("req") || "");
394
+ }
395
+ catch {
396
+ legacyDescriptor = null;
397
+ }
398
+ }
399
+ let id = hashParams.get("id") || "";
400
+ if (incomingVersion === 1 &&
401
+ legacyDescriptor &&
402
+ typeof legacyDescriptor === "object" &&
403
+ "id" in legacyDescriptor) {
404
+ id = legacyDescriptor.id;
405
+ }
320
406
  // Scrub the relayed request out of the relay page's own URL immediately.
321
407
  if (typeof window.history.replaceState === "function") {
322
408
  window.history.replaceState(null, "", window.location.origin + window.location.pathname);
@@ -324,14 +410,28 @@ function runPopupRelay(options) {
324
410
  if (!opener) {
325
411
  throw createBrowserAuthError(popupRelayUnsupportedFlow, "", "popup_relay_no_opener");
326
412
  }
327
- /*
328
- * Validate everything before opening anything: the relay page is directly
329
- * reachable, so the hash is attacker-controlled input, not authority.
330
- */
331
- const request = parseRelayRequest(rawReq, options?.allowedAuthorityOrigins);
332
- const id = request.id;
413
+ if (typeof id !== "string" || !id) {
414
+ throwRelayError(BAD_REQUEST_SUBERROR);
415
+ }
416
+ if (incomingVersion !== protocolVersion) {
417
+ const error = createBrowserAuthError(popupRelayUnsupportedFlow, "", "popup_relay_protocol_mismatch");
418
+ opener.postMessage({
419
+ type: incomingVersion === 1
420
+ ? POPUP_RELAY_RESPONSE_TYPE
421
+ : POPUP_RELAY_V2_RESPONSE_TYPE,
422
+ id,
423
+ error: error.errorCode,
424
+ subError: error.subError,
425
+ }, targetOrigin);
426
+ throw error;
427
+ }
428
+ const legacyRequest = protocolVersion === 1
429
+ ? parseRelayRequest(legacyDescriptor, options?.allowedAuthorityOrigins)
430
+ : undefined;
431
+ const nonce = protocolVersion === 2 ? createNewGuid() : undefined;
333
432
  const channel = new BroadcastChannel(id);
334
433
  let settled = false;
434
+ let requestReceived = protocolVersion === 1;
335
435
  /*
336
436
  * Timer handles are kept on a const holder so relay() (declared before the
337
437
  * timers are created) can clear them — `let` handles trip prefer-const, and
@@ -351,7 +451,16 @@ function runPopupRelay(options) {
351
451
  }
352
452
  clearInterval(timers.closedPoll);
353
453
  clearTimeout(timers.timeoutId);
354
- opener.postMessage({ type: POPUP_RELAY_RESPONSE_TYPE, id, ...message }, targetOrigin);
454
+ window.removeEventListener("message", onRequest);
455
+ window.removeEventListener("pagehide", onPageHide);
456
+ opener.postMessage({
457
+ type: protocolVersion === 1
458
+ ? POPUP_RELAY_RESPONSE_TYPE
459
+ : POPUP_RELAY_V2_RESPONSE_TYPE,
460
+ id,
461
+ ...(protocolVersion === 2 ? { nonce } : {}),
462
+ ...message,
463
+ }, targetOrigin);
355
464
  setTimeout(() => {
356
465
  try {
357
466
  window.close();
@@ -364,21 +473,75 @@ function runPopupRelay(options) {
364
473
  // The redirect bridge broadcasts the raw auth response payload here.
365
474
  channel.onmessage = (event) => {
366
475
  const payload = event.data && event.data.payload;
367
- if (payload) {
476
+ if (requestReceived && payload) {
368
477
  relay({ payload });
369
478
  }
370
479
  };
480
+ const onRequest = (event) => {
481
+ const data = event.data;
482
+ if (settled ||
483
+ requestReceived ||
484
+ protocolVersion !== 2 ||
485
+ !childPopup ||
486
+ event.origin !== targetOrigin ||
487
+ event.source !== opener ||
488
+ !data ||
489
+ data.type !== POPUP_RELAY_REQUEST_TYPE ||
490
+ data.id !== id ||
491
+ data.nonce !== nonce) {
492
+ return;
493
+ }
494
+ window.removeEventListener("message", onRequest);
495
+ try {
496
+ const request = parseRelayRequest(data.request, options?.allowedAuthorityOrigins);
497
+ if (request.id !== id) {
498
+ throwRelayError(BAD_REQUEST_SUBERROR);
499
+ }
500
+ requestReceived = true;
501
+ if (request.method === "GET") {
502
+ childPopup.location.replace(request.url);
503
+ }
504
+ else {
505
+ createForm(childPopup.document, request.action, request.fields).submit();
506
+ }
507
+ }
508
+ catch (e) {
509
+ relay({
510
+ error: e instanceof BrowserAuthError
511
+ ? e.errorCode
512
+ : popupWindowError,
513
+ subError: e instanceof BrowserAuthError
514
+ ? e.subError
515
+ : "popup_relay_navigation_failed",
516
+ });
517
+ childPopup.close();
518
+ }
519
+ };
371
520
  const features = buildChildPopupFeatures(options?.popupWindowAttributes);
372
- const childPopup = request.method === "POST"
373
- ? window.open("about:blank", "msalPopupRelayChild", features)
374
- : window.open(request.url, "msalPopupRelayChild", features);
521
+ // Reserve a fresh window before the asynchronous handoff consumes activation.
522
+ const childPopup = legacyRequest?.method === "GET"
523
+ ? window.open(legacyRequest.url, "msalPopupRelayChild", features)
524
+ : window.open("about:blank", protocolVersion === 1 ? "msalPopupRelayChild" : "_blank", features);
375
525
  if (!childPopup) {
376
526
  relay({ error: popupWindowError });
377
527
  return;
378
528
  }
379
- if (request.method === "POST") {
380
- createForm(childPopup.document, request.action, request.fields).submit();
529
+ function onPageHide() {
530
+ settled = true;
531
+ window.removeEventListener("message", onRequest);
532
+ window.removeEventListener("pagehide", onPageHide);
533
+ clearInterval(timers.closedPoll);
534
+ clearTimeout(timers.timeoutId);
535
+ channel.close();
536
+ childPopup?.close();
537
+ }
538
+ if (protocolVersion === 2) {
539
+ window.addEventListener("message", onRequest);
381
540
  }
541
+ else if (legacyRequest?.method === "POST") {
542
+ createForm(childPopup.document, legacyRequest.action, legacyRequest.fields).submit();
543
+ }
544
+ window.addEventListener("pagehide", onPageHide);
382
545
  timers.closedPoll = window.setInterval(() => {
383
546
  if (childPopup.closed && !settled) {
384
547
  /*
@@ -406,9 +569,17 @@ function runPopupRelay(options) {
406
569
  catch (e) {
407
570
  /* ignore */
408
571
  }
409
- relay({ error: timedOut });
572
+ relay({
573
+ error: timedOut,
574
+ subError: requestReceived
575
+ ? undefined
576
+ : "popup_relay_handshake_timeout",
577
+ });
410
578
  }
411
579
  }, options?.timeoutMs || DEFAULT_POPUP_RELAY_TIMEOUT_MS);
580
+ if (protocolVersion === 2) {
581
+ opener.postMessage({ type: POPUP_RELAY_READY_TYPE, id, nonce }, targetOrigin);
582
+ }
412
583
  }
413
584
 
414
585
  exports.runPopupRelay = runPopupRelay;
@@ -1 +1 @@
1
- {"version":3,"file":"msal-popup-relay.cjs","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.2 2026-11-12 */\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","BrowserAuthErrorCodes.popupWindowError","BrowserAuthErrorCodes.userCancelled","BrowserAuthErrorCodes.timedOut"],"mappings":";;;;AAAA;;;AAGG;AAEH;;;;;;;;;;AAUG;AACI,MAAM,yBAAyB,GAAG,8BAA8B;;AChBvE;AAEA;AACA;AACA;AACA;AACA,SAASA,wBAAsB,CAAC,IAAI,EAAE;AACtC,IAAI,OAAO,CAAC,kCAAkC,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;AACnE,CAAC;AACD;AACA;AACA;AACA,MAAM,SAAS,SAAS,KAAK,CAAC;AAC9B,IAAI,WAA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AA,CAAA;IAED,MAAM,CAAC,UAAU,GAAG,MAAM,CAAC,WAAW,CAAC,MAAK;AACxC,QAAA,IAAI,UAAU,CAAC,MAAM,IAAI,CAAC,OAAO,EAAE;AAC/B;;;;;;;AAOG;AACH,YAAA,YAAY,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;YAC/B,KAAK,CAAC,EAAE,KAAK,EAAEC,aAAmC,EAAE,CAAC,CAAC;AACzD,QAAA,CAAA;IACL,CAAC,EAAE,GAAG,CAAC,CAAC;IAER,MAAM,CAAC,SAAS,GAAG,MAAM,CAAC,UAAU,CAAC,MAAK;QACtC,IAAI,CAAC,OAAO,EAAE;AACV;;;AAGG;AACH,YAAA,aAAa,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;YACjC,IAAI;gBACA,UAAU,CAAC,KAAK,EAAE,CAAC;AACtB,YAAA,CAAA;AAAC,YAAA,OAAO,CAAC,EAAE;;AAEX,YAAA,CAAA;YACD,KAAK,CAAC,EAAE,KAAK,EAAEC,QAA8B,EAAE,CAAC,CAAC;AACpD,QAAA,CAAA;AACL,IAAA,CAAC,EAAE,OAAO,EAAE,SAAS,IAAI,8BAA8B,CAAC,CAAC;AAC7D;;;;"}
1
+ {"version":3,"file":"msal-popup-relay.cjs","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.18.0 2026-12-02 */\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":";;;;AAAA;AAEA;AACA;AACA;AACA;AACA,SAASA,wBAAsB,CAAC,IAAI,EAAE;AACtC,IAAI,OAAO,CAAC,kCAAkC,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;AACnE,CAAC;AACD;AACA;AACA;AACA,MAAM,SAAS,SAAS,KAAK,CAAC;AAC9B,IAAI,WAAW,CAAC,SAAS,EAAE,aAAa,EAAE,YAAY,EAAE,QAAQ,EAAE;AAClE,QAAQ,MAAM,OAAO,GAAG,YAAY;AACpC,aAAa,SAAS,GAAGA,wBAAsB,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,CAAC;AACjE,QAAQ,MAAM,WAAW,GAAG,OAAO,GAAG,CAAC,EAAE,SAAS,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC;AAC7E,QAAQ,KAAK,CAAC,WAAW,CAAC,CAAC;AAC3B,QAAQ,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;AACzD,QAAQ,I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