@azure/msal-browser 5.22.0 → 5.24.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 (574) 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 +133 -29
  5. package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs.map +1 -1
  6. package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +178 -64
  7. package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs.map +1 -1
  8. package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +61 -22
  9. package/dist/broker/nativeBroker/PlatformAuthProvider.mjs.map +1 -1
  10. package/dist/broker/nativeBroker/PlatformAuthRequest.mjs +49 -0
  11. package/dist/broker/nativeBroker/PlatformAuthRequest.mjs.map +1 -0
  12. package/dist/cache/AccountManager.mjs +1 -1
  13. package/dist/cache/AsyncMemoryStorage.mjs +1 -1
  14. package/dist/cache/BrowserCacheManager.mjs +1 -1
  15. package/dist/cache/CacheHelpers.mjs +1 -1
  16. package/dist/cache/CacheKeys.mjs +1 -1
  17. package/dist/cache/CookieStorage.mjs +1 -1
  18. package/dist/cache/DatabaseStorage.mjs +1 -1
  19. package/dist/cache/EncryptedData.mjs +1 -1
  20. package/dist/cache/LocalStorage.mjs +97 -29
  21. package/dist/cache/LocalStorage.mjs.map +1 -1
  22. package/dist/cache/MemoryStorage.mjs +1 -1
  23. package/dist/cache/SessionStorage.mjs +1 -1
  24. package/dist/cache/TokenCache.mjs +1 -1
  25. package/dist/config/Configuration.mjs +1 -1
  26. package/dist/controllers/NestedAppAuthController.mjs +1 -1
  27. package/dist/controllers/StandardController.mjs +10 -10
  28. package/dist/controllers/StandardController.mjs.map +1 -1
  29. package/dist/crypto/BrowserCrypto.mjs +1 -1
  30. package/dist/crypto/CryptoOps.mjs +1 -1
  31. package/dist/crypto/PkceGenerator.mjs +1 -1
  32. package/dist/crypto/SignedHttpRequest.mjs +1 -1
  33. package/dist/crypto/TokenBindingKeyManager.mjs +1 -1
  34. package/dist/custom_auth/CustomAuthConstants.mjs +1 -1
  35. package/dist/custom_auth/CustomAuthPublicClientApplication.mjs +27 -2
  36. package/dist/custom_auth/CustomAuthPublicClientApplication.mjs.map +1 -1
  37. package/dist/custom_auth/controller/CustomAuthStandardController.mjs +192 -2
  38. package/dist/custom_auth/controller/CustomAuthStandardController.mjs.map +1 -1
  39. package/dist/custom_auth/core/CustomAuthAuthority.mjs +1 -1
  40. package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +1 -1
  41. package/dist/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
  42. package/dist/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
  43. package/dist/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs +1 -1
  44. package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +1 -1
  45. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -1
  46. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -1
  47. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +1 -1
  48. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
  49. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +1 -1
  50. package/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs +1 -1
  51. package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +1 -1
  52. package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -1
  53. package/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs +1 -1
  54. package/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +1 -1
  55. package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +1 -1
  56. package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs +21 -0
  57. package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs.map +1 -0
  58. package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs +80 -0
  59. package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs.map +1 -0
  60. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.mjs +102 -0
  61. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.mjs.map +1 -0
  62. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs +12 -0
  63. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs.map +1 -0
  64. package/dist/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.mjs +20 -0
  65. package/dist/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.mjs.map +1 -0
  66. package/dist/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.mjs +36 -0
  67. package/dist/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.mjs.map +1 -0
  68. package/dist/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.mjs +29 -0
  69. package/dist/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.mjs.map +1 -0
  70. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs +76 -0
  71. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs.map +1 -0
  72. package/dist/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.mjs +36 -0
  73. package/dist/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.mjs.map +1 -0
  74. package/dist/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.mjs +36 -0
  75. package/dist/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.mjs.map +1 -0
  76. package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs +134 -0
  77. package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs.map +1 -0
  78. package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs +23 -0
  79. package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs.map +1 -0
  80. package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs +22 -0
  81. package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs.map +1 -0
  82. package/dist/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.mjs +61 -0
  83. package/dist/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.mjs.map +1 -0
  84. package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs +87 -0
  85. package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs.map +1 -0
  86. package/dist/custom_auth/core/error/CustomAuthApiError.mjs +3 -2
  87. package/dist/custom_auth/core/error/CustomAuthApiError.mjs.map +1 -1
  88. package/dist/custom_auth/core/error/CustomAuthError.mjs +1 -1
  89. package/dist/custom_auth/core/error/HttpError.mjs +1 -1
  90. package/dist/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
  91. package/dist/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
  92. package/dist/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
  93. package/dist/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
  94. package/dist/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
  95. package/dist/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
  96. package/dist/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
  97. package/dist/custom_auth/core/error/ParsedUrlError.mjs +1 -1
  98. package/dist/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
  99. package/dist/custom_auth/core/error/UnexpectedError.mjs +1 -1
  100. package/dist/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
  101. package/dist/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
  102. package/dist/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
  103. package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
  104. package/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
  105. package/dist/custom_auth/core/interaction_client/jit/JitClient.mjs +1 -1
  106. package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +1 -1
  107. package/dist/custom_auth/core/interaction_client/mfa/MfaClient.mjs +1 -1
  108. package/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +1 -1
  109. package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs +602 -0
  110. package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs.map +1 -0
  111. package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs +67 -0
  112. package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs.map +1 -0
  113. package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs +46 -0
  114. package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs.map +1 -0
  115. package/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
  116. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
  117. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +3 -2
  118. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs.map +1 -1
  119. package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
  120. package/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
  121. package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
  122. package/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
  123. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
  124. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
  125. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.mjs +30 -0
  126. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.mjs.map +1 -0
  127. package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs +193 -0
  128. package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs.map +1 -0
  129. package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs +236 -0
  130. package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs.map +1 -0
  131. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.mjs +26 -0
  132. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.mjs.map +1 -0
  133. package/dist/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.mjs +66 -0
  134. package/dist/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.mjs.map +1 -0
  135. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs +97 -0
  136. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs.map +1 -0
  137. package/dist/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.mjs +56 -0
  138. package/dist/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.mjs.map +1 -0
  139. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs +23 -0
  140. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs.map +1 -0
  141. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs +14 -0
  142. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs.map +1 -0
  143. package/dist/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
  144. package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs +3 -2
  145. package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs.map +1 -1
  146. package/dist/custom_auth/core/telemetry/FlowApiIdHelperV2.mjs +38 -0
  147. package/dist/custom_auth/core/telemetry/FlowApiIdHelperV2.mjs.map +1 -0
  148. package/dist/custom_auth/core/telemetry/PublicApiId.mjs +20 -3
  149. package/dist/custom_auth/core/telemetry/PublicApiId.mjs.map +1 -1
  150. package/dist/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
  151. package/dist/custom_auth/core/utils/CustomHeaderUtils.mjs +1 -1
  152. package/dist/custom_auth/core/utils/UrlUtils.mjs +1 -1
  153. package/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
  154. package/dist/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
  155. package/dist/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
  156. package/dist/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
  157. package/dist/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
  158. package/dist/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
  159. package/dist/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
  160. package/dist/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
  161. package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
  162. package/dist/custom_auth/index.mjs +23 -1
  163. package/dist/custom_auth/index.mjs.map +1 -1
  164. package/dist/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
  165. package/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
  166. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
  167. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
  168. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
  169. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
  170. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
  171. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
  172. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
  173. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
  174. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
  175. package/dist/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.mjs +29 -0
  176. package/dist/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.mjs.map +1 -0
  177. package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs +59 -0
  178. package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs.map +1 -0
  179. package/dist/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
  180. package/dist/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
  181. package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
  182. package/dist/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
  183. package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
  184. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
  185. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -1
  186. package/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +1 -1
  187. package/dist/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
  188. package/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
  189. package/dist/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
  190. package/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
  191. package/dist/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
  192. package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.mjs +18 -0
  193. package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.mjs.map +1 -0
  194. package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.mjs +37 -0
  195. package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.mjs.map +1 -0
  196. package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.mjs +23 -0
  197. package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.mjs.map +1 -0
  198. package/dist/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.mjs +70 -0
  199. package/dist/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.mjs.map +1 -0
  200. package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs +61 -0
  201. package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs.map +1 -0
  202. package/dist/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
  203. package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
  204. package/dist/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
  205. package/dist/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
  206. package/dist/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
  207. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
  208. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
  209. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
  210. package/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
  211. package/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
  212. package/dist/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
  213. package/dist/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
  214. package/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
  215. package/dist/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
  216. package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.mjs +25 -0
  217. package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.mjs.map +1 -0
  218. package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.mjs +33 -0
  219. package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.mjs.map +1 -0
  220. package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs +40 -0
  221. package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs.map +1 -0
  222. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.mjs +25 -0
  223. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.mjs.map +1 -0
  224. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.mjs +47 -0
  225. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.mjs.map +1 -0
  226. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.mjs +60 -0
  227. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.mjs.map +1 -0
  228. package/dist/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
  229. package/dist/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
  230. package/dist/encode/Base64Decode.mjs +1 -1
  231. package/dist/encode/Base64Encode.mjs +1 -1
  232. package/dist/error/BrowserAuthError.mjs +1 -1
  233. package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
  234. package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
  235. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  236. package/dist/error/NativeAuthError.mjs +1 -1
  237. package/dist/error/NativeAuthErrorCodes.mjs +1 -1
  238. package/dist/error/NestedAppAuthError.mjs +1 -1
  239. package/dist/event/EventHandler.mjs +1 -1
  240. package/dist/event/EventMessage.mjs +1 -1
  241. package/dist/event/EventType.mjs +1 -1
  242. package/dist/index.mjs +1 -1
  243. package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
  244. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  245. package/dist/interaction_client/PlatformAuthInteractionClient.mjs +21 -14
  246. package/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
  247. package/dist/interaction_client/PopupClient.mjs +1 -1
  248. package/dist/interaction_client/RedirectClient.mjs +11 -8
  249. package/dist/interaction_client/RedirectClient.mjs.map +1 -1
  250. package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
  251. package/dist/interaction_client/SilentCacheClient.mjs +1 -1
  252. package/dist/interaction_client/SilentIframeClient.mjs +1 -1
  253. package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
  254. package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
  255. package/dist/interaction_handler/InteractionHandler.mjs +1 -1
  256. package/dist/interaction_handler/SilentHandler.mjs +1 -1
  257. package/dist/log-strings-mapping.json +1381 -1185
  258. package/dist/naa/BridgeError.mjs +1 -1
  259. package/dist/naa/BridgeProxy.mjs +1 -1
  260. package/dist/naa/BridgeStatusCode.mjs +1 -1
  261. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
  262. package/dist/navigation/NavigationClient.mjs +1 -1
  263. package/dist/network/FetchClient.mjs +1 -1
  264. package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
  265. package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
  266. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  267. package/dist/packageMetadata.mjs +2 -2
  268. package/dist/popup_relay/constants.mjs +1 -1
  269. package/dist/popup_relay/index.mjs +1 -1
  270. package/dist/popup_relay/relayClient.mjs +1 -1
  271. package/dist/protocol/Authorize.mjs +1 -1
  272. package/dist/redirect_bridge/index.mjs +1 -1
  273. package/dist/request/RequestHelpers.mjs +1 -1
  274. package/dist/response/ResponseHandler.mjs +1 -1
  275. package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  276. package/dist/telemetry/BrowserPerformanceEvents.mjs +16 -2
  277. package/dist/telemetry/BrowserPerformanceEvents.mjs.map +1 -1
  278. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  279. package/dist/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
  280. package/dist/utils/BrowserConstants.mjs +1 -1
  281. package/dist/utils/BrowserProtocolUtils.mjs +1 -1
  282. package/dist/utils/BrowserUtils.mjs +1 -1
  283. package/dist/utils/Helpers.mjs +1 -1
  284. package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
  285. package/dist/webBrokerBridge/PendingRequestRegistry.mjs +1 -1
  286. package/dist/webBrokerBridge/PerfEventNames.mjs +38 -0
  287. package/dist/webBrokerBridge/PerfEventNames.mjs.map +1 -0
  288. package/dist/webBrokerBridge/WebBrokerBridgeError.mjs +1 -1
  289. package/dist/webBrokerBridge/WebBrokerBridgeErrorMap.mjs +1 -1
  290. package/dist/webBrokerBridge/adapter/CrossVersionRequestAdapter.mjs +1 -1
  291. package/dist/webBrokerBridge/index.mjs +2 -1
  292. package/dist/webBrokerBridge/index.mjs.map +1 -1
  293. package/lib/custom-auth-path/log-strings-mapping.json +215 -19
  294. package/lib/custom-auth-path/msal-custom-auth.cjs +3571 -479
  295. package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
  296. package/lib/custom-auth-path/msal-custom-auth.js +3571 -479
  297. package/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
  298. package/lib/log-strings-mapping.json +23 -11
  299. package/lib/msal-browser.cjs +622 -233
  300. package/lib/msal-browser.cjs.map +1 -1
  301. package/lib/msal-browser.js +622 -233
  302. package/lib/msal-browser.js.map +1 -1
  303. package/lib/msal-browser.min.js +2 -2
  304. package/lib/popup-relay/msal-popup-relay.cjs +2 -2
  305. package/lib/popup-relay/msal-popup-relay.cjs.map +1 -1
  306. package/lib/popup-relay/msal-popup-relay.js +2 -2
  307. package/lib/popup-relay/msal-popup-relay.js.map +1 -1
  308. package/lib/popup-relay/msal-popup-relay.min.js +1 -1
  309. package/lib/redirect-bridge/msal-redirect-bridge.cjs +10 -10
  310. package/lib/redirect-bridge/msal-redirect-bridge.cjs.map +1 -1
  311. package/lib/redirect-bridge/msal-redirect-bridge.js +10 -10
  312. package/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -1
  313. package/lib/redirect-bridge/msal-redirect-bridge.min.js +1 -1
  314. package/lib/web-broker-bridge/msal-web-broker-bridge.cjs +59 -1
  315. package/lib/web-broker-bridge/msal-web-broker-bridge.cjs.map +1 -1
  316. package/package.json +3 -3
  317. package/src/broker/nativeBroker/PlatformAuthDOMHandler.ts +217 -45
  318. package/src/broker/nativeBroker/PlatformAuthExtensionHandler.ts +261 -107
  319. package/src/broker/nativeBroker/PlatformAuthProvider.ts +92 -37
  320. package/src/broker/nativeBroker/PlatformAuthRequest.ts +118 -6
  321. package/src/broker/nativeBroker/PlatformAuthResponse.ts +14 -1
  322. package/src/cache/LocalStorage.ts +135 -28
  323. package/src/controllers/StandardController.ts +17 -23
  324. package/src/custom_auth/CustomAuthActionInputs.ts +11 -0
  325. package/src/custom_auth/CustomAuthPublicClientApplication.ts +40 -4
  326. package/src/custom_auth/ICustomAuthPublicClientApplicationV2.ts +44 -0
  327. package/src/custom_auth/controller/CustomAuthStandardController.ts +360 -1
  328. package/src/custom_auth/controller/ICustomAuthStandardController.ts +14 -0
  329. package/src/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.ts +18 -0
  330. package/src/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.ts +20 -0
  331. package/src/custom_auth/core/auth_flow/v2/CustomAuthResultV2.ts +133 -0
  332. package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.ts +146 -0
  333. package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.ts +8 -0
  334. package/src/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.ts +15 -0
  335. package/src/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.ts +33 -0
  336. package/src/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.ts +25 -0
  337. package/src/custom_auth/core/auth_flow/v2/result/MFARequestChallengeResultV2.ts +18 -0
  338. package/src/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.ts +26 -0
  339. package/src/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.ts +26 -0
  340. package/src/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.ts +25 -0
  341. package/src/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.ts +30 -0
  342. package/src/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.ts +40 -0
  343. package/src/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.ts +100 -0
  344. package/src/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.ts +59 -0
  345. package/src/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.ts +53 -0
  346. package/src/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.ts +196 -0
  347. package/src/custom_auth/core/auth_flow/v2/state/CompletedStateV2.ts +16 -0
  348. package/src/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.ts +44 -0
  349. package/src/custom_auth/core/auth_flow/v2/state/FailedStateV2.ts +15 -0
  350. package/src/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.ts +76 -0
  351. package/src/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.ts +119 -0
  352. package/src/custom_auth/core/error/CustomAuthApiError.ts +3 -1
  353. package/src/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.ts +35 -0
  354. package/src/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.ts +1145 -0
  355. package/src/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.ts +150 -0
  356. package/src/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.ts +66 -0
  357. package/src/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.ts +185 -0
  358. package/src/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.ts +1 -0
  359. package/src/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.ts +30 -0
  360. package/src/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.ts +423 -0
  361. package/src/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.ts +553 -0
  362. package/src/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.ts +24 -0
  363. package/src/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.ts +81 -0
  364. package/src/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.ts +177 -0
  365. package/src/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.ts +129 -0
  366. package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.ts +68 -0
  367. package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.ts +50 -0
  368. package/src/custom_auth/core/network_client/custom_auth_api/v2/response/HalResource.ts +20 -0
  369. package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.ts +202 -0
  370. package/src/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.ts +111 -0
  371. package/src/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.ts +26 -0
  372. package/src/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.ts +44 -0
  373. package/src/custom_auth/core/telemetry/FlowApiIdHelperV2.ts +64 -0
  374. package/src/custom_auth/core/telemetry/PublicApiId.ts +18 -0
  375. package/src/custom_auth/index.ts +96 -0
  376. package/src/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.ts +25 -0
  377. package/src/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.ts +33 -0
  378. package/src/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.ts +69 -0
  379. package/src/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateParametersV2.ts +9 -0
  380. package/src/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.ts +13 -0
  381. package/src/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.ts +35 -0
  382. package/src/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.ts +19 -0
  383. package/src/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.ts +31 -0
  384. package/src/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.ts +32 -0
  385. package/src/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.ts +22 -0
  386. package/src/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.ts +96 -0
  387. package/src/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.ts +83 -0
  388. package/src/custom_auth/sign_in/auth_flow/v2/state/SignInStateParametersV2.ts +12 -0
  389. package/src/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.ts +21 -0
  390. package/src/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.ts +32 -0
  391. package/src/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.ts +28 -0
  392. package/src/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.ts +20 -0
  393. package/src/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.ts +48 -0
  394. package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.ts +34 -0
  395. package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.ts +63 -0
  396. package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpStateParametersV2.ts +24 -0
  397. package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.ts +112 -0
  398. package/src/interaction_client/PlatformAuthInteractionClient.ts +79 -17
  399. package/src/interaction_client/RedirectClient.ts +15 -5
  400. package/src/packageMetadata.ts +1 -1
  401. package/src/telemetry/BrowserPerformanceEvents.ts +20 -0
  402. package/src/webBrokerBridge/PerfEventNames.ts +43 -0
  403. package/src/webBrokerBridge/index.ts +26 -0
  404. package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts +3 -1
  405. package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts.map +1 -1
  406. package/types/broker/nativeBroker/PlatformAuthExtensionHandler.d.ts +3 -1
  407. package/types/broker/nativeBroker/PlatformAuthExtensionHandler.d.ts.map +1 -1
  408. package/types/broker/nativeBroker/PlatformAuthProvider.d.ts +1 -1
  409. package/types/broker/nativeBroker/PlatformAuthProvider.d.ts.map +1 -1
  410. package/types/broker/nativeBroker/PlatformAuthRequest.d.ts +68 -5
  411. package/types/broker/nativeBroker/PlatformAuthRequest.d.ts.map +1 -1
  412. package/types/broker/nativeBroker/PlatformAuthResponse.d.ts +12 -1
  413. package/types/broker/nativeBroker/PlatformAuthResponse.d.ts.map +1 -1
  414. package/types/cache/LocalStorage.d.ts +4 -5
  415. package/types/cache/LocalStorage.d.ts.map +1 -1
  416. package/types/controllers/StandardController.d.ts.map +1 -1
  417. package/types/custom_auth/CustomAuthActionInputs.d.ts +7 -0
  418. package/types/custom_auth/CustomAuthActionInputs.d.ts.map +1 -1
  419. package/types/custom_auth/CustomAuthConstants.d.ts +1 -1
  420. package/types/custom_auth/CustomAuthPublicClientApplication.d.ts +27 -5
  421. package/types/custom_auth/CustomAuthPublicClientApplication.d.ts.map +1 -1
  422. package/types/custom_auth/ICustomAuthPublicClientApplicationV2.d.ts +30 -0
  423. package/types/custom_auth/ICustomAuthPublicClientApplicationV2.d.ts.map +1 -0
  424. package/types/custom_auth/controller/CustomAuthStandardController.d.ts +11 -2
  425. package/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
  426. package/types/custom_auth/controller/ICustomAuthStandardController.d.ts +7 -1
  427. package/types/custom_auth/controller/ICustomAuthStandardController.d.ts.map +1 -1
  428. package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.d.ts +14 -0
  429. package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.d.ts.map +1 -0
  430. package/types/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.d.ts +14 -0
  431. package/types/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.d.ts.map +1 -0
  432. package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts +53 -0
  433. package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts.map +1 -0
  434. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.d.ts +40 -0
  435. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.d.ts.map +1 -0
  436. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.d.ts +4 -0
  437. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.d.ts.map +1 -0
  438. package/types/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.d.ts +11 -0
  439. package/types/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.d.ts.map +1 -0
  440. package/types/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.d.ts +23 -0
  441. package/types/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.d.ts.map +1 -0
  442. package/types/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.d.ts +18 -0
  443. package/types/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.d.ts.map +1 -0
  444. package/types/custom_auth/core/auth_flow/v2/result/MFARequestChallengeResultV2.d.ts +7 -0
  445. package/types/custom_auth/core/auth_flow/v2/result/MFARequestChallengeResultV2.d.ts.map +1 -0
  446. package/types/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.d.ts +15 -0
  447. package/types/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.d.ts.map +1 -0
  448. package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts +16 -0
  449. package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts.map +1 -0
  450. package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts +16 -0
  451. package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts.map +1 -0
  452. package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts +18 -0
  453. package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts.map +1 -0
  454. package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts +23 -0
  455. package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts.map +1 -0
  456. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts +21 -0
  457. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts.map +1 -0
  458. package/types/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.d.ts +17 -0
  459. package/types/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.d.ts.map +1 -0
  460. package/types/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.d.ts +14 -0
  461. package/types/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.d.ts.map +1 -0
  462. package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts +25 -0
  463. package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts.map +1 -0
  464. package/types/custom_auth/core/auth_flow/v2/state/CompletedStateV2.d.ts +11 -0
  465. package/types/custom_auth/core/auth_flow/v2/state/CompletedStateV2.d.ts.map +1 -0
  466. package/types/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.d.ts +28 -0
  467. package/types/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.d.ts.map +1 -0
  468. package/types/custom_auth/core/auth_flow/v2/state/FailedStateV2.d.ts +10 -0
  469. package/types/custom_auth/core/auth_flow/v2/state/FailedStateV2.d.ts.map +1 -0
  470. package/types/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.d.ts +18 -0
  471. package/types/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.d.ts.map +1 -0
  472. package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts +25 -0
  473. package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts.map +1 -0
  474. package/types/custom_auth/core/error/CustomAuthApiError.d.ts +3 -1
  475. package/types/custom_auth/core/error/CustomAuthApiError.d.ts.map +1 -1
  476. package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts +21 -0
  477. package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts.map +1 -0
  478. package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts +35 -0
  479. package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts.map +1 -0
  480. package/types/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.d.ts +26 -0
  481. package/types/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.d.ts.map +1 -0
  482. package/types/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.d.ts +43 -0
  483. package/types/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.d.ts.map +1 -0
  484. package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts +80 -0
  485. package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts.map +1 -0
  486. package/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts +1 -0
  487. package/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts.map +1 -1
  488. package/types/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.d.ts +17 -0
  489. package/types/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.d.ts.map +1 -0
  490. package/types/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.d.ts +31 -0
  491. package/types/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.d.ts.map +1 -0
  492. package/types/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.d.ts +23 -0
  493. package/types/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.d.ts.map +1 -0
  494. package/types/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.d.ts +19 -0
  495. package/types/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.d.ts.map +1 -0
  496. package/types/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.d.ts +2 -0
  497. package/types/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.d.ts.map +1 -0
  498. package/types/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.d.ts +15 -0
  499. package/types/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.d.ts.map +1 -0
  500. package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts +52 -0
  501. package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts.map +1 -0
  502. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.d.ts +3 -0
  503. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.d.ts.map +1 -0
  504. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.d.ts +37 -0
  505. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.d.ts.map +1 -0
  506. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/HalResource.d.ts +12 -0
  507. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/HalResource.d.ts.map +1 -0
  508. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts +133 -0
  509. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts.map +1 -0
  510. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.d.ts +70 -0
  511. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.d.ts.map +1 -0
  512. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts +10 -0
  513. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts.map +1 -0
  514. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts +33 -0
  515. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts.map +1 -0
  516. package/types/custom_auth/core/telemetry/FlowApiIdHelperV2.d.ts +4 -0
  517. package/types/custom_auth/core/telemetry/FlowApiIdHelperV2.d.ts.map +1 -0
  518. package/types/custom_auth/core/telemetry/PublicApiId.d.ts +16 -0
  519. package/types/custom_auth/core/telemetry/PublicApiId.d.ts.map +1 -1
  520. package/types/custom_auth/index.d.ts +37 -0
  521. package/types/custom_auth/index.d.ts.map +1 -1
  522. package/types/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.d.ts +18 -0
  523. package/types/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.d.ts.map +1 -0
  524. package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts +22 -0
  525. package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts.map +1 -0
  526. package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts +19 -0
  527. package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts.map +1 -0
  528. package/types/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateParametersV2.d.ts +3 -0
  529. package/types/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateParametersV2.d.ts.map +1 -0
  530. package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.d.ts +9 -0
  531. package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.d.ts.map +1 -0
  532. package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.d.ts +22 -0
  533. package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.d.ts.map +1 -0
  534. package/types/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.d.ts +12 -0
  535. package/types/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.d.ts.map +1 -0
  536. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts +21 -0
  537. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts.map +1 -0
  538. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts +17 -0
  539. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts.map +1 -0
  540. package/types/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.d.ts +9 -0
  541. package/types/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.d.ts.map +1 -0
  542. package/types/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.d.ts +17 -0
  543. package/types/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.d.ts.map +1 -0
  544. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts +24 -0
  545. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts.map +1 -0
  546. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateParametersV2.d.ts +4 -0
  547. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateParametersV2.d.ts.map +1 -0
  548. package/types/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.d.ts +14 -0
  549. package/types/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.d.ts.map +1 -0
  550. package/types/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.d.ts +20 -0
  551. package/types/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.d.ts.map +1 -0
  552. package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts +15 -0
  553. package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts.map +1 -0
  554. package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts +8 -0
  555. package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts.map +1 -0
  556. package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts +15 -0
  557. package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts.map +1 -0
  558. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.d.ts +11 -0
  559. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.d.ts.map +1 -0
  560. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.d.ts +19 -0
  561. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.d.ts.map +1 -0
  562. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateParametersV2.d.ts +14 -0
  563. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateParametersV2.d.ts.map +1 -0
  564. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.d.ts +10 -0
  565. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.d.ts.map +1 -0
  566. package/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
  567. package/types/interaction_client/RedirectClient.d.ts.map +1 -1
  568. package/types/packageMetadata.d.ts +1 -1
  569. package/types/telemetry/BrowserPerformanceEvents.d.ts +13 -0
  570. package/types/telemetry/BrowserPerformanceEvents.d.ts.map +1 -1
  571. package/types/webBrokerBridge/PerfEventNames.d.ts +30 -0
  572. package/types/webBrokerBridge/PerfEventNames.d.ts.map +1 -0
  573. package/types/webBrokerBridge/index.d.ts +1 -0
  574. package/types/webBrokerBridge/index.d.ts.map +1 -1
@@ -1,8 +1,8 @@
1
- /*! @azure/msal-browser v5.22.0 2026-09-15 */
1
+ /*! @azure/msal-browser v5.24.0 2026-10-02 */
2
2
  'use strict';
3
3
  import { PlatformAuthConstants, NativeExtensionMethod } from '../../utils/BrowserConstants.mjs';
4
- import { createAuthError, AuthErrorCodes } from '@azure/msal-common/browser';
5
- import { NativeMessageHandlerHandshake } from '../../telemetry/BrowserPerformanceEvents.mjs';
4
+ import { createAuthError, AuthErrorCodes, AuthError } from '@azure/msal-common/browser';
5
+ import { NativeMessageHandlerHandshake, PlatformAuthExtensionGetToken, PlatformAuthExtensionCreateProvider, PlatformAuthExtensionValidateResponse } from '../../telemetry/BrowserPerformanceEvents.mjs';
6
6
  import { createNativeAuthError } from '../../error/NativeAuthError.mjs';
7
7
  import { createBrowserAuthError } from '../../error/BrowserAuthError.mjs';
8
8
  import { createNewGuid } from '../../crypto/BrowserCrypto.mjs';
@@ -14,7 +14,7 @@ import { nativeHandshakeTimeout, nativeExtensionNotInstalled } from '../../error
14
14
  * Licensed under the MIT License.
15
15
  */
16
16
  class PlatformAuthExtensionHandler {
17
- constructor(logger, handshakeTimeoutMs, performanceClient, extensionId) {
17
+ constructor(logger, handshakeTimeoutMs, performanceClient, extensionId, correlationId) {
18
18
  this.logger = logger;
19
19
  this.handshakeTimeoutMs = handshakeTimeoutMs;
20
20
  this.extensionId = extensionId;
@@ -23,7 +23,8 @@ class PlatformAuthExtensionHandler {
23
23
  this.messageChannel = new MessageChannel();
24
24
  this.windowListener = this.onWindowMessage.bind(this); // Window event callback doesn't have access to 'this' unless it's bound
25
25
  this.performanceClient = performanceClient;
26
- this.handshakeEvent = this.performanceClient.startMeasurement(NativeMessageHandlerHandshake);
26
+ this.correlationId = correlationId || createNewGuid();
27
+ this.handshakeEvent = this.performanceClient.startMeasurement(NativeMessageHandlerHandshake, this.correlationId);
27
28
  this.platformAuthType =
28
29
  PlatformAuthConstants.PLATFORM_EXTENSION_PROVIDER;
29
30
  }
@@ -32,26 +33,51 @@ class PlatformAuthExtensionHandler {
32
33
  * @param request
33
34
  */
34
35
  async sendMessage(request) {
35
- this.logger.trace(`0on4p2 ${this.platformAuthType}`, request.correlationId);
36
- // fall back to native calls
37
- const messageBody = {
38
- method: NativeExtensionMethod.GetToken,
39
- request: request,
40
- };
41
- const req = {
42
- channel: PlatformAuthConstants.CHANNEL_ID,
43
- extensionId: this.extensionId,
44
- responseId: createNewGuid(),
45
- body: messageBody,
46
- };
47
- this.logger.trace(`1qadfi ${this.platformAuthType}`, request.correlationId);
48
- this.logger.tracePii(`1xm533 ${this.platformAuthType} ${JSON.stringify(req)}`, request.correlationId);
49
- this.messageChannel.port1.postMessage(req);
50
- const response = await new Promise((resolve, reject) => {
51
- this.resolvers.set(req.responseId, { resolve, reject });
36
+ const correlationId = this.getCorrelationId(request.correlationId);
37
+ const sendMessageMeasurement = this.performanceClient.startMeasurement(PlatformAuthExtensionGetToken, correlationId);
38
+ sendMessageMeasurement.add({
39
+ platformAuthProviderType: this.platformAuthType,
52
40
  });
53
- const validatedResponse = this.validatePlatformBrokerResponse(response);
54
- return validatedResponse;
41
+ this.logger.trace(`0on4p2 ${this.platformAuthType}`, correlationId);
42
+ try {
43
+ // fall back to native calls
44
+ const extensionRequest = { ...request };
45
+ delete extensionRequest.resourceRequestMethod;
46
+ delete extensionRequest.resourceRequestUri;
47
+ const messageBody = {
48
+ method: NativeExtensionMethod.GetToken,
49
+ request: extensionRequest,
50
+ };
51
+ const req = {
52
+ channel: PlatformAuthConstants.CHANNEL_ID,
53
+ extensionId: this.extensionId,
54
+ responseId: createNewGuid(),
55
+ body: messageBody,
56
+ };
57
+ this.logger.trace(`1qadfi ${this.platformAuthType}`, correlationId);
58
+ this.logger.tracePii(`1xm533 ${this.platformAuthType} ${JSON.stringify(req)}`, correlationId);
59
+ this.messageChannel.port1.postMessage(req);
60
+ const response = await new Promise((resolve, reject) => {
61
+ this.resolvers.set(req.responseId, {
62
+ resolve,
63
+ reject,
64
+ correlationId,
65
+ });
66
+ });
67
+ const validatedResponse = this.validatePlatformBrokerResponse(response, correlationId);
68
+ sendMessageMeasurement.end({
69
+ success: true,
70
+ platformAuthProviderType: this.platformAuthType,
71
+ });
72
+ return validatedResponse;
73
+ }
74
+ catch (e) {
75
+ sendMessageMeasurement.end({
76
+ success: false,
77
+ platformAuthProviderType: this.platformAuthType,
78
+ }, e);
79
+ throw e;
80
+ }
55
81
  }
56
82
  /**
57
83
  * Returns an instance of the MessageHandler that has successfully established a connection with an extension
@@ -62,23 +88,51 @@ class PlatformAuthExtensionHandler {
62
88
  */
63
89
  static async createProvider(logger, handshakeTimeoutMs, performanceClient, correlationId) {
64
90
  logger.trace("15zfnw", correlationId);
91
+ const createProviderMeasurement = performanceClient.startMeasurement(PlatformAuthExtensionCreateProvider, correlationId);
65
92
  try {
66
- const preferredProvider = new PlatformAuthExtensionHandler(logger, handshakeTimeoutMs, performanceClient, PlatformAuthConstants.PREFERRED_EXTENSION_ID);
67
- await preferredProvider.sendHandshakeRequest(correlationId);
93
+ const preferredProvider = new PlatformAuthExtensionHandler(logger, handshakeTimeoutMs, performanceClient, PlatformAuthConstants.PREFERRED_EXTENSION_ID, correlationId);
94
+ await preferredProvider.sendHandshakeRequest();
95
+ createProviderMeasurement.add({
96
+ platformAuthProviderAvailable: true,
97
+ platformAuthProviderType: PlatformAuthConstants.PLATFORM_EXTENSION_PROVIDER,
98
+ });
99
+ createProviderMeasurement.end({
100
+ platformAuthProviderAvailable: true,
101
+ platformAuthProviderType: PlatformAuthConstants.PLATFORM_EXTENSION_PROVIDER,
102
+ });
68
103
  return preferredProvider;
69
104
  }
70
105
  catch (e) {
71
106
  // If preferred extension fails for whatever reason, fallback to using any installed extension
72
- const backupProvider = new PlatformAuthExtensionHandler(logger, handshakeTimeoutMs, performanceClient);
73
- await backupProvider.sendHandshakeRequest(correlationId);
74
- return backupProvider;
107
+ try {
108
+ const backupProvider = new PlatformAuthExtensionHandler(logger, handshakeTimeoutMs, performanceClient, undefined, correlationId);
109
+ await backupProvider.sendHandshakeRequest();
110
+ createProviderMeasurement.add({
111
+ platformAuthProviderAvailable: true,
112
+ platformAuthProviderType: PlatformAuthConstants.PLATFORM_EXTENSION_PROVIDER,
113
+ });
114
+ createProviderMeasurement.end({
115
+ platformAuthProviderAvailable: true,
116
+ platformAuthProviderType: PlatformAuthConstants.PLATFORM_EXTENSION_PROVIDER,
117
+ });
118
+ return backupProvider;
119
+ }
120
+ catch (backupError) {
121
+ createProviderMeasurement.add({
122
+ platformAuthProviderAvailable: false,
123
+ });
124
+ createProviderMeasurement.end({
125
+ platformAuthProviderAvailable: false,
126
+ }, backupError);
127
+ throw backupError;
128
+ }
75
129
  }
76
130
  }
77
131
  /**
78
132
  * Send handshake request helper.
79
133
  */
80
- async sendHandshakeRequest(correlationId) {
81
- this.logger.trace(`1dpg9o ${this.platformAuthType}`, correlationId);
134
+ async sendHandshakeRequest() {
135
+ this.logger.trace(`1dpg9o ${this.platformAuthType}`, this.correlationId);
82
136
  // Register this event listener before sending handshake
83
137
  window.addEventListener("message", this.windowListener, false); // false is important, because content script message processing should work first
84
138
  const req = {
@@ -92,13 +146,18 @@ class PlatformAuthExtensionHandler {
92
146
  this.handshakeEvent.add({
93
147
  extensionId: this.extensionId,
94
148
  extensionHandshakeTimeoutMs: this.handshakeTimeoutMs,
149
+ platformAuthRequestCorrelationId: this.correlationId,
95
150
  });
96
151
  this.messageChannel.port1.onmessage = (event) => {
97
152
  this.onChannelMessage(event);
98
153
  };
99
154
  window.postMessage(req, window.origin, [this.messageChannel.port2]);
100
155
  return new Promise((resolve, reject) => {
101
- this.handshakeResolvers.set(req.responseId, { resolve, reject });
156
+ this.handshakeResolvers.set(req.responseId, {
157
+ resolve,
158
+ reject,
159
+ correlationId: this.correlationId,
160
+ });
102
161
  this.timeoutId = window.setTimeout(() => {
103
162
  /*
104
163
  * Throw an error if neither HandshakeResponse nor original Handshake request are received in a reasonable timeframe.
@@ -107,11 +166,14 @@ class PlatformAuthExtensionHandler {
107
166
  window.removeEventListener("message", this.windowListener, false);
108
167
  this.messageChannel.port1.close();
109
168
  this.messageChannel.port2.close();
169
+ this.handshakeEvent.add({
170
+ extensionHandshakeTimedOut: true,
171
+ });
110
172
  this.handshakeEvent.end({
111
173
  extensionHandshakeTimedOut: true,
112
174
  success: false,
113
175
  });
114
- reject(createBrowserAuthError(nativeHandshakeTimeout, ""));
176
+ reject(createBrowserAuthError(nativeHandshakeTimeout, this.correlationId));
115
177
  this.handshakeResolvers.delete(req.responseId);
116
178
  }, this.handshakeTimeoutMs); // Use a reasonable timeout in milliseconds here
117
179
  });
@@ -121,7 +183,7 @@ class PlatformAuthExtensionHandler {
121
183
  * @param event
122
184
  */
123
185
  onWindowMessage(event) {
124
- const correlationId = createGuid();
186
+ let correlationId = createGuid();
125
187
  this.logger.trace(`0jpn5u ${this.platformAuthType}`, correlationId);
126
188
  // We only accept messages from ourselves
127
189
  if (event.source !== window) {
@@ -145,6 +207,7 @@ class PlatformAuthExtensionHandler {
145
207
  this.logger.trace(`07buhm ${this.platformAuthType} ${request.responseId}`, correlationId);
146
208
  return;
147
209
  }
210
+ correlationId = handshakeResolver.correlationId;
148
211
  // If we receive this message back it means no extension intercepted the request, meaning no extension supporting handshake protocol is installed
149
212
  this.logger.verbose(request.extensionId
150
213
  ? `0xrkug ${request.extensionId}`
@@ -153,11 +216,15 @@ class PlatformAuthExtensionHandler {
153
216
  this.messageChannel.port1.close();
154
217
  this.messageChannel.port2.close();
155
218
  window.removeEventListener("message", this.windowListener, false);
219
+ this.handshakeEvent.add({
220
+ extensionInstalled: false,
221
+ });
156
222
  this.handshakeEvent.end({
157
223
  success: false,
158
224
  extensionInstalled: false,
159
225
  });
160
- handshakeResolver.reject(createBrowserAuthError(nativeExtensionNotInstalled, ""));
226
+ handshakeResolver.reject(createBrowserAuthError(nativeExtensionNotInstalled, correlationId));
227
+ this.handshakeResolvers.delete(request.responseId);
161
228
  }
162
229
  }
163
230
  /**
@@ -165,36 +232,47 @@ class PlatformAuthExtensionHandler {
165
232
  * @param event
166
233
  */
167
234
  onChannelMessage(event) {
168
- const correlationId = createGuid();
169
- this.logger.trace(`1py8yf ${this.platformAuthType}`, correlationId);
170
235
  const request = event.data;
171
- const resolver = this.resolvers.get(request.responseId);
172
- const handshakeResolver = this.handshakeResolvers.get(request.responseId);
236
+ const responseId = request?.responseId;
237
+ const resolver = responseId
238
+ ? this.resolvers.get(responseId)
239
+ : undefined;
240
+ const handshakeResolver = responseId
241
+ ? this.handshakeResolvers.get(responseId)
242
+ : undefined;
243
+ const correlationId = resolver?.correlationId ||
244
+ handshakeResolver?.correlationId ||
245
+ createGuid();
246
+ this.logger.trace(`1py8yf ${this.platformAuthType}`, correlationId);
173
247
  try {
174
248
  const method = request.body.method;
175
249
  if (method === NativeExtensionMethod.Response) {
176
250
  if (!resolver) {
177
251
  return;
178
252
  }
179
- const response = request.body.response;
180
- this.logger.trace(`19hpgm ${this.platformAuthType}`, correlationId);
181
- this.logger.tracePii(`179a24 ${this.platformAuthType} ${JSON.stringify(response)}`, correlationId);
182
- if (response.status !== "Success") {
183
- resolver.reject(createNativeAuthError(response.code, correlationId, response.description, response.ext));
184
- }
185
- else if (response.result) {
186
- if (response.result["code"] &&
187
- response.result["description"]) {
188
- resolver.reject(createNativeAuthError(response.result["code"], correlationId, response.result["description"], response.result["ext"]));
253
+ try {
254
+ const response = request.body.response;
255
+ this.logger.trace(`19hpgm ${this.platformAuthType}`, correlationId);
256
+ this.logger.tracePii(`179a24 ${this.platformAuthType} ${JSON.stringify(response)}`, correlationId);
257
+ if (response.status !== "Success") {
258
+ resolver.reject(createNativeAuthError(response.code, correlationId, response.description, response.ext));
259
+ }
260
+ else if (response.result) {
261
+ if (response.result["code"] &&
262
+ response.result["description"]) {
263
+ resolver.reject(createNativeAuthError(response.result["code"], correlationId, response.result["description"], response.result["ext"]));
264
+ }
265
+ else {
266
+ resolver.resolve(response.result);
267
+ }
189
268
  }
190
269
  else {
191
- resolver.resolve(response.result);
270
+ throw createAuthError(AuthErrorCodes.unexpectedError, correlationId, "Event does not contain result.");
192
271
  }
193
272
  }
194
- else {
195
- throw createAuthError(AuthErrorCodes.unexpectedError, correlationId, "Event does not contain result.");
273
+ finally {
274
+ this.resolvers.delete(request.responseId);
196
275
  }
197
- this.resolvers.delete(request.responseId);
198
276
  }
199
277
  else if (method === NativeExtensionMethod.HandshakeResponse) {
200
278
  if (!handshakeResolver) {
@@ -204,25 +282,46 @@ class PlatformAuthExtensionHandler {
204
282
  clearTimeout(this.timeoutId); // Clear setTimeout
205
283
  window.removeEventListener("message", this.windowListener, false); // Remove 'No extension' listener
206
284
  this.extensionId = request.extensionId;
207
- this.extensionVersion = request.body.version;
285
+ this.extensionVersion = request.body.version?.toString();
208
286
  this.logger.verbose(`0yf5ib ${this.platformAuthType} ${this.extensionId}`, correlationId);
287
+ this.handshakeEvent.add({
288
+ extensionId: this.extensionId,
289
+ extensionVersion: this.extensionVersion,
290
+ extensionInstalled: true,
291
+ });
209
292
  this.handshakeEvent.end({
293
+ extensionId: this.extensionId,
294
+ extensionVersion: this.extensionVersion,
210
295
  extensionInstalled: true,
211
296
  success: true,
212
297
  });
213
298
  handshakeResolver.resolve();
214
299
  this.handshakeResolvers.delete(request.responseId);
215
300
  }
216
- // Do nothing if method is not Response or HandshakeResponse
301
+ else if (resolver) {
302
+ this.resolvers.delete(request.responseId);
303
+ resolver.reject(createAuthError(AuthErrorCodes.unexpectedError, correlationId, "Extension response contains an unexpected method."));
304
+ }
217
305
  }
218
306
  catch (err) {
219
307
  this.logger.error("0xf978", correlationId);
220
308
  this.logger.errorPii(`04i99o ${err}`, correlationId);
221
309
  this.logger.errorPii(`0xdvsy ${event}`, correlationId);
222
310
  if (resolver) {
223
- resolver.reject(err);
311
+ this.resolvers.delete(responseId);
312
+ resolver.reject(err instanceof AuthError
313
+ ? err
314
+ : createAuthError(AuthErrorCodes.unexpectedError, correlationId, "Unable to parse extension response."));
224
315
  }
225
316
  else if (handshakeResolver) {
317
+ clearTimeout(this.timeoutId);
318
+ window.removeEventListener("message", this.windowListener, false);
319
+ this.messageChannel.port1.close();
320
+ this.messageChannel.port2.close();
321
+ this.handshakeEvent.end({
322
+ success: false,
323
+ });
324
+ this.handshakeResolvers.delete(responseId);
226
325
  handshakeResolver.reject(err);
227
326
  }
228
327
  }
@@ -231,19 +330,34 @@ class PlatformAuthExtensionHandler {
231
330
  * Validates native platform response before processing
232
331
  * @param response
233
332
  */
234
- validatePlatformBrokerResponse(response) {
235
- if (response.hasOwnProperty("access_token") &&
236
- response.hasOwnProperty("id_token") &&
237
- response.hasOwnProperty("client_info") &&
238
- response.hasOwnProperty("account") &&
239
- response.hasOwnProperty("scope") &&
240
- response.hasOwnProperty("expires_in")) {
333
+ validatePlatformBrokerResponse(response, correlationId) {
334
+ const responseCorrelationId = this.getCorrelationId(correlationId);
335
+ const validationMeasurement = this.performanceClient.startMeasurement(PlatformAuthExtensionValidateResponse, responseCorrelationId);
336
+ if (response &&
337
+ Object.prototype.hasOwnProperty.call(response, "access_token") &&
338
+ Object.prototype.hasOwnProperty.call(response, "id_token") &&
339
+ Object.prototype.hasOwnProperty.call(response, "client_info") &&
340
+ Object.prototype.hasOwnProperty.call(response, "account") &&
341
+ Object.prototype.hasOwnProperty.call(response, "scope") &&
342
+ Object.prototype.hasOwnProperty.call(response, "expires_in")) {
343
+ validationMeasurement.end({
344
+ success: true,
345
+ platformAuthProviderType: this.platformAuthType,
346
+ });
241
347
  return response;
242
348
  }
243
349
  else {
244
- throw createAuthError(AuthErrorCodes.unexpectedError, "", "Response missing expected properties.");
350
+ const error = createAuthError(AuthErrorCodes.unexpectedError, responseCorrelationId, "Response missing expected properties.");
351
+ validationMeasurement.end({
352
+ success: false,
353
+ platformAuthProviderType: this.platformAuthType,
354
+ }, error);
355
+ throw error;
245
356
  }
246
357
  }
358
+ getCorrelationId(correlationId) {
359
+ return correlationId || this.correlationId;
360
+ }
247
361
  /**
248
362
  * Returns the Id for the browser extension this handler is communicating with
249
363
  * @returns
@@ -1 +1 @@
1
- {"version":3,"file":"PlatformAuthExtensionHandler.mjs","sources":["../../../src/broker/nativeBroker/PlatformAuthExtensionHandler.ts"],"sourcesContent":[null],"names":["BrowserPerformanceEvents.NativeMessageHandlerHandshake","BrowserAuthErrorCodes.nativeHandshakeTimeout","BrowserAuthErrorCodes.nativeExtensionNotInstalled"],"mappings":";;;;;;;;;;;AAAA;;;AAGG;MAqCU,4BAA4B,CAAA;AAcrC,IAAA,WAAA,CACI,MAAc,EACd,kBAA0B,EAC1B,iBAAqC,EACrC,WAAoB,EAAA;AAEpB,QA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uCAAuC,CAC1C,CAAC;AACL,QAAA,CAAA;IACL,CAAC;AAED;;;AAGG;IACH,cAAc,GAAA;QACV,OAAO,IAAI,CAAC,WAAW,CAAC;IAC5B,CAAC;AAED;;;AAGG;IACH,mBAAmB,GAAA;QACf,OAAO,IAAI,CAAC,gBAAgB,CAAC;IACjC,CAAC;IAED,gBAAgB,GAAA;QACZ,OAAO,IAAI,CAAC,cAAc,EAAE;AACxB,YAAA,qBAAqB,CAAC,sBAAsB;AAC5C,cAAE,QAAQ;AACV,cAAE,IAAI,CAAC,cAAc,EAAE,EAAE,MAAM;AAC/B,kBAAE,SAAS;kBACT,SAAS,CAAC;IACpB,CAAC;AACJ;;;;"}
1
+ {"version":3,"file":"PlatformAuthExtensionHandler.mjs","sources":["../../../src/broker/nativeBroker/PlatformAuthExtensionHandler.ts"],"sourcesContent":[null],"names":["BrowserPerformanceEvents.NativeMessageHandlerHandshake","BrowserPerformanceEvents.PlatformAuthExtensionGetToken","BrowserPerformanceEvents.PlatformAuthExtensionCreateProvider","BrowserAuthErrorCodes.nativeHandshakeTimeout","BrowserAuthErrorCodes.nativeExtensionNotInstalled","BrowserPerformanceEvents.PlatformAuthExtensionValidateResponse"],"mappings":";;;;;;;;;;;AAAA;;;AAGG;MAsCU,4BAA4B,CAAA;IAerC,WAAA,CACI,MAAc,EACd,kBAA0B,EAC1B,iBAAqC,EACrC,WAAoB,EACpB,aAAsB,EAAA;AAEtB,QAAA,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;AACrB,QAAA,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;AAC7C,QAAA,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,SAAS,GAAG,IAAI,GAAG,EAAE,CAAC;QAC3B,IAAI,CAAC,kBAAkB,GAAG,IAAI,GAAG,EAAE,CAAC;AACpC,QAAA,IAAI,CAAC,cAAc,GAAG,IAAI,cAAc,EAAE,CAAC;AAC3C,QAAA,IAAI,CAA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AC;AACH,YAAA,OAAO,QAAgC,CAAC;AAC3C,QAAA,CAAA;AAAM,aAAA;AACH,YAAA,MAAM,KAAK,GAAG,eAAe,CACzB,cAAc,CAAC,eAAe,EAC9B,qBAAqB,EACrB,uCAAuC,CAC1C,CAAC;YACF,qBAAqB,CAAC,GAAG,CACrB;AACI,gBAAA,OAAO,EAAE,KAAK;gBACd,wBAAwB,EAAE,IAAI,CAAC,gBAAgB;aAClD,EACD,KAAK,CACR,CAAC;AACF,YAAA,MAAM,KAAK,CAAC;AACf,QAAA,CAAA;IACL,CAAC;AAEO,IAAA,gBAAgB,CAAC,aAAsB,EAAA;AAC3C,QAAA,OAAO,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC;IAC/C,CAAC;AAED;;;AAGG;IACH,cAAc,GAAA;QACV,OAAO,IAAI,CAAC,WAAW,CAAC;IAC5B,CAAC;AAED;;;AAGG;IACH,mBAAmB,GAAA;QACf,OAAO,IAAI,CAAC,gBAAgB,CAAC;IACjC,CAAC;IAED,gBAAgB,GAAA;QACZ,OAAO,IAAI,CAAC,cAAc,EAAE;AACxB,YAAA,qBAAqB,CAAC,sBAAsB;AAC5C,cAAE,QAAQ;AACV,cAAE,IAAI,CAAC,cAAc,EAAE,EAAE,MAAM;AAC/B,kBAAE,SAAS;kBACT,SAAS,CAAC;IACpB,CAAC;AACJ;;;;"}
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v5.22.0 2026-09-15 */
1
+ /*! @azure/msal-browser v5.24.0 2026-10-02 */
2
2
  'use strict';
3
3
  import { Logger, StubPerformanceClient, createClientConfigurationError, ClientConfigurationErrorCodes, Constants } from '@azure/msal-common/browser';
4
4
  import { name, version } from '../../packageMetadata.mjs';
@@ -6,6 +6,8 @@ import { DEFAULT_NATIVE_BROKER_HANDSHAKE_TIMEOUT_MS } from '../../config/Configu
6
6
  import { PlatformAuthExtensionHandler } from './PlatformAuthExtensionHandler.mjs';
7
7
  import { PlatformAuthDOMHandler } from './PlatformAuthDOMHandler.mjs';
8
8
  import { createNewGuid } from '../../crypto/BrowserCrypto.mjs';
9
+ import { PlatformAuthProviderDiscovery } from '../../telemetry/BrowserPerformanceEvents.mjs';
10
+ import { PlatformAuthConstants } from '../../utils/BrowserConstants.mjs';
9
11
 
10
12
  /*
11
13
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -30,26 +32,55 @@ async function isPlatformBrokerAvailable(domConfig, loggerOptions, perfClient, c
30
32
  }
31
33
  async function getPlatformAuthProvider(logger, performanceClient, correlationId, nativeBrokerHandshakeTimeout, enablePlatformBrokerDOMSupport) {
32
34
  logger.trace("134j0v", correlationId);
35
+ const discoveryMeasurement = performanceClient.startMeasurement(PlatformAuthProviderDiscovery, correlationId);
33
36
  logger.trace(`04c81g ${enablePlatformBrokerDOMSupport}`, correlationId);
34
37
  let platformAuthProvider;
35
38
  try {
36
39
  if (enablePlatformBrokerDOMSupport) {
37
40
  // Check if DOM platform API is supported first
38
- platformAuthProvider = await PlatformAuthDOMHandler.createProvider(logger, performanceClient, correlationId);
41
+ try {
42
+ platformAuthProvider =
43
+ await PlatformAuthDOMHandler.createProvider(logger, performanceClient, correlationId);
44
+ }
45
+ catch (e) {
46
+ logger.trace("1ij09j", correlationId);
47
+ }
48
+ if (platformAuthProvider) {
49
+ discoveryMeasurement.add({
50
+ platformAuthProviderType: PlatformAuthConstants.PLATFORM_DOM_PROVIDER,
51
+ });
52
+ discoveryMeasurement.end({
53
+ success: true,
54
+ platformAuthProviderType: PlatformAuthConstants.PLATFORM_DOM_PROVIDER,
55
+ });
56
+ return platformAuthProvider;
57
+ }
39
58
  }
40
- if (!platformAuthProvider) {
41
- logger.trace("0l3na8", correlationId);
42
- /*
43
- * If DOM APIs are not available, check if browser extension is available.
44
- * Platform authentication via DOM APIs is preferred over extension APIs.
45
- */
46
- platformAuthProvider =
47
- await PlatformAuthExtensionHandler.createProvider(logger, nativeBrokerHandshakeTimeout ||
48
- DEFAULT_NATIVE_BROKER_HANDSHAKE_TIMEOUT_MS, performanceClient, correlationId);
59
+ logger.trace("0l3na8", correlationId);
60
+ /*
61
+ * If DOM APIs are not available, check if browser extension is available.
62
+ * Platform authentication via DOM APIs is preferred over extension APIs.
63
+ */
64
+ platformAuthProvider =
65
+ await PlatformAuthExtensionHandler.createProvider(logger, nativeBrokerHandshakeTimeout ||
66
+ DEFAULT_NATIVE_BROKER_HANDSHAKE_TIMEOUT_MS, performanceClient, correlationId);
67
+ if (platformAuthProvider) {
68
+ discoveryMeasurement.add({
69
+ platformAuthProviderType: PlatformAuthConstants.PLATFORM_EXTENSION_PROVIDER,
70
+ });
49
71
  }
72
+ discoveryMeasurement.end({
73
+ success: !!platformAuthProvider,
74
+ platformAuthProviderType: platformAuthProvider
75
+ ? PlatformAuthConstants.PLATFORM_EXTENSION_PROVIDER
76
+ : undefined,
77
+ });
50
78
  }
51
79
  catch (e) {
52
80
  logger.trace("0icbd7", e);
81
+ discoveryMeasurement.end({
82
+ success: false,
83
+ }, e);
53
84
  }
54
85
  return platformAuthProvider;
55
86
  }
@@ -61,8 +92,22 @@ async function getPlatformAuthProvider(logger, performanceClient, correlationId,
61
92
  * @param platformAuthProvider
62
93
  * @param authenticationScheme
63
94
  */
64
- function isPlatformAuthAllowed(config, logger, correlationId, platformAuthProvider, authenticationScheme) {
95
+ function isPlatformAuthAllowed(config, logger, correlationId, platformAuthProvider, authenticationScheme, performanceClient) {
65
96
  logger.trace("0uko3r", correlationId);
97
+ const schemeSupported = !authenticationScheme ||
98
+ authenticationScheme === Constants.AuthenticationScheme.BEARER ||
99
+ authenticationScheme === Constants.AuthenticationScheme.POP;
100
+ const fields = {
101
+ allowPlatformBroker: config.system.allowPlatformBroker,
102
+ ...(config.system.allowPlatformBroker && {
103
+ platformAuthProviderType: platformAuthProvider instanceof PlatformAuthDOMHandler
104
+ ? PlatformAuthConstants.PLATFORM_DOM_PROVIDER
105
+ : platformAuthProvider
106
+ ? PlatformAuthConstants.PLATFORM_EXTENSION_PROVIDER
107
+ : undefined,
108
+ }),
109
+ };
110
+ performanceClient?.addFields(fields, correlationId);
66
111
  // throw an error if allowPlatformBroker is not enabled and allowPlatformBrokerWithDOM is enabled
67
112
  if (!config.system.allowPlatformBroker &&
68
113
  config.experimental.allowPlatformBrokerWithDOM) {
@@ -78,17 +123,11 @@ function isPlatformAuthAllowed(config, logger, correlationId, platformAuthProvid
78
123
  // Platform broker auth providers are not available
79
124
  return false;
80
125
  }
81
- if (authenticationScheme) {
82
- switch (authenticationScheme) {
83
- case Constants.AuthenticationScheme.BEARER:
84
- case Constants.AuthenticationScheme.POP:
85
- logger.trace("18tev1", correlationId);
86
- return true;
87
- default:
88
- logger.trace("1dd2nh", correlationId);
89
- return false;
90
- }
126
+ if (!schemeSupported) {
127
+ logger.trace("1dd2nh", correlationId);
128
+ return false;
91
129
  }
130
+ logger.trace("18tev1", correlationId);
92
131
  return true;
93
132
  }
94
133
 
@@ -1 +1 @@
1
- {"version":3,"file":"PlatformAuthProvider.mjs","sources":["../../../src/broker/nativeBroker/PlatformAuthProvider.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;AAAA;;;AAGG;AAqBH;;;;;;;AAOG;AACI,eAAe,yBAAyB,CAC3C,SAAkB,EAClB,aAA6B,EAC7B,UAA+B,EAC/B,aAAsB,EAAA;AAEtB,IAAA,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,aAAa,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;AAE9D,IAAA,MAAM,iBAAiB,GAAG,UAAU,IAAI,IAAI,qBAAqB,EAAE,CAAC;AAEpE,IAAA,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;QAC/B,MAAM,CAAC,KAAK,CACR,QAAA,EAAA,aAAA,IAAA,aAAA,EAAA,CAAA,CAAA;AAGJ,QAAA,OAAO,KAAK,CAAC;AAChB,IAAA,CAAA;IAED,OAAO,CAAC,EAAE,MAAM,uBAAuB,CACnC,MAAM,EACN,iBAAiB,EACjB,aAAa,IA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MAAM,CAAC,mBAAmB,EAAE;AACpC,QAAA,MAAM,CAAC,KAAK,CACR;;AAIJ,QAAA,OAAO,KAAK,CAAC;AAChB,IAAA,CAAA;IAED,IAAI,CAAC,oBAAoB,EAAE;AACvB,QAAA,MAAM,CAAC,KAAK,CACR;;AAIJ,QAAA,OAAO,KAAK,CAAC;AAChB,IAAA,CAAA;AAED,IAAA,IAAI,oBAAoB,EAAE;AACtB,QAAA,QAAQ,oBAAoB;AACxB,YAAA,KAAK,SAAS,CAAC,oBAAoB,CAAC,MAAM,CAAC;AAC3C,YAAA,KAAK,SAAS,CAAC,oBAAoB,CAAC,GAAG;AACnC,gBAAA,MAAM,CAAC,KAAK,CACR;AAGJ,gBAAA,OAAO,IAAI,CAAC;AAChB,YAAA;AACI,gBAAA,MAAM,CAAC,KAAK,CACR;AAGJ,gBAAA,OAAO,KAAK,CAAC;AACpB,SAAA;AACJ,IAAA,CAAA;AACD,IAAA,OAAO,IAAI,CAAC;AAChB;;;;"}
1
+ {"version":3,"file":"PlatformAuthProvider.mjs","sources":["../../../src/broker/nativeBroker/PlatformAuthProvider.ts"],"sourcesContent":[null],"names":["BrowserPerformanceEvents.PlatformAuthProviderDiscovery"],"mappings":";;;;;;;;;;;AAAA;;;AAGG;AAuBH;;;;;;;AAOG;AACI,eAAe,yBAAyB,CAC3C,SAAkB,EAClB,aAA6B,EAC7B,UAA+B,EAC/B,aAAsB,EAAA;AAEtB,IAAA,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,aAAa,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;AAE9D,IAAA,MAAM,iBAAiB,GAAG,UAAU,IAAI,IAAI,qBAAqB,EAAE,CAAC;AAEpE,IAAA,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;QAC/B,MAAM,CAAC,KAAK,CACR,QAAA,EAAA,aAAA,IAAA,aAAA,EAAA,CAAA,CAAA;AAGJ,QAAA,OAAO,KAAK,CAAC;AAChB,IAAA,CAA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AAA,iBAAiB,EAAE,SAAS,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;;AAGpD,IAAA,IACI,CAAC,MAAM,CAAC,MAAM,CAAC,mBAAmB;AAClC,QAAA,MAAM,CAAC,YAAY,CAAC,0BAA0B,EAChD;QACE,MAAM,8BAA8B,CAChC,6BAA6B,CAAC,kCAAkC,EAChE,EAAE,CACL,CAAC;AACL,IAAA,CAAA;AAED,IAAA,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,mBAAmB,EAAE;AACpC,QAAA,MAAM,CAAC,KAAK,CACR;;AAIJ,QAAA,OAAO,KAAK,CAAC;AAChB,IAAA,CAAA;IAED,IAAI,CAAC,oBAAoB,EAAE;AACvB,QAAA,MAAM,CAAC,KAAK,CACR;;AAIJ,QAAA,OAAO,KAAK,CAAC;AAChB,IAAA,CAAA;IAED,IAAI,CAAC,eAAe,EAAE;AAClB,QAAA,MAAM,CAAC,KAAK,CACR;AAGJ,QAAA,OAAO,KAAK,CAAC;AAChB,IAAA,CAAA;AAED,IAAA,MAAM,CAAC,KAAK,CACR;AAGJ,IAAA,OAAO,IAAI,CAAC;AAChB;;;;"}
@@ -0,0 +1,49 @@
1
+ /*! @azure/msal-browser v5.24.0 2026-10-02 */
2
+ 'use strict';
3
+ import { Constants } from '@azure/msal-common/browser';
4
+
5
+ /*
6
+ * Copyright (c) Microsoft Corporation. All rights reserved.
7
+ * Licensed under the MIT License.
8
+ */
9
+ /**
10
+ * Token types supported by the platform broker request contract.
11
+ */
12
+ const PlatformAuthTokenType = {
13
+ DPOP_WITH_PROOF: "dpop+proof",
14
+ };
15
+ const PROOF_OF_POSSESSION_TOKEN_TYPES = [
16
+ Constants.AuthenticationScheme.POP,
17
+ Constants.AuthenticationScheme.DPOP,
18
+ PlatformAuthTokenType.DPOP_WITH_PROOF,
19
+ ];
20
+ /**
21
+ * Returns whether a platform broker token type requires proof request metadata.
22
+ */
23
+ function isProofOfPossessionTokenType(tokenType) {
24
+ return (tokenType !== undefined &&
25
+ PROOF_OF_POSSESSION_TOKEN_TYPES.includes(tokenType));
26
+ }
27
+ /**
28
+ * Adds canonical proof request fields to the broker no-cache property bag.
29
+ */
30
+ function createPlatformAuthExtraParametersNoCache(extraParametersNoCache, isProofOfPossessionRequest, resourceRequestMethod, resourceRequestUri, dpopNonce) {
31
+ if (!isProofOfPossessionRequest) {
32
+ return extraParametersNoCache;
33
+ }
34
+ return {
35
+ ...extraParametersNoCache,
36
+ ...(resourceRequestMethod && {
37
+ pop_method: resourceRequestMethod,
38
+ }),
39
+ ...(resourceRequestUri && {
40
+ pop_url: resourceRequestUri,
41
+ }),
42
+ ...(dpopNonce && {
43
+ pop_nonce: dpopNonce,
44
+ }),
45
+ };
46
+ }
47
+
48
+ export { PlatformAuthTokenType, createPlatformAuthExtraParametersNoCache, isProofOfPossessionTokenType };
49
+ //# sourceMappingURL=PlatformAuthRequest.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlatformAuthRequest.mjs","sources":["../../../src/broker/nativeBroker/PlatformAuthRequest.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;;;AAGG;AA6BH;;AAEG;AACI,MAAM,qBAAqB,GAAG;AACjC,IAAA,eAAe,EAAE,YAAY;EACtB;AAuBX,MAAM,+BAA+B,GAAqC;IACtE,SAAS,CAAC,oBAAoB,CAAC,GAAG;IAClC,SAAS,CAAC,oBAAoB,CAAC,IAAI;AACnC,IAAA,qBAAqB,CAAC,eAAe;CACxC,CAAC;AAEF;;AAEG;AACG,SAAU,4BAA4B,CACxC,SAA4C,EAAA;IAE5C,QACI,SAAS,KAAK,SAAS;AACvB,QAAA,+BAA+B,CAAC,QAAQ,CAAC,SAAS,CAAC,EACrD;AACN,CAAC;AA6CD;;AAEG;AACG,SAAU,wCAAwC,CACpD,sBAAsE,EACtE,0BAAmC,EACnC,qBAA8B,EAC9B,kBAA2B,EAC3B,SAAkB,EAAA;IAElB,IAAI,CAAC,0BAA0B,EAAE;AAC7B,QAAA,OAAO,sBAAsB,CAAC;AACjC,IAAA,CAAA;IAED,OAAO;AACH,QAAA,GAAG,sBAAsB;QACzB,IAAI,qBAAqB,IAAI;AACzB,YAAA,UAAU,EAAE,qBAAqB;SACpC,CAAC;QACF,IAAI,kBAAkB,IAAI;AACtB,YAAA,OAAO,EAAE,kBAAkB;SAC9B,CAAC;QACF,IAAI,SAAS,IAAI;AACb,YAAA,SAAS,EAAE,SAAS;SACvB,CAAC;KACL,CAAC;AACN;;;;"}
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v5.22.0 2026-09-15 */
1
+ /*! @azure/msal-browser v5.24.0 2026-10-02 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.