@azure/msal-browser 5.22.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 +133 -29
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +178 -64
- 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 +49 -0
- package/dist/broker/nativeBroker/PlatformAuthRequest.mjs.map +1 -0
- package/dist/cache/AccountManager.mjs +1 -1
- package/dist/cache/AsyncMemoryStorage.mjs +1 -1
- package/dist/cache/BrowserCacheManager.mjs +1 -1
- package/dist/cache/CacheHelpers.mjs +1 -1
- package/dist/cache/CacheKeys.mjs +1 -1
- package/dist/cache/CookieStorage.mjs +1 -1
- package/dist/cache/DatabaseStorage.mjs +1 -1
- package/dist/cache/EncryptedData.mjs +1 -1
- package/dist/cache/LocalStorage.mjs +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 +27 -2
- package/dist/custom_auth/CustomAuthPublicClientApplication.mjs.map +1 -1
- package/dist/custom_auth/controller/CustomAuthStandardController.mjs +192 -2
- package/dist/custom_auth/controller/CustomAuthStandardController.mjs.map +1 -1
- package/dist/custom_auth/core/CustomAuthAuthority.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs +21 -0
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs +80 -0
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.mjs +102 -0
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs +12 -0
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.mjs +20 -0
- package/dist/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.mjs +36 -0
- package/dist/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.mjs +29 -0
- package/dist/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs +76 -0
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.mjs +36 -0
- package/dist/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.mjs +36 -0
- package/dist/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs +134 -0
- package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs +23 -0
- package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs +22 -0
- package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.mjs +61 -0
- package/dist/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs +87 -0
- package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/core/error/CustomAuthApiError.mjs +3 -2
- package/dist/custom_auth/core/error/CustomAuthApiError.mjs.map +1 -1
- package/dist/custom_auth/core/error/CustomAuthError.mjs +1 -1
- package/dist/custom_auth/core/error/HttpError.mjs +1 -1
- package/dist/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
- package/dist/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
- package/dist/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
- package/dist/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
- package/dist/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
- package/dist/custom_auth/core/error/ParsedUrlError.mjs +1 -1
- package/dist/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/error/UnexpectedError.mjs +1 -1
- package/dist/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
- package/dist/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
- package/dist/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/jit/JitClient.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/mfa/MfaClient.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs +602 -0
- package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs.map +1 -0
- package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs +67 -0
- package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs.map +1 -0
- package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs +46 -0
- package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +3 -2
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.mjs +30 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.mjs.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs +193 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs +236 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.mjs +26 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.mjs.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.mjs +66 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.mjs.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs +97 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.mjs +56 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.mjs.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs +23 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs +14 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs.map +1 -0
- package/dist/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs +3 -2
- package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs.map +1 -1
- package/dist/custom_auth/core/telemetry/FlowApiIdHelperV2.mjs +38 -0
- package/dist/custom_auth/core/telemetry/FlowApiIdHelperV2.mjs.map +1 -0
- package/dist/custom_auth/core/telemetry/PublicApiId.mjs +20 -3
- package/dist/custom_auth/core/telemetry/PublicApiId.mjs.map +1 -1
- package/dist/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
- package/dist/custom_auth/core/utils/CustomHeaderUtils.mjs +1 -1
- package/dist/custom_auth/core/utils/UrlUtils.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
- package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
- package/dist/custom_auth/index.mjs +23 -1
- package/dist/custom_auth/index.mjs.map +1 -1
- package/dist/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.mjs +29 -0
- package/dist/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.mjs.map +1 -0
- package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs +59 -0
- package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.mjs +18 -0
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.mjs.map +1 -0
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.mjs +37 -0
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.mjs.map +1 -0
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.mjs +23 -0
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.mjs.map +1 -0
- package/dist/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.mjs +70 -0
- package/dist/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs +61 -0
- package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs.map +1 -0
- package/dist/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
- package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.mjs +25 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.mjs.map +1 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.mjs +33 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.mjs.map +1 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs +40 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.mjs +25 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.mjs.map +1 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.mjs +47 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.mjs +60 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.mjs.map +1 -0
- package/dist/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
- package/dist/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
- package/dist/encode/Base64Decode.mjs +1 -1
- package/dist/encode/Base64Encode.mjs +1 -1
- package/dist/error/BrowserAuthError.mjs +1 -1
- package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
- package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
- package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
- package/dist/error/NativeAuthError.mjs +1 -1
- package/dist/error/NativeAuthErrorCodes.mjs +1 -1
- package/dist/error/NestedAppAuthError.mjs +1 -1
- package/dist/event/EventHandler.mjs +1 -1
- package/dist/event/EventMessage.mjs +1 -1
- package/dist/event/EventType.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs +21 -14
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/PopupClient.mjs +1 -1
- package/dist/interaction_client/RedirectClient.mjs +11 -8
- package/dist/interaction_client/RedirectClient.mjs.map +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
- package/dist/interaction_client/SilentCacheClient.mjs +1 -1
- package/dist/interaction_client/SilentIframeClient.mjs +1 -1
- package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
- package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
- package/dist/interaction_handler/InteractionHandler.mjs +1 -1
- package/dist/interaction_handler/SilentHandler.mjs +1 -1
- package/dist/log-strings-mapping.json +1381 -1185
- 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 +38 -0
- package/dist/webBrokerBridge/PerfEventNames.mjs.map +1 -0
- package/dist/webBrokerBridge/WebBrokerBridgeError.mjs +1 -1
- package/dist/webBrokerBridge/WebBrokerBridgeErrorMap.mjs +1 -1
- package/dist/webBrokerBridge/adapter/CrossVersionRequestAdapter.mjs +1 -1
- package/dist/webBrokerBridge/index.mjs +2 -1
- package/dist/webBrokerBridge/index.mjs.map +1 -1
- package/lib/custom-auth-path/log-strings-mapping.json +215 -19
- package/lib/custom-auth-path/msal-custom-auth.cjs +3571 -479
- package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
- package/lib/custom-auth-path/msal-custom-auth.js +3571 -479
- 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 +622 -233
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +622 -233
- 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 +59 -1
- package/lib/web-broker-bridge/msal-web-broker-bridge.cjs.map +1 -1
- package/package.json +3 -3
- package/src/broker/nativeBroker/PlatformAuthDOMHandler.ts +217 -45
- package/src/broker/nativeBroker/PlatformAuthExtensionHandler.ts +261 -107
- package/src/broker/nativeBroker/PlatformAuthProvider.ts +92 -37
- package/src/broker/nativeBroker/PlatformAuthRequest.ts +118 -6
- package/src/broker/nativeBroker/PlatformAuthResponse.ts +14 -1
- package/src/cache/LocalStorage.ts +135 -28
- package/src/controllers/StandardController.ts +17 -23
- package/src/custom_auth/CustomAuthActionInputs.ts +11 -0
- package/src/custom_auth/CustomAuthPublicClientApplication.ts +40 -4
- package/src/custom_auth/ICustomAuthPublicClientApplicationV2.ts +44 -0
- package/src/custom_auth/controller/CustomAuthStandardController.ts +360 -1
- package/src/custom_auth/controller/ICustomAuthStandardController.ts +14 -0
- package/src/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.ts +18 -0
- package/src/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.ts +20 -0
- package/src/custom_auth/core/auth_flow/v2/CustomAuthResultV2.ts +133 -0
- package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.ts +146 -0
- package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.ts +8 -0
- package/src/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.ts +15 -0
- package/src/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.ts +33 -0
- package/src/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.ts +25 -0
- package/src/custom_auth/core/auth_flow/v2/result/MFARequestChallengeResultV2.ts +18 -0
- package/src/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.ts +26 -0
- package/src/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.ts +26 -0
- package/src/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.ts +25 -0
- package/src/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.ts +30 -0
- package/src/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.ts +40 -0
- package/src/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.ts +100 -0
- package/src/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.ts +59 -0
- package/src/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.ts +53 -0
- package/src/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.ts +196 -0
- package/src/custom_auth/core/auth_flow/v2/state/CompletedStateV2.ts +16 -0
- package/src/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.ts +44 -0
- package/src/custom_auth/core/auth_flow/v2/state/FailedStateV2.ts +15 -0
- package/src/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.ts +76 -0
- package/src/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.ts +119 -0
- package/src/custom_auth/core/error/CustomAuthApiError.ts +3 -1
- package/src/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.ts +35 -0
- package/src/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.ts +1145 -0
- package/src/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.ts +150 -0
- package/src/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.ts +66 -0
- package/src/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.ts +185 -0
- package/src/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.ts +1 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.ts +30 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.ts +423 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.ts +553 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.ts +24 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.ts +81 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.ts +177 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.ts +129 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.ts +68 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.ts +50 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/response/HalResource.ts +20 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.ts +202 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.ts +111 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.ts +26 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.ts +44 -0
- package/src/custom_auth/core/telemetry/FlowApiIdHelperV2.ts +64 -0
- package/src/custom_auth/core/telemetry/PublicApiId.ts +18 -0
- package/src/custom_auth/index.ts +96 -0
- package/src/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.ts +25 -0
- package/src/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.ts +33 -0
- package/src/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.ts +69 -0
- package/src/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateParametersV2.ts +9 -0
- package/src/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.ts +13 -0
- package/src/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.ts +35 -0
- package/src/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.ts +19 -0
- package/src/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.ts +31 -0
- package/src/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.ts +32 -0
- package/src/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.ts +22 -0
- package/src/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.ts +96 -0
- package/src/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.ts +83 -0
- package/src/custom_auth/sign_in/auth_flow/v2/state/SignInStateParametersV2.ts +12 -0
- package/src/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.ts +21 -0
- package/src/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.ts +32 -0
- package/src/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.ts +28 -0
- package/src/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.ts +20 -0
- package/src/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.ts +48 -0
- package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.ts +34 -0
- package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.ts +63 -0
- package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpStateParametersV2.ts +24 -0
- package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.ts +112 -0
- package/src/interaction_client/PlatformAuthInteractionClient.ts +79 -17
- package/src/interaction_client/RedirectClient.ts +15 -5
- package/src/packageMetadata.ts +1 -1
- package/src/telemetry/BrowserPerformanceEvents.ts +20 -0
- package/src/webBrokerBridge/PerfEventNames.ts +43 -0
- package/src/webBrokerBridge/index.ts +26 -0
- package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts +3 -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/broker/nativeBroker/PlatformAuthRequest.d.ts +68 -5
- package/types/broker/nativeBroker/PlatformAuthRequest.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthResponse.d.ts +12 -1
- package/types/broker/nativeBroker/PlatformAuthResponse.d.ts.map +1 -1
- package/types/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/CustomAuthActionInputs.d.ts +7 -0
- package/types/custom_auth/CustomAuthActionInputs.d.ts.map +1 -1
- package/types/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/types/custom_auth/CustomAuthPublicClientApplication.d.ts +27 -5
- package/types/custom_auth/CustomAuthPublicClientApplication.d.ts.map +1 -1
- package/types/custom_auth/ICustomAuthPublicClientApplicationV2.d.ts +30 -0
- package/types/custom_auth/ICustomAuthPublicClientApplicationV2.d.ts.map +1 -0
- package/types/custom_auth/controller/CustomAuthStandardController.d.ts +11 -2
- package/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
- package/types/custom_auth/controller/ICustomAuthStandardController.d.ts +7 -1
- package/types/custom_auth/controller/ICustomAuthStandardController.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.d.ts +14 -0
- package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.d.ts +14 -0
- package/types/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts +53 -0
- package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.d.ts +40 -0
- package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.d.ts +4 -0
- package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.d.ts +11 -0
- package/types/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.d.ts +23 -0
- package/types/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.d.ts +18 -0
- package/types/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/result/MFARequestChallengeResultV2.d.ts +7 -0
- package/types/custom_auth/core/auth_flow/v2/result/MFARequestChallengeResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.d.ts +15 -0
- package/types/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts +16 -0
- package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts +16 -0
- package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts +18 -0
- package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts +23 -0
- package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts +21 -0
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.d.ts +17 -0
- package/types/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.d.ts +14 -0
- package/types/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts +25 -0
- package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/CompletedStateV2.d.ts +11 -0
- package/types/custom_auth/core/auth_flow/v2/state/CompletedStateV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.d.ts +28 -0
- package/types/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/FailedStateV2.d.ts +10 -0
- package/types/custom_auth/core/auth_flow/v2/state/FailedStateV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.d.ts +18 -0
- package/types/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts +25 -0
- package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/core/error/CustomAuthApiError.d.ts +3 -1
- package/types/custom_auth/core/error/CustomAuthApiError.d.ts.map +1 -1
- package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts +21 -0
- package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts.map +1 -0
- package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts +35 -0
- package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts.map +1 -0
- package/types/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.d.ts +26 -0
- package/types/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.d.ts.map +1 -0
- package/types/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.d.ts +43 -0
- package/types/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.d.ts.map +1 -0
- package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts +80 -0
- package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.d.ts +17 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.d.ts +31 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.d.ts +23 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.d.ts +19 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.d.ts +2 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.d.ts +15 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts +52 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.d.ts +3 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.d.ts +37 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/HalResource.d.ts +12 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/HalResource.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts +133 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.d.ts +70 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts +10 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts +33 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts.map +1 -0
- package/types/custom_auth/core/telemetry/FlowApiIdHelperV2.d.ts +4 -0
- package/types/custom_auth/core/telemetry/FlowApiIdHelperV2.d.ts.map +1 -0
- package/types/custom_auth/core/telemetry/PublicApiId.d.ts +16 -0
- package/types/custom_auth/core/telemetry/PublicApiId.d.ts.map +1 -1
- package/types/custom_auth/index.d.ts +37 -0
- package/types/custom_auth/index.d.ts.map +1 -1
- package/types/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.d.ts +18 -0
- package/types/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.d.ts.map +1 -0
- package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts +22 -0
- package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts.map +1 -0
- package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts +19 -0
- package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateParametersV2.d.ts +3 -0
- package/types/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateParametersV2.d.ts.map +1 -0
- package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.d.ts +9 -0
- package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.d.ts.map +1 -0
- package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.d.ts +22 -0
- package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.d.ts.map +1 -0
- package/types/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.d.ts +12 -0
- package/types/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.d.ts.map +1 -0
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts +21 -0
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts.map +1 -0
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts +17 -0
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts.map +1 -0
- package/types/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.d.ts +9 -0
- package/types/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.d.ts.map +1 -0
- package/types/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.d.ts +17 -0
- package/types/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts +24 -0
- package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts.map +1 -0
- package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateParametersV2.d.ts +4 -0
- package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateParametersV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.d.ts +14 -0
- package/types/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.d.ts +20 -0
- package/types/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts +15 -0
- package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts +8 -0
- package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts +15 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.d.ts +11 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.d.ts +19 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateParametersV2.d.ts +14 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateParametersV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.d.ts +10 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.d.ts.map +1 -0
- package/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/types/interaction_client/RedirectClient.d.ts.map +1 -1
- package/types/packageMetadata.d.ts +1 -1
- package/types/telemetry/BrowserPerformanceEvents.d.ts +13 -0
- package/types/telemetry/BrowserPerformanceEvents.d.ts.map +1 -1
- package/types/webBrokerBridge/PerfEventNames.d.ts +30 -0
- package/types/webBrokerBridge/PerfEventNames.d.ts.map +1 -0
- package/types/webBrokerBridge/index.d.ts +1 -0
- package/types/webBrokerBridge/index.d.ts.map +1 -1
package/lib/msal-browser.cjs
CHANGED
|
@@ -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
|
'use strict';
|
|
4
4
|
|
|
5
|
-
/*! @azure/msal-common v16.14.
|
|
5
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
6
6
|
/*
|
|
7
7
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8
8
|
* Licensed under the MIT License.
|
|
@@ -56,7 +56,7 @@ const RESOURCE = "resource";
|
|
|
56
56
|
const CLI_DATA = "clidata";
|
|
57
57
|
const ATTRIBUTE_TOKENS = "attribute_tokens";
|
|
58
58
|
|
|
59
|
-
/*! @azure/msal-common v16.14.
|
|
59
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
60
60
|
/*
|
|
61
61
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
62
62
|
* Licensed under the MIT License.
|
|
@@ -295,7 +295,7 @@ const JsonWebTokenTypes$1 = {
|
|
|
295
295
|
// Token renewal offset default in seconds
|
|
296
296
|
const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
|
|
297
297
|
|
|
298
|
-
/*! @azure/msal-common v16.14.
|
|
298
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
299
299
|
/*
|
|
300
300
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
301
301
|
* Licensed under the MIT License.
|
|
@@ -324,7 +324,7 @@ function createAuthError(code, correlationId, additionalMessage) {
|
|
|
324
324
|
return new AuthError(code, correlationId, additionalMessage || getDefaultErrorMessage$1(code));
|
|
325
325
|
}
|
|
326
326
|
|
|
327
|
-
/*! @azure/msal-common v16.14.
|
|
327
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
328
328
|
|
|
329
329
|
/*
|
|
330
330
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -347,7 +347,7 @@ function createClientAuthError(errorCode, correlationId, additionalMessage) {
|
|
|
347
347
|
return new ClientAuthError(errorCode, correlationId, additionalMessage);
|
|
348
348
|
}
|
|
349
349
|
|
|
350
|
-
/*! @azure/msal-common v16.14.
|
|
350
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
351
351
|
/*
|
|
352
352
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
353
353
|
* Licensed under the MIT License.
|
|
@@ -433,7 +433,7 @@ var ClientAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
433
433
|
userCanceled: userCanceled
|
|
434
434
|
});
|
|
435
435
|
|
|
436
|
-
/*! @azure/msal-common v16.14.
|
|
436
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
437
437
|
|
|
438
438
|
/*
|
|
439
439
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -471,7 +471,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
|
|
|
471
471
|
};
|
|
472
472
|
}
|
|
473
473
|
|
|
474
|
-
/*! @azure/msal-common v16.14.
|
|
474
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
475
475
|
|
|
476
476
|
/*
|
|
477
477
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -537,7 +537,7 @@ function getJWSPayload(authToken, correlationId) {
|
|
|
537
537
|
return matches[2];
|
|
538
538
|
}
|
|
539
539
|
|
|
540
|
-
/*! @azure/msal-common v16.14.
|
|
540
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
541
541
|
|
|
542
542
|
/*
|
|
543
543
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -625,7 +625,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
|
|
|
625
625
|
return updatedAccountInfo;
|
|
626
626
|
}
|
|
627
627
|
|
|
628
|
-
/*! @azure/msal-common v16.14.
|
|
628
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
629
629
|
/*
|
|
630
630
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
631
631
|
* Licensed under the MIT License.
|
|
@@ -639,7 +639,7 @@ const AuthorityType = {
|
|
|
639
639
|
Ciam: 3,
|
|
640
640
|
};
|
|
641
641
|
|
|
642
|
-
/*! @azure/msal-common v16.14.
|
|
642
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
643
643
|
/*
|
|
644
644
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
645
645
|
* Licensed under the MIT License.
|
|
@@ -661,7 +661,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
|
|
|
661
661
|
return null;
|
|
662
662
|
}
|
|
663
663
|
|
|
664
|
-
/*! @azure/msal-common v16.14.
|
|
664
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
665
665
|
/*
|
|
666
666
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
667
667
|
* Licensed under the MIT License.
|
|
@@ -685,7 +685,7 @@ const ProtocolMode = {
|
|
|
685
685
|
EAR: "EAR",
|
|
686
686
|
};
|
|
687
687
|
|
|
688
|
-
/*! @azure/msal-common v16.14.
|
|
688
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
689
689
|
/**
|
|
690
690
|
* Returns the AccountInfo interface for this account.
|
|
691
691
|
* @internal
|
|
@@ -874,7 +874,7 @@ function isAccountEntity(entity) {
|
|
|
874
874
|
entity.hasOwnProperty("authorityType"));
|
|
875
875
|
}
|
|
876
876
|
|
|
877
|
-
/*! @azure/msal-common v16.14.
|
|
877
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
878
878
|
/*
|
|
879
879
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
880
880
|
* Licensed under the MIT License.
|
|
@@ -891,7 +891,7 @@ var AuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
891
891
|
unexpectedError: unexpectedError
|
|
892
892
|
});
|
|
893
893
|
|
|
894
|
-
/*! @azure/msal-common v16.14.
|
|
894
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
895
895
|
|
|
896
896
|
/*
|
|
897
897
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -911,7 +911,7 @@ function createClientConfigurationError(errorCode, correlationId) {
|
|
|
911
911
|
return new ClientConfigurationError(errorCode, correlationId);
|
|
912
912
|
}
|
|
913
913
|
|
|
914
|
-
/*! @azure/msal-common v16.14.
|
|
914
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
915
915
|
/*
|
|
916
916
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
917
917
|
* Licensed under the MIT License.
|
|
@@ -981,7 +981,7 @@ var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
981
981
|
urlParseError: urlParseError
|
|
982
982
|
});
|
|
983
983
|
|
|
984
|
-
/*! @azure/msal-common v16.14.
|
|
984
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
985
985
|
|
|
986
986
|
/*
|
|
987
987
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1039,7 +1039,7 @@ class AuthenticationHeaderParser {
|
|
|
1039
1039
|
}
|
|
1040
1040
|
}
|
|
1041
1041
|
|
|
1042
|
-
/*! @azure/msal-common v16.14.
|
|
1042
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
1043
1043
|
/*
|
|
1044
1044
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1045
1045
|
* Licensed under the MIT License.
|
|
@@ -1051,7 +1051,7 @@ function isOpenIdConfigResponse(response) {
|
|
|
1051
1051
|
response.hasOwnProperty("jwks_uri"));
|
|
1052
1052
|
}
|
|
1053
1053
|
|
|
1054
|
-
/*! @azure/msal-common v16.14.
|
|
1054
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
1055
1055
|
/*
|
|
1056
1056
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1057
1057
|
* Licensed under the MIT License.
|
|
@@ -1131,7 +1131,7 @@ class StringUtils {
|
|
|
1131
1131
|
}
|
|
1132
1132
|
}
|
|
1133
1133
|
|
|
1134
|
-
/*! @azure/msal-common v16.14.
|
|
1134
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
1135
1135
|
|
|
1136
1136
|
/*
|
|
1137
1137
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1289,7 +1289,7 @@ class UrlString {
|
|
|
1289
1289
|
}
|
|
1290
1290
|
}
|
|
1291
1291
|
|
|
1292
|
-
/*! @azure/msal-common v16.14.
|
|
1292
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
1293
1293
|
|
|
1294
1294
|
/*
|
|
1295
1295
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1443,7 +1443,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
1443
1443
|
return null;
|
|
1444
1444
|
}
|
|
1445
1445
|
|
|
1446
|
-
/*! @azure/msal-common v16.14.
|
|
1446
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
1447
1447
|
/*
|
|
1448
1448
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1449
1449
|
* Licensed under the MIT License.
|
|
@@ -1461,7 +1461,7 @@ const AzureCloudInstance = {
|
|
|
1461
1461
|
AzureUsGovernment: "https://login.microsoftonline.us",
|
|
1462
1462
|
};
|
|
1463
1463
|
|
|
1464
|
-
/*! @azure/msal-common v16.14.
|
|
1464
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
1465
1465
|
/*
|
|
1466
1466
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1467
1467
|
* Licensed under the MIT License.
|
|
@@ -1471,7 +1471,7 @@ function isCloudInstanceDiscoveryResponse(response) {
|
|
|
1471
1471
|
response.hasOwnProperty("metadata"));
|
|
1472
1472
|
}
|
|
1473
1473
|
|
|
1474
|
-
/*! @azure/msal-common v16.14.
|
|
1474
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
1475
1475
|
/*
|
|
1476
1476
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1477
1477
|
* Licensed under the MIT License.
|
|
@@ -1481,7 +1481,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
|
|
|
1481
1481
|
response.hasOwnProperty("error_description"));
|
|
1482
1482
|
}
|
|
1483
1483
|
|
|
1484
|
-
/*! @azure/msal-common v16.14.
|
|
1484
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
1485
1485
|
/*
|
|
1486
1486
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1487
1487
|
* Licensed under the MIT License.
|
|
@@ -1552,7 +1552,7 @@ const RegionDiscoveryGetCurrentVersion = "regionDiscoveryGetCurrentVersion";
|
|
|
1552
1552
|
const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken";
|
|
1553
1553
|
const SetUserData = "setUserData";
|
|
1554
1554
|
|
|
1555
|
-
/*! @azure/msal-common v16.14.
|
|
1555
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
1556
1556
|
/*
|
|
1557
1557
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1558
1558
|
* Licensed under the MIT License.
|
|
@@ -1645,7 +1645,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
|
|
|
1645
1645
|
};
|
|
1646
1646
|
};
|
|
1647
1647
|
|
|
1648
|
-
/*! @azure/msal-common v16.14.
|
|
1648
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
1649
1649
|
|
|
1650
1650
|
/*
|
|
1651
1651
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1756,7 +1756,7 @@ RegionDiscovery.IMDS_OPTIONS = {
|
|
|
1756
1756
|
},
|
|
1757
1757
|
};
|
|
1758
1758
|
|
|
1759
|
-
/*! @azure/msal-common v16.14.
|
|
1759
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
1760
1760
|
/*
|
|
1761
1761
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1762
1762
|
* Licensed under the MIT License.
|
|
@@ -1821,7 +1821,7 @@ function wasClockTurnedBack(cachedAt) {
|
|
|
1821
1821
|
return cachedAtSec > nowSeconds();
|
|
1822
1822
|
}
|
|
1823
1823
|
|
|
1824
|
-
/*! @azure/msal-common v16.14.
|
|
1824
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
1825
1825
|
|
|
1826
1826
|
/*
|
|
1827
1827
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2108,7 +2108,7 @@ function serializeAttributeTokens(attributeTokens) {
|
|
|
2108
2108
|
return [...attributeTokens].sort().join(" ");
|
|
2109
2109
|
}
|
|
2110
2110
|
|
|
2111
|
-
/*! @azure/msal-common v16.14.
|
|
2111
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
2112
2112
|
|
|
2113
2113
|
/*
|
|
2114
2114
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3076,7 +3076,7 @@ function buildStaticAuthorityOptions(authOptions) {
|
|
|
3076
3076
|
};
|
|
3077
3077
|
}
|
|
3078
3078
|
|
|
3079
|
-
/*! @azure/msal-common v16.14.
|
|
3079
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
3080
3080
|
|
|
3081
3081
|
/*
|
|
3082
3082
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3110,7 +3110,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
|
|
|
3110
3110
|
}
|
|
3111
3111
|
}
|
|
3112
3112
|
|
|
3113
|
-
/*! @azure/msal-common v16.14.
|
|
3113
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
3114
3114
|
|
|
3115
3115
|
/*
|
|
3116
3116
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3306,7 +3306,7 @@ class ScopeSet {
|
|
|
3306
3306
|
}
|
|
3307
3307
|
}
|
|
3308
3308
|
|
|
3309
|
-
/*! @azure/msal-common v16.14.
|
|
3309
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
3310
3310
|
|
|
3311
3311
|
/*
|
|
3312
3312
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3792,7 +3792,7 @@ function addAttributeTokens(parameters, attributeTokens) {
|
|
|
3792
3792
|
}
|
|
3793
3793
|
}
|
|
3794
3794
|
|
|
3795
|
-
/*! @azure/msal-common v16.14.
|
|
3795
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
3796
3796
|
|
|
3797
3797
|
/*
|
|
3798
3798
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3914,7 +3914,7 @@ function validateUrl(url, logger, correlationId) {
|
|
|
3914
3914
|
}
|
|
3915
3915
|
}
|
|
3916
3916
|
|
|
3917
|
-
/*! @azure/msal-common v16.14.
|
|
3917
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
3918
3918
|
|
|
3919
3919
|
/*
|
|
3920
3920
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3962,7 +3962,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
|
|
|
3962
3962
|
},
|
|
3963
3963
|
};
|
|
3964
3964
|
|
|
3965
|
-
/*! @azure/msal-common v16.14.
|
|
3965
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
3966
3966
|
|
|
3967
3967
|
/*
|
|
3968
3968
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3985,7 +3985,7 @@ const DEFAULT_TOKEN_BINDING_KEY_MANAGER = {
|
|
|
3985
3985
|
},
|
|
3986
3986
|
};
|
|
3987
3987
|
|
|
3988
|
-
/*! @azure/msal-common v16.14.
|
|
3988
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
3989
3989
|
/*
|
|
3990
3990
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3991
3991
|
* Licensed under the MIT License.
|
|
@@ -4274,12 +4274,12 @@ class Logger {
|
|
|
4274
4274
|
}
|
|
4275
4275
|
}
|
|
4276
4276
|
|
|
4277
|
-
/*! @azure/msal-common v16.14.
|
|
4277
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
4278
4278
|
/* eslint-disable header/header */
|
|
4279
4279
|
const name$1 = "@azure/msal-common";
|
|
4280
|
-
const version$1 = "16.14.
|
|
4280
|
+
const version$1 = "16.14.2";
|
|
4281
4281
|
|
|
4282
|
-
/*! @azure/msal-common v16.14.
|
|
4282
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
4283
4283
|
/*
|
|
4284
4284
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4285
4285
|
* Licensed under the MIT License.
|
|
@@ -4287,7 +4287,7 @@ const version$1 = "16.14.1";
|
|
|
4287
4287
|
const cacheQuotaExceeded = "cache_quota_exceeded";
|
|
4288
4288
|
const cacheErrorUnknown = "cache_error_unknown";
|
|
4289
4289
|
|
|
4290
|
-
/*! @azure/msal-common v16.14.
|
|
4290
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
4291
4291
|
|
|
4292
4292
|
/*
|
|
4293
4293
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4325,7 +4325,7 @@ function createCacheError(e) {
|
|
|
4325
4325
|
}
|
|
4326
4326
|
}
|
|
4327
4327
|
|
|
4328
|
-
/*! @azure/msal-common v16.14.
|
|
4328
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
4329
4329
|
|
|
4330
4330
|
/*
|
|
4331
4331
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5513,7 +5513,7 @@ class DefaultStorageClass extends CacheManager {
|
|
|
5513
5513
|
}
|
|
5514
5514
|
}
|
|
5515
5515
|
|
|
5516
|
-
/*! @azure/msal-common v16.14.
|
|
5516
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
5517
5517
|
/*
|
|
5518
5518
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5519
5519
|
* Licensed under the MIT License.
|
|
@@ -5578,7 +5578,7 @@ const IntFields = new Set([
|
|
|
5578
5578
|
"fetchRetryCount",
|
|
5579
5579
|
]);
|
|
5580
5580
|
|
|
5581
|
-
/*! @azure/msal-common v16.14.
|
|
5581
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
5582
5582
|
|
|
5583
5583
|
/*
|
|
5584
5584
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5636,7 +5636,7 @@ class StubPerformanceClient {
|
|
|
5636
5636
|
}
|
|
5637
5637
|
}
|
|
5638
5638
|
|
|
5639
|
-
/*! @azure/msal-common v16.14.
|
|
5639
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
5640
5640
|
|
|
5641
5641
|
/*
|
|
5642
5642
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5734,7 +5734,7 @@ function isOidcProtocolMode(config) {
|
|
|
5734
5734
|
return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
|
|
5735
5735
|
}
|
|
5736
5736
|
|
|
5737
|
-
/*! @azure/msal-common v16.14.
|
|
5737
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
5738
5738
|
/*
|
|
5739
5739
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5740
5740
|
* Licensed under the MIT License.
|
|
@@ -5761,7 +5761,7 @@ function isOidcProtocolMode(config) {
|
|
|
5761
5761
|
}
|
|
5762
5762
|
}
|
|
5763
5763
|
|
|
5764
|
-
/*! @azure/msal-common v16.14.
|
|
5764
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
5765
5765
|
|
|
5766
5766
|
/*
|
|
5767
5767
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5782,7 +5782,7 @@ function createJoseHeaderError(code, correlationId) {
|
|
|
5782
5782
|
return new JoseHeaderError(code, correlationId);
|
|
5783
5783
|
}
|
|
5784
5784
|
|
|
5785
|
-
/*! @azure/msal-common v16.14.
|
|
5785
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
5786
5786
|
/*
|
|
5787
5787
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5788
5788
|
* Licensed under the MIT License.
|
|
@@ -5807,7 +5807,7 @@ function isPlainObject(value) {
|
|
|
5807
5807
|
return Object.getPrototypeOf(value) === proto;
|
|
5808
5808
|
}
|
|
5809
5809
|
|
|
5810
|
-
/*! @azure/msal-common v16.14.
|
|
5810
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
5811
5811
|
/*
|
|
5812
5812
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5813
5813
|
* Licensed under the MIT License.
|
|
@@ -5817,7 +5817,7 @@ const missingAlgError = "missing_alg_error";
|
|
|
5817
5817
|
const missingJwkError = "missing_jwk_error";
|
|
5818
5818
|
const invalidJwkError = "invalid_jwk_error";
|
|
5819
5819
|
|
|
5820
|
-
/*! @azure/msal-common v16.14.
|
|
5820
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
5821
5821
|
|
|
5822
5822
|
/*
|
|
5823
5823
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5883,7 +5883,7 @@ class JoseHeader {
|
|
|
5883
5883
|
}
|
|
5884
5884
|
}
|
|
5885
5885
|
|
|
5886
|
-
/*! @azure/msal-common v16.14.
|
|
5886
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
5887
5887
|
|
|
5888
5888
|
/*
|
|
5889
5889
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5984,7 +5984,7 @@ class PopTokenGenerator {
|
|
|
5984
5984
|
}
|
|
5985
5985
|
}
|
|
5986
5986
|
|
|
5987
|
-
/*! @azure/msal-common v16.14.
|
|
5987
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
5988
5988
|
|
|
5989
5989
|
/*
|
|
5990
5990
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6129,7 +6129,7 @@ class DpopProofGenerator {
|
|
|
6129
6129
|
}
|
|
6130
6130
|
}
|
|
6131
6131
|
|
|
6132
|
-
/*! @azure/msal-common v16.14.
|
|
6132
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
6133
6133
|
/*
|
|
6134
6134
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6135
6135
|
* Licensed under the MIT License.
|
|
@@ -6193,7 +6193,7 @@ var InteractionRequiredAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
6193
6193
|
uiNotAllowed: uiNotAllowed
|
|
6194
6194
|
});
|
|
6195
6195
|
|
|
6196
|
-
/*! @azure/msal-common v16.14.
|
|
6196
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
6197
6197
|
|
|
6198
6198
|
/*
|
|
6199
6199
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6260,7 +6260,7 @@ function createInteractionRequiredAuthError(errorCode, correlationId, errorMessa
|
|
|
6260
6260
|
return new InteractionRequiredAuthError(errorCode, correlationId, errorMessage);
|
|
6261
6261
|
}
|
|
6262
6262
|
|
|
6263
|
-
/*! @azure/msal-common v16.14.
|
|
6263
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
6264
6264
|
|
|
6265
6265
|
/*
|
|
6266
6266
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6279,7 +6279,7 @@ class ServerError extends AuthError {
|
|
|
6279
6279
|
}
|
|
6280
6280
|
}
|
|
6281
6281
|
|
|
6282
|
-
/*! @azure/msal-common v16.14.
|
|
6282
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
6283
6283
|
|
|
6284
6284
|
/*
|
|
6285
6285
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6350,7 +6350,7 @@ function parseRequestState(base64Decode, state, correlationId) {
|
|
|
6350
6350
|
}
|
|
6351
6351
|
}
|
|
6352
6352
|
|
|
6353
|
-
/*! @azure/msal-common v16.14.
|
|
6353
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
6354
6354
|
|
|
6355
6355
|
/*
|
|
6356
6356
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6778,7 +6778,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
|
|
|
6778
6778
|
return baseAccount;
|
|
6779
6779
|
}
|
|
6780
6780
|
|
|
6781
|
-
/*! @azure/msal-common v16.14.
|
|
6781
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
6782
6782
|
/*
|
|
6783
6783
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6784
6784
|
* Licensed under the MIT License.
|
|
@@ -6788,7 +6788,7 @@ const CcsCredentialType = {
|
|
|
6788
6788
|
UPN: "UPN",
|
|
6789
6789
|
};
|
|
6790
6790
|
|
|
6791
|
-
/*! @azure/msal-common v16.14.
|
|
6791
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
6792
6792
|
/*
|
|
6793
6793
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6794
6794
|
* Licensed under the MIT License.
|
|
@@ -6807,7 +6807,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint, fmiP
|
|
|
6807
6807
|
}
|
|
6808
6808
|
}
|
|
6809
6809
|
|
|
6810
|
-
/*! @azure/msal-common v16.14.
|
|
6810
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
6811
6811
|
|
|
6812
6812
|
/*
|
|
6813
6813
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6831,7 +6831,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
|
|
|
6831
6831
|
};
|
|
6832
6832
|
}
|
|
6833
6833
|
|
|
6834
|
-
/*! @azure/msal-common v16.14.
|
|
6834
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
6835
6835
|
|
|
6836
6836
|
/*
|
|
6837
6837
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6917,7 +6917,7 @@ class ThrottlingUtils {
|
|
|
6917
6917
|
}
|
|
6918
6918
|
}
|
|
6919
6919
|
|
|
6920
|
-
/*! @azure/msal-common v16.14.
|
|
6920
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
6921
6921
|
|
|
6922
6922
|
/*
|
|
6923
6923
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6948,7 +6948,7 @@ function createNetworkError(error, httpStatus, responseHeaders, additionalError)
|
|
|
6948
6948
|
return new NetworkError(error, httpStatus, responseHeaders);
|
|
6949
6949
|
}
|
|
6950
6950
|
|
|
6951
|
-
/*! @azure/msal-common v16.14.
|
|
6951
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
6952
6952
|
|
|
6953
6953
|
/*
|
|
6954
6954
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7081,7 +7081,7 @@ async function sendPostRequest(thumbprint, tokenEndpoint, options, correlationId
|
|
|
7081
7081
|
return response;
|
|
7082
7082
|
}
|
|
7083
7083
|
|
|
7084
|
-
/*! @azure/msal-common v16.14.
|
|
7084
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
7085
7085
|
|
|
7086
7086
|
/*
|
|
7087
7087
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7345,7 +7345,7 @@ class AuthorizationCodeClient {
|
|
|
7345
7345
|
}
|
|
7346
7346
|
}
|
|
7347
7347
|
|
|
7348
|
-
/*! @azure/msal-common v16.14.
|
|
7348
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
7349
7349
|
|
|
7350
7350
|
/*
|
|
7351
7351
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7572,7 +7572,7 @@ function extractLoginHint(account) {
|
|
|
7572
7572
|
return account.loginHint || account.idTokenClaims?.login_hint || null;
|
|
7573
7573
|
}
|
|
7574
7574
|
|
|
7575
|
-
/*! @azure/msal-common v16.14.
|
|
7575
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
7576
7576
|
|
|
7577
7577
|
/*
|
|
7578
7578
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8121,7 +8121,7 @@ class PerformanceClient {
|
|
|
8121
8121
|
}
|
|
8122
8122
|
}
|
|
8123
8123
|
|
|
8124
|
-
/*! @azure/msal-common v16.14.
|
|
8124
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
8125
8125
|
|
|
8126
8126
|
/*
|
|
8127
8127
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8280,6 +8280,7 @@ class RefreshTokenClient {
|
|
|
8280
8280
|
addRedirectUri(parameters, request.redirectUri);
|
|
8281
8281
|
}
|
|
8282
8282
|
addScopes(parameters, request.scopes, request.correlationId, true, this.config.authOptions.authority.options.OIDCOptions?.defaultScopes);
|
|
8283
|
+
addResource(parameters, request.resource);
|
|
8283
8284
|
addGrantType(parameters, GrantType.REFRESH_TOKEN_GRANT);
|
|
8284
8285
|
addClientInfo(parameters);
|
|
8285
8286
|
addLibraryInfo(parameters, this.config.libraryInfo);
|
|
@@ -8355,7 +8356,7 @@ class RefreshTokenClient {
|
|
|
8355
8356
|
}
|
|
8356
8357
|
}
|
|
8357
8358
|
|
|
8358
|
-
/*! @azure/msal-common v16.14.
|
|
8359
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
8359
8360
|
|
|
8360
8361
|
/*
|
|
8361
8362
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8648,7 +8649,7 @@ class StubServerTelemetryManager extends ServerTelemetryManager {
|
|
|
8648
8649
|
clearNativeBrokerErrorCode() { }
|
|
8649
8650
|
}
|
|
8650
8651
|
|
|
8651
|
-
/*! @azure/msal-common v16.14.
|
|
8652
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
8652
8653
|
|
|
8653
8654
|
/*
|
|
8654
8655
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8775,7 +8776,7 @@ class SilentFlowClient {
|
|
|
8775
8776
|
}
|
|
8776
8777
|
}
|
|
8777
8778
|
|
|
8778
|
-
/*! @azure/msal-common v16.14.
|
|
8779
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
8779
8780
|
|
|
8780
8781
|
/*
|
|
8781
8782
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8791,7 +8792,7 @@ const StubbedNetworkModule = {
|
|
|
8791
8792
|
},
|
|
8792
8793
|
};
|
|
8793
8794
|
|
|
8794
|
-
/*! @azure/msal-common v16.14.
|
|
8795
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
8795
8796
|
|
|
8796
8797
|
/*
|
|
8797
8798
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8926,6 +8927,20 @@ const AcquireTokenByCodeAsync = "acquireTokenByCodeAsync";
|
|
|
8926
8927
|
const HandleRedirectPromiseMeasurement = "handleRedirectPromise";
|
|
8927
8928
|
const HandleNativeRedirectPromiseMeasurement = "handleNativeRedirectPromise";
|
|
8928
8929
|
const NativeMessageHandlerHandshake = "nativeMessageHandlerHandshake";
|
|
8930
|
+
const NativeGenerateAuthResult = "nativeGenerateAuthResult";
|
|
8931
|
+
const PlatformAuthProviderDiscovery = "platformAuthProviderDiscovery";
|
|
8932
|
+
const PlatformAuthDOMCreateProvider = "platformAuthDOMCreateProvider";
|
|
8933
|
+
const PlatformAuthDOMGetSupportedContracts = "platformAuthDOMGetSupportedContracts";
|
|
8934
|
+
const PlatformAuthDOMInitializeRequest = "platformAuthDOMInitializeRequest";
|
|
8935
|
+
const PlatformAuthDOMGetToken = "platformAuthDOMGetToken";
|
|
8936
|
+
const PlatformAuthDOMValidateResponse = "platformAuthDOMValidateResponse";
|
|
8937
|
+
const PlatformAuthExtensionCreateProvider = "platformAuthExtensionCreateProvider";
|
|
8938
|
+
const PlatformAuthExtensionGetToken = "platformAuthExtensionGetToken";
|
|
8939
|
+
const PlatformAuthExtensionValidateResponse = "platformAuthExtensionValidateResponse";
|
|
8940
|
+
const PlatformAuthInteractionClientInitializeRequest = "platformAuthInteractionClientInitializeRequest";
|
|
8941
|
+
const PlatformAuthHandleNativeResponse = "platformAuthHandleNativeResponse";
|
|
8942
|
+
const PlatformAuthCacheAccount = "platformAuthCacheAccount";
|
|
8943
|
+
const PlatformAuthCacheNativeTokens = "platformAuthCacheNativeTokens";
|
|
8929
8944
|
const RemoveHiddenIframe = "removeHiddenIframe";
|
|
8930
8945
|
const ImportExistingCache = "importExistingCache";
|
|
8931
8946
|
/**
|
|
@@ -11100,7 +11115,9 @@ class LocalStorage {
|
|
|
11100
11115
|
await invokeAsync(this.importExistingCache.bind(this), ImportExistingCache, this.logger, this.performanceClient, correlationId)(correlationId);
|
|
11101
11116
|
// Register listener for cache updates in other tabs
|
|
11102
11117
|
this.broadcast.addEventListener("message", (event) => {
|
|
11103
|
-
this.updateCache(event, correlationId)
|
|
11118
|
+
this.updateCache(event, correlationId).catch(() => {
|
|
11119
|
+
this.logger.error("0ufnan", correlationId);
|
|
11120
|
+
});
|
|
11104
11121
|
});
|
|
11105
11122
|
this.initialized = true;
|
|
11106
11123
|
}
|
|
@@ -11162,19 +11179,20 @@ class LocalStorage {
|
|
|
11162
11179
|
this.broadcast.postMessage({
|
|
11163
11180
|
key: key,
|
|
11164
11181
|
value: value,
|
|
11165
|
-
context: this.
|
|
11182
|
+
context: this.getBroadcastContext(key),
|
|
11166
11183
|
});
|
|
11167
11184
|
}
|
|
11168
11185
|
removeItem(key) {
|
|
11169
|
-
|
|
11170
|
-
|
|
11186
|
+
const itemExists = this.containsKey(key) || this.memoryStorage.containsKey(key);
|
|
11187
|
+
window.localStorage.removeItem(key);
|
|
11188
|
+
this.memoryStorage.removeItem(key);
|
|
11189
|
+
if (itemExists) {
|
|
11171
11190
|
this.broadcast.postMessage({
|
|
11172
11191
|
key: key,
|
|
11173
11192
|
value: null,
|
|
11174
|
-
context: this.
|
|
11193
|
+
context: this.getBroadcastContext(key),
|
|
11175
11194
|
});
|
|
11176
11195
|
}
|
|
11177
|
-
window.localStorage.removeItem(key);
|
|
11178
11196
|
}
|
|
11179
11197
|
getKeys() {
|
|
11180
11198
|
return Object.keys(window.localStorage);
|
|
@@ -11291,29 +11309,73 @@ class LocalStorage {
|
|
|
11291
11309
|
await Promise.all(promiseArr);
|
|
11292
11310
|
return importedArr;
|
|
11293
11311
|
}
|
|
11294
|
-
/**
|
|
11295
|
-
* Gets encryption context for a given cache entry. This is clientId for app specific entries, empty string for shared entries
|
|
11296
|
-
* @param key
|
|
11297
|
-
* @returns
|
|
11298
|
-
*/
|
|
11299
11312
|
getContext(key) {
|
|
11300
|
-
|
|
11301
|
-
|
|
11302
|
-
|
|
11313
|
+
return key.includes(this.clientId) ? this.clientId : "";
|
|
11314
|
+
}
|
|
11315
|
+
getBroadcastContext(key) {
|
|
11316
|
+
const normalizedKey = key.toLowerCase();
|
|
11317
|
+
const keySegments = normalizedKey.split(CACHE_KEY_SEPARATOR);
|
|
11318
|
+
if (keySegments.length > 1) {
|
|
11319
|
+
return keySegments[4] === this.clientId.toLowerCase()
|
|
11320
|
+
? this.clientId
|
|
11321
|
+
: "";
|
|
11322
|
+
}
|
|
11323
|
+
const credentialType = this.getCredentialType(normalizedKey);
|
|
11324
|
+
if (credentialType) {
|
|
11325
|
+
const ownerPrefix = `-${credentialType}-${this.clientId.toLowerCase()}-`;
|
|
11326
|
+
return normalizedKey.includes(ownerPrefix) ? this.clientId : "";
|
|
11327
|
+
}
|
|
11328
|
+
return normalizedKey.includes(this.clientId.toLowerCase())
|
|
11329
|
+
? this.clientId
|
|
11330
|
+
: "";
|
|
11331
|
+
}
|
|
11332
|
+
getCredentialType(key) {
|
|
11333
|
+
const normalizedKey = key.toLowerCase();
|
|
11334
|
+
const keySegments = normalizedKey.split(CACHE_KEY_SEPARATOR);
|
|
11335
|
+
const structuredCredentialType = keySegments[3];
|
|
11336
|
+
return Object.values(CredentialType)
|
|
11337
|
+
.map((type) => type.toLowerCase())
|
|
11338
|
+
.find((type) => structuredCredentialType === type ||
|
|
11339
|
+
normalizedKey.includes(`-${type}-`));
|
|
11340
|
+
}
|
|
11341
|
+
isFamilyRefreshToken(key, credentialType) {
|
|
11342
|
+
if (credentialType !==
|
|
11343
|
+
CredentialType.REFRESH_TOKEN.toLowerCase()) {
|
|
11344
|
+
return false;
|
|
11303
11345
|
}
|
|
11304
|
-
|
|
11346
|
+
const normalizedKey = key.toLowerCase();
|
|
11347
|
+
const keySegments = normalizedKey.split(CACHE_KEY_SEPARATOR);
|
|
11348
|
+
return keySegments.length > 1
|
|
11349
|
+
? keySegments[4] === THE_FAMILY_ID
|
|
11350
|
+
: normalizedKey.includes(`-${credentialType}-${THE_FAMILY_ID}-`);
|
|
11305
11351
|
}
|
|
11306
|
-
|
|
11352
|
+
isContextValid(key, context) {
|
|
11353
|
+
const credentialType = this.getCredentialType(key);
|
|
11354
|
+
const isFamilyRefreshToken = credentialType && this.isFamilyRefreshToken(key, credentialType);
|
|
11355
|
+
const isClientBoundCredential = !!credentialType && !isFamilyRefreshToken;
|
|
11356
|
+
return ((!isClientBoundCredential || !!context) &&
|
|
11357
|
+
context === this.getBroadcastContext(key));
|
|
11358
|
+
}
|
|
11359
|
+
async updateCache(event, correlationId) {
|
|
11307
11360
|
this.logger.trace("17cxcm", correlationId);
|
|
11308
11361
|
const perfMeasurement = this.performanceClient.startMeasurement(LocalStorageUpdated);
|
|
11309
11362
|
perfMeasurement.add({ isBackground: true });
|
|
11310
|
-
const
|
|
11311
|
-
|
|
11363
|
+
const key = event.data?.key;
|
|
11364
|
+
const context = event.data?.context;
|
|
11365
|
+
if (typeof key !== "string" || !key) {
|
|
11312
11366
|
this.logger.error("0e10qr", correlationId);
|
|
11313
11367
|
perfMeasurement.end({ success: false, errorCode: "noKey" });
|
|
11314
11368
|
return;
|
|
11315
11369
|
}
|
|
11316
|
-
if (
|
|
11370
|
+
if (typeof context !== "string") {
|
|
11371
|
+
this.logger.error("16gtk4", correlationId);
|
|
11372
|
+
perfMeasurement.end({
|
|
11373
|
+
success: false,
|
|
11374
|
+
errorCode: "noContext",
|
|
11375
|
+
});
|
|
11376
|
+
return;
|
|
11377
|
+
}
|
|
11378
|
+
if (!this.isContextValid(key, context)) {
|
|
11317
11379
|
this.logger.trace(`04rtdy ${context}`, correlationId);
|
|
11318
11380
|
/*
|
|
11319
11381
|
* Discarded rather than ended: this is expected routing, not a failure.
|
|
@@ -11331,15 +11393,36 @@ class LocalStorage {
|
|
|
11331
11393
|
perfMeasurement.discard();
|
|
11332
11394
|
return;
|
|
11333
11395
|
}
|
|
11334
|
-
|
|
11335
|
-
|
|
11336
|
-
this.
|
|
11396
|
+
const persistedValue = this.getItem(key);
|
|
11397
|
+
try {
|
|
11398
|
+
const value = await this.getItemFromEncryptedCache(key, correlationId);
|
|
11399
|
+
// A newer write or removal occurred while this entry was decrypted.
|
|
11400
|
+
if (this.getItem(key) !== persistedValue) {
|
|
11401
|
+
perfMeasurement.discard();
|
|
11402
|
+
return;
|
|
11403
|
+
}
|
|
11404
|
+
if (!value) {
|
|
11405
|
+
this.memoryStorage.removeItem(key);
|
|
11406
|
+
this.logger.verbose("04ypih", correlationId);
|
|
11407
|
+
}
|
|
11408
|
+
else {
|
|
11409
|
+
this.memoryStorage.setItem(key, value);
|
|
11410
|
+
this.logger.verbose("1vzsgt", correlationId);
|
|
11411
|
+
}
|
|
11412
|
+
perfMeasurement.end({ success: true });
|
|
11337
11413
|
}
|
|
11338
|
-
|
|
11339
|
-
this.
|
|
11340
|
-
|
|
11414
|
+
catch {
|
|
11415
|
+
if (this.getItem(key) !== persistedValue) {
|
|
11416
|
+
perfMeasurement.discard();
|
|
11417
|
+
return;
|
|
11418
|
+
}
|
|
11419
|
+
this.memoryStorage.removeItem(key);
|
|
11420
|
+
this.logger.error("0flmza", correlationId);
|
|
11421
|
+
perfMeasurement.end({
|
|
11422
|
+
success: false,
|
|
11423
|
+
errorCode: "cacheUpdateFailed",
|
|
11424
|
+
});
|
|
11341
11425
|
}
|
|
11342
|
-
perfMeasurement.end({ success: true });
|
|
11343
11426
|
}
|
|
11344
11427
|
}
|
|
11345
11428
|
|
|
@@ -11412,7 +11495,7 @@ const EventType = {
|
|
|
11412
11495
|
|
|
11413
11496
|
/* eslint-disable header/header */
|
|
11414
11497
|
const name = "@azure/msal-browser";
|
|
11415
|
-
const version = "5.
|
|
11498
|
+
const version = "5.24.0";
|
|
11416
11499
|
|
|
11417
11500
|
/*
|
|
11418
11501
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -13771,6 +13854,49 @@ class InteractionHandler {
|
|
|
13771
13854
|
}
|
|
13772
13855
|
}
|
|
13773
13856
|
|
|
13857
|
+
/*
|
|
13858
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
13859
|
+
* Licensed under the MIT License.
|
|
13860
|
+
*/
|
|
13861
|
+
/**
|
|
13862
|
+
* Token types supported by the platform broker request contract.
|
|
13863
|
+
*/
|
|
13864
|
+
const PlatformAuthTokenType = {
|
|
13865
|
+
DPOP_WITH_PROOF: "dpop+proof",
|
|
13866
|
+
};
|
|
13867
|
+
const PROOF_OF_POSSESSION_TOKEN_TYPES = [
|
|
13868
|
+
AuthenticationScheme$1.POP,
|
|
13869
|
+
AuthenticationScheme$1.DPOP,
|
|
13870
|
+
PlatformAuthTokenType.DPOP_WITH_PROOF,
|
|
13871
|
+
];
|
|
13872
|
+
/**
|
|
13873
|
+
* Returns whether a platform broker token type requires proof request metadata.
|
|
13874
|
+
*/
|
|
13875
|
+
function isProofOfPossessionTokenType(tokenType) {
|
|
13876
|
+
return (tokenType !== undefined &&
|
|
13877
|
+
PROOF_OF_POSSESSION_TOKEN_TYPES.includes(tokenType));
|
|
13878
|
+
}
|
|
13879
|
+
/**
|
|
13880
|
+
* Adds canonical proof request fields to the broker no-cache property bag.
|
|
13881
|
+
*/
|
|
13882
|
+
function createPlatformAuthExtraParametersNoCache(extraParametersNoCache, isProofOfPossessionRequest, resourceRequestMethod, resourceRequestUri, dpopNonce) {
|
|
13883
|
+
if (!isProofOfPossessionRequest) {
|
|
13884
|
+
return extraParametersNoCache;
|
|
13885
|
+
}
|
|
13886
|
+
return {
|
|
13887
|
+
...extraParametersNoCache,
|
|
13888
|
+
...(resourceRequestMethod && {
|
|
13889
|
+
pop_method: resourceRequestMethod,
|
|
13890
|
+
}),
|
|
13891
|
+
...(resourceRequestUri && {
|
|
13892
|
+
pop_url: resourceRequestUri,
|
|
13893
|
+
}),
|
|
13894
|
+
...(dpopNonce && {
|
|
13895
|
+
pop_nonce: dpopNonce,
|
|
13896
|
+
}),
|
|
13897
|
+
};
|
|
13898
|
+
}
|
|
13899
|
+
|
|
13774
13900
|
/*
|
|
13775
13901
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
13776
13902
|
* Licensed under the MIT License.
|
|
@@ -13953,7 +14079,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
13953
14079
|
// initialize native request (statically builds the request; does not contact the broker)
|
|
13954
14080
|
let nativeRequest;
|
|
13955
14081
|
try {
|
|
13956
|
-
nativeRequest = await this.initializePlatformRequest(request);
|
|
14082
|
+
nativeRequest = await invokeAsync(this.initializePlatformRequest.bind(this), PlatformAuthInteractionClientInitializeRequest, this.logger, this.performanceClient, this.correlationId)(request);
|
|
13957
14083
|
}
|
|
13958
14084
|
catch (e) {
|
|
13959
14085
|
/*
|
|
@@ -14000,7 +14126,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
14000
14126
|
// dispatch the request to the broker
|
|
14001
14127
|
try {
|
|
14002
14128
|
const validatedResponse = await this.platformAuthProvider.sendMessage(nativeRequest);
|
|
14003
|
-
const result = await this.handleNativeResponse(validatedResponse, nativeRequest, reqTimestamp, request.storeInCache);
|
|
14129
|
+
const result = await invokeAsync(this.handleNativeResponse.bind(this), PlatformAuthHandleNativeResponse, this.logger, this.performanceClient, this.correlationId)(validatedResponse, nativeRequest, reqTimestamp, request.storeInCache);
|
|
14004
14130
|
nativeATMeasurement.end({
|
|
14005
14131
|
success: true,
|
|
14006
14132
|
requestId: result.requestId,
|
|
@@ -14050,6 +14176,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
14050
14176
|
scopes: ScopeSet.fromString(request.scope, this.correlationId).asArray(),
|
|
14051
14177
|
account: cachedAccount,
|
|
14052
14178
|
forceRefresh: false,
|
|
14179
|
+
resource: request.extraParameters?.resource,
|
|
14053
14180
|
};
|
|
14054
14181
|
// Preserve FMI partition semantics for silent cache filtering.
|
|
14055
14182
|
if (request.attributeTokens) {
|
|
@@ -14102,7 +14229,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
14102
14229
|
*/
|
|
14103
14230
|
async acquireTokenRedirect(request, rootMeasurement, options) {
|
|
14104
14231
|
this.logger.trace("0luikq", this.correlationId);
|
|
14105
|
-
const nativeRequest = await this.initializePlatformRequest(request);
|
|
14232
|
+
const nativeRequest = await invokeAsync(this.initializePlatformRequest.bind(this), PlatformAuthInteractionClientInitializeRequest, this.logger, this.performanceClient, this.correlationId)(request);
|
|
14106
14233
|
const navigateToLoginRequestUrl = options?.navigateToLoginRequestUrl ?? true;
|
|
14107
14234
|
try {
|
|
14108
14235
|
await this.platformAuthProvider.sendMessage(nativeRequest);
|
|
@@ -14154,7 +14281,9 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
14154
14281
|
const cachedRequest = this.browserStorage.getCachedNativeRequest();
|
|
14155
14282
|
if (!cachedRequest) {
|
|
14156
14283
|
this.logger.verbose("0a6zjb", this.correlationId);
|
|
14157
|
-
this.performanceClient?.addFields({
|
|
14284
|
+
this.performanceClient?.addFields({
|
|
14285
|
+
errorCode: "no_cached_request",
|
|
14286
|
+
}, this.correlationId);
|
|
14158
14287
|
return null;
|
|
14159
14288
|
}
|
|
14160
14289
|
/*
|
|
@@ -14170,7 +14299,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
14170
14299
|
try {
|
|
14171
14300
|
this.logger.verbose("003x5a", this.correlationId);
|
|
14172
14301
|
const response = await this.platformAuthProvider.sendMessage(request);
|
|
14173
|
-
const authResult = await this.handleNativeResponse(response, request, reqTimestamp, storeInCache);
|
|
14302
|
+
const authResult = await invokeAsync(this.handleNativeResponse.bind(this), PlatformAuthHandleNativeResponse, this.logger, this.performanceClient, this.correlationId)(response, request, reqTimestamp, storeInCache);
|
|
14174
14303
|
const serverTelemetryManager = initializeServerTelemetryManager(this.apiId, this.config.auth.clientId, this.correlationId, this.browserStorage, this.logger, undefined, this.config.system.serverTelemetryEnabled);
|
|
14175
14304
|
serverTelemetryManager.clearNativeBrokerErrorCode();
|
|
14176
14305
|
return authResult;
|
|
@@ -14220,10 +14349,10 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
14220
14349
|
// Ensure expires_in is in number format
|
|
14221
14350
|
response.expires_in = Number(response.expires_in);
|
|
14222
14351
|
// generate authenticationResult
|
|
14223
|
-
const result = await this.generateAuthenticationResult(response, request, idTokenClaims, baseAccount, authority.canonicalAuthority, reqTimestamp);
|
|
14352
|
+
const result = await invokeAsync(this.generateAuthenticationResult.bind(this), NativeGenerateAuthResult, this.logger, this.performanceClient, this.correlationId)(response, request, idTokenClaims, baseAccount, authority.canonicalAuthority, reqTimestamp);
|
|
14224
14353
|
// cache accounts and tokens in the appropriate storage
|
|
14225
|
-
await this.cacheAccount(baseAccount, isKmsi(idTokenClaims));
|
|
14226
|
-
await this.cacheNativeTokens(response, request, homeAccountIdentifier, idTokenClaims, result.tenantId, reqTimestamp, authority.getPreferredCache(), // environment
|
|
14354
|
+
await invokeAsync(this.cacheAccount.bind(this), PlatformAuthCacheAccount, this.logger, this.performanceClient, this.correlationId)(baseAccount, isKmsi(idTokenClaims));
|
|
14355
|
+
await invokeAsync(this.cacheNativeTokens.bind(this), PlatformAuthCacheNativeTokens, this.logger, this.performanceClient, this.correlationId)(response, request, homeAccountIdentifier, idTokenClaims, result.tenantId, reqTimestamp, authority.getPreferredCache(), // environment
|
|
14227
14356
|
storeInCache);
|
|
14228
14357
|
return result;
|
|
14229
14358
|
}
|
|
@@ -14387,6 +14516,9 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
14387
14516
|
}
|
|
14388
14517
|
: undefined;
|
|
14389
14518
|
const cachedAccessToken = createAccessTokenEntity(homeAccountIdentifier, environment, response.access_token, request.clientId, idTokenClaims.tid || tenantId, responseScopes.printScopes(), tokenExpirationSeconds, 0, base64Decode, request.correlationId, undefined, request.tokenType, undefined, request.keyId, additionalCacheKeyComponents);
|
|
14519
|
+
if (request.extraParameters?.resource) {
|
|
14520
|
+
cachedAccessToken.resource = request.extraParameters.resource;
|
|
14521
|
+
}
|
|
14390
14522
|
// save idtoken credential in configured browser storage
|
|
14391
14523
|
if (!!cachedIdToken && storeInCache?.idToken !== false) {
|
|
14392
14524
|
await this.browserStorage.setIdTokenCredential(cachedIdToken, this.correlationId, isKmsi(idTokenClaims));
|
|
@@ -14471,9 +14603,8 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
14471
14603
|
* scopes are expected to be received by the native broker as "scope" and will be added to the request below. Other properties that should be dropped from the request to the native broker can be included in the object destructuring here.
|
|
14472
14604
|
* attributeTokens is destructured out because PlatformAuthRequest represents it as a pre-serialized string, not the caller-provided Array<string>.
|
|
14473
14605
|
*/
|
|
14474
|
-
const { scopes, claims } = request;
|
|
14475
|
-
const scopeSet = new ScopeSet(scopes || [], this.correlationId);
|
|
14476
|
-
scopeSet.appendScopes(OIDC_DEFAULT_SCOPES$1);
|
|
14606
|
+
const { scopes, claims, extraParametersNoCache, dpopNonce } = request;
|
|
14607
|
+
const scopeSet = new ScopeSet([...(scopes || []), ...OIDC_DEFAULT_SCOPES$1], this.correlationId);
|
|
14477
14608
|
const mergedClaims = buildMergedClaims$1(claims, configClaims?.length ? configClaims : undefined);
|
|
14478
14609
|
const hasAttributeTokens = !!request.attributeTokens?.length;
|
|
14479
14610
|
this.performanceClient?.addFields({
|
|
@@ -14504,6 +14635,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
14504
14635
|
resourceRequestUri: request.resourceRequestUri,
|
|
14505
14636
|
shrClaims: request.shrClaims,
|
|
14506
14637
|
shrNonce: request.shrNonce,
|
|
14638
|
+
extraParametersNoCache: createPlatformAuthExtraParametersNoCache(extraParametersNoCache, isProofOfPossessionTokenType(request.authenticationScheme), request.resourceRequestMethod, request.resourceRequestUri, dpopNonce),
|
|
14507
14639
|
};
|
|
14508
14640
|
if (hasAttributeTokens) {
|
|
14509
14641
|
validatedRequest.attributeTokens =
|
|
@@ -15311,7 +15443,7 @@ function buildConfiguration({ auth: userInputAuth, cache: userInputCache, system
|
|
|
15311
15443
|
* Licensed under the MIT License.
|
|
15312
15444
|
*/
|
|
15313
15445
|
class PlatformAuthExtensionHandler {
|
|
15314
|
-
constructor(logger, handshakeTimeoutMs, performanceClient, extensionId) {
|
|
15446
|
+
constructor(logger, handshakeTimeoutMs, performanceClient, extensionId, correlationId) {
|
|
15315
15447
|
this.logger = logger;
|
|
15316
15448
|
this.handshakeTimeoutMs = handshakeTimeoutMs;
|
|
15317
15449
|
this.extensionId = extensionId;
|
|
@@ -15320,7 +15452,8 @@ class PlatformAuthExtensionHandler {
|
|
|
15320
15452
|
this.messageChannel = new MessageChannel();
|
|
15321
15453
|
this.windowListener = this.onWindowMessage.bind(this); // Window event callback doesn't have access to 'this' unless it's bound
|
|
15322
15454
|
this.performanceClient = performanceClient;
|
|
15323
|
-
this.
|
|
15455
|
+
this.correlationId = correlationId || createNewGuid();
|
|
15456
|
+
this.handshakeEvent = this.performanceClient.startMeasurement(NativeMessageHandlerHandshake, this.correlationId);
|
|
15324
15457
|
this.platformAuthType =
|
|
15325
15458
|
PlatformAuthConstants.PLATFORM_EXTENSION_PROVIDER;
|
|
15326
15459
|
}
|
|
@@ -15329,26 +15462,51 @@ class PlatformAuthExtensionHandler {
|
|
|
15329
15462
|
* @param request
|
|
15330
15463
|
*/
|
|
15331
15464
|
async sendMessage(request) {
|
|
15332
|
-
this.
|
|
15333
|
-
|
|
15334
|
-
|
|
15335
|
-
|
|
15336
|
-
request: request,
|
|
15337
|
-
};
|
|
15338
|
-
const req = {
|
|
15339
|
-
channel: PlatformAuthConstants.CHANNEL_ID,
|
|
15340
|
-
extensionId: this.extensionId,
|
|
15341
|
-
responseId: createNewGuid(),
|
|
15342
|
-
body: messageBody,
|
|
15343
|
-
};
|
|
15344
|
-
this.logger.trace(`1qadfi ${this.platformAuthType}`, request.correlationId);
|
|
15345
|
-
this.logger.tracePii(`1xm533 ${this.platformAuthType} ${JSON.stringify(req)}`, request.correlationId);
|
|
15346
|
-
this.messageChannel.port1.postMessage(req);
|
|
15347
|
-
const response = await new Promise((resolve, reject) => {
|
|
15348
|
-
this.resolvers.set(req.responseId, { resolve, reject });
|
|
15465
|
+
const correlationId = this.getCorrelationId(request.correlationId);
|
|
15466
|
+
const sendMessageMeasurement = this.performanceClient.startMeasurement(PlatformAuthExtensionGetToken, correlationId);
|
|
15467
|
+
sendMessageMeasurement.add({
|
|
15468
|
+
platformAuthProviderType: this.platformAuthType,
|
|
15349
15469
|
});
|
|
15350
|
-
|
|
15351
|
-
|
|
15470
|
+
this.logger.trace(`0on4p2 ${this.platformAuthType}`, correlationId);
|
|
15471
|
+
try {
|
|
15472
|
+
// fall back to native calls
|
|
15473
|
+
const extensionRequest = { ...request };
|
|
15474
|
+
delete extensionRequest.resourceRequestMethod;
|
|
15475
|
+
delete extensionRequest.resourceRequestUri;
|
|
15476
|
+
const messageBody = {
|
|
15477
|
+
method: NativeExtensionMethod.GetToken,
|
|
15478
|
+
request: extensionRequest,
|
|
15479
|
+
};
|
|
15480
|
+
const req = {
|
|
15481
|
+
channel: PlatformAuthConstants.CHANNEL_ID,
|
|
15482
|
+
extensionId: this.extensionId,
|
|
15483
|
+
responseId: createNewGuid(),
|
|
15484
|
+
body: messageBody,
|
|
15485
|
+
};
|
|
15486
|
+
this.logger.trace(`1qadfi ${this.platformAuthType}`, correlationId);
|
|
15487
|
+
this.logger.tracePii(`1xm533 ${this.platformAuthType} ${JSON.stringify(req)}`, correlationId);
|
|
15488
|
+
this.messageChannel.port1.postMessage(req);
|
|
15489
|
+
const response = await new Promise((resolve, reject) => {
|
|
15490
|
+
this.resolvers.set(req.responseId, {
|
|
15491
|
+
resolve,
|
|
15492
|
+
reject,
|
|
15493
|
+
correlationId,
|
|
15494
|
+
});
|
|
15495
|
+
});
|
|
15496
|
+
const validatedResponse = this.validatePlatformBrokerResponse(response, correlationId);
|
|
15497
|
+
sendMessageMeasurement.end({
|
|
15498
|
+
success: true,
|
|
15499
|
+
platformAuthProviderType: this.platformAuthType,
|
|
15500
|
+
});
|
|
15501
|
+
return validatedResponse;
|
|
15502
|
+
}
|
|
15503
|
+
catch (e) {
|
|
15504
|
+
sendMessageMeasurement.end({
|
|
15505
|
+
success: false,
|
|
15506
|
+
platformAuthProviderType: this.platformAuthType,
|
|
15507
|
+
}, e);
|
|
15508
|
+
throw e;
|
|
15509
|
+
}
|
|
15352
15510
|
}
|
|
15353
15511
|
/**
|
|
15354
15512
|
* Returns an instance of the MessageHandler that has successfully established a connection with an extension
|
|
@@ -15359,23 +15517,51 @@ class PlatformAuthExtensionHandler {
|
|
|
15359
15517
|
*/
|
|
15360
15518
|
static async createProvider(logger, handshakeTimeoutMs, performanceClient, correlationId) {
|
|
15361
15519
|
logger.trace("15zfnw", correlationId);
|
|
15520
|
+
const createProviderMeasurement = performanceClient.startMeasurement(PlatformAuthExtensionCreateProvider, correlationId);
|
|
15362
15521
|
try {
|
|
15363
|
-
const preferredProvider = new PlatformAuthExtensionHandler(logger, handshakeTimeoutMs, performanceClient, PlatformAuthConstants.PREFERRED_EXTENSION_ID);
|
|
15364
|
-
await preferredProvider.sendHandshakeRequest(
|
|
15522
|
+
const preferredProvider = new PlatformAuthExtensionHandler(logger, handshakeTimeoutMs, performanceClient, PlatformAuthConstants.PREFERRED_EXTENSION_ID, correlationId);
|
|
15523
|
+
await preferredProvider.sendHandshakeRequest();
|
|
15524
|
+
createProviderMeasurement.add({
|
|
15525
|
+
platformAuthProviderAvailable: true,
|
|
15526
|
+
platformAuthProviderType: PlatformAuthConstants.PLATFORM_EXTENSION_PROVIDER,
|
|
15527
|
+
});
|
|
15528
|
+
createProviderMeasurement.end({
|
|
15529
|
+
platformAuthProviderAvailable: true,
|
|
15530
|
+
platformAuthProviderType: PlatformAuthConstants.PLATFORM_EXTENSION_PROVIDER,
|
|
15531
|
+
});
|
|
15365
15532
|
return preferredProvider;
|
|
15366
15533
|
}
|
|
15367
15534
|
catch (e) {
|
|
15368
15535
|
// If preferred extension fails for whatever reason, fallback to using any installed extension
|
|
15369
|
-
|
|
15370
|
-
|
|
15371
|
-
|
|
15536
|
+
try {
|
|
15537
|
+
const backupProvider = new PlatformAuthExtensionHandler(logger, handshakeTimeoutMs, performanceClient, undefined, correlationId);
|
|
15538
|
+
await backupProvider.sendHandshakeRequest();
|
|
15539
|
+
createProviderMeasurement.add({
|
|
15540
|
+
platformAuthProviderAvailable: true,
|
|
15541
|
+
platformAuthProviderType: PlatformAuthConstants.PLATFORM_EXTENSION_PROVIDER,
|
|
15542
|
+
});
|
|
15543
|
+
createProviderMeasurement.end({
|
|
15544
|
+
platformAuthProviderAvailable: true,
|
|
15545
|
+
platformAuthProviderType: PlatformAuthConstants.PLATFORM_EXTENSION_PROVIDER,
|
|
15546
|
+
});
|
|
15547
|
+
return backupProvider;
|
|
15548
|
+
}
|
|
15549
|
+
catch (backupError) {
|
|
15550
|
+
createProviderMeasurement.add({
|
|
15551
|
+
platformAuthProviderAvailable: false,
|
|
15552
|
+
});
|
|
15553
|
+
createProviderMeasurement.end({
|
|
15554
|
+
platformAuthProviderAvailable: false,
|
|
15555
|
+
}, backupError);
|
|
15556
|
+
throw backupError;
|
|
15557
|
+
}
|
|
15372
15558
|
}
|
|
15373
15559
|
}
|
|
15374
15560
|
/**
|
|
15375
15561
|
* Send handshake request helper.
|
|
15376
15562
|
*/
|
|
15377
|
-
async sendHandshakeRequest(
|
|
15378
|
-
this.logger.trace(`1dpg9o ${this.platformAuthType}`, correlationId);
|
|
15563
|
+
async sendHandshakeRequest() {
|
|
15564
|
+
this.logger.trace(`1dpg9o ${this.platformAuthType}`, this.correlationId);
|
|
15379
15565
|
// Register this event listener before sending handshake
|
|
15380
15566
|
window.addEventListener("message", this.windowListener, false); // false is important, because content script message processing should work first
|
|
15381
15567
|
const req = {
|
|
@@ -15389,13 +15575,18 @@ class PlatformAuthExtensionHandler {
|
|
|
15389
15575
|
this.handshakeEvent.add({
|
|
15390
15576
|
extensionId: this.extensionId,
|
|
15391
15577
|
extensionHandshakeTimeoutMs: this.handshakeTimeoutMs,
|
|
15578
|
+
platformAuthRequestCorrelationId: this.correlationId,
|
|
15392
15579
|
});
|
|
15393
15580
|
this.messageChannel.port1.onmessage = (event) => {
|
|
15394
15581
|
this.onChannelMessage(event);
|
|
15395
15582
|
};
|
|
15396
15583
|
window.postMessage(req, window.origin, [this.messageChannel.port2]);
|
|
15397
15584
|
return new Promise((resolve, reject) => {
|
|
15398
|
-
this.handshakeResolvers.set(req.responseId, {
|
|
15585
|
+
this.handshakeResolvers.set(req.responseId, {
|
|
15586
|
+
resolve,
|
|
15587
|
+
reject,
|
|
15588
|
+
correlationId: this.correlationId,
|
|
15589
|
+
});
|
|
15399
15590
|
this.timeoutId = window.setTimeout(() => {
|
|
15400
15591
|
/*
|
|
15401
15592
|
* Throw an error if neither HandshakeResponse nor original Handshake request are received in a reasonable timeframe.
|
|
@@ -15404,11 +15595,14 @@ class PlatformAuthExtensionHandler {
|
|
|
15404
15595
|
window.removeEventListener("message", this.windowListener, false);
|
|
15405
15596
|
this.messageChannel.port1.close();
|
|
15406
15597
|
this.messageChannel.port2.close();
|
|
15598
|
+
this.handshakeEvent.add({
|
|
15599
|
+
extensionHandshakeTimedOut: true,
|
|
15600
|
+
});
|
|
15407
15601
|
this.handshakeEvent.end({
|
|
15408
15602
|
extensionHandshakeTimedOut: true,
|
|
15409
15603
|
success: false,
|
|
15410
15604
|
});
|
|
15411
|
-
reject(createBrowserAuthError(nativeHandshakeTimeout,
|
|
15605
|
+
reject(createBrowserAuthError(nativeHandshakeTimeout, this.correlationId));
|
|
15412
15606
|
this.handshakeResolvers.delete(req.responseId);
|
|
15413
15607
|
}, this.handshakeTimeoutMs); // Use a reasonable timeout in milliseconds here
|
|
15414
15608
|
});
|
|
@@ -15418,7 +15612,7 @@ class PlatformAuthExtensionHandler {
|
|
|
15418
15612
|
* @param event
|
|
15419
15613
|
*/
|
|
15420
15614
|
onWindowMessage(event) {
|
|
15421
|
-
|
|
15615
|
+
let correlationId = createGuid();
|
|
15422
15616
|
this.logger.trace(`0jpn5u ${this.platformAuthType}`, correlationId);
|
|
15423
15617
|
// We only accept messages from ourselves
|
|
15424
15618
|
if (event.source !== window) {
|
|
@@ -15442,6 +15636,7 @@ class PlatformAuthExtensionHandler {
|
|
|
15442
15636
|
this.logger.trace(`07buhm ${this.platformAuthType} ${request.responseId}`, correlationId);
|
|
15443
15637
|
return;
|
|
15444
15638
|
}
|
|
15639
|
+
correlationId = handshakeResolver.correlationId;
|
|
15445
15640
|
// If we receive this message back it means no extension intercepted the request, meaning no extension supporting handshake protocol is installed
|
|
15446
15641
|
this.logger.verbose(request.extensionId
|
|
15447
15642
|
? `0xrkug ${request.extensionId}`
|
|
@@ -15450,11 +15645,15 @@ class PlatformAuthExtensionHandler {
|
|
|
15450
15645
|
this.messageChannel.port1.close();
|
|
15451
15646
|
this.messageChannel.port2.close();
|
|
15452
15647
|
window.removeEventListener("message", this.windowListener, false);
|
|
15648
|
+
this.handshakeEvent.add({
|
|
15649
|
+
extensionInstalled: false,
|
|
15650
|
+
});
|
|
15453
15651
|
this.handshakeEvent.end({
|
|
15454
15652
|
success: false,
|
|
15455
15653
|
extensionInstalled: false,
|
|
15456
15654
|
});
|
|
15457
|
-
handshakeResolver.reject(createBrowserAuthError(nativeExtensionNotInstalled,
|
|
15655
|
+
handshakeResolver.reject(createBrowserAuthError(nativeExtensionNotInstalled, correlationId));
|
|
15656
|
+
this.handshakeResolvers.delete(request.responseId);
|
|
15458
15657
|
}
|
|
15459
15658
|
}
|
|
15460
15659
|
/**
|
|
@@ -15462,36 +15661,47 @@ class PlatformAuthExtensionHandler {
|
|
|
15462
15661
|
* @param event
|
|
15463
15662
|
*/
|
|
15464
15663
|
onChannelMessage(event) {
|
|
15465
|
-
const correlationId = createGuid();
|
|
15466
|
-
this.logger.trace(`1py8yf ${this.platformAuthType}`, correlationId);
|
|
15467
15664
|
const request = event.data;
|
|
15468
|
-
const
|
|
15469
|
-
const
|
|
15665
|
+
const responseId = request?.responseId;
|
|
15666
|
+
const resolver = responseId
|
|
15667
|
+
? this.resolvers.get(responseId)
|
|
15668
|
+
: undefined;
|
|
15669
|
+
const handshakeResolver = responseId
|
|
15670
|
+
? this.handshakeResolvers.get(responseId)
|
|
15671
|
+
: undefined;
|
|
15672
|
+
const correlationId = resolver?.correlationId ||
|
|
15673
|
+
handshakeResolver?.correlationId ||
|
|
15674
|
+
createGuid();
|
|
15675
|
+
this.logger.trace(`1py8yf ${this.platformAuthType}`, correlationId);
|
|
15470
15676
|
try {
|
|
15471
15677
|
const method = request.body.method;
|
|
15472
15678
|
if (method === NativeExtensionMethod.Response) {
|
|
15473
15679
|
if (!resolver) {
|
|
15474
15680
|
return;
|
|
15475
15681
|
}
|
|
15476
|
-
|
|
15477
|
-
|
|
15478
|
-
|
|
15479
|
-
|
|
15480
|
-
|
|
15481
|
-
|
|
15482
|
-
|
|
15483
|
-
if (response.result
|
|
15484
|
-
response.result["
|
|
15485
|
-
|
|
15682
|
+
try {
|
|
15683
|
+
const response = request.body.response;
|
|
15684
|
+
this.logger.trace(`19hpgm ${this.platformAuthType}`, correlationId);
|
|
15685
|
+
this.logger.tracePii(`179a24 ${this.platformAuthType} ${JSON.stringify(response)}`, correlationId);
|
|
15686
|
+
if (response.status !== "Success") {
|
|
15687
|
+
resolver.reject(createNativeAuthError(response.code, correlationId, response.description, response.ext));
|
|
15688
|
+
}
|
|
15689
|
+
else if (response.result) {
|
|
15690
|
+
if (response.result["code"] &&
|
|
15691
|
+
response.result["description"]) {
|
|
15692
|
+
resolver.reject(createNativeAuthError(response.result["code"], correlationId, response.result["description"], response.result["ext"]));
|
|
15693
|
+
}
|
|
15694
|
+
else {
|
|
15695
|
+
resolver.resolve(response.result);
|
|
15696
|
+
}
|
|
15486
15697
|
}
|
|
15487
15698
|
else {
|
|
15488
|
-
|
|
15699
|
+
throw createAuthError(unexpectedError, correlationId, "Event does not contain result.");
|
|
15489
15700
|
}
|
|
15490
15701
|
}
|
|
15491
|
-
|
|
15492
|
-
|
|
15702
|
+
finally {
|
|
15703
|
+
this.resolvers.delete(request.responseId);
|
|
15493
15704
|
}
|
|
15494
|
-
this.resolvers.delete(request.responseId);
|
|
15495
15705
|
}
|
|
15496
15706
|
else if (method === NativeExtensionMethod.HandshakeResponse) {
|
|
15497
15707
|
if (!handshakeResolver) {
|
|
@@ -15501,25 +15711,46 @@ class PlatformAuthExtensionHandler {
|
|
|
15501
15711
|
clearTimeout(this.timeoutId); // Clear setTimeout
|
|
15502
15712
|
window.removeEventListener("message", this.windowListener, false); // Remove 'No extension' listener
|
|
15503
15713
|
this.extensionId = request.extensionId;
|
|
15504
|
-
this.extensionVersion = request.body.version;
|
|
15714
|
+
this.extensionVersion = request.body.version?.toString();
|
|
15505
15715
|
this.logger.verbose(`0yf5ib ${this.platformAuthType} ${this.extensionId}`, correlationId);
|
|
15716
|
+
this.handshakeEvent.add({
|
|
15717
|
+
extensionId: this.extensionId,
|
|
15718
|
+
extensionVersion: this.extensionVersion,
|
|
15719
|
+
extensionInstalled: true,
|
|
15720
|
+
});
|
|
15506
15721
|
this.handshakeEvent.end({
|
|
15722
|
+
extensionId: this.extensionId,
|
|
15723
|
+
extensionVersion: this.extensionVersion,
|
|
15507
15724
|
extensionInstalled: true,
|
|
15508
15725
|
success: true,
|
|
15509
15726
|
});
|
|
15510
15727
|
handshakeResolver.resolve();
|
|
15511
15728
|
this.handshakeResolvers.delete(request.responseId);
|
|
15512
15729
|
}
|
|
15513
|
-
|
|
15730
|
+
else if (resolver) {
|
|
15731
|
+
this.resolvers.delete(request.responseId);
|
|
15732
|
+
resolver.reject(createAuthError(unexpectedError, correlationId, "Extension response contains an unexpected method."));
|
|
15733
|
+
}
|
|
15514
15734
|
}
|
|
15515
15735
|
catch (err) {
|
|
15516
15736
|
this.logger.error("0xf978", correlationId);
|
|
15517
15737
|
this.logger.errorPii(`04i99o ${err}`, correlationId);
|
|
15518
15738
|
this.logger.errorPii(`0xdvsy ${event}`, correlationId);
|
|
15519
15739
|
if (resolver) {
|
|
15520
|
-
|
|
15740
|
+
this.resolvers.delete(responseId);
|
|
15741
|
+
resolver.reject(err instanceof AuthError
|
|
15742
|
+
? err
|
|
15743
|
+
: createAuthError(unexpectedError, correlationId, "Unable to parse extension response."));
|
|
15521
15744
|
}
|
|
15522
15745
|
else if (handshakeResolver) {
|
|
15746
|
+
clearTimeout(this.timeoutId);
|
|
15747
|
+
window.removeEventListener("message", this.windowListener, false);
|
|
15748
|
+
this.messageChannel.port1.close();
|
|
15749
|
+
this.messageChannel.port2.close();
|
|
15750
|
+
this.handshakeEvent.end({
|
|
15751
|
+
success: false,
|
|
15752
|
+
});
|
|
15753
|
+
this.handshakeResolvers.delete(responseId);
|
|
15523
15754
|
handshakeResolver.reject(err);
|
|
15524
15755
|
}
|
|
15525
15756
|
}
|
|
@@ -15528,19 +15759,34 @@ class PlatformAuthExtensionHandler {
|
|
|
15528
15759
|
* Validates native platform response before processing
|
|
15529
15760
|
* @param response
|
|
15530
15761
|
*/
|
|
15531
|
-
validatePlatformBrokerResponse(response) {
|
|
15532
|
-
|
|
15533
|
-
|
|
15534
|
-
|
|
15535
|
-
|
|
15536
|
-
|
|
15537
|
-
|
|
15762
|
+
validatePlatformBrokerResponse(response, correlationId) {
|
|
15763
|
+
const responseCorrelationId = this.getCorrelationId(correlationId);
|
|
15764
|
+
const validationMeasurement = this.performanceClient.startMeasurement(PlatformAuthExtensionValidateResponse, responseCorrelationId);
|
|
15765
|
+
if (response &&
|
|
15766
|
+
Object.prototype.hasOwnProperty.call(response, "access_token") &&
|
|
15767
|
+
Object.prototype.hasOwnProperty.call(response, "id_token") &&
|
|
15768
|
+
Object.prototype.hasOwnProperty.call(response, "client_info") &&
|
|
15769
|
+
Object.prototype.hasOwnProperty.call(response, "account") &&
|
|
15770
|
+
Object.prototype.hasOwnProperty.call(response, "scope") &&
|
|
15771
|
+
Object.prototype.hasOwnProperty.call(response, "expires_in")) {
|
|
15772
|
+
validationMeasurement.end({
|
|
15773
|
+
success: true,
|
|
15774
|
+
platformAuthProviderType: this.platformAuthType,
|
|
15775
|
+
});
|
|
15538
15776
|
return response;
|
|
15539
15777
|
}
|
|
15540
15778
|
else {
|
|
15541
|
-
|
|
15779
|
+
const error = createAuthError(unexpectedError, responseCorrelationId, "Response missing expected properties.");
|
|
15780
|
+
validationMeasurement.end({
|
|
15781
|
+
success: false,
|
|
15782
|
+
platformAuthProviderType: this.platformAuthType,
|
|
15783
|
+
}, error);
|
|
15784
|
+
throw error;
|
|
15542
15785
|
}
|
|
15543
15786
|
}
|
|
15787
|
+
getCorrelationId(correlationId) {
|
|
15788
|
+
return correlationId || this.correlationId;
|
|
15789
|
+
}
|
|
15544
15790
|
/**
|
|
15545
15791
|
* Returns the Id for the browser extension this handler is communicating with
|
|
15546
15792
|
* @returns
|
|
@@ -15578,17 +15824,49 @@ class PlatformAuthDOMHandler {
|
|
|
15578
15824
|
}
|
|
15579
15825
|
static async createProvider(logger, performanceClient, correlationId) {
|
|
15580
15826
|
logger.trace("12mj4a", correlationId);
|
|
15581
|
-
|
|
15582
|
-
|
|
15583
|
-
const
|
|
15584
|
-
|
|
15585
|
-
|
|
15586
|
-
|
|
15827
|
+
const createProviderMeasurement = performanceClient.startMeasurement(PlatformAuthDOMCreateProvider, correlationId);
|
|
15828
|
+
try {
|
|
15829
|
+
const platformAuthentication = window.navigator.platformAuthentication;
|
|
15830
|
+
if (!platformAuthentication) {
|
|
15831
|
+
createProviderMeasurement.add({
|
|
15832
|
+
platformAuthProviderAvailable: false,
|
|
15833
|
+
});
|
|
15834
|
+
createProviderMeasurement.end({
|
|
15835
|
+
platformAuthProviderAvailable: false,
|
|
15836
|
+
});
|
|
15837
|
+
return undefined;
|
|
15838
|
+
}
|
|
15839
|
+
const supportedContracts = (await invokeAsync(platformAuthentication.getSupportedContracts.bind(platformAuthentication), PlatformAuthDOMGetSupportedContracts, logger, performanceClient, correlationId)(PlatformAuthConstants.MICROSOFT_ENTRA_BROKERID));
|
|
15840
|
+
const contractSupported = supportedContracts?.includes(PlatformAuthConstants.PLATFORM_DOM_APIS);
|
|
15841
|
+
if (contractSupported) {
|
|
15587
15842
|
logger.trace("1h5q1r", correlationId);
|
|
15843
|
+
createProviderMeasurement.add({
|
|
15844
|
+
platformAuthProviderAvailable: true,
|
|
15845
|
+
platformAuthProviderType: PlatformAuthConstants.PLATFORM_DOM_PROVIDER,
|
|
15846
|
+
});
|
|
15847
|
+
createProviderMeasurement.end({
|
|
15848
|
+
platformAuthProviderAvailable: true,
|
|
15849
|
+
platformAuthProviderType: PlatformAuthConstants.PLATFORM_DOM_PROVIDER,
|
|
15850
|
+
});
|
|
15588
15851
|
return new PlatformAuthDOMHandler(logger, performanceClient, correlationId);
|
|
15589
15852
|
}
|
|
15853
|
+
createProviderMeasurement.add({
|
|
15854
|
+
platformAuthProviderAvailable: false,
|
|
15855
|
+
});
|
|
15856
|
+
createProviderMeasurement.end({
|
|
15857
|
+
platformAuthProviderAvailable: false,
|
|
15858
|
+
});
|
|
15859
|
+
return undefined;
|
|
15860
|
+
}
|
|
15861
|
+
catch (e) {
|
|
15862
|
+
createProviderMeasurement.add({
|
|
15863
|
+
platformAuthProviderAvailable: false,
|
|
15864
|
+
});
|
|
15865
|
+
createProviderMeasurement.end({
|
|
15866
|
+
platformAuthProviderAvailable: false,
|
|
15867
|
+
}, e);
|
|
15868
|
+
throw e;
|
|
15590
15869
|
}
|
|
15591
|
-
return undefined;
|
|
15592
15870
|
}
|
|
15593
15871
|
/**
|
|
15594
15872
|
* Returns the Id for the broker extension this handler is communicating with
|
|
@@ -15609,29 +15887,46 @@ class PlatformAuthDOMHandler {
|
|
|
15609
15887
|
* @returns
|
|
15610
15888
|
*/
|
|
15611
15889
|
async sendMessage(request) {
|
|
15612
|
-
this.
|
|
15890
|
+
const correlationId = this.getCorrelationId(request.correlationId);
|
|
15891
|
+
const sendMessageMeasurement = this.performanceClient.startMeasurement(PlatformAuthDOMGetToken, correlationId);
|
|
15892
|
+
sendMessageMeasurement.add({
|
|
15893
|
+
platformAuthProviderType: this.platformAuthType,
|
|
15894
|
+
});
|
|
15895
|
+
this.logger.trace(`02bcil ${this.platformAuthType}`, correlationId);
|
|
15613
15896
|
try {
|
|
15614
|
-
const platformDOMRequest = this.initializePlatformDOMRequest(request);
|
|
15897
|
+
const platformDOMRequest = invoke(this.initializePlatformDOMRequest.bind(this), PlatformAuthDOMInitializeRequest, this.logger, this.performanceClient, correlationId)(request);
|
|
15615
15898
|
const response =
|
|
15616
15899
|
// @ts-ignore
|
|
15617
15900
|
await window.navigator.platformAuthentication.executeGetToken(platformDOMRequest);
|
|
15618
|
-
|
|
15901
|
+
const validatedResponse = this.validatePlatformBrokerResponse(response, correlationId);
|
|
15902
|
+
sendMessageMeasurement.end({
|
|
15903
|
+
success: true,
|
|
15904
|
+
platformAuthProviderType: this.platformAuthType,
|
|
15905
|
+
});
|
|
15906
|
+
return validatedResponse;
|
|
15619
15907
|
}
|
|
15620
15908
|
catch (e) {
|
|
15621
|
-
this.logger.error(`11im7g ${this.platformAuthType}`,
|
|
15909
|
+
this.logger.error(`11im7g ${this.platformAuthType}`, correlationId);
|
|
15910
|
+
sendMessageMeasurement.end({
|
|
15911
|
+
success: false,
|
|
15912
|
+
platformAuthProviderType: this.platformAuthType,
|
|
15913
|
+
}, e);
|
|
15622
15914
|
throw e;
|
|
15623
15915
|
}
|
|
15624
15916
|
}
|
|
15625
15917
|
initializePlatformDOMRequest(request) {
|
|
15626
|
-
|
|
15627
|
-
const
|
|
15628
|
-
|
|
15918
|
+
const { accountId, clientId, authority, scope, redirectUri, correlationId, state, preferBinding, enclave, reqCnf, extraParametersNoCache, extraParameters, ...remainingProperties } = request;
|
|
15919
|
+
const requestCorrelationId = this.getCorrelationId(correlationId);
|
|
15920
|
+
this.logger.trace(`15d6yv ${this.platformAuthType}`, requestCorrelationId);
|
|
15921
|
+
delete remainingProperties.resourceRequestMethod;
|
|
15922
|
+
delete remainingProperties.resourceRequestUri;
|
|
15923
|
+
const validExtraParameters = this.getDOMExtraParams(remainingProperties, requestCorrelationId);
|
|
15629
15924
|
const platformDOMRequest = {
|
|
15630
15925
|
accountId: accountId,
|
|
15631
15926
|
brokerId: this.getExtensionId(),
|
|
15632
15927
|
authority: authority,
|
|
15633
15928
|
clientId: clientId,
|
|
15634
|
-
correlationId:
|
|
15929
|
+
correlationId: requestCorrelationId,
|
|
15635
15930
|
extraParameters: {
|
|
15636
15931
|
...extraParameters,
|
|
15637
15932
|
...validExtraParameters,
|
|
@@ -15640,39 +15935,81 @@ class PlatformAuthDOMHandler {
|
|
|
15640
15935
|
redirectUri: redirectUri,
|
|
15641
15936
|
scope: scope,
|
|
15642
15937
|
state: state,
|
|
15938
|
+
preferBinding: preferBinding,
|
|
15939
|
+
enclave: enclave,
|
|
15940
|
+
requestConfirmation: reqCnf,
|
|
15941
|
+
extraParametersNoCache,
|
|
15643
15942
|
};
|
|
15644
15943
|
return platformDOMRequest;
|
|
15645
15944
|
}
|
|
15646
15945
|
validatePlatformBrokerResponse(response, correlationId) {
|
|
15647
|
-
|
|
15648
|
-
|
|
15649
|
-
|
|
15650
|
-
|
|
15651
|
-
|
|
15652
|
-
|
|
15653
|
-
|
|
15946
|
+
const validationMeasurement = this.performanceClient.startMeasurement(PlatformAuthDOMValidateResponse, correlationId);
|
|
15947
|
+
const requiredKeys = [
|
|
15948
|
+
"accessToken",
|
|
15949
|
+
"idToken",
|
|
15950
|
+
"clientInfo",
|
|
15951
|
+
"account",
|
|
15952
|
+
"scopes",
|
|
15953
|
+
"expiresIn",
|
|
15954
|
+
];
|
|
15955
|
+
const isValid = response &&
|
|
15956
|
+
requiredKeys.every((key) => Object.prototype.hasOwnProperty.call(response, key));
|
|
15957
|
+
if (response &&
|
|
15958
|
+
Object.prototype.hasOwnProperty.call(response, "isSuccess")) {
|
|
15959
|
+
if (isValid) {
|
|
15654
15960
|
this.logger.trace(`0h4vei ${this.platformAuthType}`, correlationId);
|
|
15655
|
-
|
|
15961
|
+
try {
|
|
15962
|
+
const validatedResponse = this.convertToPlatformBrokerResponse(response, correlationId);
|
|
15963
|
+
validationMeasurement.end({
|
|
15964
|
+
success: true,
|
|
15965
|
+
platformAuthProviderType: this.platformAuthType,
|
|
15966
|
+
});
|
|
15967
|
+
return validatedResponse;
|
|
15968
|
+
}
|
|
15969
|
+
catch (e) {
|
|
15970
|
+
validationMeasurement.end({
|
|
15971
|
+
success: false,
|
|
15972
|
+
platformAuthProviderType: this.platformAuthType,
|
|
15973
|
+
}, e);
|
|
15974
|
+
throw e;
|
|
15975
|
+
}
|
|
15656
15976
|
}
|
|
15657
|
-
else if (
|
|
15977
|
+
else if (Object.prototype.hasOwnProperty.call(response, "error")) {
|
|
15658
15978
|
const errorResponse = response;
|
|
15659
15979
|
if (errorResponse.isSuccess === false &&
|
|
15660
15980
|
errorResponse.error &&
|
|
15661
15981
|
errorResponse.error.code) {
|
|
15662
15982
|
this.logger.trace(`0g92vm ${this.platformAuthType}`, correlationId);
|
|
15663
|
-
|
|
15983
|
+
const nativeAuthError = createNativeAuthError(errorResponse.error.code, correlationId, errorResponse.error.description, {
|
|
15664
15984
|
error: parseInt(errorResponse.error.errorCode),
|
|
15665
15985
|
protocol_error: errorResponse.error.protocolError,
|
|
15666
15986
|
status: errorResponse.error.status,
|
|
15667
15987
|
properties: errorResponse.error.properties,
|
|
15668
15988
|
});
|
|
15989
|
+
validationMeasurement.end({
|
|
15990
|
+
success: false,
|
|
15991
|
+
platformAuthProviderType: this.platformAuthType,
|
|
15992
|
+
brokerErrorName: errorResponse.error.code,
|
|
15993
|
+
brokerErrorCode: errorResponse.error.errorCode,
|
|
15994
|
+
}, nativeAuthError);
|
|
15995
|
+
throw nativeAuthError;
|
|
15669
15996
|
}
|
|
15670
15997
|
}
|
|
15671
15998
|
}
|
|
15672
|
-
|
|
15999
|
+
const error = createAuthError(unexpectedError, correlationId, "Response missing expected properties.");
|
|
16000
|
+
validationMeasurement.end({
|
|
16001
|
+
success: false,
|
|
16002
|
+
platformAuthProviderType: this.platformAuthType,
|
|
16003
|
+
}, error);
|
|
16004
|
+
throw error;
|
|
16005
|
+
}
|
|
16006
|
+
getCorrelationId(correlationId) {
|
|
16007
|
+
return correlationId || this.correlationId;
|
|
15673
16008
|
}
|
|
15674
16009
|
convertToPlatformBrokerResponse(response, correlationId) {
|
|
15675
16010
|
this.logger.trace(`14913t ${this.platformAuthType}`, correlationId);
|
|
16011
|
+
const responseProperties = response.properties || {};
|
|
16012
|
+
const bindingAttested = this.parseDOMBoolean(responseProperties.binding_attested, "binding_attested", correlationId);
|
|
15676
16013
|
const nativeResponse = {
|
|
15677
16014
|
access_token: response.accessToken,
|
|
15678
16015
|
id_token: response.idToken,
|
|
@@ -15681,12 +16018,24 @@ class PlatformAuthDOMHandler {
|
|
|
15681
16018
|
expires_in: response.expiresIn,
|
|
15682
16019
|
scope: response.scopes,
|
|
15683
16020
|
state: response.state || "",
|
|
15684
|
-
properties:
|
|
16021
|
+
properties: responseProperties,
|
|
15685
16022
|
extendedLifetimeToken: response.extendedLifetimeToken ?? false,
|
|
15686
16023
|
shr: response.proofOfPossessionPayload,
|
|
16024
|
+
token_type: responseProperties.token_type,
|
|
16025
|
+
DPoP: responseProperties.dpop_proof,
|
|
16026
|
+
binding_attested: bindingAttested,
|
|
15687
16027
|
};
|
|
15688
16028
|
return nativeResponse;
|
|
15689
16029
|
}
|
|
16030
|
+
parseDOMBoolean(value, propertyName, correlationId) {
|
|
16031
|
+
if (value === undefined) {
|
|
16032
|
+
return undefined;
|
|
16033
|
+
}
|
|
16034
|
+
if (value === "true" || value === "false") {
|
|
16035
|
+
return value === "true";
|
|
16036
|
+
}
|
|
16037
|
+
throw createAuthError(unexpectedError, correlationId, `Platform broker returned invalid ${propertyName} value.`);
|
|
16038
|
+
}
|
|
15690
16039
|
getDOMExtraParams(extraParameters, correlationId) {
|
|
15691
16040
|
try {
|
|
15692
16041
|
const stringifiedProperties = {};
|
|
@@ -15734,26 +16083,55 @@ async function isPlatformBrokerAvailable(domConfig, loggerOptions, perfClient, c
|
|
|
15734
16083
|
}
|
|
15735
16084
|
async function getPlatformAuthProvider(logger, performanceClient, correlationId, nativeBrokerHandshakeTimeout, enablePlatformBrokerDOMSupport) {
|
|
15736
16085
|
logger.trace("134j0v", correlationId);
|
|
16086
|
+
const discoveryMeasurement = performanceClient.startMeasurement(PlatformAuthProviderDiscovery, correlationId);
|
|
15737
16087
|
logger.trace(`04c81g ${enablePlatformBrokerDOMSupport}`, correlationId);
|
|
15738
16088
|
let platformAuthProvider;
|
|
15739
16089
|
try {
|
|
15740
16090
|
if (enablePlatformBrokerDOMSupport) {
|
|
15741
16091
|
// Check if DOM platform API is supported first
|
|
15742
|
-
|
|
16092
|
+
try {
|
|
16093
|
+
platformAuthProvider =
|
|
16094
|
+
await PlatformAuthDOMHandler.createProvider(logger, performanceClient, correlationId);
|
|
16095
|
+
}
|
|
16096
|
+
catch (e) {
|
|
16097
|
+
logger.trace("1ij09j", correlationId);
|
|
16098
|
+
}
|
|
16099
|
+
if (platformAuthProvider) {
|
|
16100
|
+
discoveryMeasurement.add({
|
|
16101
|
+
platformAuthProviderType: PlatformAuthConstants.PLATFORM_DOM_PROVIDER,
|
|
16102
|
+
});
|
|
16103
|
+
discoveryMeasurement.end({
|
|
16104
|
+
success: true,
|
|
16105
|
+
platformAuthProviderType: PlatformAuthConstants.PLATFORM_DOM_PROVIDER,
|
|
16106
|
+
});
|
|
16107
|
+
return platformAuthProvider;
|
|
16108
|
+
}
|
|
15743
16109
|
}
|
|
15744
|
-
|
|
15745
|
-
|
|
15746
|
-
|
|
15747
|
-
|
|
15748
|
-
|
|
15749
|
-
|
|
15750
|
-
|
|
15751
|
-
|
|
15752
|
-
|
|
16110
|
+
logger.trace("0l3na8", correlationId);
|
|
16111
|
+
/*
|
|
16112
|
+
* If DOM APIs are not available, check if browser extension is available.
|
|
16113
|
+
* Platform authentication via DOM APIs is preferred over extension APIs.
|
|
16114
|
+
*/
|
|
16115
|
+
platformAuthProvider =
|
|
16116
|
+
await PlatformAuthExtensionHandler.createProvider(logger, nativeBrokerHandshakeTimeout ||
|
|
16117
|
+
DEFAULT_NATIVE_BROKER_HANDSHAKE_TIMEOUT_MS, performanceClient, correlationId);
|
|
16118
|
+
if (platformAuthProvider) {
|
|
16119
|
+
discoveryMeasurement.add({
|
|
16120
|
+
platformAuthProviderType: PlatformAuthConstants.PLATFORM_EXTENSION_PROVIDER,
|
|
16121
|
+
});
|
|
15753
16122
|
}
|
|
16123
|
+
discoveryMeasurement.end({
|
|
16124
|
+
success: !!platformAuthProvider,
|
|
16125
|
+
platformAuthProviderType: platformAuthProvider
|
|
16126
|
+
? PlatformAuthConstants.PLATFORM_EXTENSION_PROVIDER
|
|
16127
|
+
: undefined,
|
|
16128
|
+
});
|
|
15754
16129
|
}
|
|
15755
16130
|
catch (e) {
|
|
15756
16131
|
logger.trace("0icbd7", e);
|
|
16132
|
+
discoveryMeasurement.end({
|
|
16133
|
+
success: false,
|
|
16134
|
+
}, e);
|
|
15757
16135
|
}
|
|
15758
16136
|
return platformAuthProvider;
|
|
15759
16137
|
}
|
|
@@ -15765,8 +16143,22 @@ async function getPlatformAuthProvider(logger, performanceClient, correlationId,
|
|
|
15765
16143
|
* @param platformAuthProvider
|
|
15766
16144
|
* @param authenticationScheme
|
|
15767
16145
|
*/
|
|
15768
|
-
function isPlatformAuthAllowed(config, logger, correlationId, platformAuthProvider, authenticationScheme) {
|
|
16146
|
+
function isPlatformAuthAllowed(config, logger, correlationId, platformAuthProvider, authenticationScheme, performanceClient) {
|
|
15769
16147
|
logger.trace("0uko3r", correlationId);
|
|
16148
|
+
const schemeSupported = !authenticationScheme ||
|
|
16149
|
+
authenticationScheme === AuthenticationScheme$1.BEARER ||
|
|
16150
|
+
authenticationScheme === AuthenticationScheme$1.POP;
|
|
16151
|
+
const fields = {
|
|
16152
|
+
allowPlatformBroker: config.system.allowPlatformBroker,
|
|
16153
|
+
...(config.system.allowPlatformBroker && {
|
|
16154
|
+
platformAuthProviderType: platformAuthProvider instanceof PlatformAuthDOMHandler
|
|
16155
|
+
? PlatformAuthConstants.PLATFORM_DOM_PROVIDER
|
|
16156
|
+
: platformAuthProvider
|
|
16157
|
+
? PlatformAuthConstants.PLATFORM_EXTENSION_PROVIDER
|
|
16158
|
+
: undefined,
|
|
16159
|
+
}),
|
|
16160
|
+
};
|
|
16161
|
+
performanceClient?.addFields(fields, correlationId);
|
|
15770
16162
|
// throw an error if allowPlatformBroker is not enabled and allowPlatformBrokerWithDOM is enabled
|
|
15771
16163
|
if (!config.system.allowPlatformBroker &&
|
|
15772
16164
|
config.experimental.allowPlatformBrokerWithDOM) {
|
|
@@ -15782,17 +16174,11 @@ function isPlatformAuthAllowed(config, logger, correlationId, platformAuthProvid
|
|
|
15782
16174
|
// Platform broker auth providers are not available
|
|
15783
16175
|
return false;
|
|
15784
16176
|
}
|
|
15785
|
-
if (
|
|
15786
|
-
|
|
15787
|
-
|
|
15788
|
-
case AuthenticationScheme$1.POP:
|
|
15789
|
-
logger.trace("18tev1", correlationId);
|
|
15790
|
-
return true;
|
|
15791
|
-
default:
|
|
15792
|
-
logger.trace("1dd2nh", correlationId);
|
|
15793
|
-
return false;
|
|
15794
|
-
}
|
|
16177
|
+
if (!schemeSupported) {
|
|
16178
|
+
logger.trace("1dd2nh", correlationId);
|
|
16179
|
+
return false;
|
|
15795
16180
|
}
|
|
16181
|
+
logger.trace("18tev1", correlationId);
|
|
15796
16182
|
return true;
|
|
15797
16183
|
}
|
|
15798
16184
|
|
|
@@ -16331,12 +16717,17 @@ class RedirectClient extends StandardInteractionClient {
|
|
|
16331
16717
|
async acquireToken(request) {
|
|
16332
16718
|
const validRequest = await invokeAsync(initializeAuthorizationRequest, StandardInteractionClientInitializeAuthorizationRequest, this.logger, this.performanceClient, this.correlationId)(request, exports.InteractionType.Redirect, this.config, this.browserCrypto, this.browserStorage, this.logger, this.performanceClient, this.correlationId);
|
|
16333
16719
|
validRequest.platformBroker = isPlatformAuthAllowed(this.config, this.logger, this.correlationId, this.platformAuthProvider, request.authenticationScheme);
|
|
16720
|
+
let rejectBackButtonCancellation;
|
|
16721
|
+
const backButtonCancellation = new Promise((_, reject) => {
|
|
16722
|
+
rejectBackButtonCancellation = reject;
|
|
16723
|
+
});
|
|
16334
16724
|
const handleBackButton = (event) => {
|
|
16335
16725
|
// Clear temporary cache if the back button is clicked during the redirect flow.
|
|
16336
16726
|
if (event.persisted) {
|
|
16337
16727
|
this.logger.verbose("0udvtt", this.correlationId);
|
|
16338
16728
|
this.browserStorage.resetRequestCache(this.correlationId);
|
|
16339
16729
|
this.eventHandler.emitEvent(EventType.RESTORE_FROM_BFCACHE, this.correlationId, exports.InteractionType.Redirect);
|
|
16730
|
+
rejectBackButtonCancellation(createBrowserAuthError(userCancelled, this.correlationId));
|
|
16340
16731
|
}
|
|
16341
16732
|
};
|
|
16342
16733
|
const redirectStartPage = this.getRedirectStartPage(request.redirectStartPage);
|
|
@@ -16346,12 +16737,10 @@ class RedirectClient extends StandardInteractionClient {
|
|
|
16346
16737
|
// Clear temporary cache if the back button is clicked during the redirect flow.
|
|
16347
16738
|
window.addEventListener("pageshow", handleBackButton);
|
|
16348
16739
|
try {
|
|
16349
|
-
|
|
16350
|
-
|
|
16351
|
-
|
|
16352
|
-
|
|
16353
|
-
await this.executeCodeFlow(validRequest);
|
|
16354
|
-
}
|
|
16740
|
+
const redirectOperation = this.config.system.protocolMode === ProtocolMode.EAR
|
|
16741
|
+
? this.executeEarFlow(validRequest)
|
|
16742
|
+
: this.executeCodeFlow(validRequest);
|
|
16743
|
+
await Promise.race([redirectOperation, backButtonCancellation]);
|
|
16355
16744
|
}
|
|
16356
16745
|
catch (e) {
|
|
16357
16746
|
if (e instanceof AuthError) {
|
|
@@ -17285,6 +17674,9 @@ class StandardController {
|
|
|
17285
17674
|
this.hybridAuthCodeResponses = new Map();
|
|
17286
17675
|
// Initialize performance client
|
|
17287
17676
|
this.performanceClient = this.config.telemetry.client;
|
|
17677
|
+
this.performanceClient.addGlobalFields({
|
|
17678
|
+
allowPlatformBroker: this.config.system.allowPlatformBroker,
|
|
17679
|
+
});
|
|
17288
17680
|
// Initialize environment-specific crypto and token-binding services.
|
|
17289
17681
|
if (this.isBrowserEnvironment) {
|
|
17290
17682
|
this.browserCrypto = new CryptoOps(this.logger, this.performanceClient);
|
|
@@ -17545,9 +17937,9 @@ class StandardController {
|
|
|
17545
17937
|
enforceResourceParameter(this.config.auth.isMcp, request);
|
|
17546
17938
|
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, exports.InteractionType.Redirect, request);
|
|
17547
17939
|
let result;
|
|
17548
|
-
|
|
17549
|
-
|
|
17550
|
-
const nativeClient = new PlatformAuthInteractionClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, ApiId.acquireTokenRedirect, this.performanceClient,
|
|
17940
|
+
const platformAuthProvider = this.platformAuthProvider;
|
|
17941
|
+
if (this.canUsePlatformBroker(request) && platformAuthProvider) {
|
|
17942
|
+
const nativeClient = new PlatformAuthInteractionClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, ApiId.acquireTokenRedirect, this.performanceClient, platformAuthProvider, this.getNativeAccountId(request), this.nativeInternalStorage, correlationId, this.tokenBindingKeyManager);
|
|
17551
17943
|
result = invokeAsync(nativeClient.acquireTokenRedirect.bind(nativeClient), NativeInteractionClientAcquireTokenRedirect, this.logger, this.performanceClient, correlationId)(request, atrMeasurement).catch((e) => {
|
|
17552
17944
|
if (e instanceof NativeAuthError &&
|
|
17553
17945
|
isFatalNativeAuthError(e)) {
|
|
@@ -18232,11 +18624,8 @@ class StandardController {
|
|
|
18232
18624
|
canUsePlatformBroker(request, accountId) {
|
|
18233
18625
|
const correlationId = this.getRequestCorrelationId(request);
|
|
18234
18626
|
this.logger.trace("1n9lbl", correlationId);
|
|
18235
|
-
|
|
18236
|
-
|
|
18237
|
-
return false;
|
|
18238
|
-
}
|
|
18239
|
-
if (!isPlatformAuthAllowed(this.config, this.logger, correlationId, this.platformAuthProvider, request.authenticationScheme)) {
|
|
18627
|
+
const platformAuthAllowed = isPlatformAuthAllowed(this.config, this.logger, correlationId, this.platformAuthProvider, request.authenticationScheme, this.performanceClient);
|
|
18628
|
+
if (!platformAuthAllowed) {
|
|
18240
18629
|
this.logger.trace("0yoy1g", correlationId);
|
|
18241
18630
|
return false;
|
|
18242
18631
|
}
|
|
@@ -18628,7 +19017,7 @@ class StandardController {
|
|
|
18628
19017
|
*/
|
|
18629
19018
|
async acquireTokenSilentNoIframe(silentRequest, cacheLookupPolicy) {
|
|
18630
19019
|
// if the cache policy is set to access_token only, we should not be hitting the native layer yet
|
|
18631
|
-
if (isPlatformAuthAllowed(this.config, this.logger, silentRequest.correlationId, this.platformAuthProvider, silentRequest.authenticationScheme) &&
|
|
19020
|
+
if (isPlatformAuthAllowed(this.config, this.logger, silentRequest.correlationId, this.platformAuthProvider, silentRequest.authenticationScheme, this.performanceClient) &&
|
|
18632
19021
|
silentRequest.account.nativeAccountId) {
|
|
18633
19022
|
this.logger.verbose("0sczo4", silentRequest.correlationId);
|
|
18634
19023
|
this.performanceClient.addFields({ isPlatformBrokerRequest: true }, silentRequest.correlationId);
|