@azure/msal-browser 5.21.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.
- package/dist/app/IPublicClientApplication.mjs +1 -1
- package/dist/app/PublicClientApplication.mjs +1 -1
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +23 -3
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +5 -2
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthRequest.mjs +49 -0
- package/dist/broker/nativeBroker/PlatformAuthRequest.mjs.map +1 -0
- package/dist/cache/AccountManager.mjs +1 -1
- package/dist/cache/AsyncMemoryStorage.mjs +1 -1
- package/dist/cache/BrowserCacheManager.mjs +1 -1
- package/dist/cache/CacheHelpers.mjs +1 -1
- package/dist/cache/CacheKeys.mjs +1 -1
- package/dist/cache/CookieStorage.mjs +1 -1
- package/dist/cache/DatabaseStorage.mjs +1 -1
- package/dist/cache/EncryptedData.mjs +1 -1
- package/dist/cache/LocalStorage.mjs +1 -1
- package/dist/cache/MemoryStorage.mjs +1 -1
- package/dist/cache/SessionStorage.mjs +1 -1
- package/dist/cache/TokenCache.mjs +1 -1
- package/dist/config/Configuration.mjs +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +1 -1
- package/dist/controllers/StandardController.mjs +1 -1
- package/dist/crypto/BrowserCrypto.mjs +1 -1
- package/dist/crypto/CryptoOps.mjs +1 -1
- package/dist/crypto/PkceGenerator.mjs +1 -1
- package/dist/crypto/SignedHttpRequest.mjs +1 -1
- package/dist/crypto/TokenBindingKeyManager.mjs +1 -1
- package/dist/custom_auth/CustomAuthConstants.mjs +1 -1
- package/dist/custom_auth/CustomAuthPublicClientApplication.mjs +27 -2
- package/dist/custom_auth/CustomAuthPublicClientApplication.mjs.map +1 -1
- package/dist/custom_auth/controller/CustomAuthStandardController.mjs +192 -2
- package/dist/custom_auth/controller/CustomAuthStandardController.mjs.map +1 -1
- package/dist/custom_auth/core/CustomAuthAuthority.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs +21 -0
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs +80 -0
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.mjs +102 -0
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs +12 -0
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.mjs +20 -0
- package/dist/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.mjs +36 -0
- package/dist/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.mjs +29 -0
- package/dist/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs +76 -0
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.mjs +36 -0
- package/dist/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.mjs +36 -0
- package/dist/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs +134 -0
- package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs +23 -0
- package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs +22 -0
- package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.mjs +61 -0
- package/dist/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs +87 -0
- package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/core/error/CustomAuthApiError.mjs +3 -2
- package/dist/custom_auth/core/error/CustomAuthApiError.mjs.map +1 -1
- package/dist/custom_auth/core/error/CustomAuthError.mjs +1 -1
- package/dist/custom_auth/core/error/HttpError.mjs +1 -1
- package/dist/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
- package/dist/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
- package/dist/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
- package/dist/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
- package/dist/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
- package/dist/custom_auth/core/error/ParsedUrlError.mjs +1 -1
- package/dist/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/error/UnexpectedError.mjs +1 -1
- package/dist/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
- package/dist/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
- package/dist/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/jit/JitClient.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/mfa/MfaClient.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs +602 -0
- package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs.map +1 -0
- package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs +67 -0
- package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs.map +1 -0
- package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs +46 -0
- package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +3 -2
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.mjs +30 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.mjs.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs +193 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs +236 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.mjs +26 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.mjs.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.mjs +66 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.mjs.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs +97 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.mjs +56 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.mjs.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs +23 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs +14 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs.map +1 -0
- package/dist/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs +3 -2
- package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs.map +1 -1
- package/dist/custom_auth/core/telemetry/FlowApiIdHelperV2.mjs +38 -0
- package/dist/custom_auth/core/telemetry/FlowApiIdHelperV2.mjs.map +1 -0
- package/dist/custom_auth/core/telemetry/PublicApiId.mjs +20 -3
- package/dist/custom_auth/core/telemetry/PublicApiId.mjs.map +1 -1
- package/dist/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
- package/dist/custom_auth/core/utils/CustomHeaderUtils.mjs +1 -1
- package/dist/custom_auth/core/utils/UrlUtils.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
- package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
- package/dist/custom_auth/index.mjs +23 -1
- package/dist/custom_auth/index.mjs.map +1 -1
- package/dist/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.mjs +29 -0
- package/dist/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.mjs.map +1 -0
- package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs +59 -0
- package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.mjs +18 -0
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.mjs.map +1 -0
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.mjs +37 -0
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.mjs.map +1 -0
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.mjs +23 -0
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.mjs.map +1 -0
- package/dist/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.mjs +70 -0
- package/dist/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs +61 -0
- package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs.map +1 -0
- package/dist/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
- package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.mjs +25 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.mjs.map +1 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.mjs +33 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.mjs.map +1 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs +40 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.mjs +25 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.mjs.map +1 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.mjs +47 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.mjs +60 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.mjs.map +1 -0
- package/dist/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
- package/dist/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
- package/dist/encode/Base64Decode.mjs +1 -1
- package/dist/encode/Base64Encode.mjs +1 -1
- package/dist/error/BrowserAuthError.mjs +1 -1
- package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
- package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
- package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
- package/dist/error/NativeAuthError.mjs +1 -1
- package/dist/error/NativeAuthErrorCodes.mjs +1 -1
- package/dist/error/NestedAppAuthError.mjs +1 -1
- package/dist/event/EventHandler.mjs +1 -1
- package/dist/event/EventMessage.mjs +1 -1
- package/dist/event/EventType.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs +8 -2
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/PopupClient.mjs +1 -1
- package/dist/interaction_client/RedirectClient.mjs +11 -8
- package/dist/interaction_client/RedirectClient.mjs.map +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
- package/dist/interaction_client/SilentCacheClient.mjs +1 -1
- package/dist/interaction_client/SilentIframeClient.mjs +1 -1
- package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
- package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
- package/dist/interaction_handler/InteractionHandler.mjs +1 -1
- package/dist/interaction_handler/SilentHandler.mjs +1 -1
- package/dist/log-strings-mapping.json +189 -5
- package/dist/naa/BridgeError.mjs +1 -1
- package/dist/naa/BridgeProxy.mjs +1 -1
- package/dist/naa/BridgeStatusCode.mjs +1 -1
- package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
- package/dist/navigation/NavigationClient.mjs +1 -1
- package/dist/network/FetchClient.mjs +1 -1
- package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
- package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
- package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/popup_relay/constants.mjs +1 -1
- package/dist/popup_relay/index.mjs +1 -1
- package/dist/popup_relay/relayClient.mjs +1 -1
- package/dist/protocol/Authorize.mjs +1 -1
- package/dist/redirect_bridge/index.mjs +1 -1
- package/dist/request/RequestHelpers.mjs +1 -1
- package/dist/response/ResponseHandler.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceEvents.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
- package/dist/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
- package/dist/utils/BrowserConstants.mjs +1 -1
- package/dist/utils/BrowserProtocolUtils.mjs +1 -1
- package/dist/utils/BrowserUtils.mjs +1 -1
- package/dist/utils/Helpers.mjs +1 -1
- package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
- package/dist/webBrokerBridge/PendingRequestRegistry.mjs +1 -1
- package/dist/webBrokerBridge/PerfEventNames.mjs +38 -0
- package/dist/webBrokerBridge/PerfEventNames.mjs.map +1 -0
- package/dist/webBrokerBridge/WebBrokerBridgeError.mjs +1 -1
- package/dist/webBrokerBridge/WebBrokerBridgeErrorMap.mjs +1 -1
- package/dist/webBrokerBridge/adapter/CrossVersionRequestAdapter.mjs +139 -0
- package/dist/webBrokerBridge/adapter/CrossVersionRequestAdapter.mjs.map +1 -0
- package/dist/webBrokerBridge/index.mjs +8 -0
- package/dist/webBrokerBridge/index.mjs.map +1 -0
- package/lib/custom-auth-path/log-strings-mapping.json +195 -11
- package/lib/custom-auth-path/msal-custom-auth.cjs +2996 -204
- package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
- package/lib/custom-auth-path/msal-custom-auth.js +2996 -204
- package/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
- package/lib/log-strings-mapping.json +2 -2
- package/lib/msal-browser.cjs +176 -87
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +176 -87
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +2 -2
- package/lib/popup-relay/msal-popup-relay.cjs +2 -2
- package/lib/popup-relay/msal-popup-relay.cjs.map +1 -1
- package/lib/popup-relay/msal-popup-relay.js +2 -2
- package/lib/popup-relay/msal-popup-relay.js.map +1 -1
- package/lib/popup-relay/msal-popup-relay.min.js +1 -1
- package/lib/redirect-bridge/msal-redirect-bridge.cjs +10 -10
- package/lib/redirect-bridge/msal-redirect-bridge.cjs.map +1 -1
- package/lib/redirect-bridge/msal-redirect-bridge.js +10 -10
- package/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -1
- package/lib/redirect-bridge/msal-redirect-bridge.min.js +1 -1
- package/lib/web-broker-bridge/msal-web-broker-bridge.cjs +353 -0
- package/lib/web-broker-bridge/msal-web-broker-bridge.cjs.map +1 -0
- package/package.json +19 -2
- package/src/broker/nativeBroker/PlatformAuthDOMHandler.ts +40 -2
- package/src/broker/nativeBroker/PlatformAuthExtensionHandler.ts +4 -1
- package/src/broker/nativeBroker/PlatformAuthRequest.ts +118 -6
- package/src/broker/nativeBroker/PlatformAuthResponse.ts +14 -1
- package/src/custom_auth/CustomAuthActionInputs.ts +11 -0
- package/src/custom_auth/CustomAuthPublicClientApplication.ts +40 -4
- package/src/custom_auth/ICustomAuthPublicClientApplicationV2.ts +44 -0
- package/src/custom_auth/controller/CustomAuthStandardController.ts +360 -1
- package/src/custom_auth/controller/ICustomAuthStandardController.ts +14 -0
- package/src/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.ts +18 -0
- package/src/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.ts +20 -0
- package/src/custom_auth/core/auth_flow/v2/CustomAuthResultV2.ts +133 -0
- package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.ts +146 -0
- package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.ts +8 -0
- package/src/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.ts +15 -0
- package/src/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.ts +33 -0
- package/src/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.ts +25 -0
- package/src/custom_auth/core/auth_flow/v2/result/MFARequestChallengeResultV2.ts +18 -0
- package/src/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.ts +26 -0
- package/src/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.ts +26 -0
- package/src/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.ts +25 -0
- package/src/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.ts +30 -0
- package/src/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.ts +40 -0
- package/src/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.ts +100 -0
- package/src/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.ts +59 -0
- package/src/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.ts +53 -0
- package/src/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.ts +196 -0
- package/src/custom_auth/core/auth_flow/v2/state/CompletedStateV2.ts +16 -0
- package/src/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.ts +44 -0
- package/src/custom_auth/core/auth_flow/v2/state/FailedStateV2.ts +15 -0
- package/src/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.ts +76 -0
- package/src/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.ts +119 -0
- package/src/custom_auth/core/error/CustomAuthApiError.ts +3 -1
- package/src/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.ts +35 -0
- package/src/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.ts +1145 -0
- package/src/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.ts +150 -0
- package/src/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.ts +66 -0
- package/src/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.ts +185 -0
- package/src/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.ts +1 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.ts +30 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.ts +423 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.ts +553 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.ts +24 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.ts +81 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.ts +177 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.ts +129 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.ts +68 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.ts +50 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/response/HalResource.ts +20 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.ts +202 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.ts +111 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.ts +26 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.ts +44 -0
- package/src/custom_auth/core/telemetry/FlowApiIdHelperV2.ts +64 -0
- package/src/custom_auth/core/telemetry/PublicApiId.ts +18 -0
- package/src/custom_auth/index.ts +96 -0
- package/src/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.ts +25 -0
- package/src/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.ts +33 -0
- package/src/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.ts +69 -0
- package/src/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateParametersV2.ts +9 -0
- package/src/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.ts +13 -0
- package/src/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.ts +35 -0
- package/src/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.ts +19 -0
- package/src/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.ts +31 -0
- package/src/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.ts +32 -0
- package/src/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.ts +22 -0
- package/src/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.ts +96 -0
- package/src/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.ts +83 -0
- package/src/custom_auth/sign_in/auth_flow/v2/state/SignInStateParametersV2.ts +12 -0
- package/src/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.ts +21 -0
- package/src/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.ts +32 -0
- package/src/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.ts +28 -0
- package/src/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.ts +20 -0
- package/src/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.ts +48 -0
- package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.ts +34 -0
- package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.ts +63 -0
- package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpStateParametersV2.ts +24 -0
- package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.ts +112 -0
- package/src/index.ts +0 -2
- package/src/interaction_client/PlatformAuthInteractionClient.ts +23 -2
- package/src/interaction_client/RedirectClient.ts +15 -5
- package/src/packageMetadata.ts +1 -1
- package/src/webBrokerBridge/PerfEventNames.ts +43 -0
- package/src/webBrokerBridge/index.ts +28 -6
- package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts +1 -0
- package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthExtensionHandler.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthRequest.d.ts +68 -5
- package/types/broker/nativeBroker/PlatformAuthRequest.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthResponse.d.ts +12 -1
- package/types/broker/nativeBroker/PlatformAuthResponse.d.ts.map +1 -1
- package/types/custom_auth/CustomAuthActionInputs.d.ts +7 -0
- package/types/custom_auth/CustomAuthActionInputs.d.ts.map +1 -1
- package/types/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/types/custom_auth/CustomAuthPublicClientApplication.d.ts +27 -5
- package/types/custom_auth/CustomAuthPublicClientApplication.d.ts.map +1 -1
- package/types/custom_auth/ICustomAuthPublicClientApplicationV2.d.ts +30 -0
- package/types/custom_auth/ICustomAuthPublicClientApplicationV2.d.ts.map +1 -0
- package/types/custom_auth/controller/CustomAuthStandardController.d.ts +11 -2
- package/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
- package/types/custom_auth/controller/ICustomAuthStandardController.d.ts +7 -1
- package/types/custom_auth/controller/ICustomAuthStandardController.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.d.ts +14 -0
- package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.d.ts +14 -0
- package/types/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts +53 -0
- package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.d.ts +40 -0
- package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.d.ts +4 -0
- package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.d.ts +11 -0
- package/types/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.d.ts +23 -0
- package/types/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.d.ts +18 -0
- package/types/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/result/MFARequestChallengeResultV2.d.ts +7 -0
- package/types/custom_auth/core/auth_flow/v2/result/MFARequestChallengeResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.d.ts +15 -0
- package/types/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts +16 -0
- package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts +16 -0
- package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts +18 -0
- package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts +23 -0
- package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts +21 -0
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.d.ts +17 -0
- package/types/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.d.ts +14 -0
- package/types/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts +25 -0
- package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/CompletedStateV2.d.ts +11 -0
- package/types/custom_auth/core/auth_flow/v2/state/CompletedStateV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.d.ts +28 -0
- package/types/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/FailedStateV2.d.ts +10 -0
- package/types/custom_auth/core/auth_flow/v2/state/FailedStateV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.d.ts +18 -0
- package/types/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts +25 -0
- package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/core/error/CustomAuthApiError.d.ts +3 -1
- package/types/custom_auth/core/error/CustomAuthApiError.d.ts.map +1 -1
- package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts +21 -0
- package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts.map +1 -0
- package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts +35 -0
- package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts.map +1 -0
- package/types/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.d.ts +26 -0
- package/types/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.d.ts.map +1 -0
- package/types/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.d.ts +43 -0
- package/types/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.d.ts.map +1 -0
- package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts +80 -0
- package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.d.ts +17 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.d.ts +31 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.d.ts +23 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.d.ts +19 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.d.ts +2 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.d.ts +15 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts +52 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.d.ts +3 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.d.ts +37 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/HalResource.d.ts +12 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/HalResource.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts +133 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.d.ts +70 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts +10 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts +33 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts.map +1 -0
- package/types/custom_auth/core/telemetry/FlowApiIdHelperV2.d.ts +4 -0
- package/types/custom_auth/core/telemetry/FlowApiIdHelperV2.d.ts.map +1 -0
- package/types/custom_auth/core/telemetry/PublicApiId.d.ts +16 -0
- package/types/custom_auth/core/telemetry/PublicApiId.d.ts.map +1 -1
- package/types/custom_auth/index.d.ts +37 -0
- package/types/custom_auth/index.d.ts.map +1 -1
- package/types/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.d.ts +18 -0
- package/types/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.d.ts.map +1 -0
- package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts +22 -0
- package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts.map +1 -0
- package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts +19 -0
- package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateParametersV2.d.ts +3 -0
- package/types/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateParametersV2.d.ts.map +1 -0
- package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.d.ts +9 -0
- package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.d.ts.map +1 -0
- package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.d.ts +22 -0
- package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.d.ts.map +1 -0
- package/types/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.d.ts +12 -0
- package/types/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.d.ts.map +1 -0
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts +21 -0
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts.map +1 -0
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts +17 -0
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts.map +1 -0
- package/types/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.d.ts +9 -0
- package/types/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.d.ts.map +1 -0
- package/types/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.d.ts +17 -0
- package/types/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts +24 -0
- package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts.map +1 -0
- package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateParametersV2.d.ts +4 -0
- package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateParametersV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.d.ts +14 -0
- package/types/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.d.ts +20 -0
- package/types/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts +15 -0
- package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts +8 -0
- package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts +15 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.d.ts +11 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.d.ts +19 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateParametersV2.d.ts +14 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateParametersV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.d.ts +10 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.d.ts.map +1 -0
- package/types/index.d.ts +0 -1
- package/types/index.d.ts.map +1 -1
- package/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/types/interaction_client/RedirectClient.d.ts.map +1 -1
- package/types/packageMetadata.d.ts +1 -1
- package/types/webBrokerBridge/PerfEventNames.d.ts +30 -0
- package/types/webBrokerBridge/PerfEventNames.d.ts.map +1 -0
- package/types/webBrokerBridge/index.d.cts +1 -0
- package/types/webBrokerBridge/index.d.ts +3 -5
- 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
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
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;
|
package/src/packageMetadata.ts
CHANGED
|
@@ -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";
|
|
@@ -4,16 +4,12 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
+
* Shared web broker bridge contracts and runtime utilities.
|
|
8
|
+
*
|
|
7
9
|
* @packageDocumentation
|
|
8
10
|
* @module @azure/msal-browser/web-broker-bridge
|
|
9
11
|
*/
|
|
10
12
|
|
|
11
|
-
/**
|
|
12
|
-
* Internal scaffolding for a `@azure/msal-browser/web-broker-bridge`
|
|
13
|
-
* subpath export. The subpath is not yet wired in `package.json` / rollup,
|
|
14
|
-
* so this module has no external callers and is intra-package only.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
13
|
export type {
|
|
18
14
|
IWebBrokerBridgeMessage,
|
|
19
15
|
IWebBrokerBridgeResponse,
|
|
@@ -34,3 +30,29 @@ export type {
|
|
|
34
30
|
CrossVersionRequestFields,
|
|
35
31
|
LegacyRequestFields,
|
|
36
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,EAEvB,MAAM,2B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BAAgB,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,CAA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rB,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;IA8ChC;;;;;;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,5 +1,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?:
|
|
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;
|
|
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,SAAS,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAEnE;;GAEG;AACH,eAAO,MAAM,mBAAmB;IAC5B;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;CAEG,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAC3B,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAEnE;;GAEG;AACH,eAAO,MAAM,qBAAqB;;CAExB,CAAC;AAEX;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAC3B,SAAS,CAAC,oBAAoB,GAC9B,CAAC,OAAO,qBAAqB,CAAC,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,MAAM,CAAC;IAC7B,sBAAsB,CAAC,EAAE,kCAAkC,CAAC;IAO5D,eAAe,CAAC,EAAE,kBAAkB,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,UAAU,GAAG;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,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?:
|
|
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,EAAE,wBAAwB,CAAC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,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,IAAI,GAAG;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACnC,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,KAAK,EAAE,WAAW,CAAC;IACnB,UAAU,CAAC,EAAE,
|
|
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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E,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,KAAK,EAAE,WAAW,CAAC;IACnB,UAAU,CAAC,EAAE,6BAA6B,CAAC;CAC9C,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"}
|
|
@@ -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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AM,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,MAAM,0BAA0B,GAAG;IACrC,YAAY,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,iCAAiC,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"}
|
|
@@ -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 {
|
|
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
|
|
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<
|
|
17
|
+
* @returns {Promise<ICustomAuthPublicClientApplicationV2>} - A promise that resolves to a CustomAuthPublicClientApplication instance
|
|
15
18
|
*/
|
|
16
|
-
static create(config: CustomAuthConfiguration): Promise<
|
|
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,
|
|
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
|
-
|
|
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,
|
|
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,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,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;IAsD9B,eAAe,CACjB,MAAM,EAAE,qBAAqB,GAC9B,OAAO,CAAC,0BAA0B,CAAC;IA8EhC,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAqH9D,QAAQ,CAAC,MAAM,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,
|
|
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"}
|