@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.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.2.0 2026-02-10 */
|
|
2
2
|
'use strict';
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
|
-
/*! @azure/msal-common v16.0.
|
|
5
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
6
6
|
/*
|
|
7
7
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8
8
|
* Licensed under the MIT License.
|
|
@@ -234,7 +234,7 @@ const JsonWebTokenTypes$1 = {
|
|
|
234
234
|
// Token renewal offset default in seconds
|
|
235
235
|
const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
|
|
236
236
|
|
|
237
|
-
/*! @azure/msal-common v16.0.
|
|
237
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
238
238
|
/*
|
|
239
239
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
240
240
|
* Licensed under the MIT License.
|
|
@@ -284,7 +284,7 @@ const INSTANCE_AWARE = "instance_aware";
|
|
|
284
284
|
const EAR_JWK = "ear_jwk";
|
|
285
285
|
const EAR_JWE_CRYPTO = "ear_jwe_crypto";
|
|
286
286
|
|
|
287
|
-
/*! @azure/msal-common v16.0.
|
|
287
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
288
288
|
/*
|
|
289
289
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
290
290
|
* Licensed under the MIT License.
|
|
@@ -315,7 +315,7 @@ function createAuthError(code, additionalMessage) {
|
|
|
315
315
|
return new AuthError(code, additionalMessage || getDefaultErrorMessage$1(code));
|
|
316
316
|
}
|
|
317
317
|
|
|
318
|
-
/*! @azure/msal-common v16.0.
|
|
318
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
319
319
|
|
|
320
320
|
/*
|
|
321
321
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -335,7 +335,7 @@ function createClientConfigurationError(errorCode) {
|
|
|
335
335
|
return new ClientConfigurationError(errorCode);
|
|
336
336
|
}
|
|
337
337
|
|
|
338
|
-
/*! @azure/msal-common v16.0.
|
|
338
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
339
339
|
/*
|
|
340
340
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
341
341
|
* Licensed under the MIT License.
|
|
@@ -432,7 +432,7 @@ class StringUtils {
|
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
434
|
|
|
435
|
-
/*! @azure/msal-common v16.0.
|
|
435
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
436
436
|
|
|
437
437
|
/*
|
|
438
438
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -455,7 +455,7 @@ function createClientAuthError(errorCode, additionalMessage) {
|
|
|
455
455
|
return new ClientAuthError(errorCode, additionalMessage);
|
|
456
456
|
}
|
|
457
457
|
|
|
458
|
-
/*! @azure/msal-common v16.0.
|
|
458
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
459
459
|
/*
|
|
460
460
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
461
461
|
* Licensed under the MIT License.
|
|
@@ -509,7 +509,7 @@ var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
509
509
|
urlParseError: urlParseError
|
|
510
510
|
});
|
|
511
511
|
|
|
512
|
-
/*! @azure/msal-common v16.0.
|
|
512
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
513
513
|
/*
|
|
514
514
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
515
515
|
* Licensed under the MIT License.
|
|
@@ -593,7 +593,7 @@ var ClientAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
593
593
|
userCanceled: userCanceled
|
|
594
594
|
});
|
|
595
595
|
|
|
596
|
-
/*! @azure/msal-common v16.0.
|
|
596
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
597
597
|
|
|
598
598
|
/*
|
|
599
599
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -788,7 +788,7 @@ class ScopeSet {
|
|
|
788
788
|
}
|
|
789
789
|
}
|
|
790
790
|
|
|
791
|
-
/*! @azure/msal-common v16.0.
|
|
791
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
792
792
|
|
|
793
793
|
/*
|
|
794
794
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1155,7 +1155,7 @@ function addEARParameters(parameters, jwk) {
|
|
|
1155
1155
|
parameters.set(EAR_JWE_CRYPTO, jweCryptoB64Encoded);
|
|
1156
1156
|
}
|
|
1157
1157
|
|
|
1158
|
-
/*! @azure/msal-common v16.0.
|
|
1158
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
1159
1159
|
|
|
1160
1160
|
/*
|
|
1161
1161
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1264,7 +1264,7 @@ function normalizeUrlForComparison(url) {
|
|
|
1264
1264
|
}
|
|
1265
1265
|
}
|
|
1266
1266
|
|
|
1267
|
-
/*! @azure/msal-common v16.0.
|
|
1267
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
1268
1268
|
|
|
1269
1269
|
/*
|
|
1270
1270
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1303,7 +1303,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
|
|
|
1303
1303
|
},
|
|
1304
1304
|
};
|
|
1305
1305
|
|
|
1306
|
-
/*! @azure/msal-common v16.0.
|
|
1306
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
1307
1307
|
/*
|
|
1308
1308
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1309
1309
|
* Licensed under the MIT License.
|
|
@@ -1578,12 +1578,12 @@ class Logger {
|
|
|
1578
1578
|
}
|
|
1579
1579
|
}
|
|
1580
1580
|
|
|
1581
|
-
/*! @azure/msal-common v16.0.
|
|
1581
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
1582
1582
|
/* eslint-disable header/header */
|
|
1583
1583
|
const name$1 = "@azure/msal-common";
|
|
1584
|
-
const version$1 = "16.0.
|
|
1584
|
+
const version$1 = "16.0.4";
|
|
1585
1585
|
|
|
1586
|
-
/*! @azure/msal-common v16.0.
|
|
1586
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
1587
1587
|
/*
|
|
1588
1588
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1589
1589
|
* Licensed under the MIT License.
|
|
@@ -1603,7 +1603,7 @@ const AzureCloudInstance = {
|
|
|
1603
1603
|
AzureUsGovernment: "https://login.microsoftonline.us",
|
|
1604
1604
|
};
|
|
1605
1605
|
|
|
1606
|
-
/*! @azure/msal-common v16.0.
|
|
1606
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
1607
1607
|
/*
|
|
1608
1608
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1609
1609
|
* Licensed under the MIT License.
|
|
@@ -1685,7 +1685,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
|
|
|
1685
1685
|
return updatedAccountInfo;
|
|
1686
1686
|
}
|
|
1687
1687
|
|
|
1688
|
-
/*! @azure/msal-common v16.0.
|
|
1688
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
1689
1689
|
|
|
1690
1690
|
/*
|
|
1691
1691
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1765,7 +1765,7 @@ function checkMaxAge(authTime, maxAge) {
|
|
|
1765
1765
|
}
|
|
1766
1766
|
}
|
|
1767
1767
|
|
|
1768
|
-
/*! @azure/msal-common v16.0.
|
|
1768
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
1769
1769
|
|
|
1770
1770
|
/*
|
|
1771
1771
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1922,7 +1922,7 @@ class UrlString {
|
|
|
1922
1922
|
}
|
|
1923
1923
|
}
|
|
1924
1924
|
|
|
1925
|
-
/*! @azure/msal-common v16.0.
|
|
1925
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
1926
1926
|
|
|
1927
1927
|
/*
|
|
1928
1928
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1993,6 +1993,21 @@ const rawMetdataJSON = {
|
|
|
1993
1993
|
preferred_cache: "login-us.microsoftonline.com",
|
|
1994
1994
|
aliases: ["login-us.microsoftonline.com"],
|
|
1995
1995
|
},
|
|
1996
|
+
{
|
|
1997
|
+
preferred_network: "login.sovcloud-identity.fr",
|
|
1998
|
+
preferred_cache: "login.sovcloud-identity.fr",
|
|
1999
|
+
aliases: ["login.sovcloud-identity.fr"],
|
|
2000
|
+
},
|
|
2001
|
+
{
|
|
2002
|
+
preferred_network: "login.sovcloud-identity.de",
|
|
2003
|
+
preferred_cache: "login.sovcloud-identity.de",
|
|
2004
|
+
aliases: ["login.sovcloud-identity.de"],
|
|
2005
|
+
},
|
|
2006
|
+
{
|
|
2007
|
+
preferred_network: "login.sovcloud-identity.sg",
|
|
2008
|
+
preferred_cache: "login.sovcloud-identity.sg",
|
|
2009
|
+
aliases: ["login.sovcloud-identity.sg"],
|
|
2010
|
+
},
|
|
1996
2011
|
],
|
|
1997
2012
|
},
|
|
1998
2013
|
};
|
|
@@ -2064,7 +2079,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
2064
2079
|
return null;
|
|
2065
2080
|
}
|
|
2066
2081
|
|
|
2067
|
-
/*! @azure/msal-common v16.0.
|
|
2082
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
2068
2083
|
/*
|
|
2069
2084
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2070
2085
|
* Licensed under the MIT License.
|
|
@@ -2072,7 +2087,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
2072
2087
|
const cacheQuotaExceeded = "cache_quota_exceeded";
|
|
2073
2088
|
const cacheErrorUnknown = "cache_error_unknown";
|
|
2074
2089
|
|
|
2075
|
-
/*! @azure/msal-common v16.0.
|
|
2090
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
2076
2091
|
|
|
2077
2092
|
/*
|
|
2078
2093
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2110,7 +2125,7 @@ function createCacheError(e) {
|
|
|
2110
2125
|
}
|
|
2111
2126
|
}
|
|
2112
2127
|
|
|
2113
|
-
/*! @azure/msal-common v16.0.
|
|
2128
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
2114
2129
|
|
|
2115
2130
|
/*
|
|
2116
2131
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2148,7 +2163,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
|
|
|
2148
2163
|
};
|
|
2149
2164
|
}
|
|
2150
2165
|
|
|
2151
|
-
/*! @azure/msal-common v16.0.
|
|
2166
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
2152
2167
|
/*
|
|
2153
2168
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2154
2169
|
* Licensed under the MIT License.
|
|
@@ -2163,7 +2178,7 @@ const AuthorityType = {
|
|
|
2163
2178
|
Ciam: 3,
|
|
2164
2179
|
};
|
|
2165
2180
|
|
|
2166
|
-
/*! @azure/msal-common v16.0.
|
|
2181
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
2167
2182
|
/*
|
|
2168
2183
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2169
2184
|
* Licensed under the MIT License.
|
|
@@ -2185,7 +2200,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
|
|
|
2185
2200
|
return null;
|
|
2186
2201
|
}
|
|
2187
2202
|
|
|
2188
|
-
/*! @azure/msal-common v16.0.
|
|
2203
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
2189
2204
|
/*
|
|
2190
2205
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2191
2206
|
* Licensed under the MIT License.
|
|
@@ -2209,7 +2224,7 @@ const ProtocolMode = {
|
|
|
2209
2224
|
EAR: "EAR",
|
|
2210
2225
|
};
|
|
2211
2226
|
|
|
2212
|
-
/*! @azure/msal-common v16.0.
|
|
2227
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
2213
2228
|
/**
|
|
2214
2229
|
* Returns the AccountInfo interface for this account.
|
|
2215
2230
|
*/
|
|
@@ -2384,7 +2399,7 @@ function isAccountEntity(entity) {
|
|
|
2384
2399
|
entity.hasOwnProperty("authorityType"));
|
|
2385
2400
|
}
|
|
2386
2401
|
|
|
2387
|
-
/*! @azure/msal-common v16.0.
|
|
2402
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
2388
2403
|
|
|
2389
2404
|
/*
|
|
2390
2405
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3481,7 +3496,7 @@ class DefaultStorageClass extends CacheManager {
|
|
|
3481
3496
|
}
|
|
3482
3497
|
}
|
|
3483
3498
|
|
|
3484
|
-
/*! @azure/msal-common v16.0.
|
|
3499
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
3485
3500
|
/*
|
|
3486
3501
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3487
3502
|
* Licensed under the MIT License.
|
|
@@ -3522,7 +3537,7 @@ const IntFields = new Set([
|
|
|
3522
3537
|
"upgradedCacheCount",
|
|
3523
3538
|
]);
|
|
3524
3539
|
|
|
3525
|
-
/*! @azure/msal-common v16.0.
|
|
3540
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
3526
3541
|
|
|
3527
3542
|
/*
|
|
3528
3543
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3577,7 +3592,7 @@ class StubPerformanceClient {
|
|
|
3577
3592
|
}
|
|
3578
3593
|
}
|
|
3579
3594
|
|
|
3580
|
-
/*! @azure/msal-common v16.0.
|
|
3595
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
3581
3596
|
|
|
3582
3597
|
/*
|
|
3583
3598
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3671,7 +3686,7 @@ function isOidcProtocolMode(config) {
|
|
|
3671
3686
|
return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
|
|
3672
3687
|
}
|
|
3673
3688
|
|
|
3674
|
-
/*! @azure/msal-common v16.0.
|
|
3689
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
3675
3690
|
|
|
3676
3691
|
/*
|
|
3677
3692
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3690,7 +3705,7 @@ class ServerError extends AuthError {
|
|
|
3690
3705
|
}
|
|
3691
3706
|
}
|
|
3692
3707
|
|
|
3693
|
-
/*! @azure/msal-common v16.0.
|
|
3708
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
3694
3709
|
/*
|
|
3695
3710
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3696
3711
|
* Licensed under the MIT License.
|
|
@@ -3718,7 +3733,7 @@ var InteractionRequiredAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
3718
3733
|
uxNotAllowed: uxNotAllowed
|
|
3719
3734
|
});
|
|
3720
3735
|
|
|
3721
|
-
/*! @azure/msal-common v16.0.
|
|
3736
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
3722
3737
|
|
|
3723
3738
|
/*
|
|
3724
3739
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3784,7 +3799,7 @@ function createInteractionRequiredAuthError(errorCode, errorMessage) {
|
|
|
3784
3799
|
return new InteractionRequiredAuthError(errorCode, errorMessage);
|
|
3785
3800
|
}
|
|
3786
3801
|
|
|
3787
|
-
/*! @azure/msal-common v16.0.
|
|
3802
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
3788
3803
|
|
|
3789
3804
|
/*
|
|
3790
3805
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3852,7 +3867,7 @@ function parseRequestState(base64Decode, state) {
|
|
|
3852
3867
|
}
|
|
3853
3868
|
}
|
|
3854
3869
|
|
|
3855
|
-
/*! @azure/msal-common v16.0.
|
|
3870
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
3856
3871
|
/*
|
|
3857
3872
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3858
3873
|
* Licensed under the MIT License.
|
|
@@ -3917,7 +3932,7 @@ function wasClockTurnedBack(cachedAt) {
|
|
|
3917
3932
|
return cachedAtSec > nowSeconds();
|
|
3918
3933
|
}
|
|
3919
3934
|
|
|
3920
|
-
/*! @azure/msal-common v16.0.
|
|
3935
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
3921
3936
|
/*
|
|
3922
3937
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3923
3938
|
* Licensed under the MIT License.
|
|
@@ -3988,7 +4003,7 @@ const RegionDiscoveryGetCurrentVersion = "regionDiscoveryGetCurrentVersion";
|
|
|
3988
4003
|
const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken";
|
|
3989
4004
|
const SetUserData = "setUserData";
|
|
3990
4005
|
|
|
3991
|
-
/*! @azure/msal-common v16.0.
|
|
4006
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
3992
4007
|
/*
|
|
3993
4008
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3994
4009
|
* Licensed under the MIT License.
|
|
@@ -4083,7 +4098,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
|
|
|
4083
4098
|
};
|
|
4084
4099
|
};
|
|
4085
4100
|
|
|
4086
|
-
/*! @azure/msal-common v16.0.
|
|
4101
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
4087
4102
|
|
|
4088
4103
|
/*
|
|
4089
4104
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4163,7 +4178,7 @@ class PopTokenGenerator {
|
|
|
4163
4178
|
}
|
|
4164
4179
|
}
|
|
4165
4180
|
|
|
4166
|
-
/*! @azure/msal-common v16.0.
|
|
4181
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
4167
4182
|
/*
|
|
4168
4183
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4169
4184
|
* Licensed under the MIT License.
|
|
@@ -4190,7 +4205,7 @@ class PopTokenGenerator {
|
|
|
4190
4205
|
}
|
|
4191
4206
|
}
|
|
4192
4207
|
|
|
4193
|
-
/*! @azure/msal-common v16.0.
|
|
4208
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
4194
4209
|
|
|
4195
4210
|
/*
|
|
4196
4211
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4449,7 +4464,7 @@ function isAuthorityMetadataExpired(metadata) {
|
|
|
4449
4464
|
return metadata.expiresAt <= nowSeconds();
|
|
4450
4465
|
}
|
|
4451
4466
|
|
|
4452
|
-
/*! @azure/msal-common v16.0.
|
|
4467
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
4453
4468
|
|
|
4454
4469
|
/*
|
|
4455
4470
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4785,7 +4800,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
|
|
|
4785
4800
|
return baseAccount;
|
|
4786
4801
|
}
|
|
4787
4802
|
|
|
4788
|
-
/*! @azure/msal-common v16.0.
|
|
4803
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
4789
4804
|
/*
|
|
4790
4805
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4791
4806
|
* Licensed under the MIT License.
|
|
@@ -4795,7 +4810,7 @@ const CcsCredentialType = {
|
|
|
4795
4810
|
UPN: "UPN",
|
|
4796
4811
|
};
|
|
4797
4812
|
|
|
4798
|
-
/*! @azure/msal-common v16.0.
|
|
4813
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
4799
4814
|
/*
|
|
4800
4815
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4801
4816
|
* Licensed under the MIT License.
|
|
@@ -4813,7 +4828,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint) {
|
|
|
4813
4828
|
}
|
|
4814
4829
|
}
|
|
4815
4830
|
|
|
4816
|
-
/*! @azure/msal-common v16.0.
|
|
4831
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
4817
4832
|
/*
|
|
4818
4833
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4819
4834
|
* Licensed under the MIT License.
|
|
@@ -4834,7 +4849,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
|
|
|
4834
4849
|
};
|
|
4835
4850
|
}
|
|
4836
4851
|
|
|
4837
|
-
/*! @azure/msal-common v16.0.
|
|
4852
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
4838
4853
|
|
|
4839
4854
|
/*
|
|
4840
4855
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4920,7 +4935,7 @@ class ThrottlingUtils {
|
|
|
4920
4935
|
}
|
|
4921
4936
|
}
|
|
4922
4937
|
|
|
4923
|
-
/*! @azure/msal-common v16.0.
|
|
4938
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
4924
4939
|
|
|
4925
4940
|
/*
|
|
4926
4941
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4951,7 +4966,7 @@ function createNetworkError(error, httpStatus, responseHeaders, additionalError)
|
|
|
4951
4966
|
return new NetworkError(error, httpStatus, responseHeaders);
|
|
4952
4967
|
}
|
|
4953
4968
|
|
|
4954
|
-
/*! @azure/msal-common v16.0.
|
|
4969
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
4955
4970
|
|
|
4956
4971
|
/*
|
|
4957
4972
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5065,7 +5080,7 @@ async function sendPostRequest(thumbprint, tokenEndpoint, options, correlationId
|
|
|
5065
5080
|
return response;
|
|
5066
5081
|
}
|
|
5067
5082
|
|
|
5068
|
-
/*! @azure/msal-common v16.0.
|
|
5083
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
5069
5084
|
/*
|
|
5070
5085
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5071
5086
|
* Licensed under the MIT License.
|
|
@@ -5077,7 +5092,7 @@ function isOpenIdConfigResponse(response) {
|
|
|
5077
5092
|
response.hasOwnProperty("jwks_uri"));
|
|
5078
5093
|
}
|
|
5079
5094
|
|
|
5080
|
-
/*! @azure/msal-common v16.0.
|
|
5095
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
5081
5096
|
/*
|
|
5082
5097
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5083
5098
|
* Licensed under the MIT License.
|
|
@@ -5087,7 +5102,7 @@ function isCloudInstanceDiscoveryResponse(response) {
|
|
|
5087
5102
|
response.hasOwnProperty("metadata"));
|
|
5088
5103
|
}
|
|
5089
5104
|
|
|
5090
|
-
/*! @azure/msal-common v16.0.
|
|
5105
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
5091
5106
|
/*
|
|
5092
5107
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5093
5108
|
* Licensed under the MIT License.
|
|
@@ -5097,7 +5112,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
|
|
|
5097
5112
|
response.hasOwnProperty("error_description"));
|
|
5098
5113
|
}
|
|
5099
5114
|
|
|
5100
|
-
/*! @azure/msal-common v16.0.
|
|
5115
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
5101
5116
|
|
|
5102
5117
|
/*
|
|
5103
5118
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5202,7 +5217,7 @@ RegionDiscovery.IMDS_OPTIONS = {
|
|
|
5202
5217
|
},
|
|
5203
5218
|
};
|
|
5204
5219
|
|
|
5205
|
-
/*! @azure/msal-common v16.0.
|
|
5220
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
5206
5221
|
|
|
5207
5222
|
/*
|
|
5208
5223
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6022,7 +6037,7 @@ function buildStaticAuthorityOptions(authOptions) {
|
|
|
6022
6037
|
};
|
|
6023
6038
|
}
|
|
6024
6039
|
|
|
6025
|
-
/*! @azure/msal-common v16.0.
|
|
6040
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
6026
6041
|
|
|
6027
6042
|
/*
|
|
6028
6043
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6056,7 +6071,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
|
|
|
6056
6071
|
}
|
|
6057
6072
|
}
|
|
6058
6073
|
|
|
6059
|
-
/*! @azure/msal-common v16.0.
|
|
6074
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
6060
6075
|
|
|
6061
6076
|
/*
|
|
6062
6077
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6316,7 +6331,7 @@ class AuthorizationCodeClient {
|
|
|
6316
6331
|
}
|
|
6317
6332
|
}
|
|
6318
6333
|
|
|
6319
|
-
/*! @azure/msal-common v16.0.
|
|
6334
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
6320
6335
|
|
|
6321
6336
|
/*
|
|
6322
6337
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6541,7 +6556,7 @@ class RefreshTokenClient {
|
|
|
6541
6556
|
}
|
|
6542
6557
|
}
|
|
6543
6558
|
|
|
6544
|
-
/*! @azure/msal-common v16.0.
|
|
6559
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
6545
6560
|
|
|
6546
6561
|
/*
|
|
6547
6562
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6650,7 +6665,7 @@ class SilentFlowClient {
|
|
|
6650
6665
|
}
|
|
6651
6666
|
}
|
|
6652
6667
|
|
|
6653
|
-
/*! @azure/msal-common v16.0.
|
|
6668
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
6654
6669
|
|
|
6655
6670
|
/*
|
|
6656
6671
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6665,7 +6680,7 @@ const StubbedNetworkModule = {
|
|
|
6665
6680
|
},
|
|
6666
6681
|
};
|
|
6667
6682
|
|
|
6668
|
-
/*! @azure/msal-common v16.0.
|
|
6683
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
6669
6684
|
|
|
6670
6685
|
/*
|
|
6671
6686
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6889,7 +6904,7 @@ function extractLoginHint(account) {
|
|
|
6889
6904
|
return account.loginHint || account.idTokenClaims?.login_hint || null;
|
|
6890
6905
|
}
|
|
6891
6906
|
|
|
6892
|
-
/*! @azure/msal-common v16.0.
|
|
6907
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
6893
6908
|
|
|
6894
6909
|
/*
|
|
6895
6910
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6947,7 +6962,7 @@ class AuthenticationHeaderParser {
|
|
|
6947
6962
|
}
|
|
6948
6963
|
}
|
|
6949
6964
|
|
|
6950
|
-
/*! @azure/msal-common v16.0.
|
|
6965
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
6951
6966
|
/*
|
|
6952
6967
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6953
6968
|
* Licensed under the MIT License.
|
|
@@ -6964,7 +6979,7 @@ var AuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
6964
6979
|
unexpectedError: unexpectedError
|
|
6965
6980
|
});
|
|
6966
6981
|
|
|
6967
|
-
/*! @azure/msal-common v16.0.
|
|
6982
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
6968
6983
|
|
|
6969
6984
|
/*
|
|
6970
6985
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7225,7 +7240,7 @@ class ServerTelemetryManager {
|
|
|
7225
7240
|
}
|
|
7226
7241
|
}
|
|
7227
7242
|
|
|
7228
|
-
/*! @azure/msal-common v16.0.
|
|
7243
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
7229
7244
|
|
|
7230
7245
|
/*
|
|
7231
7246
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7246,7 +7261,7 @@ function createJoseHeaderError(code) {
|
|
|
7246
7261
|
return new JoseHeaderError(code);
|
|
7247
7262
|
}
|
|
7248
7263
|
|
|
7249
|
-
/*! @azure/msal-common v16.0.
|
|
7264
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
7250
7265
|
/*
|
|
7251
7266
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7252
7267
|
* Licensed under the MIT License.
|
|
@@ -7254,7 +7269,7 @@ function createJoseHeaderError(code) {
|
|
|
7254
7269
|
const missingKidError = "missing_kid_error";
|
|
7255
7270
|
const missingAlgError = "missing_alg_error";
|
|
7256
7271
|
|
|
7257
|
-
/*! @azure/msal-common v16.0.
|
|
7272
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
7258
7273
|
|
|
7259
7274
|
/*
|
|
7260
7275
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7294,7 +7309,7 @@ class JoseHeader {
|
|
|
7294
7309
|
}
|
|
7295
7310
|
}
|
|
7296
7311
|
|
|
7297
|
-
/*! @azure/msal-common v16.0.
|
|
7312
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
7298
7313
|
|
|
7299
7314
|
/*
|
|
7300
7315
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -10120,7 +10135,7 @@ const EventType = {
|
|
|
10120
10135
|
|
|
10121
10136
|
/* eslint-disable header/header */
|
|
10122
10137
|
const name = "@azure/msal-browser";
|
|
10123
|
-
const version = "5.
|
|
10138
|
+
const version = "5.2.0";
|
|
10124
10139
|
|
|
10125
10140
|
/*
|
|
10126
10141
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -11133,7 +11148,7 @@ class BrowserCacheManager extends CacheManager {
|
|
|
11133
11148
|
this.logger.verbose("1bp5z5", correlationId);
|
|
11134
11149
|
this.browserStorage.removeItem(activeAccountKey);
|
|
11135
11150
|
}
|
|
11136
|
-
this.eventHandler.emitEvent(EventType.ACTIVE_ACCOUNT_CHANGED);
|
|
11151
|
+
this.eventHandler.emitEvent(EventType.ACTIVE_ACCOUNT_CHANGED, correlationId);
|
|
11137
11152
|
}
|
|
11138
11153
|
/**
|
|
11139
11154
|
* fetch throttling entity from the platform cache
|
|
@@ -11596,12 +11611,13 @@ class EventHandler {
|
|
|
11596
11611
|
* @param payload
|
|
11597
11612
|
* @param error
|
|
11598
11613
|
*/
|
|
11599
|
-
emitEvent(eventType, interactionType, payload, error) {
|
|
11614
|
+
emitEvent(eventType, correlationId, interactionType, payload, error) {
|
|
11600
11615
|
const message = {
|
|
11601
11616
|
eventType: eventType,
|
|
11602
11617
|
interactionType: interactionType || null,
|
|
11603
11618
|
payload: payload || null,
|
|
11604
11619
|
error: error || null,
|
|
11620
|
+
correlationId: correlationId,
|
|
11605
11621
|
timestamp: Date.now(),
|
|
11606
11622
|
};
|
|
11607
11623
|
switch (eventType) {
|
|
@@ -13026,6 +13042,8 @@ async function getEARForm(frame, config, authority, request, logger, performance
|
|
|
13026
13042
|
});
|
|
13027
13043
|
const queryParams = new Map();
|
|
13028
13044
|
addExtraParameters(queryParams, request.extraQueryParameters || {});
|
|
13045
|
+
// Add correlationId to query params so gateway can propagate it to IDPs
|
|
13046
|
+
addCorrelationId(queryParams, request.correlationId);
|
|
13029
13047
|
const url = getAuthorizeUrl(authority, queryParams);
|
|
13030
13048
|
return createForm(frame, url, parameters);
|
|
13031
13049
|
}
|
|
@@ -13043,6 +13061,8 @@ async function getCodeForm(frame, config, authority, request, logger, performanc
|
|
|
13043
13061
|
// Add extraQueryParameters to be appended to request URL
|
|
13044
13062
|
const queryParams = new Map();
|
|
13045
13063
|
addExtraParameters(queryParams, request.extraQueryParameters || {});
|
|
13064
|
+
// Add correlationId to query params so gateway can propagate it to IDPs
|
|
13065
|
+
addCorrelationId(queryParams, request.correlationId);
|
|
13046
13066
|
const url = getAuthorizeUrl(authority, queryParams);
|
|
13047
13067
|
return createForm(frame, url, parameters);
|
|
13048
13068
|
}
|
|
@@ -14130,7 +14150,7 @@ class PopupClient extends StandardInteractionClient {
|
|
|
14130
14150
|
const navigateUrl = await invokeAsync(getAuthCodeRequestUrl, GetAuthCodeUrl, this.logger, this.performanceClient, correlationId)(this.config, authClient.authority, popupRequest, this.logger, this.performanceClient);
|
|
14131
14151
|
// Show the UI once the url has been created. Get the window handle for the popup.
|
|
14132
14152
|
const popupWindow = this.initiateAuthRequest(navigateUrl, popupParams);
|
|
14133
|
-
this.eventHandler.emitEvent(EventType.POPUP_OPENED, exports.InteractionType.Popup, { popupWindow }, null);
|
|
14153
|
+
this.eventHandler.emitEvent(EventType.POPUP_OPENED, correlationId, exports.InteractionType.Popup, { popupWindow }, null);
|
|
14134
14154
|
// Wait for the redirect bridge response
|
|
14135
14155
|
const responseString = await waitForBridgeResponse(this.config.system.popupBridgeTimeout, this.logger, this.browserCrypto, request);
|
|
14136
14156
|
const serverParams = invoke(deserializeResponse, DeserializeResponse, this.logger, this.performanceClient, this.correlationId)(responseString, this.config.auth.OIDCOptions.responseMode, this.logger, this.correlationId);
|
|
@@ -14207,7 +14227,7 @@ class PopupClient extends StandardInteractionClient {
|
|
|
14207
14227
|
*/
|
|
14208
14228
|
async logoutPopupAsync(validRequest, popupParams, requestAuthority, mainWindowRedirectUri) {
|
|
14209
14229
|
this.logger.verbose("0b7yrk", this.correlationId);
|
|
14210
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_START, exports.InteractionType.Popup, validRequest);
|
|
14230
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_START, this.correlationId, exports.InteractionType.Popup, validRequest);
|
|
14211
14231
|
const serverTelemetryManager = initializeServerTelemetryManager(ApiId.logoutPopup, this.config.auth.clientId, this.correlationId, this.browserStorage, this.logger);
|
|
14212
14232
|
try {
|
|
14213
14233
|
// Clear cache on logout
|
|
@@ -14225,7 +14245,7 @@ class PopupClient extends StandardInteractionClient {
|
|
|
14225
14245
|
if (validRequest.account?.homeAccountId &&
|
|
14226
14246
|
validRequest.postLogoutRedirectUri &&
|
|
14227
14247
|
authClient.authority.protocolMode === ProtocolMode.OIDC) {
|
|
14228
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, exports.InteractionType.Popup, validRequest);
|
|
14248
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, validRequest.correlationId, exports.InteractionType.Popup, validRequest);
|
|
14229
14249
|
if (mainWindowRedirectUri) {
|
|
14230
14250
|
const navigationOptions = {
|
|
14231
14251
|
apiId: ApiId.logoutPopup,
|
|
@@ -14241,10 +14261,10 @@ class PopupClient extends StandardInteractionClient {
|
|
|
14241
14261
|
}
|
|
14242
14262
|
// Create logout string and navigate user window to logout.
|
|
14243
14263
|
const logoutUri = authClient.getLogoutUri(validRequest);
|
|
14244
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, exports.InteractionType.Popup, validRequest);
|
|
14264
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, validRequest.correlationId, exports.InteractionType.Popup, validRequest);
|
|
14245
14265
|
// Open the popup window to requestUrl.
|
|
14246
14266
|
const popupWindow = this.openPopup(logoutUri, popupParams);
|
|
14247
|
-
this.eventHandler.emitEvent(EventType.POPUP_OPENED, exports.InteractionType.Popup, { popupWindow }, null);
|
|
14267
|
+
this.eventHandler.emitEvent(EventType.POPUP_OPENED, validRequest.correlationId, exports.InteractionType.Popup, { popupWindow }, null);
|
|
14248
14268
|
await waitForBridgeResponse(this.config.system.popupBridgeTimeout, this.logger, this.browserCrypto, validRequest).catch(() => {
|
|
14249
14269
|
// Swallow any errors related to monitoring the window. Server logout is best effort
|
|
14250
14270
|
});
|
|
@@ -14270,11 +14290,11 @@ class PopupClient extends StandardInteractionClient {
|
|
|
14270
14290
|
e.setCorrelationId(this.correlationId);
|
|
14271
14291
|
serverTelemetryManager.cacheFailedRequest(e);
|
|
14272
14292
|
}
|
|
14273
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_FAILURE, exports.InteractionType.Popup, null, e);
|
|
14274
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_END, exports.InteractionType.Popup);
|
|
14293
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_FAILURE, this.correlationId, exports.InteractionType.Popup, null, e);
|
|
14294
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_END, this.correlationId, exports.InteractionType.Popup);
|
|
14275
14295
|
throw e;
|
|
14276
14296
|
}
|
|
14277
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_END, exports.InteractionType.Popup);
|
|
14297
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_END, this.correlationId, exports.InteractionType.Popup);
|
|
14278
14298
|
}
|
|
14279
14299
|
/**
|
|
14280
14300
|
* Opens a popup window with given request Url.
|
|
@@ -14437,7 +14457,7 @@ class RedirectClient extends StandardInteractionClient {
|
|
|
14437
14457
|
if (event.persisted) {
|
|
14438
14458
|
this.logger.verbose("0udvtt", this.correlationId);
|
|
14439
14459
|
this.browserStorage.resetRequestCache(this.correlationId);
|
|
14440
|
-
this.eventHandler.emitEvent(EventType.RESTORE_FROM_BFCACHE, exports.InteractionType.Redirect);
|
|
14460
|
+
this.eventHandler.emitEvent(EventType.RESTORE_FROM_BFCACHE, this.correlationId, exports.InteractionType.Redirect);
|
|
14441
14461
|
}
|
|
14442
14462
|
};
|
|
14443
14463
|
const redirectStartPage = this.getRedirectStartPage(request.redirectStartPage);
|
|
@@ -14754,7 +14774,7 @@ class RedirectClient extends StandardInteractionClient {
|
|
|
14754
14774
|
const validLogoutRequest = this.initializeLogoutRequest(logoutRequest);
|
|
14755
14775
|
const serverTelemetryManager = initializeServerTelemetryManager(ApiId.logout, this.config.auth.clientId, this.correlationId, this.browserStorage, this.logger);
|
|
14756
14776
|
try {
|
|
14757
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_START, exports.InteractionType.Redirect, logoutRequest);
|
|
14777
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_START, this.correlationId, exports.InteractionType.Redirect, logoutRequest);
|
|
14758
14778
|
// Clear cache on logout
|
|
14759
14779
|
await clearCacheOnLogout(this.browserStorage, this.browserCrypto, this.logger, this.correlationId, validLogoutRequest.account);
|
|
14760
14780
|
const navigationOptions = {
|
|
@@ -14774,7 +14794,7 @@ class RedirectClient extends StandardInteractionClient {
|
|
|
14774
14794
|
}
|
|
14775
14795
|
catch {
|
|
14776
14796
|
if (validLogoutRequest.account?.homeAccountId) {
|
|
14777
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, exports.InteractionType.Redirect, validLogoutRequest);
|
|
14797
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, this.correlationId, exports.InteractionType.Redirect, validLogoutRequest);
|
|
14778
14798
|
return;
|
|
14779
14799
|
}
|
|
14780
14800
|
}
|
|
@@ -14782,7 +14802,7 @@ class RedirectClient extends StandardInteractionClient {
|
|
|
14782
14802
|
// Create logout string and navigate user window to logout.
|
|
14783
14803
|
const logoutUri = authClient.getLogoutUri(validLogoutRequest);
|
|
14784
14804
|
if (validLogoutRequest.account?.homeAccountId) {
|
|
14785
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, exports.InteractionType.Redirect, validLogoutRequest);
|
|
14805
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, this.correlationId, exports.InteractionType.Redirect, validLogoutRequest);
|
|
14786
14806
|
}
|
|
14787
14807
|
// Check if onRedirectNavigate is implemented, and invoke it if so
|
|
14788
14808
|
const onRedirectNavigate = this.config.auth.onRedirectNavigate;
|
|
@@ -14817,11 +14837,11 @@ class RedirectClient extends StandardInteractionClient {
|
|
|
14817
14837
|
e.setCorrelationId(this.correlationId);
|
|
14818
14838
|
serverTelemetryManager.cacheFailedRequest(e);
|
|
14819
14839
|
}
|
|
14820
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_FAILURE, exports.InteractionType.Redirect, null, e);
|
|
14821
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_END, exports.InteractionType.Redirect);
|
|
14840
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_FAILURE, this.correlationId, exports.InteractionType.Redirect, null, e);
|
|
14841
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_END, this.correlationId, exports.InteractionType.Redirect);
|
|
14822
14842
|
throw e;
|
|
14823
14843
|
}
|
|
14824
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_END, exports.InteractionType.Redirect);
|
|
14844
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_END, this.correlationId, exports.InteractionType.Redirect);
|
|
14825
14845
|
}
|
|
14826
14846
|
/**
|
|
14827
14847
|
* Use to get the redirectStartPage either from request or use current window
|
|
@@ -15312,23 +15332,22 @@ class StandardController {
|
|
|
15312
15332
|
if (!this.isBrowserEnvironment) {
|
|
15313
15333
|
this.logger.info("19fvpi", correlationId);
|
|
15314
15334
|
this.initialized = true;
|
|
15315
|
-
this.eventHandler.emitEvent(EventType.INITIALIZE_END);
|
|
15335
|
+
this.eventHandler.emitEvent(EventType.INITIALIZE_END, correlationId);
|
|
15316
15336
|
return;
|
|
15317
15337
|
}
|
|
15318
|
-
const initCorrelationId = request?.correlationId || this.getRequestCorrelationId();
|
|
15319
15338
|
const allowPlatformBroker = this.config.system.allowPlatformBroker;
|
|
15320
|
-
const initMeasurement = this.performanceClient.startMeasurement(InitializeClientApplication,
|
|
15321
|
-
this.eventHandler.emitEvent(EventType.INITIALIZE_START);
|
|
15339
|
+
const initMeasurement = this.performanceClient.startMeasurement(InitializeClientApplication, correlationId);
|
|
15340
|
+
this.eventHandler.emitEvent(EventType.INITIALIZE_START, correlationId);
|
|
15322
15341
|
// Broker applications are initialized twice, so we avoid double-counting it
|
|
15323
|
-
this.logMultipleInstances(initMeasurement,
|
|
15324
|
-
await invokeAsync(this.browserStorage.initialize.bind(this.browserStorage), InitializeCache, this.logger, this.performanceClient,
|
|
15342
|
+
this.logMultipleInstances(initMeasurement, correlationId);
|
|
15343
|
+
await invokeAsync(this.browserStorage.initialize.bind(this.browserStorage), InitializeCache, this.logger, this.performanceClient, correlationId)(correlationId);
|
|
15325
15344
|
if (allowPlatformBroker) {
|
|
15326
15345
|
try {
|
|
15327
15346
|
// check if platform authentication is available via DOM or browser extension and create relevant handlers
|
|
15328
|
-
this.platformAuthProvider = await getPlatformAuthProvider(this.logger, this.performanceClient,
|
|
15347
|
+
this.platformAuthProvider = await getPlatformAuthProvider(this.logger, this.performanceClient, correlationId, this.config.system.nativeBrokerHandshakeTimeout);
|
|
15329
15348
|
}
|
|
15330
15349
|
catch (e) {
|
|
15331
|
-
this.logger.verbose(e,
|
|
15350
|
+
this.logger.verbose(e, correlationId);
|
|
15332
15351
|
}
|
|
15333
15352
|
}
|
|
15334
15353
|
if (this.config.cache.cacheLocation ===
|
|
@@ -15336,9 +15355,9 @@ class StandardController {
|
|
|
15336
15355
|
this.eventHandler.subscribeCrossTab();
|
|
15337
15356
|
}
|
|
15338
15357
|
!this.config.system.navigatePopups &&
|
|
15339
|
-
(await this.preGeneratePkceCodes(
|
|
15358
|
+
(await this.preGeneratePkceCodes(correlationId));
|
|
15340
15359
|
this.initialized = true;
|
|
15341
|
-
this.eventHandler.emitEvent(EventType.INITIALIZE_END);
|
|
15360
|
+
this.eventHandler.emitEvent(EventType.INITIALIZE_END, correlationId);
|
|
15342
15361
|
initMeasurement.end({
|
|
15343
15362
|
allowPlatformBroker: allowPlatformBroker,
|
|
15344
15363
|
success: true,
|
|
@@ -15400,11 +15419,11 @@ class StandardController {
|
|
|
15400
15419
|
this.platformAuthProvider &&
|
|
15401
15420
|
!options?.hash;
|
|
15402
15421
|
let rootMeasurement;
|
|
15403
|
-
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_START, exports.InteractionType.Redirect);
|
|
15404
15422
|
let redirectResponse;
|
|
15405
15423
|
try {
|
|
15406
15424
|
if (useNative && this.platformAuthProvider) {
|
|
15407
15425
|
const correlationId = platformBrokerRequest?.correlationId || "";
|
|
15426
|
+
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_START, correlationId, exports.InteractionType.Redirect);
|
|
15408
15427
|
rootMeasurement = this.performanceClient.startMeasurement(AcquireTokenRedirect, correlationId);
|
|
15409
15428
|
this.logger.trace("12v7is", correlationId);
|
|
15410
15429
|
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);
|
|
@@ -15413,6 +15432,7 @@ class StandardController {
|
|
|
15413
15432
|
else {
|
|
15414
15433
|
const [standardRequest, codeVerifier] = this.browserStorage.getCachedRequest("");
|
|
15415
15434
|
const correlationId = standardRequest.correlationId;
|
|
15435
|
+
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_START, correlationId, exports.InteractionType.Redirect);
|
|
15416
15436
|
// Reset rootMeasurement now that we have correlationId
|
|
15417
15437
|
rootMeasurement = this.performanceClient.startMeasurement(AcquireTokenRedirect, correlationId);
|
|
15418
15438
|
this.logger.trace("0znzs5", correlationId);
|
|
@@ -15428,12 +15448,12 @@ class StandardController {
|
|
|
15428
15448
|
.then((result) => {
|
|
15429
15449
|
if (result) {
|
|
15430
15450
|
this.browserStorage.resetRequestCache(result.correlationId);
|
|
15431
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Redirect, result);
|
|
15451
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, result.correlationId, exports.InteractionType.Redirect, result);
|
|
15432
15452
|
this.logger.verbose("0ui8f5", result.correlationId);
|
|
15433
15453
|
// Emit login event if number of accounts change
|
|
15434
15454
|
const isLoggingIn = loggedInAccounts.length < this.getAllAccounts().length;
|
|
15435
15455
|
if (isLoggingIn) {
|
|
15436
|
-
this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, exports.InteractionType.Redirect, result.account);
|
|
15456
|
+
this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, result.correlationId, exports.InteractionType.Redirect, result.account);
|
|
15437
15457
|
this.logger.verbose("16im3l", result.correlationId);
|
|
15438
15458
|
}
|
|
15439
15459
|
rootMeasurement.end({
|
|
@@ -15452,14 +15472,14 @@ class StandardController {
|
|
|
15452
15472
|
rootMeasurement.discard();
|
|
15453
15473
|
}
|
|
15454
15474
|
}
|
|
15455
|
-
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_END, exports.InteractionType.Redirect);
|
|
15475
|
+
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_END, rootMeasurement.event.correlationId, exports.InteractionType.Redirect);
|
|
15456
15476
|
return result;
|
|
15457
15477
|
})
|
|
15458
15478
|
.catch((e) => {
|
|
15459
15479
|
this.browserStorage.resetRequestCache(rootMeasurement.event.correlationId);
|
|
15460
15480
|
const eventError = e;
|
|
15461
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Redirect, null, eventError);
|
|
15462
|
-
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_END, exports.InteractionType.Redirect);
|
|
15481
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, rootMeasurement.event.correlationId, exports.InteractionType.Redirect, null, eventError);
|
|
15482
|
+
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_END, rootMeasurement.event.correlationId, exports.InteractionType.Redirect);
|
|
15463
15483
|
rootMeasurement.end({
|
|
15464
15484
|
success: false,
|
|
15465
15485
|
}, eventError);
|
|
@@ -15498,7 +15518,7 @@ class StandardController {
|
|
|
15498
15518
|
try {
|
|
15499
15519
|
redirectPreflightCheck(this.initialized, this.config);
|
|
15500
15520
|
this.browserStorage.setInteractionInProgress(true, INTERACTION_TYPE.SIGNIN);
|
|
15501
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, exports.InteractionType.Redirect, request);
|
|
15521
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, exports.InteractionType.Redirect, request);
|
|
15502
15522
|
let result;
|
|
15503
15523
|
if (this.platformAuthProvider &&
|
|
15504
15524
|
this.canUsePlatformBroker(request)) {
|
|
@@ -15540,7 +15560,7 @@ class StandardController {
|
|
|
15540
15560
|
else {
|
|
15541
15561
|
atrMeasurement.end({ success: false }, e, request.account);
|
|
15542
15562
|
}
|
|
15543
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Redirect, null, e);
|
|
15563
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, exports.InteractionType.Redirect, null, e);
|
|
15544
15564
|
throw e;
|
|
15545
15565
|
}
|
|
15546
15566
|
}
|
|
@@ -15570,7 +15590,7 @@ class StandardController {
|
|
|
15570
15590
|
}
|
|
15571
15591
|
// If logged in, emit acquire token events
|
|
15572
15592
|
const loggedInAccounts = this.getAllAccounts();
|
|
15573
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, exports.InteractionType.Popup, request);
|
|
15593
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, exports.InteractionType.Popup, request);
|
|
15574
15594
|
let result;
|
|
15575
15595
|
const pkce = this.getPreGeneratedPkceCodes(correlationId);
|
|
15576
15596
|
if (this.canUsePlatformBroker(request)) {
|
|
@@ -15610,9 +15630,9 @@ class StandardController {
|
|
|
15610
15630
|
* If logged in, emit acquire token events
|
|
15611
15631
|
*/
|
|
15612
15632
|
const isLoggingIn = loggedInAccounts.length < this.getAllAccounts().length;
|
|
15613
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Popup, result);
|
|
15633
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, correlationId, exports.InteractionType.Popup, result);
|
|
15614
15634
|
if (isLoggingIn) {
|
|
15615
|
-
this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, exports.InteractionType.Popup, result.account);
|
|
15635
|
+
this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, correlationId, exports.InteractionType.Popup, result.account);
|
|
15616
15636
|
}
|
|
15617
15637
|
atPopupMeasurement.end({
|
|
15618
15638
|
success: true,
|
|
@@ -15622,7 +15642,7 @@ class StandardController {
|
|
|
15622
15642
|
return result;
|
|
15623
15643
|
})
|
|
15624
15644
|
.catch((e) => {
|
|
15625
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Popup, null, e);
|
|
15645
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, exports.InteractionType.Popup, null, e);
|
|
15626
15646
|
atPopupMeasurement.end({
|
|
15627
15647
|
success: false,
|
|
15628
15648
|
}, e, request.account);
|
|
@@ -15682,7 +15702,7 @@ class StandardController {
|
|
|
15682
15702
|
document.addEventListener("visibilitychange", this.trackPageVisibilityWithMeasurement);
|
|
15683
15703
|
const loggedInAccounts = this.getAllAccounts();
|
|
15684
15704
|
this.logger.verbose("0w1b45", correlationId);
|
|
15685
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, exports.InteractionType.Silent, validRequest);
|
|
15705
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, exports.InteractionType.Silent, validRequest);
|
|
15686
15706
|
let result;
|
|
15687
15707
|
if (this.canUsePlatformBroker(validRequest)) {
|
|
15688
15708
|
result = this.acquireTokenNative(validRequest, ApiId.ssoSilent).catch((e) => {
|
|
@@ -15702,9 +15722,9 @@ class StandardController {
|
|
|
15702
15722
|
return result
|
|
15703
15723
|
.then((response) => {
|
|
15704
15724
|
const isLoggingIn = loggedInAccounts.length < this.getAllAccounts().length;
|
|
15705
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Silent, response);
|
|
15725
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, correlationId, exports.InteractionType.Silent, response);
|
|
15706
15726
|
if (isLoggingIn) {
|
|
15707
|
-
this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, exports.InteractionType.Silent, response.account);
|
|
15727
|
+
this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, correlationId, exports.InteractionType.Silent, response.account);
|
|
15708
15728
|
}
|
|
15709
15729
|
this.ssoSilentMeasurement?.end({
|
|
15710
15730
|
success: true,
|
|
@@ -15715,7 +15735,7 @@ class StandardController {
|
|
|
15715
15735
|
return response;
|
|
15716
15736
|
})
|
|
15717
15737
|
.catch((e) => {
|
|
15718
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Silent, null, e);
|
|
15738
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, exports.InteractionType.Silent, null, e);
|
|
15719
15739
|
this.ssoSilentMeasurement?.end({
|
|
15720
15740
|
success: false,
|
|
15721
15741
|
}, e, request.account);
|
|
@@ -15740,7 +15760,7 @@ class StandardController {
|
|
|
15740
15760
|
this.logger.trace("0ch6ga", correlationId);
|
|
15741
15761
|
const atbcMeasurement = this.performanceClient.startMeasurement(AcquireTokenByCode, correlationId);
|
|
15742
15762
|
preflightCheck(this.initialized, atbcMeasurement);
|
|
15743
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, exports.InteractionType.Silent, request);
|
|
15763
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, exports.InteractionType.Silent, request);
|
|
15744
15764
|
atbcMeasurement.add({ scenarioId: request.scenarioId });
|
|
15745
15765
|
try {
|
|
15746
15766
|
if (request.code && request.nativeAccountId) {
|
|
@@ -15757,7 +15777,7 @@ class StandardController {
|
|
|
15757
15777
|
correlationId,
|
|
15758
15778
|
})
|
|
15759
15779
|
.then((result) => {
|
|
15760
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Silent, result);
|
|
15780
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, correlationId, exports.InteractionType.Silent, result);
|
|
15761
15781
|
this.hybridAuthCodeResponses.delete(hybridAuthCode);
|
|
15762
15782
|
atbcMeasurement.end({
|
|
15763
15783
|
success: true,
|
|
@@ -15769,7 +15789,7 @@ class StandardController {
|
|
|
15769
15789
|
})
|
|
15770
15790
|
.catch((error) => {
|
|
15771
15791
|
this.hybridAuthCodeResponses.delete(hybridAuthCode);
|
|
15772
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Silent, null, error);
|
|
15792
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, exports.InteractionType.Silent, null, error);
|
|
15773
15793
|
atbcMeasurement.end({
|
|
15774
15794
|
success: false,
|
|
15775
15795
|
}, error);
|
|
@@ -15810,7 +15830,7 @@ class StandardController {
|
|
|
15810
15830
|
}
|
|
15811
15831
|
}
|
|
15812
15832
|
catch (e) {
|
|
15813
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Silent, null, e);
|
|
15833
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, exports.InteractionType.Silent, null, e);
|
|
15814
15834
|
atbcMeasurement.end({
|
|
15815
15835
|
success: false,
|
|
15816
15836
|
}, e);
|
|
@@ -16312,7 +16332,7 @@ class StandardController {
|
|
|
16312
16332
|
*/
|
|
16313
16333
|
async acquireTokenSilentAsync(request, account) {
|
|
16314
16334
|
const trackPageVisibility = () => this.trackPageVisibility(request.correlationId);
|
|
16315
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, exports.InteractionType.Silent, request);
|
|
16335
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, request.correlationId, exports.InteractionType.Silent, request);
|
|
16316
16336
|
if (request.correlationId) {
|
|
16317
16337
|
this.performanceClient.incrementFields({ visibilityChangeCount: 0 }, request.correlationId);
|
|
16318
16338
|
}
|
|
@@ -16380,7 +16400,7 @@ class StandardController {
|
|
|
16380
16400
|
});
|
|
16381
16401
|
return result
|
|
16382
16402
|
.then((response) => {
|
|
16383
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Silent, response);
|
|
16403
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, request.correlationId, exports.InteractionType.Silent, response);
|
|
16384
16404
|
if (request.correlationId) {
|
|
16385
16405
|
this.performanceClient.addFields({
|
|
16386
16406
|
fromCache: response.fromCache,
|
|
@@ -16390,7 +16410,7 @@ class StandardController {
|
|
|
16390
16410
|
return response;
|
|
16391
16411
|
})
|
|
16392
16412
|
.catch((tokenRenewalError) => {
|
|
16393
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Silent, null, tokenRenewalError);
|
|
16413
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, request.correlationId, exports.InteractionType.Silent, null, tokenRenewalError);
|
|
16394
16414
|
throw tokenRenewalError;
|
|
16395
16415
|
})
|
|
16396
16416
|
.finally(() => {
|
|
@@ -16429,7 +16449,7 @@ class StandardController {
|
|
|
16429
16449
|
if (cacheLookupPolicy === CacheLookupPolicy.AccessToken) {
|
|
16430
16450
|
throw cacheError;
|
|
16431
16451
|
}
|
|
16432
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_NETWORK_START, exports.InteractionType.Silent, silentRequest);
|
|
16452
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_NETWORK_START, silentRequest.correlationId, exports.InteractionType.Silent, silentRequest);
|
|
16433
16453
|
return invokeAsync(this.acquireTokenByRefreshToken.bind(this), AcquireTokenByRefreshToken, this.logger, this.performanceClient, silentRequest.correlationId)(silentRequest, cacheLookupPolicy);
|
|
16434
16454
|
});
|
|
16435
16455
|
}
|
|
@@ -16759,19 +16779,36 @@ class NestedAppAuthAdapter {
|
|
|
16759
16779
|
effectiveIdTokenClaims?.oid ||
|
|
16760
16780
|
effectiveIdTokenClaims?.sub ||
|
|
16761
16781
|
"";
|
|
16762
|
-
|
|
16763
|
-
|
|
16764
|
-
|
|
16765
|
-
|
|
16782
|
+
/*
|
|
16783
|
+
* In B2C scenarios tid may not be present, use getTenantIdFromIdTokenClaims
|
|
16784
|
+
* which handles tid, tfp (modern B2C), and acr (legacy B2C) claims
|
|
16785
|
+
*/
|
|
16786
|
+
const tenantId = fromAccount.tenantId ||
|
|
16787
|
+
getTenantIdFromIdTokenClaims(effectiveIdTokenClaims) ||
|
|
16766
16788
|
"";
|
|
16767
|
-
const
|
|
16789
|
+
const homeAccountId = fromAccount.homeAccountId || `${localAccountId}.${tenantId}`;
|
|
16790
|
+
// Validate environment - required field
|
|
16791
|
+
const environment = fromAccount.environment;
|
|
16792
|
+
if (!environment) {
|
|
16793
|
+
throw createClientAuthError(invalidCacheEnvironment);
|
|
16794
|
+
}
|
|
16795
|
+
/*
|
|
16796
|
+
* In B2C scenarios the emails claim is used instead of preferred_username and it is an array.
|
|
16797
|
+
* In most cases it will contain a single email. This field should not be relied upon if a custom
|
|
16798
|
+
* policy is configured to return more than 1 email.
|
|
16799
|
+
*/
|
|
16800
|
+
const preferredUsername = effectiveIdTokenClaims?.preferred_username ||
|
|
16801
|
+
effectiveIdTokenClaims?.upn;
|
|
16802
|
+
const email = effectiveIdTokenClaims?.emails?.[0] || null;
|
|
16803
|
+
const username = fromAccount.username || preferredUsername || email || "";
|
|
16804
|
+
const name = fromAccount.name || effectiveIdTokenClaims?.name || "";
|
|
16768
16805
|
const loginHint = fromAccount.loginHint || effectiveIdTokenClaims?.login_hint;
|
|
16769
16806
|
const tenantProfiles = new Map();
|
|
16770
16807
|
const tenantProfile = buildTenantProfile(homeAccountId, localAccountId, tenantId, effectiveIdTokenClaims);
|
|
16771
16808
|
tenantProfiles.set(tenantId, tenantProfile);
|
|
16772
16809
|
const account = {
|
|
16773
16810
|
homeAccountId,
|
|
16774
|
-
environment
|
|
16811
|
+
environment,
|
|
16775
16812
|
tenantId,
|
|
16776
16813
|
username,
|
|
16777
16814
|
localAccountId,
|
|
@@ -16942,7 +16979,7 @@ class NestedAppAuthController {
|
|
|
16942
16979
|
async acquireTokenInteractive(request) {
|
|
16943
16980
|
const validRequest = this.ensureValidRequest(request);
|
|
16944
16981
|
const correlationId = validRequest.correlationId || createNewGuid();
|
|
16945
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, exports.InteractionType.Popup, validRequest);
|
|
16982
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, exports.InteractionType.Popup, validRequest);
|
|
16946
16983
|
const atPopupMeasurement = this.performanceClient.startMeasurement(AcquireTokenPopup, correlationId);
|
|
16947
16984
|
atPopupMeasurement.add({ nestedAppAuthRequest: true });
|
|
16948
16985
|
try {
|
|
@@ -16966,7 +17003,7 @@ class NestedAppAuthController {
|
|
|
16966
17003
|
environment: result.account.environment,
|
|
16967
17004
|
tenantId: result.account.tenantId,
|
|
16968
17005
|
};
|
|
16969
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Popup, result);
|
|
17006
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, correlationId, exports.InteractionType.Popup, result);
|
|
16970
17007
|
atPopupMeasurement.add({
|
|
16971
17008
|
accessTokenSize: result.accessToken.length,
|
|
16972
17009
|
idTokenSize: result.idToken.length,
|
|
@@ -16981,7 +17018,7 @@ class NestedAppAuthController {
|
|
|
16981
17018
|
const error = e instanceof AuthError
|
|
16982
17019
|
? e
|
|
16983
17020
|
: this.nestedAppAuthAdapter.fromBridgeError(e);
|
|
16984
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Popup, null, e);
|
|
17021
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, exports.InteractionType.Popup, null, e);
|
|
16985
17022
|
atPopupMeasurement.end({
|
|
16986
17023
|
success: false,
|
|
16987
17024
|
}, e, request.account);
|
|
@@ -16996,11 +17033,11 @@ class NestedAppAuthController {
|
|
|
16996
17033
|
async acquireTokenSilentInternal(request) {
|
|
16997
17034
|
const validRequest = this.ensureValidRequest(request);
|
|
16998
17035
|
const correlationId = validRequest.correlationId || createNewGuid();
|
|
16999
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, exports.InteractionType.Silent, validRequest);
|
|
17036
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, exports.InteractionType.Silent, validRequest);
|
|
17000
17037
|
// Look for tokens in the cache first
|
|
17001
17038
|
const result = await this.acquireTokenFromCache(validRequest);
|
|
17002
17039
|
if (result) {
|
|
17003
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Silent, result);
|
|
17040
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, correlationId, exports.InteractionType.Silent, result);
|
|
17004
17041
|
return result;
|
|
17005
17042
|
}
|
|
17006
17043
|
// proceed with acquiring tokens via the host
|
|
@@ -17031,7 +17068,7 @@ class NestedAppAuthController {
|
|
|
17031
17068
|
environment: result.account.environment,
|
|
17032
17069
|
tenantId: result.account.tenantId,
|
|
17033
17070
|
};
|
|
17034
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Silent, result);
|
|
17071
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, correlationId, exports.InteractionType.Silent, result);
|
|
17035
17072
|
ssoSilentMeasurement?.add({
|
|
17036
17073
|
accessTokenSize: result.accessToken.length,
|
|
17037
17074
|
idTokenSize: result.idToken.length,
|
|
@@ -17046,7 +17083,7 @@ class NestedAppAuthController {
|
|
|
17046
17083
|
const error = e instanceof AuthError
|
|
17047
17084
|
? e
|
|
17048
17085
|
: this.nestedAppAuthAdapter.fromBridgeError(e);
|
|
17049
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Silent, null, e);
|
|
17086
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, exports.InteractionType.Silent, null, e);
|
|
17050
17087
|
ssoSilentMeasurement?.end({
|
|
17051
17088
|
success: false,
|
|
17052
17089
|
}, e, request.account);
|
|
@@ -17089,7 +17126,7 @@ class NestedAppAuthController {
|
|
|
17089
17126
|
return null;
|
|
17090
17127
|
}
|
|
17091
17128
|
if (result) {
|
|
17092
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Silent, result);
|
|
17129
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, correlationId, exports.InteractionType.Silent, result);
|
|
17093
17130
|
atsMeasurement.add({
|
|
17094
17131
|
accessTokenSize: result.accessToken.length,
|
|
17095
17132
|
idTokenSize: result.idToken.length,
|
|
@@ -17100,7 +17137,7 @@ class NestedAppAuthController {
|
|
|
17100
17137
|
return result;
|
|
17101
17138
|
}
|
|
17102
17139
|
this.logger.warning("1yb4fi", correlationId);
|
|
17103
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Silent, null);
|
|
17140
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, exports.InteractionType.Silent, null);
|
|
17104
17141
|
atsMeasurement.end({
|
|
17105
17142
|
success: false,
|
|
17106
17143
|
}, undefined, request.account);
|