@azure/msal-browser 5.1.0 → 5.3.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 +39 -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 +39 -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 +2 -2
- package/dist/redirect-bridge/redirect_bridge/index.mjs.map +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 +181 -137
- 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 +216 -154
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +216 -154
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +2 -2
- package/lib/redirect-bridge/msal-redirect-bridge.js +11 -28
- package/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -1
- package/lib/redirect-bridge/msal-redirect-bridge.min.js +2 -2
- 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 +55 -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/src/redirect_bridge/index.ts +1 -1
package/lib/msal-browser.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.3.0 2026-02-24 */
|
|
2
2
|
'use strict';
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
|
-
/*! @azure/msal-common v16.0
|
|
5
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
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.1.0 2026-02-24 */
|
|
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.1.0 2026-02-24 */
|
|
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.1.0 2026-02-24 */
|
|
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.1.0 2026-02-24 */
|
|
339
339
|
/*
|
|
340
340
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
341
341
|
* Licensed under the MIT License.
|
|
@@ -413,26 +413,9 @@ class StringUtils {
|
|
|
413
413
|
return null;
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
|
-
/**
|
|
417
|
-
* Tests if a given string matches a given pattern, with support for wildcards and queries.
|
|
418
|
-
* @param pattern Wildcard pattern to string match. Supports "*" for wildcards and "?" for queries
|
|
419
|
-
* @param input String to match against
|
|
420
|
-
*/
|
|
421
|
-
static matchPattern(pattern, input) {
|
|
422
|
-
/**
|
|
423
|
-
* Wildcard support: https://stackoverflow.com/a/3117248/4888559
|
|
424
|
-
* Queries: replaces "?" in string with escaped "\?" for regex test
|
|
425
|
-
*/
|
|
426
|
-
// eslint-disable-next-line security/detect-non-literal-regexp
|
|
427
|
-
const regex = new RegExp(pattern
|
|
428
|
-
.replace(/\\/g, "\\\\")
|
|
429
|
-
.replace(/\*/g, "[^ ]*")
|
|
430
|
-
.replace(/\?/g, "\\?"));
|
|
431
|
-
return regex.test(input);
|
|
432
|
-
}
|
|
433
416
|
}
|
|
434
417
|
|
|
435
|
-
/*! @azure/msal-common v16.0
|
|
418
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
436
419
|
|
|
437
420
|
/*
|
|
438
421
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -455,7 +438,7 @@ function createClientAuthError(errorCode, additionalMessage) {
|
|
|
455
438
|
return new ClientAuthError(errorCode, additionalMessage);
|
|
456
439
|
}
|
|
457
440
|
|
|
458
|
-
/*! @azure/msal-common v16.0
|
|
441
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
459
442
|
/*
|
|
460
443
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
461
444
|
* Licensed under the MIT License.
|
|
@@ -509,7 +492,7 @@ var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
509
492
|
urlParseError: urlParseError
|
|
510
493
|
});
|
|
511
494
|
|
|
512
|
-
/*! @azure/msal-common v16.0
|
|
495
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
513
496
|
/*
|
|
514
497
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
515
498
|
* Licensed under the MIT License.
|
|
@@ -593,7 +576,7 @@ var ClientAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
593
576
|
userCanceled: userCanceled
|
|
594
577
|
});
|
|
595
578
|
|
|
596
|
-
/*! @azure/msal-common v16.0
|
|
579
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
597
580
|
|
|
598
581
|
/*
|
|
599
582
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -788,7 +771,7 @@ class ScopeSet {
|
|
|
788
771
|
}
|
|
789
772
|
}
|
|
790
773
|
|
|
791
|
-
/*! @azure/msal-common v16.0
|
|
774
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
792
775
|
|
|
793
776
|
/*
|
|
794
777
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1155,7 +1138,7 @@ function addEARParameters(parameters, jwk) {
|
|
|
1155
1138
|
parameters.set(EAR_JWE_CRYPTO, jweCryptoB64Encoded);
|
|
1156
1139
|
}
|
|
1157
1140
|
|
|
1158
|
-
/*! @azure/msal-common v16.0
|
|
1141
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
1159
1142
|
|
|
1160
1143
|
/*
|
|
1161
1144
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1264,7 +1247,7 @@ function normalizeUrlForComparison(url) {
|
|
|
1264
1247
|
}
|
|
1265
1248
|
}
|
|
1266
1249
|
|
|
1267
|
-
/*! @azure/msal-common v16.0
|
|
1250
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
1268
1251
|
|
|
1269
1252
|
/*
|
|
1270
1253
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1303,7 +1286,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
|
|
|
1303
1286
|
},
|
|
1304
1287
|
};
|
|
1305
1288
|
|
|
1306
|
-
/*! @azure/msal-common v16.0
|
|
1289
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
1307
1290
|
/*
|
|
1308
1291
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1309
1292
|
* Licensed under the MIT License.
|
|
@@ -1578,12 +1561,12 @@ class Logger {
|
|
|
1578
1561
|
}
|
|
1579
1562
|
}
|
|
1580
1563
|
|
|
1581
|
-
/*! @azure/msal-common v16.0
|
|
1564
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
1582
1565
|
/* eslint-disable header/header */
|
|
1583
1566
|
const name$1 = "@azure/msal-common";
|
|
1584
|
-
const version$1 = "16.0
|
|
1567
|
+
const version$1 = "16.1.0";
|
|
1585
1568
|
|
|
1586
|
-
/*! @azure/msal-common v16.0
|
|
1569
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
1587
1570
|
/*
|
|
1588
1571
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1589
1572
|
* Licensed under the MIT License.
|
|
@@ -1603,7 +1586,7 @@ const AzureCloudInstance = {
|
|
|
1603
1586
|
AzureUsGovernment: "https://login.microsoftonline.us",
|
|
1604
1587
|
};
|
|
1605
1588
|
|
|
1606
|
-
/*! @azure/msal-common v16.0
|
|
1589
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
1607
1590
|
/*
|
|
1608
1591
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1609
1592
|
* Licensed under the MIT License.
|
|
@@ -1685,7 +1668,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
|
|
|
1685
1668
|
return updatedAccountInfo;
|
|
1686
1669
|
}
|
|
1687
1670
|
|
|
1688
|
-
/*! @azure/msal-common v16.0
|
|
1671
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
1689
1672
|
|
|
1690
1673
|
/*
|
|
1691
1674
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1765,7 +1748,7 @@ function checkMaxAge(authTime, maxAge) {
|
|
|
1765
1748
|
}
|
|
1766
1749
|
}
|
|
1767
1750
|
|
|
1768
|
-
/*! @azure/msal-common v16.0
|
|
1751
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
1769
1752
|
|
|
1770
1753
|
/*
|
|
1771
1754
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1922,7 +1905,7 @@ class UrlString {
|
|
|
1922
1905
|
}
|
|
1923
1906
|
}
|
|
1924
1907
|
|
|
1925
|
-
/*! @azure/msal-common v16.0
|
|
1908
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
1926
1909
|
|
|
1927
1910
|
/*
|
|
1928
1911
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1993,6 +1976,21 @@ const rawMetdataJSON = {
|
|
|
1993
1976
|
preferred_cache: "login-us.microsoftonline.com",
|
|
1994
1977
|
aliases: ["login-us.microsoftonline.com"],
|
|
1995
1978
|
},
|
|
1979
|
+
{
|
|
1980
|
+
preferred_network: "login.sovcloud-identity.fr",
|
|
1981
|
+
preferred_cache: "login.sovcloud-identity.fr",
|
|
1982
|
+
aliases: ["login.sovcloud-identity.fr"],
|
|
1983
|
+
},
|
|
1984
|
+
{
|
|
1985
|
+
preferred_network: "login.sovcloud-identity.de",
|
|
1986
|
+
preferred_cache: "login.sovcloud-identity.de",
|
|
1987
|
+
aliases: ["login.sovcloud-identity.de"],
|
|
1988
|
+
},
|
|
1989
|
+
{
|
|
1990
|
+
preferred_network: "login.sovcloud-identity.sg",
|
|
1991
|
+
preferred_cache: "login.sovcloud-identity.sg",
|
|
1992
|
+
aliases: ["login.sovcloud-identity.sg"],
|
|
1993
|
+
},
|
|
1996
1994
|
],
|
|
1997
1995
|
},
|
|
1998
1996
|
};
|
|
@@ -2064,7 +2062,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
2064
2062
|
return null;
|
|
2065
2063
|
}
|
|
2066
2064
|
|
|
2067
|
-
/*! @azure/msal-common v16.0
|
|
2065
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
2068
2066
|
/*
|
|
2069
2067
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2070
2068
|
* Licensed under the MIT License.
|
|
@@ -2072,7 +2070,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
2072
2070
|
const cacheQuotaExceeded = "cache_quota_exceeded";
|
|
2073
2071
|
const cacheErrorUnknown = "cache_error_unknown";
|
|
2074
2072
|
|
|
2075
|
-
/*! @azure/msal-common v16.0
|
|
2073
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
2076
2074
|
|
|
2077
2075
|
/*
|
|
2078
2076
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2110,7 +2108,7 @@ function createCacheError(e) {
|
|
|
2110
2108
|
}
|
|
2111
2109
|
}
|
|
2112
2110
|
|
|
2113
|
-
/*! @azure/msal-common v16.0
|
|
2111
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
2114
2112
|
|
|
2115
2113
|
/*
|
|
2116
2114
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2148,7 +2146,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
|
|
|
2148
2146
|
};
|
|
2149
2147
|
}
|
|
2150
2148
|
|
|
2151
|
-
/*! @azure/msal-common v16.0
|
|
2149
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
2152
2150
|
/*
|
|
2153
2151
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2154
2152
|
* Licensed under the MIT License.
|
|
@@ -2163,7 +2161,7 @@ const AuthorityType = {
|
|
|
2163
2161
|
Ciam: 3,
|
|
2164
2162
|
};
|
|
2165
2163
|
|
|
2166
|
-
/*! @azure/msal-common v16.0
|
|
2164
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
2167
2165
|
/*
|
|
2168
2166
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2169
2167
|
* Licensed under the MIT License.
|
|
@@ -2185,7 +2183,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
|
|
|
2185
2183
|
return null;
|
|
2186
2184
|
}
|
|
2187
2185
|
|
|
2188
|
-
/*! @azure/msal-common v16.0
|
|
2186
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
2189
2187
|
/*
|
|
2190
2188
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2191
2189
|
* Licensed under the MIT License.
|
|
@@ -2209,7 +2207,7 @@ const ProtocolMode = {
|
|
|
2209
2207
|
EAR: "EAR",
|
|
2210
2208
|
};
|
|
2211
2209
|
|
|
2212
|
-
/*! @azure/msal-common v16.0
|
|
2210
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
2213
2211
|
/**
|
|
2214
2212
|
* Returns the AccountInfo interface for this account.
|
|
2215
2213
|
*/
|
|
@@ -2384,7 +2382,7 @@ function isAccountEntity(entity) {
|
|
|
2384
2382
|
entity.hasOwnProperty("authorityType"));
|
|
2385
2383
|
}
|
|
2386
2384
|
|
|
2387
|
-
/*! @azure/msal-common v16.0
|
|
2385
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
2388
2386
|
|
|
2389
2387
|
/*
|
|
2390
2388
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3481,7 +3479,7 @@ class DefaultStorageClass extends CacheManager {
|
|
|
3481
3479
|
}
|
|
3482
3480
|
}
|
|
3483
3481
|
|
|
3484
|
-
/*! @azure/msal-common v16.0
|
|
3482
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
3485
3483
|
/*
|
|
3486
3484
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3487
3485
|
* Licensed under the MIT License.
|
|
@@ -3522,7 +3520,7 @@ const IntFields = new Set([
|
|
|
3522
3520
|
"upgradedCacheCount",
|
|
3523
3521
|
]);
|
|
3524
3522
|
|
|
3525
|
-
/*! @azure/msal-common v16.0
|
|
3523
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
3526
3524
|
|
|
3527
3525
|
/*
|
|
3528
3526
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3577,7 +3575,7 @@ class StubPerformanceClient {
|
|
|
3577
3575
|
}
|
|
3578
3576
|
}
|
|
3579
3577
|
|
|
3580
|
-
/*! @azure/msal-common v16.0
|
|
3578
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
3581
3579
|
|
|
3582
3580
|
/*
|
|
3583
3581
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3671,7 +3669,7 @@ function isOidcProtocolMode(config) {
|
|
|
3671
3669
|
return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
|
|
3672
3670
|
}
|
|
3673
3671
|
|
|
3674
|
-
/*! @azure/msal-common v16.0
|
|
3672
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
3675
3673
|
|
|
3676
3674
|
/*
|
|
3677
3675
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3690,27 +3688,63 @@ class ServerError extends AuthError {
|
|
|
3690
3688
|
}
|
|
3691
3689
|
}
|
|
3692
3690
|
|
|
3693
|
-
/*! @azure/msal-common v16.0
|
|
3691
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
3694
3692
|
/*
|
|
3695
3693
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3696
3694
|
* Licensed under the MIT License.
|
|
3697
3695
|
*/
|
|
3698
|
-
|
|
3696
|
+
/**
|
|
3697
|
+
* MSAL-defined interaction required error code indicating no tokens are found in cache.
|
|
3698
|
+
* @public
|
|
3699
|
+
*/
|
|
3699
3700
|
const noTokensFound = "no_tokens_found";
|
|
3701
|
+
/**
|
|
3702
|
+
* MSAL-defined error code indicating a native account is unavailable on the platform.
|
|
3703
|
+
* @public
|
|
3704
|
+
*/
|
|
3700
3705
|
const nativeAccountUnavailable = "native_account_unavailable";
|
|
3706
|
+
/**
|
|
3707
|
+
* MSAL-defined error code indicating the refresh token has expired and user interaction is needed.
|
|
3708
|
+
* @public
|
|
3709
|
+
*/
|
|
3701
3710
|
const refreshTokenExpired = "refresh_token_expired";
|
|
3711
|
+
/**
|
|
3712
|
+
* MSAL-defined error code indicating UI/UX is not allowed (e.g., blocked by policy), requiring alternate interaction.
|
|
3713
|
+
* @public
|
|
3714
|
+
*/
|
|
3702
3715
|
const uxNotAllowed = "ux_not_allowed";
|
|
3703
|
-
|
|
3716
|
+
/**
|
|
3717
|
+
* Server-originated error code indicating interaction is required to complete the request.
|
|
3718
|
+
* @public
|
|
3719
|
+
*/
|
|
3704
3720
|
const interactionRequired = "interaction_required";
|
|
3721
|
+
/**
|
|
3722
|
+
* Server-originated error code indicating user consent is required.
|
|
3723
|
+
* @public
|
|
3724
|
+
*/
|
|
3705
3725
|
const consentRequired = "consent_required";
|
|
3726
|
+
/**
|
|
3727
|
+
* Server-originated error code indicating user login is required.
|
|
3728
|
+
* @public
|
|
3729
|
+
*/
|
|
3706
3730
|
const loginRequired = "login_required";
|
|
3707
|
-
|
|
3731
|
+
/**
|
|
3732
|
+
* Server-originated error code indicating the token is invalid or corrupted.
|
|
3733
|
+
* @public
|
|
3734
|
+
*/
|
|
3735
|
+
const badToken = "bad_token";
|
|
3736
|
+
/**
|
|
3737
|
+
* Server-originated error code indicating the user is in an interrupted state and interaction is required.
|
|
3738
|
+
* @public
|
|
3739
|
+
*/
|
|
3740
|
+
const interruptedUser = "interrupted_user";
|
|
3708
3741
|
|
|
3709
3742
|
var InteractionRequiredAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
3710
3743
|
__proto__: null,
|
|
3711
3744
|
badToken: badToken,
|
|
3712
3745
|
consentRequired: consentRequired,
|
|
3713
3746
|
interactionRequired: interactionRequired,
|
|
3747
|
+
interruptedUser: interruptedUser,
|
|
3714
3748
|
loginRequired: loginRequired,
|
|
3715
3749
|
nativeAccountUnavailable: nativeAccountUnavailable,
|
|
3716
3750
|
noTokensFound: noTokensFound,
|
|
@@ -3718,7 +3752,7 @@ var InteractionRequiredAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
3718
3752
|
uxNotAllowed: uxNotAllowed
|
|
3719
3753
|
});
|
|
3720
3754
|
|
|
3721
|
-
/*! @azure/msal-common v16.0
|
|
3755
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
3722
3756
|
|
|
3723
3757
|
/*
|
|
3724
3758
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3733,6 +3767,7 @@ const InteractionRequiredServerErrorMessage = [
|
|
|
3733
3767
|
loginRequired,
|
|
3734
3768
|
badToken,
|
|
3735
3769
|
uxNotAllowed,
|
|
3770
|
+
interruptedUser,
|
|
3736
3771
|
];
|
|
3737
3772
|
const InteractionRequiredAuthSubErrorMessage = [
|
|
3738
3773
|
"message_only",
|
|
@@ -3742,6 +3777,7 @@ const InteractionRequiredAuthSubErrorMessage = [
|
|
|
3742
3777
|
"consent_required",
|
|
3743
3778
|
"bad_token",
|
|
3744
3779
|
"ux_not_allowed",
|
|
3780
|
+
"interrupted_user",
|
|
3745
3781
|
];
|
|
3746
3782
|
/**
|
|
3747
3783
|
* Error thrown when user interaction is required.
|
|
@@ -3784,7 +3820,7 @@ function createInteractionRequiredAuthError(errorCode, errorMessage) {
|
|
|
3784
3820
|
return new InteractionRequiredAuthError(errorCode, errorMessage);
|
|
3785
3821
|
}
|
|
3786
3822
|
|
|
3787
|
-
/*! @azure/msal-common v16.0
|
|
3823
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
3788
3824
|
|
|
3789
3825
|
/*
|
|
3790
3826
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3852,7 +3888,7 @@ function parseRequestState(base64Decode, state) {
|
|
|
3852
3888
|
}
|
|
3853
3889
|
}
|
|
3854
3890
|
|
|
3855
|
-
/*! @azure/msal-common v16.0
|
|
3891
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
3856
3892
|
/*
|
|
3857
3893
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3858
3894
|
* Licensed under the MIT License.
|
|
@@ -3917,7 +3953,7 @@ function wasClockTurnedBack(cachedAt) {
|
|
|
3917
3953
|
return cachedAtSec > nowSeconds();
|
|
3918
3954
|
}
|
|
3919
3955
|
|
|
3920
|
-
/*! @azure/msal-common v16.0
|
|
3956
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
3921
3957
|
/*
|
|
3922
3958
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3923
3959
|
* Licensed under the MIT License.
|
|
@@ -3988,7 +4024,7 @@ const RegionDiscoveryGetCurrentVersion = "regionDiscoveryGetCurrentVersion";
|
|
|
3988
4024
|
const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken";
|
|
3989
4025
|
const SetUserData = "setUserData";
|
|
3990
4026
|
|
|
3991
|
-
/*! @azure/msal-common v16.0
|
|
4027
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
3992
4028
|
/*
|
|
3993
4029
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3994
4030
|
* Licensed under the MIT License.
|
|
@@ -4083,7 +4119,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
|
|
|
4083
4119
|
};
|
|
4084
4120
|
};
|
|
4085
4121
|
|
|
4086
|
-
/*! @azure/msal-common v16.0
|
|
4122
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
4087
4123
|
|
|
4088
4124
|
/*
|
|
4089
4125
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4163,7 +4199,7 @@ class PopTokenGenerator {
|
|
|
4163
4199
|
}
|
|
4164
4200
|
}
|
|
4165
4201
|
|
|
4166
|
-
/*! @azure/msal-common v16.0
|
|
4202
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
4167
4203
|
/*
|
|
4168
4204
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4169
4205
|
* Licensed under the MIT License.
|
|
@@ -4190,7 +4226,7 @@ class PopTokenGenerator {
|
|
|
4190
4226
|
}
|
|
4191
4227
|
}
|
|
4192
4228
|
|
|
4193
|
-
/*! @azure/msal-common v16.0
|
|
4229
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
4194
4230
|
|
|
4195
4231
|
/*
|
|
4196
4232
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4449,7 +4485,7 @@ function isAuthorityMetadataExpired(metadata) {
|
|
|
4449
4485
|
return metadata.expiresAt <= nowSeconds();
|
|
4450
4486
|
}
|
|
4451
4487
|
|
|
4452
|
-
/*! @azure/msal-common v16.0
|
|
4488
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
4453
4489
|
|
|
4454
4490
|
/*
|
|
4455
4491
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4785,7 +4821,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
|
|
|
4785
4821
|
return baseAccount;
|
|
4786
4822
|
}
|
|
4787
4823
|
|
|
4788
|
-
/*! @azure/msal-common v16.0
|
|
4824
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
4789
4825
|
/*
|
|
4790
4826
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4791
4827
|
* Licensed under the MIT License.
|
|
@@ -4795,7 +4831,7 @@ const CcsCredentialType = {
|
|
|
4795
4831
|
UPN: "UPN",
|
|
4796
4832
|
};
|
|
4797
4833
|
|
|
4798
|
-
/*! @azure/msal-common v16.0
|
|
4834
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
4799
4835
|
/*
|
|
4800
4836
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4801
4837
|
* Licensed under the MIT License.
|
|
@@ -4813,7 +4849,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint) {
|
|
|
4813
4849
|
}
|
|
4814
4850
|
}
|
|
4815
4851
|
|
|
4816
|
-
/*! @azure/msal-common v16.0
|
|
4852
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
4817
4853
|
/*
|
|
4818
4854
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4819
4855
|
* Licensed under the MIT License.
|
|
@@ -4834,7 +4870,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
|
|
|
4834
4870
|
};
|
|
4835
4871
|
}
|
|
4836
4872
|
|
|
4837
|
-
/*! @azure/msal-common v16.0
|
|
4873
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
4838
4874
|
|
|
4839
4875
|
/*
|
|
4840
4876
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4920,7 +4956,7 @@ class ThrottlingUtils {
|
|
|
4920
4956
|
}
|
|
4921
4957
|
}
|
|
4922
4958
|
|
|
4923
|
-
/*! @azure/msal-common v16.0
|
|
4959
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
4924
4960
|
|
|
4925
4961
|
/*
|
|
4926
4962
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4951,7 +4987,7 @@ function createNetworkError(error, httpStatus, responseHeaders, additionalError)
|
|
|
4951
4987
|
return new NetworkError(error, httpStatus, responseHeaders);
|
|
4952
4988
|
}
|
|
4953
4989
|
|
|
4954
|
-
/*! @azure/msal-common v16.0
|
|
4990
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
4955
4991
|
|
|
4956
4992
|
/*
|
|
4957
4993
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5065,7 +5101,7 @@ async function sendPostRequest(thumbprint, tokenEndpoint, options, correlationId
|
|
|
5065
5101
|
return response;
|
|
5066
5102
|
}
|
|
5067
5103
|
|
|
5068
|
-
/*! @azure/msal-common v16.0
|
|
5104
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
5069
5105
|
/*
|
|
5070
5106
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5071
5107
|
* Licensed under the MIT License.
|
|
@@ -5077,7 +5113,7 @@ function isOpenIdConfigResponse(response) {
|
|
|
5077
5113
|
response.hasOwnProperty("jwks_uri"));
|
|
5078
5114
|
}
|
|
5079
5115
|
|
|
5080
|
-
/*! @azure/msal-common v16.0
|
|
5116
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
5081
5117
|
/*
|
|
5082
5118
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5083
5119
|
* Licensed under the MIT License.
|
|
@@ -5087,7 +5123,7 @@ function isCloudInstanceDiscoveryResponse(response) {
|
|
|
5087
5123
|
response.hasOwnProperty("metadata"));
|
|
5088
5124
|
}
|
|
5089
5125
|
|
|
5090
|
-
/*! @azure/msal-common v16.0
|
|
5126
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
5091
5127
|
/*
|
|
5092
5128
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5093
5129
|
* Licensed under the MIT License.
|
|
@@ -5097,7 +5133,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
|
|
|
5097
5133
|
response.hasOwnProperty("error_description"));
|
|
5098
5134
|
}
|
|
5099
5135
|
|
|
5100
|
-
/*! @azure/msal-common v16.0
|
|
5136
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
5101
5137
|
|
|
5102
5138
|
/*
|
|
5103
5139
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5202,7 +5238,7 @@ RegionDiscovery.IMDS_OPTIONS = {
|
|
|
5202
5238
|
},
|
|
5203
5239
|
};
|
|
5204
5240
|
|
|
5205
|
-
/*! @azure/msal-common v16.0
|
|
5241
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
5206
5242
|
|
|
5207
5243
|
/*
|
|
5208
5244
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6022,7 +6058,7 @@ function buildStaticAuthorityOptions(authOptions) {
|
|
|
6022
6058
|
};
|
|
6023
6059
|
}
|
|
6024
6060
|
|
|
6025
|
-
/*! @azure/msal-common v16.0
|
|
6061
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
6026
6062
|
|
|
6027
6063
|
/*
|
|
6028
6064
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6056,7 +6092,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
|
|
|
6056
6092
|
}
|
|
6057
6093
|
}
|
|
6058
6094
|
|
|
6059
|
-
/*! @azure/msal-common v16.0
|
|
6095
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
6060
6096
|
|
|
6061
6097
|
/*
|
|
6062
6098
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6316,7 +6352,7 @@ class AuthorizationCodeClient {
|
|
|
6316
6352
|
}
|
|
6317
6353
|
}
|
|
6318
6354
|
|
|
6319
|
-
/*! @azure/msal-common v16.0
|
|
6355
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
6320
6356
|
|
|
6321
6357
|
/*
|
|
6322
6358
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6541,7 +6577,7 @@ class RefreshTokenClient {
|
|
|
6541
6577
|
}
|
|
6542
6578
|
}
|
|
6543
6579
|
|
|
6544
|
-
/*! @azure/msal-common v16.0
|
|
6580
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
6545
6581
|
|
|
6546
6582
|
/*
|
|
6547
6583
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6650,7 +6686,7 @@ class SilentFlowClient {
|
|
|
6650
6686
|
}
|
|
6651
6687
|
}
|
|
6652
6688
|
|
|
6653
|
-
/*! @azure/msal-common v16.0
|
|
6689
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
6654
6690
|
|
|
6655
6691
|
/*
|
|
6656
6692
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6665,7 +6701,7 @@ const StubbedNetworkModule = {
|
|
|
6665
6701
|
},
|
|
6666
6702
|
};
|
|
6667
6703
|
|
|
6668
|
-
/*! @azure/msal-common v16.0
|
|
6704
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
6669
6705
|
|
|
6670
6706
|
/*
|
|
6671
6707
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6889,7 +6925,7 @@ function extractLoginHint(account) {
|
|
|
6889
6925
|
return account.loginHint || account.idTokenClaims?.login_hint || null;
|
|
6890
6926
|
}
|
|
6891
6927
|
|
|
6892
|
-
/*! @azure/msal-common v16.0
|
|
6928
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
6893
6929
|
|
|
6894
6930
|
/*
|
|
6895
6931
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6947,7 +6983,7 @@ class AuthenticationHeaderParser {
|
|
|
6947
6983
|
}
|
|
6948
6984
|
}
|
|
6949
6985
|
|
|
6950
|
-
/*! @azure/msal-common v16.0
|
|
6986
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
6951
6987
|
/*
|
|
6952
6988
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6953
6989
|
* Licensed under the MIT License.
|
|
@@ -6964,7 +7000,7 @@ var AuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
6964
7000
|
unexpectedError: unexpectedError
|
|
6965
7001
|
});
|
|
6966
7002
|
|
|
6967
|
-
/*! @azure/msal-common v16.0
|
|
7003
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
6968
7004
|
|
|
6969
7005
|
/*
|
|
6970
7006
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7225,7 +7261,7 @@ class ServerTelemetryManager {
|
|
|
7225
7261
|
}
|
|
7226
7262
|
}
|
|
7227
7263
|
|
|
7228
|
-
/*! @azure/msal-common v16.0
|
|
7264
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
7229
7265
|
|
|
7230
7266
|
/*
|
|
7231
7267
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7246,7 +7282,7 @@ function createJoseHeaderError(code) {
|
|
|
7246
7282
|
return new JoseHeaderError(code);
|
|
7247
7283
|
}
|
|
7248
7284
|
|
|
7249
|
-
/*! @azure/msal-common v16.0
|
|
7285
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
7250
7286
|
/*
|
|
7251
7287
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7252
7288
|
* Licensed under the MIT License.
|
|
@@ -7254,7 +7290,7 @@ function createJoseHeaderError(code) {
|
|
|
7254
7290
|
const missingKidError = "missing_kid_error";
|
|
7255
7291
|
const missingAlgError = "missing_alg_error";
|
|
7256
7292
|
|
|
7257
|
-
/*! @azure/msal-common v16.0
|
|
7293
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
7258
7294
|
|
|
7259
7295
|
/*
|
|
7260
7296
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7294,7 +7330,7 @@ class JoseHeader {
|
|
|
7294
7330
|
}
|
|
7295
7331
|
}
|
|
7296
7332
|
|
|
7297
|
-
/*! @azure/msal-common v16.0
|
|
7333
|
+
/*! @azure/msal-common v16.1.0 2026-02-24 */
|
|
7298
7334
|
|
|
7299
7335
|
/*
|
|
7300
7336
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -10120,7 +10156,7 @@ const EventType = {
|
|
|
10120
10156
|
|
|
10121
10157
|
/* eslint-disable header/header */
|
|
10122
10158
|
const name = "@azure/msal-browser";
|
|
10123
|
-
const version = "5.
|
|
10159
|
+
const version = "5.3.0";
|
|
10124
10160
|
|
|
10125
10161
|
/*
|
|
10126
10162
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -11133,7 +11169,7 @@ class BrowserCacheManager extends CacheManager {
|
|
|
11133
11169
|
this.logger.verbose("1bp5z5", correlationId);
|
|
11134
11170
|
this.browserStorage.removeItem(activeAccountKey);
|
|
11135
11171
|
}
|
|
11136
|
-
this.eventHandler.emitEvent(EventType.ACTIVE_ACCOUNT_CHANGED);
|
|
11172
|
+
this.eventHandler.emitEvent(EventType.ACTIVE_ACCOUNT_CHANGED, correlationId);
|
|
11137
11173
|
}
|
|
11138
11174
|
/**
|
|
11139
11175
|
* fetch throttling entity from the platform cache
|
|
@@ -11596,12 +11632,13 @@ class EventHandler {
|
|
|
11596
11632
|
* @param payload
|
|
11597
11633
|
* @param error
|
|
11598
11634
|
*/
|
|
11599
|
-
emitEvent(eventType, interactionType, payload, error) {
|
|
11635
|
+
emitEvent(eventType, correlationId, interactionType, payload, error) {
|
|
11600
11636
|
const message = {
|
|
11601
11637
|
eventType: eventType,
|
|
11602
11638
|
interactionType: interactionType || null,
|
|
11603
11639
|
payload: payload || null,
|
|
11604
11640
|
error: error || null,
|
|
11641
|
+
correlationId: correlationId,
|
|
11605
11642
|
timestamp: Date.now(),
|
|
11606
11643
|
};
|
|
11607
11644
|
switch (eventType) {
|
|
@@ -13026,6 +13063,8 @@ async function getEARForm(frame, config, authority, request, logger, performance
|
|
|
13026
13063
|
});
|
|
13027
13064
|
const queryParams = new Map();
|
|
13028
13065
|
addExtraParameters(queryParams, request.extraQueryParameters || {});
|
|
13066
|
+
// Add correlationId to query params so gateway can propagate it to IDPs
|
|
13067
|
+
addCorrelationId(queryParams, request.correlationId);
|
|
13029
13068
|
const url = getAuthorizeUrl(authority, queryParams);
|
|
13030
13069
|
return createForm(frame, url, parameters);
|
|
13031
13070
|
}
|
|
@@ -13043,6 +13082,8 @@ async function getCodeForm(frame, config, authority, request, logger, performanc
|
|
|
13043
13082
|
// Add extraQueryParameters to be appended to request URL
|
|
13044
13083
|
const queryParams = new Map();
|
|
13045
13084
|
addExtraParameters(queryParams, request.extraQueryParameters || {});
|
|
13085
|
+
// Add correlationId to query params so gateway can propagate it to IDPs
|
|
13086
|
+
addCorrelationId(queryParams, request.correlationId);
|
|
13046
13087
|
const url = getAuthorizeUrl(authority, queryParams);
|
|
13047
13088
|
return createForm(frame, url, parameters);
|
|
13048
13089
|
}
|
|
@@ -14130,7 +14171,7 @@ class PopupClient extends StandardInteractionClient {
|
|
|
14130
14171
|
const navigateUrl = await invokeAsync(getAuthCodeRequestUrl, GetAuthCodeUrl, this.logger, this.performanceClient, correlationId)(this.config, authClient.authority, popupRequest, this.logger, this.performanceClient);
|
|
14131
14172
|
// Show the UI once the url has been created. Get the window handle for the popup.
|
|
14132
14173
|
const popupWindow = this.initiateAuthRequest(navigateUrl, popupParams);
|
|
14133
|
-
this.eventHandler.emitEvent(EventType.POPUP_OPENED, exports.InteractionType.Popup, { popupWindow }, null);
|
|
14174
|
+
this.eventHandler.emitEvent(EventType.POPUP_OPENED, correlationId, exports.InteractionType.Popup, { popupWindow }, null);
|
|
14134
14175
|
// Wait for the redirect bridge response
|
|
14135
14176
|
const responseString = await waitForBridgeResponse(this.config.system.popupBridgeTimeout, this.logger, this.browserCrypto, request);
|
|
14136
14177
|
const serverParams = invoke(deserializeResponse, DeserializeResponse, this.logger, this.performanceClient, this.correlationId)(responseString, this.config.auth.OIDCOptions.responseMode, this.logger, this.correlationId);
|
|
@@ -14207,7 +14248,7 @@ class PopupClient extends StandardInteractionClient {
|
|
|
14207
14248
|
*/
|
|
14208
14249
|
async logoutPopupAsync(validRequest, popupParams, requestAuthority, mainWindowRedirectUri) {
|
|
14209
14250
|
this.logger.verbose("0b7yrk", this.correlationId);
|
|
14210
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_START, exports.InteractionType.Popup, validRequest);
|
|
14251
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_START, this.correlationId, exports.InteractionType.Popup, validRequest);
|
|
14211
14252
|
const serverTelemetryManager = initializeServerTelemetryManager(ApiId.logoutPopup, this.config.auth.clientId, this.correlationId, this.browserStorage, this.logger);
|
|
14212
14253
|
try {
|
|
14213
14254
|
// Clear cache on logout
|
|
@@ -14225,7 +14266,7 @@ class PopupClient extends StandardInteractionClient {
|
|
|
14225
14266
|
if (validRequest.account?.homeAccountId &&
|
|
14226
14267
|
validRequest.postLogoutRedirectUri &&
|
|
14227
14268
|
authClient.authority.protocolMode === ProtocolMode.OIDC) {
|
|
14228
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, exports.InteractionType.Popup, validRequest);
|
|
14269
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, validRequest.correlationId, exports.InteractionType.Popup, validRequest);
|
|
14229
14270
|
if (mainWindowRedirectUri) {
|
|
14230
14271
|
const navigationOptions = {
|
|
14231
14272
|
apiId: ApiId.logoutPopup,
|
|
@@ -14241,10 +14282,10 @@ class PopupClient extends StandardInteractionClient {
|
|
|
14241
14282
|
}
|
|
14242
14283
|
// Create logout string and navigate user window to logout.
|
|
14243
14284
|
const logoutUri = authClient.getLogoutUri(validRequest);
|
|
14244
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, exports.InteractionType.Popup, validRequest);
|
|
14285
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, validRequest.correlationId, exports.InteractionType.Popup, validRequest);
|
|
14245
14286
|
// Open the popup window to requestUrl.
|
|
14246
14287
|
const popupWindow = this.openPopup(logoutUri, popupParams);
|
|
14247
|
-
this.eventHandler.emitEvent(EventType.POPUP_OPENED, exports.InteractionType.Popup, { popupWindow }, null);
|
|
14288
|
+
this.eventHandler.emitEvent(EventType.POPUP_OPENED, validRequest.correlationId, exports.InteractionType.Popup, { popupWindow }, null);
|
|
14248
14289
|
await waitForBridgeResponse(this.config.system.popupBridgeTimeout, this.logger, this.browserCrypto, validRequest).catch(() => {
|
|
14249
14290
|
// Swallow any errors related to monitoring the window. Server logout is best effort
|
|
14250
14291
|
});
|
|
@@ -14270,11 +14311,11 @@ class PopupClient extends StandardInteractionClient {
|
|
|
14270
14311
|
e.setCorrelationId(this.correlationId);
|
|
14271
14312
|
serverTelemetryManager.cacheFailedRequest(e);
|
|
14272
14313
|
}
|
|
14273
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_FAILURE, exports.InteractionType.Popup, null, e);
|
|
14274
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_END, exports.InteractionType.Popup);
|
|
14314
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_FAILURE, this.correlationId, exports.InteractionType.Popup, null, e);
|
|
14315
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_END, this.correlationId, exports.InteractionType.Popup);
|
|
14275
14316
|
throw e;
|
|
14276
14317
|
}
|
|
14277
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_END, exports.InteractionType.Popup);
|
|
14318
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_END, this.correlationId, exports.InteractionType.Popup);
|
|
14278
14319
|
}
|
|
14279
14320
|
/**
|
|
14280
14321
|
* Opens a popup window with given request Url.
|
|
@@ -14437,7 +14478,7 @@ class RedirectClient extends StandardInteractionClient {
|
|
|
14437
14478
|
if (event.persisted) {
|
|
14438
14479
|
this.logger.verbose("0udvtt", this.correlationId);
|
|
14439
14480
|
this.browserStorage.resetRequestCache(this.correlationId);
|
|
14440
|
-
this.eventHandler.emitEvent(EventType.RESTORE_FROM_BFCACHE, exports.InteractionType.Redirect);
|
|
14481
|
+
this.eventHandler.emitEvent(EventType.RESTORE_FROM_BFCACHE, this.correlationId, exports.InteractionType.Redirect);
|
|
14441
14482
|
}
|
|
14442
14483
|
};
|
|
14443
14484
|
const redirectStartPage = this.getRedirectStartPage(request.redirectStartPage);
|
|
@@ -14754,7 +14795,7 @@ class RedirectClient extends StandardInteractionClient {
|
|
|
14754
14795
|
const validLogoutRequest = this.initializeLogoutRequest(logoutRequest);
|
|
14755
14796
|
const serverTelemetryManager = initializeServerTelemetryManager(ApiId.logout, this.config.auth.clientId, this.correlationId, this.browserStorage, this.logger);
|
|
14756
14797
|
try {
|
|
14757
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_START, exports.InteractionType.Redirect, logoutRequest);
|
|
14798
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_START, this.correlationId, exports.InteractionType.Redirect, logoutRequest);
|
|
14758
14799
|
// Clear cache on logout
|
|
14759
14800
|
await clearCacheOnLogout(this.browserStorage, this.browserCrypto, this.logger, this.correlationId, validLogoutRequest.account);
|
|
14760
14801
|
const navigationOptions = {
|
|
@@ -14774,7 +14815,7 @@ class RedirectClient extends StandardInteractionClient {
|
|
|
14774
14815
|
}
|
|
14775
14816
|
catch {
|
|
14776
14817
|
if (validLogoutRequest.account?.homeAccountId) {
|
|
14777
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, exports.InteractionType.Redirect, validLogoutRequest);
|
|
14818
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, this.correlationId, exports.InteractionType.Redirect, validLogoutRequest);
|
|
14778
14819
|
return;
|
|
14779
14820
|
}
|
|
14780
14821
|
}
|
|
@@ -14782,7 +14823,7 @@ class RedirectClient extends StandardInteractionClient {
|
|
|
14782
14823
|
// Create logout string and navigate user window to logout.
|
|
14783
14824
|
const logoutUri = authClient.getLogoutUri(validLogoutRequest);
|
|
14784
14825
|
if (validLogoutRequest.account?.homeAccountId) {
|
|
14785
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, exports.InteractionType.Redirect, validLogoutRequest);
|
|
14826
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, this.correlationId, exports.InteractionType.Redirect, validLogoutRequest);
|
|
14786
14827
|
}
|
|
14787
14828
|
// Check if onRedirectNavigate is implemented, and invoke it if so
|
|
14788
14829
|
const onRedirectNavigate = this.config.auth.onRedirectNavigate;
|
|
@@ -14817,11 +14858,11 @@ class RedirectClient extends StandardInteractionClient {
|
|
|
14817
14858
|
e.setCorrelationId(this.correlationId);
|
|
14818
14859
|
serverTelemetryManager.cacheFailedRequest(e);
|
|
14819
14860
|
}
|
|
14820
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_FAILURE, exports.InteractionType.Redirect, null, e);
|
|
14821
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_END, exports.InteractionType.Redirect);
|
|
14861
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_FAILURE, this.correlationId, exports.InteractionType.Redirect, null, e);
|
|
14862
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_END, this.correlationId, exports.InteractionType.Redirect);
|
|
14822
14863
|
throw e;
|
|
14823
14864
|
}
|
|
14824
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_END, exports.InteractionType.Redirect);
|
|
14865
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_END, this.correlationId, exports.InteractionType.Redirect);
|
|
14825
14866
|
}
|
|
14826
14867
|
/**
|
|
14827
14868
|
* Use to get the redirectStartPage either from request or use current window
|
|
@@ -15312,23 +15353,22 @@ class StandardController {
|
|
|
15312
15353
|
if (!this.isBrowserEnvironment) {
|
|
15313
15354
|
this.logger.info("19fvpi", correlationId);
|
|
15314
15355
|
this.initialized = true;
|
|
15315
|
-
this.eventHandler.emitEvent(EventType.INITIALIZE_END);
|
|
15356
|
+
this.eventHandler.emitEvent(EventType.INITIALIZE_END, correlationId);
|
|
15316
15357
|
return;
|
|
15317
15358
|
}
|
|
15318
|
-
const initCorrelationId = request?.correlationId || this.getRequestCorrelationId();
|
|
15319
15359
|
const allowPlatformBroker = this.config.system.allowPlatformBroker;
|
|
15320
|
-
const initMeasurement = this.performanceClient.startMeasurement(InitializeClientApplication,
|
|
15321
|
-
this.eventHandler.emitEvent(EventType.INITIALIZE_START);
|
|
15360
|
+
const initMeasurement = this.performanceClient.startMeasurement(InitializeClientApplication, correlationId);
|
|
15361
|
+
this.eventHandler.emitEvent(EventType.INITIALIZE_START, correlationId);
|
|
15322
15362
|
// 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,
|
|
15363
|
+
this.logMultipleInstances(initMeasurement, correlationId);
|
|
15364
|
+
await invokeAsync(this.browserStorage.initialize.bind(this.browserStorage), InitializeCache, this.logger, this.performanceClient, correlationId)(correlationId);
|
|
15325
15365
|
if (allowPlatformBroker) {
|
|
15326
15366
|
try {
|
|
15327
15367
|
// check if platform authentication is available via DOM or browser extension and create relevant handlers
|
|
15328
|
-
this.platformAuthProvider = await getPlatformAuthProvider(this.logger, this.performanceClient,
|
|
15368
|
+
this.platformAuthProvider = await getPlatformAuthProvider(this.logger, this.performanceClient, correlationId, this.config.system.nativeBrokerHandshakeTimeout);
|
|
15329
15369
|
}
|
|
15330
15370
|
catch (e) {
|
|
15331
|
-
this.logger.verbose(e,
|
|
15371
|
+
this.logger.verbose(e, correlationId);
|
|
15332
15372
|
}
|
|
15333
15373
|
}
|
|
15334
15374
|
if (this.config.cache.cacheLocation ===
|
|
@@ -15336,9 +15376,9 @@ class StandardController {
|
|
|
15336
15376
|
this.eventHandler.subscribeCrossTab();
|
|
15337
15377
|
}
|
|
15338
15378
|
!this.config.system.navigatePopups &&
|
|
15339
|
-
(await this.preGeneratePkceCodes(
|
|
15379
|
+
(await this.preGeneratePkceCodes(correlationId));
|
|
15340
15380
|
this.initialized = true;
|
|
15341
|
-
this.eventHandler.emitEvent(EventType.INITIALIZE_END);
|
|
15381
|
+
this.eventHandler.emitEvent(EventType.INITIALIZE_END, correlationId);
|
|
15342
15382
|
initMeasurement.end({
|
|
15343
15383
|
allowPlatformBroker: allowPlatformBroker,
|
|
15344
15384
|
success: true,
|
|
@@ -15400,11 +15440,11 @@ class StandardController {
|
|
|
15400
15440
|
this.platformAuthProvider &&
|
|
15401
15441
|
!options?.hash;
|
|
15402
15442
|
let rootMeasurement;
|
|
15403
|
-
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_START, exports.InteractionType.Redirect);
|
|
15404
15443
|
let redirectResponse;
|
|
15405
15444
|
try {
|
|
15406
15445
|
if (useNative && this.platformAuthProvider) {
|
|
15407
15446
|
const correlationId = platformBrokerRequest?.correlationId || "";
|
|
15447
|
+
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_START, correlationId, exports.InteractionType.Redirect);
|
|
15408
15448
|
rootMeasurement = this.performanceClient.startMeasurement(AcquireTokenRedirect, correlationId);
|
|
15409
15449
|
this.logger.trace("12v7is", correlationId);
|
|
15410
15450
|
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 +15453,7 @@ class StandardController {
|
|
|
15413
15453
|
else {
|
|
15414
15454
|
const [standardRequest, codeVerifier] = this.browserStorage.getCachedRequest("");
|
|
15415
15455
|
const correlationId = standardRequest.correlationId;
|
|
15456
|
+
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_START, correlationId, exports.InteractionType.Redirect);
|
|
15416
15457
|
// Reset rootMeasurement now that we have correlationId
|
|
15417
15458
|
rootMeasurement = this.performanceClient.startMeasurement(AcquireTokenRedirect, correlationId);
|
|
15418
15459
|
this.logger.trace("0znzs5", correlationId);
|
|
@@ -15428,12 +15469,12 @@ class StandardController {
|
|
|
15428
15469
|
.then((result) => {
|
|
15429
15470
|
if (result) {
|
|
15430
15471
|
this.browserStorage.resetRequestCache(result.correlationId);
|
|
15431
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Redirect, result);
|
|
15472
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, result.correlationId, exports.InteractionType.Redirect, result);
|
|
15432
15473
|
this.logger.verbose("0ui8f5", result.correlationId);
|
|
15433
15474
|
// Emit login event if number of accounts change
|
|
15434
15475
|
const isLoggingIn = loggedInAccounts.length < this.getAllAccounts().length;
|
|
15435
15476
|
if (isLoggingIn) {
|
|
15436
|
-
this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, exports.InteractionType.Redirect, result.account);
|
|
15477
|
+
this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, result.correlationId, exports.InteractionType.Redirect, result.account);
|
|
15437
15478
|
this.logger.verbose("16im3l", result.correlationId);
|
|
15438
15479
|
}
|
|
15439
15480
|
rootMeasurement.end({
|
|
@@ -15452,14 +15493,14 @@ class StandardController {
|
|
|
15452
15493
|
rootMeasurement.discard();
|
|
15453
15494
|
}
|
|
15454
15495
|
}
|
|
15455
|
-
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_END, exports.InteractionType.Redirect);
|
|
15496
|
+
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_END, rootMeasurement.event.correlationId, exports.InteractionType.Redirect);
|
|
15456
15497
|
return result;
|
|
15457
15498
|
})
|
|
15458
15499
|
.catch((e) => {
|
|
15459
15500
|
this.browserStorage.resetRequestCache(rootMeasurement.event.correlationId);
|
|
15460
15501
|
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);
|
|
15502
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, rootMeasurement.event.correlationId, exports.InteractionType.Redirect, null, eventError);
|
|
15503
|
+
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_END, rootMeasurement.event.correlationId, exports.InteractionType.Redirect);
|
|
15463
15504
|
rootMeasurement.end({
|
|
15464
15505
|
success: false,
|
|
15465
15506
|
}, eventError);
|
|
@@ -15498,7 +15539,7 @@ class StandardController {
|
|
|
15498
15539
|
try {
|
|
15499
15540
|
redirectPreflightCheck(this.initialized, this.config);
|
|
15500
15541
|
this.browserStorage.setInteractionInProgress(true, INTERACTION_TYPE.SIGNIN);
|
|
15501
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, exports.InteractionType.Redirect, request);
|
|
15542
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, exports.InteractionType.Redirect, request);
|
|
15502
15543
|
let result;
|
|
15503
15544
|
if (this.platformAuthProvider &&
|
|
15504
15545
|
this.canUsePlatformBroker(request)) {
|
|
@@ -15540,7 +15581,7 @@ class StandardController {
|
|
|
15540
15581
|
else {
|
|
15541
15582
|
atrMeasurement.end({ success: false }, e, request.account);
|
|
15542
15583
|
}
|
|
15543
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Redirect, null, e);
|
|
15584
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, exports.InteractionType.Redirect, null, e);
|
|
15544
15585
|
throw e;
|
|
15545
15586
|
}
|
|
15546
15587
|
}
|
|
@@ -15570,7 +15611,7 @@ class StandardController {
|
|
|
15570
15611
|
}
|
|
15571
15612
|
// If logged in, emit acquire token events
|
|
15572
15613
|
const loggedInAccounts = this.getAllAccounts();
|
|
15573
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, exports.InteractionType.Popup, request);
|
|
15614
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, exports.InteractionType.Popup, request);
|
|
15574
15615
|
let result;
|
|
15575
15616
|
const pkce = this.getPreGeneratedPkceCodes(correlationId);
|
|
15576
15617
|
if (this.canUsePlatformBroker(request)) {
|
|
@@ -15610,9 +15651,9 @@ class StandardController {
|
|
|
15610
15651
|
* If logged in, emit acquire token events
|
|
15611
15652
|
*/
|
|
15612
15653
|
const isLoggingIn = loggedInAccounts.length < this.getAllAccounts().length;
|
|
15613
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Popup, result);
|
|
15654
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, correlationId, exports.InteractionType.Popup, result);
|
|
15614
15655
|
if (isLoggingIn) {
|
|
15615
|
-
this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, exports.InteractionType.Popup, result.account);
|
|
15656
|
+
this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, correlationId, exports.InteractionType.Popup, result.account);
|
|
15616
15657
|
}
|
|
15617
15658
|
atPopupMeasurement.end({
|
|
15618
15659
|
success: true,
|
|
@@ -15622,7 +15663,7 @@ class StandardController {
|
|
|
15622
15663
|
return result;
|
|
15623
15664
|
})
|
|
15624
15665
|
.catch((e) => {
|
|
15625
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Popup, null, e);
|
|
15666
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, exports.InteractionType.Popup, null, e);
|
|
15626
15667
|
atPopupMeasurement.end({
|
|
15627
15668
|
success: false,
|
|
15628
15669
|
}, e, request.account);
|
|
@@ -15682,7 +15723,7 @@ class StandardController {
|
|
|
15682
15723
|
document.addEventListener("visibilitychange", this.trackPageVisibilityWithMeasurement);
|
|
15683
15724
|
const loggedInAccounts = this.getAllAccounts();
|
|
15684
15725
|
this.logger.verbose("0w1b45", correlationId);
|
|
15685
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, exports.InteractionType.Silent, validRequest);
|
|
15726
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, exports.InteractionType.Silent, validRequest);
|
|
15686
15727
|
let result;
|
|
15687
15728
|
if (this.canUsePlatformBroker(validRequest)) {
|
|
15688
15729
|
result = this.acquireTokenNative(validRequest, ApiId.ssoSilent).catch((e) => {
|
|
@@ -15702,9 +15743,9 @@ class StandardController {
|
|
|
15702
15743
|
return result
|
|
15703
15744
|
.then((response) => {
|
|
15704
15745
|
const isLoggingIn = loggedInAccounts.length < this.getAllAccounts().length;
|
|
15705
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Silent, response);
|
|
15746
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, correlationId, exports.InteractionType.Silent, response);
|
|
15706
15747
|
if (isLoggingIn) {
|
|
15707
|
-
this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, exports.InteractionType.Silent, response.account);
|
|
15748
|
+
this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, correlationId, exports.InteractionType.Silent, response.account);
|
|
15708
15749
|
}
|
|
15709
15750
|
this.ssoSilentMeasurement?.end({
|
|
15710
15751
|
success: true,
|
|
@@ -15715,7 +15756,7 @@ class StandardController {
|
|
|
15715
15756
|
return response;
|
|
15716
15757
|
})
|
|
15717
15758
|
.catch((e) => {
|
|
15718
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Silent, null, e);
|
|
15759
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, exports.InteractionType.Silent, null, e);
|
|
15719
15760
|
this.ssoSilentMeasurement?.end({
|
|
15720
15761
|
success: false,
|
|
15721
15762
|
}, e, request.account);
|
|
@@ -15740,7 +15781,7 @@ class StandardController {
|
|
|
15740
15781
|
this.logger.trace("0ch6ga", correlationId);
|
|
15741
15782
|
const atbcMeasurement = this.performanceClient.startMeasurement(AcquireTokenByCode, correlationId);
|
|
15742
15783
|
preflightCheck(this.initialized, atbcMeasurement);
|
|
15743
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, exports.InteractionType.Silent, request);
|
|
15784
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, exports.InteractionType.Silent, request);
|
|
15744
15785
|
atbcMeasurement.add({ scenarioId: request.scenarioId });
|
|
15745
15786
|
try {
|
|
15746
15787
|
if (request.code && request.nativeAccountId) {
|
|
@@ -15757,7 +15798,7 @@ class StandardController {
|
|
|
15757
15798
|
correlationId,
|
|
15758
15799
|
})
|
|
15759
15800
|
.then((result) => {
|
|
15760
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Silent, result);
|
|
15801
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, correlationId, exports.InteractionType.Silent, result);
|
|
15761
15802
|
this.hybridAuthCodeResponses.delete(hybridAuthCode);
|
|
15762
15803
|
atbcMeasurement.end({
|
|
15763
15804
|
success: true,
|
|
@@ -15769,7 +15810,7 @@ class StandardController {
|
|
|
15769
15810
|
})
|
|
15770
15811
|
.catch((error) => {
|
|
15771
15812
|
this.hybridAuthCodeResponses.delete(hybridAuthCode);
|
|
15772
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Silent, null, error);
|
|
15813
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, exports.InteractionType.Silent, null, error);
|
|
15773
15814
|
atbcMeasurement.end({
|
|
15774
15815
|
success: false,
|
|
15775
15816
|
}, error);
|
|
@@ -15810,7 +15851,7 @@ class StandardController {
|
|
|
15810
15851
|
}
|
|
15811
15852
|
}
|
|
15812
15853
|
catch (e) {
|
|
15813
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Silent, null, e);
|
|
15854
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, exports.InteractionType.Silent, null, e);
|
|
15814
15855
|
atbcMeasurement.end({
|
|
15815
15856
|
success: false,
|
|
15816
15857
|
}, e);
|
|
@@ -16312,7 +16353,7 @@ class StandardController {
|
|
|
16312
16353
|
*/
|
|
16313
16354
|
async acquireTokenSilentAsync(request, account) {
|
|
16314
16355
|
const trackPageVisibility = () => this.trackPageVisibility(request.correlationId);
|
|
16315
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, exports.InteractionType.Silent, request);
|
|
16356
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, request.correlationId, exports.InteractionType.Silent, request);
|
|
16316
16357
|
if (request.correlationId) {
|
|
16317
16358
|
this.performanceClient.incrementFields({ visibilityChangeCount: 0 }, request.correlationId);
|
|
16318
16359
|
}
|
|
@@ -16322,6 +16363,10 @@ class StandardController {
|
|
|
16322
16363
|
const result = this.acquireTokenSilentNoIframe(silentRequest, cacheLookupPolicy).catch(async (refreshTokenError) => {
|
|
16323
16364
|
const shouldTryToResolveSilently = checkIfRefreshTokenErrorCanBeResolvedSilently(refreshTokenError, cacheLookupPolicy);
|
|
16324
16365
|
if (shouldTryToResolveSilently) {
|
|
16366
|
+
const silentRefreshReason = `${refreshTokenError.errorCode}${refreshTokenError.subError
|
|
16367
|
+
? `|${refreshTokenError.subError}`
|
|
16368
|
+
: ""}`;
|
|
16369
|
+
this.performanceClient.addFields({ silentRefreshReason }, request.correlationId);
|
|
16325
16370
|
if (!this.activeIframeRequest) {
|
|
16326
16371
|
let _resolve;
|
|
16327
16372
|
// Always set the active request tracker immediately after checking it to prevent races
|
|
@@ -16380,7 +16425,7 @@ class StandardController {
|
|
|
16380
16425
|
});
|
|
16381
16426
|
return result
|
|
16382
16427
|
.then((response) => {
|
|
16383
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Silent, response);
|
|
16428
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, request.correlationId, exports.InteractionType.Silent, response);
|
|
16384
16429
|
if (request.correlationId) {
|
|
16385
16430
|
this.performanceClient.addFields({
|
|
16386
16431
|
fromCache: response.fromCache,
|
|
@@ -16390,7 +16435,7 @@ class StandardController {
|
|
|
16390
16435
|
return response;
|
|
16391
16436
|
})
|
|
16392
16437
|
.catch((tokenRenewalError) => {
|
|
16393
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Silent, null, tokenRenewalError);
|
|
16438
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, request.correlationId, exports.InteractionType.Silent, null, tokenRenewalError);
|
|
16394
16439
|
throw tokenRenewalError;
|
|
16395
16440
|
})
|
|
16396
16441
|
.finally(() => {
|
|
@@ -16429,7 +16474,7 @@ class StandardController {
|
|
|
16429
16474
|
if (cacheLookupPolicy === CacheLookupPolicy.AccessToken) {
|
|
16430
16475
|
throw cacheError;
|
|
16431
16476
|
}
|
|
16432
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_NETWORK_START, exports.InteractionType.Silent, silentRequest);
|
|
16477
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_NETWORK_START, silentRequest.correlationId, exports.InteractionType.Silent, silentRequest);
|
|
16433
16478
|
return invokeAsync(this.acquireTokenByRefreshToken.bind(this), AcquireTokenByRefreshToken, this.logger, this.performanceClient, silentRequest.correlationId)(silentRequest, cacheLookupPolicy);
|
|
16434
16479
|
});
|
|
16435
16480
|
}
|
|
@@ -16759,19 +16804,36 @@ class NestedAppAuthAdapter {
|
|
|
16759
16804
|
effectiveIdTokenClaims?.oid ||
|
|
16760
16805
|
effectiveIdTokenClaims?.sub ||
|
|
16761
16806
|
"";
|
|
16762
|
-
|
|
16763
|
-
|
|
16764
|
-
|
|
16765
|
-
|
|
16807
|
+
/*
|
|
16808
|
+
* In B2C scenarios tid may not be present, use getTenantIdFromIdTokenClaims
|
|
16809
|
+
* which handles tid, tfp (modern B2C), and acr (legacy B2C) claims
|
|
16810
|
+
*/
|
|
16811
|
+
const tenantId = fromAccount.tenantId ||
|
|
16812
|
+
getTenantIdFromIdTokenClaims(effectiveIdTokenClaims) ||
|
|
16766
16813
|
"";
|
|
16767
|
-
const
|
|
16814
|
+
const homeAccountId = fromAccount.homeAccountId || `${localAccountId}.${tenantId}`;
|
|
16815
|
+
// Validate environment - required field
|
|
16816
|
+
const environment = fromAccount.environment;
|
|
16817
|
+
if (!environment) {
|
|
16818
|
+
throw createClientAuthError(invalidCacheEnvironment);
|
|
16819
|
+
}
|
|
16820
|
+
/*
|
|
16821
|
+
* In B2C scenarios the emails claim is used instead of preferred_username and it is an array.
|
|
16822
|
+
* In most cases it will contain a single email. This field should not be relied upon if a custom
|
|
16823
|
+
* policy is configured to return more than 1 email.
|
|
16824
|
+
*/
|
|
16825
|
+
const preferredUsername = effectiveIdTokenClaims?.preferred_username ||
|
|
16826
|
+
effectiveIdTokenClaims?.upn;
|
|
16827
|
+
const email = effectiveIdTokenClaims?.emails?.[0] || null;
|
|
16828
|
+
const username = fromAccount.username || preferredUsername || email || "";
|
|
16829
|
+
const name = fromAccount.name || effectiveIdTokenClaims?.name || "";
|
|
16768
16830
|
const loginHint = fromAccount.loginHint || effectiveIdTokenClaims?.login_hint;
|
|
16769
16831
|
const tenantProfiles = new Map();
|
|
16770
16832
|
const tenantProfile = buildTenantProfile(homeAccountId, localAccountId, tenantId, effectiveIdTokenClaims);
|
|
16771
16833
|
tenantProfiles.set(tenantId, tenantProfile);
|
|
16772
16834
|
const account = {
|
|
16773
16835
|
homeAccountId,
|
|
16774
|
-
environment
|
|
16836
|
+
environment,
|
|
16775
16837
|
tenantId,
|
|
16776
16838
|
username,
|
|
16777
16839
|
localAccountId,
|
|
@@ -16942,7 +17004,7 @@ class NestedAppAuthController {
|
|
|
16942
17004
|
async acquireTokenInteractive(request) {
|
|
16943
17005
|
const validRequest = this.ensureValidRequest(request);
|
|
16944
17006
|
const correlationId = validRequest.correlationId || createNewGuid();
|
|
16945
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, exports.InteractionType.Popup, validRequest);
|
|
17007
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, exports.InteractionType.Popup, validRequest);
|
|
16946
17008
|
const atPopupMeasurement = this.performanceClient.startMeasurement(AcquireTokenPopup, correlationId);
|
|
16947
17009
|
atPopupMeasurement.add({ nestedAppAuthRequest: true });
|
|
16948
17010
|
try {
|
|
@@ -16966,7 +17028,7 @@ class NestedAppAuthController {
|
|
|
16966
17028
|
environment: result.account.environment,
|
|
16967
17029
|
tenantId: result.account.tenantId,
|
|
16968
17030
|
};
|
|
16969
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Popup, result);
|
|
17031
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, correlationId, exports.InteractionType.Popup, result);
|
|
16970
17032
|
atPopupMeasurement.add({
|
|
16971
17033
|
accessTokenSize: result.accessToken.length,
|
|
16972
17034
|
idTokenSize: result.idToken.length,
|
|
@@ -16981,7 +17043,7 @@ class NestedAppAuthController {
|
|
|
16981
17043
|
const error = e instanceof AuthError
|
|
16982
17044
|
? e
|
|
16983
17045
|
: this.nestedAppAuthAdapter.fromBridgeError(e);
|
|
16984
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Popup, null, e);
|
|
17046
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, exports.InteractionType.Popup, null, e);
|
|
16985
17047
|
atPopupMeasurement.end({
|
|
16986
17048
|
success: false,
|
|
16987
17049
|
}, e, request.account);
|
|
@@ -16996,11 +17058,11 @@ class NestedAppAuthController {
|
|
|
16996
17058
|
async acquireTokenSilentInternal(request) {
|
|
16997
17059
|
const validRequest = this.ensureValidRequest(request);
|
|
16998
17060
|
const correlationId = validRequest.correlationId || createNewGuid();
|
|
16999
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, exports.InteractionType.Silent, validRequest);
|
|
17061
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, exports.InteractionType.Silent, validRequest);
|
|
17000
17062
|
// Look for tokens in the cache first
|
|
17001
17063
|
const result = await this.acquireTokenFromCache(validRequest);
|
|
17002
17064
|
if (result) {
|
|
17003
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Silent, result);
|
|
17065
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, correlationId, exports.InteractionType.Silent, result);
|
|
17004
17066
|
return result;
|
|
17005
17067
|
}
|
|
17006
17068
|
// proceed with acquiring tokens via the host
|
|
@@ -17031,7 +17093,7 @@ class NestedAppAuthController {
|
|
|
17031
17093
|
environment: result.account.environment,
|
|
17032
17094
|
tenantId: result.account.tenantId,
|
|
17033
17095
|
};
|
|
17034
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Silent, result);
|
|
17096
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, correlationId, exports.InteractionType.Silent, result);
|
|
17035
17097
|
ssoSilentMeasurement?.add({
|
|
17036
17098
|
accessTokenSize: result.accessToken.length,
|
|
17037
17099
|
idTokenSize: result.idToken.length,
|
|
@@ -17046,7 +17108,7 @@ class NestedAppAuthController {
|
|
|
17046
17108
|
const error = e instanceof AuthError
|
|
17047
17109
|
? e
|
|
17048
17110
|
: this.nestedAppAuthAdapter.fromBridgeError(e);
|
|
17049
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Silent, null, e);
|
|
17111
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, exports.InteractionType.Silent, null, e);
|
|
17050
17112
|
ssoSilentMeasurement?.end({
|
|
17051
17113
|
success: false,
|
|
17052
17114
|
}, e, request.account);
|
|
@@ -17089,7 +17151,7 @@ class NestedAppAuthController {
|
|
|
17089
17151
|
return null;
|
|
17090
17152
|
}
|
|
17091
17153
|
if (result) {
|
|
17092
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Silent, result);
|
|
17154
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, correlationId, exports.InteractionType.Silent, result);
|
|
17093
17155
|
atsMeasurement.add({
|
|
17094
17156
|
accessTokenSize: result.accessToken.length,
|
|
17095
17157
|
idTokenSize: result.idToken.length,
|
|
@@ -17100,7 +17162,7 @@ class NestedAppAuthController {
|
|
|
17100
17162
|
return result;
|
|
17101
17163
|
}
|
|
17102
17164
|
this.logger.warning("1yb4fi", correlationId);
|
|
17103
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Silent, null);
|
|
17165
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, exports.InteractionType.Silent, null);
|
|
17104
17166
|
atsMeasurement.end({
|
|
17105
17167
|
success: false,
|
|
17106
17168
|
}, undefined, request.account);
|