@azure/msal-browser 5.23.0 → 5.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/IPublicClientApplication.mjs +1 -1
- package/dist/app/PublicClientApplication.mjs +1 -1
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +111 -27
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +178 -67
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +61 -22
- 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 +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 +97 -29
- package/dist/cache/LocalStorage.mjs.map +1 -1
- package/dist/cache/MemoryStorage.mjs +1 -1
- package/dist/cache/SessionStorage.mjs +1 -1
- package/dist/cache/TokenCache.mjs +1 -1
- package/dist/config/Configuration.mjs +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +1 -1
- package/dist/controllers/StandardController.mjs +10 -10
- 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 +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 +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/AuthFlowErrorBaseV2.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/RequestChallengeErrorV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.mjs +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 -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/MFARequiredStateV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs +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 +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 +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 +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs +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 +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/SignUpResultsV2.mjs +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 +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/error_type/SubmitNewPasswordErrorV2.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.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 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.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/error_type/SignUpStartErrorV2.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.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 +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 +14 -13
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/PopupClient.mjs +1 -1
- package/dist/interaction_client/RedirectClient.mjs +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
- package/dist/interaction_client/SilentCacheClient.mjs +1 -1
- package/dist/interaction_client/SilentIframeClient.mjs +1 -1
- package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
- package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
- package/dist/interaction_handler/InteractionHandler.mjs +1 -1
- package/dist/interaction_handler/SilentHandler.mjs +1 -1
- package/dist/log-strings-mapping.json +1348 -1336
- package/dist/naa/BridgeError.mjs +1 -1
- package/dist/naa/BridgeProxy.mjs +1 -1
- package/dist/naa/BridgeStatusCode.mjs +1 -1
- package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
- package/dist/navigation/NavigationClient.mjs +1 -1
- package/dist/network/FetchClient.mjs +1 -1
- package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
- package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
- package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/popup_relay/constants.mjs +1 -1
- package/dist/popup_relay/index.mjs +1 -1
- package/dist/popup_relay/relayClient.mjs +1 -1
- package/dist/protocol/Authorize.mjs +1 -1
- package/dist/redirect_bridge/index.mjs +1 -1
- package/dist/request/RequestHelpers.mjs +1 -1
- package/dist/response/ResponseHandler.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceEvents.mjs +16 -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/BrowserProtocolUtils.mjs +1 -1
- package/dist/utils/BrowserUtils.mjs +1 -1
- package/dist/utils/Helpers.mjs +1 -1
- package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
- package/dist/webBrokerBridge/PendingRequestRegistry.mjs +1 -1
- package/dist/webBrokerBridge/PerfEventNames.mjs +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 +23 -11
- package/lib/custom-auth-path/msal-custom-auth.cjs +540 -225
- package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
- package/lib/custom-auth-path/msal-custom-auth.js +540 -225
- package/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
- package/lib/log-strings-mapping.json +23 -11
- package/lib/msal-browser.cjs +542 -227
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +542 -227
- 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 +3 -3
- package/src/broker/nativeBroker/PlatformAuthDOMHandler.ts +177 -43
- package/src/broker/nativeBroker/PlatformAuthExtensionHandler.ts +261 -110
- package/src/broker/nativeBroker/PlatformAuthProvider.ts +92 -37
- package/src/cache/LocalStorage.ts +135 -28
- package/src/controllers/StandardController.ts +17 -23
- package/src/interaction_client/PlatformAuthInteractionClient.ts +56 -15
- package/src/packageMetadata.ts +1 -1
- package/src/telemetry/BrowserPerformanceEvents.ts +20 -0
- package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts +2 -1
- package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthExtensionHandler.d.ts +3 -1
- package/types/broker/nativeBroker/PlatformAuthExtensionHandler.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthProvider.d.ts +1 -1
- package/types/broker/nativeBroker/PlatformAuthProvider.d.ts.map +1 -1
- package/types/cache/LocalStorage.d.ts +4 -5
- package/types/cache/LocalStorage.d.ts.map +1 -1
- package/types/controllers/StandardController.d.ts.map +1 -1
- package/types/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/types/packageMetadata.d.ts +1 -1
- package/types/telemetry/BrowserPerformanceEvents.d.ts +13 -0
- package/types/telemetry/BrowserPerformanceEvents.d.ts.map +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.24.0 2026-10-02 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { PlatformAuthConstants, NativeExtensionMethod } from '../../utils/BrowserConstants.mjs';
|
|
4
|
-
import { createAuthError, AuthErrorCodes } from '@azure/msal-common/browser';
|
|
5
|
-
import { NativeMessageHandlerHandshake } from '../../telemetry/BrowserPerformanceEvents.mjs';
|
|
4
|
+
import { createAuthError, AuthErrorCodes, AuthError } from '@azure/msal-common/browser';
|
|
5
|
+
import { NativeMessageHandlerHandshake, PlatformAuthExtensionGetToken, PlatformAuthExtensionCreateProvider, PlatformAuthExtensionValidateResponse } from '../../telemetry/BrowserPerformanceEvents.mjs';
|
|
6
6
|
import { createNativeAuthError } from '../../error/NativeAuthError.mjs';
|
|
7
7
|
import { createBrowserAuthError } from '../../error/BrowserAuthError.mjs';
|
|
8
8
|
import { createNewGuid } from '../../crypto/BrowserCrypto.mjs';
|
|
@@ -14,7 +14,7 @@ import { nativeHandshakeTimeout, nativeExtensionNotInstalled } from '../../error
|
|
|
14
14
|
* Licensed under the MIT License.
|
|
15
15
|
*/
|
|
16
16
|
class PlatformAuthExtensionHandler {
|
|
17
|
-
constructor(logger, handshakeTimeoutMs, performanceClient, extensionId) {
|
|
17
|
+
constructor(logger, handshakeTimeoutMs, performanceClient, extensionId, correlationId) {
|
|
18
18
|
this.logger = logger;
|
|
19
19
|
this.handshakeTimeoutMs = handshakeTimeoutMs;
|
|
20
20
|
this.extensionId = extensionId;
|
|
@@ -23,7 +23,8 @@ class PlatformAuthExtensionHandler {
|
|
|
23
23
|
this.messageChannel = new MessageChannel();
|
|
24
24
|
this.windowListener = this.onWindowMessage.bind(this); // Window event callback doesn't have access to 'this' unless it's bound
|
|
25
25
|
this.performanceClient = performanceClient;
|
|
26
|
-
this.
|
|
26
|
+
this.correlationId = correlationId || createNewGuid();
|
|
27
|
+
this.handshakeEvent = this.performanceClient.startMeasurement(NativeMessageHandlerHandshake, this.correlationId);
|
|
27
28
|
this.platformAuthType =
|
|
28
29
|
PlatformAuthConstants.PLATFORM_EXTENSION_PROVIDER;
|
|
29
30
|
}
|
|
@@ -32,29 +33,51 @@ class PlatformAuthExtensionHandler {
|
|
|
32
33
|
* @param request
|
|
33
34
|
*/
|
|
34
35
|
async sendMessage(request) {
|
|
35
|
-
this.
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
delete extensionRequest.resourceRequestUri;
|
|
40
|
-
const messageBody = {
|
|
41
|
-
method: NativeExtensionMethod.GetToken,
|
|
42
|
-
request: extensionRequest,
|
|
43
|
-
};
|
|
44
|
-
const req = {
|
|
45
|
-
channel: PlatformAuthConstants.CHANNEL_ID,
|
|
46
|
-
extensionId: this.extensionId,
|
|
47
|
-
responseId: createNewGuid(),
|
|
48
|
-
body: messageBody,
|
|
49
|
-
};
|
|
50
|
-
this.logger.trace(`1qadfi ${this.platformAuthType}`, request.correlationId);
|
|
51
|
-
this.logger.tracePii(`1xm533 ${this.platformAuthType} ${JSON.stringify(req)}`, request.correlationId);
|
|
52
|
-
this.messageChannel.port1.postMessage(req);
|
|
53
|
-
const response = await new Promise((resolve, reject) => {
|
|
54
|
-
this.resolvers.set(req.responseId, { resolve, reject });
|
|
36
|
+
const correlationId = this.getCorrelationId(request.correlationId);
|
|
37
|
+
const sendMessageMeasurement = this.performanceClient.startMeasurement(PlatformAuthExtensionGetToken, correlationId);
|
|
38
|
+
sendMessageMeasurement.add({
|
|
39
|
+
platformAuthProviderType: this.platformAuthType,
|
|
55
40
|
});
|
|
56
|
-
|
|
57
|
-
|
|
41
|
+
this.logger.trace(`0on4p2 ${this.platformAuthType}`, correlationId);
|
|
42
|
+
try {
|
|
43
|
+
// fall back to native calls
|
|
44
|
+
const extensionRequest = { ...request };
|
|
45
|
+
delete extensionRequest.resourceRequestMethod;
|
|
46
|
+
delete extensionRequest.resourceRequestUri;
|
|
47
|
+
const messageBody = {
|
|
48
|
+
method: NativeExtensionMethod.GetToken,
|
|
49
|
+
request: extensionRequest,
|
|
50
|
+
};
|
|
51
|
+
const req = {
|
|
52
|
+
channel: PlatformAuthConstants.CHANNEL_ID,
|
|
53
|
+
extensionId: this.extensionId,
|
|
54
|
+
responseId: createNewGuid(),
|
|
55
|
+
body: messageBody,
|
|
56
|
+
};
|
|
57
|
+
this.logger.trace(`1qadfi ${this.platformAuthType}`, correlationId);
|
|
58
|
+
this.logger.tracePii(`1xm533 ${this.platformAuthType} ${JSON.stringify(req)}`, correlationId);
|
|
59
|
+
this.messageChannel.port1.postMessage(req);
|
|
60
|
+
const response = await new Promise((resolve, reject) => {
|
|
61
|
+
this.resolvers.set(req.responseId, {
|
|
62
|
+
resolve,
|
|
63
|
+
reject,
|
|
64
|
+
correlationId,
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
const validatedResponse = this.validatePlatformBrokerResponse(response, correlationId);
|
|
68
|
+
sendMessageMeasurement.end({
|
|
69
|
+
success: true,
|
|
70
|
+
platformAuthProviderType: this.platformAuthType,
|
|
71
|
+
});
|
|
72
|
+
return validatedResponse;
|
|
73
|
+
}
|
|
74
|
+
catch (e) {
|
|
75
|
+
sendMessageMeasurement.end({
|
|
76
|
+
success: false,
|
|
77
|
+
platformAuthProviderType: this.platformAuthType,
|
|
78
|
+
}, e);
|
|
79
|
+
throw e;
|
|
80
|
+
}
|
|
58
81
|
}
|
|
59
82
|
/**
|
|
60
83
|
* Returns an instance of the MessageHandler that has successfully established a connection with an extension
|
|
@@ -65,23 +88,51 @@ class PlatformAuthExtensionHandler {
|
|
|
65
88
|
*/
|
|
66
89
|
static async createProvider(logger, handshakeTimeoutMs, performanceClient, correlationId) {
|
|
67
90
|
logger.trace("15zfnw", correlationId);
|
|
91
|
+
const createProviderMeasurement = performanceClient.startMeasurement(PlatformAuthExtensionCreateProvider, correlationId);
|
|
68
92
|
try {
|
|
69
|
-
const preferredProvider = new PlatformAuthExtensionHandler(logger, handshakeTimeoutMs, performanceClient, PlatformAuthConstants.PREFERRED_EXTENSION_ID);
|
|
70
|
-
await preferredProvider.sendHandshakeRequest(
|
|
93
|
+
const preferredProvider = new PlatformAuthExtensionHandler(logger, handshakeTimeoutMs, performanceClient, PlatformAuthConstants.PREFERRED_EXTENSION_ID, correlationId);
|
|
94
|
+
await preferredProvider.sendHandshakeRequest();
|
|
95
|
+
createProviderMeasurement.add({
|
|
96
|
+
platformAuthProviderAvailable: true,
|
|
97
|
+
platformAuthProviderType: PlatformAuthConstants.PLATFORM_EXTENSION_PROVIDER,
|
|
98
|
+
});
|
|
99
|
+
createProviderMeasurement.end({
|
|
100
|
+
platformAuthProviderAvailable: true,
|
|
101
|
+
platformAuthProviderType: PlatformAuthConstants.PLATFORM_EXTENSION_PROVIDER,
|
|
102
|
+
});
|
|
71
103
|
return preferredProvider;
|
|
72
104
|
}
|
|
73
105
|
catch (e) {
|
|
74
106
|
// If preferred extension fails for whatever reason, fallback to using any installed extension
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
107
|
+
try {
|
|
108
|
+
const backupProvider = new PlatformAuthExtensionHandler(logger, handshakeTimeoutMs, performanceClient, undefined, correlationId);
|
|
109
|
+
await backupProvider.sendHandshakeRequest();
|
|
110
|
+
createProviderMeasurement.add({
|
|
111
|
+
platformAuthProviderAvailable: true,
|
|
112
|
+
platformAuthProviderType: PlatformAuthConstants.PLATFORM_EXTENSION_PROVIDER,
|
|
113
|
+
});
|
|
114
|
+
createProviderMeasurement.end({
|
|
115
|
+
platformAuthProviderAvailable: true,
|
|
116
|
+
platformAuthProviderType: PlatformAuthConstants.PLATFORM_EXTENSION_PROVIDER,
|
|
117
|
+
});
|
|
118
|
+
return backupProvider;
|
|
119
|
+
}
|
|
120
|
+
catch (backupError) {
|
|
121
|
+
createProviderMeasurement.add({
|
|
122
|
+
platformAuthProviderAvailable: false,
|
|
123
|
+
});
|
|
124
|
+
createProviderMeasurement.end({
|
|
125
|
+
platformAuthProviderAvailable: false,
|
|
126
|
+
}, backupError);
|
|
127
|
+
throw backupError;
|
|
128
|
+
}
|
|
78
129
|
}
|
|
79
130
|
}
|
|
80
131
|
/**
|
|
81
132
|
* Send handshake request helper.
|
|
82
133
|
*/
|
|
83
|
-
async sendHandshakeRequest(
|
|
84
|
-
this.logger.trace(`1dpg9o ${this.platformAuthType}`, correlationId);
|
|
134
|
+
async sendHandshakeRequest() {
|
|
135
|
+
this.logger.trace(`1dpg9o ${this.platformAuthType}`, this.correlationId);
|
|
85
136
|
// Register this event listener before sending handshake
|
|
86
137
|
window.addEventListener("message", this.windowListener, false); // false is important, because content script message processing should work first
|
|
87
138
|
const req = {
|
|
@@ -95,13 +146,18 @@ class PlatformAuthExtensionHandler {
|
|
|
95
146
|
this.handshakeEvent.add({
|
|
96
147
|
extensionId: this.extensionId,
|
|
97
148
|
extensionHandshakeTimeoutMs: this.handshakeTimeoutMs,
|
|
149
|
+
platformAuthRequestCorrelationId: this.correlationId,
|
|
98
150
|
});
|
|
99
151
|
this.messageChannel.port1.onmessage = (event) => {
|
|
100
152
|
this.onChannelMessage(event);
|
|
101
153
|
};
|
|
102
154
|
window.postMessage(req, window.origin, [this.messageChannel.port2]);
|
|
103
155
|
return new Promise((resolve, reject) => {
|
|
104
|
-
this.handshakeResolvers.set(req.responseId, {
|
|
156
|
+
this.handshakeResolvers.set(req.responseId, {
|
|
157
|
+
resolve,
|
|
158
|
+
reject,
|
|
159
|
+
correlationId: this.correlationId,
|
|
160
|
+
});
|
|
105
161
|
this.timeoutId = window.setTimeout(() => {
|
|
106
162
|
/*
|
|
107
163
|
* Throw an error if neither HandshakeResponse nor original Handshake request are received in a reasonable timeframe.
|
|
@@ -110,11 +166,14 @@ class PlatformAuthExtensionHandler {
|
|
|
110
166
|
window.removeEventListener("message", this.windowListener, false);
|
|
111
167
|
this.messageChannel.port1.close();
|
|
112
168
|
this.messageChannel.port2.close();
|
|
169
|
+
this.handshakeEvent.add({
|
|
170
|
+
extensionHandshakeTimedOut: true,
|
|
171
|
+
});
|
|
113
172
|
this.handshakeEvent.end({
|
|
114
173
|
extensionHandshakeTimedOut: true,
|
|
115
174
|
success: false,
|
|
116
175
|
});
|
|
117
|
-
reject(createBrowserAuthError(nativeHandshakeTimeout,
|
|
176
|
+
reject(createBrowserAuthError(nativeHandshakeTimeout, this.correlationId));
|
|
118
177
|
this.handshakeResolvers.delete(req.responseId);
|
|
119
178
|
}, this.handshakeTimeoutMs); // Use a reasonable timeout in milliseconds here
|
|
120
179
|
});
|
|
@@ -124,7 +183,7 @@ class PlatformAuthExtensionHandler {
|
|
|
124
183
|
* @param event
|
|
125
184
|
*/
|
|
126
185
|
onWindowMessage(event) {
|
|
127
|
-
|
|
186
|
+
let correlationId = createGuid();
|
|
128
187
|
this.logger.trace(`0jpn5u ${this.platformAuthType}`, correlationId);
|
|
129
188
|
// We only accept messages from ourselves
|
|
130
189
|
if (event.source !== window) {
|
|
@@ -148,6 +207,7 @@ class PlatformAuthExtensionHandler {
|
|
|
148
207
|
this.logger.trace(`07buhm ${this.platformAuthType} ${request.responseId}`, correlationId);
|
|
149
208
|
return;
|
|
150
209
|
}
|
|
210
|
+
correlationId = handshakeResolver.correlationId;
|
|
151
211
|
// If we receive this message back it means no extension intercepted the request, meaning no extension supporting handshake protocol is installed
|
|
152
212
|
this.logger.verbose(request.extensionId
|
|
153
213
|
? `0xrkug ${request.extensionId}`
|
|
@@ -156,11 +216,15 @@ class PlatformAuthExtensionHandler {
|
|
|
156
216
|
this.messageChannel.port1.close();
|
|
157
217
|
this.messageChannel.port2.close();
|
|
158
218
|
window.removeEventListener("message", this.windowListener, false);
|
|
219
|
+
this.handshakeEvent.add({
|
|
220
|
+
extensionInstalled: false,
|
|
221
|
+
});
|
|
159
222
|
this.handshakeEvent.end({
|
|
160
223
|
success: false,
|
|
161
224
|
extensionInstalled: false,
|
|
162
225
|
});
|
|
163
|
-
handshakeResolver.reject(createBrowserAuthError(nativeExtensionNotInstalled,
|
|
226
|
+
handshakeResolver.reject(createBrowserAuthError(nativeExtensionNotInstalled, correlationId));
|
|
227
|
+
this.handshakeResolvers.delete(request.responseId);
|
|
164
228
|
}
|
|
165
229
|
}
|
|
166
230
|
/**
|
|
@@ -168,36 +232,47 @@ class PlatformAuthExtensionHandler {
|
|
|
168
232
|
* @param event
|
|
169
233
|
*/
|
|
170
234
|
onChannelMessage(event) {
|
|
171
|
-
const correlationId = createGuid();
|
|
172
|
-
this.logger.trace(`1py8yf ${this.platformAuthType}`, correlationId);
|
|
173
235
|
const request = event.data;
|
|
174
|
-
const
|
|
175
|
-
const
|
|
236
|
+
const responseId = request?.responseId;
|
|
237
|
+
const resolver = responseId
|
|
238
|
+
? this.resolvers.get(responseId)
|
|
239
|
+
: undefined;
|
|
240
|
+
const handshakeResolver = responseId
|
|
241
|
+
? this.handshakeResolvers.get(responseId)
|
|
242
|
+
: undefined;
|
|
243
|
+
const correlationId = resolver?.correlationId ||
|
|
244
|
+
handshakeResolver?.correlationId ||
|
|
245
|
+
createGuid();
|
|
246
|
+
this.logger.trace(`1py8yf ${this.platformAuthType}`, correlationId);
|
|
176
247
|
try {
|
|
177
248
|
const method = request.body.method;
|
|
178
249
|
if (method === NativeExtensionMethod.Response) {
|
|
179
250
|
if (!resolver) {
|
|
180
251
|
return;
|
|
181
252
|
}
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
if (response.result
|
|
190
|
-
response.result["
|
|
191
|
-
|
|
253
|
+
try {
|
|
254
|
+
const response = request.body.response;
|
|
255
|
+
this.logger.trace(`19hpgm ${this.platformAuthType}`, correlationId);
|
|
256
|
+
this.logger.tracePii(`179a24 ${this.platformAuthType} ${JSON.stringify(response)}`, correlationId);
|
|
257
|
+
if (response.status !== "Success") {
|
|
258
|
+
resolver.reject(createNativeAuthError(response.code, correlationId, response.description, response.ext));
|
|
259
|
+
}
|
|
260
|
+
else if (response.result) {
|
|
261
|
+
if (response.result["code"] &&
|
|
262
|
+
response.result["description"]) {
|
|
263
|
+
resolver.reject(createNativeAuthError(response.result["code"], correlationId, response.result["description"], response.result["ext"]));
|
|
264
|
+
}
|
|
265
|
+
else {
|
|
266
|
+
resolver.resolve(response.result);
|
|
267
|
+
}
|
|
192
268
|
}
|
|
193
269
|
else {
|
|
194
|
-
|
|
270
|
+
throw createAuthError(AuthErrorCodes.unexpectedError, correlationId, "Event does not contain result.");
|
|
195
271
|
}
|
|
196
272
|
}
|
|
197
|
-
|
|
198
|
-
|
|
273
|
+
finally {
|
|
274
|
+
this.resolvers.delete(request.responseId);
|
|
199
275
|
}
|
|
200
|
-
this.resolvers.delete(request.responseId);
|
|
201
276
|
}
|
|
202
277
|
else if (method === NativeExtensionMethod.HandshakeResponse) {
|
|
203
278
|
if (!handshakeResolver) {
|
|
@@ -207,25 +282,46 @@ class PlatformAuthExtensionHandler {
|
|
|
207
282
|
clearTimeout(this.timeoutId); // Clear setTimeout
|
|
208
283
|
window.removeEventListener("message", this.windowListener, false); // Remove 'No extension' listener
|
|
209
284
|
this.extensionId = request.extensionId;
|
|
210
|
-
this.extensionVersion = request.body.version;
|
|
285
|
+
this.extensionVersion = request.body.version?.toString();
|
|
211
286
|
this.logger.verbose(`0yf5ib ${this.platformAuthType} ${this.extensionId}`, correlationId);
|
|
287
|
+
this.handshakeEvent.add({
|
|
288
|
+
extensionId: this.extensionId,
|
|
289
|
+
extensionVersion: this.extensionVersion,
|
|
290
|
+
extensionInstalled: true,
|
|
291
|
+
});
|
|
212
292
|
this.handshakeEvent.end({
|
|
293
|
+
extensionId: this.extensionId,
|
|
294
|
+
extensionVersion: this.extensionVersion,
|
|
213
295
|
extensionInstalled: true,
|
|
214
296
|
success: true,
|
|
215
297
|
});
|
|
216
298
|
handshakeResolver.resolve();
|
|
217
299
|
this.handshakeResolvers.delete(request.responseId);
|
|
218
300
|
}
|
|
219
|
-
|
|
301
|
+
else if (resolver) {
|
|
302
|
+
this.resolvers.delete(request.responseId);
|
|
303
|
+
resolver.reject(createAuthError(AuthErrorCodes.unexpectedError, correlationId, "Extension response contains an unexpected method."));
|
|
304
|
+
}
|
|
220
305
|
}
|
|
221
306
|
catch (err) {
|
|
222
307
|
this.logger.error("0xf978", correlationId);
|
|
223
308
|
this.logger.errorPii(`04i99o ${err}`, correlationId);
|
|
224
309
|
this.logger.errorPii(`0xdvsy ${event}`, correlationId);
|
|
225
310
|
if (resolver) {
|
|
226
|
-
|
|
311
|
+
this.resolvers.delete(responseId);
|
|
312
|
+
resolver.reject(err instanceof AuthError
|
|
313
|
+
? err
|
|
314
|
+
: createAuthError(AuthErrorCodes.unexpectedError, correlationId, "Unable to parse extension response."));
|
|
227
315
|
}
|
|
228
316
|
else if (handshakeResolver) {
|
|
317
|
+
clearTimeout(this.timeoutId);
|
|
318
|
+
window.removeEventListener("message", this.windowListener, false);
|
|
319
|
+
this.messageChannel.port1.close();
|
|
320
|
+
this.messageChannel.port2.close();
|
|
321
|
+
this.handshakeEvent.end({
|
|
322
|
+
success: false,
|
|
323
|
+
});
|
|
324
|
+
this.handshakeResolvers.delete(responseId);
|
|
229
325
|
handshakeResolver.reject(err);
|
|
230
326
|
}
|
|
231
327
|
}
|
|
@@ -234,19 +330,34 @@ class PlatformAuthExtensionHandler {
|
|
|
234
330
|
* Validates native platform response before processing
|
|
235
331
|
* @param response
|
|
236
332
|
*/
|
|
237
|
-
validatePlatformBrokerResponse(response) {
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
333
|
+
validatePlatformBrokerResponse(response, correlationId) {
|
|
334
|
+
const responseCorrelationId = this.getCorrelationId(correlationId);
|
|
335
|
+
const validationMeasurement = this.performanceClient.startMeasurement(PlatformAuthExtensionValidateResponse, responseCorrelationId);
|
|
336
|
+
if (response &&
|
|
337
|
+
Object.prototype.hasOwnProperty.call(response, "access_token") &&
|
|
338
|
+
Object.prototype.hasOwnProperty.call(response, "id_token") &&
|
|
339
|
+
Object.prototype.hasOwnProperty.call(response, "client_info") &&
|
|
340
|
+
Object.prototype.hasOwnProperty.call(response, "account") &&
|
|
341
|
+
Object.prototype.hasOwnProperty.call(response, "scope") &&
|
|
342
|
+
Object.prototype.hasOwnProperty.call(response, "expires_in")) {
|
|
343
|
+
validationMeasurement.end({
|
|
344
|
+
success: true,
|
|
345
|
+
platformAuthProviderType: this.platformAuthType,
|
|
346
|
+
});
|
|
244
347
|
return response;
|
|
245
348
|
}
|
|
246
349
|
else {
|
|
247
|
-
|
|
350
|
+
const error = createAuthError(AuthErrorCodes.unexpectedError, responseCorrelationId, "Response missing expected properties.");
|
|
351
|
+
validationMeasurement.end({
|
|
352
|
+
success: false,
|
|
353
|
+
platformAuthProviderType: this.platformAuthType,
|
|
354
|
+
}, error);
|
|
355
|
+
throw error;
|
|
248
356
|
}
|
|
249
357
|
}
|
|
358
|
+
getCorrelationId(correlationId) {
|
|
359
|
+
return correlationId || this.correlationId;
|
|
360
|
+
}
|
|
250
361
|
/**
|
|
251
362
|
* Returns the Id for the browser extension this handler is communicating with
|
|
252
363
|
* @returns
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlatformAuthExtensionHandler.mjs","sources":["../../../src/broker/nativeBroker/PlatformAuthExtensionHandler.ts"],"sourcesContent":[null],"names":["BrowserPerformanceEvents.NativeMessageHandlerHandshake","BrowserAuthErrorCodes.nativeHandshakeTimeout","BrowserAuthErrorCodes.nativeExtensionNotInstalled"],"mappings":";;;;;;;;;;;AAAA;;;AAGG;MAqCU,4BAA4B,CAAA;AAcrC,IAAA,WAAA,CACI,MAAc,EACd,kBAA0B,EAC1B,iBAAqC,EACrC,WAAoB,EAAA;AAEpB,QAAA,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;AACrB,QAAA,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;AAC7C,QAAA,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,SAAS,GAAG,IAAI,GAAG,EAAE,CAAC;QAC3B,IAAI,CAAC,kBAAkB,GAAG,IAAI,GAAG,EAAE,CAAC;AACpC,QAAA,IAAI,CAAC,cAAc,GAAG,IAAI,cAAc,EAAE,CAAC;AAC3C,QAAA,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACtD,QAAA,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;AAC3C,QAAA,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CACzDA,6BAAsD,CACzD,CAAC;AACF,QAAA,IAAI,CAAC,gBAAgB;YACjB,qBAAqB,CAAC,2BAA2B,CAAC;IAC1D,CAAC;AAED;;;AAGG;IACH,MAAM,WAAW,CACb,OAA4B,EAAA;AAE5B,QAAA,IAAI,CAAC,MAAM,CAAC,KAAK,CACb,CAAA,OAAQ,EAAC,IAAA,CAAA,yCACT,CAAA,CAAA;;AAIJ,QAAA,MAAM,gBAAgB,GAAG,EAAE,GAAG,OAAO,EAAE,CAAC;QACxC,OAAO,gBAAgB,CAAC,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J,QAAA,CAAA;IACL,CAAC;AAED;;;AAGG;AACK,IAAA,8BAA8B,CAClC,QAAgB,EAAA;AAEhB,QAAA,IACI,QAAQ,CAAC,cAAc,CAAC,cAAc,CAAC;AACvC,YAAA,QAAQ,CAAC,cAAc,CAAC,UAAU,CAAC;AACnC,YAAA,QAAQ,CAAC,cAAc,CAAC,aAAa,CAAC;AACtC,YAAA,QAAQ,CAAC,cAAc,CAAC,SAAS,CAAC;AAClC,YAAA,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC;AAChC,YAAA,QAAQ,CAAC,cAAc,CAAC,YAAY,CAAC,EACvC;AACE,YAAA,OAAO,QAAgC,CAAC;AAC3C,QAAA,CAAA;AAAM,aAAA;YACH,MAAM,eAAe,CACjB,cAAc,CAAC,eAAe,EAC9B,EAAE,EACF,uCAAuC,CAC1C,CAAC;AACL,QAAA,CAAA;IACL,CAAC;AAED;;;AAGG;IACH,cAAc,GAAA;QACV,OAAO,IAAI,CAAC,WAAW,CAAC;IAC5B,CAAC;AAED;;;AAGG;IACH,mBAAmB,GAAA;QACf,OAAO,IAAI,CAAC,gBAAgB,CAAC;IACjC,CAAC;IAED,gBAAgB,GAAA;QACZ,OAAO,IAAI,CAAC,cAAc,EAAE;AACxB,YAAA,qBAAqB,CAAC,sBAAsB;AAC5C,cAAE,QAAQ;AACV,cAAE,IAAI,CAAC,cAAc,EAAE,EAAE,MAAM;AAC/B,kBAAE,SAAS;kBACT,SAAS,CAAC;IACpB,CAAC;AACJ;;;;"}
|
|
1
|
+
{"version":3,"file":"PlatformAuthExtensionHandler.mjs","sources":["../../../src/broker/nativeBroker/PlatformAuthExtensionHandler.ts"],"sourcesContent":[null],"names":["BrowserPerformanceEvents.NativeMessageHandlerHandshake","BrowserPerformanceEvents.PlatformAuthExtensionGetToken","BrowserPerformanceEvents.PlatformAuthExtensionCreateProvider","BrowserAuthErrorCodes.nativeHandshakeTimeout","BrowserAuthErrorCodes.nativeExtensionNotInstalled","BrowserPerformanceE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,cAAE,QAAQ;AACV,cAAE,IAAI,CAAC,cAAc,EAAE,EAAE,MAAM;AAC/B,kBAAE,SAAS;kBACT,SAAS,CAAC;IACpB,CAAC;AACJ;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.24.0 2026-10-02 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { Logger, StubPerformanceClient, createClientConfigurationError, ClientConfigurationErrorCodes, Constants } from '@azure/msal-common/browser';
|
|
4
4
|
import { name, version } from '../../packageMetadata.mjs';
|
|
@@ -6,6 +6,8 @@ import { DEFAULT_NATIVE_BROKER_HANDSHAKE_TIMEOUT_MS } from '../../config/Configu
|
|
|
6
6
|
import { PlatformAuthExtensionHandler } from './PlatformAuthExtensionHandler.mjs';
|
|
7
7
|
import { PlatformAuthDOMHandler } from './PlatformAuthDOMHandler.mjs';
|
|
8
8
|
import { createNewGuid } from '../../crypto/BrowserCrypto.mjs';
|
|
9
|
+
import { PlatformAuthProviderDiscovery } from '../../telemetry/BrowserPerformanceEvents.mjs';
|
|
10
|
+
import { PlatformAuthConstants } from '../../utils/BrowserConstants.mjs';
|
|
9
11
|
|
|
10
12
|
/*
|
|
11
13
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -30,26 +32,55 @@ async function isPlatformBrokerAvailable(domConfig, loggerOptions, perfClient, c
|
|
|
30
32
|
}
|
|
31
33
|
async function getPlatformAuthProvider(logger, performanceClient, correlationId, nativeBrokerHandshakeTimeout, enablePlatformBrokerDOMSupport) {
|
|
32
34
|
logger.trace("134j0v", correlationId);
|
|
35
|
+
const discoveryMeasurement = performanceClient.startMeasurement(PlatformAuthProviderDiscovery, correlationId);
|
|
33
36
|
logger.trace(`04c81g ${enablePlatformBrokerDOMSupport}`, correlationId);
|
|
34
37
|
let platformAuthProvider;
|
|
35
38
|
try {
|
|
36
39
|
if (enablePlatformBrokerDOMSupport) {
|
|
37
40
|
// Check if DOM platform API is supported first
|
|
38
|
-
|
|
41
|
+
try {
|
|
42
|
+
platformAuthProvider =
|
|
43
|
+
await PlatformAuthDOMHandler.createProvider(logger, performanceClient, correlationId);
|
|
44
|
+
}
|
|
45
|
+
catch (e) {
|
|
46
|
+
logger.trace("1ij09j", correlationId);
|
|
47
|
+
}
|
|
48
|
+
if (platformAuthProvider) {
|
|
49
|
+
discoveryMeasurement.add({
|
|
50
|
+
platformAuthProviderType: PlatformAuthConstants.PLATFORM_DOM_PROVIDER,
|
|
51
|
+
});
|
|
52
|
+
discoveryMeasurement.end({
|
|
53
|
+
success: true,
|
|
54
|
+
platformAuthProviderType: PlatformAuthConstants.PLATFORM_DOM_PROVIDER,
|
|
55
|
+
});
|
|
56
|
+
return platformAuthProvider;
|
|
57
|
+
}
|
|
39
58
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
59
|
+
logger.trace("0l3na8", correlationId);
|
|
60
|
+
/*
|
|
61
|
+
* If DOM APIs are not available, check if browser extension is available.
|
|
62
|
+
* Platform authentication via DOM APIs is preferred over extension APIs.
|
|
63
|
+
*/
|
|
64
|
+
platformAuthProvider =
|
|
65
|
+
await PlatformAuthExtensionHandler.createProvider(logger, nativeBrokerHandshakeTimeout ||
|
|
66
|
+
DEFAULT_NATIVE_BROKER_HANDSHAKE_TIMEOUT_MS, performanceClient, correlationId);
|
|
67
|
+
if (platformAuthProvider) {
|
|
68
|
+
discoveryMeasurement.add({
|
|
69
|
+
platformAuthProviderType: PlatformAuthConstants.PLATFORM_EXTENSION_PROVIDER,
|
|
70
|
+
});
|
|
49
71
|
}
|
|
72
|
+
discoveryMeasurement.end({
|
|
73
|
+
success: !!platformAuthProvider,
|
|
74
|
+
platformAuthProviderType: platformAuthProvider
|
|
75
|
+
? PlatformAuthConstants.PLATFORM_EXTENSION_PROVIDER
|
|
76
|
+
: undefined,
|
|
77
|
+
});
|
|
50
78
|
}
|
|
51
79
|
catch (e) {
|
|
52
80
|
logger.trace("0icbd7", e);
|
|
81
|
+
discoveryMeasurement.end({
|
|
82
|
+
success: false,
|
|
83
|
+
}, e);
|
|
53
84
|
}
|
|
54
85
|
return platformAuthProvider;
|
|
55
86
|
}
|
|
@@ -61,8 +92,22 @@ async function getPlatformAuthProvider(logger, performanceClient, correlationId,
|
|
|
61
92
|
* @param platformAuthProvider
|
|
62
93
|
* @param authenticationScheme
|
|
63
94
|
*/
|
|
64
|
-
function isPlatformAuthAllowed(config, logger, correlationId, platformAuthProvider, authenticationScheme) {
|
|
95
|
+
function isPlatformAuthAllowed(config, logger, correlationId, platformAuthProvider, authenticationScheme, performanceClient) {
|
|
65
96
|
logger.trace("0uko3r", correlationId);
|
|
97
|
+
const schemeSupported = !authenticationScheme ||
|
|
98
|
+
authenticationScheme === Constants.AuthenticationScheme.BEARER ||
|
|
99
|
+
authenticationScheme === Constants.AuthenticationScheme.POP;
|
|
100
|
+
const fields = {
|
|
101
|
+
allowPlatformBroker: config.system.allowPlatformBroker,
|
|
102
|
+
...(config.system.allowPlatformBroker && {
|
|
103
|
+
platformAuthProviderType: platformAuthProvider instanceof PlatformAuthDOMHandler
|
|
104
|
+
? PlatformAuthConstants.PLATFORM_DOM_PROVIDER
|
|
105
|
+
: platformAuthProvider
|
|
106
|
+
? PlatformAuthConstants.PLATFORM_EXTENSION_PROVIDER
|
|
107
|
+
: undefined,
|
|
108
|
+
}),
|
|
109
|
+
};
|
|
110
|
+
performanceClient?.addFields(fields, correlationId);
|
|
66
111
|
// throw an error if allowPlatformBroker is not enabled and allowPlatformBrokerWithDOM is enabled
|
|
67
112
|
if (!config.system.allowPlatformBroker &&
|
|
68
113
|
config.experimental.allowPlatformBrokerWithDOM) {
|
|
@@ -78,17 +123,11 @@ function isPlatformAuthAllowed(config, logger, correlationId, platformAuthProvid
|
|
|
78
123
|
// Platform broker auth providers are not available
|
|
79
124
|
return false;
|
|
80
125
|
}
|
|
81
|
-
if (
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
case Constants.AuthenticationScheme.POP:
|
|
85
|
-
logger.trace("18tev1", correlationId);
|
|
86
|
-
return true;
|
|
87
|
-
default:
|
|
88
|
-
logger.trace("1dd2nh", correlationId);
|
|
89
|
-
return false;
|
|
90
|
-
}
|
|
126
|
+
if (!schemeSupported) {
|
|
127
|
+
logger.trace("1dd2nh", correlationId);
|
|
128
|
+
return false;
|
|
91
129
|
}
|
|
130
|
+
logger.trace("18tev1", correlationId);
|
|
92
131
|
return true;
|
|
93
132
|
}
|
|
94
133
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlatformAuthProvider.mjs","sources":["../../../src/broker/nativeBroker/PlatformAuthProvider.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PlatformAuthProvider.mjs","sources":["../../../src/broker/nativeBroker/PlatformAuthProvider.ts"],"sourcesContent":[null],"names":["BrowserPerformanceEvents.PlatformAuthProviderDiscovery"],"mappings":";;;;;;;;;;;AAAA;;;AAGG;AAuBH;;;;;;;AAOG;AACI,eAAe,yBAAyB,CAC3C,SAAkB,EAClB,aAA6B,EAC7B,UAA+B,EAC/B,aAAsB,EAAA;AAEtB,IAAA,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,aAAa,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;AAE9D,IAAA,MAAM,iBAAiB,GAAG,UAAU,IAAI,IAAI,qBAAqB,EAAE,CAAC;AAEpE,IAAA,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;QAC/B,MAAM,CAAC,KAAK,CACR,QAAA,EAAA,aAAA,IAAA,aAAA,EAAA,CAAA,CAAA;AAGJ,QAAA,OAAO,KAAK,CAAC;AAChB,IAAA,CAAA;IAED,OAAO,CAAC,EAAE,MAAM,uBAAuB,CACnC,MAAM,EACN,iBAAiB,EACjB,aAAa,IAAI,aAAa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AAM,CAAC,MAAM,CAAC,mBAAmB;AAClC,QAAA,MAAM,CAAC,YAAY,CAAC,0BAA0B,EAChD;QACE,MAAM,8BAA8B,CAChC,6BAA6B,CAAC,kCAAkC,EAChE,EAAE,CACL,CAAC;AACL,IAAA,CAAA;AAED,IAAA,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,mBAAmB,EAAE;AACpC,QAAA,MAAM,CAAC,KAAK,CACR;;AAIJ,QAAA,OAAO,KAAK,CAAC;AAChB,IAAA,CAAA;IAED,IAAI,CAAC,oBAAoB,EAAE;AACvB,QAAA,MAAM,CAAC,KAAK,CACR;;AAIJ,QAAA,OAAO,KAAK,CAAC;AAChB,IAAA,CAAA;IAED,IAAI,CAAC,eAAe,EAAE;AAClB,QAAA,MAAM,CAAC,KAAK,CACR;AAGJ,QAAA,OAAO,KAAK,CAAC;AAChB,IAAA,CAAA;AAED,IAAA,MAAM,CAAC,KAAK,CACR;AAGJ,IAAA,OAAO,IAAI,CAAC;AAChB;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.24.0 2026-10-02 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { CacheManager, DEFAULT_TOKEN_BINDING_KEY_MANAGER, TimeUtils, CacheHelpers, Constants, AuthToken, getTenantIdFromIdTokenClaims, buildTenantProfile, AccountEntityUtils, createCacheError, CacheErrorCodes, invokeAsync, PerformanceEvents, StringUtils, CacheError, DEFAULT_CRYPTO_IMPLEMENTATION } from '@azure/msal-common/browser';
|
|
4
4
|
import { createBrowserAuthError } from '../error/BrowserAuthError.mjs';
|
package/dist/cache/CacheKeys.mjs
CHANGED