@azure/msal-browser 5.1.0 → 5.2.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 +1 -1
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
- package/dist/cache/AccountManager.mjs +1 -1
- package/dist/cache/AsyncMemoryStorage.mjs +1 -1
- package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
- package/dist/cache/BrowserCacheManager.mjs +2 -2
- package/dist/cache/BrowserCacheManager.mjs.map +1 -1
- package/dist/cache/CacheHelpers.mjs +1 -1
- package/dist/cache/CacheKeys.mjs +1 -1
- package/dist/cache/CookieStorage.mjs +1 -1
- package/dist/cache/DatabaseStorage.mjs +1 -1
- package/dist/cache/EncryptedData.mjs +1 -1
- package/dist/cache/LocalStorage.mjs +1 -1
- package/dist/cache/MemoryStorage.mjs +1 -1
- package/dist/cache/SessionStorage.mjs +1 -1
- package/dist/cache/TokenCache.mjs +1 -1
- package/dist/config/Configuration.mjs +1 -1
- package/dist/controllers/NestedAppAuthController.d.ts.map +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +10 -10
- package/dist/controllers/NestedAppAuthController.mjs.map +1 -1
- package/dist/controllers/StandardController.d.ts.map +1 -1
- package/dist/controllers/StandardController.mjs +35 -35
- 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/custom-auth-path/app/PublicClientApplication.mjs +1 -1
- package/dist/custom-auth-path/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
- package/dist/custom-auth-path/cache/AccountManager.mjs +1 -1
- package/dist/custom-auth-path/cache/AsyncMemoryStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/BrowserCacheManager.d.ts.map +1 -1
- package/dist/custom-auth-path/cache/BrowserCacheManager.mjs +2 -2
- package/dist/custom-auth-path/cache/BrowserCacheManager.mjs.map +1 -1
- package/dist/custom-auth-path/cache/CacheHelpers.mjs +1 -1
- package/dist/custom-auth-path/cache/CacheKeys.mjs +1 -1
- package/dist/custom-auth-path/cache/CookieStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/DatabaseStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/EncryptedData.mjs +1 -1
- package/dist/custom-auth-path/cache/LocalStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/MemoryStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/SessionStorage.mjs +1 -1
- package/dist/custom-auth-path/config/Configuration.mjs +1 -1
- package/dist/custom-auth-path/controllers/NestedAppAuthController.d.ts.map +1 -1
- package/dist/custom-auth-path/controllers/StandardController.d.ts.map +1 -1
- package/dist/custom-auth-path/controllers/StandardController.mjs +35 -35
- package/dist/custom-auth-path/controllers/StandardController.mjs.map +1 -1
- package/dist/custom-auth-path/crypto/BrowserCrypto.mjs +1 -1
- package/dist/custom-auth-path/crypto/CryptoOps.mjs +1 -1
- package/dist/custom-auth-path/crypto/PkceGenerator.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/dist/custom-auth-path/custom_auth/CustomAuthConstants.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/CustomAuthPublicClientApplication.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/CustomAuthAuthority.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/CustomAuthError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/HttpError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/UnexpectedError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/JitClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/MfaClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/telemetry/PublicApiId.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/utils/UrlUtils.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/index.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
- package/dist/custom-auth-path/encode/Base64Decode.mjs +1 -1
- package/dist/custom-auth-path/encode/Base64Encode.mjs +1 -1
- package/dist/custom-auth-path/error/BrowserAuthError.mjs +1 -1
- package/dist/custom-auth-path/error/BrowserAuthErrorCodes.mjs +1 -1
- package/dist/custom-auth-path/error/BrowserConfigurationAuthError.mjs +1 -1
- package/dist/custom-auth-path/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
- package/dist/custom-auth-path/error/NativeAuthError.mjs +1 -1
- package/dist/custom-auth-path/error/NativeAuthErrorCodes.mjs +1 -1
- package/dist/custom-auth-path/event/EventHandler.d.ts +1 -1
- package/dist/custom-auth-path/event/EventHandler.d.ts.map +1 -1
- package/dist/custom-auth-path/event/EventHandler.mjs +3 -2
- package/dist/custom-auth-path/event/EventHandler.mjs.map +1 -1
- package/dist/custom-auth-path/event/EventMessage.d.ts +1 -0
- package/dist/custom-auth-path/event/EventMessage.d.ts.map +1 -1
- package/dist/custom-auth-path/event/EventType.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/BaseInteractionClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/PopupClient.d.ts.map +1 -1
- package/dist/custom-auth-path/interaction_client/PopupClient.mjs +9 -9
- package/dist/custom-auth-path/interaction_client/PopupClient.mjs.map +1 -1
- package/dist/custom-auth-path/interaction_client/RedirectClient.d.ts.map +1 -1
- package/dist/custom-auth-path/interaction_client/RedirectClient.mjs +8 -8
- package/dist/custom-auth-path/interaction_client/RedirectClient.mjs.map +1 -1
- package/dist/custom-auth-path/interaction_client/SilentAuthCodeClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/SilentCacheClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/SilentIframeClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/SilentRefreshClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/StandardInteractionClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_handler/InteractionHandler.mjs +1 -1
- package/dist/custom-auth-path/interaction_handler/SilentHandler.mjs +1 -1
- package/dist/custom-auth-path/log-strings-mapping.json +2 -2
- package/dist/custom-auth-path/naa/mapping/NestedAppAuthAdapter.d.ts.map +1 -1
- package/dist/custom-auth-path/navigation/NavigationClient.mjs +1 -1
- package/dist/custom-auth-path/network/FetchClient.mjs +1 -1
- package/dist/custom-auth-path/operatingcontext/BaseOperatingContext.mjs +1 -1
- package/dist/custom-auth-path/operatingcontext/StandardOperatingContext.mjs +1 -1
- package/dist/custom-auth-path/packageMetadata.d.ts +1 -1
- package/dist/custom-auth-path/packageMetadata.mjs +2 -2
- package/dist/custom-auth-path/protocol/Authorize.d.ts.map +1 -1
- package/dist/custom-auth-path/protocol/Authorize.mjs +5 -1
- package/dist/custom-auth-path/protocol/Authorize.mjs.map +1 -1
- package/dist/custom-auth-path/request/RequestHelpers.mjs +1 -1
- package/dist/custom-auth-path/response/ResponseHandler.mjs +1 -1
- package/dist/custom-auth-path/telemetry/BrowserPerformanceEvents.mjs +1 -1
- package/dist/custom-auth-path/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
- package/dist/custom-auth-path/utils/BrowserConstants.mjs +1 -1
- package/dist/custom-auth-path/utils/BrowserProtocolUtils.mjs +1 -1
- package/dist/custom-auth-path/utils/BrowserUtils.mjs +1 -1
- package/dist/custom-auth-path/utils/Helpers.mjs +1 -1
- package/dist/custom-auth-path/utils/MsalFrameStatsUtils.mjs +1 -1
- package/dist/custom_auth/CustomAuthConstants.d.ts +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.d.ts +1 -1
- package/dist/event/EventHandler.d.ts.map +1 -1
- package/dist/event/EventHandler.mjs +3 -2
- package/dist/event/EventHandler.mjs.map +1 -1
- package/dist/event/EventMessage.d.ts +1 -0
- package/dist/event/EventMessage.d.ts.map +1 -1
- package/dist/event/EventMessage.mjs +1 -1
- package/dist/event/EventMessage.mjs.map +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 +1 -1
- package/dist/interaction_client/PopupClient.d.ts.map +1 -1
- package/dist/interaction_client/PopupClient.mjs +9 -9
- package/dist/interaction_client/PopupClient.mjs.map +1 -1
- package/dist/interaction_client/RedirectClient.d.ts.map +1 -1
- package/dist/interaction_client/RedirectClient.mjs +8 -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 +2 -2
- 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.d.ts.map +1 -1
- package/dist/naa/mapping/NestedAppAuthAdapter.mjs +25 -8
- package/dist/naa/mapping/NestedAppAuthAdapter.mjs.map +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.d.ts +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/protocol/Authorize.d.ts.map +1 -1
- package/dist/protocol/Authorize.mjs +5 -1
- package/dist/protocol/Authorize.mjs.map +1 -1
- package/dist/redirect-bridge/cache/BrowserCacheManager.d.ts.map +1 -1
- package/dist/redirect-bridge/cache/CacheKeys.mjs +1 -1
- package/dist/redirect-bridge/config/Configuration.mjs +1 -1
- package/dist/redirect-bridge/controllers/NestedAppAuthController.d.ts.map +1 -1
- package/dist/redirect-bridge/controllers/StandardController.d.ts.map +1 -1
- package/dist/redirect-bridge/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/dist/redirect-bridge/encode/Base64Decode.mjs +1 -1
- package/dist/redirect-bridge/error/BrowserAuthError.mjs +1 -1
- package/dist/redirect-bridge/error/BrowserAuthErrorCodes.mjs +1 -1
- package/dist/redirect-bridge/event/EventHandler.d.ts +1 -1
- package/dist/redirect-bridge/event/EventHandler.d.ts.map +1 -1
- package/dist/redirect-bridge/event/EventMessage.d.ts +1 -0
- package/dist/redirect-bridge/event/EventMessage.d.ts.map +1 -1
- package/dist/redirect-bridge/interaction_client/PopupClient.d.ts.map +1 -1
- package/dist/redirect-bridge/interaction_client/RedirectClient.d.ts.map +1 -1
- package/dist/redirect-bridge/naa/mapping/NestedAppAuthAdapter.d.ts.map +1 -1
- package/dist/redirect-bridge/navigation/NavigationClient.mjs +1 -1
- package/dist/redirect-bridge/packageMetadata.d.ts +1 -1
- package/dist/redirect-bridge/protocol/Authorize.d.ts.map +1 -1
- package/dist/redirect-bridge/redirect_bridge/index.mjs +1 -1
- package/dist/redirect-bridge/utils/BrowserConstants.mjs +1 -1
- package/dist/redirect-bridge/utils/BrowserUtils.mjs +1 -1
- package/dist/request/RequestHelpers.mjs +1 -1
- package/dist/response/ResponseHandler.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceEvents.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
- package/dist/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
- package/dist/utils/BrowserConstants.mjs +1 -1
- package/dist/utils/BrowserProtocolUtils.mjs +1 -1
- package/dist/utils/BrowserUtils.mjs +1 -1
- package/dist/utils/Helpers.mjs +1 -1
- package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
- package/lib/custom-auth-path/log-strings-mapping.json +2 -2
- package/lib/custom-auth-path/msal-custom-auth.cjs +137 -117
- package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
- package/lib/custom-auth-path/types/cache/BrowserCacheManager.d.ts.map +1 -1
- package/lib/custom-auth-path/types/controllers/NestedAppAuthController.d.ts.map +1 -1
- package/lib/custom-auth-path/types/controllers/StandardController.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/lib/custom-auth-path/types/event/EventHandler.d.ts +1 -1
- package/lib/custom-auth-path/types/event/EventHandler.d.ts.map +1 -1
- package/lib/custom-auth-path/types/event/EventMessage.d.ts +1 -0
- package/lib/custom-auth-path/types/event/EventMessage.d.ts.map +1 -1
- package/lib/custom-auth-path/types/interaction_client/PopupClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/interaction_client/RedirectClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/naa/mapping/NestedAppAuthAdapter.d.ts.map +1 -1
- package/lib/custom-auth-path/types/packageMetadata.d.ts +1 -1
- package/lib/custom-auth-path/types/protocol/Authorize.d.ts.map +1 -1
- package/lib/log-strings-mapping.json +2 -2
- package/lib/msal-browser.cjs +171 -134
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +171 -134
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +2 -2
- 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/types/cache/BrowserCacheManager.d.ts.map +1 -1
- package/lib/types/controllers/NestedAppAuthController.d.ts.map +1 -1
- package/lib/types/controllers/StandardController.d.ts.map +1 -1
- package/lib/types/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/lib/types/event/EventHandler.d.ts +1 -1
- package/lib/types/event/EventHandler.d.ts.map +1 -1
- package/lib/types/event/EventMessage.d.ts +1 -0
- package/lib/types/event/EventMessage.d.ts.map +1 -1
- package/lib/types/interaction_client/PopupClient.d.ts.map +1 -1
- package/lib/types/interaction_client/RedirectClient.d.ts.map +1 -1
- package/lib/types/naa/mapping/NestedAppAuthAdapter.d.ts.map +1 -1
- package/lib/types/packageMetadata.d.ts +1 -1
- package/lib/types/protocol/Authorize.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/cache/BrowserCacheManager.ts +4 -1
- package/src/controllers/NestedAppAuthController.ts +9 -0
- package/src/controllers/StandardController.ts +46 -17
- package/src/event/EventHandler.ts +2 -0
- package/src/event/EventMessage.ts +1 -0
- package/src/interaction_client/PopupClient.ts +8 -0
- package/src/interaction_client/RedirectClient.ts +7 -0
- package/src/naa/mapping/NestedAppAuthAdapter.ts +30 -6
- package/src/packageMetadata.ts +1 -1
- package/src/protocol/Authorize.ts +13 -0
package/lib/msal-browser.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.2.0 2026-02-10 */
|
|
2
2
|
'use strict';
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.msal = {}));
|
|
7
7
|
})(this, (function (exports) { 'use strict';
|
|
8
8
|
|
|
9
|
-
/*! @azure/msal-common v16.0.
|
|
9
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
10
10
|
/*
|
|
11
11
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
12
12
|
* Licensed under the MIT License.
|
|
@@ -238,7 +238,7 @@
|
|
|
238
238
|
// Token renewal offset default in seconds
|
|
239
239
|
const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
|
|
240
240
|
|
|
241
|
-
/*! @azure/msal-common v16.0.
|
|
241
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
242
242
|
/*
|
|
243
243
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
244
244
|
* Licensed under the MIT License.
|
|
@@ -288,7 +288,7 @@
|
|
|
288
288
|
const EAR_JWK = "ear_jwk";
|
|
289
289
|
const EAR_JWE_CRYPTO = "ear_jwe_crypto";
|
|
290
290
|
|
|
291
|
-
/*! @azure/msal-common v16.0.
|
|
291
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
292
292
|
/*
|
|
293
293
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
294
294
|
* Licensed under the MIT License.
|
|
@@ -319,7 +319,7 @@
|
|
|
319
319
|
return new AuthError(code, additionalMessage || getDefaultErrorMessage$1(code));
|
|
320
320
|
}
|
|
321
321
|
|
|
322
|
-
/*! @azure/msal-common v16.0.
|
|
322
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
323
323
|
|
|
324
324
|
/*
|
|
325
325
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -339,7 +339,7 @@
|
|
|
339
339
|
return new ClientConfigurationError(errorCode);
|
|
340
340
|
}
|
|
341
341
|
|
|
342
|
-
/*! @azure/msal-common v16.0.
|
|
342
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
343
343
|
/*
|
|
344
344
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
345
345
|
* Licensed under the MIT License.
|
|
@@ -436,7 +436,7 @@
|
|
|
436
436
|
}
|
|
437
437
|
}
|
|
438
438
|
|
|
439
|
-
/*! @azure/msal-common v16.0.
|
|
439
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
440
440
|
|
|
441
441
|
/*
|
|
442
442
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -459,7 +459,7 @@
|
|
|
459
459
|
return new ClientAuthError(errorCode, additionalMessage);
|
|
460
460
|
}
|
|
461
461
|
|
|
462
|
-
/*! @azure/msal-common v16.0.
|
|
462
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
463
463
|
/*
|
|
464
464
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
465
465
|
* Licensed under the MIT License.
|
|
@@ -513,7 +513,7 @@
|
|
|
513
513
|
urlParseError: urlParseError
|
|
514
514
|
});
|
|
515
515
|
|
|
516
|
-
/*! @azure/msal-common v16.0.
|
|
516
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
517
517
|
/*
|
|
518
518
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
519
519
|
* Licensed under the MIT License.
|
|
@@ -597,7 +597,7 @@
|
|
|
597
597
|
userCanceled: userCanceled
|
|
598
598
|
});
|
|
599
599
|
|
|
600
|
-
/*! @azure/msal-common v16.0.
|
|
600
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
601
601
|
|
|
602
602
|
/*
|
|
603
603
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -792,7 +792,7 @@
|
|
|
792
792
|
}
|
|
793
793
|
}
|
|
794
794
|
|
|
795
|
-
/*! @azure/msal-common v16.0.
|
|
795
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
796
796
|
|
|
797
797
|
/*
|
|
798
798
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1159,7 +1159,7 @@
|
|
|
1159
1159
|
parameters.set(EAR_JWE_CRYPTO, jweCryptoB64Encoded);
|
|
1160
1160
|
}
|
|
1161
1161
|
|
|
1162
|
-
/*! @azure/msal-common v16.0.
|
|
1162
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
1163
1163
|
|
|
1164
1164
|
/*
|
|
1165
1165
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1268,7 +1268,7 @@
|
|
|
1268
1268
|
}
|
|
1269
1269
|
}
|
|
1270
1270
|
|
|
1271
|
-
/*! @azure/msal-common v16.0.
|
|
1271
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
1272
1272
|
|
|
1273
1273
|
/*
|
|
1274
1274
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1307,7 +1307,7 @@
|
|
|
1307
1307
|
},
|
|
1308
1308
|
};
|
|
1309
1309
|
|
|
1310
|
-
/*! @azure/msal-common v16.0.
|
|
1310
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
1311
1311
|
/*
|
|
1312
1312
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1313
1313
|
* Licensed under the MIT License.
|
|
@@ -1582,12 +1582,12 @@
|
|
|
1582
1582
|
}
|
|
1583
1583
|
}
|
|
1584
1584
|
|
|
1585
|
-
/*! @azure/msal-common v16.0.
|
|
1585
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
1586
1586
|
/* eslint-disable header/header */
|
|
1587
1587
|
const name$1 = "@azure/msal-common";
|
|
1588
|
-
const version$1 = "16.0.
|
|
1588
|
+
const version$1 = "16.0.4";
|
|
1589
1589
|
|
|
1590
|
-
/*! @azure/msal-common v16.0.
|
|
1590
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
1591
1591
|
/*
|
|
1592
1592
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1593
1593
|
* Licensed under the MIT License.
|
|
@@ -1607,7 +1607,7 @@
|
|
|
1607
1607
|
AzureUsGovernment: "https://login.microsoftonline.us",
|
|
1608
1608
|
};
|
|
1609
1609
|
|
|
1610
|
-
/*! @azure/msal-common v16.0.
|
|
1610
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
1611
1611
|
/*
|
|
1612
1612
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1613
1613
|
* Licensed under the MIT License.
|
|
@@ -1689,7 +1689,7 @@
|
|
|
1689
1689
|
return updatedAccountInfo;
|
|
1690
1690
|
}
|
|
1691
1691
|
|
|
1692
|
-
/*! @azure/msal-common v16.0.
|
|
1692
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
1693
1693
|
|
|
1694
1694
|
/*
|
|
1695
1695
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1769,7 +1769,7 @@
|
|
|
1769
1769
|
}
|
|
1770
1770
|
}
|
|
1771
1771
|
|
|
1772
|
-
/*! @azure/msal-common v16.0.
|
|
1772
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
1773
1773
|
|
|
1774
1774
|
/*
|
|
1775
1775
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1926,7 +1926,7 @@
|
|
|
1926
1926
|
}
|
|
1927
1927
|
}
|
|
1928
1928
|
|
|
1929
|
-
/*! @azure/msal-common v16.0.
|
|
1929
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
1930
1930
|
|
|
1931
1931
|
/*
|
|
1932
1932
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1997,6 +1997,21 @@
|
|
|
1997
1997
|
preferred_cache: "login-us.microsoftonline.com",
|
|
1998
1998
|
aliases: ["login-us.microsoftonline.com"],
|
|
1999
1999
|
},
|
|
2000
|
+
{
|
|
2001
|
+
preferred_network: "login.sovcloud-identity.fr",
|
|
2002
|
+
preferred_cache: "login.sovcloud-identity.fr",
|
|
2003
|
+
aliases: ["login.sovcloud-identity.fr"],
|
|
2004
|
+
},
|
|
2005
|
+
{
|
|
2006
|
+
preferred_network: "login.sovcloud-identity.de",
|
|
2007
|
+
preferred_cache: "login.sovcloud-identity.de",
|
|
2008
|
+
aliases: ["login.sovcloud-identity.de"],
|
|
2009
|
+
},
|
|
2010
|
+
{
|
|
2011
|
+
preferred_network: "login.sovcloud-identity.sg",
|
|
2012
|
+
preferred_cache: "login.sovcloud-identity.sg",
|
|
2013
|
+
aliases: ["login.sovcloud-identity.sg"],
|
|
2014
|
+
},
|
|
2000
2015
|
],
|
|
2001
2016
|
},
|
|
2002
2017
|
};
|
|
@@ -2068,7 +2083,7 @@
|
|
|
2068
2083
|
return null;
|
|
2069
2084
|
}
|
|
2070
2085
|
|
|
2071
|
-
/*! @azure/msal-common v16.0.
|
|
2086
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
2072
2087
|
/*
|
|
2073
2088
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2074
2089
|
* Licensed under the MIT License.
|
|
@@ -2076,7 +2091,7 @@
|
|
|
2076
2091
|
const cacheQuotaExceeded = "cache_quota_exceeded";
|
|
2077
2092
|
const cacheErrorUnknown = "cache_error_unknown";
|
|
2078
2093
|
|
|
2079
|
-
/*! @azure/msal-common v16.0.
|
|
2094
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
2080
2095
|
|
|
2081
2096
|
/*
|
|
2082
2097
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2114,7 +2129,7 @@
|
|
|
2114
2129
|
}
|
|
2115
2130
|
}
|
|
2116
2131
|
|
|
2117
|
-
/*! @azure/msal-common v16.0.
|
|
2132
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
2118
2133
|
|
|
2119
2134
|
/*
|
|
2120
2135
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2152,7 +2167,7 @@
|
|
|
2152
2167
|
};
|
|
2153
2168
|
}
|
|
2154
2169
|
|
|
2155
|
-
/*! @azure/msal-common v16.0.
|
|
2170
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
2156
2171
|
/*
|
|
2157
2172
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2158
2173
|
* Licensed under the MIT License.
|
|
@@ -2167,7 +2182,7 @@
|
|
|
2167
2182
|
Ciam: 3,
|
|
2168
2183
|
};
|
|
2169
2184
|
|
|
2170
|
-
/*! @azure/msal-common v16.0.
|
|
2185
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
2171
2186
|
/*
|
|
2172
2187
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2173
2188
|
* Licensed under the MIT License.
|
|
@@ -2189,7 +2204,7 @@
|
|
|
2189
2204
|
return null;
|
|
2190
2205
|
}
|
|
2191
2206
|
|
|
2192
|
-
/*! @azure/msal-common v16.0.
|
|
2207
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
2193
2208
|
/*
|
|
2194
2209
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2195
2210
|
* Licensed under the MIT License.
|
|
@@ -2213,7 +2228,7 @@
|
|
|
2213
2228
|
EAR: "EAR",
|
|
2214
2229
|
};
|
|
2215
2230
|
|
|
2216
|
-
/*! @azure/msal-common v16.0.
|
|
2231
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
2217
2232
|
/**
|
|
2218
2233
|
* Returns the AccountInfo interface for this account.
|
|
2219
2234
|
*/
|
|
@@ -2388,7 +2403,7 @@
|
|
|
2388
2403
|
entity.hasOwnProperty("authorityType"));
|
|
2389
2404
|
}
|
|
2390
2405
|
|
|
2391
|
-
/*! @azure/msal-common v16.0.
|
|
2406
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
2392
2407
|
|
|
2393
2408
|
/*
|
|
2394
2409
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3485,7 +3500,7 @@
|
|
|
3485
3500
|
}
|
|
3486
3501
|
}
|
|
3487
3502
|
|
|
3488
|
-
/*! @azure/msal-common v16.0.
|
|
3503
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
3489
3504
|
/*
|
|
3490
3505
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3491
3506
|
* Licensed under the MIT License.
|
|
@@ -3526,7 +3541,7 @@
|
|
|
3526
3541
|
"upgradedCacheCount",
|
|
3527
3542
|
]);
|
|
3528
3543
|
|
|
3529
|
-
/*! @azure/msal-common v16.0.
|
|
3544
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
3530
3545
|
|
|
3531
3546
|
/*
|
|
3532
3547
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3581,7 +3596,7 @@
|
|
|
3581
3596
|
}
|
|
3582
3597
|
}
|
|
3583
3598
|
|
|
3584
|
-
/*! @azure/msal-common v16.0.
|
|
3599
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
3585
3600
|
|
|
3586
3601
|
/*
|
|
3587
3602
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3675,7 +3690,7 @@
|
|
|
3675
3690
|
return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
|
|
3676
3691
|
}
|
|
3677
3692
|
|
|
3678
|
-
/*! @azure/msal-common v16.0.
|
|
3693
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
3679
3694
|
|
|
3680
3695
|
/*
|
|
3681
3696
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3694,7 +3709,7 @@
|
|
|
3694
3709
|
}
|
|
3695
3710
|
}
|
|
3696
3711
|
|
|
3697
|
-
/*! @azure/msal-common v16.0.
|
|
3712
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
3698
3713
|
/*
|
|
3699
3714
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3700
3715
|
* Licensed under the MIT License.
|
|
@@ -3722,7 +3737,7 @@
|
|
|
3722
3737
|
uxNotAllowed: uxNotAllowed
|
|
3723
3738
|
});
|
|
3724
3739
|
|
|
3725
|
-
/*! @azure/msal-common v16.0.
|
|
3740
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
3726
3741
|
|
|
3727
3742
|
/*
|
|
3728
3743
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3788,7 +3803,7 @@
|
|
|
3788
3803
|
return new InteractionRequiredAuthError(errorCode, errorMessage);
|
|
3789
3804
|
}
|
|
3790
3805
|
|
|
3791
|
-
/*! @azure/msal-common v16.0.
|
|
3806
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
3792
3807
|
|
|
3793
3808
|
/*
|
|
3794
3809
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3856,7 +3871,7 @@
|
|
|
3856
3871
|
}
|
|
3857
3872
|
}
|
|
3858
3873
|
|
|
3859
|
-
/*! @azure/msal-common v16.0.
|
|
3874
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
3860
3875
|
/*
|
|
3861
3876
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3862
3877
|
* Licensed under the MIT License.
|
|
@@ -3921,7 +3936,7 @@
|
|
|
3921
3936
|
return cachedAtSec > nowSeconds();
|
|
3922
3937
|
}
|
|
3923
3938
|
|
|
3924
|
-
/*! @azure/msal-common v16.0.
|
|
3939
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
3925
3940
|
/*
|
|
3926
3941
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3927
3942
|
* Licensed under the MIT License.
|
|
@@ -3992,7 +4007,7 @@
|
|
|
3992
4007
|
const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken";
|
|
3993
4008
|
const SetUserData = "setUserData";
|
|
3994
4009
|
|
|
3995
|
-
/*! @azure/msal-common v16.0.
|
|
4010
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
3996
4011
|
/*
|
|
3997
4012
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3998
4013
|
* Licensed under the MIT License.
|
|
@@ -4087,7 +4102,7 @@
|
|
|
4087
4102
|
};
|
|
4088
4103
|
};
|
|
4089
4104
|
|
|
4090
|
-
/*! @azure/msal-common v16.0.
|
|
4105
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
4091
4106
|
|
|
4092
4107
|
/*
|
|
4093
4108
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4167,7 +4182,7 @@
|
|
|
4167
4182
|
}
|
|
4168
4183
|
}
|
|
4169
4184
|
|
|
4170
|
-
/*! @azure/msal-common v16.0.
|
|
4185
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
4171
4186
|
/*
|
|
4172
4187
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4173
4188
|
* Licensed under the MIT License.
|
|
@@ -4194,7 +4209,7 @@
|
|
|
4194
4209
|
}
|
|
4195
4210
|
}
|
|
4196
4211
|
|
|
4197
|
-
/*! @azure/msal-common v16.0.
|
|
4212
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
4198
4213
|
|
|
4199
4214
|
/*
|
|
4200
4215
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4453,7 +4468,7 @@
|
|
|
4453
4468
|
return metadata.expiresAt <= nowSeconds();
|
|
4454
4469
|
}
|
|
4455
4470
|
|
|
4456
|
-
/*! @azure/msal-common v16.0.
|
|
4471
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
4457
4472
|
|
|
4458
4473
|
/*
|
|
4459
4474
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4789,7 +4804,7 @@
|
|
|
4789
4804
|
return baseAccount;
|
|
4790
4805
|
}
|
|
4791
4806
|
|
|
4792
|
-
/*! @azure/msal-common v16.0.
|
|
4807
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
4793
4808
|
/*
|
|
4794
4809
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4795
4810
|
* Licensed under the MIT License.
|
|
@@ -4799,7 +4814,7 @@
|
|
|
4799
4814
|
UPN: "UPN",
|
|
4800
4815
|
};
|
|
4801
4816
|
|
|
4802
|
-
/*! @azure/msal-common v16.0.
|
|
4817
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
4803
4818
|
/*
|
|
4804
4819
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4805
4820
|
* Licensed under the MIT License.
|
|
@@ -4817,7 +4832,7 @@
|
|
|
4817
4832
|
}
|
|
4818
4833
|
}
|
|
4819
4834
|
|
|
4820
|
-
/*! @azure/msal-common v16.0.
|
|
4835
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
4821
4836
|
/*
|
|
4822
4837
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4823
4838
|
* Licensed under the MIT License.
|
|
@@ -4838,7 +4853,7 @@
|
|
|
4838
4853
|
};
|
|
4839
4854
|
}
|
|
4840
4855
|
|
|
4841
|
-
/*! @azure/msal-common v16.0.
|
|
4856
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
4842
4857
|
|
|
4843
4858
|
/*
|
|
4844
4859
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4924,7 +4939,7 @@
|
|
|
4924
4939
|
}
|
|
4925
4940
|
}
|
|
4926
4941
|
|
|
4927
|
-
/*! @azure/msal-common v16.0.
|
|
4942
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
4928
4943
|
|
|
4929
4944
|
/*
|
|
4930
4945
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4955,7 +4970,7 @@
|
|
|
4955
4970
|
return new NetworkError(error, httpStatus, responseHeaders);
|
|
4956
4971
|
}
|
|
4957
4972
|
|
|
4958
|
-
/*! @azure/msal-common v16.0.
|
|
4973
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
4959
4974
|
|
|
4960
4975
|
/*
|
|
4961
4976
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5069,7 +5084,7 @@
|
|
|
5069
5084
|
return response;
|
|
5070
5085
|
}
|
|
5071
5086
|
|
|
5072
|
-
/*! @azure/msal-common v16.0.
|
|
5087
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
5073
5088
|
/*
|
|
5074
5089
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5075
5090
|
* Licensed under the MIT License.
|
|
@@ -5081,7 +5096,7 @@
|
|
|
5081
5096
|
response.hasOwnProperty("jwks_uri"));
|
|
5082
5097
|
}
|
|
5083
5098
|
|
|
5084
|
-
/*! @azure/msal-common v16.0.
|
|
5099
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
5085
5100
|
/*
|
|
5086
5101
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5087
5102
|
* Licensed under the MIT License.
|
|
@@ -5091,7 +5106,7 @@
|
|
|
5091
5106
|
response.hasOwnProperty("metadata"));
|
|
5092
5107
|
}
|
|
5093
5108
|
|
|
5094
|
-
/*! @azure/msal-common v16.0.
|
|
5109
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
5095
5110
|
/*
|
|
5096
5111
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5097
5112
|
* Licensed under the MIT License.
|
|
@@ -5101,7 +5116,7 @@
|
|
|
5101
5116
|
response.hasOwnProperty("error_description"));
|
|
5102
5117
|
}
|
|
5103
5118
|
|
|
5104
|
-
/*! @azure/msal-common v16.0.
|
|
5119
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
5105
5120
|
|
|
5106
5121
|
/*
|
|
5107
5122
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5206,7 +5221,7 @@
|
|
|
5206
5221
|
},
|
|
5207
5222
|
};
|
|
5208
5223
|
|
|
5209
|
-
/*! @azure/msal-common v16.0.
|
|
5224
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
5210
5225
|
|
|
5211
5226
|
/*
|
|
5212
5227
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6026,7 +6041,7 @@
|
|
|
6026
6041
|
};
|
|
6027
6042
|
}
|
|
6028
6043
|
|
|
6029
|
-
/*! @azure/msal-common v16.0.
|
|
6044
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
6030
6045
|
|
|
6031
6046
|
/*
|
|
6032
6047
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6060,7 +6075,7 @@
|
|
|
6060
6075
|
}
|
|
6061
6076
|
}
|
|
6062
6077
|
|
|
6063
|
-
/*! @azure/msal-common v16.0.
|
|
6078
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
6064
6079
|
|
|
6065
6080
|
/*
|
|
6066
6081
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6320,7 +6335,7 @@
|
|
|
6320
6335
|
}
|
|
6321
6336
|
}
|
|
6322
6337
|
|
|
6323
|
-
/*! @azure/msal-common v16.0.
|
|
6338
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
6324
6339
|
|
|
6325
6340
|
/*
|
|
6326
6341
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6545,7 +6560,7 @@
|
|
|
6545
6560
|
}
|
|
6546
6561
|
}
|
|
6547
6562
|
|
|
6548
|
-
/*! @azure/msal-common v16.0.
|
|
6563
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
6549
6564
|
|
|
6550
6565
|
/*
|
|
6551
6566
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6654,7 +6669,7 @@
|
|
|
6654
6669
|
}
|
|
6655
6670
|
}
|
|
6656
6671
|
|
|
6657
|
-
/*! @azure/msal-common v16.0.
|
|
6672
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
6658
6673
|
|
|
6659
6674
|
/*
|
|
6660
6675
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6669,7 +6684,7 @@
|
|
|
6669
6684
|
},
|
|
6670
6685
|
};
|
|
6671
6686
|
|
|
6672
|
-
/*! @azure/msal-common v16.0.
|
|
6687
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
6673
6688
|
|
|
6674
6689
|
/*
|
|
6675
6690
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6893,7 +6908,7 @@
|
|
|
6893
6908
|
return account.loginHint || account.idTokenClaims?.login_hint || null;
|
|
6894
6909
|
}
|
|
6895
6910
|
|
|
6896
|
-
/*! @azure/msal-common v16.0.
|
|
6911
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
6897
6912
|
|
|
6898
6913
|
/*
|
|
6899
6914
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6951,7 +6966,7 @@
|
|
|
6951
6966
|
}
|
|
6952
6967
|
}
|
|
6953
6968
|
|
|
6954
|
-
/*! @azure/msal-common v16.0.
|
|
6969
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
6955
6970
|
/*
|
|
6956
6971
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6957
6972
|
* Licensed under the MIT License.
|
|
@@ -6968,7 +6983,7 @@
|
|
|
6968
6983
|
unexpectedError: unexpectedError
|
|
6969
6984
|
});
|
|
6970
6985
|
|
|
6971
|
-
/*! @azure/msal-common v16.0.
|
|
6986
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
6972
6987
|
|
|
6973
6988
|
/*
|
|
6974
6989
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7229,7 +7244,7 @@
|
|
|
7229
7244
|
}
|
|
7230
7245
|
}
|
|
7231
7246
|
|
|
7232
|
-
/*! @azure/msal-common v16.0.
|
|
7247
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
7233
7248
|
|
|
7234
7249
|
/*
|
|
7235
7250
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7250,7 +7265,7 @@
|
|
|
7250
7265
|
return new JoseHeaderError(code);
|
|
7251
7266
|
}
|
|
7252
7267
|
|
|
7253
|
-
/*! @azure/msal-common v16.0.
|
|
7268
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
7254
7269
|
/*
|
|
7255
7270
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7256
7271
|
* Licensed under the MIT License.
|
|
@@ -7258,7 +7273,7 @@
|
|
|
7258
7273
|
const missingKidError = "missing_kid_error";
|
|
7259
7274
|
const missingAlgError = "missing_alg_error";
|
|
7260
7275
|
|
|
7261
|
-
/*! @azure/msal-common v16.0.
|
|
7276
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
7262
7277
|
|
|
7263
7278
|
/*
|
|
7264
7279
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7298,7 +7313,7 @@
|
|
|
7298
7313
|
}
|
|
7299
7314
|
}
|
|
7300
7315
|
|
|
7301
|
-
/*! @azure/msal-common v16.0.
|
|
7316
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
7302
7317
|
|
|
7303
7318
|
/*
|
|
7304
7319
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -10124,7 +10139,7 @@
|
|
|
10124
10139
|
|
|
10125
10140
|
/* eslint-disable header/header */
|
|
10126
10141
|
const name = "@azure/msal-browser";
|
|
10127
|
-
const version = "5.
|
|
10142
|
+
const version = "5.2.0";
|
|
10128
10143
|
|
|
10129
10144
|
/*
|
|
10130
10145
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -11137,7 +11152,7 @@
|
|
|
11137
11152
|
this.logger.verbose("1bp5z5", correlationId);
|
|
11138
11153
|
this.browserStorage.removeItem(activeAccountKey);
|
|
11139
11154
|
}
|
|
11140
|
-
this.eventHandler.emitEvent(EventType.ACTIVE_ACCOUNT_CHANGED);
|
|
11155
|
+
this.eventHandler.emitEvent(EventType.ACTIVE_ACCOUNT_CHANGED, correlationId);
|
|
11141
11156
|
}
|
|
11142
11157
|
/**
|
|
11143
11158
|
* fetch throttling entity from the platform cache
|
|
@@ -11600,12 +11615,13 @@
|
|
|
11600
11615
|
* @param payload
|
|
11601
11616
|
* @param error
|
|
11602
11617
|
*/
|
|
11603
|
-
emitEvent(eventType, interactionType, payload, error) {
|
|
11618
|
+
emitEvent(eventType, correlationId, interactionType, payload, error) {
|
|
11604
11619
|
const message = {
|
|
11605
11620
|
eventType: eventType,
|
|
11606
11621
|
interactionType: interactionType || null,
|
|
11607
11622
|
payload: payload || null,
|
|
11608
11623
|
error: error || null,
|
|
11624
|
+
correlationId: correlationId,
|
|
11609
11625
|
timestamp: Date.now(),
|
|
11610
11626
|
};
|
|
11611
11627
|
switch (eventType) {
|
|
@@ -13030,6 +13046,8 @@
|
|
|
13030
13046
|
});
|
|
13031
13047
|
const queryParams = new Map();
|
|
13032
13048
|
addExtraParameters(queryParams, request.extraQueryParameters || {});
|
|
13049
|
+
// Add correlationId to query params so gateway can propagate it to IDPs
|
|
13050
|
+
addCorrelationId(queryParams, request.correlationId);
|
|
13033
13051
|
const url = getAuthorizeUrl(authority, queryParams);
|
|
13034
13052
|
return createForm(frame, url, parameters);
|
|
13035
13053
|
}
|
|
@@ -13047,6 +13065,8 @@
|
|
|
13047
13065
|
// Add extraQueryParameters to be appended to request URL
|
|
13048
13066
|
const queryParams = new Map();
|
|
13049
13067
|
addExtraParameters(queryParams, request.extraQueryParameters || {});
|
|
13068
|
+
// Add correlationId to query params so gateway can propagate it to IDPs
|
|
13069
|
+
addCorrelationId(queryParams, request.correlationId);
|
|
13050
13070
|
const url = getAuthorizeUrl(authority, queryParams);
|
|
13051
13071
|
return createForm(frame, url, parameters);
|
|
13052
13072
|
}
|
|
@@ -14134,7 +14154,7 @@
|
|
|
14134
14154
|
const navigateUrl = await invokeAsync(getAuthCodeRequestUrl, GetAuthCodeUrl, this.logger, this.performanceClient, correlationId)(this.config, authClient.authority, popupRequest, this.logger, this.performanceClient);
|
|
14135
14155
|
// Show the UI once the url has been created. Get the window handle for the popup.
|
|
14136
14156
|
const popupWindow = this.initiateAuthRequest(navigateUrl, popupParams);
|
|
14137
|
-
this.eventHandler.emitEvent(EventType.POPUP_OPENED, exports.InteractionType.Popup, { popupWindow }, null);
|
|
14157
|
+
this.eventHandler.emitEvent(EventType.POPUP_OPENED, correlationId, exports.InteractionType.Popup, { popupWindow }, null);
|
|
14138
14158
|
// Wait for the redirect bridge response
|
|
14139
14159
|
const responseString = await waitForBridgeResponse(this.config.system.popupBridgeTimeout, this.logger, this.browserCrypto, request);
|
|
14140
14160
|
const serverParams = invoke(deserializeResponse, DeserializeResponse, this.logger, this.performanceClient, this.correlationId)(responseString, this.config.auth.OIDCOptions.responseMode, this.logger, this.correlationId);
|
|
@@ -14211,7 +14231,7 @@
|
|
|
14211
14231
|
*/
|
|
14212
14232
|
async logoutPopupAsync(validRequest, popupParams, requestAuthority, mainWindowRedirectUri) {
|
|
14213
14233
|
this.logger.verbose("0b7yrk", this.correlationId);
|
|
14214
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_START, exports.InteractionType.Popup, validRequest);
|
|
14234
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_START, this.correlationId, exports.InteractionType.Popup, validRequest);
|
|
14215
14235
|
const serverTelemetryManager = initializeServerTelemetryManager(ApiId.logoutPopup, this.config.auth.clientId, this.correlationId, this.browserStorage, this.logger);
|
|
14216
14236
|
try {
|
|
14217
14237
|
// Clear cache on logout
|
|
@@ -14229,7 +14249,7 @@
|
|
|
14229
14249
|
if (validRequest.account?.homeAccountId &&
|
|
14230
14250
|
validRequest.postLogoutRedirectUri &&
|
|
14231
14251
|
authClient.authority.protocolMode === ProtocolMode.OIDC) {
|
|
14232
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, exports.InteractionType.Popup, validRequest);
|
|
14252
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, validRequest.correlationId, exports.InteractionType.Popup, validRequest);
|
|
14233
14253
|
if (mainWindowRedirectUri) {
|
|
14234
14254
|
const navigationOptions = {
|
|
14235
14255
|
apiId: ApiId.logoutPopup,
|
|
@@ -14245,10 +14265,10 @@
|
|
|
14245
14265
|
}
|
|
14246
14266
|
// Create logout string and navigate user window to logout.
|
|
14247
14267
|
const logoutUri = authClient.getLogoutUri(validRequest);
|
|
14248
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, exports.InteractionType.Popup, validRequest);
|
|
14268
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, validRequest.correlationId, exports.InteractionType.Popup, validRequest);
|
|
14249
14269
|
// Open the popup window to requestUrl.
|
|
14250
14270
|
const popupWindow = this.openPopup(logoutUri, popupParams);
|
|
14251
|
-
this.eventHandler.emitEvent(EventType.POPUP_OPENED, exports.InteractionType.Popup, { popupWindow }, null);
|
|
14271
|
+
this.eventHandler.emitEvent(EventType.POPUP_OPENED, validRequest.correlationId, exports.InteractionType.Popup, { popupWindow }, null);
|
|
14252
14272
|
await waitForBridgeResponse(this.config.system.popupBridgeTimeout, this.logger, this.browserCrypto, validRequest).catch(() => {
|
|
14253
14273
|
// Swallow any errors related to monitoring the window. Server logout is best effort
|
|
14254
14274
|
});
|
|
@@ -14274,11 +14294,11 @@
|
|
|
14274
14294
|
e.setCorrelationId(this.correlationId);
|
|
14275
14295
|
serverTelemetryManager.cacheFailedRequest(e);
|
|
14276
14296
|
}
|
|
14277
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_FAILURE, exports.InteractionType.Popup, null, e);
|
|
14278
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_END, exports.InteractionType.Popup);
|
|
14297
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_FAILURE, this.correlationId, exports.InteractionType.Popup, null, e);
|
|
14298
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_END, this.correlationId, exports.InteractionType.Popup);
|
|
14279
14299
|
throw e;
|
|
14280
14300
|
}
|
|
14281
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_END, exports.InteractionType.Popup);
|
|
14301
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_END, this.correlationId, exports.InteractionType.Popup);
|
|
14282
14302
|
}
|
|
14283
14303
|
/**
|
|
14284
14304
|
* Opens a popup window with given request Url.
|
|
@@ -14441,7 +14461,7 @@
|
|
|
14441
14461
|
if (event.persisted) {
|
|
14442
14462
|
this.logger.verbose("0udvtt", this.correlationId);
|
|
14443
14463
|
this.browserStorage.resetRequestCache(this.correlationId);
|
|
14444
|
-
this.eventHandler.emitEvent(EventType.RESTORE_FROM_BFCACHE, exports.InteractionType.Redirect);
|
|
14464
|
+
this.eventHandler.emitEvent(EventType.RESTORE_FROM_BFCACHE, this.correlationId, exports.InteractionType.Redirect);
|
|
14445
14465
|
}
|
|
14446
14466
|
};
|
|
14447
14467
|
const redirectStartPage = this.getRedirectStartPage(request.redirectStartPage);
|
|
@@ -14758,7 +14778,7 @@
|
|
|
14758
14778
|
const validLogoutRequest = this.initializeLogoutRequest(logoutRequest);
|
|
14759
14779
|
const serverTelemetryManager = initializeServerTelemetryManager(ApiId.logout, this.config.auth.clientId, this.correlationId, this.browserStorage, this.logger);
|
|
14760
14780
|
try {
|
|
14761
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_START, exports.InteractionType.Redirect, logoutRequest);
|
|
14781
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_START, this.correlationId, exports.InteractionType.Redirect, logoutRequest);
|
|
14762
14782
|
// Clear cache on logout
|
|
14763
14783
|
await clearCacheOnLogout(this.browserStorage, this.browserCrypto, this.logger, this.correlationId, validLogoutRequest.account);
|
|
14764
14784
|
const navigationOptions = {
|
|
@@ -14778,7 +14798,7 @@
|
|
|
14778
14798
|
}
|
|
14779
14799
|
catch {
|
|
14780
14800
|
if (validLogoutRequest.account?.homeAccountId) {
|
|
14781
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, exports.InteractionType.Redirect, validLogoutRequest);
|
|
14801
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, this.correlationId, exports.InteractionType.Redirect, validLogoutRequest);
|
|
14782
14802
|
return;
|
|
14783
14803
|
}
|
|
14784
14804
|
}
|
|
@@ -14786,7 +14806,7 @@
|
|
|
14786
14806
|
// Create logout string and navigate user window to logout.
|
|
14787
14807
|
const logoutUri = authClient.getLogoutUri(validLogoutRequest);
|
|
14788
14808
|
if (validLogoutRequest.account?.homeAccountId) {
|
|
14789
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, exports.InteractionType.Redirect, validLogoutRequest);
|
|
14809
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, this.correlationId, exports.InteractionType.Redirect, validLogoutRequest);
|
|
14790
14810
|
}
|
|
14791
14811
|
// Check if onRedirectNavigate is implemented, and invoke it if so
|
|
14792
14812
|
const onRedirectNavigate = this.config.auth.onRedirectNavigate;
|
|
@@ -14821,11 +14841,11 @@
|
|
|
14821
14841
|
e.setCorrelationId(this.correlationId);
|
|
14822
14842
|
serverTelemetryManager.cacheFailedRequest(e);
|
|
14823
14843
|
}
|
|
14824
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_FAILURE, exports.InteractionType.Redirect, null, e);
|
|
14825
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_END, exports.InteractionType.Redirect);
|
|
14844
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_FAILURE, this.correlationId, exports.InteractionType.Redirect, null, e);
|
|
14845
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_END, this.correlationId, exports.InteractionType.Redirect);
|
|
14826
14846
|
throw e;
|
|
14827
14847
|
}
|
|
14828
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_END, exports.InteractionType.Redirect);
|
|
14848
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_END, this.correlationId, exports.InteractionType.Redirect);
|
|
14829
14849
|
}
|
|
14830
14850
|
/**
|
|
14831
14851
|
* Use to get the redirectStartPage either from request or use current window
|
|
@@ -15316,23 +15336,22 @@
|
|
|
15316
15336
|
if (!this.isBrowserEnvironment) {
|
|
15317
15337
|
this.logger.info("19fvpi", correlationId);
|
|
15318
15338
|
this.initialized = true;
|
|
15319
|
-
this.eventHandler.emitEvent(EventType.INITIALIZE_END);
|
|
15339
|
+
this.eventHandler.emitEvent(EventType.INITIALIZE_END, correlationId);
|
|
15320
15340
|
return;
|
|
15321
15341
|
}
|
|
15322
|
-
const initCorrelationId = request?.correlationId || this.getRequestCorrelationId();
|
|
15323
15342
|
const allowPlatformBroker = this.config.system.allowPlatformBroker;
|
|
15324
|
-
const initMeasurement = this.performanceClient.startMeasurement(InitializeClientApplication,
|
|
15325
|
-
this.eventHandler.emitEvent(EventType.INITIALIZE_START);
|
|
15343
|
+
const initMeasurement = this.performanceClient.startMeasurement(InitializeClientApplication, correlationId);
|
|
15344
|
+
this.eventHandler.emitEvent(EventType.INITIALIZE_START, correlationId);
|
|
15326
15345
|
// Broker applications are initialized twice, so we avoid double-counting it
|
|
15327
|
-
this.logMultipleInstances(initMeasurement,
|
|
15328
|
-
await invokeAsync(this.browserStorage.initialize.bind(this.browserStorage), InitializeCache, this.logger, this.performanceClient,
|
|
15346
|
+
this.logMultipleInstances(initMeasurement, correlationId);
|
|
15347
|
+
await invokeAsync(this.browserStorage.initialize.bind(this.browserStorage), InitializeCache, this.logger, this.performanceClient, correlationId)(correlationId);
|
|
15329
15348
|
if (allowPlatformBroker) {
|
|
15330
15349
|
try {
|
|
15331
15350
|
// check if platform authentication is available via DOM or browser extension and create relevant handlers
|
|
15332
|
-
this.platformAuthProvider = await getPlatformAuthProvider(this.logger, this.performanceClient,
|
|
15351
|
+
this.platformAuthProvider = await getPlatformAuthProvider(this.logger, this.performanceClient, correlationId, this.config.system.nativeBrokerHandshakeTimeout);
|
|
15333
15352
|
}
|
|
15334
15353
|
catch (e) {
|
|
15335
|
-
this.logger.verbose(e,
|
|
15354
|
+
this.logger.verbose(e, correlationId);
|
|
15336
15355
|
}
|
|
15337
15356
|
}
|
|
15338
15357
|
if (this.config.cache.cacheLocation ===
|
|
@@ -15340,9 +15359,9 @@
|
|
|
15340
15359
|
this.eventHandler.subscribeCrossTab();
|
|
15341
15360
|
}
|
|
15342
15361
|
!this.config.system.navigatePopups &&
|
|
15343
|
-
(await this.preGeneratePkceCodes(
|
|
15362
|
+
(await this.preGeneratePkceCodes(correlationId));
|
|
15344
15363
|
this.initialized = true;
|
|
15345
|
-
this.eventHandler.emitEvent(EventType.INITIALIZE_END);
|
|
15364
|
+
this.eventHandler.emitEvent(EventType.INITIALIZE_END, correlationId);
|
|
15346
15365
|
initMeasurement.end({
|
|
15347
15366
|
allowPlatformBroker: allowPlatformBroker,
|
|
15348
15367
|
success: true,
|
|
@@ -15404,11 +15423,11 @@
|
|
|
15404
15423
|
this.platformAuthProvider &&
|
|
15405
15424
|
!options?.hash;
|
|
15406
15425
|
let rootMeasurement;
|
|
15407
|
-
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_START, exports.InteractionType.Redirect);
|
|
15408
15426
|
let redirectResponse;
|
|
15409
15427
|
try {
|
|
15410
15428
|
if (useNative && this.platformAuthProvider) {
|
|
15411
15429
|
const correlationId = platformBrokerRequest?.correlationId || "";
|
|
15430
|
+
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_START, correlationId, exports.InteractionType.Redirect);
|
|
15412
15431
|
rootMeasurement = this.performanceClient.startMeasurement(AcquireTokenRedirect, correlationId);
|
|
15413
15432
|
this.logger.trace("12v7is", correlationId);
|
|
15414
15433
|
const nativeClient = new PlatformAuthInteractionClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, ApiId.handleRedirectPromise, this.performanceClient, this.platformAuthProvider, platformBrokerRequest.accountId, this.nativeInternalStorage, platformBrokerRequest.correlationId);
|
|
@@ -15417,6 +15436,7 @@
|
|
|
15417
15436
|
else {
|
|
15418
15437
|
const [standardRequest, codeVerifier] = this.browserStorage.getCachedRequest("");
|
|
15419
15438
|
const correlationId = standardRequest.correlationId;
|
|
15439
|
+
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_START, correlationId, exports.InteractionType.Redirect);
|
|
15420
15440
|
// Reset rootMeasurement now that we have correlationId
|
|
15421
15441
|
rootMeasurement = this.performanceClient.startMeasurement(AcquireTokenRedirect, correlationId);
|
|
15422
15442
|
this.logger.trace("0znzs5", correlationId);
|
|
@@ -15432,12 +15452,12 @@
|
|
|
15432
15452
|
.then((result) => {
|
|
15433
15453
|
if (result) {
|
|
15434
15454
|
this.browserStorage.resetRequestCache(result.correlationId);
|
|
15435
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Redirect, result);
|
|
15455
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, result.correlationId, exports.InteractionType.Redirect, result);
|
|
15436
15456
|
this.logger.verbose("0ui8f5", result.correlationId);
|
|
15437
15457
|
// Emit login event if number of accounts change
|
|
15438
15458
|
const isLoggingIn = loggedInAccounts.length < this.getAllAccounts().length;
|
|
15439
15459
|
if (isLoggingIn) {
|
|
15440
|
-
this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, exports.InteractionType.Redirect, result.account);
|
|
15460
|
+
this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, result.correlationId, exports.InteractionType.Redirect, result.account);
|
|
15441
15461
|
this.logger.verbose("16im3l", result.correlationId);
|
|
15442
15462
|
}
|
|
15443
15463
|
rootMeasurement.end({
|
|
@@ -15456,14 +15476,14 @@
|
|
|
15456
15476
|
rootMeasurement.discard();
|
|
15457
15477
|
}
|
|
15458
15478
|
}
|
|
15459
|
-
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_END, exports.InteractionType.Redirect);
|
|
15479
|
+
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_END, rootMeasurement.event.correlationId, exports.InteractionType.Redirect);
|
|
15460
15480
|
return result;
|
|
15461
15481
|
})
|
|
15462
15482
|
.catch((e) => {
|
|
15463
15483
|
this.browserStorage.resetRequestCache(rootMeasurement.event.correlationId);
|
|
15464
15484
|
const eventError = e;
|
|
15465
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Redirect, null, eventError);
|
|
15466
|
-
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_END, exports.InteractionType.Redirect);
|
|
15485
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, rootMeasurement.event.correlationId, exports.InteractionType.Redirect, null, eventError);
|
|
15486
|
+
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_END, rootMeasurement.event.correlationId, exports.InteractionType.Redirect);
|
|
15467
15487
|
rootMeasurement.end({
|
|
15468
15488
|
success: false,
|
|
15469
15489
|
}, eventError);
|
|
@@ -15502,7 +15522,7 @@
|
|
|
15502
15522
|
try {
|
|
15503
15523
|
redirectPreflightCheck(this.initialized, this.config);
|
|
15504
15524
|
this.browserStorage.setInteractionInProgress(true, INTERACTION_TYPE.SIGNIN);
|
|
15505
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, exports.InteractionType.Redirect, request);
|
|
15525
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, exports.InteractionType.Redirect, request);
|
|
15506
15526
|
let result;
|
|
15507
15527
|
if (this.platformAuthProvider &&
|
|
15508
15528
|
this.canUsePlatformBroker(request)) {
|
|
@@ -15544,7 +15564,7 @@
|
|
|
15544
15564
|
else {
|
|
15545
15565
|
atrMeasurement.end({ success: false }, e, request.account);
|
|
15546
15566
|
}
|
|
15547
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Redirect, null, e);
|
|
15567
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, exports.InteractionType.Redirect, null, e);
|
|
15548
15568
|
throw e;
|
|
15549
15569
|
}
|
|
15550
15570
|
}
|
|
@@ -15574,7 +15594,7 @@
|
|
|
15574
15594
|
}
|
|
15575
15595
|
// If logged in, emit acquire token events
|
|
15576
15596
|
const loggedInAccounts = this.getAllAccounts();
|
|
15577
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, exports.InteractionType.Popup, request);
|
|
15597
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, exports.InteractionType.Popup, request);
|
|
15578
15598
|
let result;
|
|
15579
15599
|
const pkce = this.getPreGeneratedPkceCodes(correlationId);
|
|
15580
15600
|
if (this.canUsePlatformBroker(request)) {
|
|
@@ -15614,9 +15634,9 @@
|
|
|
15614
15634
|
* If logged in, emit acquire token events
|
|
15615
15635
|
*/
|
|
15616
15636
|
const isLoggingIn = loggedInAccounts.length < this.getAllAccounts().length;
|
|
15617
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Popup, result);
|
|
15637
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, correlationId, exports.InteractionType.Popup, result);
|
|
15618
15638
|
if (isLoggingIn) {
|
|
15619
|
-
this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, exports.InteractionType.Popup, result.account);
|
|
15639
|
+
this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, correlationId, exports.InteractionType.Popup, result.account);
|
|
15620
15640
|
}
|
|
15621
15641
|
atPopupMeasurement.end({
|
|
15622
15642
|
success: true,
|
|
@@ -15626,7 +15646,7 @@
|
|
|
15626
15646
|
return result;
|
|
15627
15647
|
})
|
|
15628
15648
|
.catch((e) => {
|
|
15629
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Popup, null, e);
|
|
15649
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, exports.InteractionType.Popup, null, e);
|
|
15630
15650
|
atPopupMeasurement.end({
|
|
15631
15651
|
success: false,
|
|
15632
15652
|
}, e, request.account);
|
|
@@ -15686,7 +15706,7 @@
|
|
|
15686
15706
|
document.addEventListener("visibilitychange", this.trackPageVisibilityWithMeasurement);
|
|
15687
15707
|
const loggedInAccounts = this.getAllAccounts();
|
|
15688
15708
|
this.logger.verbose("0w1b45", correlationId);
|
|
15689
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, exports.InteractionType.Silent, validRequest);
|
|
15709
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, exports.InteractionType.Silent, validRequest);
|
|
15690
15710
|
let result;
|
|
15691
15711
|
if (this.canUsePlatformBroker(validRequest)) {
|
|
15692
15712
|
result = this.acquireTokenNative(validRequest, ApiId.ssoSilent).catch((e) => {
|
|
@@ -15706,9 +15726,9 @@
|
|
|
15706
15726
|
return result
|
|
15707
15727
|
.then((response) => {
|
|
15708
15728
|
const isLoggingIn = loggedInAccounts.length < this.getAllAccounts().length;
|
|
15709
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Silent, response);
|
|
15729
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, correlationId, exports.InteractionType.Silent, response);
|
|
15710
15730
|
if (isLoggingIn) {
|
|
15711
|
-
this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, exports.InteractionType.Silent, response.account);
|
|
15731
|
+
this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, correlationId, exports.InteractionType.Silent, response.account);
|
|
15712
15732
|
}
|
|
15713
15733
|
this.ssoSilentMeasurement?.end({
|
|
15714
15734
|
success: true,
|
|
@@ -15719,7 +15739,7 @@
|
|
|
15719
15739
|
return response;
|
|
15720
15740
|
})
|
|
15721
15741
|
.catch((e) => {
|
|
15722
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Silent, null, e);
|
|
15742
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, exports.InteractionType.Silent, null, e);
|
|
15723
15743
|
this.ssoSilentMeasurement?.end({
|
|
15724
15744
|
success: false,
|
|
15725
15745
|
}, e, request.account);
|
|
@@ -15744,7 +15764,7 @@
|
|
|
15744
15764
|
this.logger.trace("0ch6ga", correlationId);
|
|
15745
15765
|
const atbcMeasurement = this.performanceClient.startMeasurement(AcquireTokenByCode, correlationId);
|
|
15746
15766
|
preflightCheck(this.initialized, atbcMeasurement);
|
|
15747
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, exports.InteractionType.Silent, request);
|
|
15767
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, exports.InteractionType.Silent, request);
|
|
15748
15768
|
atbcMeasurement.add({ scenarioId: request.scenarioId });
|
|
15749
15769
|
try {
|
|
15750
15770
|
if (request.code && request.nativeAccountId) {
|
|
@@ -15761,7 +15781,7 @@
|
|
|
15761
15781
|
correlationId,
|
|
15762
15782
|
})
|
|
15763
15783
|
.then((result) => {
|
|
15764
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Silent, result);
|
|
15784
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, correlationId, exports.InteractionType.Silent, result);
|
|
15765
15785
|
this.hybridAuthCodeResponses.delete(hybridAuthCode);
|
|
15766
15786
|
atbcMeasurement.end({
|
|
15767
15787
|
success: true,
|
|
@@ -15773,7 +15793,7 @@
|
|
|
15773
15793
|
})
|
|
15774
15794
|
.catch((error) => {
|
|
15775
15795
|
this.hybridAuthCodeResponses.delete(hybridAuthCode);
|
|
15776
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Silent, null, error);
|
|
15796
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, exports.InteractionType.Silent, null, error);
|
|
15777
15797
|
atbcMeasurement.end({
|
|
15778
15798
|
success: false,
|
|
15779
15799
|
}, error);
|
|
@@ -15814,7 +15834,7 @@
|
|
|
15814
15834
|
}
|
|
15815
15835
|
}
|
|
15816
15836
|
catch (e) {
|
|
15817
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Silent, null, e);
|
|
15837
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, exports.InteractionType.Silent, null, e);
|
|
15818
15838
|
atbcMeasurement.end({
|
|
15819
15839
|
success: false,
|
|
15820
15840
|
}, e);
|
|
@@ -16316,7 +16336,7 @@
|
|
|
16316
16336
|
*/
|
|
16317
16337
|
async acquireTokenSilentAsync(request, account) {
|
|
16318
16338
|
const trackPageVisibility = () => this.trackPageVisibility(request.correlationId);
|
|
16319
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, exports.InteractionType.Silent, request);
|
|
16339
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, request.correlationId, exports.InteractionType.Silent, request);
|
|
16320
16340
|
if (request.correlationId) {
|
|
16321
16341
|
this.performanceClient.incrementFields({ visibilityChangeCount: 0 }, request.correlationId);
|
|
16322
16342
|
}
|
|
@@ -16384,7 +16404,7 @@
|
|
|
16384
16404
|
});
|
|
16385
16405
|
return result
|
|
16386
16406
|
.then((response) => {
|
|
16387
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Silent, response);
|
|
16407
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, request.correlationId, exports.InteractionType.Silent, response);
|
|
16388
16408
|
if (request.correlationId) {
|
|
16389
16409
|
this.performanceClient.addFields({
|
|
16390
16410
|
fromCache: response.fromCache,
|
|
@@ -16394,7 +16414,7 @@
|
|
|
16394
16414
|
return response;
|
|
16395
16415
|
})
|
|
16396
16416
|
.catch((tokenRenewalError) => {
|
|
16397
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Silent, null, tokenRenewalError);
|
|
16417
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, request.correlationId, exports.InteractionType.Silent, null, tokenRenewalError);
|
|
16398
16418
|
throw tokenRenewalError;
|
|
16399
16419
|
})
|
|
16400
16420
|
.finally(() => {
|
|
@@ -16433,7 +16453,7 @@
|
|
|
16433
16453
|
if (cacheLookupPolicy === CacheLookupPolicy.AccessToken) {
|
|
16434
16454
|
throw cacheError;
|
|
16435
16455
|
}
|
|
16436
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_NETWORK_START, exports.InteractionType.Silent, silentRequest);
|
|
16456
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_NETWORK_START, silentRequest.correlationId, exports.InteractionType.Silent, silentRequest);
|
|
16437
16457
|
return invokeAsync(this.acquireTokenByRefreshToken.bind(this), AcquireTokenByRefreshToken, this.logger, this.performanceClient, silentRequest.correlationId)(silentRequest, cacheLookupPolicy);
|
|
16438
16458
|
});
|
|
16439
16459
|
}
|
|
@@ -16763,19 +16783,36 @@
|
|
|
16763
16783
|
effectiveIdTokenClaims?.oid ||
|
|
16764
16784
|
effectiveIdTokenClaims?.sub ||
|
|
16765
16785
|
"";
|
|
16766
|
-
|
|
16767
|
-
|
|
16768
|
-
|
|
16769
|
-
|
|
16786
|
+
/*
|
|
16787
|
+
* In B2C scenarios tid may not be present, use getTenantIdFromIdTokenClaims
|
|
16788
|
+
* which handles tid, tfp (modern B2C), and acr (legacy B2C) claims
|
|
16789
|
+
*/
|
|
16790
|
+
const tenantId = fromAccount.tenantId ||
|
|
16791
|
+
getTenantIdFromIdTokenClaims(effectiveIdTokenClaims) ||
|
|
16770
16792
|
"";
|
|
16771
|
-
const
|
|
16793
|
+
const homeAccountId = fromAccount.homeAccountId || `${localAccountId}.${tenantId}`;
|
|
16794
|
+
// Validate environment - required field
|
|
16795
|
+
const environment = fromAccount.environment;
|
|
16796
|
+
if (!environment) {
|
|
16797
|
+
throw createClientAuthError(invalidCacheEnvironment);
|
|
16798
|
+
}
|
|
16799
|
+
/*
|
|
16800
|
+
* In B2C scenarios the emails claim is used instead of preferred_username and it is an array.
|
|
16801
|
+
* In most cases it will contain a single email. This field should not be relied upon if a custom
|
|
16802
|
+
* policy is configured to return more than 1 email.
|
|
16803
|
+
*/
|
|
16804
|
+
const preferredUsername = effectiveIdTokenClaims?.preferred_username ||
|
|
16805
|
+
effectiveIdTokenClaims?.upn;
|
|
16806
|
+
const email = effectiveIdTokenClaims?.emails?.[0] || null;
|
|
16807
|
+
const username = fromAccount.username || preferredUsername || email || "";
|
|
16808
|
+
const name = fromAccount.name || effectiveIdTokenClaims?.name || "";
|
|
16772
16809
|
const loginHint = fromAccount.loginHint || effectiveIdTokenClaims?.login_hint;
|
|
16773
16810
|
const tenantProfiles = new Map();
|
|
16774
16811
|
const tenantProfile = buildTenantProfile(homeAccountId, localAccountId, tenantId, effectiveIdTokenClaims);
|
|
16775
16812
|
tenantProfiles.set(tenantId, tenantProfile);
|
|
16776
16813
|
const account = {
|
|
16777
16814
|
homeAccountId,
|
|
16778
|
-
environment
|
|
16815
|
+
environment,
|
|
16779
16816
|
tenantId,
|
|
16780
16817
|
username,
|
|
16781
16818
|
localAccountId,
|
|
@@ -16946,7 +16983,7 @@
|
|
|
16946
16983
|
async acquireTokenInteractive(request) {
|
|
16947
16984
|
const validRequest = this.ensureValidRequest(request);
|
|
16948
16985
|
const correlationId = validRequest.correlationId || createNewGuid();
|
|
16949
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, exports.InteractionType.Popup, validRequest);
|
|
16986
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, exports.InteractionType.Popup, validRequest);
|
|
16950
16987
|
const atPopupMeasurement = this.performanceClient.startMeasurement(AcquireTokenPopup, correlationId);
|
|
16951
16988
|
atPopupMeasurement.add({ nestedAppAuthRequest: true });
|
|
16952
16989
|
try {
|
|
@@ -16970,7 +17007,7 @@
|
|
|
16970
17007
|
environment: result.account.environment,
|
|
16971
17008
|
tenantId: result.account.tenantId,
|
|
16972
17009
|
};
|
|
16973
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Popup, result);
|
|
17010
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, correlationId, exports.InteractionType.Popup, result);
|
|
16974
17011
|
atPopupMeasurement.add({
|
|
16975
17012
|
accessTokenSize: result.accessToken.length,
|
|
16976
17013
|
idTokenSize: result.idToken.length,
|
|
@@ -16985,7 +17022,7 @@
|
|
|
16985
17022
|
const error = e instanceof AuthError
|
|
16986
17023
|
? e
|
|
16987
17024
|
: this.nestedAppAuthAdapter.fromBridgeError(e);
|
|
16988
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Popup, null, e);
|
|
17025
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, exports.InteractionType.Popup, null, e);
|
|
16989
17026
|
atPopupMeasurement.end({
|
|
16990
17027
|
success: false,
|
|
16991
17028
|
}, e, request.account);
|
|
@@ -17000,11 +17037,11 @@
|
|
|
17000
17037
|
async acquireTokenSilentInternal(request) {
|
|
17001
17038
|
const validRequest = this.ensureValidRequest(request);
|
|
17002
17039
|
const correlationId = validRequest.correlationId || createNewGuid();
|
|
17003
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, exports.InteractionType.Silent, validRequest);
|
|
17040
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, exports.InteractionType.Silent, validRequest);
|
|
17004
17041
|
// Look for tokens in the cache first
|
|
17005
17042
|
const result = await this.acquireTokenFromCache(validRequest);
|
|
17006
17043
|
if (result) {
|
|
17007
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Silent, result);
|
|
17044
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, correlationId, exports.InteractionType.Silent, result);
|
|
17008
17045
|
return result;
|
|
17009
17046
|
}
|
|
17010
17047
|
// proceed with acquiring tokens via the host
|
|
@@ -17035,7 +17072,7 @@
|
|
|
17035
17072
|
environment: result.account.environment,
|
|
17036
17073
|
tenantId: result.account.tenantId,
|
|
17037
17074
|
};
|
|
17038
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Silent, result);
|
|
17075
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, correlationId, exports.InteractionType.Silent, result);
|
|
17039
17076
|
ssoSilentMeasurement?.add({
|
|
17040
17077
|
accessTokenSize: result.accessToken.length,
|
|
17041
17078
|
idTokenSize: result.idToken.length,
|
|
@@ -17050,7 +17087,7 @@
|
|
|
17050
17087
|
const error = e instanceof AuthError
|
|
17051
17088
|
? e
|
|
17052
17089
|
: this.nestedAppAuthAdapter.fromBridgeError(e);
|
|
17053
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Silent, null, e);
|
|
17090
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, exports.InteractionType.Silent, null, e);
|
|
17054
17091
|
ssoSilentMeasurement?.end({
|
|
17055
17092
|
success: false,
|
|
17056
17093
|
}, e, request.account);
|
|
@@ -17093,7 +17130,7 @@
|
|
|
17093
17130
|
return null;
|
|
17094
17131
|
}
|
|
17095
17132
|
if (result) {
|
|
17096
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Silent, result);
|
|
17133
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, correlationId, exports.InteractionType.Silent, result);
|
|
17097
17134
|
atsMeasurement.add({
|
|
17098
17135
|
accessTokenSize: result.accessToken.length,
|
|
17099
17136
|
idTokenSize: result.idToken.length,
|
|
@@ -17104,7 +17141,7 @@
|
|
|
17104
17141
|
return result;
|
|
17105
17142
|
}
|
|
17106
17143
|
this.logger.warning("1yb4fi", correlationId);
|
|
17107
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Silent, null);
|
|
17144
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, exports.InteractionType.Silent, null);
|
|
17108
17145
|
atsMeasurement.end({
|
|
17109
17146
|
success: false,
|
|
17110
17147
|
}, undefined, request.account);
|