@azure/msal-browser 5.6.3 → 5.7.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/README.md +0 -1
- package/dist/app/IPublicClientApplication.mjs +1 -1
- package/dist/app/PublicClientApplication.mjs +1 -1
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs +2 -3
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthProvider.d.ts +1 -1
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +2 -2
- package/dist/cache/AccountManager.mjs +1 -1
- package/dist/cache/AsyncMemoryStorage.mjs +1 -1
- package/dist/cache/BrowserCacheManager.mjs +1 -1
- package/dist/cache/CacheHelpers.mjs +1 -1
- package/dist/cache/CacheKeys.d.ts +1 -0
- package/dist/cache/CacheKeys.d.ts.map +1 -1
- package/dist/cache/CacheKeys.mjs +3 -2
- package/dist/cache/CacheKeys.mjs.map +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.d.ts +7 -0
- package/dist/config/Configuration.d.ts.map +1 -1
- package/dist/config/Configuration.mjs +2 -1
- package/dist/config/Configuration.mjs.map +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +1 -1
- package/dist/controllers/StandardController.d.ts +16 -0
- package/dist/controllers/StandardController.d.ts.map +1 -1
- package/dist/controllers/StandardController.mjs +150 -20
- 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 +2 -3
- package/dist/custom-auth-path/broker/nativeBroker/NativeStatusCodes.mjs.map +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.d.ts +1 -1
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthProvider.mjs +2 -2
- 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.mjs +1 -1
- package/dist/custom-auth-path/cache/CacheHelpers.mjs +1 -1
- package/dist/custom-auth-path/cache/CacheKeys.d.ts +1 -0
- package/dist/custom-auth-path/cache/CacheKeys.d.ts.map +1 -1
- package/dist/custom-auth-path/cache/CacheKeys.mjs +3 -2
- package/dist/custom-auth-path/cache/CacheKeys.mjs.map +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.d.ts +7 -0
- package/dist/custom-auth-path/config/Configuration.d.ts.map +1 -1
- package/dist/custom-auth-path/config/Configuration.mjs +2 -1
- package/dist/custom-auth-path/config/Configuration.mjs.map +1 -1
- package/dist/custom-auth-path/controllers/StandardController.d.ts +16 -0
- package/dist/custom-auth-path/controllers/StandardController.d.ts.map +1 -1
- package/dist/custom-auth-path/controllers/StandardController.mjs +150 -20
- 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.d.ts.map +1 -1
- package/dist/custom-auth-path/error/NativeAuthError.mjs +3 -4
- package/dist/custom-auth-path/error/NativeAuthError.mjs.map +1 -1
- package/dist/custom-auth-path/error/NativeAuthErrorCodes.mjs +1 -1
- package/dist/custom-auth-path/event/EventHandler.mjs +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.d.ts +2 -2
- package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.mjs +32 -19
- package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
- package/dist/custom-auth-path/interaction_client/PopupClient.d.ts.map +1 -1
- package/dist/custom-auth-path/interaction_client/PopupClient.mjs +6 -2
- 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 +6 -2
- 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.d.ts +14 -0
- package/dist/custom-auth-path/interaction_client/SilentIframeClient.d.ts.map +1 -1
- package/dist/custom-auth-path/interaction_client/SilentIframeClient.mjs +45 -3
- package/dist/custom-auth-path/interaction_client/SilentIframeClient.mjs.map +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 +47 -15
- 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/redirect_bridge/index.d.ts.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.d.ts +1 -0
- package/dist/custom-auth-path/telemetry/BrowserPerformanceEvents.d.ts.map +1 -1
- package/dist/custom-auth-path/telemetry/BrowserPerformanceEvents.mjs +3 -2
- package/dist/custom-auth-path/telemetry/BrowserPerformanceEvents.mjs.map +1 -1
- package/dist/custom-auth-path/telemetry/BrowserRootPerformanceEvents.d.ts +6 -0
- package/dist/custom-auth-path/telemetry/BrowserRootPerformanceEvents.d.ts.map +1 -1
- package/dist/custom-auth-path/telemetry/BrowserRootPerformanceEvents.mjs +8 -3
- package/dist/custom-auth-path/telemetry/BrowserRootPerformanceEvents.mjs.map +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.d.ts.map +1 -1
- package/dist/error/NativeAuthError.mjs +3 -4
- package/dist/error/NativeAuthError.mjs.map +1 -1
- package/dist/error/NativeAuthErrorCodes.mjs +1 -1
- package/dist/error/NestedAppAuthError.mjs +1 -1
- package/dist/event/EventHandler.mjs +1 -1
- package/dist/event/EventMessage.mjs +1 -1
- package/dist/event/EventType.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
- package/dist/interaction_client/PlatformAuthInteractionClient.d.ts +2 -2
- package/dist/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs +32 -19
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/PopupClient.d.ts.map +1 -1
- package/dist/interaction_client/PopupClient.mjs +6 -2
- 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 +6 -2
- 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.d.ts +14 -0
- package/dist/interaction_client/SilentIframeClient.d.ts.map +1 -1
- package/dist/interaction_client/SilentIframeClient.mjs +45 -3
- package/dist/interaction_client/SilentIframeClient.mjs.map +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 +47 -15
- package/dist/naa/BridgeError.mjs +1 -1
- package/dist/naa/BridgeProxy.mjs +1 -1
- package/dist/naa/BridgeStatusCode.mjs +1 -1
- package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
- package/dist/navigation/NavigationClient.mjs +1 -1
- package/dist/network/FetchClient.mjs +1 -1
- package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
- package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
- package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
- package/dist/packageMetadata.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/broker/nativeBroker/PlatformAuthProvider.d.ts +1 -1
- package/dist/redirect-bridge/cache/CacheKeys.d.ts +1 -0
- package/dist/redirect-bridge/cache/CacheKeys.d.ts.map +1 -1
- package/dist/redirect-bridge/cache/CacheKeys.mjs +1 -1
- package/dist/redirect-bridge/config/Configuration.d.ts +7 -0
- package/dist/redirect-bridge/config/Configuration.d.ts.map +1 -1
- package/dist/redirect-bridge/config/Configuration.mjs +1 -1
- package/dist/redirect-bridge/controllers/StandardController.d.ts +16 -0
- 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/error/NativeAuthError.d.ts.map +1 -1
- package/dist/redirect-bridge/interaction_client/PlatformAuthInteractionClient.d.ts +2 -2
- package/dist/redirect-bridge/interaction_client/PlatformAuthInteractionClient.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/interaction_client/SilentIframeClient.d.ts +14 -0
- package/dist/redirect-bridge/interaction_client/SilentIframeClient.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.d.ts.map +1 -1
- package/dist/redirect-bridge/redirect_bridge/index.mjs +11 -7
- package/dist/redirect-bridge/redirect_bridge/index.mjs.map +1 -1
- package/dist/redirect-bridge/telemetry/BrowserPerformanceEvents.d.ts +1 -0
- package/dist/redirect-bridge/telemetry/BrowserPerformanceEvents.d.ts.map +1 -1
- package/dist/redirect-bridge/telemetry/BrowserRootPerformanceEvents.d.ts +6 -0
- package/dist/redirect-bridge/telemetry/BrowserRootPerformanceEvents.d.ts.map +1 -1
- package/dist/redirect-bridge/utils/BrowserConstants.mjs +7 -3
- package/dist/redirect-bridge/utils/BrowserConstants.mjs.map +1 -1
- package/dist/redirect-bridge/utils/BrowserUtils.mjs +1 -1
- package/dist/redirect_bridge/index.d.ts.map +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.d.ts +1 -0
- package/dist/telemetry/BrowserPerformanceEvents.d.ts.map +1 -1
- package/dist/telemetry/BrowserPerformanceEvents.mjs +3 -2
- package/dist/telemetry/BrowserPerformanceEvents.mjs.map +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
- package/dist/telemetry/BrowserRootPerformanceEvents.d.ts +6 -0
- package/dist/telemetry/BrowserRootPerformanceEvents.d.ts.map +1 -1
- package/dist/telemetry/BrowserRootPerformanceEvents.mjs +10 -3
- package/dist/telemetry/BrowserRootPerformanceEvents.mjs.map +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 +47 -15
- package/lib/custom-auth-path/msal-custom-auth.cjs +334 -133
- package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
- package/lib/custom-auth-path/types/broker/nativeBroker/PlatformAuthProvider.d.ts +1 -1
- package/lib/custom-auth-path/types/cache/CacheKeys.d.ts +1 -0
- package/lib/custom-auth-path/types/cache/CacheKeys.d.ts.map +1 -1
- package/lib/custom-auth-path/types/config/Configuration.d.ts +7 -0
- package/lib/custom-auth-path/types/config/Configuration.d.ts.map +1 -1
- package/lib/custom-auth-path/types/controllers/StandardController.d.ts +16 -0
- 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/error/NativeAuthError.d.ts.map +1 -1
- package/lib/custom-auth-path/types/interaction_client/PlatformAuthInteractionClient.d.ts +2 -2
- package/lib/custom-auth-path/types/interaction_client/PlatformAuthInteractionClient.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/interaction_client/SilentIframeClient.d.ts +14 -0
- package/lib/custom-auth-path/types/interaction_client/SilentIframeClient.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/custom-auth-path/types/redirect_bridge/index.d.ts.map +1 -1
- package/lib/custom-auth-path/types/telemetry/BrowserPerformanceEvents.d.ts +1 -0
- package/lib/custom-auth-path/types/telemetry/BrowserPerformanceEvents.d.ts.map +1 -1
- package/lib/custom-auth-path/types/telemetry/BrowserRootPerformanceEvents.d.ts +6 -0
- package/lib/custom-auth-path/types/telemetry/BrowserRootPerformanceEvents.d.ts.map +1 -1
- package/lib/log-strings-mapping.json +47 -15
- package/lib/msal-browser.cjs +343 -138
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +343 -138
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +2 -2
- package/lib/redirect-bridge/msal-redirect-bridge.js +24 -16
- 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/broker/nativeBroker/PlatformAuthProvider.d.ts +1 -1
- package/lib/types/cache/CacheKeys.d.ts +1 -0
- package/lib/types/cache/CacheKeys.d.ts.map +1 -1
- package/lib/types/config/Configuration.d.ts +7 -0
- package/lib/types/config/Configuration.d.ts.map +1 -1
- package/lib/types/controllers/StandardController.d.ts +16 -0
- package/lib/types/controllers/StandardController.d.ts.map +1 -1
- package/lib/types/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/lib/types/error/NativeAuthError.d.ts.map +1 -1
- package/lib/types/interaction_client/PlatformAuthInteractionClient.d.ts +2 -2
- package/lib/types/interaction_client/PlatformAuthInteractionClient.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/interaction_client/SilentIframeClient.d.ts +14 -0
- package/lib/types/interaction_client/SilentIframeClient.d.ts.map +1 -1
- package/lib/types/packageMetadata.d.ts +1 -1
- package/lib/types/protocol/Authorize.d.ts.map +1 -1
- package/lib/types/redirect_bridge/index.d.ts.map +1 -1
- package/lib/types/telemetry/BrowserPerformanceEvents.d.ts +1 -0
- package/lib/types/telemetry/BrowserPerformanceEvents.d.ts.map +1 -1
- package/lib/types/telemetry/BrowserRootPerformanceEvents.d.ts +6 -0
- package/lib/types/telemetry/BrowserRootPerformanceEvents.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/broker/nativeBroker/PlatformAuthProvider.ts +1 -1
- package/src/cache/CacheKeys.ts +1 -0
- package/src/config/Configuration.ts +8 -0
- package/src/controllers/StandardController.ts +233 -35
- package/src/error/NativeAuthError.ts +1 -2
- package/src/interaction_client/PlatformAuthInteractionClient.ts +44 -23
- package/src/interaction_client/PopupClient.ts +10 -0
- package/src/interaction_client/RedirectClient.ts +10 -0
- package/src/interaction_client/SilentIframeClient.ts +123 -20
- package/src/packageMetadata.ts +1 -1
- package/src/protocol/Authorize.ts +8 -0
- package/src/redirect_bridge/index.ts +12 -5
- package/src/telemetry/BrowserPerformanceEvents.ts +3 -0
- package/src/telemetry/BrowserRootPerformanceEvents.ts +7 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopupClient.d.ts","sourceRoot":"","sources":["../../../src/interaction_client/PopupClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,uBAAuB,EACvB,uBAAuB,EAGvB,kBAAkB,EAClB,MAAM,EACN,OAAO,EAMP,SAAS,EACT,6BAA6B,
|
|
1
|
+
{"version":3,"file":"PopupClient.d.ts","sourceRoot":"","sources":["../../../src/interaction_client/PopupClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,uBAAuB,EACvB,uBAAuB,EAGvB,kBAAkB,EAClB,MAAM,EACN,OAAO,EAMP,SAAS,EACT,6BAA6B,EAEhC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEH,yBAAyB,EAC5B,MAAM,gCAAgC,CAAC;AAQxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAG9E,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAK1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAE5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAM3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AAQtF,MAAM,MAAM,WAAW,GAAG;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,SAAS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E,MAAM,GACrB,OAAO,CAAC,oBAAoB,CAAC;IAiFhC;;;;;;;;OAQG;cACa,gBAAgB,CAC5B,YAAY,EAAE,uBAAuB,EACrC,WAAW,EAAE,WAAW,EACxB,gBAAgB,CAAC,EAAE,MAAM,EACzB,qBAAqB,CAAC,EAAE,MAAM,GAC/B,OAAO,CAAC,IAAI,CAAC;IAgLhB;;;OAGG;IACH,mBAAmB,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,GAAG,MAAM;IAkBpE;;;;;;;;;;;;OAYG;IACH,SAAS,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,GAAG,MAAM;IA2ChE;;;;;;OAMG;IACH,cAAc,CACV,WAAW,EAAE,MAAM,EACnB,EAAE,SAAS,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,EAAE,WAAW,GACrE,MAAM,GAAG,IAAI;IA0EhB;;;;OAIG;IACH,iBAAiB,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM;IAMnE;;;;OAIG;IACH,uBAAuB,CAAC,OAAO,EAAE,uBAAuB,GAAG,MAAM;CAIpE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RedirectClient.d.ts","sourceRoot":"","sources":["../../../src/interaction_client/RedirectClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAIH,sBAAsB,EACtB,iBAAiB,EACjB,OAAO,EACP,MAAM,EACN,kBAAkB,EAMlB,0BAA0B,EAC1B,6BAA6B,
|
|
1
|
+
{"version":3,"file":"RedirectClient.d.ts","sourceRoot":"","sources":["../../../src/interaction_client/RedirectClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAIH,sBAAsB,EACtB,iBAAiB,EACjB,OAAO,EACP,MAAM,EACN,kBAAkB,EAMlB,0BAA0B,EAC1B,6BAA6B,EAEhC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEH,yBAAyB,EAC5B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,OAAO,EAAE,6BAA6B,EACtC,YAAY,EAAE,MAAM,EACpB,iBAAiB,EAAE,0BAA0B,EAC7C,OAAO,CAAC,EAAE,4BAA4B,GACvC,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IA+JvC;;;;OAIG;IACH,SAAS,CAAC,mBAAmB,CACzB,oBAAoB,EAAE,MAAM,GAC7B,CAAC,iBAAiB,GAAG,IAAI,EAAE,MAAM,CAAC;IAmErC;;;;OAIG;cACa,cAAc,CAC1B,YAAY,EAAE,iBAAiB,EAC/B,OAAO,EAAE,6BAA6B,EACtC,YAAY,EAAE,MAAM,EACpB,sBAAsB,EAAE,sBAAsB,GAC/C,OAAO,CAAC,oBAAoB,CAAC;IA6EhC;;;;OAIG;IACG,mBAAmB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAqE5D;;;;OAIG;IACG,MAAM,CAAC,aAAa,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IA4J9D;;;OAGG;IACH,SAAS,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM;CAOpE"}
|
|
@@ -28,6 +28,13 @@ export declare class SilentIframeClient extends StandardInteractionClient {
|
|
|
28
28
|
* @param request
|
|
29
29
|
*/
|
|
30
30
|
executeEarFlow(request: CommonAuthorizationUrlRequest): Promise<AuthenticationResult>;
|
|
31
|
+
/**
|
|
32
|
+
* Verifies SSO capability by making an iframe request to /authorize without exchanging the code for tokens.
|
|
33
|
+
* This is useful for verifying SSO capability in the background without the overhead of a full token exchange.
|
|
34
|
+
* @param request - The SSO silent request
|
|
35
|
+
* @returns true if SSO verification was successful with a valid authorization code, false otherwise
|
|
36
|
+
*/
|
|
37
|
+
verifySso(request: SsoSilentRequest): Promise<boolean>;
|
|
31
38
|
/**
|
|
32
39
|
* Currently Unsupported
|
|
33
40
|
*/
|
|
@@ -39,5 +46,12 @@ export declare class SilentIframeClient extends StandardInteractionClient {
|
|
|
39
46
|
* @param userRequestScopes
|
|
40
47
|
*/
|
|
41
48
|
protected silentTokenHelper(authClient: AuthorizationCodeClient, request: CommonAuthorizationUrlRequest): Promise<AuthenticationResult>;
|
|
49
|
+
/**
|
|
50
|
+
* Shared helper that generates PKCE codes, builds the /authorize URL,
|
|
51
|
+
* loads it in a hidden iframe, waits for the redirect-bridge response,
|
|
52
|
+
* and returns the deserialized server parameters along with the PKCE codes
|
|
53
|
+
* and the request that was sent.
|
|
54
|
+
*/
|
|
55
|
+
private silentAuthorizeHelper;
|
|
42
56
|
}
|
|
43
57
|
//# sourceMappingURL=SilentIframeClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SilentIframeClient.d.ts","sourceRoot":"","sources":["../../../src/interaction_client/SilentIframeClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,OAAO,EACP,MAAM,EAEN,uBAAuB,EAEvB,kBAAkB,EAKlB,6BAA6B,
|
|
1
|
+
{"version":3,"file":"SilentIframeClient.d.ts","sourceRoot":"","sources":["../../../src/interaction_client/SilentIframeClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,OAAO,EACP,MAAM,EAEN,uBAAuB,EAEvB,kBAAkB,EAKlB,6BAA6B,EAGhC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEH,yBAAyB,EAC5B,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAKvE,OAAO,EAEH,KAAK,EAER,MAAM,8BAA8B,CAAC;AAOtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAO3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BAAoB,EAC5B,cAAc,EAAE,mBAAmB,EACnC,aAAa,EAAE,mBAAmB,EAClC,YAAY,EAAE,YAAY,EAC1B,MAAM,EAAE,MAAM,EACd,iBAAiB,EAAE,kBAAkB,EACrC,oBAAoB,CAAC,EAAE,oBAAoB,GAC5C,OAAO,CAAC,oBAAoB,CAAC,CAyC/B;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,kBAAkB,CACpC,OAAO,EAAE,6BAA6B,EACtC,QAAQ,EAAE,iBAAiB,EAC3B,YAAY,EAAE,MAAM,EACpB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,oBAAoB,EAC5B,UAAU,EAAE,uBAAuB,EACnC,cAAc,EAAE,mBAAmB,EACnC,aAAa,EAAE,mBAAmB,EAClC,YAAY,EAAE,YAAY,EAC1B,MAAM,EAAE,MAAM,EACd,iBAAiB,EAAE,kBAAkB,EACrC,oBAAoB,CAAC,EAAE,oBAAoB,GAC5C,OAAO,CAAC,oBAAoB,CAAC,CAsD/B;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,iBAAiB,CACnC,OAAO,EAAE,6BAA6B,EACtC,QAAQ,EAAE,iBAAiB,EAC3B,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,oBAAoB,EAC5B,SAAS,EAAE,SAAS,EACpB,cAAc,EAAE,mBAAmB,EACnC,aAAa,EAAE,mBAAmB,EAClC,YAAY,EAAE,YAAY,EAC1B,MAAM,EAAE,MAAM,EACd,iBAAiB,EAAE,kBAAkB,EACrC,oBAAoB,CAAC,EAAE,oBAAoB,GAC5C,OAAO,CAAC,oBAAoB,CAAC,CAgG/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/redirect_bridge/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/redirect_bridge/index.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAGrE;;;;;;;;;;;;GAYG;AACH,wBAAsB,4BAA4B,CAC9C,gBAAgB,CAAC,EAAE,gBAAgB,GACpC,OAAO,CAAC,IAAI,CAAC,CA8Hf"}
|
|
@@ -54,6 +54,7 @@ export declare const FetchAccountIdWithNativeBroker = "fetchAccountIdWithNativeB
|
|
|
54
54
|
* Used to acquire a token from Native component when native brokering is enabled.
|
|
55
55
|
*/
|
|
56
56
|
export declare const NativeInteractionClientAcquireToken = "nativeInteractionClientAcquireToken";
|
|
57
|
+
export declare const NativeInteractionClientAcquireTokenRedirect = "nativeInteractionClientAcquireToken";
|
|
57
58
|
/**
|
|
58
59
|
* Time spent creating default headers for requests to token endpoint
|
|
59
60
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BrowserPerformanceEvents.d.ts","sourceRoot":"","sources":["../../../src/telemetry/BrowserPerformanceEvents.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAE7D;;;GAGG;AACH,eAAO,MAAM,0BAA0B,+BAA+B,CAAC;AAEvE;;;GAGG;AACH,eAAO,MAAM,uBAAuB,4BAA4B,CAAC;AAEjE;;;GAGG;AACH,eAAO,MAAM,gCAAgC,qCACP,CAAC;AAEvC;;;GAGG;AACH,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AAErD;;;GAGG;AACH,eAAO,MAAM,6BAA6B,kCAAkC,CAAC;AAE7E;;;GAGG;AACH,eAAO,MAAM,8BAA8B,mCAAmC,CAAC;AAE/E,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAE7D;;;GAGG;AACH,eAAO,MAAM,+BAA+B,oCACP,CAAC;AAEtC;;;GAGG;AACH,eAAO,MAAM,+CAA+C,oDACP,CAAC;AAEtD;;;GAGG;AACH,eAAO,MAAM,8BAA8B,mCAAmC,CAAC;AAE/E;;;GAGG;AACH,eAAO,MAAM,mCAAmC,wCACP,CAAC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C;AACzC,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,yBAAyB,8BAA8B,CAAC"}
|
|
@@ -33,4 +33,10 @@ export declare const SsoSilent = "ssoSilent";
|
|
|
33
33
|
export declare const InitializeClientApplication = "initializeClientApplication";
|
|
34
34
|
export declare const LocalStorageUpdated = "localStorageUpdated";
|
|
35
35
|
export declare const LoadExternalTokens = "loadExternalTokens";
|
|
36
|
+
/**
|
|
37
|
+
* SSO capability verification call (msal-browser).
|
|
38
|
+
* Fire-and-forget SSO verification call made after interactive authentication completes.
|
|
39
|
+
*/
|
|
40
|
+
export declare const SsoCapable = "ssoCapable";
|
|
41
|
+
export declare const WaitForBridgeLateResponse = "waitForBridgeLateResponse";
|
|
36
42
|
//# sourceMappingURL=BrowserRootPerformanceEvents.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BrowserRootPerformanceEvents.d.ts","sourceRoot":"","sources":["../../../src/telemetry/BrowserRootPerformanceEvents.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD;;;GAGG;AACH,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AACrD;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,4BAA4B,CAAC;AACjE;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAC3D;;;GAGG;AACH,eAAO,MAAM,SAAS,cAAc,CAAC;AAErC,eAAO,MAAM,2BAA2B,gCAAgC,CAAC;AAEzE,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AAEzD,eAAO,MAAM,kBAAkB,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"BrowserRootPerformanceEvents.d.ts","sourceRoot":"","sources":["../../../src/telemetry/BrowserRootPerformanceEvents.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD;;;GAGG;AACH,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AACrD;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,4BAA4B,CAAC;AACjE;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAC3D;;;GAGG;AACH,eAAO,MAAM,SAAS,cAAc,CAAC;AAErC,eAAO,MAAM,2BAA2B,gCAAgC,CAAC;AAEzE,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AAEzD,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD;;;GAGG;AACH,eAAO,MAAM,UAAU,eAAe,CAAC;AAEvC,eAAO,MAAM,yBAAyB,8BAA8B,CAAC"}
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "https://github.com/AzureAD/microsoft-authentication-library-for-js.git"
|
|
12
12
|
},
|
|
13
|
-
"version": "5.
|
|
13
|
+
"version": "5.7.0",
|
|
14
14
|
"description": "Microsoft Authentication Library for js",
|
|
15
15
|
"keywords": [
|
|
16
16
|
"implicit",
|
|
@@ -128,6 +128,6 @@
|
|
|
128
128
|
"typescript": "^4.9.5"
|
|
129
129
|
},
|
|
130
130
|
"dependencies": {
|
|
131
|
-
"@azure/msal-common": "16.
|
|
131
|
+
"@azure/msal-common": "16.5.0"
|
|
132
132
|
}
|
|
133
133
|
}
|
|
@@ -113,7 +113,7 @@ export function isDomEnabledForPlatformAuth(): boolean {
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
/**
|
|
116
|
-
* Returns boolean indicating whether or not the request should attempt to use
|
|
116
|
+
* Returns boolean indicating whether or not the request should attempt to use platform broker
|
|
117
117
|
* @param logger
|
|
118
118
|
* @param config
|
|
119
119
|
* @param correlationId
|
package/src/cache/CacheKeys.ts
CHANGED
|
@@ -16,6 +16,7 @@ export const PLATFORM_AUTH_DOM_SUPPORT = `${PREFIX}.${BROWSER_PREFIX}.platform.a
|
|
|
16
16
|
export const VERSION_CACHE_KEY = `${PREFIX}.version`;
|
|
17
17
|
export const ACCOUNT_KEYS = "account.keys";
|
|
18
18
|
export const TOKEN_KEYS = "token.keys";
|
|
19
|
+
export const SSO_CAPABLE = `${PREFIX}.${BROWSER_PREFIX}.sso.capable`;
|
|
19
20
|
|
|
20
21
|
export function getAccountKeysCacheKey(
|
|
21
22
|
schema: number = ACCOUNT_SCHEMA_VERSION
|
|
@@ -90,6 +90,13 @@ export type BrowserAuthOptions = {
|
|
|
90
90
|
* Flag on whether a resource parameter is required for token requests. Used for MCP flows.
|
|
91
91
|
*/
|
|
92
92
|
isMcp?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* If set to true, MSAL will make a background SSO verification call after successful interactive authentication.
|
|
95
|
+
* This adds an extra network call, so it is recommended to leave this set to false unless your application has a specific need for it.
|
|
96
|
+
* Additional network calls may occur after interactive authentication flows such as acquireTokenPopup and handleRedirectPromise.
|
|
97
|
+
* This is a boolean flag and defaults to false if not specified.
|
|
98
|
+
*/
|
|
99
|
+
verifySSO?: boolean;
|
|
93
100
|
};
|
|
94
101
|
|
|
95
102
|
/** @internal */
|
|
@@ -265,6 +272,7 @@ export function buildConfiguration(
|
|
|
265
272
|
},
|
|
266
273
|
instanceAware: false,
|
|
267
274
|
isMcp: false,
|
|
275
|
+
verifySSO: false,
|
|
268
276
|
};
|
|
269
277
|
|
|
270
278
|
// Default cache options for browser
|
|
@@ -36,6 +36,7 @@ import {
|
|
|
36
36
|
BrowserCacheManager,
|
|
37
37
|
DEFAULT_BROWSER_CACHE_MANAGER,
|
|
38
38
|
} from "../cache/BrowserCacheManager.js";
|
|
39
|
+
import * as CacheKeys from "../cache/CacheKeys.js";
|
|
39
40
|
import * as AccountManager from "../cache/AccountManager.js";
|
|
40
41
|
import { BrowserConfiguration, CacheOptions } from "../config/Configuration.js";
|
|
41
42
|
import {
|
|
@@ -466,14 +467,12 @@ export class StandardController implements IController {
|
|
|
466
467
|
const loggedInAccounts = this.getAllAccounts();
|
|
467
468
|
const platformBrokerRequest: PlatformAuthRequest | null =
|
|
468
469
|
this.browserStorage.getCachedNativeRequest();
|
|
469
|
-
const useNative =
|
|
470
|
-
platformBrokerRequest &&
|
|
471
|
-
this.platformAuthProvider &&
|
|
472
|
-
!options?.hash;
|
|
470
|
+
const useNative = platformBrokerRequest && !options?.hash;
|
|
473
471
|
|
|
474
472
|
let rootMeasurement: InProgressPerformanceEvent;
|
|
475
473
|
|
|
476
474
|
let redirectResponse: Promise<AuthenticationResult | null>;
|
|
475
|
+
let cachedRedirectRequest: SsoSilentRequest | undefined;
|
|
477
476
|
try {
|
|
478
477
|
if (useNative && this.platformAuthProvider) {
|
|
479
478
|
const correlationId =
|
|
@@ -491,6 +490,9 @@ export class StandardController implements IController {
|
|
|
491
490
|
"handleRedirectPromise - acquiring token from native platform",
|
|
492
491
|
correlationId
|
|
493
492
|
);
|
|
493
|
+
rootMeasurement.add({
|
|
494
|
+
isPlatformBrokerRequest: true,
|
|
495
|
+
});
|
|
494
496
|
const nativeClient = new PlatformAuthInteractionClient(
|
|
495
497
|
this.config,
|
|
496
498
|
this.browserStorage,
|
|
@@ -512,10 +514,11 @@ export class StandardController implements IController {
|
|
|
512
514
|
this.logger,
|
|
513
515
|
this.performanceClient,
|
|
514
516
|
rootMeasurement.event.correlationId
|
|
515
|
-
)(
|
|
517
|
+
)();
|
|
516
518
|
} else {
|
|
517
519
|
const [standardRequest, codeVerifier] =
|
|
518
520
|
this.browserStorage.getCachedRequest("");
|
|
521
|
+
cachedRedirectRequest = standardRequest;
|
|
519
522
|
const correlationId = standardRequest.correlationId;
|
|
520
523
|
this.eventHandler.emitEvent(
|
|
521
524
|
EventType.HANDLE_REDIRECT_START,
|
|
@@ -581,6 +584,12 @@ export class StandardController implements IController {
|
|
|
581
584
|
undefined,
|
|
582
585
|
result.account
|
|
583
586
|
);
|
|
587
|
+
|
|
588
|
+
// Fire-and-forget SSO capability verification in background
|
|
589
|
+
this.verifySsoCapability(
|
|
590
|
+
cachedRedirectRequest,
|
|
591
|
+
InteractionType.Redirect
|
|
592
|
+
);
|
|
584
593
|
} else {
|
|
585
594
|
/*
|
|
586
595
|
* Instrument an event only if an error code is set. Otherwise, discard it when the redirect response
|
|
@@ -705,28 +714,36 @@ export class StandardController implements IController {
|
|
|
705
714
|
this.nativeInternalStorage,
|
|
706
715
|
correlationId
|
|
707
716
|
);
|
|
708
|
-
result =
|
|
709
|
-
.acquireTokenRedirect(
|
|
710
|
-
.
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
return redirectClient.acquireToken(request);
|
|
719
|
-
} else if (e instanceof InteractionRequiredAuthError) {
|
|
720
|
-
this.logger.verbose(
|
|
721
|
-
"acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow",
|
|
722
|
-
correlationId
|
|
723
|
-
);
|
|
724
|
-
const redirectClient =
|
|
725
|
-
this.createRedirectClient(correlationId);
|
|
726
|
-
return redirectClient.acquireToken(request);
|
|
727
|
-
}
|
|
728
|
-
throw e;
|
|
717
|
+
result = invokeAsync(
|
|
718
|
+
nativeClient.acquireTokenRedirect.bind(nativeClient),
|
|
719
|
+
BrowserPerformanceEvents.NativeInteractionClientAcquireTokenRedirect,
|
|
720
|
+
this.logger,
|
|
721
|
+
this.performanceClient,
|
|
722
|
+
correlationId
|
|
723
|
+
)(request, atrMeasurement).catch((e: AuthError) => {
|
|
724
|
+
atrMeasurement.add({
|
|
725
|
+
brokerErrorName: e.name,
|
|
726
|
+
brokerErrorCode: e.errorCode,
|
|
729
727
|
});
|
|
728
|
+
if (
|
|
729
|
+
e instanceof NativeAuthError &&
|
|
730
|
+
isFatalNativeAuthError(e)
|
|
731
|
+
) {
|
|
732
|
+
this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt platform broker calls
|
|
733
|
+
const redirectClient =
|
|
734
|
+
this.createRedirectClient(correlationId);
|
|
735
|
+
return redirectClient.acquireToken(request);
|
|
736
|
+
} else if (e instanceof InteractionRequiredAuthError) {
|
|
737
|
+
this.logger.verbose(
|
|
738
|
+
"acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow",
|
|
739
|
+
correlationId
|
|
740
|
+
);
|
|
741
|
+
const redirectClient =
|
|
742
|
+
this.createRedirectClient(correlationId);
|
|
743
|
+
return redirectClient.acquireToken(request);
|
|
744
|
+
}
|
|
745
|
+
throw e;
|
|
746
|
+
});
|
|
730
747
|
} else {
|
|
731
748
|
const redirectClient = this.createRedirectClient(correlationId);
|
|
732
749
|
result = redirectClient.acquireToken(request);
|
|
@@ -815,6 +832,9 @@ export class StandardController implements IController {
|
|
|
815
832
|
const pkce = this.getPreGeneratedPkceCodes(correlationId);
|
|
816
833
|
|
|
817
834
|
if (this.canUsePlatformBroker(request)) {
|
|
835
|
+
atPopupMeasurement.add({
|
|
836
|
+
isPlatformBrokerRequest: true,
|
|
837
|
+
});
|
|
818
838
|
result = this.acquireTokenNative(
|
|
819
839
|
{
|
|
820
840
|
...request,
|
|
@@ -834,11 +854,15 @@ export class StandardController implements IController {
|
|
|
834
854
|
return response;
|
|
835
855
|
})
|
|
836
856
|
.catch((e: AuthError) => {
|
|
857
|
+
atPopupMeasurement.add({
|
|
858
|
+
brokerErrorName: e.name,
|
|
859
|
+
brokerErrorCode: e.errorCode,
|
|
860
|
+
});
|
|
837
861
|
if (
|
|
838
862
|
e instanceof NativeAuthError &&
|
|
839
863
|
isFatalNativeAuthError(e)
|
|
840
864
|
) {
|
|
841
|
-
this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt
|
|
865
|
+
this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt platform broker calls
|
|
842
866
|
const popupClient =
|
|
843
867
|
this.createPopupClient(correlationId);
|
|
844
868
|
return popupClient.acquireToken(request, pkce);
|
|
@@ -889,6 +913,10 @@ export class StandardController implements IController {
|
|
|
889
913
|
undefined,
|
|
890
914
|
result.account
|
|
891
915
|
);
|
|
916
|
+
|
|
917
|
+
// SSO capability verification in background
|
|
918
|
+
this.verifySsoCapability(request, InteractionType.Popup);
|
|
919
|
+
|
|
892
920
|
return result;
|
|
893
921
|
})
|
|
894
922
|
.catch((e: Error) => {
|
|
@@ -964,6 +992,145 @@ export class StandardController implements IController {
|
|
|
964
992
|
window.removeEventListener("online", listener);
|
|
965
993
|
window.removeEventListener("offline", listener);
|
|
966
994
|
}
|
|
995
|
+
|
|
996
|
+
/**
|
|
997
|
+
* Reads the cached ssoCapable value from localStorage.
|
|
998
|
+
* @returns The cached ssoCapable boolean value, or undefined if not cached or expired.
|
|
999
|
+
*/
|
|
1000
|
+
private getCachedSsoCapable(): boolean | undefined {
|
|
1001
|
+
try {
|
|
1002
|
+
const cachedValue = window.localStorage.getItem(
|
|
1003
|
+
CacheKeys.SSO_CAPABLE
|
|
1004
|
+
);
|
|
1005
|
+
if (cachedValue) {
|
|
1006
|
+
const parsed = JSON.parse(cachedValue);
|
|
1007
|
+
if (
|
|
1008
|
+
parsed &&
|
|
1009
|
+
typeof parsed.ssoCapable === "boolean" &&
|
|
1010
|
+
parsed.expiresOn &&
|
|
1011
|
+
Date.now() < parsed.expiresOn
|
|
1012
|
+
) {
|
|
1013
|
+
return parsed.ssoCapable;
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
} catch {
|
|
1017
|
+
// If parsing fails, return undefined
|
|
1018
|
+
}
|
|
1019
|
+
return undefined;
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
/**
|
|
1023
|
+
* SSO capability verification in the background.
|
|
1024
|
+
* This method makes an iframe request to /authorize to verify SSO capability without calling /token.
|
|
1025
|
+
* This method does not block the caller and tracks telemetry for success/failure.
|
|
1026
|
+
* This method only executes if verifySSO is set to true in the auth configuration.
|
|
1027
|
+
* The result is cached in localStorage with a 24-hour TTL; the SSO verification call
|
|
1028
|
+
* is only attempted when the cached value is absent or expired.
|
|
1029
|
+
* @param request - The original request used for the authentication flow
|
|
1030
|
+
* @param interactionType - The interactionType of the AT operation for logging purposes
|
|
1031
|
+
*/
|
|
1032
|
+
private verifySsoCapability(
|
|
1033
|
+
request: SsoSilentRequest | undefined,
|
|
1034
|
+
interactionType: InteractionType
|
|
1035
|
+
): void {
|
|
1036
|
+
// Check if SSO capability verification is enabled
|
|
1037
|
+
if (!this.config.auth.verifySSO) {
|
|
1038
|
+
return;
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
// Check TTL: derive ssoCapable state from localStorage and skip if not expired
|
|
1042
|
+
const ssoCacheKey = CacheKeys.SSO_CAPABLE;
|
|
1043
|
+
const SSO_CAPABLE_TTL_MS = 24 * 60 * 60 * 1000; // 24 hours
|
|
1044
|
+
const cachedSsoCapable = this.getCachedSsoCapable();
|
|
1045
|
+
if (cachedSsoCapable !== undefined) {
|
|
1046
|
+
this.logger.verbose(
|
|
1047
|
+
`SSO capability verification skipped - cached value has not expired (interactionType: '${interactionType}')`,
|
|
1048
|
+
""
|
|
1049
|
+
);
|
|
1050
|
+
return;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
const correlationId = createNewGuid();
|
|
1054
|
+
const ssoCapableMeasurement = this.performanceClient.startMeasurement(
|
|
1055
|
+
BrowserRootPerformanceEvents.SsoCapable,
|
|
1056
|
+
correlationId
|
|
1057
|
+
);
|
|
1058
|
+
ssoCapableMeasurement.add({
|
|
1059
|
+
"ext.interactionType": interactionType,
|
|
1060
|
+
});
|
|
1061
|
+
|
|
1062
|
+
this.logger.verbose(
|
|
1063
|
+
`SSO capability verification initiated after '${interactionType}'`,
|
|
1064
|
+
correlationId
|
|
1065
|
+
);
|
|
1066
|
+
|
|
1067
|
+
/*
|
|
1068
|
+
* Use setTimeout to ensure this runs in a separate macrotask after the current call stack completes
|
|
1069
|
+
* This ensures the result is returned to the caller before the SSO verification starts and doesn't affect performance
|
|
1070
|
+
*/
|
|
1071
|
+
setTimeout(() => {
|
|
1072
|
+
const ssoVerificationRequest: SsoSilentRequest = {
|
|
1073
|
+
...request,
|
|
1074
|
+
correlationId: correlationId,
|
|
1075
|
+
};
|
|
1076
|
+
|
|
1077
|
+
const silentIframeClient =
|
|
1078
|
+
this.createSilentIframeClient(correlationId);
|
|
1079
|
+
silentIframeClient
|
|
1080
|
+
.verifySso(ssoVerificationRequest)
|
|
1081
|
+
.then((result: boolean) => {
|
|
1082
|
+
this.logger.verbose(
|
|
1083
|
+
`SSO capability verification completed after '${interactionType}', result: '${result}'`,
|
|
1084
|
+
correlationId
|
|
1085
|
+
);
|
|
1086
|
+
|
|
1087
|
+
// TBD to add profileTelemetry later in localStorage with 24h TTL
|
|
1088
|
+
try {
|
|
1089
|
+
const cacheEntry = JSON.stringify({
|
|
1090
|
+
ssoCapable: result,
|
|
1091
|
+
expiresOn: Date.now() + SSO_CAPABLE_TTL_MS,
|
|
1092
|
+
});
|
|
1093
|
+
window.localStorage.setItem(ssoCacheKey, cacheEntry);
|
|
1094
|
+
} catch {
|
|
1095
|
+
this.logger.warning(
|
|
1096
|
+
`Failed to cache SSO capability verification result (interactionType: '${interactionType}')`,
|
|
1097
|
+
correlationId
|
|
1098
|
+
);
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
ssoCapableMeasurement.end(
|
|
1102
|
+
{
|
|
1103
|
+
fromCache: false,
|
|
1104
|
+
success: result,
|
|
1105
|
+
},
|
|
1106
|
+
undefined
|
|
1107
|
+
);
|
|
1108
|
+
})
|
|
1109
|
+
.catch((error: Error) => {
|
|
1110
|
+
this.logger.warning(
|
|
1111
|
+
`SSO capability verification failed after '${interactionType}': '${error.message}'`,
|
|
1112
|
+
correlationId
|
|
1113
|
+
);
|
|
1114
|
+
// reset the cache
|
|
1115
|
+
try {
|
|
1116
|
+
window.localStorage.removeItem(ssoCacheKey);
|
|
1117
|
+
} catch {
|
|
1118
|
+
this.logger.warning(
|
|
1119
|
+
`Failed to reset cached SSO capability verification result (interactionType: '${interactionType}')`,
|
|
1120
|
+
correlationId
|
|
1121
|
+
);
|
|
1122
|
+
}
|
|
1123
|
+
ssoCapableMeasurement.end(
|
|
1124
|
+
{
|
|
1125
|
+
fromCache: false,
|
|
1126
|
+
success: false,
|
|
1127
|
+
},
|
|
1128
|
+
error
|
|
1129
|
+
);
|
|
1130
|
+
});
|
|
1131
|
+
}, 0);
|
|
1132
|
+
}
|
|
1133
|
+
|
|
967
1134
|
// #endregion
|
|
968
1135
|
|
|
969
1136
|
// #region Silent Flow
|
|
@@ -987,8 +1154,6 @@ export class StandardController implements IController {
|
|
|
987
1154
|
const correlationId = this.getRequestCorrelationId(request);
|
|
988
1155
|
const validRequest = {
|
|
989
1156
|
...request,
|
|
990
|
-
// will be PromptValue.NONE or PromptValue.NO_SESSION
|
|
991
|
-
prompt: request.prompt,
|
|
992
1157
|
correlationId: correlationId,
|
|
993
1158
|
};
|
|
994
1159
|
this.ssoSilentMeasurement = this.performanceClient.startMeasurement(
|
|
@@ -997,6 +1162,7 @@ export class StandardController implements IController {
|
|
|
997
1162
|
);
|
|
998
1163
|
this.ssoSilentMeasurement?.add({
|
|
999
1164
|
scenarioId: request.scenarioId,
|
|
1165
|
+
ssoCapable: this.getCachedSsoCapable(),
|
|
1000
1166
|
});
|
|
1001
1167
|
preflightCheck(
|
|
1002
1168
|
this.initialized,
|
|
@@ -1023,13 +1189,20 @@ export class StandardController implements IController {
|
|
|
1023
1189
|
let result: Promise<AuthenticationResult>;
|
|
1024
1190
|
|
|
1025
1191
|
if (this.canUsePlatformBroker(validRequest)) {
|
|
1192
|
+
this.ssoSilentMeasurement?.add({
|
|
1193
|
+
isPlatformBrokerRequest: true,
|
|
1194
|
+
});
|
|
1026
1195
|
result = this.acquireTokenNative(
|
|
1027
1196
|
validRequest,
|
|
1028
1197
|
ApiId.ssoSilent
|
|
1029
1198
|
).catch((e: AuthError) => {
|
|
1199
|
+
this.ssoSilentMeasurement?.add({
|
|
1200
|
+
brokerErrorName: e.name,
|
|
1201
|
+
brokerErrorCode: e.errorCode,
|
|
1202
|
+
});
|
|
1030
1203
|
// If native token acquisition fails for availability reasons fallback to standard flow
|
|
1031
1204
|
if (e instanceof NativeAuthError && isFatalNativeAuthError(e)) {
|
|
1032
|
-
this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt
|
|
1205
|
+
this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt platform broker calls
|
|
1033
1206
|
const silentIframeClient = this.createSilentIframeClient(
|
|
1034
1207
|
validRequest.correlationId
|
|
1035
1208
|
);
|
|
@@ -1155,7 +1328,6 @@ export class StandardController implements IController {
|
|
|
1155
1328
|
atbcMeasurement.end(
|
|
1156
1329
|
{
|
|
1157
1330
|
success: true,
|
|
1158
|
-
isNativeBroker: result.fromPlatformBroker,
|
|
1159
1331
|
accessTokenSize: result.accessToken.length,
|
|
1160
1332
|
idTokenSize: result.idToken.length,
|
|
1161
1333
|
},
|
|
@@ -1194,6 +1366,9 @@ export class StandardController implements IController {
|
|
|
1194
1366
|
if (
|
|
1195
1367
|
this.canUsePlatformBroker(request, request.nativeAccountId)
|
|
1196
1368
|
) {
|
|
1369
|
+
atbcMeasurement.add({
|
|
1370
|
+
isPlatformBrokerRequest: true,
|
|
1371
|
+
});
|
|
1197
1372
|
const result = await this.acquireTokenNative(
|
|
1198
1373
|
{
|
|
1199
1374
|
...request,
|
|
@@ -1202,6 +1377,10 @@ export class StandardController implements IController {
|
|
|
1202
1377
|
ApiId.acquireTokenByCode,
|
|
1203
1378
|
request.nativeAccountId
|
|
1204
1379
|
).catch((e: AuthError) => {
|
|
1380
|
+
atbcMeasurement.add({
|
|
1381
|
+
brokerErrorName: e.name,
|
|
1382
|
+
brokerErrorCode: e.errorCode,
|
|
1383
|
+
});
|
|
1205
1384
|
// If native token acquisition fails for availability reasons fallback to standard flow
|
|
1206
1385
|
if (
|
|
1207
1386
|
e instanceof NativeAuthError &&
|
|
@@ -1275,7 +1454,6 @@ export class StandardController implements IController {
|
|
|
1275
1454
|
this.acquireTokenByCodeAsyncMeasurement?.end({
|
|
1276
1455
|
success: true,
|
|
1277
1456
|
fromCache: response.fromCache,
|
|
1278
|
-
isNativeBroker: response.fromPlatformBroker,
|
|
1279
1457
|
});
|
|
1280
1458
|
return response;
|
|
1281
1459
|
})
|
|
@@ -1573,7 +1751,13 @@ export class StandardController implements IController {
|
|
|
1573
1751
|
correlationId
|
|
1574
1752
|
);
|
|
1575
1753
|
|
|
1576
|
-
return
|
|
1754
|
+
return invokeAsync(
|
|
1755
|
+
nativeClient.acquireToken.bind(nativeClient),
|
|
1756
|
+
BrowserPerformanceEvents.NativeInteractionClientAcquireToken,
|
|
1757
|
+
this.logger,
|
|
1758
|
+
this.performanceClient,
|
|
1759
|
+
correlationId
|
|
1760
|
+
)(request, cacheLookupPolicy);
|
|
1577
1761
|
}
|
|
1578
1762
|
|
|
1579
1763
|
/**
|
|
@@ -1604,7 +1788,7 @@ export class StandardController implements IController {
|
|
|
1604
1788
|
)
|
|
1605
1789
|
) {
|
|
1606
1790
|
this.logger.trace(
|
|
1607
|
-
"canUsePlatformBroker:
|
|
1791
|
+
"canUsePlatformBroker: isPlatformAuthAllowed returned false, returning false",
|
|
1608
1792
|
correlationId
|
|
1609
1793
|
);
|
|
1610
1794
|
return false;
|
|
@@ -1947,6 +2131,7 @@ export class StandardController implements IController {
|
|
|
1947
2131
|
atsMeasurement.add({
|
|
1948
2132
|
cacheLookupPolicy: request.cacheLookupPolicy,
|
|
1949
2133
|
scenarioId: request.scenarioId,
|
|
2134
|
+
ssoCapable: this.getCachedSsoCapable(),
|
|
1950
2135
|
});
|
|
1951
2136
|
|
|
1952
2137
|
preflightCheck(this.initialized, atsMeasurement, this.config, request);
|
|
@@ -1963,7 +2148,6 @@ export class StandardController implements IController {
|
|
|
1963
2148
|
{
|
|
1964
2149
|
success: true,
|
|
1965
2150
|
fromCache: result.fromCache,
|
|
1966
|
-
isNativeBroker: result.fromPlatformBroker,
|
|
1967
2151
|
accessTokenSize: result.accessToken.length,
|
|
1968
2152
|
idTokenSize: result.idToken.length,
|
|
1969
2153
|
},
|
|
@@ -2261,12 +2445,26 @@ export class StandardController implements IController {
|
|
|
2261
2445
|
"acquireTokenSilent - attempting to acquire token from native platform",
|
|
2262
2446
|
silentRequest.correlationId
|
|
2263
2447
|
);
|
|
2448
|
+
|
|
2449
|
+
this.performanceClient.addFields(
|
|
2450
|
+
{ isPlatformBrokerRequest: true },
|
|
2451
|
+
silentRequest.correlationId
|
|
2452
|
+
);
|
|
2453
|
+
|
|
2264
2454
|
return this.acquireTokenNative(
|
|
2265
2455
|
silentRequest,
|
|
2266
2456
|
ApiId.acquireTokenSilent_silentFlow,
|
|
2267
2457
|
silentRequest.account.nativeAccountId,
|
|
2268
2458
|
cacheLookupPolicy
|
|
2269
2459
|
).catch(async (e: AuthError) => {
|
|
2460
|
+
this.performanceClient.addFields(
|
|
2461
|
+
{
|
|
2462
|
+
brokerErrorName: e.name,
|
|
2463
|
+
brokerErrorCode: e.errorCode,
|
|
2464
|
+
},
|
|
2465
|
+
silentRequest.correlationId
|
|
2466
|
+
);
|
|
2467
|
+
|
|
2270
2468
|
// If native token acquisition fails for availability reasons fallback to web flow
|
|
2271
2469
|
if (e instanceof NativeAuthError && isFatalNativeAuthError(e)) {
|
|
2272
2470
|
this.logger.verbose(
|
|
@@ -48,8 +48,7 @@ export function isFatalNativeAuthError(error: NativeAuthError): boolean {
|
|
|
48
48
|
if (
|
|
49
49
|
error.ext &&
|
|
50
50
|
error.ext.status &&
|
|
51
|
-
|
|
52
|
-
error.ext.status === NativeStatusCodes.DISABLED)
|
|
51
|
+
error.ext.status === NativeStatusCodes.DISABLED
|
|
53
52
|
) {
|
|
54
53
|
return true;
|
|
55
54
|
}
|