@azure/msal-browser 5.22.0 → 5.23.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/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 +23 -3
  5. package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs.map +1 -1
  6. package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +5 -2
  7. package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs.map +1 -1
  8. package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
  9. package/dist/broker/nativeBroker/PlatformAuthRequest.mjs +49 -0
  10. package/dist/broker/nativeBroker/PlatformAuthRequest.mjs.map +1 -0
  11. package/dist/cache/AccountManager.mjs +1 -1
  12. package/dist/cache/AsyncMemoryStorage.mjs +1 -1
  13. package/dist/cache/BrowserCacheManager.mjs +1 -1
  14. package/dist/cache/CacheHelpers.mjs +1 -1
  15. package/dist/cache/CacheKeys.mjs +1 -1
  16. package/dist/cache/CookieStorage.mjs +1 -1
  17. package/dist/cache/DatabaseStorage.mjs +1 -1
  18. package/dist/cache/EncryptedData.mjs +1 -1
  19. package/dist/cache/LocalStorage.mjs +1 -1
  20. package/dist/cache/MemoryStorage.mjs +1 -1
  21. package/dist/cache/SessionStorage.mjs +1 -1
  22. package/dist/cache/TokenCache.mjs +1 -1
  23. package/dist/config/Configuration.mjs +1 -1
  24. package/dist/controllers/NestedAppAuthController.mjs +1 -1
  25. package/dist/controllers/StandardController.mjs +1 -1
  26. package/dist/crypto/BrowserCrypto.mjs +1 -1
  27. package/dist/crypto/CryptoOps.mjs +1 -1
  28. package/dist/crypto/PkceGenerator.mjs +1 -1
  29. package/dist/crypto/SignedHttpRequest.mjs +1 -1
  30. package/dist/crypto/TokenBindingKeyManager.mjs +1 -1
  31. package/dist/custom_auth/CustomAuthConstants.mjs +1 -1
  32. package/dist/custom_auth/CustomAuthPublicClientApplication.mjs +27 -2
  33. package/dist/custom_auth/CustomAuthPublicClientApplication.mjs.map +1 -1
  34. package/dist/custom_auth/controller/CustomAuthStandardController.mjs +192 -2
  35. package/dist/custom_auth/controller/CustomAuthStandardController.mjs.map +1 -1
  36. package/dist/custom_auth/core/CustomAuthAuthority.mjs +1 -1
  37. package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +1 -1
  38. package/dist/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
  39. package/dist/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
  40. package/dist/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs +1 -1
  41. package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +1 -1
  42. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -1
  43. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -1
  44. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +1 -1
  45. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
  46. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +1 -1
  47. package/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs +1 -1
  48. package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +1 -1
  49. package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -1
  50. package/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs +1 -1
  51. package/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +1 -1
  52. package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +1 -1
  53. package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs +21 -0
  54. package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs.map +1 -0
  55. package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs +80 -0
  56. package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs.map +1 -0
  57. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.mjs +102 -0
  58. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.mjs.map +1 -0
  59. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs +12 -0
  60. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs.map +1 -0
  61. package/dist/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.mjs +20 -0
  62. package/dist/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.mjs.map +1 -0
  63. package/dist/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.mjs +36 -0
  64. package/dist/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.mjs.map +1 -0
  65. package/dist/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.mjs +29 -0
  66. package/dist/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.mjs.map +1 -0
  67. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs +76 -0
  68. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs.map +1 -0
  69. package/dist/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.mjs +36 -0
  70. package/dist/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.mjs.map +1 -0
  71. package/dist/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.mjs +36 -0
  72. package/dist/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.mjs.map +1 -0
  73. package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs +134 -0
  74. package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs.map +1 -0
  75. package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs +23 -0
  76. package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs.map +1 -0
  77. package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs +22 -0
  78. package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs.map +1 -0
  79. package/dist/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.mjs +61 -0
  80. package/dist/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.mjs.map +1 -0
  81. package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs +87 -0
  82. package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs.map +1 -0
  83. package/dist/custom_auth/core/error/CustomAuthApiError.mjs +3 -2
  84. package/dist/custom_auth/core/error/CustomAuthApiError.mjs.map +1 -1
  85. package/dist/custom_auth/core/error/CustomAuthError.mjs +1 -1
  86. package/dist/custom_auth/core/error/HttpError.mjs +1 -1
  87. package/dist/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
  88. package/dist/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
  89. package/dist/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
  90. package/dist/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
  91. package/dist/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
  92. package/dist/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
  93. package/dist/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
  94. package/dist/custom_auth/core/error/ParsedUrlError.mjs +1 -1
  95. package/dist/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
  96. package/dist/custom_auth/core/error/UnexpectedError.mjs +1 -1
  97. package/dist/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
  98. package/dist/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
  99. package/dist/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
  100. package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
  101. package/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
  102. package/dist/custom_auth/core/interaction_client/jit/JitClient.mjs +1 -1
  103. package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +1 -1
  104. package/dist/custom_auth/core/interaction_client/mfa/MfaClient.mjs +1 -1
  105. package/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +1 -1
  106. package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs +602 -0
  107. package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs.map +1 -0
  108. package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs +67 -0
  109. package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs.map +1 -0
  110. package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs +46 -0
  111. package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs.map +1 -0
  112. package/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
  113. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
  114. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +3 -2
  115. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs.map +1 -1
  116. package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
  117. package/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
  118. package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
  119. package/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
  120. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
  121. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
  122. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.mjs +30 -0
  123. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.mjs.map +1 -0
  124. package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs +193 -0
  125. package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs.map +1 -0
  126. package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs +236 -0
  127. package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs.map +1 -0
  128. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.mjs +26 -0
  129. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.mjs.map +1 -0
  130. package/dist/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.mjs +66 -0
  131. package/dist/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.mjs.map +1 -0
  132. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs +97 -0
  133. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs.map +1 -0
  134. package/dist/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.mjs +56 -0
  135. package/dist/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.mjs.map +1 -0
  136. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs +23 -0
  137. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs.map +1 -0
  138. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs +14 -0
  139. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs.map +1 -0
  140. package/dist/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
  141. package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs +3 -2
  142. package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs.map +1 -1
  143. package/dist/custom_auth/core/telemetry/FlowApiIdHelperV2.mjs +38 -0
  144. package/dist/custom_auth/core/telemetry/FlowApiIdHelperV2.mjs.map +1 -0
  145. package/dist/custom_auth/core/telemetry/PublicApiId.mjs +20 -3
  146. package/dist/custom_auth/core/telemetry/PublicApiId.mjs.map +1 -1
  147. package/dist/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
  148. package/dist/custom_auth/core/utils/CustomHeaderUtils.mjs +1 -1
  149. package/dist/custom_auth/core/utils/UrlUtils.mjs +1 -1
  150. package/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
  151. package/dist/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
  152. package/dist/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
  153. package/dist/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
  154. package/dist/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
  155. package/dist/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
  156. package/dist/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
  157. package/dist/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
  158. package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
  159. package/dist/custom_auth/index.mjs +23 -1
  160. package/dist/custom_auth/index.mjs.map +1 -1
  161. package/dist/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
  162. package/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
  163. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
  164. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
  165. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
  166. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
  167. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
  168. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
  169. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
  170. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
  171. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
  172. package/dist/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.mjs +29 -0
  173. package/dist/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.mjs.map +1 -0
  174. package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs +59 -0
  175. package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs.map +1 -0
  176. package/dist/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
  177. package/dist/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
  178. package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
  179. package/dist/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
  180. package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
  181. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
  182. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +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/error_type/SignInContinuationErrorV2.mjs +18 -0
  190. package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.mjs.map +1 -0
  191. package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.mjs +37 -0
  192. package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.mjs.map +1 -0
  193. package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.mjs +23 -0
  194. package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.mjs.map +1 -0
  195. package/dist/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.mjs +70 -0
  196. package/dist/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.mjs.map +1 -0
  197. package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs +61 -0
  198. package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs.map +1 -0
  199. package/dist/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
  200. package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
  201. package/dist/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
  202. package/dist/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
  203. package/dist/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
  204. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
  205. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
  206. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
  207. package/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
  208. package/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
  209. package/dist/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
  210. package/dist/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
  211. package/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
  212. package/dist/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
  213. package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.mjs +25 -0
  214. package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.mjs.map +1 -0
  215. package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.mjs +33 -0
  216. package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.mjs.map +1 -0
  217. package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs +40 -0
  218. package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs.map +1 -0
  219. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.mjs +25 -0
  220. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.mjs.map +1 -0
  221. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.mjs +47 -0
  222. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.mjs.map +1 -0
  223. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.mjs +60 -0
  224. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.mjs.map +1 -0
  225. package/dist/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
  226. package/dist/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
  227. package/dist/encode/Base64Decode.mjs +1 -1
  228. package/dist/encode/Base64Encode.mjs +1 -1
  229. package/dist/error/BrowserAuthError.mjs +1 -1
  230. package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
  231. package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
  232. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  233. package/dist/error/NativeAuthError.mjs +1 -1
  234. package/dist/error/NativeAuthErrorCodes.mjs +1 -1
  235. package/dist/error/NestedAppAuthError.mjs +1 -1
  236. package/dist/event/EventHandler.mjs +1 -1
  237. package/dist/event/EventMessage.mjs +1 -1
  238. package/dist/event/EventType.mjs +1 -1
  239. package/dist/index.mjs +1 -1
  240. package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
  241. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  242. package/dist/interaction_client/PlatformAuthInteractionClient.mjs +8 -2
  243. package/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
  244. package/dist/interaction_client/PopupClient.mjs +1 -1
  245. package/dist/interaction_client/RedirectClient.mjs +11 -8
  246. package/dist/interaction_client/RedirectClient.mjs.map +1 -1
  247. package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
  248. package/dist/interaction_client/SilentCacheClient.mjs +1 -1
  249. package/dist/interaction_client/SilentIframeClient.mjs +1 -1
  250. package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
  251. package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
  252. package/dist/interaction_handler/InteractionHandler.mjs +1 -1
  253. package/dist/interaction_handler/SilentHandler.mjs +1 -1
  254. package/dist/log-strings-mapping.json +189 -5
  255. package/dist/naa/BridgeError.mjs +1 -1
  256. package/dist/naa/BridgeProxy.mjs +1 -1
  257. package/dist/naa/BridgeStatusCode.mjs +1 -1
  258. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
  259. package/dist/navigation/NavigationClient.mjs +1 -1
  260. package/dist/network/FetchClient.mjs +1 -1
  261. package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
  262. package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
  263. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  264. package/dist/packageMetadata.mjs +2 -2
  265. package/dist/popup_relay/constants.mjs +1 -1
  266. package/dist/popup_relay/index.mjs +1 -1
  267. package/dist/popup_relay/relayClient.mjs +1 -1
  268. package/dist/protocol/Authorize.mjs +1 -1
  269. package/dist/redirect_bridge/index.mjs +1 -1
  270. package/dist/request/RequestHelpers.mjs +1 -1
  271. package/dist/response/ResponseHandler.mjs +1 -1
  272. package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  273. package/dist/telemetry/BrowserPerformanceEvents.mjs +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/BrowserProtocolUtils.mjs +1 -1
  278. package/dist/utils/BrowserUtils.mjs +1 -1
  279. package/dist/utils/Helpers.mjs +1 -1
  280. package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
  281. package/dist/webBrokerBridge/PendingRequestRegistry.mjs +1 -1
  282. package/dist/webBrokerBridge/PerfEventNames.mjs +38 -0
  283. package/dist/webBrokerBridge/PerfEventNames.mjs.map +1 -0
  284. package/dist/webBrokerBridge/WebBrokerBridgeError.mjs +1 -1
  285. package/dist/webBrokerBridge/WebBrokerBridgeErrorMap.mjs +1 -1
  286. package/dist/webBrokerBridge/adapter/CrossVersionRequestAdapter.mjs +1 -1
  287. package/dist/webBrokerBridge/index.mjs +2 -1
  288. package/dist/webBrokerBridge/index.mjs.map +1 -1
  289. package/lib/custom-auth-path/log-strings-mapping.json +195 -11
  290. package/lib/custom-auth-path/msal-custom-auth.cjs +2975 -198
  291. package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
  292. package/lib/custom-auth-path/msal-custom-auth.js +2975 -198
  293. package/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
  294. package/lib/log-strings-mapping.json +2 -2
  295. package/lib/msal-browser.cjs +155 -81
  296. package/lib/msal-browser.cjs.map +1 -1
  297. package/lib/msal-browser.js +155 -81
  298. package/lib/msal-browser.js.map +1 -1
  299. package/lib/msal-browser.min.js +2 -2
  300. package/lib/popup-relay/msal-popup-relay.cjs +2 -2
  301. package/lib/popup-relay/msal-popup-relay.cjs.map +1 -1
  302. package/lib/popup-relay/msal-popup-relay.js +2 -2
  303. package/lib/popup-relay/msal-popup-relay.js.map +1 -1
  304. package/lib/popup-relay/msal-popup-relay.min.js +1 -1
  305. package/lib/redirect-bridge/msal-redirect-bridge.cjs +10 -10
  306. package/lib/redirect-bridge/msal-redirect-bridge.cjs.map +1 -1
  307. package/lib/redirect-bridge/msal-redirect-bridge.js +10 -10
  308. package/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -1
  309. package/lib/redirect-bridge/msal-redirect-bridge.min.js +1 -1
  310. package/lib/web-broker-bridge/msal-web-broker-bridge.cjs +59 -1
  311. package/lib/web-broker-bridge/msal-web-broker-bridge.cjs.map +1 -1
  312. package/package.json +1 -1
  313. package/src/broker/nativeBroker/PlatformAuthDOMHandler.ts +40 -2
  314. package/src/broker/nativeBroker/PlatformAuthExtensionHandler.ts +4 -1
  315. package/src/broker/nativeBroker/PlatformAuthRequest.ts +118 -6
  316. package/src/broker/nativeBroker/PlatformAuthResponse.ts +14 -1
  317. package/src/custom_auth/CustomAuthActionInputs.ts +11 -0
  318. package/src/custom_auth/CustomAuthPublicClientApplication.ts +40 -4
  319. package/src/custom_auth/ICustomAuthPublicClientApplicationV2.ts +44 -0
  320. package/src/custom_auth/controller/CustomAuthStandardController.ts +360 -1
  321. package/src/custom_auth/controller/ICustomAuthStandardController.ts +14 -0
  322. package/src/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.ts +18 -0
  323. package/src/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.ts +20 -0
  324. package/src/custom_auth/core/auth_flow/v2/CustomAuthResultV2.ts +133 -0
  325. package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.ts +146 -0
  326. package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.ts +8 -0
  327. package/src/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.ts +15 -0
  328. package/src/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.ts +33 -0
  329. package/src/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.ts +25 -0
  330. package/src/custom_auth/core/auth_flow/v2/result/MFARequestChallengeResultV2.ts +18 -0
  331. package/src/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.ts +26 -0
  332. package/src/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.ts +26 -0
  333. package/src/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.ts +25 -0
  334. package/src/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.ts +30 -0
  335. package/src/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.ts +40 -0
  336. package/src/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.ts +100 -0
  337. package/src/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.ts +59 -0
  338. package/src/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.ts +53 -0
  339. package/src/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.ts +196 -0
  340. package/src/custom_auth/core/auth_flow/v2/state/CompletedStateV2.ts +16 -0
  341. package/src/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.ts +44 -0
  342. package/src/custom_auth/core/auth_flow/v2/state/FailedStateV2.ts +15 -0
  343. package/src/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.ts +76 -0
  344. package/src/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.ts +119 -0
  345. package/src/custom_auth/core/error/CustomAuthApiError.ts +3 -1
  346. package/src/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.ts +35 -0
  347. package/src/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.ts +1145 -0
  348. package/src/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.ts +150 -0
  349. package/src/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.ts +66 -0
  350. package/src/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.ts +185 -0
  351. package/src/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.ts +1 -0
  352. package/src/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.ts +30 -0
  353. package/src/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.ts +423 -0
  354. package/src/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.ts +553 -0
  355. package/src/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.ts +24 -0
  356. package/src/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.ts +81 -0
  357. package/src/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.ts +177 -0
  358. package/src/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.ts +129 -0
  359. package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.ts +68 -0
  360. package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.ts +50 -0
  361. package/src/custom_auth/core/network_client/custom_auth_api/v2/response/HalResource.ts +20 -0
  362. package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.ts +202 -0
  363. package/src/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.ts +111 -0
  364. package/src/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.ts +26 -0
  365. package/src/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.ts +44 -0
  366. package/src/custom_auth/core/telemetry/FlowApiIdHelperV2.ts +64 -0
  367. package/src/custom_auth/core/telemetry/PublicApiId.ts +18 -0
  368. package/src/custom_auth/index.ts +96 -0
  369. package/src/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.ts +25 -0
  370. package/src/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.ts +33 -0
  371. package/src/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.ts +69 -0
  372. package/src/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateParametersV2.ts +9 -0
  373. package/src/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.ts +13 -0
  374. package/src/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.ts +35 -0
  375. package/src/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.ts +19 -0
  376. package/src/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.ts +31 -0
  377. package/src/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.ts +32 -0
  378. package/src/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.ts +22 -0
  379. package/src/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.ts +96 -0
  380. package/src/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.ts +83 -0
  381. package/src/custom_auth/sign_in/auth_flow/v2/state/SignInStateParametersV2.ts +12 -0
  382. package/src/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.ts +21 -0
  383. package/src/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.ts +32 -0
  384. package/src/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.ts +28 -0
  385. package/src/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.ts +20 -0
  386. package/src/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.ts +48 -0
  387. package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.ts +34 -0
  388. package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.ts +63 -0
  389. package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpStateParametersV2.ts +24 -0
  390. package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.ts +112 -0
  391. package/src/interaction_client/PlatformAuthInteractionClient.ts +23 -2
  392. package/src/interaction_client/RedirectClient.ts +15 -5
  393. package/src/packageMetadata.ts +1 -1
  394. package/src/webBrokerBridge/PerfEventNames.ts +43 -0
  395. package/src/webBrokerBridge/index.ts +26 -0
  396. package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts +1 -0
  397. package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts.map +1 -1
  398. package/types/broker/nativeBroker/PlatformAuthExtensionHandler.d.ts.map +1 -1
  399. package/types/broker/nativeBroker/PlatformAuthRequest.d.ts +68 -5
  400. package/types/broker/nativeBroker/PlatformAuthRequest.d.ts.map +1 -1
  401. package/types/broker/nativeBroker/PlatformAuthResponse.d.ts +12 -1
  402. package/types/broker/nativeBroker/PlatformAuthResponse.d.ts.map +1 -1
  403. package/types/custom_auth/CustomAuthActionInputs.d.ts +7 -0
  404. package/types/custom_auth/CustomAuthActionInputs.d.ts.map +1 -1
  405. package/types/custom_auth/CustomAuthConstants.d.ts +1 -1
  406. package/types/custom_auth/CustomAuthPublicClientApplication.d.ts +27 -5
  407. package/types/custom_auth/CustomAuthPublicClientApplication.d.ts.map +1 -1
  408. package/types/custom_auth/ICustomAuthPublicClientApplicationV2.d.ts +30 -0
  409. package/types/custom_auth/ICustomAuthPublicClientApplicationV2.d.ts.map +1 -0
  410. package/types/custom_auth/controller/CustomAuthStandardController.d.ts +11 -2
  411. package/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
  412. package/types/custom_auth/controller/ICustomAuthStandardController.d.ts +7 -1
  413. package/types/custom_auth/controller/ICustomAuthStandardController.d.ts.map +1 -1
  414. package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.d.ts +14 -0
  415. package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.d.ts.map +1 -0
  416. package/types/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.d.ts +14 -0
  417. package/types/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.d.ts.map +1 -0
  418. package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts +53 -0
  419. package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts.map +1 -0
  420. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.d.ts +40 -0
  421. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.d.ts.map +1 -0
  422. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.d.ts +4 -0
  423. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.d.ts.map +1 -0
  424. package/types/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.d.ts +11 -0
  425. package/types/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.d.ts.map +1 -0
  426. package/types/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.d.ts +23 -0
  427. package/types/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.d.ts.map +1 -0
  428. package/types/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.d.ts +18 -0
  429. package/types/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.d.ts.map +1 -0
  430. package/types/custom_auth/core/auth_flow/v2/result/MFARequestChallengeResultV2.d.ts +7 -0
  431. package/types/custom_auth/core/auth_flow/v2/result/MFARequestChallengeResultV2.d.ts.map +1 -0
  432. package/types/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.d.ts +15 -0
  433. package/types/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.d.ts.map +1 -0
  434. package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts +16 -0
  435. package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts.map +1 -0
  436. package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts +16 -0
  437. package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts.map +1 -0
  438. package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts +18 -0
  439. package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts.map +1 -0
  440. package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts +23 -0
  441. package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts.map +1 -0
  442. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts +21 -0
  443. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts.map +1 -0
  444. package/types/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.d.ts +17 -0
  445. package/types/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.d.ts.map +1 -0
  446. package/types/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.d.ts +14 -0
  447. package/types/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.d.ts.map +1 -0
  448. package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts +25 -0
  449. package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts.map +1 -0
  450. package/types/custom_auth/core/auth_flow/v2/state/CompletedStateV2.d.ts +11 -0
  451. package/types/custom_auth/core/auth_flow/v2/state/CompletedStateV2.d.ts.map +1 -0
  452. package/types/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.d.ts +28 -0
  453. package/types/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.d.ts.map +1 -0
  454. package/types/custom_auth/core/auth_flow/v2/state/FailedStateV2.d.ts +10 -0
  455. package/types/custom_auth/core/auth_flow/v2/state/FailedStateV2.d.ts.map +1 -0
  456. package/types/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.d.ts +18 -0
  457. package/types/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.d.ts.map +1 -0
  458. package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts +25 -0
  459. package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts.map +1 -0
  460. package/types/custom_auth/core/error/CustomAuthApiError.d.ts +3 -1
  461. package/types/custom_auth/core/error/CustomAuthApiError.d.ts.map +1 -1
  462. package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts +21 -0
  463. package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts.map +1 -0
  464. package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts +35 -0
  465. package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts.map +1 -0
  466. package/types/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.d.ts +26 -0
  467. package/types/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.d.ts.map +1 -0
  468. package/types/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.d.ts +43 -0
  469. package/types/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.d.ts.map +1 -0
  470. package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts +80 -0
  471. package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts.map +1 -0
  472. package/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts +1 -0
  473. package/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts.map +1 -1
  474. package/types/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.d.ts +17 -0
  475. package/types/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.d.ts.map +1 -0
  476. package/types/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.d.ts +31 -0
  477. package/types/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.d.ts.map +1 -0
  478. package/types/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.d.ts +23 -0
  479. package/types/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.d.ts.map +1 -0
  480. package/types/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.d.ts +19 -0
  481. package/types/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.d.ts.map +1 -0
  482. package/types/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.d.ts +2 -0
  483. package/types/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.d.ts.map +1 -0
  484. package/types/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.d.ts +15 -0
  485. package/types/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.d.ts.map +1 -0
  486. package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts +52 -0
  487. package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts.map +1 -0
  488. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.d.ts +3 -0
  489. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.d.ts.map +1 -0
  490. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.d.ts +37 -0
  491. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.d.ts.map +1 -0
  492. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/HalResource.d.ts +12 -0
  493. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/HalResource.d.ts.map +1 -0
  494. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts +133 -0
  495. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts.map +1 -0
  496. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.d.ts +70 -0
  497. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.d.ts.map +1 -0
  498. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts +10 -0
  499. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts.map +1 -0
  500. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts +33 -0
  501. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts.map +1 -0
  502. package/types/custom_auth/core/telemetry/FlowApiIdHelperV2.d.ts +4 -0
  503. package/types/custom_auth/core/telemetry/FlowApiIdHelperV2.d.ts.map +1 -0
  504. package/types/custom_auth/core/telemetry/PublicApiId.d.ts +16 -0
  505. package/types/custom_auth/core/telemetry/PublicApiId.d.ts.map +1 -1
  506. package/types/custom_auth/index.d.ts +37 -0
  507. package/types/custom_auth/index.d.ts.map +1 -1
  508. package/types/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.d.ts +18 -0
  509. package/types/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.d.ts.map +1 -0
  510. package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts +22 -0
  511. package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts.map +1 -0
  512. package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts +19 -0
  513. package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts.map +1 -0
  514. package/types/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateParametersV2.d.ts +3 -0
  515. package/types/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateParametersV2.d.ts.map +1 -0
  516. package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.d.ts +9 -0
  517. package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.d.ts.map +1 -0
  518. package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.d.ts +22 -0
  519. package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.d.ts.map +1 -0
  520. package/types/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.d.ts +12 -0
  521. package/types/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.d.ts.map +1 -0
  522. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts +21 -0
  523. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts.map +1 -0
  524. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts +17 -0
  525. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts.map +1 -0
  526. package/types/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.d.ts +9 -0
  527. package/types/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.d.ts.map +1 -0
  528. package/types/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.d.ts +17 -0
  529. package/types/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.d.ts.map +1 -0
  530. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts +24 -0
  531. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts.map +1 -0
  532. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateParametersV2.d.ts +4 -0
  533. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateParametersV2.d.ts.map +1 -0
  534. package/types/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.d.ts +14 -0
  535. package/types/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.d.ts.map +1 -0
  536. package/types/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.d.ts +20 -0
  537. package/types/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.d.ts.map +1 -0
  538. package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts +15 -0
  539. package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts.map +1 -0
  540. package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts +8 -0
  541. package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts.map +1 -0
  542. package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts +15 -0
  543. package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts.map +1 -0
  544. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.d.ts +11 -0
  545. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.d.ts.map +1 -0
  546. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.d.ts +19 -0
  547. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.d.ts.map +1 -0
  548. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateParametersV2.d.ts +14 -0
  549. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateParametersV2.d.ts.map +1 -0
  550. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.d.ts +10 -0
  551. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.d.ts.map +1 -0
  552. package/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
  553. package/types/interaction_client/RedirectClient.d.ts.map +1 -1
  554. package/types/packageMetadata.d.ts +1 -1
  555. package/types/webBrokerBridge/PerfEventNames.d.ts +30 -0
  556. package/types/webBrokerBridge/PerfEventNames.d.ts.map +1 -0
  557. package/types/webBrokerBridge/index.d.ts +1 -0
  558. package/types/webBrokerBridge/index.d.ts.map +1 -1
@@ -139,6 +139,10 @@ export class RedirectClient extends StandardInteractionClient {
139
139
  request.authenticationScheme
140
140
  );
141
141
 
142
+ let rejectBackButtonCancellation!: (reason?: unknown) => void;
143
+ const backButtonCancellation = new Promise<never>((_, reject) => {
144
+ rejectBackButtonCancellation = reject;
145
+ });
142
146
  const handleBackButton = (event: PageTransitionEvent) => {
143
147
  // Clear temporary cache if the back button is clicked during the redirect flow.
144
148
  if (event.persisted) {
@@ -152,6 +156,12 @@ export class RedirectClient extends StandardInteractionClient {
152
156
  this.correlationId,
153
157
  InteractionType.Redirect
154
158
  );
159
+ rejectBackButtonCancellation(
160
+ createBrowserAuthError(
161
+ BrowserAuthErrorCodes.userCancelled,
162
+ this.correlationId
163
+ )
164
+ );
155
165
  }
156
166
  };
157
167
 
@@ -173,11 +183,11 @@ export class RedirectClient extends StandardInteractionClient {
173
183
  window.addEventListener("pageshow", handleBackButton);
174
184
 
175
185
  try {
176
- if (this.config.system.protocolMode === ProtocolMode.EAR) {
177
- await this.executeEarFlow(validRequest);
178
- } else {
179
- await this.executeCodeFlow(validRequest);
180
- }
186
+ const redirectOperation =
187
+ this.config.system.protocolMode === ProtocolMode.EAR
188
+ ? this.executeEarFlow(validRequest)
189
+ : this.executeCodeFlow(validRequest);
190
+ await Promise.race([redirectOperation, backButtonCancellation]);
181
191
  } catch (e) {
182
192
  if (e instanceof AuthError) {
183
193
  e.correlationId = this.correlationId;
@@ -1,3 +1,3 @@
1
1
  /* eslint-disable header/header */
2
2
  export const name = "@azure/msal-browser";
3
- export const version = "5.22.0";
3
+ export const version = "5.23.0";
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ /**
7
+ * Shared performance event names for web broker bridge operations.
8
+ *
9
+ * @internal
10
+ */
11
+ export const PairwiseBrokerApplicationInitializeBrokering =
12
+ "pairwiseBrokerApplicationInitializeBrokering";
13
+ export const BrokerClientApplicationHandleBrokerHandshake =
14
+ "brokerClientApplicationHandleBrokerHandshake";
15
+ export const BrokerClientApplicationBrokeredSSOSilentRequest =
16
+ "brokerClientApplicationBrokeredSSOSilentRequest";
17
+ export const BrokerClientApplicationBrokeredSilentRequest =
18
+ "brokerClientApplicationBrokeredSilentRequest";
19
+ export const EmbeddedClientApplicationSendSSOSilentRequest =
20
+ "embeddedSSOSilent";
21
+ export const EmbeddedClientApplicationSendPopupRequest = "embeddedPopup";
22
+ export const EmbeddedClientApplicationHandleRedirectRequest =
23
+ "embeddedHandleRedirect";
24
+ export const EmbeddedClientApplicationSendSilentRefreshRequest =
25
+ "embeddedSilentRefresh";
26
+ export const EmbeddedSendSilentRefreshRequestInternal =
27
+ "embeddedSilentRefreshInternal";
28
+ export const SendHandshakeRequest = "sendHandshakeRequest";
29
+ export const SendMessageToBroker = "sendMessageToBroker";
30
+ export const SendRequest = "sendRequest";
31
+ export const HandleResponse = "handleBrokerResponse";
32
+ export const GetFrameDepth = "getFrameDepth";
33
+ export const OnHandshakeResponse = "onHandshakeResponse";
34
+ export const HandleBrokerMessage = "handleBrokerMessage";
35
+ export const PostMessageToAllDescendantFrames =
36
+ "postMessageToAllDescendantFrames";
37
+ export const HandleBrokerAuthRequest = "handleBrokerAuthRequest";
38
+ export const BrokeredSilentRequest = "brokeredSilentRequest";
39
+ export const BrokeredSsoSilentRequest = "brokeredSsoSilentRequest";
40
+ export const BrokeredRedirectRequest = "brokeredRedirectRequest";
41
+ export const BrokeredPopupRequest = "brokeredPopupRequest";
42
+ export const InteractiveBrokerRequest = "interactiveBrokerRequest";
43
+ export const AcquireTokenByBroker = "acquireTokenByBroker";
@@ -30,3 +30,29 @@ export type {
30
30
  CrossVersionRequestFields,
31
31
  LegacyRequestFields,
32
32
  } from "./adapter/CrossVersionRequestAdapter.js";
33
+ export {
34
+ AcquireTokenByBroker,
35
+ BrokerClientApplicationBrokeredSilentRequest,
36
+ BrokerClientApplicationBrokeredSSOSilentRequest,
37
+ BrokerClientApplicationHandleBrokerHandshake,
38
+ BrokeredPopupRequest,
39
+ BrokeredRedirectRequest,
40
+ BrokeredSilentRequest,
41
+ BrokeredSsoSilentRequest,
42
+ EmbeddedClientApplicationHandleRedirectRequest,
43
+ EmbeddedClientApplicationSendPopupRequest,
44
+ EmbeddedClientApplicationSendSilentRefreshRequest,
45
+ EmbeddedClientApplicationSendSSOSilentRequest,
46
+ EmbeddedSendSilentRefreshRequestInternal,
47
+ GetFrameDepth,
48
+ HandleBrokerAuthRequest,
49
+ HandleBrokerMessage,
50
+ HandleResponse,
51
+ InteractiveBrokerRequest,
52
+ OnHandshakeResponse,
53
+ PairwiseBrokerApplicationInitializeBrokering,
54
+ PostMessageToAllDescendantFrames,
55
+ SendHandshakeRequest,
56
+ SendMessageToBroker,
57
+ SendRequest,
58
+ } from "./PerfEventNames.js";
@@ -25,6 +25,7 @@ export declare class PlatformAuthDOMHandler implements IPlatformAuthHandler {
25
25
  private initializePlatformDOMRequest;
26
26
  private validatePlatformBrokerResponse;
27
27
  private convertToPlatformBrokerResponse;
28
+ private parseDOMBoolean;
28
29
  private getDOMExtraParams;
29
30
  }
30
31
  //# sourceMappingURL=PlatformAuthDOMHandler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PlatformAuthDOMHandler.d.ts","sourceRoot":"","sources":["../../../src/broker/nativeBroker/PlatformAuthDOMHandler.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,MAAM,EAGN,kBAAkB,EAErB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEH,mBAAmB,EAEtB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACH,oBAAoB,EAE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AAC;IACzB,SAAS,CAAC,iBAAiB,EAAE,kBAAkB,CAAC;IAChD,SAAS,CAAC,aAAa,EAAE,MAAM,CAAC;IAChC,gBAAgB,EAAE,MAAM,CAAC;gBAGrB,MAAM,EAAE,MAAM,EACd,iBAAiB,EAAE,kBAAkB,EACrC,aAAa,EAAE,MAAM;WAQZ,cAAc,CACvB,MAAM,EAAE,MAAM,EACd,iBAAiB,EAAE,kBAAkB,EACrC,aAAa,EAAE,MAAM,GACtB,OAAO,CAAC,sBAAsB,GAAG,SAAS,CAAC;IAgC9C;;;OAGG;IACH,cAAc,IAAI,MAAM;IAIxB,mBAAmB,IAAI,MAAM,GAAG,SAAS;IAIzC,gBAAgB,IAAI,MAAM,GAAG,SAAS;IAItC;;;;OAIG;IACG,WAAW,CACb,OAAO,EAAE,mBAAmB,GAC7B,OAAO,CAAC,oBAAoB,CAAC;IA2BhC,OAAO,CAAC,4BAA4B;IAqDpC,OAAO,CAAC,8BAA8B;IAqDtC,OAAO,CAAC,+BAA+B;IAiCvC,OAAO,CAAC,eAAe;IAoBvB,OAAO,CAAC,iBAAiB;CA6B5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"PlatformAuthExtensionHandler.d.ts","sourceRoot":"","sources":["../../../src/broker/nativeBroker/PlatformAuthExtensionHandler.ts"],"names":[],"mappings":"AASA,OAAO,EACH,MAAM,EAKN,kBAAkB,EACrB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAGH,mBAAmB,EACtB,MAAM,0BAA0B,CAAC;AAOlC,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAUjE,qBAAa,4BAA6B,YAAW,oBAAoB;IACrE,OAAO,CAAC,WAAW,CAAqB;IACxC,OAAO,CAAC,gBAAgB,CAAqB;IAC7C,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAS;IAC5C,OAAO,CAAC,SAAS,CAAqB;IACtC,OAAO,CAAC,SAAS,CAAyC;IAC1D,OAAO,CAAC,kBAAkB,CAAuC;IACjE,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAgC;IAC/D,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAqB;IACvD,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA6B;IAC5D,gBAAgB,EAAE,MAAM,CAAC;gBAGrB,MAAM,EAAE,MAAM,EACd,kBAAkB,EAAE,MAAM,EAC1B,iBAAiB,EAAE,kBAAkB,EACrC,WAAW,CAAC,EAAE,MAAM;IAiBxB;;;OAGG;IACG,WAAW,CACb,OAAO,EAAE,mBAAmB,GAC7B,OAAO,CAAC,oBAAoB,CAAC;IA2ChC;;;;;;OAMG;WACU,cAAc,CACvB,MAAM,EAAE,MAAM,EACd,kBAAkB,EAAE,MAAM,EAC1B,iBAAiB,EAAE,kBAAkB,EACrC,aAAa,EAAE,MAAM,GACtB,OAAO,CAAC,4BAA4B,CAAC;IA2BxC;;OAEG;YACW,oBAAoB;IAwDlC;;;OAGG;IACH,OAAO,CAAC,eAAe;IAgEvB;;;OAGG;IACH,OAAO,CAAC,gBAAgB;IAkHxB;;;OAGG;IACH,OAAO,CAAC,8BAA8B;IAqBtC;;;OAGG;IACH,cAAc,IAAI,MAAM,GAAG,SAAS;IAIpC;;;OAGG;IACH,mBAAmB,IAAI,MAAM,GAAG,SAAS;IAIzC,gBAAgB,IAAI,MAAM,GAAG,SAAS;CAQzC"}
1
+ {"version":3,"file":"PlatformAuthExtensionHandler.d.ts","sourceRoot":"","sources":["../../../src/broker/nativeBroker/PlatformAuthExtensionHandler.ts"],"names":[],"mappings":"AASA,OAAO,EACH,MAAM,EAKN,kBAAkB,EACrB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAGH,mBAAmB,EACtB,MAAM,0BAA0B,CAAC;AAOlC,OAAO,EAAE,oBAAoB,EAAE,MAAM,2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60 @@
1
1
  import { NativeExtensionMethod } from "../../utils/BrowserConstants.js";
2
- import { StringDict } from "@azure/msal-common/browser";
2
+ import { Constants, StringDict } from "@azure/msal-common/browser";
3
+ /**
4
+ * Key storage enclaves supported by the platform broker.
5
+ */
6
+ export declare const PlatformAuthEnclave: {
7
+ /**
8
+ * Persisted software key using MS_KEY_STORAGE_PROVIDER.
9
+ */
10
+ readonly SOFTWARE: "sw";
11
+ /**
12
+ * TPM-backed key using MS_PLATFORM_KEY_STORAGE_PROVIDER.
13
+ */
14
+ readonly HARDWARE: "hw";
15
+ /**
16
+ * KeyGuard-protected key using MS_KEY_STORAGE_PROVIDER.
17
+ */
18
+ readonly KEY_GUARD: "kg";
19
+ };
20
+ /**
21
+ * Supported platform broker key storage enclave.
22
+ */
23
+ export type PlatformAuthEnclave = (typeof PlatformAuthEnclave)[keyof typeof PlatformAuthEnclave];
24
+ /**
25
+ * Token types supported by the platform broker request contract.
26
+ */
27
+ export declare const PlatformAuthTokenType: {
28
+ readonly DPOP_WITH_PROOF: "dpop+proof";
29
+ };
30
+ /**
31
+ * Supported platform broker request token type. Authentication schemes are
32
+ * internal request intent; the additional values are WAM DPoP wire contracts.
33
+ */
34
+ export type PlatformAuthTokenType = Constants.AuthenticationScheme | (typeof PlatformAuthTokenType)[keyof typeof PlatformAuthTokenType];
35
+ /**
36
+ * Token binding preferences supported by the platform broker.
37
+ */
38
+ export declare const PlatformAuthBindingPreference: {
39
+ readonly ATTESTED: "attested";
40
+ };
41
+ /**
42
+ * Supported platform broker token binding preference.
43
+ */
44
+ export type PlatformAuthBindingPreference = (typeof PlatformAuthBindingPreference)[keyof typeof PlatformAuthBindingPreference];
45
+ /**
46
+ * Returns whether a platform broker token type requires proof request metadata.
47
+ */
48
+ export declare function isProofOfPossessionTokenType(tokenType: PlatformAuthTokenType | undefined): boolean;
49
+ /**
50
+ * No-cache parameters sent to the platform broker. This bag is constructed
51
+ * internally and is not inherited from BaseAuthRequest.
52
+ */
53
+ export type PlatformAuthExtraParametersNoCache = StringDict & {
54
+ pop_method?: string;
55
+ pop_url?: string;
56
+ pop_nonce?: string;
57
+ };
3
58
  /**
4
59
  * Token request which native broker will use to acquire tokens
5
60
  */
@@ -17,18 +72,25 @@ export type PlatformAuthRequest = {
17
72
  claims?: string;
18
73
  state?: string;
19
74
  loginHint?: string;
75
+ preferBinding?: PlatformAuthBindingPreference;
76
+ enclave?: PlatformAuthEnclave;
20
77
  reqCnf?: string;
21
78
  keyId?: string;
22
- tokenType?: string;
79
+ tokenType?: PlatformAuthTokenType;
23
80
  shrClaims?: string;
24
81
  shrNonce?: string;
25
82
  resourceRequestMethod?: string;
26
83
  resourceRequestUri?: string;
27
84
  extendedExpiryToken?: boolean;
28
85
  extraParameters?: StringDict;
86
+ extraParametersNoCache?: PlatformAuthExtraParametersNoCache;
29
87
  signPopToken?: boolean;
30
88
  attributeTokens?: string;
31
89
  };
90
+ /**
91
+ * Adds canonical proof request fields to the broker no-cache property bag.
92
+ */
93
+ export declare function createPlatformAuthExtraParametersNoCache(extraParametersNoCache: PlatformAuthExtraParametersNoCache | undefined, isProofOfPossessionRequest: boolean, resourceRequestMethod?: string, resourceRequestUri?: string, dpopNonce?: string): PlatformAuthExtraParametersNoCache | undefined;
32
94
  /**
33
95
  * Request which will be forwarded to native broker by the browser extension
34
96
  */
@@ -55,6 +117,10 @@ export type PlatformDOMTokenRequest = {
55
117
  correlationId: string;
56
118
  isSecurityTokenService: boolean;
57
119
  state?: string;
120
+ preferBinding?: PlatformAuthBindingPreference;
121
+ enclave?: PlatformAuthEnclave;
122
+ requestConfirmation?: string;
123
+ extraParametersNoCache?: PlatformAuthExtraParametersNoCache;
58
124
  extraParameters?: DOMExtraParameters;
59
125
  };
60
126
  export type DOMExtraParameters = StringDict & {
@@ -65,13 +131,10 @@ export type DOMExtraParameters = StringDict & {
65
131
  instanceAware?: string;
66
132
  windowTitleSubstring?: string;
67
133
  extendedExpiryToken?: string;
68
- reqCnf?: string;
69
134
  keyId?: string;
70
135
  tokenType?: string;
71
136
  shrClaims?: string;
72
137
  shrNonce?: string;
73
- resourceRequestMethod?: string;
74
- resourceRequestUri?: string;
75
138
  signPopToken?: string;
76
139
  };
77
140
  //# sourceMappingURL=PlatformAuthRequest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PlatformAuthRequest.d.ts","sourceRoot":"","sources":["../../../src/broker/nativeBroker/PlatformAuthRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAExD;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,eAAe,CAAC,EAAE,UAAU,CAAC;IAC7B,YAAY,CAAC,EAAE,OAAO,CAAC;IAC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E,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC"}
@@ -19,6 +19,9 @@ export type PlatformAuthResponse = {
19
19
  scope: string;
20
20
  state: string;
21
21
  shr?: string;
22
+ token_type?: string;
23
+ DPoP?: string;
24
+ binding_attested?: boolean;
22
25
  extendedLifetimeToken?: boolean;
23
26
  };
24
27
  /**
@@ -27,6 +30,14 @@ export type PlatformAuthResponse = {
27
30
  export type NativeResponseProperties = {
28
31
  MATS?: string;
29
32
  };
33
+ /**
34
+ * DPoP response values returned through the platform DOM API properties map.
35
+ */
36
+ export type PlatformDOMResponseProperties = NativeResponseProperties & Record<string, string> & {
37
+ token_type?: string;
38
+ dpop_proof?: string;
39
+ binding_attested?: string;
40
+ };
30
41
  /**
31
42
  * The native token broker can optionally include additional information about operations it performs. If that data is returned, MSAL.js will include the following properties in the telemetry it collects.
32
43
  */
@@ -58,7 +69,7 @@ export type PlatformDOMTokenResponse = {
58
69
  proofOfPossessionPayload?: string;
59
70
  extendedLifetimeToken?: boolean;
60
71
  error: ErrorResult;
61
- properties?: Record<string, string>;
72
+ properties?: PlatformDOMResponseProperties;
62
73
  };
63
74
  export type ErrorResult = {
64
75
  code: string;
@@ -1 +1 @@
1
- {"version":3,"file":"PlatformAuthResponse.d.ts","sourceRoot":"","sources":["../../../src/broker/nativeBroker/PlatformAuthResponse.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EA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EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC"}
1
+ {"version":3,"file":"PlatformAuthResponse.d.ts","sourceRoot":"","sources":["../../../src/broker/nativeBroker/PlatformAuthResponse.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,wBAAwB,CAAC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACnC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,wBAAwB,GAChE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG;I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rB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC"}
@@ -26,4 +26,11 @@ export type SignInWithContinuationTokenInputs = {
26
26
  scopes?: Array<string>;
27
27
  claims?: string;
28
28
  };
29
+ export type SignInInputsV2 = SignInInputs;
30
+ export type ResetPasswordInputsV2 = ResetPasswordInputs;
31
+ export type SignUpInputsV2 = SignUpInputs & {
32
+ scopes?: Array<string>;
33
+ claims?: string;
34
+ };
35
+ export type SignInContinuationInputsV2 = SignInWithContinuationTokenInputs;
29
36
  //# sourceMappingURL=CustomAuthActionInputs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CustomAuthActionInputs.d.ts","sourceRoot":"","sources":["../../src/custom_auth/CustomAuthActionInputs.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,MAAM,MAAM,sBAAsB,GAAG;IACjC,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,sBAAsB,CAAC;AAE5D,MAAM,MAAM,YAAY,GAAG,sBAAsB,GAAG;IAChD,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,sBAAsB,GAAG;IAChD,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,qBAAqB,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,sBAAsB,GAAG;IACvD,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,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,GAAG;IAC5C,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,YAAY,CAAC;AAE1C,MAAM,MAAM,qBAAqB,GAAG,mBAAmB,CAAC;AAExD,MAAM,MAAM,cAAc,GAAG,YAAY,GAAG;IACxC,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG,iCAAiC,CAAC"}
@@ -23,7 +23,7 @@ export declare const CustomHeaderConstants: {
23
23
  };
24
24
  export declare const DefaultPackageInfo: {
25
25
  readonly SKU: "msal.browser";
26
- readonly VERSION: "5.22.0";
26
+ readonly VERSION: "5.23.0";
27
27
  readonly OS: "";
28
28
  readonly CPU: "";
29
29
  };
@@ -1,19 +1,22 @@
1
1
  import { GetAccountResult } from "./get_account/auth_flow/result/GetAccountResult.js";
2
2
  import { SignInResult } from "./sign_in/auth_flow/result/SignInResult.js";
3
3
  import { SignUpResult } from "./sign_up/auth_flow/result/SignUpResult.js";
4
- import { ICustomAuthPublicClientApplication } from "./ICustomAuthPublicClientApplication.js";
5
- import { AccountRetrievalInputs, SignInInputs, SignUpInputs, ResetPasswordInputs } from "./CustomAuthActionInputs.js";
4
+ import { ICustomAuthPublicClientApplicationV2 } from "./ICustomAuthPublicClientApplicationV2.js";
5
+ import { AccountRetrievalInputs, SignInInputs, SignUpInputs, ResetPasswordInputs, ResetPasswordInputsV2, SignInInputsV2, SignUpInputsV2 } from "./CustomAuthActionInputs.js";
6
+ import { ResetPasswordStartResultV2 } from "./core/auth_flow/v2/result/ResetPasswordStartResultV2.js";
7
+ import { SignInStartResultV2 } from "./sign_in/auth_flow/v2/result/SignInStartResultV2.js";
8
+ import { SignUpStartResultV2 } from "./sign_up/auth_flow/v2/result/SignUpStartResultV2.js";
6
9
  import { CustomAuthConfiguration } from "./configuration/CustomAuthConfiguration.js";
7
10
  import { ResetPasswordStartResult } from "./reset_password/auth_flow/result/ResetPasswordStartResult.js";
8
11
  import { PublicClientApplication } from "../app/PublicClientApplication.js";
9
- export declare class CustomAuthPublicClientApplication extends PublicClientApplication implements ICustomAuthPublicClientApplication {
12
+ export declare class CustomAuthPublicClientApplication extends PublicClientApplication implements ICustomAuthPublicClientApplicationV2 {
10
13
  private readonly customAuthController;
11
14
  /**
12
15
  * Creates a new instance of a PublicClientApplication with the given configuration and controller to start Native authentication flows
13
16
  * @param {CustomAuthConfiguration} config - A configuration object for the PublicClientApplication instance
14
- * @returns {Promise<ICustomAuthPublicClientApplication>} - A promise that resolves to a CustomAuthPublicClientApplication instance
17
+ * @returns {Promise<ICustomAuthPublicClientApplicationV2>} - A promise that resolves to a CustomAuthPublicClientApplication instance
15
18
  */
16
- static create(config: CustomAuthConfiguration): Promise<ICustomAuthPublicClientApplication>;
19
+ static create(config: CustomAuthConfiguration): Promise<ICustomAuthPublicClientApplicationV2>;
17
20
  private constructor();
18
21
  /**
19
22
  * Gets the current account from the browser cache.
@@ -45,6 +48,25 @@ export declare class CustomAuthPublicClientApplication extends PublicClientAppli
45
48
  * @returns {Promise<ResetPasswordStartResult>} - A promise that resolves to ResetPasswordStartResult
46
49
  */
47
50
  resetPassword(resetPasswordInputs: ResetPasswordInputs): Promise<ResetPasswordStartResult>;
51
+ /**
52
+ * Starts native auth V2 sign-in and returns the authentication methods
53
+ * offered for the first factor.
54
+ * @param inputs - Inputs for the sign-in V2 flow.
55
+ * @returns A promise that resolves to the sign-in start result.
56
+ */
57
+ signInV2(inputs: SignInInputsV2): Promise<SignInStartResultV2>;
58
+ /**
59
+ * Starts native auth V2 sign-up.
60
+ * @param inputs - Inputs for the sign-up V2 flow.
61
+ * @returns A promise that resolves to the sign-up start result.
62
+ */
63
+ signUpV2(inputs: SignUpInputsV2): Promise<SignUpStartResultV2>;
64
+ /**
65
+ * Initiates the native auth V2 self-service password reset flow.
66
+ * @param {ResetPasswordInputsV2} inputs - Inputs for the reset-password V2 flow
67
+ * @returns {Promise<ResetPasswordStartResultV2>} - A promise that resolves to ResetPasswordStartResultV2
68
+ */
69
+ resetPasswordV2(inputs: ResetPasswordInputsV2): Promise<ResetPasswordStartResultV2>;
48
70
  /**
49
71
  * Validates the configuration to ensure it is a valid CustomAuthConfiguration object.
50
72
  * @param {CustomAuthConfiguration} config - The configuration object for the PublicClientApplication.
@@ -1 +1 @@
1
- {"version":3,"file":"CustomAuthPublicClientApplication.d.ts","sourceRoot":"","sources":["../../src/custom_auth/CustomAuthPublicClientApplication.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oDAAoD,CAAC;AACtF,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAG1E,OAAO,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAC7F,OAAO,EACH,sBAAsB,EACtB,YAAY,EACZ,YAAY,EACZ,mBAAmB,EACtB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AAErF,OAAO,EAAE,wBAAwB,EAAE,MAAM,+DAA+D,CAAC;AAGzG,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAO5E,qBAAa,iCACT,SAAQ,uBACR,YAAW,kCAAkC;IAE7C,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAgC;IAErE;;;;OAIG;WACU,MAAM,CACf,MAAM,EAAE,uBAAuB,GAChC,OAAO,CAAC,kCAAkC,CAAC;IAiB9C,OAAO;IASP;;;;OAIG;IACH,iBAAiB,CACb,sBAAsB,CAAC,EAAE,sBAAsB,GAChD,gBAAgB;IAMnB;;;;;;OAMG;IACH,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAIzD;;;;;;OAMG;IACH,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAIzD;;;;;;OAMG;IACH,aAAa,CACT,mBAAmB,EAAE,mBAAmB,GACzC,OAAO,CAAC,wBAAwB,CAAC;IAIpC;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,cAAc;CAoChC"}
1
+ {"version":3,"file":"CustomAuthPublicClientApplication.d.ts","sourceRoot":"","sources":["../../src/custom_auth/CustomAuthPublicClientApplication.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oDAAoD,CAAC;AACtF,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAG1E,OAAO,EAAE,oCAAoC,EAAE,MAAM,2CAA2C,CAAC;AACjG,OAAO,EACH,sBAAsB,EACtB,YAAY,EACZ,YAAY,EACZ,mBAAmB,EACnB,qBAAqB,EACrB,cAAc,EACd,cAAc,EACjB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,0BAA0B,EAAE,MAAM,0DAA0D,CAAC;AACtG,OAAO,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AAErF,OAAO,EAAE,wBAAwB,EAAE,MAAM,+DAA+D,CAAC;AAGzG,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAO5E,qBAAa,iCACT,SAAQ,uBACR,YAAW,oCAAoC;IAE/C,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAgC;IAErE;;;;OAIG;WACU,MAAM,CACf,MAAM,EAAE,uBAAuB,GAChC,OAAO,CAAC,oCAAoC,CAAC;IAiBhD,OAAO;IASP;;;;OAIG;IACH,iBAAiB,CACb,sBAAsB,CAAC,EAAE,sBAAsB,GAChD,gBAAgB;IAMnB;;;;;;OAMG;IACH,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAIzD;;;;;;OAMG;IACH,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAIzD;;;;;;OAMG;IACH,aAAa,CACT,mBAAmB,EAAE,mBAAmB,GACzC,OAAO,CAAC,wBAAwB,CAAC;IAIpC;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAI9D;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAI9D;;;;OAIG;IACH,eAAe,CACX,MAAM,EAAE,qBAAqB,GAC9B,OAAO,CAAC,0BAA0B,CAAC;IAItC;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,cAAc;CAoChC"}
@@ -0,0 +1,30 @@
1
+ import { ICustomAuthPublicClientApplication } from "./ICustomAuthPublicClientApplication.js";
2
+ import { ResetPasswordInputsV2, SignInInputsV2, SignUpInputsV2 } from "./CustomAuthActionInputs.js";
3
+ import { ResetPasswordStartResultV2 } from "./core/auth_flow/v2/result/ResetPasswordStartResultV2.js";
4
+ import { SignInStartResultV2 } from "./sign_in/auth_flow/v2/result/SignInStartResultV2.js";
5
+ import { SignUpStartResultV2 } from "./sign_up/auth_flow/v2/result/SignUpStartResultV2.js";
6
+ /**
7
+ * Public interface for the native auth V2 surface.
8
+ */
9
+ export interface ICustomAuthPublicClientApplicationV2 extends ICustomAuthPublicClientApplication {
10
+ /**
11
+ * Starts native auth V2 sign-in and returns the authentication methods
12
+ * offered for the first factor.
13
+ * @param inputs - Inputs for the sign-in V2 flow.
14
+ * @returns A promise that resolves to the sign-in start result.
15
+ */
16
+ signInV2(inputs: SignInInputsV2): Promise<SignInStartResultV2>;
17
+ /**
18
+ * Starts native auth V2 sign-up.
19
+ * @param inputs - Inputs for the sign-up V2 flow.
20
+ * @returns A promise that resolves to the sign-up start result.
21
+ */
22
+ signUpV2(inputs: SignUpInputsV2): Promise<SignUpStartResultV2>;
23
+ /**
24
+ * Initiates the native auth V2 self-service password reset flow for the given username.
25
+ * @param {ResetPasswordInputsV2} inputs - Inputs for the reset-password V2 flow
26
+ * @returns {Promise<ResetPasswordStartResultV2>} A promise that resolves to ResetPasswordStartResultV2
27
+ */
28
+ resetPasswordV2(inputs: ResetPasswordInputsV2): Promise<ResetPasswordStartResultV2>;
29
+ }
30
+ //# sourceMappingURL=ICustomAuthPublicClientApplicationV2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ICustomAuthPublicClientApplicationV2.d.ts","sourceRoot":"","sources":["../../src/custom_auth/ICustomAuthPublicClientApplicationV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAC7F,OAAO,EACH,qBAAqB,EACrB,cAAc,EACd,cAAc,EACjB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,0BAA0B,EAAE,MAAM,0DAA0D,CAAC;AACtG,OAAO,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAE3F;;GAEG;AACH,MAAM,WAAW,oCACb,SAAQ,kCAAkC;IAC1C;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAE/D;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAE/D;;;;OAIG;IACH,eAAe,CACX,MAAM,EAAE,qBAAqB,GAC9B,OAAO,CAAC,0BAA0B,CAAC,CAAC;CAC1C"}
@@ -1,10 +1,14 @@
1
1
  import { GetAccountResult } from "../get_account/auth_flow/result/GetAccountResult.js";
2
2
  import { SignInResult } from "../sign_in/auth_flow/result/SignInResult.js";
3
3
  import { SignUpResult } from "../sign_up/auth_flow/result/SignUpResult.js";
4
- import { AccountRetrievalInputs, SignInInputs, SignUpInputs, ResetPasswordInputs } from "../CustomAuthActionInputs.js";
4
+ import { AccountRetrievalInputs, SignInInputs, SignUpInputs, ResetPasswordInputs, ResetPasswordInputsV2, SignInInputsV2, SignUpInputsV2 } from "../CustomAuthActionInputs.js";
5
5
  import { CustomAuthOperatingContext } from "../operating_context/CustomAuthOperatingContext.js";
6
6
  import { ICustomAuthStandardController } from "./ICustomAuthStandardController.js";
7
7
  import { ResetPasswordStartResult } from "../reset_password/auth_flow/result/ResetPasswordStartResult.js";
8
+ import { ResetPasswordStartResultV2 } from "../core/auth_flow/v2/result/ResetPasswordStartResultV2.js";
9
+ import { CustomAuthApiClientV2 } from "../core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.js";
10
+ import { SignInStartResultV2 } from "../sign_in/auth_flow/v2/result/SignInStartResultV2.js";
11
+ import { SignUpStartResultV2 } from "../sign_up/auth_flow/v2/result/SignUpStartResultV2.js";
8
12
  import { ICustomAuthApiClient } from "../core/network_client/custom_auth_api/ICustomAuthApiClient.js";
9
13
  import { StandardController } from "../../controllers/StandardController.js";
10
14
  export declare class CustomAuthStandardController extends StandardController implements ICustomAuthStandardController {
@@ -16,11 +20,16 @@ export declare class CustomAuthStandardController extends StandardController imp
16
20
  private readonly cacheClient;
17
21
  private readonly customAuthConfig;
18
22
  private readonly authority;
19
- constructor(operatingContext: CustomAuthOperatingContext, customAuthApiClient?: ICustomAuthApiClient);
23
+ private readonly flowClientV2;
24
+ private readonly signUpStateTransitionHandlerV2;
25
+ constructor(operatingContext: CustomAuthOperatingContext, customAuthApiClient?: ICustomAuthApiClient, customAuthApiClientV2?: CustomAuthApiClientV2);
20
26
  getCurrentAccount(accountRetrievalInputs?: AccountRetrievalInputs): GetAccountResult;
21
27
  signIn(signInInputs: SignInInputs): Promise<SignInResult>;
22
28
  signUp(signUpInputs: SignUpInputs): Promise<SignUpResult>;
23
29
  resetPassword(resetPasswordInputs: ResetPasswordInputs): Promise<ResetPasswordStartResult>;
30
+ resetPasswordV2(inputs: ResetPasswordInputsV2): Promise<ResetPasswordStartResultV2>;
31
+ signInV2(inputs: SignInInputsV2): Promise<SignInStartResultV2>;
32
+ signUpV2(inputs: SignUpInputsV2): Promise<SignUpStartResultV2>;
24
33
  private getCorrelationId;
25
34
  private ensureUserNotSignedIn;
26
35
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CustomAuthStandardController.d.ts","sourceRoot":"","sources":["../../../src/custom_auth/controller/CustomAuthStandardController.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAM3E,OAAO,EACH,sBAAsB,EACtB,YAAY,EACZ,YAAY,EACZ,mBAAmB,EAEtB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,0BAA0B,EAAE,MAAM,oDAAoD,CAAC;AAChG,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAGnF,OAAO,EAAE,wBAAwB,EAAE,MAAM,gEAAgE,CAAC;AAgB1G,OAAO,EAAE,oBAAoB,EAAE,MAAM,gEAAgE,CAAC;AAmBtG,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAM7E,qBAAa,4BACT,SAAQ,kBACR,YAAW,6BAA6B;IAExC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;IAC5C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;IAC5C,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAsB;IAC1D,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAY;IACtC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAY;IACtC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA8B;IAC1D,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAiC;IAClE,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAsB;gBAQ5C,gBAAgB,EAAE,0BAA0B,EAC5C,mBAAmB,CAAC,EAAE,oBAAoB;IA+D9C,iBAAiB,CACb,sBAAsB,CAAC,EAAE,sBAAsB,GAChD,gBAAgB;IAqCb,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAiOzD,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAkHzD,aAAa,CACf,mBAAmB,EAAE,mBAAmB,GACzC,OAAO,CAAC,wBAAwB,CAAC;IAsDpC,OAAO,CAAC,gBAAgB;IAQxB,OAAO,CAAC,qBAAqB;CAWhC"}
1
+ {"version":3,"file":"CustomAuthStandardController.d.ts","sourceRoot":"","sources":["../../../src/custom_auth/controller/CustomAuthStandardController.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAM3E,OAAO,EACH,sBAAsB,EACtB,YAAY,EACZ,YAAY,EACZ,mBAAmB,EAEnB,qBAAqB,EACrB,cAAc,EACd,cAAc,EACjB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,0BAA0B,EAAE,MAAM,oDAAoD,CAAC;AAChG,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAGnF,OAAO,EAAE,wBAAwB,EAAE,MAAM,gEAAgE,CAAC;AAC1G,OAAO,EAAE,0BAA0B,EAAE,MAAM,2DAA2D,CAAC;AACvG,OAAO,EAAE,qBAAqB,EAAE,MAAM,oEAAoE,CAAC;AAO3G,OAAO,EAAE,mBAAmB,EAAE,MAA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EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC;IA4GpE,OAAO,CAAC,gBAAgB;IAQxB,OAAO,CAAC,qBAAqB;CAWhC"}
@@ -1,13 +1,19 @@
1
1
  import { GetAccountResult } from "../get_account/auth_flow/result/GetAccountResult.js";
2
2
  import { SignInResult } from "../sign_in/auth_flow/result/SignInResult.js";
3
3
  import { SignUpResult } from "../sign_up/auth_flow/result/SignUpResult.js";
4
- import { AccountRetrievalInputs, ResetPasswordInputs, SignInInputs, SignUpInputs } from "../CustomAuthActionInputs.js";
4
+ import { AccountRetrievalInputs, ResetPasswordInputs, SignInInputs, SignUpInputs, ResetPasswordInputsV2, SignInInputsV2, SignUpInputsV2 } from "../CustomAuthActionInputs.js";
5
5
  import { ResetPasswordStartResult } from "../reset_password/auth_flow/result/ResetPasswordStartResult.js";
6
6
  import { IController } from "../../controllers/IController.js";
7
+ import { ResetPasswordStartResultV2 } from "../core/auth_flow/v2/result/ResetPasswordStartResultV2.js";
8
+ import { SignInStartResultV2 } from "../sign_in/auth_flow/v2/result/SignInStartResultV2.js";
9
+ import { SignUpStartResultV2 } from "../sign_up/auth_flow/v2/result/SignUpStartResultV2.js";
7
10
  export interface ICustomAuthStandardController extends IController {
8
11
  getCurrentAccount(accountRetrievalInputs?: AccountRetrievalInputs): GetAccountResult;
9
12
  signIn(signInInputs: SignInInputs): Promise<SignInResult>;
10
13
  signUp(signUpInputs: SignUpInputs): Promise<SignUpResult>;
11
14
  resetPassword(resetPasswordInputs: ResetPasswordInputs): Promise<ResetPasswordStartResult>;
15
+ signInV2(inputs: SignInInputsV2): Promise<SignInStartResultV2>;
16
+ signUpV2(inputs: SignUpInputsV2): Promise<SignUpStartResultV2>;
17
+ resetPasswordV2(inputs: ResetPasswordInputsV2): Promise<ResetPasswordStartResultV2>;
12
18
  }
13
19
  //# sourceMappingURL=ICustomAuthStandardController.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ICustomAuthStandardController.d.ts","sourceRoot":"","sources":["../../../src/custom_auth/controller/ICustomAuthStandardController.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,OAAO,EACH,sBAAsB,EACtB,mBAAmB,EACnB,YAAY,EACZ,YAAY,EACf,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,wBAAwB,EAAE,MAAM,gEAAgE,CAAC;AAC1G,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAK/D,MAAM,WAAW,6BAA8B,SAAQ,WAAW;IAM9D,iBAAiB,CACb,sBAAsB,CAAC,EAAE,sBAAsB,GAChD,gBAAgB,CAAC;IAOpB,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAO1D,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAO1D,aAAa,CACT,mBAAmB,EAAE,mBAAmB,GACzC,OAAO,CAAC,wBAAwB,CAAC,CAAC;CACxC"}
1
+ {"version":3,"file":"ICustomAuthStandardController.d.ts","sourceRoot":"","sources":["../../../src/custom_auth/controller/ICustomAuthStandardController.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,OAAO,EACH,sBAAsB,EACtB,mBAAmB,EACnB,YAAY,EACZ,YAAY,EACZ,qBAAqB,EACrB,cAAc,EACd,cAAc,EACjB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,wBAAwB,EAAE,MAAM,gEAAgE,CAAC;AAC1G,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,2DAA2D,CAAC;AACvG,OAAO,EAAE,mBAAmB,EAAE,MAAM,uDAAuD,CAAC;AAC5F,OAAO,EAAE,mBAAmB,EAAE,MAAM,uDAAuD,CAAC;AAK5F,MAAM,WAAW,6BAA8B,SAAQ,WAAW;IAM9D,iBAAiB,CACb,sBAAsB,CAAC,EAAE,sBAAsB,GAChD,gBAAgB,CAAC;IAOpB,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAO1D,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAO1D,aAAa,CACT,mBAAmB,EAAE,mBAAmB,GACzC,OAAO,CAAC,wBAAwB,CAAC,CAAC;IAErC,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAE/D,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAE/D,eAAe,CACX,MAAM,EAAE,qBAAqB,GAC9B,OAAO,CAAC,0BAA0B,CAAC,CAAC;CAC1C"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * An authentication method offered by the server during a native auth V2 flow.
3
+ * Each method describes one way the user can prove control of their account
4
+ * (for example an email one-time code), and is surfaced when the flow needs the
5
+ * app to pick a method before a challenge is issued. The app passes the selected
6
+ * method back to the SDK to request a challenge for it.
7
+ */
8
+ export interface AuthenticationMethodV2 {
9
+ id: string;
10
+ type: string;
11
+ hint?: string;
12
+ challengeHref: string;
13
+ }
14
+ //# sourceMappingURL=AuthenticationMethodV2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthenticationMethodV2.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.ts"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,MAAM,WAAW,sBAAsB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;CACzB"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * The native auth V2 flow that a result or error originates from (sign-in,
3
+ * sign-up, or password reset). It lets a shared result or error type report
4
+ * which entry flow produced it; `Unknown` is used when the flow cannot be
5
+ * determined.
6
+ */
7
+ export declare const CustomAuthFlowScenarioV2: {
8
+ readonly SignIn: "signIn";
9
+ readonly SignUp: "signUp";
10
+ readonly PasswordReset: "passwordReset";
11
+ readonly Unknown: "unknown";
12
+ };
13
+ export type CustomAuthFlowScenarioV2 = (typeof CustomAuthFlowScenarioV2)[keyof typeof CustomAuthFlowScenarioV2];
14
+ //# sourceMappingURL=CustomAuthFlowScenarioV2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomAuthFlowScenarioV2.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.ts"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB;;;;;CAK3B,CAAC;AAEX,MAAM,MAAM,wBAAwB,GAChC,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,OAAO,wBAAwB,CAAC,CAAC"}
@@ -0,0 +1,53 @@
1
+ import { AuthFlowStateBase } from "../AuthFlowState.js";
2
+ import { CustomAuthError } from "../../error/CustomAuthError.js";
3
+ import { FailedStateV2 } from "./state/FailedStateV2.js";
4
+ import { AuthFlowErrorBaseV2 } from "./error/AuthFlowErrorBaseV2.js";
5
+ import { CustomAuthFlowScenarioV2 } from "./CustomAuthFlowScenarioV2.js";
6
+ type CreateWithErrorOptions<TError extends AuthFlowErrorBaseV2> = {
7
+ errorType: new (errorData: CustomAuthError, scenario?: CustomAuthFlowScenarioV2) => TError;
8
+ scenario?: CustomAuthFlowScenarioV2;
9
+ correlationId?: string;
10
+ };
11
+ /**
12
+ * Result of a native auth V2 operation. Use {@link CustomAuthResultV2.isState}
13
+ * to narrow the state before accessing its members.
14
+ */
15
+ export declare class CustomAuthResultV2<TState extends AuthFlowStateBase, TError extends AuthFlowErrorBaseV2, TData = void> {
16
+ readonly state: TState;
17
+ readonly data?: TData | undefined;
18
+ readonly scenario: CustomAuthFlowScenarioV2;
19
+ constructor(state: TState, data?: TData | undefined, scenario?: CustomAuthFlowScenarioV2);
20
+ error?: TError;
21
+ /**
22
+ * Narrows the result to a specific state by its `stateType` discriminator.
23
+ * A successful match makes the state's properties available without a cast.
24
+ * @param stateType - The state type to test for.
25
+ * @returns True (and narrows `state`) when the current state matches `stateType`.
26
+ */
27
+ isState<TType extends TState["stateType"]>(stateType: TType): this is this & {
28
+ state: Extract<TState, {
29
+ stateType: TType;
30
+ }>;
31
+ };
32
+ /**
33
+ * Checks whether the result is in the terminal failed state. A failed result
34
+ * contains the flow-specific error.
35
+ * @returns True (and narrows `state`) when the operation failed.
36
+ */
37
+ isFailed(): this is this & {
38
+ state: Extract<TState, {
39
+ stateType: "failed";
40
+ }>;
41
+ };
42
+ /**
43
+ * Creates a failed result from the supplied error. The result uses the
44
+ * shared {@link FailedStateV2} terminal state.
45
+ * @param error - The error that occurred.
46
+ * @param options - The flow-error type and error context.
47
+ * @returns A failed result carrying the flow-specific error.
48
+ */
49
+ static createWithError<TState extends AuthFlowStateBase, TError extends AuthFlowErrorBaseV2, TData = void>(error: unknown, options: CreateWithErrorOptions<TError>): CustomAuthResultV2<TState | FailedStateV2, TError, TData>;
50
+ private static createErrorData;
51
+ }
52
+ export {};
53
+ //# sourceMappingURL=CustomAuthResultV2.d.ts.map