@azure/msal-browser 5.29.1 → 5.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/dist/app/IPublicClientApplication.mjs +4 -1
- package/dist/app/IPublicClientApplication.mjs.map +1 -1
- package/dist/app/PublicClientApplication.mjs +14 -2
- package/dist/app/PublicClientApplication.mjs.map +1 -1
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +10 -23
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +2 -3
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthRequest.mjs +1 -1
- package/dist/cache/AccountManager.mjs +1 -1
- package/dist/cache/AsyncMemoryStorage.mjs +1 -1
- package/dist/cache/BrowserCacheManager.mjs +40 -4
- package/dist/cache/BrowserCacheManager.mjs.map +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 +11 -2
- package/dist/config/Configuration.mjs.map +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +26 -5
- package/dist/controllers/NestedAppAuthController.mjs.map +1 -1
- package/dist/controllers/StandardController.mjs +44 -11
- package/dist/controllers/StandardController.mjs.map +1 -1
- package/dist/crypto/BrowserCrypto.mjs +189 -5
- package/dist/crypto/BrowserCrypto.mjs.map +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 +1 -4
- package/dist/custom_auth/CustomAuthPublicClientApplication.mjs.map +1 -1
- package/dist/custom_auth/controller/CustomAuthStandardController.mjs +11 -4
- package/dist/custom_auth/controller/CustomAuthStandardController.mjs.map +1 -1
- package/dist/custom_auth/core/CustomAuthAuthority.mjs +3 -3
- package/dist/custom_auth/core/CustomAuthAuthority.mjs.map +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 -4
- package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -3
- package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs.map +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 -8
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs.map +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 -3
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -3
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs.map +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 -7
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs +1 -2
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs +1 -2
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.mjs +1 -2
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.mjs +1 -2
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs +2 -5
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.mjs +1 -2
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs +1 -2
- package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs +1 -2
- package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs +1 -2
- package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs +1 -2
- package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.mjs +2 -3
- package/dist/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/core/error/CustomAuthApiError.mjs +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 +32 -27
- package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs.map +1 -1
- package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs +6 -2
- package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs.map +1 -1
- 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 +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 +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs +7 -5
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs +12 -3
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.mjs +9 -39
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
- package/dist/custom_auth/core/telemetry/FlowApiIdHelperV2.mjs +1 -1
- package/dist/custom_auth/core/telemetry/PublicApiId.mjs +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 +2 -1
- package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs.map +1 -1
- package/dist/custom_auth/index.mjs +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/state/NewPasswordRequiredStateV2.mjs +1 -2
- package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateTransitionHandlerV2.mjs +1 -1
- 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 -3
- package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -3
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -3
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs.map +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/state/SignInContinuationStateV2.mjs +1 -2
- package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.mjs +1 -1
- 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/state/AttributesRequiredStateV2.mjs +1 -2
- package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountCodeRequiredStateV2.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountPasswordRequiredStateV2.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountStateTransitionHelperV2.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.mjs +1 -1
- 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 +3 -2
- package/dist/error/BrowserAuthErrorCodes.mjs.map +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/interaction_client/BaseInteractionClient.mjs +4 -2
- package/dist/interaction_client/BaseInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs +18 -5
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/PopupClient.mjs +27 -21
- package/dist/interaction_client/PopupClient.mjs.map +1 -1
- package/dist/interaction_client/RedirectClient.mjs +8 -10
- 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 +5 -8
- package/dist/interaction_client/SilentIframeClient.mjs.map +1 -1
- package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
- package/dist/interaction_client/StandardInteractionClient.mjs +2 -1
- package/dist/interaction_client/StandardInteractionClient.mjs.map +1 -1
- package/dist/interaction_handler/InteractionHandler.mjs +1 -1
- package/dist/interaction_handler/SilentHandler.mjs +1 -1
- package/dist/log-strings-mapping.json +13 -9
- 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 +24 -6
- package/dist/popup_relay/constants.mjs.map +1 -1
- package/dist/popup_relay/index.mjs +142 -44
- package/dist/popup_relay/index.mjs.map +1 -1
- package/dist/popup_relay/relayClient.mjs +66 -23
- package/dist/popup_relay/relayClient.mjs.map +1 -1
- package/dist/protocol/Authorize.mjs +71 -13
- package/dist/protocol/Authorize.mjs.map +1 -1
- package/dist/redirect_bridge/index.mjs +1 -1
- package/dist/request/RequestHelpers.mjs +2 -1
- package/dist/request/RequestHelpers.mjs.map +1 -1
- package/dist/request/SilentRequestHelpers.mjs +7 -4
- package/dist/request/SilentRequestHelpers.mjs.map +1 -1
- package/dist/response/ResponseHandler.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceEvents.mjs +14 -2
- package/dist/telemetry/BrowserPerformanceEvents.mjs.map +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/BrowserDetection.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/IframeMonitor.mjs +1 -1
- package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
- package/dist/utils/PopupMonitor.mjs +1 -1
- package/dist/utils/PopupOriginCheck.mjs +1 -1
- package/dist/webBrokerBridge/PendingRequestRegistry.mjs +1 -1
- package/dist/webBrokerBridge/PerfEventNames.mjs +1 -1
- package/dist/webBrokerBridge/WebBrokerBridgeError.mjs +1 -1
- package/dist/webBrokerBridge/WebBrokerBridgeErrorMap.mjs +1 -1
- package/dist/webBrokerBridge/adapter/CrossVersionRequestAdapter.mjs +1 -1
- package/dist/webBrokerBridge/index.mjs +1 -1
- package/lib/custom-auth-path/log-strings-mapping.json +13 -9
- package/lib/custom-auth-path/msal-custom-auth.cjs +764 -314
- package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
- package/lib/custom-auth-path/msal-custom-auth.js +764 -314
- package/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
- package/lib/log-strings-mapping.json +13 -9
- package/lib/msal-browser.cjs +791 -215
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +791 -215
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +2 -2
- package/lib/popup-relay/msal-popup-relay.cjs +231 -60
- package/lib/popup-relay/msal-popup-relay.cjs.map +1 -1
- package/lib/popup-relay/msal-popup-relay.js +231 -60
- package/lib/popup-relay/msal-popup-relay.js.map +1 -1
- package/lib/popup-relay/msal-popup-relay.min.js +2 -2
- 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 +1 -1
- package/package.json +2 -2
- package/src/app/IPublicClientApplication.ts +16 -0
- package/src/app/PublicClientApplication.ts +22 -0
- package/src/broker/nativeBroker/PlatformAuthDOMHandler.ts +11 -44
- package/src/broker/nativeBroker/PlatformAuthProvider.ts +1 -2
- package/src/broker/nativeBroker/PlatformAuthResponse.ts +2 -6
- package/src/cache/BrowserCacheManager.ts +66 -6
- package/src/config/Configuration.ts +35 -0
- package/src/controllers/NestedAppAuthController.ts +35 -2
- package/src/controllers/StandardController.ts +76 -12
- package/src/controllers/UnknownOperatingContextController.ts +10 -0
- package/src/crypto/BrowserCrypto.ts +367 -2
- package/src/custom_auth/CustomAuthActionInputs.ts +0 -9
- package/src/custom_auth/CustomAuthPublicClientApplication.ts +0 -3
- package/src/custom_auth/ICustomAuthPublicClientApplicationV2.ts +0 -3
- package/src/custom_auth/controller/CustomAuthStandardController.ts +15 -2
- package/src/custom_auth/core/CustomAuthAuthority.ts +2 -1
- package/src/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.ts +0 -3
- package/src/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.ts +0 -2
- package/src/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.ts +0 -7
- package/src/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.ts +0 -2
- package/src/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.ts +0 -2
- package/src/custom_auth/core/auth_flow/mfa/state/MfaState.ts +0 -6
- package/src/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.ts +0 -1
- package/src/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.ts +0 -1
- package/src/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.ts +0 -4
- package/src/custom_auth/core/auth_flow/v2/CustomAuthResultV2.ts +0 -1
- package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.ts +0 -1
- package/src/custom_auth/core/auth_flow/v2/result/AuthMethodRegistrationChallengeResultV2.ts +0 -2
- package/src/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.ts +0 -2
- package/src/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.ts +0 -2
- package/src/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.ts +0 -2
- package/src/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.ts +0 -2
- package/src/custom_auth/core/auth_flow/v2/result/SubmitPasswordResultV2.ts +0 -2
- package/src/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.ts +0 -2
- package/src/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.ts +0 -1
- package/src/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.ts +0 -3
- package/src/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.ts +0 -1
- package/src/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.ts +0 -1
- package/src/custom_auth/core/auth_flow/v2/state/CompletedStateV2.ts +0 -1
- package/src/custom_auth/core/auth_flow/v2/state/FailedStateV2.ts +0 -1
- package/src/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.ts +0 -1
- package/src/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.ts +8 -6
- package/src/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.ts +1 -0
- package/src/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.ts +43 -29
- package/src/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.ts +21 -2
- package/src/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.ts +12 -8
- package/src/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.ts +35 -4
- package/src/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.ts +10 -47
- package/src/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.ts +1 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.ts +9 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.ts +5 -5
- package/src/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.ts +2 -5
- package/src/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.ts +2 -4
- package/src/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.ts +1 -0
- package/src/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.ts +0 -2
- package/src/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.ts +0 -1
- package/src/custom_auth/sign_in/auth_flow/result/SignInResult.ts +0 -2
- package/src/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.ts +0 -2
- package/src/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.ts +0 -2
- package/src/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.ts +0 -2
- package/src/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.ts +0 -2
- package/src/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.ts +0 -1
- package/src/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.ts +0 -2
- package/src/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.ts +0 -2
- package/src/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.ts +0 -1
- package/src/error/AsymmetricEarSubErrors.ts +18 -0
- package/src/error/BrowserAuthErrorCodes.ts +1 -0
- package/src/interaction_client/BaseInteractionClient.ts +6 -1
- package/src/interaction_client/PlatformAuthInteractionClient.ts +28 -8
- package/src/interaction_client/PopupClient.ts +59 -29
- package/src/interaction_client/RedirectClient.ts +10 -13
- package/src/interaction_client/SilentIframeClient.ts +9 -13
- package/src/interaction_client/StandardInteractionClient.ts +1 -0
- package/src/packageMetadata.ts +1 -1
- package/src/popup_relay/constants.ts +34 -3
- package/src/popup_relay/index.ts +200 -45
- package/src/popup_relay/relayClient.ts +108 -24
- package/src/protocol/Authorize.ts +123 -11
- package/src/request/EndSessionPopupRequest.ts +3 -0
- package/src/request/PopupRequest.ts +1 -0
- package/src/request/RedirectRequest.ts +4 -0
- package/src/request/RequestHelpers.ts +5 -0
- package/src/request/SilentRequestHelpers.ts +10 -4
- package/src/request/SsoSilentRequest.ts +1 -0
- package/src/telemetry/BrowserPerformanceEvents.ts +14 -0
- package/types/app/IPublicClientApplication.d.ts +8 -0
- package/types/app/IPublicClientApplication.d.ts.map +1 -1
- package/types/app/PublicClientApplication.d.ts +6 -1
- package/types/app/PublicClientApplication.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts +0 -1
- package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthProvider.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthResponse.d.ts +2 -6
- package/types/broker/nativeBroker/PlatformAuthResponse.d.ts.map +1 -1
- package/types/cache/BrowserCacheManager.d.ts +20 -2
- package/types/cache/BrowserCacheManager.d.ts.map +1 -1
- package/types/config/Configuration.d.ts +14 -0
- package/types/config/Configuration.d.ts.map +1 -1
- package/types/controllers/NestedAppAuthController.d.ts +5 -0
- package/types/controllers/NestedAppAuthController.d.ts.map +1 -1
- package/types/controllers/StandardController.d.ts +4 -0
- package/types/controllers/StandardController.d.ts.map +1 -1
- package/types/controllers/UnknownOperatingContextController.d.ts +5 -0
- package/types/controllers/UnknownOperatingContextController.d.ts.map +1 -1
- package/types/crypto/BrowserCrypto.d.ts +34 -0
- package/types/crypto/BrowserCrypto.d.ts.map +1 -1
- package/types/custom_auth/CustomAuthActionInputs.d.ts +0 -9
- 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 +0 -3
- package/types/custom_auth/CustomAuthPublicClientApplication.d.ts.map +1 -1
- package/types/custom_auth/ICustomAuthPublicClientApplicationV2.d.ts +0 -3
- package/types/custom_auth/ICustomAuthPublicClientApplicationV2.d.ts.map +1 -1
- package/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
- package/types/custom_auth/core/CustomAuthAuthority.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts +0 -3
- package/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts +0 -2
- package/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts +0 -7
- package/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts +0 -2
- package/types/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts +0 -2
- package/types/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts +0 -6
- package/types/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.d.ts +0 -1
- package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.d.ts +0 -1
- package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.d.ts +0 -4
- package/types/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts +0 -1
- package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.d.ts +0 -1
- package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/result/AuthMethodRegistrationChallengeResultV2.d.ts +0 -2
- package/types/custom_auth/core/auth_flow/v2/result/AuthMethodRegistrationChallengeResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.d.ts +0 -2
- package/types/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts +0 -2
- package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts +0 -2
- package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts +0 -2
- package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/result/SubmitPasswordResultV2.d.ts +0 -2
- package/types/custom_auth/core/auth_flow/v2/result/SubmitPasswordResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts +0 -2
- package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.d.ts +0 -1
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts +0 -1
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.d.ts +0 -1
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts +0 -1
- package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/CompletedStateV2.d.ts +0 -1
- package/types/custom_auth/core/auth_flow/v2/state/CompletedStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/FailedStateV2.d.ts +0 -1
- package/types/custom_auth/core/auth_flow/v2/state/FailedStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts +0 -1
- package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.d.ts +0 -1
- package/types/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts +1 -0
- package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts +3 -2
- package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts.map +1 -1
- package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts +10 -1
- package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.d.ts +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts +8 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.d.ts +4 -5
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts +3 -6
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts +2 -5
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts.map +1 -1
- package/types/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.d.ts.map +1 -1
- package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts +0 -2
- package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts.map +1 -1
- package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts +0 -1
- package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts +0 -2
- package/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts.map +1 -1
- package/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts +0 -2
- package/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts.map +1 -1
- package/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts +0 -2
- package/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts.map +1 -1
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts +0 -2
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts.map +1 -1
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts +0 -2
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts.map +1 -1
- package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts +0 -1
- package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts.map +1 -1
- package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts +0 -2
- package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts.map +1 -1
- package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts +0 -2
- package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts.map +1 -1
- package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts +0 -1
- package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts.map +1 -1
- package/types/error/AsymmetricEarSubErrors.d.ts +14 -0
- package/types/error/AsymmetricEarSubErrors.d.ts.map +1 -0
- package/types/error/BrowserAuthErrorCodes.d.ts +1 -0
- package/types/error/BrowserAuthErrorCodes.d.ts.map +1 -1
- package/types/interaction_client/BaseInteractionClient.d.ts +3 -2
- package/types/interaction_client/BaseInteractionClient.d.ts.map +1 -1
- package/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/types/interaction_client/PopupClient.d.ts +3 -1
- package/types/interaction_client/PopupClient.d.ts.map +1 -1
- package/types/interaction_client/RedirectClient.d.ts +0 -1
- package/types/interaction_client/RedirectClient.d.ts.map +1 -1
- package/types/interaction_client/SilentIframeClient.d.ts.map +1 -1
- package/types/interaction_client/StandardInteractionClient.d.ts.map +1 -1
- package/types/packageMetadata.d.ts +1 -1
- package/types/popup_relay/constants.d.ts +10 -3
- package/types/popup_relay/constants.d.ts.map +1 -1
- package/types/popup_relay/index.d.ts +27 -11
- package/types/popup_relay/index.d.ts.map +1 -1
- package/types/popup_relay/relayClient.d.ts +9 -11
- package/types/popup_relay/relayClient.d.ts.map +1 -1
- package/types/protocol/Authorize.d.ts +5 -0
- package/types/protocol/Authorize.d.ts.map +1 -1
- package/types/request/EndSessionPopupRequest.d.ts +3 -0
- package/types/request/EndSessionPopupRequest.d.ts.map +1 -1
- package/types/request/PopupRequest.d.ts +1 -1
- package/types/request/PopupRequest.d.ts.map +1 -1
- package/types/request/RedirectRequest.d.ts +4 -1
- package/types/request/RedirectRequest.d.ts.map +1 -1
- package/types/request/RequestHelpers.d.ts.map +1 -1
- package/types/request/SilentRequestHelpers.d.ts +1 -1
- package/types/request/SilentRequestHelpers.d.ts.map +1 -1
- package/types/request/SsoSilentRequest.d.ts +1 -1
- package/types/request/SsoSilentRequest.d.ts.map +1 -1
- package/types/telemetry/BrowserPerformanceEvents.d.ts +12 -0
- package/types/telemetry/BrowserPerformanceEvents.d.ts.map +1 -1
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
EmbeddedMethodV2,
|
|
44
44
|
EmbeddedEnrollmentMethodV2,
|
|
45
45
|
EnrollmentResponseV2,
|
|
46
|
-
|
|
46
|
+
ContinueResponseV2,
|
|
47
47
|
} from "./response/ResponsesV2.js";
|
|
48
48
|
import {
|
|
49
49
|
RequestContextV2,
|
|
@@ -199,6 +199,11 @@ export class CustomAuthApiClientV2 extends BaseApiClientV2 {
|
|
|
199
199
|
return {
|
|
200
200
|
nextAction: SignUpSubmitAttributesNextActionV2.CONTINUE,
|
|
201
201
|
continuationToken,
|
|
202
|
+
continueHref: this.handler.requireHref(
|
|
203
|
+
parsedResponse.body._links?.continue?.href,
|
|
204
|
+
ResponseStateV2.CONTINUE,
|
|
205
|
+
correlationId
|
|
206
|
+
),
|
|
202
207
|
};
|
|
203
208
|
}
|
|
204
209
|
|
|
@@ -386,7 +391,7 @@ export class CustomAuthApiClientV2 extends BaseApiClientV2 {
|
|
|
386
391
|
request: AuthMethodRegistrationVerificationRequestV2,
|
|
387
392
|
context: RequestContextV2
|
|
388
393
|
): Promise<ActivationResultV2> {
|
|
389
|
-
const parsedResponse = await this.sendActionRequest<
|
|
394
|
+
const parsedResponse = await this.sendActionRequest<ContinueResponseV2>(
|
|
390
395
|
activateHref,
|
|
391
396
|
HttpMethod.POST,
|
|
392
397
|
request,
|
|
@@ -407,6 +412,11 @@ export class CustomAuthApiClientV2 extends BaseApiClientV2 {
|
|
|
407
412
|
parsedResponse.continuationToken,
|
|
408
413
|
parsedResponse.correlationId
|
|
409
414
|
),
|
|
415
|
+
continueHref: this.handler.requireHref(
|
|
416
|
+
parsedResponse.body._links?.continue?.href,
|
|
417
|
+
ResponseStateV2.CONTINUE,
|
|
418
|
+
parsedResponse.correlationId
|
|
419
|
+
),
|
|
410
420
|
};
|
|
411
421
|
}
|
|
412
422
|
|
|
@@ -512,6 +522,11 @@ export class CustomAuthApiClientV2 extends BaseApiClientV2 {
|
|
|
512
522
|
return {
|
|
513
523
|
nextAction,
|
|
514
524
|
continuationToken,
|
|
525
|
+
continueHref: this.handler.requireHref(
|
|
526
|
+
parsedResponse.body._links?.continue?.href,
|
|
527
|
+
ResponseStateV2.CONTINUE,
|
|
528
|
+
correlationId
|
|
529
|
+
),
|
|
515
530
|
};
|
|
516
531
|
}
|
|
517
532
|
|
|
@@ -568,6 +583,11 @@ export class CustomAuthApiClientV2 extends BaseApiClientV2 {
|
|
|
568
583
|
return {
|
|
569
584
|
nextAction: ResponseStateV2.CONTINUE,
|
|
570
585
|
continuationToken,
|
|
586
|
+
continueHref: this.handler.requireHref(
|
|
587
|
+
parsedResponse.body._links?.continue?.href,
|
|
588
|
+
ResponseStateV2.CONTINUE,
|
|
589
|
+
correlationId
|
|
590
|
+
),
|
|
571
591
|
};
|
|
572
592
|
}
|
|
573
593
|
|
|
@@ -789,12 +809,23 @@ export class CustomAuthApiClientV2 extends BaseApiClientV2 {
|
|
|
789
809
|
): StartMethodV2[] {
|
|
790
810
|
const resolved: StartMethodV2[] = [];
|
|
791
811
|
|
|
792
|
-
methods.forEach((method
|
|
812
|
+
methods.forEach((method) => {
|
|
793
813
|
const href = method._links?.challenge?.href;
|
|
794
814
|
|
|
795
815
|
if (href) {
|
|
816
|
+
if (typeof method.id !== "string" || !method.id.trim()) {
|
|
817
|
+
const message =
|
|
818
|
+
"Invalid HAL response: authentication method ID is missing or malformed";
|
|
819
|
+
this.logger?.error(message, correlationId);
|
|
820
|
+
throw new CustomAuthApiError(
|
|
821
|
+
INVALID_HAL_RESPONSE,
|
|
822
|
+
message,
|
|
823
|
+
correlationId
|
|
824
|
+
);
|
|
825
|
+
}
|
|
826
|
+
|
|
796
827
|
resolved.push({
|
|
797
|
-
id: method.id
|
|
828
|
+
id: method.id,
|
|
798
829
|
type: method.type,
|
|
799
830
|
hint: method.hint,
|
|
800
831
|
challengeHref: href,
|
|
@@ -6,16 +6,6 @@
|
|
|
6
6
|
import { ParsedUrlError } from "../../../error/ParsedUrlError.js";
|
|
7
7
|
import { InvalidUrl } from "../../../error/ParsedUrlErrorCodes.js";
|
|
8
8
|
|
|
9
|
-
const API_MARKERS = ["/api/", "/oauth2/"];
|
|
10
|
-
|
|
11
|
-
/*
|
|
12
|
-
* Resolves a HAL href against the configured authority. Absolute HTTP(S) URLs
|
|
13
|
-
* pass through; relative URLs retain their API path and query while using the
|
|
14
|
-
* configured tenant path.
|
|
15
|
-
*
|
|
16
|
-
* TODO: Remove tenant-path rewriting once the service consistently returns links that can be
|
|
17
|
-
* resolved directly against the configured authority.
|
|
18
|
-
*/
|
|
19
9
|
export function resolveHrefV2(base: URL, href: string): URL {
|
|
20
10
|
const trimmed = href.trim();
|
|
21
11
|
|
|
@@ -23,16 +13,19 @@ export function resolveHrefV2(base: URL, href: string): URL {
|
|
|
23
13
|
throw new ParsedUrlError(InvalidUrl, "The HAL href cannot be empty");
|
|
24
14
|
}
|
|
25
15
|
|
|
26
|
-
const absolute = tryParseAbsolute(trimmed);
|
|
27
|
-
|
|
28
|
-
if (absolute) {
|
|
29
|
-
return absolute;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
16
|
let resolved: URL;
|
|
33
17
|
|
|
34
18
|
try {
|
|
35
|
-
|
|
19
|
+
let path = trimmed.startsWith("/") ? trimmed : `/${trimmed}`;
|
|
20
|
+
const lowerHref = trimmed.toLowerCase();
|
|
21
|
+
if (
|
|
22
|
+
lowerHref.startsWith("https://") ||
|
|
23
|
+
lowerHref.startsWith("http://")
|
|
24
|
+
) {
|
|
25
|
+
const absoluteHref = new URL(trimmed);
|
|
26
|
+
path = `${absoluteHref.pathname}${absoluteHref.search}${absoluteHref.hash}`;
|
|
27
|
+
}
|
|
28
|
+
resolved = new URL(`${base.origin}${path}`);
|
|
36
29
|
} catch (e) {
|
|
37
30
|
throw new ParsedUrlError(
|
|
38
31
|
InvalidUrl,
|
|
@@ -47,35 +40,5 @@ export function resolveHrefV2(base: URL, href: string): URL {
|
|
|
47
40
|
);
|
|
48
41
|
}
|
|
49
42
|
|
|
50
|
-
const tenantPath = base.pathname.endsWith("/")
|
|
51
|
-
? base.pathname.slice(0, -1)
|
|
52
|
-
: base.pathname;
|
|
53
|
-
|
|
54
|
-
resolved.pathname = tenantPath + apiPath(resolved.pathname);
|
|
55
|
-
|
|
56
43
|
return resolved;
|
|
57
44
|
}
|
|
58
|
-
|
|
59
|
-
function tryParseAbsolute(href: string): URL | undefined {
|
|
60
|
-
try {
|
|
61
|
-
const url = new URL(href);
|
|
62
|
-
|
|
63
|
-
return url.protocol === "http:" || url.protocol === "https:"
|
|
64
|
-
? url
|
|
65
|
-
: undefined;
|
|
66
|
-
} catch {
|
|
67
|
-
return undefined;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
function apiPath(path: string): string {
|
|
72
|
-
for (const marker of API_MARKERS) {
|
|
73
|
-
const index = path.indexOf(marker);
|
|
74
|
-
|
|
75
|
-
if (index >= 0) {
|
|
76
|
-
return path.slice(index);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
return path.startsWith("/") ? path : `/${path}`;
|
|
81
|
-
}
|
|
@@ -50,6 +50,12 @@ export interface AuthorizeChallengeContinueResponseV2 {
|
|
|
50
50
|
code?: string;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
export interface ContinueResponseV2 extends Omit<HalResponseBaseV2, "_links"> {
|
|
54
|
+
_links?: {
|
|
55
|
+
continue?: HalLink;
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
53
59
|
export interface AuthorizeChallengeEntryResponseV2
|
|
54
60
|
extends OAuthErrorResponseV2 {
|
|
55
61
|
continuation_token?: string;
|
|
@@ -128,6 +134,7 @@ export interface SignUpSubmitAttributesResponseV2
|
|
|
128
134
|
extends Omit<CodeChallengeResponseV2, "_links" | "_embedded"> {
|
|
129
135
|
attributes?: SignUpAttributeResponseV2[];
|
|
130
136
|
_links?: {
|
|
137
|
+
continue?: HalLink;
|
|
131
138
|
verify?: HalLink;
|
|
132
139
|
resend?: HalLink;
|
|
133
140
|
submitAttributes?: HalLink;
|
|
@@ -143,6 +150,7 @@ export interface VerifyResponseV2 extends Omit<HalResponseBaseV2, "_links"> {
|
|
|
143
150
|
payload?: Record<string, unknown>;
|
|
144
151
|
attributes?: SignUpAttributeResponseV2[];
|
|
145
152
|
_links?: {
|
|
153
|
+
continue?: HalLink;
|
|
146
154
|
update?: HalLink;
|
|
147
155
|
submitAttributes?: HalLink;
|
|
148
156
|
};
|
|
@@ -174,6 +182,7 @@ export interface UpdatePasswordResponseV2
|
|
|
174
182
|
|
|
175
183
|
export interface PollResponseV2 extends Omit<HalResponseBaseV2, "_links"> {
|
|
176
184
|
_links?: {
|
|
185
|
+
continue?: HalLink;
|
|
177
186
|
poll?: HalLink;
|
|
178
187
|
};
|
|
179
188
|
_embedded?: {
|
|
@@ -50,11 +50,14 @@ export interface EnrollmentResultV2 {
|
|
|
50
50
|
resendHref?: string;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
export interface
|
|
53
|
+
export interface ContinueResultV2 {
|
|
54
54
|
nextAction: typeof ResponseStateV2.CONTINUE;
|
|
55
55
|
continuationToken: string;
|
|
56
|
+
continueHref: string;
|
|
56
57
|
}
|
|
57
58
|
|
|
59
|
+
export type ActivationResultV2 = ContinueResultV2;
|
|
60
|
+
|
|
58
61
|
export const AuthenticationFactorV2 = {
|
|
59
62
|
SINGLE_FACTOR: "singleFactor",
|
|
60
63
|
MULTI_FACTOR: "multiFactor",
|
|
@@ -99,10 +102,7 @@ export type VerifyResultV2 =
|
|
|
99
102
|
continuationToken: string;
|
|
100
103
|
updateHref: string;
|
|
101
104
|
}
|
|
102
|
-
|
|
|
103
|
-
nextAction: typeof ResponseStateV2.CONTINUE;
|
|
104
|
-
continuationToken: string;
|
|
105
|
-
}
|
|
105
|
+
| ContinueResultV2
|
|
106
106
|
| {
|
|
107
107
|
nextAction: typeof CHALLENGE_RELATION;
|
|
108
108
|
continuationToken: string;
|
package/src/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import type {
|
|
7
7
|
AuthenticationFactorV2,
|
|
8
|
+
ContinueResultV2,
|
|
8
9
|
EnrollmentMethodV2,
|
|
9
10
|
StartMethodV2,
|
|
10
11
|
} from "./BaseResultsV2.js";
|
|
@@ -12,7 +13,6 @@ import {
|
|
|
12
13
|
CHALLENGE_RELATION,
|
|
13
14
|
ENROLL_RELATION,
|
|
14
15
|
POLL_RELATION,
|
|
15
|
-
ResponseStateV2,
|
|
16
16
|
} from "../ApiClientConstantsV2.js";
|
|
17
17
|
|
|
18
18
|
export interface ResetPasswordUpdateResultV2 {
|
|
@@ -37,7 +37,4 @@ export type ResetPasswordPollResultV2 =
|
|
|
37
37
|
authenticationFactor: AuthenticationFactorV2;
|
|
38
38
|
methods: StartMethodV2[];
|
|
39
39
|
}
|
|
40
|
-
|
|
|
41
|
-
nextAction: typeof ResponseStateV2.CONTINUE;
|
|
42
|
-
continuationToken: string;
|
|
43
|
-
};
|
|
40
|
+
| ContinueResultV2;
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import type {
|
|
7
7
|
ChallengeVerificationResultV2,
|
|
8
|
+
ContinueResultV2,
|
|
8
9
|
EnrollmentRequiredResultV2,
|
|
9
10
|
StartResultV2,
|
|
10
11
|
} from "./BaseResultsV2.js";
|
|
@@ -42,7 +43,4 @@ export type SignUpSubmitAttributesApiResultV2 =
|
|
|
42
43
|
submitAttributesHref: string;
|
|
43
44
|
}
|
|
44
45
|
| EnrollmentRequiredResultV2
|
|
45
|
-
|
|
|
46
|
-
nextAction: typeof SignUpSubmitAttributesNextActionV2.CONTINUE;
|
|
47
|
-
continuationToken: string;
|
|
48
|
-
};
|
|
46
|
+
| ContinueResultV2;
|
|
@@ -213,6 +213,7 @@ export class CustomAuthSilentCacheClient extends CustomAuthInteractionClientBase
|
|
|
213
213
|
},
|
|
214
214
|
cryptoInterface: this.browserCrypto,
|
|
215
215
|
tokenBindingKeyManager: this.tokenBindingKeyManager,
|
|
216
|
+
dpopNonceProvider: this.browserStorage,
|
|
216
217
|
networkInterface: this.networkClient,
|
|
217
218
|
storageInterface: this.browserStorage,
|
|
218
219
|
serverTelemetryManager: serverTelemetryManager,
|
|
@@ -11,7 +11,6 @@ import type { AuthMethodSelectionRequiredStateV2 } from "../../../../core/auth_f
|
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* States returned after submitting a new password.
|
|
14
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
15
14
|
*/
|
|
16
15
|
export type SubmitNewPasswordResultStateV2 =
|
|
17
16
|
| SignInContinuationStateV2
|
|
@@ -21,7 +20,6 @@ export type SubmitNewPasswordResultStateV2 =
|
|
|
21
20
|
|
|
22
21
|
/**
|
|
23
22
|
* Result of submitting a new password.
|
|
24
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
25
23
|
*/
|
|
26
24
|
export type SubmitNewPasswordResultV2 =
|
|
27
25
|
CustomAuthResultV2<SubmitNewPasswordResultStateV2>;
|
|
@@ -23,7 +23,6 @@ import type { SubmitNewPasswordResultV2 } from "../result/SubmitNewPasswordResul
|
|
|
23
23
|
* State returned when the user must supply a new password. Submission can
|
|
24
24
|
* require method registration or MFA, and the flow is not complete until any
|
|
25
25
|
* subsequent required actions finish.
|
|
26
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
27
26
|
*/
|
|
28
27
|
export class NewPasswordRequiredStateV2 extends AuthFlowActionRequiredStateBase<NewPasswordRequiredStateParametersV2> {
|
|
29
28
|
readonly stateType = "newPasswordRequired";
|
|
@@ -83,7 +83,6 @@ export class SignInResult extends AuthFlowResultBase<
|
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* Checks if the result requires authentication method registration.
|
|
86
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
87
86
|
*/
|
|
88
87
|
isAuthMethodRegistrationRequired(): this is SignInResult & {
|
|
89
88
|
state: AuthMethodRegistrationRequiredState;
|
|
@@ -96,7 +95,6 @@ export class SignInResult extends AuthFlowResultBase<
|
|
|
96
95
|
|
|
97
96
|
/**
|
|
98
97
|
* Checks if the result requires MFA.
|
|
99
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
100
98
|
*/
|
|
101
99
|
isMfaRequired(): this is SignInResult & { state: MfaAwaitingState } {
|
|
102
100
|
return this.state.stateType === MFA_AWAITING_STATE_TYPE;
|
|
@@ -57,7 +57,6 @@ export class SignInSubmitCodeResult extends AuthFlowResultBase<
|
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
59
|
* Checks if the result requires authentication method registration.
|
|
60
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
61
60
|
*/
|
|
62
61
|
isAuthMethodRegistrationRequired(): this is SignInSubmitCodeResult & {
|
|
63
62
|
state: AuthMethodRegistrationRequiredState;
|
|
@@ -70,7 +69,6 @@ export class SignInSubmitCodeResult extends AuthFlowResultBase<
|
|
|
70
69
|
|
|
71
70
|
/**
|
|
72
71
|
* Checks if the result requires MFA.
|
|
73
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
74
72
|
*/
|
|
75
73
|
isMfaRequired(): this is SignInSubmitCodeResult & {
|
|
76
74
|
state: MfaAwaitingState;
|
|
@@ -54,7 +54,6 @@ export class SignInSubmitPasswordResult extends AuthFlowResultBase<
|
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
56
|
* Checks if the result requires authentication method registration.
|
|
57
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
58
57
|
*/
|
|
59
58
|
isAuthMethodRegistrationRequired(): this is SignInSubmitPasswordResult & {
|
|
60
59
|
state: AuthMethodRegistrationRequiredState;
|
|
@@ -67,7 +66,6 @@ export class SignInSubmitPasswordResult extends AuthFlowResultBase<
|
|
|
67
66
|
|
|
68
67
|
/**
|
|
69
68
|
* Checks if the result requires MFA.
|
|
70
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
71
69
|
*/
|
|
72
70
|
isMfaRequired(): this is SignInSubmitPasswordResult & {
|
|
73
71
|
state: MfaAwaitingState;
|
|
@@ -10,13 +10,11 @@ import type { CustomAuthAccountData } from "../../../../get_account/auth_flow/Cu
|
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* States returned when signing in from a V2 continuation.
|
|
13
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
14
13
|
*/
|
|
15
14
|
export type SignInContinuationResultStateV2 = CompletedStateV2 | FailedStateV2;
|
|
16
15
|
|
|
17
16
|
/**
|
|
18
17
|
* Result of signing the user in from a V2 continuation.
|
|
19
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
20
18
|
*/
|
|
21
19
|
export type SignInContinuationResultV2 = CustomAuthResultV2<
|
|
22
20
|
SignInContinuationResultStateV2,
|
|
@@ -11,7 +11,6 @@ import type { CodeRequiredStateV2 } from "../../../../core/auth_flow/v2/state/Co
|
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* States returned when native auth V2 sign-in starts.
|
|
14
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
15
14
|
*/
|
|
16
15
|
export type SignInStartResultStateV2 =
|
|
17
16
|
| PasswordRequiredStateV2
|
|
@@ -21,7 +20,6 @@ export type SignInStartResultStateV2 =
|
|
|
21
20
|
|
|
22
21
|
/**
|
|
23
22
|
* Result of starting native auth V2 sign-in.
|
|
24
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
25
23
|
*/
|
|
26
24
|
export type SignInStartResultV2 = CustomAuthResultV2<
|
|
27
25
|
SignInStartResultStateV2,
|
|
@@ -12,7 +12,6 @@ import type { SignInContinuationResultV2 } from "../result/SignInContinuationRes
|
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* State returned when a completed V2 flow can sign the user in.
|
|
15
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
16
15
|
*/
|
|
17
16
|
export class SignInContinuationStateV2 extends AuthFlowActionRequiredStateBase<SignInContinuationStateParametersV2> {
|
|
18
17
|
readonly stateType = "signInContinuation";
|
|
@@ -12,7 +12,6 @@ import type { AuthMethodSelectionRequiredStateV2 } from "../../../../core/auth_f
|
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* States returned when native auth V2 sign-up starts.
|
|
15
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
16
15
|
*/
|
|
17
16
|
export type SignUpStartResultStateV2 =
|
|
18
17
|
| CodeRequiredStateV2
|
|
@@ -23,6 +22,5 @@ export type SignUpStartResultStateV2 =
|
|
|
23
22
|
|
|
24
23
|
/**
|
|
25
24
|
* Result of starting native auth V2 sign-up.
|
|
26
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
27
25
|
*/
|
|
28
26
|
export type SignUpStartResultV2 = CustomAuthResultV2<SignUpStartResultStateV2>;
|
|
@@ -12,7 +12,6 @@ import type { AttributesRequiredStateV2 } from "../state/AttributesRequiredState
|
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* States returned after submitting sign-up attributes.
|
|
15
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
16
15
|
*/
|
|
17
16
|
export type SubmitAttributesResultStateV2 =
|
|
18
17
|
| AttributesRequiredStateV2
|
|
@@ -23,7 +22,6 @@ export type SubmitAttributesResultStateV2 =
|
|
|
23
22
|
|
|
24
23
|
/**
|
|
25
24
|
* Result of submitting sign-up attributes.
|
|
26
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
27
25
|
*/
|
|
28
26
|
export type SubmitAttributesResultV2 = CustomAuthResultV2<
|
|
29
27
|
SubmitAttributesResultStateV2,
|
|
@@ -13,7 +13,6 @@ import * as ArgumentValidator from "../../../../core/utils/ArgumentValidator.js"
|
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* State returned when sign-up requires profile or custom attributes.
|
|
16
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
17
16
|
*/
|
|
18
17
|
export class AttributesRequiredStateV2 extends AuthFlowActionRequiredStateBase<AttributesRequiredStateParametersV2> {
|
|
19
18
|
readonly stateType = "attributesRequired";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/** Diagnostics for asymmetric EAR crypto, request encoding, and response validation. */
|
|
7
|
+
export const enum AsymmetricEarSubErrors {
|
|
8
|
+
RequestInitializationFailed = "request_initialization_failed",
|
|
9
|
+
RequestEncodingFailed = "request_encoding_failed",
|
|
10
|
+
InvalidPrivateKey = "invalid_private_key",
|
|
11
|
+
PrivateKeyImportFailed = "private_key_import_failed",
|
|
12
|
+
InvalidPublicKeyCoordinates = "invalid_public_key_coordinates",
|
|
13
|
+
InvalidJweFormatOrHeader = "invalid_jwe_format_or_header",
|
|
14
|
+
ContentEncryptionKeyDerivationFailed = "content_encryption_key_derivation_failed",
|
|
15
|
+
JweDecryptionFailed = "jwe_decryption_failed",
|
|
16
|
+
RequestApvMismatch = "request_apv_mismatch",
|
|
17
|
+
InvalidDecryptedResponsePayload = "invalid_decrypted_response_payload",
|
|
18
|
+
}
|
|
@@ -69,5 +69,6 @@ export const tokenBindingKeyJwkThumbprintMismatch =
|
|
|
69
69
|
export const failedToBuildHeaders = "failed_to_build_headers";
|
|
70
70
|
export const failedToParseHeaders = "failed_to_parse_headers";
|
|
71
71
|
export const failedToDecryptEarResponse = "failed_to_decrypt_ear_response";
|
|
72
|
+
export const asymmetricEarKeyError = "asymmetric_ear_key_error";
|
|
72
73
|
export const timedOut = "timed_out";
|
|
73
74
|
export const emptyResponse = "empty_response";
|
|
@@ -22,6 +22,7 @@ import {
|
|
|
22
22
|
invokeAsync,
|
|
23
23
|
StringDict,
|
|
24
24
|
ITokenBindingKeyManager,
|
|
25
|
+
IDpopNonceProvider,
|
|
25
26
|
} from "@azure/msal-common/browser";
|
|
26
27
|
import * as BrowserPerformanceEvents from "../telemetry/BrowserPerformanceEvents.js";
|
|
27
28
|
import { BrowserConfiguration } from "../config/Configuration.js";
|
|
@@ -51,6 +52,7 @@ export abstract class BaseInteractionClient {
|
|
|
51
52
|
protected correlationId: string;
|
|
52
53
|
protected performanceClient: IPerformanceClient;
|
|
53
54
|
protected tokenBindingKeyManager: ITokenBindingKeyManager;
|
|
55
|
+
protected readonly dpopNonceProvider: IDpopNonceProvider;
|
|
54
56
|
|
|
55
57
|
constructor(
|
|
56
58
|
config: BrowserConfiguration,
|
|
@@ -62,7 +64,8 @@ export abstract class BaseInteractionClient {
|
|
|
62
64
|
performanceClient: IPerformanceClient,
|
|
63
65
|
correlationId: string,
|
|
64
66
|
platformAuthProvider?: IPlatformAuthHandler,
|
|
65
|
-
tokenBindingKeyManager?: ITokenBindingKeyManager
|
|
67
|
+
tokenBindingKeyManager?: ITokenBindingKeyManager,
|
|
68
|
+
dpopNonceProvider?: IDpopNonceProvider
|
|
66
69
|
) {
|
|
67
70
|
this.config = config;
|
|
68
71
|
this.browserStorage = storageImpl;
|
|
@@ -77,6 +80,7 @@ export abstract class BaseInteractionClient {
|
|
|
77
80
|
this.tokenBindingKeyManager =
|
|
78
81
|
tokenBindingKeyManager ||
|
|
79
82
|
new TokenBindingKeyManager(this.logger, this.performanceClient);
|
|
83
|
+
this.dpopNonceProvider = dpopNonceProvider ?? storageImpl;
|
|
80
84
|
}
|
|
81
85
|
|
|
82
86
|
abstract acquireToken(
|
|
@@ -256,6 +260,7 @@ export async function clearCacheOnLogout(
|
|
|
256
260
|
correlationId: string,
|
|
257
261
|
account?: AccountInfo | null
|
|
258
262
|
): Promise<void> {
|
|
263
|
+
browserStorage.clearDpopNonces();
|
|
259
264
|
if (account) {
|
|
260
265
|
// Clear given account.
|
|
261
266
|
try {
|
|
@@ -27,6 +27,7 @@ import {
|
|
|
27
27
|
PerformanceEvents,
|
|
28
28
|
PopTokenGenerator,
|
|
29
29
|
RequestParameterBuilder,
|
|
30
|
+
ResponseHandler,
|
|
30
31
|
ScopeSet,
|
|
31
32
|
ServerTelemetryManager,
|
|
32
33
|
SignedHttpRequestParameters,
|
|
@@ -158,7 +159,8 @@ export class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
158
159
|
performanceClient,
|
|
159
160
|
correlationId,
|
|
160
161
|
provider,
|
|
161
|
-
this.tokenBindingKeyManager
|
|
162
|
+
this.tokenBindingKeyManager,
|
|
163
|
+
browserStorage
|
|
162
164
|
);
|
|
163
165
|
|
|
164
166
|
const extensionName = this.platformAuthProvider.getExtensionName();
|
|
@@ -858,6 +860,13 @@ export class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
858
860
|
isL3DpopResponse ||
|
|
859
861
|
(this.isDpopBrokerRequest(request) &&
|
|
860
862
|
storeInCache?.accessToken === false);
|
|
863
|
+
if (
|
|
864
|
+
dpopBrokerOutcome === "L1" &&
|
|
865
|
+
!shouldRemoveGeneratedDpopKey &&
|
|
866
|
+
request.keyId
|
|
867
|
+
) {
|
|
868
|
+
ResponseHandler.setDpopKeyId(result, request.keyId);
|
|
869
|
+
}
|
|
861
870
|
if (shouldRemoveGeneratedDpopKey) {
|
|
862
871
|
await this.resetGeneratedDpopRequestKey(request);
|
|
863
872
|
}
|
|
@@ -1315,12 +1324,16 @@ export class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
1315
1324
|
? undefined
|
|
1316
1325
|
: this.config.auth.clientCapabilities;
|
|
1317
1326
|
|
|
1318
|
-
const { scopes, claims
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1327
|
+
const { scopes, claims } = request;
|
|
1328
|
+
const dpopNonce =
|
|
1329
|
+
request.authenticationScheme ===
|
|
1330
|
+
Constants.AuthenticationScheme.DPOP &&
|
|
1331
|
+
request.resourceRequestUri
|
|
1332
|
+
? this.browserStorage.getDpopNonce(
|
|
1333
|
+
request.resourceRequestUri,
|
|
1334
|
+
this.correlationId
|
|
1335
|
+
)
|
|
1336
|
+
: undefined;
|
|
1324
1337
|
const scopeSet = new ScopeSet(
|
|
1325
1338
|
[...(scopes || []), ...Constants.OIDC_DEFAULT_SCOPES],
|
|
1326
1339
|
this.correlationId
|
|
@@ -1873,12 +1886,19 @@ export class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
1873
1886
|
this.browserCrypto,
|
|
1874
1887
|
this.tokenBindingKeyManager
|
|
1875
1888
|
);
|
|
1889
|
+
const currentNonce = request.resourceRequestUri
|
|
1890
|
+
? this.browserStorage.getDpopNonce(
|
|
1891
|
+
request.resourceRequestUri,
|
|
1892
|
+
this.correlationId
|
|
1893
|
+
)
|
|
1894
|
+
: undefined;
|
|
1876
1895
|
return dpopProofGenerator.generateResourceProof(
|
|
1877
1896
|
{
|
|
1878
1897
|
htu: request.resourceRequestUri,
|
|
1879
1898
|
htm: request.resourceRequestMethod,
|
|
1880
1899
|
accessToken: response.access_token,
|
|
1881
|
-
nonce:
|
|
1900
|
+
nonce:
|
|
1901
|
+
currentNonce ?? request.extraParametersNoCache?.pop_nonce,
|
|
1882
1902
|
},
|
|
1883
1903
|
request.keyId as string,
|
|
1884
1904
|
this.correlationId
|