@azure/msal-browser 5.26.0 → 5.28.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 +2 -0
- package/dist/app/IPublicClientApplication.mjs +1 -1
- package/dist/app/PublicClientApplication.mjs +54 -14
- package/dist/app/PublicClientApplication.mjs.map +1 -1
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +9 -1
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +7 -6
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +4 -2
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthRequest.mjs +21 -7
- package/dist/broker/nativeBroker/PlatformAuthRequest.mjs.map +1 -1
- package/dist/cache/AccountManager.mjs +1 -1
- package/dist/cache/AsyncMemoryStorage.mjs +14 -1
- package/dist/cache/AsyncMemoryStorage.mjs.map +1 -1
- package/dist/cache/BrowserCacheManager.mjs +9 -2
- 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 +32 -4
- package/dist/config/Configuration.mjs.map +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +1 -1
- package/dist/controllers/StandardController.mjs +100 -11
- package/dist/controllers/StandardController.mjs.map +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 +14 -1
- package/dist/crypto/TokenBindingKeyManager.mjs.map +1 -1
- package/dist/custom_auth/CustomAuthConstants.mjs +1 -1
- package/dist/custom_auth/CustomAuthPublicClientApplication.mjs +1 -1
- package/dist/custom_auth/controller/CustomAuthStandardController.mjs +14 -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 +1 -1
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs +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 -1
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.mjs +68 -0
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs +3 -2
- 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 +87 -0
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.mjs +5 -3
- package/dist/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs +14 -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 -1
- package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs +4 -3
- package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.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 +246 -73
- 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 +10 -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 +10 -2
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs +118 -25
- 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 +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs +2 -2
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs.map +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 +2 -12
- 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 +2 -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 +17 -3
- package/dist/custom_auth/core/telemetry/FlowApiIdHelperV2.mjs.map +1 -1
- package/dist/custom_auth/core/telemetry/PublicApiId.mjs +9 -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 +3 -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/state/NewPasswordRequiredStateV2.mjs +32 -13
- package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs.map +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 -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/state/PasswordRequiredStateV2.mjs +14 -2
- package/dist/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs +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 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.mjs +9 -2
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.mjs.map +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 +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 +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs +504 -75
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/PopupClient.mjs +54 -20
- package/dist/interaction_client/PopupClient.mjs.map +1 -1
- package/dist/interaction_client/RedirectClient.mjs +30 -16
- 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 +44 -32
- package/dist/interaction_client/SilentIframeClient.mjs.map +1 -1
- package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
- package/dist/interaction_client/StandardInteractionClient.mjs +7 -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 +79 -19
- 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 +43 -25
- package/dist/protocol/Authorize.mjs.map +1 -1
- package/dist/redirect_bridge/index.mjs +1 -1
- package/dist/request/RequestHelpers.mjs +35 -11
- package/dist/request/RequestHelpers.mjs.map +1 -1
- package/dist/request/SilentRequestHelpers.mjs +6 -6
- 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 +3 -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 +7 -2
- package/dist/utils/BrowserUtils.mjs.map +1 -1
- package/dist/utils/Helpers.mjs +1 -1
- package/dist/utils/IframeMonitor.mjs +81 -0
- package/dist/utils/IframeMonitor.mjs.map +1 -0
- package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
- package/dist/utils/PopupMonitor.mjs +119 -0
- package/dist/utils/PopupMonitor.mjs.map +1 -0
- package/dist/utils/PopupOriginCheck.mjs +88 -0
- package/dist/utils/PopupOriginCheck.mjs.map +1 -0
- 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 +71 -11
- package/lib/custom-auth-path/msal-custom-auth.cjs +2085 -451
- package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
- package/lib/custom-auth-path/msal-custom-auth.js +2085 -451
- package/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
- package/lib/log-strings-mapping.json +39 -11
- package/lib/msal-browser.cjs +1461 -320
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +1461 -320
- 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 +1 -1
- package/package.json +2 -2
- package/src/app/PublicClientApplication.ts +108 -8
- package/src/broker/nativeBroker/PlatformAuthDOMHandler.ts +15 -0
- package/src/broker/nativeBroker/PlatformAuthExtensionHandler.ts +6 -21
- package/src/broker/nativeBroker/PlatformAuthProvider.ts +3 -1
- package/src/broker/nativeBroker/PlatformAuthRequest.ts +12 -8
- package/src/broker/nativeBroker/PlatformAuthResponse.ts +31 -0
- package/src/cache/AsyncMemoryStorage.ts +16 -0
- package/src/cache/BrowserCacheManager.ts +19 -1
- package/src/config/Configuration.ts +63 -6
- package/src/controllers/StandardController.ts +153 -14
- package/src/crypto/TokenBindingKeyManager.ts +21 -0
- package/src/custom_auth/controller/CustomAuthStandardController.ts +18 -0
- package/src/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.ts +15 -0
- package/src/custom_auth/core/auth_flow/v2/result/AuthMethodRegistrationChallengeResultV2.ts +23 -0
- package/src/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.ts +26 -0
- package/src/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.ts +1 -1
- package/src/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.ts +2 -0
- package/src/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.ts +94 -0
- package/src/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.ts +7 -2
- package/src/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.ts +132 -0
- package/src/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.ts +8 -2
- package/src/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.ts +18 -0
- package/src/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.ts +13 -0
- package/src/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.ts +8 -2
- package/src/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.ts +1 -0
- package/src/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.ts +445 -91
- package/src/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.ts +25 -0
- package/src/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.ts +34 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.ts +9 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.ts +262 -43
- package/src/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.ts +4 -7
- package/src/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.ts +21 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.ts +41 -2
- package/src/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.ts +44 -19
- package/src/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.ts +4 -6
- package/src/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.ts +6 -1
- package/src/custom_auth/core/telemetry/FlowApiIdHelperV2.ts +25 -1
- package/src/custom_auth/core/telemetry/PublicApiId.ts +6 -0
- package/src/custom_auth/index.ts +11 -0
- package/src/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.ts +6 -7
- package/src/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.ts +47 -15
- package/src/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.ts +2 -0
- package/src/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.ts +2 -0
- package/src/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.ts +18 -0
- package/src/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.ts +2 -0
- package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.ts +13 -0
- package/src/interaction_client/PlatformAuthInteractionClient.ts +851 -128
- package/src/interaction_client/PopupClient.ts +140 -83
- package/src/interaction_client/RedirectClient.ts +88 -35
- package/src/interaction_client/SilentIframeClient.ts +121 -95
- package/src/interaction_client/StandardInteractionClient.ts +6 -0
- package/src/packageMetadata.ts +1 -1
- package/src/protocol/Authorize.ts +80 -46
- package/src/request/RequestHelpers.ts +64 -11
- package/src/request/SilentRequestHelpers.ts +8 -9
- package/src/telemetry/BrowserPerformanceEvents.ts +1 -0
- package/src/utils/BrowserUtils.ts +8 -1
- package/src/utils/IframeMonitor.ts +98 -0
- package/src/utils/PopupMonitor.ts +158 -0
- package/src/utils/PopupOriginCheck.ts +94 -0
- package/types/app/PublicClientApplication.d.ts +6 -4
- package/types/app/PublicClientApplication.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthExtensionHandler.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthProvider.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthRequest.d.ts +6 -1
- package/types/broker/nativeBroker/PlatformAuthRequest.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthResponse.d.ts +21 -0
- package/types/broker/nativeBroker/PlatformAuthResponse.d.ts.map +1 -1
- package/types/cache/AsyncMemoryStorage.d.ts +5 -0
- package/types/cache/AsyncMemoryStorage.d.ts.map +1 -1
- package/types/cache/BrowserCacheManager.d.ts +4 -0
- package/types/cache/BrowserCacheManager.d.ts.map +1 -1
- package/types/config/Configuration.d.ts +16 -0
- package/types/config/Configuration.d.ts.map +1 -1
- package/types/controllers/StandardController.d.ts +5 -0
- package/types/controllers/StandardController.d.ts.map +1 -1
- package/types/crypto/TokenBindingKeyManager.d.ts +9 -0
- package/types/crypto/TokenBindingKeyManager.d.ts.map +1 -1
- package/types/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.d.ts +11 -0
- package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/result/AuthMethodRegistrationChallengeResultV2.d.ts +14 -0
- package/types/custom_auth/core/auth_flow/v2/result/AuthMethodRegistrationChallengeResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.d.ts +15 -0
- package/types/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts +1 -1
- package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts +2 -1
- 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 +22 -0
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.d.ts.map +1 -0
- 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 +28 -0
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.d.ts +3 -2
- package/types/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.d.ts.map +1 -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/CustomAuthStateParametersV2.d.ts +9 -0
- package/types/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.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 +12 -5
- package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts.map +1 -1
- package/types/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.d.ts +17 -0
- package/types/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.d.ts.map +1 -1
- package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts +18 -2
- 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/ApiClientConstantsV2.d.ts +8 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.d.ts +8 -2
- 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/ResponseHandlerV2.d.ts +3 -3
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts +12 -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 +29 -2
- 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 +30 -17
- 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 -1
- 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 +3 -2
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts.map +1 -1
- package/types/custom_auth/core/telemetry/FlowApiIdHelperV2.d.ts +6 -1
- package/types/custom_auth/core/telemetry/FlowApiIdHelperV2.d.ts.map +1 -1
- package/types/custom_auth/core/telemetry/PublicApiId.d.ts +6 -0
- package/types/custom_auth/core/telemetry/PublicApiId.d.ts.map +1 -1
- package/types/custom_auth/index.d.ts +5 -0
- package/types/custom_auth/index.d.ts.map +1 -1
- package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts +6 -8
- 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 +4 -4
- package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts +2 -1
- 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/result/SubmitPasswordResultV2.d.ts +2 -1
- package/types/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.d.ts.map +1 -1
- package/types/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts +2 -1
- 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/SignUpStateTransitionHandlerV2.d.ts.map +1 -1
- package/types/interaction_client/PlatformAuthInteractionClient.d.ts +106 -5
- package/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/types/interaction_client/PopupClient.d.ts +12 -0
- package/types/interaction_client/PopupClient.d.ts.map +1 -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/protocol/Authorize.d.ts +4 -4
- package/types/protocol/Authorize.d.ts.map +1 -1
- package/types/request/RequestHelpers.d.ts +21 -3
- package/types/request/RequestHelpers.d.ts.map +1 -1
- package/types/request/SilentRequestHelpers.d.ts.map +1 -1
- package/types/telemetry/BrowserPerformanceEvents.d.ts +1 -0
- package/types/telemetry/BrowserPerformanceEvents.d.ts.map +1 -1
- package/types/utils/BrowserUtils.d.ts +2 -1
- package/types/utils/BrowserUtils.d.ts.map +1 -1
- package/types/utils/IframeMonitor.d.ts +17 -0
- package/types/utils/IframeMonitor.d.ts.map +1 -0
- package/types/utils/PopupMonitor.d.ts +37 -0
- package/types/utils/PopupMonitor.d.ts.map +1 -0
- package/types/utils/PopupOriginCheck.d.ts +27 -0
- package/types/utils/PopupOriginCheck.d.ts.map +1 -0
|
@@ -22,6 +22,11 @@ export declare class PlatformAuthInteractionClient extends BaseInteractionClient
|
|
|
22
22
|
protected silentCacheClient: SilentCacheClient;
|
|
23
23
|
protected nativeStorageManager: BrowserCacheManager;
|
|
24
24
|
protected skus: string;
|
|
25
|
+
/**
|
|
26
|
+
* Storage location reported for MSAL-owned browser DPoP keys in reqCnf.
|
|
27
|
+
* This does not constrain the binding selected by the platform broker.
|
|
28
|
+
*/
|
|
29
|
+
private static readonly MSAL_DPOP_KEY_STORAGE_LOCATION;
|
|
25
30
|
constructor(config: BrowserConfiguration, browserStorage: BrowserCacheManager, browserCrypto: ICrypto, logger: Logger, eventHandler: EventHandler, navigationClient: INavigationClient, apiId: ApiId, performanceClient: IPerformanceClient, provider: IPlatformAuthHandler, accountId: string, nativeStorageImpl: BrowserCacheManager, correlationId: string, tokenBindingKeyManager?: ITokenBindingKeyManager);
|
|
26
31
|
/**
|
|
27
32
|
* Adds SKUs to request extra query parameters
|
|
@@ -51,6 +56,11 @@ export declare class PlatformAuthInteractionClient extends BaseInteractionClient
|
|
|
51
56
|
* @returns CommonSilentFlowRequest
|
|
52
57
|
*/
|
|
53
58
|
private createSilentCacheRequest;
|
|
59
|
+
/**
|
|
60
|
+
* Maps platform-broker token-binding state to silent-cache request fields.
|
|
61
|
+
* @param request
|
|
62
|
+
*/
|
|
63
|
+
private createSilentCacheTokenBindingParameters;
|
|
54
64
|
/**
|
|
55
65
|
* Fetches the tokens from the cache if un-expired
|
|
56
66
|
* @param nativeAccountId
|
|
@@ -118,7 +128,7 @@ export declare class PlatformAuthInteractionClient extends BaseInteractionClient
|
|
|
118
128
|
* cache the account entity in browser storage
|
|
119
129
|
* @param accountEntity
|
|
120
130
|
*/
|
|
121
|
-
cacheAccount(accountEntity: AccountEntity, kmsi: boolean): Promise<void>;
|
|
131
|
+
cacheAccount(accountEntity: AccountEntity, kmsi: boolean, clearExistingTokens?: boolean): Promise<void>;
|
|
122
132
|
/**
|
|
123
133
|
* Stores the access_token and id_token in inmemory storage
|
|
124
134
|
* @param response
|
|
@@ -129,7 +139,7 @@ export declare class PlatformAuthInteractionClient extends BaseInteractionClient
|
|
|
129
139
|
* @param tenantId
|
|
130
140
|
* @param reqTimestamp
|
|
131
141
|
*/
|
|
132
|
-
cacheNativeTokens(response: PlatformAuthResponse, request: PlatformAuthRequest, homeAccountIdentifier: string, idTokenClaims: TokenClaims, tenantId: string, reqTimestamp: number, environment: string, storeInCache?: StoreInCache): Promise<void>;
|
|
142
|
+
cacheNativeTokens(response: PlatformAuthResponse, request: PlatformAuthRequest, homeAccountIdentifier: string, idTokenClaims: TokenClaims, tenantId: string, reqTimestamp: number, environment: string, storeInCache?: StoreInCache, dpopBrokerOutcome?: "none" | "L1" | "L3"): Promise<void>;
|
|
133
143
|
getExpiresInValue(tokenType: string, expiresIn: string | number | undefined): number;
|
|
134
144
|
protected addTelemetryFromNativeResponse(matsResponse?: string): MATS | null;
|
|
135
145
|
/**
|
|
@@ -149,12 +159,103 @@ export declare class PlatformAuthInteractionClient extends BaseInteractionClient
|
|
|
149
159
|
* @param request
|
|
150
160
|
*/
|
|
151
161
|
protected initializePlatformRequest(request: PopupRequest | SsoSilentRequest): Promise<PlatformAuthRequest>;
|
|
162
|
+
/**
|
|
163
|
+
* Creates and validates the broker-specific parameters for a DPoP request.
|
|
164
|
+
* @param request - Developer-provided token request.
|
|
165
|
+
* @returns Broker parameters for a DPoP token and resource proof.
|
|
166
|
+
*/
|
|
167
|
+
private createDpopRequestParameters;
|
|
168
|
+
/**
|
|
169
|
+
* Provisions the local key and confirmation data for a DPoP broker request.
|
|
170
|
+
* @param request - Broker request to prepare.
|
|
171
|
+
* @param reuseExistingKey - Whether a complete existing key binding may be reused.
|
|
172
|
+
*/
|
|
173
|
+
private prepareDpopBrokerRequest;
|
|
174
|
+
/**
|
|
175
|
+
* Creates the confirmation claim for an MSAL-owned broker DPoP key.
|
|
176
|
+
* @param keyId - Browser-managed DPoP key identifier.
|
|
177
|
+
* @returns Encoded broker confirmation claim.
|
|
178
|
+
*/
|
|
179
|
+
private createDpopBrokerReqCnf;
|
|
180
|
+
/**
|
|
181
|
+
* Ensures an owned DPoP key can survive redirect navigation before the
|
|
182
|
+
* request metadata is persisted for phase two.
|
|
183
|
+
*/
|
|
184
|
+
private ensureRedirectDpopKeyIsPersisted;
|
|
185
|
+
/**
|
|
186
|
+
* Validates and normalizes the DPoP binding outcome returned by the broker.
|
|
187
|
+
* @param response - Broker response to validate.
|
|
188
|
+
* @param request - Broker request associated with the response.
|
|
189
|
+
* @returns The validated DPoP binding level, or `none` for non-DPoP requests.
|
|
190
|
+
*/
|
|
191
|
+
private validateDpopBrokerOutcome;
|
|
192
|
+
/**
|
|
193
|
+
* Normalizes the canonical DPoP fields returned under response properties.
|
|
194
|
+
*/
|
|
195
|
+
private normalizeDpopBrokerResponse;
|
|
196
|
+
/**
|
|
197
|
+
* Validates normalized fields shared by L1 and L3 broker DPoP responses.
|
|
198
|
+
*/
|
|
199
|
+
private validateNormalizedDpopBrokerResponse;
|
|
200
|
+
/**
|
|
201
|
+
* Validates a broker-returned L3 DPoP proof outcome.
|
|
202
|
+
*/
|
|
203
|
+
private validateDpopBrokerL3Outcome;
|
|
204
|
+
/**
|
|
205
|
+
* Validates an L1 DPoP outcome that MSAL will sign with its local key.
|
|
206
|
+
*/
|
|
207
|
+
private validateDpopBrokerL1Outcome;
|
|
208
|
+
/**
|
|
209
|
+
* Emits bounded failure telemetry and rejects an invalid DPoP response.
|
|
210
|
+
*/
|
|
211
|
+
private throwInvalidDpopResponse;
|
|
212
|
+
/**
|
|
213
|
+
* Returns the broker proof or signs an L1 resource proof with the local key.
|
|
214
|
+
* @param response - Broker response containing the access token and optional proof.
|
|
215
|
+
* @param request - Broker request containing the proof context and local key.
|
|
216
|
+
* @returns The resource proof for the broker access token.
|
|
217
|
+
*/
|
|
218
|
+
private generateDpopProof;
|
|
219
|
+
/**
|
|
220
|
+
* Removes a generated DPoP request key and clears its request metadata.
|
|
221
|
+
* @param request - Broker request whose generated key should be removed.
|
|
222
|
+
*/
|
|
223
|
+
private resetGeneratedDpopRequestKey;
|
|
224
|
+
/**
|
|
225
|
+
* Attempts to remove a generated DPoP request key without replacing an
|
|
226
|
+
* existing operation error with a cleanup failure.
|
|
227
|
+
* @param request - Broker request whose generated key should be removed.
|
|
228
|
+
*/
|
|
229
|
+
private resetGeneratedDpopRequestKeyBestEffort;
|
|
230
|
+
/**
|
|
231
|
+
* Records that a DPoP request is about to be dispatched to the platform broker.
|
|
232
|
+
* @param request - Broker request about to cross the provider boundary.
|
|
233
|
+
*/
|
|
234
|
+
private addDpopBrokerAttemptTelemetry;
|
|
235
|
+
/**
|
|
236
|
+
* Determines whether a request uses the DPoP broker protocol.
|
|
237
|
+
* @param request - Broker request to inspect.
|
|
238
|
+
* @returns Whether the request uses a DPoP token type.
|
|
239
|
+
*/
|
|
240
|
+
private isDpopBrokerRequest;
|
|
241
|
+
/**
|
|
242
|
+
* Determines whether a token type represents a DPoP broker request.
|
|
243
|
+
* @param tokenType - Token type to inspect.
|
|
244
|
+
* @returns Whether the token type is a supported DPoP broker token type.
|
|
245
|
+
*/
|
|
246
|
+
private isDpopBrokerTokenType;
|
|
247
|
+
/**
|
|
248
|
+
* Removes a DPoP key while reporting cleanup failures.
|
|
249
|
+
* @param keyId - Identifier of the DPoP key to remove.
|
|
250
|
+
* @returns Whether the key was removed successfully.
|
|
251
|
+
*/
|
|
252
|
+
private removeDpopKey;
|
|
152
253
|
private getCanonicalAuthority;
|
|
153
254
|
private getPrompt;
|
|
154
255
|
/**
|
|
155
|
-
* Handles extra broker request parameters
|
|
156
|
-
* @param request
|
|
157
|
-
* @
|
|
256
|
+
* Handles extra broker request parameters.
|
|
257
|
+
* @param request - Platform broker request.
|
|
258
|
+
* @param embeddedClientId - Embedded application client identifier.
|
|
158
259
|
*/
|
|
159
260
|
private handleExtraBrokerParams;
|
|
160
261
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlatformAuthInteractionClient.d.ts","sourceRoot":"","sources":["../../src/interaction_client/PlatformAuthInteractionClient.ts"],"names":[],"mappings":"AAKA,OAAO,
|
|
1
|
+
{"version":3,"file":"PlatformAuthInteractionClient.d.ts","sourceRoot":"","sources":["../../src/interaction_client/PlatformAuthInteractionClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,aAAa,EAab,OAAO,EACP,kBAAkB,EAElB,0BAA0B,EAC1B,MAAM,EAKN,QAAQ,EAGR,YAAY,EAEZ,WAAW,EACX,uBAAuB,EAS1B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AACtF,OAAO,EAIH,mBAAmB,EAEtB,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAGH,IAAI,EAGJ,oBAAoB,EACvB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAYlE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC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,CAAC,yBAAyB;IAyDjC;;OAEG;IACH,OAAO,CAAC,2BAA2B;IAoCnC;;OAEG;IACH,OAAO,CAAC,oCAAoC;IAsB5C;;OAEG;IACH,OAAO,CAAC,2BAA2B;IA2CnC;;OAEG;IACH,OAAO,CAAC,2BAA2B;IAqDnC;;OAEG;IACH,OAAO,CAAC,wBAAwB;IAkBhC;;;;;OAKG;YACW,iBAAiB;IAyB/B;;;OAGG;YACW,4BAA4B;IAkD1C;;;;OAIG;YACW,sCAAsC;IAoBpD;;;OAGG;IACH,OAAO,CAAC,6BAA6B;IAarC;;;;OAIG;IACH,OAAO,CAAC,mBAAmB;IAI3B;;;;OAIG;IACH,OAAO,CAAC,qBAAqB;IAS7B;;;;OAIG;YACW,aAAa;YAgBb,qBAAqB;IA+BnC,OAAO,CAAC,SAAS;IA6CjB;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;CAuDlC"}
|
|
@@ -115,6 +115,18 @@ export declare class PopupClient extends StandardInteractionClient {
|
|
|
115
115
|
* Decodes the per-request library-state id from the encoded request state.
|
|
116
116
|
*/
|
|
117
117
|
private getRelayStateId;
|
|
118
|
+
/**
|
|
119
|
+
* Asserts `pocd=1` for the relay flow. Direct popups also require the
|
|
120
|
+
* environment of a delegated opening window to pass the origin check.
|
|
121
|
+
*
|
|
122
|
+
* With a relay the IdP window is a grandchild popup, which an untrusted
|
|
123
|
+
* ancestor cannot reach by name — so the topology satisfies the check by
|
|
124
|
+
* construction. The current window is framed and would otherwise compute
|
|
125
|
+
* `0`. Without a delegated parent, the standard app check remains unchanged.
|
|
126
|
+
*
|
|
127
|
+
* @param popupWindowParent Window that opens the popup.
|
|
128
|
+
*/
|
|
129
|
+
private getPopupOriginCheckDone;
|
|
118
130
|
/**
|
|
119
131
|
* Opens the interactive popup for a POST-form /authorize request. Shared by
|
|
120
132
|
* the auth-code POST and EAR flows, which are identical apart from the form
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopupClient.d.ts","sourceRoot":"","sources":["../../src/interaction_client/PopupClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,uBAAuB,EACvB,uBAAuB,EAGvB,kBAAkB,EAClB,MAAM,EACN,OAAO,EAMP,SAAS,EACT,6BAA6B,EAG7B,uBAAuB,EAC1B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEH,yBAAyB,EAC5B,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"PopupClient.d.ts","sourceRoot":"","sources":["../../src/interaction_client/PopupClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,uBAAuB,EACvB,uBAAuB,EAGvB,kBAAkB,EAClB,MAAM,EACN,OAAO,EAMP,SAAS,EACT,6BAA6B,EAG7B,uBAAuB,EAC1B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEH,yBAAyB,EAC5B,MAAM,gCAAgC,CAAC;AAaxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAO9E,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAK1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAE5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAM3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AAOtF;;;;;;GAMG;AACH,MAAM,MAAM,sBAAsB,GAAG,CACjC,OAAO,EAAE,6BAA6B,GAAG,uBAAuB,EAChE,WAAW,EAAE,MAAM,EACnB,iBAAiB,EAAE,MAAM,KACxB,OAAO,CAAC,MAAM,CAAC,CAAC;AAErB,MAAM,MAAM,WAAW,GAAG;IACt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ient.d.ts","sourceRoot":"","sources":["../../src/interaction_client/RedirectClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAIH,sBAAsB,EACtB,iBAAiB,EACjB,OAAO,EACP,MAAM,EACN,kBAAkB,EAMlB,0BAA0B,EAC1B,6BAA6B,EAE7B,uBAAuB,EAC1B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEH,yBAAyB,EAC5B,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"RedirectClient.d.ts","sourceRoot":"","sources":["../../src/interaction_client/RedirectClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAIH,sBAAsB,EACtB,iBAAiB,EACjB,OAAO,EACP,MAAM,EACN,kBAAkB,EAMlB,0BAA0B,EAC1B,6BAA6B,EAE7B,uBAAuB,EAC1B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEH,yBAAyB,EAC5B,MAAM,gCAAgC,CAAC;AAexC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAOpE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAEvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAM3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AAMtF,OAAO,EAAE,4BAA4B,EAAE,MAAM,4CAA4C,CAAC;AAkB1F,qBAAa,cAAe,SAAQ,yBAAyB;IACzD,SAAS,CAAC,aAAa,EAAE,mBAAmB,CAAC;gBAGzC,MAAM,EAAE,oBAAoB,EAC5B,WAAW,EAAE,mBAAmB,EAChC,aAAa,EAAE,OAAO,EACtB,MAAM,EAAE,MAAM,E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CAAC,oBAAoB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM;CAepE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SilentIframeClient.d.ts","sourceRoot":"","sources":["../../src/interaction_client/SilentIframeClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,OAAO,EACP,MAAM,EAEN,uBAAuB,EAEvB,kBAAkB,EAIlB,6BAA6B,EAG7B,uBAAuB,EAC1B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEH,yBAAyB,EAC5B,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"SilentIframeClient.d.ts","sourceRoot":"","sources":["../../src/interaction_client/SilentIframeClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,OAAO,EACP,MAAM,EAEN,uBAAuB,EAEvB,kBAAkB,EAIlB,6BAA6B,EAG7B,uBAAuB,EAC1B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEH,yBAAyB,EAC5B,MAAM,gCAAgC,CAAC;AAMxC,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAKvE,OAAO,EAEH,KAAK,EAER,MAAM,8BAA8B,CAAC;AAQtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAQ3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AAMtF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAErE;;;;;;GAMG;AACH,MAAM,MAAM,oBAAoB,GAAG,oBAAoB,CAAC;AAExD;;;;;;GAMG;AACH,MAAM,MAAM,uBAAuB,GA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,EACzB,OAAO,EAAE,oBAAoB,GAC9B,OAAO,CAAC,MAAM,CAAC;CAYrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StandardInteractionClient.d.ts","sourceRoot":"","sources":["../../src/interaction_client/StandardInteractionClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,sBAAsB,EACtB,uBAAuB,EACvB,mBAAmB,EAEnB,uBAAuB,EAGvB,WAAW,EACX,iBAAiB,EAGjB,UAAU,EACV,6BAA6B,EAC7B,OAAO,EACP,MAAM,EACN,kBAAkB,EAClB,SAAS,EACZ,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACH,qBAAqB,EAGxB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAEH,eAAe,EAClB,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAEpE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAElE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"StandardInteractionClient.d.ts","sourceRoot":"","sources":["../../src/interaction_client/StandardInteractionClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,sBAAsB,EACtB,uBAAuB,EACvB,mBAAmB,EAEnB,uBAAuB,EAGvB,WAAW,EACX,iBAAiB,EAGjB,UAAU,EACV,6BAA6B,EAC7B,OAAO,EACP,MAAM,EACN,kBAAkB,EAClB,SAAS,EACZ,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACH,qBAAqB,EAGxB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAEH,eAAe,EAClB,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAAE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,OAAO,EAAE,eAAe,GAAG,YAAY,GAAG,gBAAgB,EAC1D,eAAe,EAAE,eAAe,EAChC,MAAM,EAAE,oBAAoB,EAC5B,aAAa,EAAE,OAAO,EACtB,cAAc,EAAE,mBAAmB,EACnC,MAAM,EAAE,MAAM,EACd,iBAAiB,EAAE,kBAAkB,EACrC,aAAa,EAAE,MAAM,GACtB,OAAO,CAAC,6BAA6B,CAAC,CA0ExC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Authority, CommonAuthorizationUrlRequest, IPerformanceClient, Logger, AuthorizationCodeClient, AuthorizeResponse } from "@azure/msal-common/browser";
|
|
1
|
+
import { Authority, CommonAuthorizationUrlRequest, IPerformanceClient, Logger, AuthorizationCodeClient, AuthorizeResponse, ITokenBindingKeyManager } from "@azure/msal-common/browser";
|
|
2
2
|
import { BrowserConfiguration } from "../config/Configuration.js";
|
|
3
3
|
import { ApiId } from "../utils/BrowserConstants.js";
|
|
4
4
|
import { AuthenticationResult } from "../response/AuthenticationResult.js";
|
|
@@ -94,7 +94,7 @@ export declare function createForm(frame: Document, action: string, fields: Reco
|
|
|
94
94
|
* @param nativeMessageHandler
|
|
95
95
|
* @returns
|
|
96
96
|
*/
|
|
97
|
-
export declare function handleResponsePlatformBroker(request: CommonAuthorizationUrlRequest, accountId: string, apiId: ApiId, config: BrowserConfiguration, browserStorage: BrowserCacheManager, nativeStorage: BrowserCacheManager, eventHandler: EventHandler, logger: Logger, performanceClient: IPerformanceClient, platformAuthProvider?: IPlatformAuthHandler): Promise<AuthenticationResult>;
|
|
97
|
+
export declare function handleResponsePlatformBroker(request: CommonAuthorizationUrlRequest, accountId: string, apiId: ApiId, config: BrowserConfiguration, browserStorage: BrowserCacheManager, nativeStorage: BrowserCacheManager, eventHandler: EventHandler, logger: Logger, performanceClient: IPerformanceClient, platformAuthProvider?: IPlatformAuthHandler, tokenBindingKeyManager?: ITokenBindingKeyManager): Promise<AuthenticationResult>;
|
|
98
98
|
/**
|
|
99
99
|
* Response handler when server returns code on the /authorize request
|
|
100
100
|
* @param request
|
|
@@ -106,7 +106,7 @@ export declare function handleResponsePlatformBroker(request: CommonAuthorizatio
|
|
|
106
106
|
* @param performanceClient
|
|
107
107
|
* @returns
|
|
108
108
|
*/
|
|
109
|
-
export declare function handleResponseCode(request: CommonAuthorizationUrlRequest, response: AuthorizeResponse, codeVerifier: string, apiId: ApiId, config: BrowserConfiguration, authClient: AuthorizationCodeClient, browserStorage: BrowserCacheManager, nativeStorage: BrowserCacheManager, eventHandler: EventHandler, logger: Logger, performanceClient: IPerformanceClient, platformAuthProvider?: IPlatformAuthHandler): Promise<AuthenticationResult>;
|
|
109
|
+
export declare function handleResponseCode(request: CommonAuthorizationUrlRequest, response: AuthorizeResponse, codeVerifier: string, apiId: ApiId, config: BrowserConfiguration, authClient: AuthorizationCodeClient, browserStorage: BrowserCacheManager, nativeStorage: BrowserCacheManager, eventHandler: EventHandler, logger: Logger, performanceClient: IPerformanceClient, platformAuthProvider?: IPlatformAuthHandler, tokenBindingKeyManager?: ITokenBindingKeyManager): Promise<AuthenticationResult>;
|
|
110
110
|
/**
|
|
111
111
|
* Response handler when server returns ear_jwe on the /authorize request
|
|
112
112
|
* @param request
|
|
@@ -122,6 +122,6 @@ export declare function handleResponseCode(request: CommonAuthorizationUrlReques
|
|
|
122
122
|
* @param nativeMessageHandler
|
|
123
123
|
* @returns
|
|
124
124
|
*/
|
|
125
|
-
export declare function handleResponseEAR(request: CommonAuthorizationUrlRequest, response: AuthorizeResponse, apiId: ApiId, config: BrowserConfiguration, authority: Authority, browserStorage: BrowserCacheManager, nativeStorage: BrowserCacheManager, eventHandler: EventHandler, logger: Logger, performanceClient: IPerformanceClient, platformAuthProvider?: IPlatformAuthHandler): Promise<AuthenticationResult>;
|
|
125
|
+
export declare function handleResponseEAR(request: CommonAuthorizationUrlRequest, response: AuthorizeResponse, apiId: ApiId, config: BrowserConfiguration, authority: Authority, browserStorage: BrowserCacheManager, nativeStorage: BrowserCacheManager, eventHandler: EventHandler, logger: Logger, performanceClient: IPerformanceClient, platformAuthProvider?: IPlatformAuthHandler, tokenBindingKeyManager?: ITokenBindingKeyManager): Promise<AuthenticationResult>;
|
|
126
126
|
export {};
|
|
127
127
|
//# sourceMappingURL=Authorize.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Authorize.d.ts","sourceRoot":"","sources":["../../src/protocol/Authorize.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,SAAS,EAGT,6BAA6B,EAG7B,kBAAkB,EAClB,MAAM,EAKN,uBAAuB,EAGvB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"Authorize.d.ts","sourceRoot":"","sources":["../../src/protocol/Authorize.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,SAAS,EAGT,6BAA6B,EAG7B,kBAAkB,EAClB,MAAM,EAKN,uBAAuB,EAGvB,iBAAiB,EAOjB,uBAAuB,EAC1B,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAElE,OAAO,EAAE,KAAK,EAAoB,MAAM,8BAA8B,CAAC;AAOvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAE3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAEtE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AAItF;;;;GAIG;AACH,KAAK,UAAU,GAAG;IACd,6BAA6B;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,oDAAoD;IACpD,KAAK,EAAE,MAAM,CAAC;IACd,wDAAwD;IACxD,QAAQ,EAAE,MAAM,CAAC;IACjB,iEAAiE;IACjE,aAAa,EAAE,MAAM,CAAC;IACtB,iDAAiD;IACjD,kBAAkB,EAAE,MAAM,CAAC;CAC9B,CAAC;AAOF;;;;;;;;;;;;;GAaG;AACH,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EAAE,mBAAmB,EACnC,aAAa,EAAE,mBAAmB,EAClC,YAAY,EAAE,YAAY,EAC1B,MAAM,EAAE,MAAM,EACd,iBAAiB,EAAE,kBAAkB,EACrC,oBAAoB,CAAC,EAAE,oBAAoB,EAC3C,sBAAsB,GAAE,uBAGvB,GACF,OAAO,CAAC,oBAAoB,CAAC,CA4G/B"}
|
|
@@ -5,14 +5,32 @@ import { PopupRequest } from "./PopupRequest.js";
|
|
|
5
5
|
import { RedirectRequest } from "./RedirectRequest.js";
|
|
6
6
|
/**
|
|
7
7
|
* Resolves the token-binding parameters needed before building authorize or token requests.
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
8
|
+
* DPoP requests provision a browser key for token endpoint redemption. Platform broker
|
|
9
|
+
* authorization requests retain the key for auth-code fallback but suppress dpop_jkt on
|
|
10
|
+
* /authorize. Platform broker PoP requests use a reqCnf confirmation claim.
|
|
11
11
|
*/
|
|
12
12
|
export declare function getTokenBindingRequestParams(request: Partial<BaseAuthRequest> & {
|
|
13
13
|
correlationId: string;
|
|
14
14
|
platformBroker?: boolean;
|
|
15
15
|
}, tokenBindingKeyManager: ITokenBindingKeyManager, logger: Logger, performanceClient: IPerformanceClient): Promise<Pick<CommonAuthorizationUrlRequest, "dpopJkt" | "reqCnf">>;
|
|
16
|
+
/**
|
|
17
|
+
* Removes a DPoP key that was provisioned for an authorization attempt which
|
|
18
|
+
* did not complete. Cleanup failures are recorded without replacing the
|
|
19
|
+
* original authorization error.
|
|
20
|
+
*/
|
|
21
|
+
export declare function removeTokenBindingKeyOnFailure(request: Partial<CommonAuthorizationUrlRequest> & {
|
|
22
|
+
correlationId: string;
|
|
23
|
+
}, tokenBindingKeyManager: ITokenBindingKeyManager, logger: Logger, performanceClient: IPerformanceClient): Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* Returns whether an MSAL-owned DPoP key is available in persistent storage
|
|
26
|
+
* before a redirect navigation. Custom managers without a persistence probe
|
|
27
|
+
* retain their existing behavior.
|
|
28
|
+
*/
|
|
29
|
+
export declare function isTokenBindingKeyPersistedForRedirect(request: {
|
|
30
|
+
correlationId: string;
|
|
31
|
+
dpopJkt?: string;
|
|
32
|
+
keyId?: string;
|
|
33
|
+
}, tokenBindingKeyManager: ITokenBindingKeyManager): Promise<boolean>;
|
|
16
34
|
/**
|
|
17
35
|
* Initializer function for all request APIs
|
|
18
36
|
* @param request
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestHelpers.d.ts","sourceRoot":"","sources":["../../src/request/RequestHelpers.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,WAAW,EACX,SAAS,EACT,eAAe,EAEf,6BAA6B,EAC7B,uBAAuB,EACvB,kBAAkB,EAClB,uBAAuB,EACvB,MAAM,EACN,YAAY,EAMf,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AA2CvD;;;;;GAKG;AACH,wBAAsB,4BAA4B,CAC9C,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B,EACD,sBAAsB,EAAE,uBAAuB,EAC/C,MAAM,EAAE,MAAM,EACd,iBAAiB,EAAE,kBAAkB,GACtC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE,SAAS,GAAG,QAAQ,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"RequestHelpers.d.ts","sourceRoot":"","sources":["../../src/request/RequestHelpers.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,WAAW,EACX,SAAS,EACT,eAAe,EAEf,6BAA6B,EAC7B,uBAAuB,EACvB,kBAAkB,EAClB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E,kBAAkB,EACrC,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,MAAM,GACtB,OAAO,CAAC,eAAe,CAAC,CAgD1B;AAED,wBAAsB,uBAAuB,CACzC,OAAO,EAAE,aAAa,GAAG;IAAE,aAAa,EAAE,MAAM,CAAA;CAAE,EAClD,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,oBAAoB,EAC5B,iBAAiB,EAAE,kBAAkB,EACrC,MAAM,EAAE,MAAM,GACf,OAAO,CAAC,uBAAuB,CAAC,CAclC;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACjC,kBAAkB,EAAE,eAAe,GAAG,YAAY,GAAG,eAAe,EACpE,YAAY,EAAE,YAAY,GAC3B,SAAS,CAAC,UAAU,CAoBtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SilentRequestHelpers.d.ts","sourceRoot":"","sources":["../../src/request/SilentRequestHelpers.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACR,WAAW,EACX,kBAAkB,EAClB,MAAM,EAET,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;
|
|
1
|
+
{"version":3,"file":"SilentRequestHelpers.d.ts","sourceRoot":"","sources":["../../src/request/SilentRequestHelpers.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACR,WAAW,EACX,kBAAkB,EAClB,MAAM,EAET,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AAE3F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAEvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGxD;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG;IACxC,OAAO,EAAE,aAAa,CAAC;IACvB,OAAO,EAAE,WAAW,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,oBAAoB,CAAC;CAChC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,aAAa,CAAC;IACvB,OAAO,EAAE,WAAW,CAAC;CACxB,CAAC;AAQF;;GAEG;AACH,wBAAgB,+BAA+B,CAC3C,KAAK,EAAE,6BAA6B,EACpC,oBAAoB,EAAE,oBAAoB,GAAG,SAAS,EACtD,MAAM,EAAE,MAAM,EACd,iBAAiB,EAAE,kBAAkB,GACtC,qBAAqB,CAgBvB;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,EACpC,OAAO,EACP,OAAO,EACP,aAAa,EACb,MAAM,GACT,EAAE,6BAA6B,GAAG,qBAAqB,CAyBvD;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,EACzC,OAAO,EACP,OAAO,EACP,MAAM,GACT,EAAE,6BAA6B,GAAG,qBAAqB,CAWvD"}
|
|
@@ -121,6 +121,7 @@ export declare const PlatformAuthInteractionClientInitializeRequest = "platformA
|
|
|
121
121
|
export declare const PlatformAuthHandleNativeResponse = "platformAuthHandleNativeResponse";
|
|
122
122
|
export declare const PlatformAuthCacheAccount = "platformAuthCacheAccount";
|
|
123
123
|
export declare const PlatformAuthCacheNativeTokens = "platformAuthCacheNativeTokens";
|
|
124
|
+
export declare const PlatformAuthDpopKeyCleanup = "platformAuthDpopKeyCleanup";
|
|
124
125
|
export declare const RemoveHiddenIframe = "removeHiddenIframe";
|
|
125
126
|
export declare const ImportExistingCache = "importExistingCache";
|
|
126
127
|
export declare const SetUserData = "setUserData";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BrowserPerformanceEvents.d.ts","sourceRoot":"","sources":["../../src/telemetry/BrowserPerformanceEvents.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAE7D;;;GAGG;AACH,eAAO,MAAM,0BAA0B,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AAC;AAC3C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAC/C,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AAEvD,eAAO,MAAM,WAAW,gBAAgB,CAAC;AACzC,eAAO,MAAM,WAAW,gBAAgB,CAAC;AACzC,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,yBAAyB,8BAA8B,CAAC"}
|
|
@@ -28,7 +28,8 @@ export declare function parseAuthResponseFromUrl(): {
|
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
30
|
/**
|
|
31
|
-
* Clears
|
|
31
|
+
* Clears a recognized authentication response fragment, preserving the query string.
|
|
32
|
+
* Assigns an empty hash, then removes the trailing # when history updates are available.
|
|
32
33
|
*/
|
|
33
34
|
export declare function clearHash(contentWindow: Window): void;
|
|
34
35
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BrowserUtils.d.ts","sourceRoot":"","sources":["../../src/utils/BrowserUtils.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,MAAM,EACN,WAAW,EAEX,uBAAuB,EACvB,kBAAkB,EAElB,MAAM,EAET,MAAM,4BAA4B,CAAC;AAapC,OAAO,EACH,oBAAoB,EACpB,0BAA0B,EAC7B,MAAM,4BAA4B,CAAC;AAGpC;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,wBAAwB,IAAI;IACxC,MAAM,EAAE,eAAe,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAi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
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Logger } from "@azure/msal-common/browser";
|
|
2
|
+
export declare const IFRAME_POLL_INTERVAL_MS = 50;
|
|
3
|
+
export declare const DEFAULT_IFRAME_TIMEOUT_MS = 10000;
|
|
4
|
+
/**
|
|
5
|
+
* Monitors an iframe content window until it loads a URL with a known hash, or hits a specified timeout.
|
|
6
|
+
*
|
|
7
|
+
* @param iframe - The hidden iframe to monitor.
|
|
8
|
+
* @param timeout - Maximum time (ms) to wait for navigation before rejecting with
|
|
9
|
+
* `monitor_window_timeout`.
|
|
10
|
+
* @param logger - Logger instance.
|
|
11
|
+
* @param correlationId
|
|
12
|
+
* @param responseMode - `"query"` or `"fragment"` — determines whether to read
|
|
13
|
+
* `location.search` or `location.hash`. Any value other than `"query"` is
|
|
14
|
+
* treated as fragment.
|
|
15
|
+
*/
|
|
16
|
+
export declare function monitorIframeForHash(iframe: HTMLIFrameElement, timeout: number, logger: Logger, correlationId: string, responseMode: string): Promise<string>;
|
|
17
|
+
//# sourceMappingURL=IframeMonitor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IframeMonitor.d.ts","sourceRoot":"","sources":["../../src/utils/IframeMonitor.ts"],"names":[],"mappings":"AAKA,OAAO,EAAwB,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAI1E,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAC1C,eAAO,MAAM,yBAAyB,QAAQ,CAAC;AAE/C;;;;;;;;;;;GAWG;AACH,wBAAsB,oBAAoB,CACtC,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,MAAM,GACrB,OAAO,CAAC,MAAM,CAAC,CAmEjB"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Logger } from "@azure/msal-common/browser";
|
|
2
|
+
export declare const POPUP_POLL_INTERVAL_MS = 30;
|
|
3
|
+
/**
|
|
4
|
+
* Cancels legacy popup polling when an interaction is superseded.
|
|
5
|
+
*
|
|
6
|
+
* @internal
|
|
7
|
+
* @param logger Logger for the interaction.
|
|
8
|
+
*/
|
|
9
|
+
export declare function cancelPendingPopupPollingResponse(logger: Logger): void;
|
|
10
|
+
/**
|
|
11
|
+
* Monitors a popup window for a URL change to the same origin as the parent application.
|
|
12
|
+
* Polls the popup at a specified interval until it is redirected back to the application,
|
|
13
|
+
* closed by the user, or a navigation to a same-origin URL is detected. Once a same-origin
|
|
14
|
+
* URL is detected, extracts the response string (query or hash) and resolves the promise.
|
|
15
|
+
*
|
|
16
|
+
* @param popupWindow - The popup window to monitor for navigation.
|
|
17
|
+
* @param popupWindowParent - The parent window that opened the popup.
|
|
18
|
+
* @param responseMode - Response mode (`"query"` | `"fragment"`) determines whether
|
|
19
|
+
* to read `location.search` or `location.hash` from the popup once on the same
|
|
20
|
+
* origin. Any value other than `"query"` is treated as fragment.
|
|
21
|
+
* @param logger - Logger instance.
|
|
22
|
+
* @param unloadWindow - Event handler to remove from the parent window on cleanup.
|
|
23
|
+
* @param correlationId
|
|
24
|
+
*/
|
|
25
|
+
export declare function monitorPopupForHash(popupWindow: Window, popupWindowParent: Window, responseMode: string, logger: Logger, unloadWindow: (e: Event) => void, correlationId: string): Promise<string>;
|
|
26
|
+
/**
|
|
27
|
+
* Performs cleanup operations after popup authentication.
|
|
28
|
+
* Strips auth-response params (code/state) from the popup URL while it is still
|
|
29
|
+
* open, closes the popup window, and removes the 'beforeunload' event listener
|
|
30
|
+
* from the parent window.
|
|
31
|
+
*
|
|
32
|
+
* @param popupWindow - The popup window to be closed.
|
|
33
|
+
* @param popupWindowParent - The parent window from which the event listener will be removed.
|
|
34
|
+
* @param unloadWindow - The event handler function to remove.
|
|
35
|
+
*/
|
|
36
|
+
export declare function cleanPopup(popupWindow: Window, popupWindowParent: Window, unloadWindow: (e: Event) => void): void;
|
|
37
|
+
//# sourceMappingURL=PopupMonitor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PopupMonitor.d.ts","sourceRoot":"","sources":["../../src/utils/PopupMonitor.ts"],"names":[],"mappings":"AAKA,OAAO,EAAa,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAK/D,eAAO,MAAM,sBAAsB,KAAK,CAAC;AAKzC;;;;;GAKG;AACH,wBAAgB,iCAAiC,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAQtE;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,mBAAmB,CACrC,WAAW,EAAE,MAAM,EACnB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,EAChC,aAAa,EAAE,MAAM,GACtB,OAAO,CAAC,MAAM,CAAC,CA6EjB;AAED;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CACtB,WAAW,EAAE,MAAM,EACnB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,GACjC,IAAI,CAWN"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { BrowserConfiguration } from "../config/Configuration.js";
|
|
2
|
+
/**
|
|
3
|
+
* Returns `true` when every ancestor browsing context is same-origin with
|
|
4
|
+
* `win`. A top-level document has no ancestors, so it always passes.
|
|
5
|
+
*/
|
|
6
|
+
export declare function allAncestorsSameOrigin(win: Window): boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Returns `true` when the top-level window has no opener, or one that is
|
|
9
|
+
* same-origin with it.
|
|
10
|
+
*
|
|
11
|
+
* Reads the opener from `win.top`, not `win`: a framed document always reports
|
|
12
|
+
* `window.opener === null` and would pass while the top window's untrusted
|
|
13
|
+
* opener still holds a handle on it.
|
|
14
|
+
*/
|
|
15
|
+
export declare function topOpenerIsSameOriginOrAbsent(win: Window): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Computes the `pocd` ("popup origin check done") authorize parameter value.
|
|
18
|
+
*
|
|
19
|
+
* `1` means no untrusted window can reach the popup, which is what lets Entra
|
|
20
|
+
* omit the `Cross-Origin-Opener-Policy` response header for the request.
|
|
21
|
+
*
|
|
22
|
+
* @param config Resolved browser configuration.
|
|
23
|
+
* @param win Window whose hosting environment is being checked. Defaults to the app window.
|
|
24
|
+
* @returns `1` when the check passes, otherwise `0`.
|
|
25
|
+
*/
|
|
26
|
+
export declare function computePocd(config: BrowserConfiguration, win?: Window | undefined): 0 | 1;
|
|
27
|
+
//# sourceMappingURL=PopupOriginCheck.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PopupOriginCheck.d.ts","sourceRoot":"","sources":["../../src/utils/PopupOriginCheck.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AASvE;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAiB3D;AAED;;;;;;;GAOG;AACH,wBAAgB,6BAA6B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAmBlE;AAED;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CACvB,MAAM,EAAE,oBAAoB,EAC5B,GAAG,GAAE,MAAM,GAAG,SAA8D,GAC7E,CAAC,GAAG,CAAC,CAcP"}
|