@azure/msal-browser 5.23.0 → 5.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/IPublicClientApplication.mjs +1 -1
- package/dist/app/PublicClientApplication.mjs +1 -1
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +111 -27
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +178 -67
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +61 -22
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthRequest.mjs +1 -1
- package/dist/cache/AccountManager.mjs +1 -1
- package/dist/cache/AsyncMemoryStorage.mjs +1 -1
- package/dist/cache/BrowserCacheManager.mjs +1 -1
- package/dist/cache/CacheHelpers.mjs +1 -1
- package/dist/cache/CacheKeys.mjs +1 -1
- package/dist/cache/CookieStorage.mjs +1 -1
- package/dist/cache/DatabaseStorage.mjs +1 -1
- package/dist/cache/EncryptedData.mjs +1 -1
- package/dist/cache/LocalStorage.mjs +97 -29
- package/dist/cache/LocalStorage.mjs.map +1 -1
- package/dist/cache/MemoryStorage.mjs +1 -1
- package/dist/cache/SessionStorage.mjs +1 -1
- package/dist/cache/TokenCache.mjs +1 -1
- package/dist/config/Configuration.mjs +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +1 -1
- package/dist/controllers/StandardController.mjs +10 -10
- package/dist/controllers/StandardController.mjs.map +1 -1
- package/dist/crypto/BrowserCrypto.mjs +1 -1
- package/dist/crypto/CryptoOps.mjs +1 -1
- package/dist/crypto/PkceGenerator.mjs +1 -1
- package/dist/crypto/SignedHttpRequest.mjs +1 -1
- package/dist/crypto/TokenBindingKeyManager.mjs +1 -1
- package/dist/custom_auth/CustomAuthConstants.mjs +1 -1
- package/dist/custom_auth/CustomAuthPublicClientApplication.mjs +1 -1
- package/dist/custom_auth/controller/CustomAuthStandardController.mjs +1 -1
- package/dist/custom_auth/core/CustomAuthAuthority.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs +1 -1
- package/dist/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
- package/dist/custom_auth/core/error/CustomAuthError.mjs +1 -1
- package/dist/custom_auth/core/error/HttpError.mjs +1 -1
- package/dist/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
- package/dist/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
- package/dist/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
- package/dist/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
- package/dist/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
- package/dist/custom_auth/core/error/ParsedUrlError.mjs +1 -1
- package/dist/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/error/UnexpectedError.mjs +1 -1
- package/dist/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
- package/dist/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
- package/dist/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/jit/JitClient.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/mfa/MfaClient.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
- package/dist/custom_auth/core/telemetry/FlowApiIdHelperV2.mjs +1 -1
- package/dist/custom_auth/core/telemetry/PublicApiId.mjs +1 -1
- package/dist/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
- package/dist/custom_auth/core/utils/CustomHeaderUtils.mjs +1 -1
- package/dist/custom_auth/core/utils/UrlUtils.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
- package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
- package/dist/custom_auth/index.mjs +1 -1
- package/dist/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs +1 -1
- package/dist/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs +1 -1
- package/dist/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
- package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.mjs +1 -1
- package/dist/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
- package/dist/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
- package/dist/encode/Base64Decode.mjs +1 -1
- package/dist/encode/Base64Encode.mjs +1 -1
- package/dist/error/BrowserAuthError.mjs +1 -1
- package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
- package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
- package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
- package/dist/error/NativeAuthError.mjs +1 -1
- package/dist/error/NativeAuthErrorCodes.mjs +1 -1
- package/dist/error/NestedAppAuthError.mjs +1 -1
- package/dist/event/EventHandler.mjs +1 -1
- package/dist/event/EventMessage.mjs +1 -1
- package/dist/event/EventType.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs +14 -13
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/PopupClient.mjs +1 -1
- package/dist/interaction_client/RedirectClient.mjs +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 +1348 -1336
- package/dist/naa/BridgeError.mjs +1 -1
- package/dist/naa/BridgeProxy.mjs +1 -1
- package/dist/naa/BridgeStatusCode.mjs +1 -1
- package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
- package/dist/navigation/NavigationClient.mjs +1 -1
- package/dist/network/FetchClient.mjs +1 -1
- package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
- package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
- package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/popup_relay/constants.mjs +1 -1
- package/dist/popup_relay/index.mjs +1 -1
- package/dist/popup_relay/relayClient.mjs +1 -1
- package/dist/protocol/Authorize.mjs +1 -1
- package/dist/redirect_bridge/index.mjs +1 -1
- package/dist/request/RequestHelpers.mjs +1 -1
- package/dist/response/ResponseHandler.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceEvents.mjs +16 -2
- package/dist/telemetry/BrowserPerformanceEvents.mjs.map +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
- package/dist/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
- package/dist/utils/BrowserConstants.mjs +1 -1
- package/dist/utils/BrowserProtocolUtils.mjs +1 -1
- package/dist/utils/BrowserUtils.mjs +1 -1
- package/dist/utils/Helpers.mjs +1 -1
- package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
- package/dist/webBrokerBridge/PendingRequestRegistry.mjs +1 -1
- package/dist/webBrokerBridge/PerfEventNames.mjs +1 -1
- package/dist/webBrokerBridge/WebBrokerBridgeError.mjs +1 -1
- package/dist/webBrokerBridge/WebBrokerBridgeErrorMap.mjs +1 -1
- package/dist/webBrokerBridge/adapter/CrossVersionRequestAdapter.mjs +1 -1
- package/dist/webBrokerBridge/index.mjs +1 -1
- package/lib/custom-auth-path/log-strings-mapping.json +23 -11
- package/lib/custom-auth-path/msal-custom-auth.cjs +540 -225
- package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
- package/lib/custom-auth-path/msal-custom-auth.js +540 -225
- package/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
- package/lib/log-strings-mapping.json +23 -11
- package/lib/msal-browser.cjs +542 -227
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +542 -227
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +2 -2
- package/lib/popup-relay/msal-popup-relay.cjs +2 -2
- package/lib/popup-relay/msal-popup-relay.cjs.map +1 -1
- package/lib/popup-relay/msal-popup-relay.js +2 -2
- package/lib/popup-relay/msal-popup-relay.js.map +1 -1
- package/lib/popup-relay/msal-popup-relay.min.js +1 -1
- package/lib/redirect-bridge/msal-redirect-bridge.cjs +10 -10
- package/lib/redirect-bridge/msal-redirect-bridge.cjs.map +1 -1
- package/lib/redirect-bridge/msal-redirect-bridge.js +10 -10
- package/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -1
- package/lib/redirect-bridge/msal-redirect-bridge.min.js +1 -1
- package/lib/web-broker-bridge/msal-web-broker-bridge.cjs +1 -1
- package/package.json +3 -3
- package/src/broker/nativeBroker/PlatformAuthDOMHandler.ts +177 -43
- package/src/broker/nativeBroker/PlatformAuthExtensionHandler.ts +261 -110
- package/src/broker/nativeBroker/PlatformAuthProvider.ts +92 -37
- package/src/cache/LocalStorage.ts +135 -28
- package/src/controllers/StandardController.ts +17 -23
- package/src/interaction_client/PlatformAuthInteractionClient.ts +56 -15
- package/src/packageMetadata.ts +1 -1
- package/src/telemetry/BrowserPerformanceEvents.ts +20 -0
- package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts +2 -1
- package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthExtensionHandler.d.ts +3 -1
- package/types/broker/nativeBroker/PlatformAuthExtensionHandler.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthProvider.d.ts +1 -1
- package/types/broker/nativeBroker/PlatformAuthProvider.d.ts.map +1 -1
- package/types/cache/LocalStorage.d.ts +4 -5
- package/types/cache/LocalStorage.d.ts.map +1 -1
- package/types/controllers/StandardController.d.ts.map +1 -1
- package/types/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/types/packageMetadata.d.ts +1 -1
- package/types/telemetry/BrowserPerformanceEvents.d.ts +13 -0
- package/types/telemetry/BrowserPerformanceEvents.d.ts.map +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.24.0 2026-10-02 */
|
|
2
2
|
'use strict';
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
|
-
/*! @azure/msal-common v16.14.
|
|
5
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
6
6
|
/*
|
|
7
7
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8
8
|
* Licensed under the MIT License.
|
|
@@ -56,7 +56,7 @@ const RESOURCE = "resource";
|
|
|
56
56
|
const CLI_DATA = "clidata";
|
|
57
57
|
const ATTRIBUTE_TOKENS = "attribute_tokens";
|
|
58
58
|
|
|
59
|
-
/*! @azure/msal-common v16.14.
|
|
59
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
60
60
|
/*
|
|
61
61
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
62
62
|
* Licensed under the MIT License.
|
|
@@ -290,7 +290,7 @@ const JsonWebTokenTypes = {
|
|
|
290
290
|
// Token renewal offset default in seconds
|
|
291
291
|
const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
|
|
292
292
|
|
|
293
|
-
/*! @azure/msal-common v16.14.
|
|
293
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
294
294
|
/*
|
|
295
295
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
296
296
|
* Licensed under the MIT License.
|
|
@@ -319,7 +319,7 @@ function createAuthError(code, correlationId, additionalMessage) {
|
|
|
319
319
|
return new AuthError(code, correlationId, additionalMessage || getDefaultErrorMessage$1(code));
|
|
320
320
|
}
|
|
321
321
|
|
|
322
|
-
/*! @azure/msal-common v16.14.
|
|
322
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
323
323
|
|
|
324
324
|
/*
|
|
325
325
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -342,7 +342,7 @@ function createClientAuthError(errorCode, correlationId, additionalMessage) {
|
|
|
342
342
|
return new ClientAuthError(errorCode, correlationId, additionalMessage);
|
|
343
343
|
}
|
|
344
344
|
|
|
345
|
-
/*! @azure/msal-common v16.14.
|
|
345
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
346
346
|
/*
|
|
347
347
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
348
348
|
* Licensed under the MIT License.
|
|
@@ -380,7 +380,7 @@ const methodNotImplemented = "method_not_implemented";
|
|
|
380
380
|
const resourceParameterRequired = "resource_parameter_required";
|
|
381
381
|
const misplacedResourceParam = "misplaced_resource_parameter";
|
|
382
382
|
|
|
383
|
-
/*! @azure/msal-common v16.14.
|
|
383
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
384
384
|
|
|
385
385
|
/*
|
|
386
386
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -418,7 +418,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
|
|
|
418
418
|
};
|
|
419
419
|
}
|
|
420
420
|
|
|
421
|
-
/*! @azure/msal-common v16.14.
|
|
421
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
422
422
|
|
|
423
423
|
/*
|
|
424
424
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -484,7 +484,7 @@ function getJWSPayload(authToken, correlationId) {
|
|
|
484
484
|
return matches[2];
|
|
485
485
|
}
|
|
486
486
|
|
|
487
|
-
/*! @azure/msal-common v16.14.
|
|
487
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
488
488
|
|
|
489
489
|
/*
|
|
490
490
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -572,7 +572,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
|
|
|
572
572
|
return updatedAccountInfo;
|
|
573
573
|
}
|
|
574
574
|
|
|
575
|
-
/*! @azure/msal-common v16.14.
|
|
575
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
576
576
|
/*
|
|
577
577
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
578
578
|
* Licensed under the MIT License.
|
|
@@ -586,7 +586,7 @@ const AuthorityType = {
|
|
|
586
586
|
Ciam: 3,
|
|
587
587
|
};
|
|
588
588
|
|
|
589
|
-
/*! @azure/msal-common v16.14.
|
|
589
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
590
590
|
/*
|
|
591
591
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
592
592
|
* Licensed under the MIT License.
|
|
@@ -608,7 +608,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
|
|
|
608
608
|
return null;
|
|
609
609
|
}
|
|
610
610
|
|
|
611
|
-
/*! @azure/msal-common v16.14.
|
|
611
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
612
612
|
/*
|
|
613
613
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
614
614
|
* Licensed under the MIT License.
|
|
@@ -632,7 +632,7 @@ const ProtocolMode = {
|
|
|
632
632
|
EAR: "EAR",
|
|
633
633
|
};
|
|
634
634
|
|
|
635
|
-
/*! @azure/msal-common v16.14.
|
|
635
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
636
636
|
/**
|
|
637
637
|
* Returns the AccountInfo interface for this account.
|
|
638
638
|
* @internal
|
|
@@ -821,7 +821,7 @@ function isAccountEntity(entity) {
|
|
|
821
821
|
entity.hasOwnProperty("authorityType"));
|
|
822
822
|
}
|
|
823
823
|
|
|
824
|
-
/*! @azure/msal-common v16.14.
|
|
824
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
825
825
|
/*
|
|
826
826
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
827
827
|
* Licensed under the MIT License.
|
|
@@ -831,7 +831,7 @@ function isAccountEntity(entity) {
|
|
|
831
831
|
*/
|
|
832
832
|
const unexpectedError = "unexpected_error";
|
|
833
833
|
|
|
834
|
-
/*! @azure/msal-common v16.14.
|
|
834
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
835
835
|
|
|
836
836
|
/*
|
|
837
837
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -851,7 +851,7 @@ function createClientConfigurationError(errorCode, correlationId) {
|
|
|
851
851
|
return new ClientConfigurationError(errorCode, correlationId);
|
|
852
852
|
}
|
|
853
853
|
|
|
854
|
-
/*! @azure/msal-common v16.14.
|
|
854
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
855
855
|
/*
|
|
856
856
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
857
857
|
* Licensed under the MIT License.
|
|
@@ -882,7 +882,7 @@ const invalidDpopHtu = "invalid_dpop_htu";
|
|
|
882
882
|
const invalidDpopNonce = "invalid_dpop_nonce";
|
|
883
883
|
const dpopMissingResourceContext = "dpop_missing_resource_context";
|
|
884
884
|
|
|
885
|
-
/*! @azure/msal-common v16.14.
|
|
885
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
886
886
|
/*
|
|
887
887
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
888
888
|
* Licensed under the MIT License.
|
|
@@ -894,7 +894,7 @@ function isOpenIdConfigResponse(response) {
|
|
|
894
894
|
response.hasOwnProperty("jwks_uri"));
|
|
895
895
|
}
|
|
896
896
|
|
|
897
|
-
/*! @azure/msal-common v16.14.
|
|
897
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
898
898
|
/*
|
|
899
899
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
900
900
|
* Licensed under the MIT License.
|
|
@@ -974,7 +974,7 @@ class StringUtils {
|
|
|
974
974
|
}
|
|
975
975
|
}
|
|
976
976
|
|
|
977
|
-
/*! @azure/msal-common v16.14.
|
|
977
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
978
978
|
|
|
979
979
|
/*
|
|
980
980
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1132,7 +1132,7 @@ class UrlString {
|
|
|
1132
1132
|
}
|
|
1133
1133
|
}
|
|
1134
1134
|
|
|
1135
|
-
/*! @azure/msal-common v16.14.
|
|
1135
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
1136
1136
|
|
|
1137
1137
|
/*
|
|
1138
1138
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1286,7 +1286,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
1286
1286
|
return null;
|
|
1287
1287
|
}
|
|
1288
1288
|
|
|
1289
|
-
/*! @azure/msal-common v16.14.
|
|
1289
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
1290
1290
|
/*
|
|
1291
1291
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1292
1292
|
* Licensed under the MIT License.
|
|
@@ -1295,7 +1295,7 @@ const AzureCloudInstance = {
|
|
|
1295
1295
|
// AzureCloudInstance is not specified.
|
|
1296
1296
|
None: "none"};
|
|
1297
1297
|
|
|
1298
|
-
/*! @azure/msal-common v16.14.
|
|
1298
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
1299
1299
|
/*
|
|
1300
1300
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1301
1301
|
* Licensed under the MIT License.
|
|
@@ -1305,7 +1305,7 @@ function isCloudInstanceDiscoveryResponse(response) {
|
|
|
1305
1305
|
response.hasOwnProperty("metadata"));
|
|
1306
1306
|
}
|
|
1307
1307
|
|
|
1308
|
-
/*! @azure/msal-common v16.14.
|
|
1308
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
1309
1309
|
/*
|
|
1310
1310
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1311
1311
|
* Licensed under the MIT License.
|
|
@@ -1315,7 +1315,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
|
|
|
1315
1315
|
response.hasOwnProperty("error_description"));
|
|
1316
1316
|
}
|
|
1317
1317
|
|
|
1318
|
-
/*! @azure/msal-common v16.14.
|
|
1318
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
1319
1319
|
/*
|
|
1320
1320
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1321
1321
|
* Licensed under the MIT License.
|
|
@@ -1386,7 +1386,7 @@ const RegionDiscoveryGetCurrentVersion = "regionDiscoveryGetCurrentVersion";
|
|
|
1386
1386
|
const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken";
|
|
1387
1387
|
const SetUserData = "setUserData";
|
|
1388
1388
|
|
|
1389
|
-
/*! @azure/msal-common v16.14.
|
|
1389
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
1390
1390
|
/*
|
|
1391
1391
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1392
1392
|
* Licensed under the MIT License.
|
|
@@ -1479,7 +1479,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
|
|
|
1479
1479
|
};
|
|
1480
1480
|
};
|
|
1481
1481
|
|
|
1482
|
-
/*! @azure/msal-common v16.14.
|
|
1482
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
1483
1483
|
|
|
1484
1484
|
/*
|
|
1485
1485
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1590,7 +1590,7 @@ RegionDiscovery.IMDS_OPTIONS = {
|
|
|
1590
1590
|
},
|
|
1591
1591
|
};
|
|
1592
1592
|
|
|
1593
|
-
/*! @azure/msal-common v16.14.
|
|
1593
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
1594
1594
|
/*
|
|
1595
1595
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1596
1596
|
* Licensed under the MIT License.
|
|
@@ -1655,7 +1655,7 @@ function wasClockTurnedBack(cachedAt) {
|
|
|
1655
1655
|
return cachedAtSec > nowSeconds();
|
|
1656
1656
|
}
|
|
1657
1657
|
|
|
1658
|
-
/*! @azure/msal-common v16.14.
|
|
1658
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
1659
1659
|
|
|
1660
1660
|
/*
|
|
1661
1661
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1942,7 +1942,7 @@ function serializeAttributeTokens(attributeTokens) {
|
|
|
1942
1942
|
return [...attributeTokens].sort().join(" ");
|
|
1943
1943
|
}
|
|
1944
1944
|
|
|
1945
|
-
/*! @azure/msal-common v16.14.
|
|
1945
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
1946
1946
|
|
|
1947
1947
|
/*
|
|
1948
1948
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2910,7 +2910,7 @@ function buildStaticAuthorityOptions(authOptions) {
|
|
|
2910
2910
|
};
|
|
2911
2911
|
}
|
|
2912
2912
|
|
|
2913
|
-
/*! @azure/msal-common v16.14.
|
|
2913
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
2914
2914
|
|
|
2915
2915
|
/*
|
|
2916
2916
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2944,7 +2944,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
|
|
|
2944
2944
|
}
|
|
2945
2945
|
}
|
|
2946
2946
|
|
|
2947
|
-
/*! @azure/msal-common v16.14.
|
|
2947
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
2948
2948
|
|
|
2949
2949
|
/*
|
|
2950
2950
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3140,7 +3140,7 @@ class ScopeSet {
|
|
|
3140
3140
|
}
|
|
3141
3141
|
}
|
|
3142
3142
|
|
|
3143
|
-
/*! @azure/msal-common v16.14.
|
|
3143
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
3144
3144
|
|
|
3145
3145
|
/*
|
|
3146
3146
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3626,7 +3626,7 @@ function addAttributeTokens(parameters, attributeTokens) {
|
|
|
3626
3626
|
}
|
|
3627
3627
|
}
|
|
3628
3628
|
|
|
3629
|
-
/*! @azure/msal-common v16.14.
|
|
3629
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
3630
3630
|
|
|
3631
3631
|
/*
|
|
3632
3632
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3748,7 +3748,7 @@ function validateUrl(url, logger, correlationId) {
|
|
|
3748
3748
|
}
|
|
3749
3749
|
}
|
|
3750
3750
|
|
|
3751
|
-
/*! @azure/msal-common v16.14.
|
|
3751
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
3752
3752
|
|
|
3753
3753
|
/*
|
|
3754
3754
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3796,7 +3796,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
|
|
|
3796
3796
|
},
|
|
3797
3797
|
};
|
|
3798
3798
|
|
|
3799
|
-
/*! @azure/msal-common v16.14.
|
|
3799
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
3800
3800
|
|
|
3801
3801
|
/*
|
|
3802
3802
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3819,7 +3819,7 @@ const DEFAULT_TOKEN_BINDING_KEY_MANAGER = {
|
|
|
3819
3819
|
},
|
|
3820
3820
|
};
|
|
3821
3821
|
|
|
3822
|
-
/*! @azure/msal-common v16.14.
|
|
3822
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
3823
3823
|
/*
|
|
3824
3824
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3825
3825
|
* Licensed under the MIT License.
|
|
@@ -4094,12 +4094,12 @@ class Logger {
|
|
|
4094
4094
|
}
|
|
4095
4095
|
}
|
|
4096
4096
|
|
|
4097
|
-
/*! @azure/msal-common v16.14.
|
|
4097
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
4098
4098
|
/* eslint-disable header/header */
|
|
4099
4099
|
const name$1 = "@azure/msal-common";
|
|
4100
|
-
const version$1 = "16.14.
|
|
4100
|
+
const version$1 = "16.14.2";
|
|
4101
4101
|
|
|
4102
|
-
/*! @azure/msal-common v16.14.
|
|
4102
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
4103
4103
|
/*
|
|
4104
4104
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4105
4105
|
* Licensed under the MIT License.
|
|
@@ -4107,7 +4107,7 @@ const version$1 = "16.14.1";
|
|
|
4107
4107
|
const cacheQuotaExceeded = "cache_quota_exceeded";
|
|
4108
4108
|
const cacheErrorUnknown = "cache_error_unknown";
|
|
4109
4109
|
|
|
4110
|
-
/*! @azure/msal-common v16.14.
|
|
4110
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
4111
4111
|
|
|
4112
4112
|
/*
|
|
4113
4113
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4145,7 +4145,7 @@ function createCacheError(e) {
|
|
|
4145
4145
|
}
|
|
4146
4146
|
}
|
|
4147
4147
|
|
|
4148
|
-
/*! @azure/msal-common v16.14.
|
|
4148
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
4149
4149
|
|
|
4150
4150
|
/*
|
|
4151
4151
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5332,7 +5332,7 @@ class DefaultStorageClass extends CacheManager {
|
|
|
5332
5332
|
}
|
|
5333
5333
|
}
|
|
5334
5334
|
|
|
5335
|
-
/*! @azure/msal-common v16.14.
|
|
5335
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
5336
5336
|
/*
|
|
5337
5337
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5338
5338
|
* Licensed under the MIT License.
|
|
@@ -5346,7 +5346,7 @@ class DefaultStorageClass extends CacheManager {
|
|
|
5346
5346
|
const PerformanceEventStatus = {
|
|
5347
5347
|
InProgress: 1};
|
|
5348
5348
|
|
|
5349
|
-
/*! @azure/msal-common v16.14.
|
|
5349
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
5350
5350
|
|
|
5351
5351
|
/*
|
|
5352
5352
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5404,7 +5404,7 @@ class StubPerformanceClient {
|
|
|
5404
5404
|
}
|
|
5405
5405
|
}
|
|
5406
5406
|
|
|
5407
|
-
/*! @azure/msal-common v16.14.
|
|
5407
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
5408
5408
|
|
|
5409
5409
|
/*
|
|
5410
5410
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5502,7 +5502,7 @@ function isOidcProtocolMode(config) {
|
|
|
5502
5502
|
return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
|
|
5503
5503
|
}
|
|
5504
5504
|
|
|
5505
|
-
/*! @azure/msal-common v16.14.
|
|
5505
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
5506
5506
|
/*
|
|
5507
5507
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5508
5508
|
* Licensed under the MIT License.
|
|
@@ -5529,7 +5529,7 @@ function isOidcProtocolMode(config) {
|
|
|
5529
5529
|
}
|
|
5530
5530
|
}
|
|
5531
5531
|
|
|
5532
|
-
/*! @azure/msal-common v16.14.
|
|
5532
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
5533
5533
|
|
|
5534
5534
|
/*
|
|
5535
5535
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5550,7 +5550,7 @@ function createJoseHeaderError(code, correlationId) {
|
|
|
5550
5550
|
return new JoseHeaderError(code, correlationId);
|
|
5551
5551
|
}
|
|
5552
5552
|
|
|
5553
|
-
/*! @azure/msal-common v16.14.
|
|
5553
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
5554
5554
|
/*
|
|
5555
5555
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5556
5556
|
* Licensed under the MIT License.
|
|
@@ -5575,7 +5575,7 @@ function isPlainObject(value) {
|
|
|
5575
5575
|
return Object.getPrototypeOf(value) === proto;
|
|
5576
5576
|
}
|
|
5577
5577
|
|
|
5578
|
-
/*! @azure/msal-common v16.14.
|
|
5578
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
5579
5579
|
/*
|
|
5580
5580
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5581
5581
|
* Licensed under the MIT License.
|
|
@@ -5585,7 +5585,7 @@ const missingAlgError = "missing_alg_error";
|
|
|
5585
5585
|
const missingJwkError = "missing_jwk_error";
|
|
5586
5586
|
const invalidJwkError = "invalid_jwk_error";
|
|
5587
5587
|
|
|
5588
|
-
/*! @azure/msal-common v16.14.
|
|
5588
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
5589
5589
|
|
|
5590
5590
|
/*
|
|
5591
5591
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5651,7 +5651,7 @@ class JoseHeader {
|
|
|
5651
5651
|
}
|
|
5652
5652
|
}
|
|
5653
5653
|
|
|
5654
|
-
/*! @azure/msal-common v16.14.
|
|
5654
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
5655
5655
|
|
|
5656
5656
|
/*
|
|
5657
5657
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5752,7 +5752,7 @@ class PopTokenGenerator {
|
|
|
5752
5752
|
}
|
|
5753
5753
|
}
|
|
5754
5754
|
|
|
5755
|
-
/*! @azure/msal-common v16.14.
|
|
5755
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
5756
5756
|
|
|
5757
5757
|
/*
|
|
5758
5758
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5897,7 +5897,7 @@ class DpopProofGenerator {
|
|
|
5897
5897
|
}
|
|
5898
5898
|
}
|
|
5899
5899
|
|
|
5900
|
-
/*! @azure/msal-common v16.14.
|
|
5900
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
5901
5901
|
/*
|
|
5902
5902
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5903
5903
|
* Licensed under the MIT License.
|
|
@@ -5948,7 +5948,7 @@ const badToken = "bad_token";
|
|
|
5948
5948
|
*/
|
|
5949
5949
|
const interruptedUser = "interrupted_user";
|
|
5950
5950
|
|
|
5951
|
-
/*! @azure/msal-common v16.14.
|
|
5951
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
5952
5952
|
|
|
5953
5953
|
/*
|
|
5954
5954
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6015,7 +6015,7 @@ function createInteractionRequiredAuthError(errorCode, correlationId, errorMessa
|
|
|
6015
6015
|
return new InteractionRequiredAuthError(errorCode, correlationId, errorMessage);
|
|
6016
6016
|
}
|
|
6017
6017
|
|
|
6018
|
-
/*! @azure/msal-common v16.14.
|
|
6018
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
6019
6019
|
|
|
6020
6020
|
/*
|
|
6021
6021
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6034,7 +6034,7 @@ class ServerError extends AuthError {
|
|
|
6034
6034
|
}
|
|
6035
6035
|
}
|
|
6036
6036
|
|
|
6037
|
-
/*! @azure/msal-common v16.14.
|
|
6037
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
6038
6038
|
|
|
6039
6039
|
/*
|
|
6040
6040
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6105,7 +6105,7 @@ function parseRequestState(base64Decode, state, correlationId) {
|
|
|
6105
6105
|
}
|
|
6106
6106
|
}
|
|
6107
6107
|
|
|
6108
|
-
/*! @azure/msal-common v16.14.
|
|
6108
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
6109
6109
|
|
|
6110
6110
|
/*
|
|
6111
6111
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6533,7 +6533,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
|
|
|
6533
6533
|
return baseAccount;
|
|
6534
6534
|
}
|
|
6535
6535
|
|
|
6536
|
-
/*! @azure/msal-common v16.14.
|
|
6536
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
6537
6537
|
/*
|
|
6538
6538
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6539
6539
|
* Licensed under the MIT License.
|
|
@@ -6543,7 +6543,7 @@ const CcsCredentialType = {
|
|
|
6543
6543
|
UPN: "UPN",
|
|
6544
6544
|
};
|
|
6545
6545
|
|
|
6546
|
-
/*! @azure/msal-common v16.14.
|
|
6546
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
6547
6547
|
/*
|
|
6548
6548
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6549
6549
|
* Licensed under the MIT License.
|
|
@@ -6562,7 +6562,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint, fmiP
|
|
|
6562
6562
|
}
|
|
6563
6563
|
}
|
|
6564
6564
|
|
|
6565
|
-
/*! @azure/msal-common v16.14.
|
|
6565
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
6566
6566
|
|
|
6567
6567
|
/*
|
|
6568
6568
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6586,7 +6586,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
|
|
|
6586
6586
|
};
|
|
6587
6587
|
}
|
|
6588
6588
|
|
|
6589
|
-
/*! @azure/msal-common v16.14.
|
|
6589
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
6590
6590
|
|
|
6591
6591
|
/*
|
|
6592
6592
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6672,7 +6672,7 @@ class ThrottlingUtils {
|
|
|
6672
6672
|
}
|
|
6673
6673
|
}
|
|
6674
6674
|
|
|
6675
|
-
/*! @azure/msal-common v16.14.
|
|
6675
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
6676
6676
|
|
|
6677
6677
|
/*
|
|
6678
6678
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6703,7 +6703,7 @@ function createNetworkError(error, httpStatus, responseHeaders, additionalError)
|
|
|
6703
6703
|
return new NetworkError(error, httpStatus, responseHeaders);
|
|
6704
6704
|
}
|
|
6705
6705
|
|
|
6706
|
-
/*! @azure/msal-common v16.14.
|
|
6706
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
6707
6707
|
|
|
6708
6708
|
/*
|
|
6709
6709
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6836,7 +6836,7 @@ async function sendPostRequest(thumbprint, tokenEndpoint, options, correlationId
|
|
|
6836
6836
|
return response;
|
|
6837
6837
|
}
|
|
6838
6838
|
|
|
6839
|
-
/*! @azure/msal-common v16.14.
|
|
6839
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
6840
6840
|
|
|
6841
6841
|
/*
|
|
6842
6842
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7100,7 +7100,7 @@ class AuthorizationCodeClient {
|
|
|
7100
7100
|
}
|
|
7101
7101
|
}
|
|
7102
7102
|
|
|
7103
|
-
/*! @azure/msal-common v16.14.
|
|
7103
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
7104
7104
|
|
|
7105
7105
|
/*
|
|
7106
7106
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7327,7 +7327,7 @@ function extractLoginHint(account) {
|
|
|
7327
7327
|
return account.loginHint || account.idTokenClaims?.login_hint || null;
|
|
7328
7328
|
}
|
|
7329
7329
|
|
|
7330
|
-
/*! @azure/msal-common v16.14.
|
|
7330
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
7331
7331
|
|
|
7332
7332
|
/*
|
|
7333
7333
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7486,6 +7486,7 @@ class RefreshTokenClient {
|
|
|
7486
7486
|
addRedirectUri(parameters, request.redirectUri);
|
|
7487
7487
|
}
|
|
7488
7488
|
addScopes(parameters, request.scopes, request.correlationId, true, this.config.authOptions.authority.options.OIDCOptions?.defaultScopes);
|
|
7489
|
+
addResource(parameters, request.resource);
|
|
7489
7490
|
addGrantType(parameters, GrantType$1.REFRESH_TOKEN_GRANT);
|
|
7490
7491
|
addClientInfo(parameters);
|
|
7491
7492
|
addLibraryInfo(parameters, this.config.libraryInfo);
|
|
@@ -7561,7 +7562,7 @@ class RefreshTokenClient {
|
|
|
7561
7562
|
}
|
|
7562
7563
|
}
|
|
7563
7564
|
|
|
7564
|
-
/*! @azure/msal-common v16.14.
|
|
7565
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
7565
7566
|
|
|
7566
7567
|
/*
|
|
7567
7568
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7854,7 +7855,7 @@ class StubServerTelemetryManager extends ServerTelemetryManager {
|
|
|
7854
7855
|
clearNativeBrokerErrorCode() { }
|
|
7855
7856
|
}
|
|
7856
7857
|
|
|
7857
|
-
/*! @azure/msal-common v16.14.
|
|
7858
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
7858
7859
|
|
|
7859
7860
|
/*
|
|
7860
7861
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7981,7 +7982,7 @@ class SilentFlowClient {
|
|
|
7981
7982
|
}
|
|
7982
7983
|
}
|
|
7983
7984
|
|
|
7984
|
-
/*! @azure/msal-common v16.14.
|
|
7985
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
7985
7986
|
|
|
7986
7987
|
/*
|
|
7987
7988
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7997,7 +7998,7 @@ const StubbedNetworkModule = {
|
|
|
7997
7998
|
},
|
|
7998
7999
|
};
|
|
7999
8000
|
|
|
8000
|
-
/*! @azure/msal-common v16.14.
|
|
8001
|
+
/*! @azure/msal-common v16.14.2 2026-10-02 */
|
|
8001
8002
|
|
|
8002
8003
|
/*
|
|
8003
8004
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8426,7 +8427,7 @@ function ensureArgumentIsJSONString(argName, argValue, correlationId) {
|
|
|
8426
8427
|
|
|
8427
8428
|
/* eslint-disable header/header */
|
|
8428
8429
|
const name = "@azure/msal-browser";
|
|
8429
|
-
const version = "5.
|
|
8430
|
+
const version = "5.24.0";
|
|
8430
8431
|
|
|
8431
8432
|
/*
|
|
8432
8433
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -9038,6 +9039,20 @@ const AcquireTokenByCodeAsync = "acquireTokenByCodeAsync";
|
|
|
9038
9039
|
const HandleRedirectPromiseMeasurement = "handleRedirectPromise";
|
|
9039
9040
|
const HandleNativeRedirectPromiseMeasurement = "handleNativeRedirectPromise";
|
|
9040
9041
|
const NativeMessageHandlerHandshake = "nativeMessageHandlerHandshake";
|
|
9042
|
+
const NativeGenerateAuthResult = "nativeGenerateAuthResult";
|
|
9043
|
+
const PlatformAuthProviderDiscovery = "platformAuthProviderDiscovery";
|
|
9044
|
+
const PlatformAuthDOMCreateProvider = "platformAuthDOMCreateProvider";
|
|
9045
|
+
const PlatformAuthDOMGetSupportedContracts = "platformAuthDOMGetSupportedContracts";
|
|
9046
|
+
const PlatformAuthDOMInitializeRequest = "platformAuthDOMInitializeRequest";
|
|
9047
|
+
const PlatformAuthDOMGetToken = "platformAuthDOMGetToken";
|
|
9048
|
+
const PlatformAuthDOMValidateResponse = "platformAuthDOMValidateResponse";
|
|
9049
|
+
const PlatformAuthExtensionCreateProvider = "platformAuthExtensionCreateProvider";
|
|
9050
|
+
const PlatformAuthExtensionGetToken = "platformAuthExtensionGetToken";
|
|
9051
|
+
const PlatformAuthExtensionValidateResponse = "platformAuthExtensionValidateResponse";
|
|
9052
|
+
const PlatformAuthInteractionClientInitializeRequest = "platformAuthInteractionClientInitializeRequest";
|
|
9053
|
+
const PlatformAuthHandleNativeResponse = "platformAuthHandleNativeResponse";
|
|
9054
|
+
const PlatformAuthCacheAccount = "platformAuthCacheAccount";
|
|
9055
|
+
const PlatformAuthCacheNativeTokens = "platformAuthCacheNativeTokens";
|
|
9041
9056
|
const RemoveHiddenIframe = "removeHiddenIframe";
|
|
9042
9057
|
const ImportExistingCache = "importExistingCache";
|
|
9043
9058
|
/**
|
|
@@ -18044,7 +18059,9 @@ class LocalStorage {
|
|
|
18044
18059
|
await invokeAsync(this.importExistingCache.bind(this), ImportExistingCache, this.logger, this.performanceClient, correlationId)(correlationId);
|
|
18045
18060
|
// Register listener for cache updates in other tabs
|
|
18046
18061
|
this.broadcast.addEventListener("message", (event) => {
|
|
18047
|
-
this.updateCache(event, correlationId)
|
|
18062
|
+
this.updateCache(event, correlationId).catch(() => {
|
|
18063
|
+
this.logger.error("0ufnan", correlationId);
|
|
18064
|
+
});
|
|
18048
18065
|
});
|
|
18049
18066
|
this.initialized = true;
|
|
18050
18067
|
}
|
|
@@ -18106,19 +18123,20 @@ class LocalStorage {
|
|
|
18106
18123
|
this.broadcast.postMessage({
|
|
18107
18124
|
key: key,
|
|
18108
18125
|
value: value,
|
|
18109
|
-
context: this.
|
|
18126
|
+
context: this.getBroadcastContext(key),
|
|
18110
18127
|
});
|
|
18111
18128
|
}
|
|
18112
18129
|
removeItem(key) {
|
|
18113
|
-
|
|
18114
|
-
|
|
18130
|
+
const itemExists = this.containsKey(key) || this.memoryStorage.containsKey(key);
|
|
18131
|
+
window.localStorage.removeItem(key);
|
|
18132
|
+
this.memoryStorage.removeItem(key);
|
|
18133
|
+
if (itemExists) {
|
|
18115
18134
|
this.broadcast.postMessage({
|
|
18116
18135
|
key: key,
|
|
18117
18136
|
value: null,
|
|
18118
|
-
context: this.
|
|
18137
|
+
context: this.getBroadcastContext(key),
|
|
18119
18138
|
});
|
|
18120
18139
|
}
|
|
18121
|
-
window.localStorage.removeItem(key);
|
|
18122
18140
|
}
|
|
18123
18141
|
getKeys() {
|
|
18124
18142
|
return Object.keys(window.localStorage);
|
|
@@ -18235,29 +18253,73 @@ class LocalStorage {
|
|
|
18235
18253
|
await Promise.all(promiseArr);
|
|
18236
18254
|
return importedArr;
|
|
18237
18255
|
}
|
|
18238
|
-
/**
|
|
18239
|
-
* Gets encryption context for a given cache entry. This is clientId for app specific entries, empty string for shared entries
|
|
18240
|
-
* @param key
|
|
18241
|
-
* @returns
|
|
18242
|
-
*/
|
|
18243
18256
|
getContext(key) {
|
|
18244
|
-
|
|
18245
|
-
|
|
18246
|
-
|
|
18257
|
+
return key.includes(this.clientId) ? this.clientId : "";
|
|
18258
|
+
}
|
|
18259
|
+
getBroadcastContext(key) {
|
|
18260
|
+
const normalizedKey = key.toLowerCase();
|
|
18261
|
+
const keySegments = normalizedKey.split(CACHE_KEY_SEPARATOR);
|
|
18262
|
+
if (keySegments.length > 1) {
|
|
18263
|
+
return keySegments[4] === this.clientId.toLowerCase()
|
|
18264
|
+
? this.clientId
|
|
18265
|
+
: "";
|
|
18266
|
+
}
|
|
18267
|
+
const credentialType = this.getCredentialType(normalizedKey);
|
|
18268
|
+
if (credentialType) {
|
|
18269
|
+
const ownerPrefix = `-${credentialType}-${this.clientId.toLowerCase()}-`;
|
|
18270
|
+
return normalizedKey.includes(ownerPrefix) ? this.clientId : "";
|
|
18271
|
+
}
|
|
18272
|
+
return normalizedKey.includes(this.clientId.toLowerCase())
|
|
18273
|
+
? this.clientId
|
|
18274
|
+
: "";
|
|
18275
|
+
}
|
|
18276
|
+
getCredentialType(key) {
|
|
18277
|
+
const normalizedKey = key.toLowerCase();
|
|
18278
|
+
const keySegments = normalizedKey.split(CACHE_KEY_SEPARATOR);
|
|
18279
|
+
const structuredCredentialType = keySegments[3];
|
|
18280
|
+
return Object.values(CredentialType)
|
|
18281
|
+
.map((type) => type.toLowerCase())
|
|
18282
|
+
.find((type) => structuredCredentialType === type ||
|
|
18283
|
+
normalizedKey.includes(`-${type}-`));
|
|
18284
|
+
}
|
|
18285
|
+
isFamilyRefreshToken(key, credentialType) {
|
|
18286
|
+
if (credentialType !==
|
|
18287
|
+
CredentialType.REFRESH_TOKEN.toLowerCase()) {
|
|
18288
|
+
return false;
|
|
18247
18289
|
}
|
|
18248
|
-
|
|
18290
|
+
const normalizedKey = key.toLowerCase();
|
|
18291
|
+
const keySegments = normalizedKey.split(CACHE_KEY_SEPARATOR);
|
|
18292
|
+
return keySegments.length > 1
|
|
18293
|
+
? keySegments[4] === THE_FAMILY_ID
|
|
18294
|
+
: normalizedKey.includes(`-${credentialType}-${THE_FAMILY_ID}-`);
|
|
18295
|
+
}
|
|
18296
|
+
isContextValid(key, context) {
|
|
18297
|
+
const credentialType = this.getCredentialType(key);
|
|
18298
|
+
const isFamilyRefreshToken = credentialType && this.isFamilyRefreshToken(key, credentialType);
|
|
18299
|
+
const isClientBoundCredential = !!credentialType && !isFamilyRefreshToken;
|
|
18300
|
+
return ((!isClientBoundCredential || !!context) &&
|
|
18301
|
+
context === this.getBroadcastContext(key));
|
|
18249
18302
|
}
|
|
18250
|
-
updateCache(event, correlationId) {
|
|
18303
|
+
async updateCache(event, correlationId) {
|
|
18251
18304
|
this.logger.trace("17cxcm", correlationId);
|
|
18252
18305
|
const perfMeasurement = this.performanceClient.startMeasurement(LocalStorageUpdated);
|
|
18253
18306
|
perfMeasurement.add({ isBackground: true });
|
|
18254
|
-
const
|
|
18255
|
-
|
|
18307
|
+
const key = event.data?.key;
|
|
18308
|
+
const context = event.data?.context;
|
|
18309
|
+
if (typeof key !== "string" || !key) {
|
|
18256
18310
|
this.logger.error("0e10qr", correlationId);
|
|
18257
18311
|
perfMeasurement.end({ success: false, errorCode: "noKey" });
|
|
18258
18312
|
return;
|
|
18259
18313
|
}
|
|
18260
|
-
if (
|
|
18314
|
+
if (typeof context !== "string") {
|
|
18315
|
+
this.logger.error("16gtk4", correlationId);
|
|
18316
|
+
perfMeasurement.end({
|
|
18317
|
+
success: false,
|
|
18318
|
+
errorCode: "noContext",
|
|
18319
|
+
});
|
|
18320
|
+
return;
|
|
18321
|
+
}
|
|
18322
|
+
if (!this.isContextValid(key, context)) {
|
|
18261
18323
|
this.logger.trace(`04rtdy ${context}`, correlationId);
|
|
18262
18324
|
/*
|
|
18263
18325
|
* Discarded rather than ended: this is expected routing, not a failure.
|
|
@@ -18275,15 +18337,36 @@ class LocalStorage {
|
|
|
18275
18337
|
perfMeasurement.discard();
|
|
18276
18338
|
return;
|
|
18277
18339
|
}
|
|
18278
|
-
|
|
18279
|
-
|
|
18280
|
-
this.
|
|
18340
|
+
const persistedValue = this.getItem(key);
|
|
18341
|
+
try {
|
|
18342
|
+
const value = await this.getItemFromEncryptedCache(key, correlationId);
|
|
18343
|
+
// A newer write or removal occurred while this entry was decrypted.
|
|
18344
|
+
if (this.getItem(key) !== persistedValue) {
|
|
18345
|
+
perfMeasurement.discard();
|
|
18346
|
+
return;
|
|
18347
|
+
}
|
|
18348
|
+
if (!value) {
|
|
18349
|
+
this.memoryStorage.removeItem(key);
|
|
18350
|
+
this.logger.verbose("04ypih", correlationId);
|
|
18351
|
+
}
|
|
18352
|
+
else {
|
|
18353
|
+
this.memoryStorage.setItem(key, value);
|
|
18354
|
+
this.logger.verbose("1vzsgt", correlationId);
|
|
18355
|
+
}
|
|
18356
|
+
perfMeasurement.end({ success: true });
|
|
18281
18357
|
}
|
|
18282
|
-
|
|
18283
|
-
this.
|
|
18284
|
-
|
|
18358
|
+
catch {
|
|
18359
|
+
if (this.getItem(key) !== persistedValue) {
|
|
18360
|
+
perfMeasurement.discard();
|
|
18361
|
+
return;
|
|
18362
|
+
}
|
|
18363
|
+
this.memoryStorage.removeItem(key);
|
|
18364
|
+
this.logger.error("0flmza", correlationId);
|
|
18365
|
+
perfMeasurement.end({
|
|
18366
|
+
success: false,
|
|
18367
|
+
errorCode: "cacheUpdateFailed",
|
|
18368
|
+
});
|
|
18285
18369
|
}
|
|
18286
|
-
perfMeasurement.end({ success: true });
|
|
18287
18370
|
}
|
|
18288
18371
|
}
|
|
18289
18372
|
|
|
@@ -20453,7 +20536,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
20453
20536
|
// initialize native request (statically builds the request; does not contact the broker)
|
|
20454
20537
|
let nativeRequest;
|
|
20455
20538
|
try {
|
|
20456
|
-
nativeRequest = await this.initializePlatformRequest(request);
|
|
20539
|
+
nativeRequest = await invokeAsync(this.initializePlatformRequest.bind(this), PlatformAuthInteractionClientInitializeRequest, this.logger, this.performanceClient, this.correlationId)(request);
|
|
20457
20540
|
}
|
|
20458
20541
|
catch (e) {
|
|
20459
20542
|
/*
|
|
@@ -20500,7 +20583,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
20500
20583
|
// dispatch the request to the broker
|
|
20501
20584
|
try {
|
|
20502
20585
|
const validatedResponse = await this.platformAuthProvider.sendMessage(nativeRequest);
|
|
20503
|
-
const result = await this.handleNativeResponse(validatedResponse, nativeRequest, reqTimestamp, request.storeInCache);
|
|
20586
|
+
const result = await invokeAsync(this.handleNativeResponse.bind(this), PlatformAuthHandleNativeResponse, this.logger, this.performanceClient, this.correlationId)(validatedResponse, nativeRequest, reqTimestamp, request.storeInCache);
|
|
20504
20587
|
nativeATMeasurement.end({
|
|
20505
20588
|
success: true,
|
|
20506
20589
|
requestId: result.requestId,
|
|
@@ -20603,7 +20686,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
20603
20686
|
*/
|
|
20604
20687
|
async acquireTokenRedirect(request, rootMeasurement, options) {
|
|
20605
20688
|
this.logger.trace("0luikq", this.correlationId);
|
|
20606
|
-
const nativeRequest = await this.initializePlatformRequest(request);
|
|
20689
|
+
const nativeRequest = await invokeAsync(this.initializePlatformRequest.bind(this), PlatformAuthInteractionClientInitializeRequest, this.logger, this.performanceClient, this.correlationId)(request);
|
|
20607
20690
|
const navigateToLoginRequestUrl = options?.navigateToLoginRequestUrl ?? true;
|
|
20608
20691
|
try {
|
|
20609
20692
|
await this.platformAuthProvider.sendMessage(nativeRequest);
|
|
@@ -20655,7 +20738,9 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
20655
20738
|
const cachedRequest = this.browserStorage.getCachedNativeRequest();
|
|
20656
20739
|
if (!cachedRequest) {
|
|
20657
20740
|
this.logger.verbose("0a6zjb", this.correlationId);
|
|
20658
|
-
this.performanceClient?.addFields({
|
|
20741
|
+
this.performanceClient?.addFields({
|
|
20742
|
+
errorCode: "no_cached_request",
|
|
20743
|
+
}, this.correlationId);
|
|
20659
20744
|
return null;
|
|
20660
20745
|
}
|
|
20661
20746
|
/*
|
|
@@ -20671,7 +20756,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
20671
20756
|
try {
|
|
20672
20757
|
this.logger.verbose("003x5a", this.correlationId);
|
|
20673
20758
|
const response = await this.platformAuthProvider.sendMessage(request);
|
|
20674
|
-
const authResult = await this.handleNativeResponse(response, request, reqTimestamp, storeInCache);
|
|
20759
|
+
const authResult = await invokeAsync(this.handleNativeResponse.bind(this), PlatformAuthHandleNativeResponse, this.logger, this.performanceClient, this.correlationId)(response, request, reqTimestamp, storeInCache);
|
|
20675
20760
|
const serverTelemetryManager = initializeServerTelemetryManager(this.apiId, this.config.auth.clientId, this.correlationId, this.browserStorage, this.logger, undefined, this.config.system.serverTelemetryEnabled);
|
|
20676
20761
|
serverTelemetryManager.clearNativeBrokerErrorCode();
|
|
20677
20762
|
return authResult;
|
|
@@ -20721,10 +20806,10 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
20721
20806
|
// Ensure expires_in is in number format
|
|
20722
20807
|
response.expires_in = Number(response.expires_in);
|
|
20723
20808
|
// generate authenticationResult
|
|
20724
|
-
const result = await this.generateAuthenticationResult(response, request, idTokenClaims, baseAccount, authority.canonicalAuthority, reqTimestamp);
|
|
20809
|
+
const result = await invokeAsync(this.generateAuthenticationResult.bind(this), NativeGenerateAuthResult, this.logger, this.performanceClient, this.correlationId)(response, request, idTokenClaims, baseAccount, authority.canonicalAuthority, reqTimestamp);
|
|
20725
20810
|
// cache accounts and tokens in the appropriate storage
|
|
20726
|
-
await this.cacheAccount(baseAccount, isKmsi(idTokenClaims));
|
|
20727
|
-
await this.cacheNativeTokens(response, request, homeAccountIdentifier, idTokenClaims, result.tenantId, reqTimestamp, authority.getPreferredCache(), // environment
|
|
20811
|
+
await invokeAsync(this.cacheAccount.bind(this), PlatformAuthCacheAccount, this.logger, this.performanceClient, this.correlationId)(baseAccount, isKmsi(idTokenClaims));
|
|
20812
|
+
await invokeAsync(this.cacheNativeTokens.bind(this), PlatformAuthCacheNativeTokens, this.logger, this.performanceClient, this.correlationId)(response, request, homeAccountIdentifier, idTokenClaims, result.tenantId, reqTimestamp, authority.getPreferredCache(), // environment
|
|
20728
20813
|
storeInCache);
|
|
20729
20814
|
return result;
|
|
20730
20815
|
}
|
|
@@ -20976,8 +21061,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
20976
21061
|
* attributeTokens is destructured out because PlatformAuthRequest represents it as a pre-serialized string, not the caller-provided Array<string>.
|
|
20977
21062
|
*/
|
|
20978
21063
|
const { scopes, claims, extraParametersNoCache, dpopNonce } = request;
|
|
20979
|
-
const scopeSet = new ScopeSet(scopes || [], this.correlationId);
|
|
20980
|
-
scopeSet.appendScopes(OIDC_DEFAULT_SCOPES);
|
|
21064
|
+
const scopeSet = new ScopeSet([...(scopes || []), ...OIDC_DEFAULT_SCOPES], this.correlationId);
|
|
20981
21065
|
const mergedClaims = buildMergedClaims(claims, configClaims?.length ? configClaims : undefined);
|
|
20982
21066
|
const hasAttributeTokens = !!request.attributeTokens?.length;
|
|
20983
21067
|
this.performanceClient?.addFields({
|
|
@@ -21816,7 +21900,7 @@ function buildConfiguration({ auth: userInputAuth, cache: userInputCache, system
|
|
|
21816
21900
|
* Licensed under the MIT License.
|
|
21817
21901
|
*/
|
|
21818
21902
|
class PlatformAuthExtensionHandler {
|
|
21819
|
-
constructor(logger, handshakeTimeoutMs, performanceClient, extensionId) {
|
|
21903
|
+
constructor(logger, handshakeTimeoutMs, performanceClient, extensionId, correlationId) {
|
|
21820
21904
|
this.logger = logger;
|
|
21821
21905
|
this.handshakeTimeoutMs = handshakeTimeoutMs;
|
|
21822
21906
|
this.extensionId = extensionId;
|
|
@@ -21825,7 +21909,8 @@ class PlatformAuthExtensionHandler {
|
|
|
21825
21909
|
this.messageChannel = new MessageChannel();
|
|
21826
21910
|
this.windowListener = this.onWindowMessage.bind(this); // Window event callback doesn't have access to 'this' unless it's bound
|
|
21827
21911
|
this.performanceClient = performanceClient;
|
|
21828
|
-
this.
|
|
21912
|
+
this.correlationId = correlationId || createNewGuid();
|
|
21913
|
+
this.handshakeEvent = this.performanceClient.startMeasurement(NativeMessageHandlerHandshake, this.correlationId);
|
|
21829
21914
|
this.platformAuthType =
|
|
21830
21915
|
PlatformAuthConstants.PLATFORM_EXTENSION_PROVIDER;
|
|
21831
21916
|
}
|
|
@@ -21834,29 +21919,51 @@ class PlatformAuthExtensionHandler {
|
|
|
21834
21919
|
* @param request
|
|
21835
21920
|
*/
|
|
21836
21921
|
async sendMessage(request) {
|
|
21837
|
-
this.
|
|
21838
|
-
|
|
21839
|
-
|
|
21840
|
-
|
|
21841
|
-
delete extensionRequest.resourceRequestUri;
|
|
21842
|
-
const messageBody = {
|
|
21843
|
-
method: NativeExtensionMethod.GetToken,
|
|
21844
|
-
request: extensionRequest,
|
|
21845
|
-
};
|
|
21846
|
-
const req = {
|
|
21847
|
-
channel: PlatformAuthConstants.CHANNEL_ID,
|
|
21848
|
-
extensionId: this.extensionId,
|
|
21849
|
-
responseId: createNewGuid(),
|
|
21850
|
-
body: messageBody,
|
|
21851
|
-
};
|
|
21852
|
-
this.logger.trace(`1qadfi ${this.platformAuthType}`, request.correlationId);
|
|
21853
|
-
this.logger.tracePii(`1xm533 ${this.platformAuthType} ${JSON.stringify(req)}`, request.correlationId);
|
|
21854
|
-
this.messageChannel.port1.postMessage(req);
|
|
21855
|
-
const response = await new Promise((resolve, reject) => {
|
|
21856
|
-
this.resolvers.set(req.responseId, { resolve, reject });
|
|
21922
|
+
const correlationId = this.getCorrelationId(request.correlationId);
|
|
21923
|
+
const sendMessageMeasurement = this.performanceClient.startMeasurement(PlatformAuthExtensionGetToken, correlationId);
|
|
21924
|
+
sendMessageMeasurement.add({
|
|
21925
|
+
platformAuthProviderType: this.platformAuthType,
|
|
21857
21926
|
});
|
|
21858
|
-
|
|
21859
|
-
|
|
21927
|
+
this.logger.trace(`0on4p2 ${this.platformAuthType}`, correlationId);
|
|
21928
|
+
try {
|
|
21929
|
+
// fall back to native calls
|
|
21930
|
+
const extensionRequest = { ...request };
|
|
21931
|
+
delete extensionRequest.resourceRequestMethod;
|
|
21932
|
+
delete extensionRequest.resourceRequestUri;
|
|
21933
|
+
const messageBody = {
|
|
21934
|
+
method: NativeExtensionMethod.GetToken,
|
|
21935
|
+
request: extensionRequest,
|
|
21936
|
+
};
|
|
21937
|
+
const req = {
|
|
21938
|
+
channel: PlatformAuthConstants.CHANNEL_ID,
|
|
21939
|
+
extensionId: this.extensionId,
|
|
21940
|
+
responseId: createNewGuid(),
|
|
21941
|
+
body: messageBody,
|
|
21942
|
+
};
|
|
21943
|
+
this.logger.trace(`1qadfi ${this.platformAuthType}`, correlationId);
|
|
21944
|
+
this.logger.tracePii(`1xm533 ${this.platformAuthType} ${JSON.stringify(req)}`, correlationId);
|
|
21945
|
+
this.messageChannel.port1.postMessage(req);
|
|
21946
|
+
const response = await new Promise((resolve, reject) => {
|
|
21947
|
+
this.resolvers.set(req.responseId, {
|
|
21948
|
+
resolve,
|
|
21949
|
+
reject,
|
|
21950
|
+
correlationId,
|
|
21951
|
+
});
|
|
21952
|
+
});
|
|
21953
|
+
const validatedResponse = this.validatePlatformBrokerResponse(response, correlationId);
|
|
21954
|
+
sendMessageMeasurement.end({
|
|
21955
|
+
success: true,
|
|
21956
|
+
platformAuthProviderType: this.platformAuthType,
|
|
21957
|
+
});
|
|
21958
|
+
return validatedResponse;
|
|
21959
|
+
}
|
|
21960
|
+
catch (e) {
|
|
21961
|
+
sendMessageMeasurement.end({
|
|
21962
|
+
success: false,
|
|
21963
|
+
platformAuthProviderType: this.platformAuthType,
|
|
21964
|
+
}, e);
|
|
21965
|
+
throw e;
|
|
21966
|
+
}
|
|
21860
21967
|
}
|
|
21861
21968
|
/**
|
|
21862
21969
|
* Returns an instance of the MessageHandler that has successfully established a connection with an extension
|
|
@@ -21867,23 +21974,51 @@ class PlatformAuthExtensionHandler {
|
|
|
21867
21974
|
*/
|
|
21868
21975
|
static async createProvider(logger, handshakeTimeoutMs, performanceClient, correlationId) {
|
|
21869
21976
|
logger.trace("15zfnw", correlationId);
|
|
21977
|
+
const createProviderMeasurement = performanceClient.startMeasurement(PlatformAuthExtensionCreateProvider, correlationId);
|
|
21870
21978
|
try {
|
|
21871
|
-
const preferredProvider = new PlatformAuthExtensionHandler(logger, handshakeTimeoutMs, performanceClient, PlatformAuthConstants.PREFERRED_EXTENSION_ID);
|
|
21872
|
-
await preferredProvider.sendHandshakeRequest(
|
|
21979
|
+
const preferredProvider = new PlatformAuthExtensionHandler(logger, handshakeTimeoutMs, performanceClient, PlatformAuthConstants.PREFERRED_EXTENSION_ID, correlationId);
|
|
21980
|
+
await preferredProvider.sendHandshakeRequest();
|
|
21981
|
+
createProviderMeasurement.add({
|
|
21982
|
+
platformAuthProviderAvailable: true,
|
|
21983
|
+
platformAuthProviderType: PlatformAuthConstants.PLATFORM_EXTENSION_PROVIDER,
|
|
21984
|
+
});
|
|
21985
|
+
createProviderMeasurement.end({
|
|
21986
|
+
platformAuthProviderAvailable: true,
|
|
21987
|
+
platformAuthProviderType: PlatformAuthConstants.PLATFORM_EXTENSION_PROVIDER,
|
|
21988
|
+
});
|
|
21873
21989
|
return preferredProvider;
|
|
21874
21990
|
}
|
|
21875
21991
|
catch (e) {
|
|
21876
21992
|
// If preferred extension fails for whatever reason, fallback to using any installed extension
|
|
21877
|
-
|
|
21878
|
-
|
|
21879
|
-
|
|
21993
|
+
try {
|
|
21994
|
+
const backupProvider = new PlatformAuthExtensionHandler(logger, handshakeTimeoutMs, performanceClient, undefined, correlationId);
|
|
21995
|
+
await backupProvider.sendHandshakeRequest();
|
|
21996
|
+
createProviderMeasurement.add({
|
|
21997
|
+
platformAuthProviderAvailable: true,
|
|
21998
|
+
platformAuthProviderType: PlatformAuthConstants.PLATFORM_EXTENSION_PROVIDER,
|
|
21999
|
+
});
|
|
22000
|
+
createProviderMeasurement.end({
|
|
22001
|
+
platformAuthProviderAvailable: true,
|
|
22002
|
+
platformAuthProviderType: PlatformAuthConstants.PLATFORM_EXTENSION_PROVIDER,
|
|
22003
|
+
});
|
|
22004
|
+
return backupProvider;
|
|
22005
|
+
}
|
|
22006
|
+
catch (backupError) {
|
|
22007
|
+
createProviderMeasurement.add({
|
|
22008
|
+
platformAuthProviderAvailable: false,
|
|
22009
|
+
});
|
|
22010
|
+
createProviderMeasurement.end({
|
|
22011
|
+
platformAuthProviderAvailable: false,
|
|
22012
|
+
}, backupError);
|
|
22013
|
+
throw backupError;
|
|
22014
|
+
}
|
|
21880
22015
|
}
|
|
21881
22016
|
}
|
|
21882
22017
|
/**
|
|
21883
22018
|
* Send handshake request helper.
|
|
21884
22019
|
*/
|
|
21885
|
-
async sendHandshakeRequest(
|
|
21886
|
-
this.logger.trace(`1dpg9o ${this.platformAuthType}`, correlationId);
|
|
22020
|
+
async sendHandshakeRequest() {
|
|
22021
|
+
this.logger.trace(`1dpg9o ${this.platformAuthType}`, this.correlationId);
|
|
21887
22022
|
// Register this event listener before sending handshake
|
|
21888
22023
|
window.addEventListener("message", this.windowListener, false); // false is important, because content script message processing should work first
|
|
21889
22024
|
const req = {
|
|
@@ -21897,13 +22032,18 @@ class PlatformAuthExtensionHandler {
|
|
|
21897
22032
|
this.handshakeEvent.add({
|
|
21898
22033
|
extensionId: this.extensionId,
|
|
21899
22034
|
extensionHandshakeTimeoutMs: this.handshakeTimeoutMs,
|
|
22035
|
+
platformAuthRequestCorrelationId: this.correlationId,
|
|
21900
22036
|
});
|
|
21901
22037
|
this.messageChannel.port1.onmessage = (event) => {
|
|
21902
22038
|
this.onChannelMessage(event);
|
|
21903
22039
|
};
|
|
21904
22040
|
window.postMessage(req, window.origin, [this.messageChannel.port2]);
|
|
21905
22041
|
return new Promise((resolve, reject) => {
|
|
21906
|
-
this.handshakeResolvers.set(req.responseId, {
|
|
22042
|
+
this.handshakeResolvers.set(req.responseId, {
|
|
22043
|
+
resolve,
|
|
22044
|
+
reject,
|
|
22045
|
+
correlationId: this.correlationId,
|
|
22046
|
+
});
|
|
21907
22047
|
this.timeoutId = window.setTimeout(() => {
|
|
21908
22048
|
/*
|
|
21909
22049
|
* Throw an error if neither HandshakeResponse nor original Handshake request are received in a reasonable timeframe.
|
|
@@ -21912,11 +22052,14 @@ class PlatformAuthExtensionHandler {
|
|
|
21912
22052
|
window.removeEventListener("message", this.windowListener, false);
|
|
21913
22053
|
this.messageChannel.port1.close();
|
|
21914
22054
|
this.messageChannel.port2.close();
|
|
22055
|
+
this.handshakeEvent.add({
|
|
22056
|
+
extensionHandshakeTimedOut: true,
|
|
22057
|
+
});
|
|
21915
22058
|
this.handshakeEvent.end({
|
|
21916
22059
|
extensionHandshakeTimedOut: true,
|
|
21917
22060
|
success: false,
|
|
21918
22061
|
});
|
|
21919
|
-
reject(createBrowserAuthError(nativeHandshakeTimeout,
|
|
22062
|
+
reject(createBrowserAuthError(nativeHandshakeTimeout, this.correlationId));
|
|
21920
22063
|
this.handshakeResolvers.delete(req.responseId);
|
|
21921
22064
|
}, this.handshakeTimeoutMs); // Use a reasonable timeout in milliseconds here
|
|
21922
22065
|
});
|
|
@@ -21926,7 +22069,7 @@ class PlatformAuthExtensionHandler {
|
|
|
21926
22069
|
* @param event
|
|
21927
22070
|
*/
|
|
21928
22071
|
onWindowMessage(event) {
|
|
21929
|
-
|
|
22072
|
+
let correlationId = createGuid();
|
|
21930
22073
|
this.logger.trace(`0jpn5u ${this.platformAuthType}`, correlationId);
|
|
21931
22074
|
// We only accept messages from ourselves
|
|
21932
22075
|
if (event.source !== window) {
|
|
@@ -21950,6 +22093,7 @@ class PlatformAuthExtensionHandler {
|
|
|
21950
22093
|
this.logger.trace(`07buhm ${this.platformAuthType} ${request.responseId}`, correlationId);
|
|
21951
22094
|
return;
|
|
21952
22095
|
}
|
|
22096
|
+
correlationId = handshakeResolver.correlationId;
|
|
21953
22097
|
// If we receive this message back it means no extension intercepted the request, meaning no extension supporting handshake protocol is installed
|
|
21954
22098
|
this.logger.verbose(request.extensionId
|
|
21955
22099
|
? `0xrkug ${request.extensionId}`
|
|
@@ -21958,11 +22102,15 @@ class PlatformAuthExtensionHandler {
|
|
|
21958
22102
|
this.messageChannel.port1.close();
|
|
21959
22103
|
this.messageChannel.port2.close();
|
|
21960
22104
|
window.removeEventListener("message", this.windowListener, false);
|
|
22105
|
+
this.handshakeEvent.add({
|
|
22106
|
+
extensionInstalled: false,
|
|
22107
|
+
});
|
|
21961
22108
|
this.handshakeEvent.end({
|
|
21962
22109
|
success: false,
|
|
21963
22110
|
extensionInstalled: false,
|
|
21964
22111
|
});
|
|
21965
|
-
handshakeResolver.reject(createBrowserAuthError(nativeExtensionNotInstalled,
|
|
22112
|
+
handshakeResolver.reject(createBrowserAuthError(nativeExtensionNotInstalled, correlationId));
|
|
22113
|
+
this.handshakeResolvers.delete(request.responseId);
|
|
21966
22114
|
}
|
|
21967
22115
|
}
|
|
21968
22116
|
/**
|
|
@@ -21970,36 +22118,47 @@ class PlatformAuthExtensionHandler {
|
|
|
21970
22118
|
* @param event
|
|
21971
22119
|
*/
|
|
21972
22120
|
onChannelMessage(event) {
|
|
21973
|
-
const correlationId = createGuid();
|
|
21974
|
-
this.logger.trace(`1py8yf ${this.platformAuthType}`, correlationId);
|
|
21975
22121
|
const request = event.data;
|
|
21976
|
-
const
|
|
21977
|
-
const
|
|
22122
|
+
const responseId = request?.responseId;
|
|
22123
|
+
const resolver = responseId
|
|
22124
|
+
? this.resolvers.get(responseId)
|
|
22125
|
+
: undefined;
|
|
22126
|
+
const handshakeResolver = responseId
|
|
22127
|
+
? this.handshakeResolvers.get(responseId)
|
|
22128
|
+
: undefined;
|
|
22129
|
+
const correlationId = resolver?.correlationId ||
|
|
22130
|
+
handshakeResolver?.correlationId ||
|
|
22131
|
+
createGuid();
|
|
22132
|
+
this.logger.trace(`1py8yf ${this.platformAuthType}`, correlationId);
|
|
21978
22133
|
try {
|
|
21979
22134
|
const method = request.body.method;
|
|
21980
22135
|
if (method === NativeExtensionMethod.Response) {
|
|
21981
22136
|
if (!resolver) {
|
|
21982
22137
|
return;
|
|
21983
22138
|
}
|
|
21984
|
-
|
|
21985
|
-
|
|
21986
|
-
|
|
21987
|
-
|
|
21988
|
-
|
|
21989
|
-
|
|
21990
|
-
|
|
21991
|
-
if (response.result
|
|
21992
|
-
response.result["
|
|
21993
|
-
|
|
22139
|
+
try {
|
|
22140
|
+
const response = request.body.response;
|
|
22141
|
+
this.logger.trace(`19hpgm ${this.platformAuthType}`, correlationId);
|
|
22142
|
+
this.logger.tracePii(`179a24 ${this.platformAuthType} ${JSON.stringify(response)}`, correlationId);
|
|
22143
|
+
if (response.status !== "Success") {
|
|
22144
|
+
resolver.reject(createNativeAuthError(response.code, correlationId, response.description, response.ext));
|
|
22145
|
+
}
|
|
22146
|
+
else if (response.result) {
|
|
22147
|
+
if (response.result["code"] &&
|
|
22148
|
+
response.result["description"]) {
|
|
22149
|
+
resolver.reject(createNativeAuthError(response.result["code"], correlationId, response.result["description"], response.result["ext"]));
|
|
22150
|
+
}
|
|
22151
|
+
else {
|
|
22152
|
+
resolver.resolve(response.result);
|
|
22153
|
+
}
|
|
21994
22154
|
}
|
|
21995
22155
|
else {
|
|
21996
|
-
|
|
22156
|
+
throw createAuthError(unexpectedError, correlationId, "Event does not contain result.");
|
|
21997
22157
|
}
|
|
21998
22158
|
}
|
|
21999
|
-
|
|
22000
|
-
|
|
22159
|
+
finally {
|
|
22160
|
+
this.resolvers.delete(request.responseId);
|
|
22001
22161
|
}
|
|
22002
|
-
this.resolvers.delete(request.responseId);
|
|
22003
22162
|
}
|
|
22004
22163
|
else if (method === NativeExtensionMethod.HandshakeResponse) {
|
|
22005
22164
|
if (!handshakeResolver) {
|
|
@@ -22009,25 +22168,46 @@ class PlatformAuthExtensionHandler {
|
|
|
22009
22168
|
clearTimeout(this.timeoutId); // Clear setTimeout
|
|
22010
22169
|
window.removeEventListener("message", this.windowListener, false); // Remove 'No extension' listener
|
|
22011
22170
|
this.extensionId = request.extensionId;
|
|
22012
|
-
this.extensionVersion = request.body.version;
|
|
22171
|
+
this.extensionVersion = request.body.version?.toString();
|
|
22013
22172
|
this.logger.verbose(`0yf5ib ${this.platformAuthType} ${this.extensionId}`, correlationId);
|
|
22173
|
+
this.handshakeEvent.add({
|
|
22174
|
+
extensionId: this.extensionId,
|
|
22175
|
+
extensionVersion: this.extensionVersion,
|
|
22176
|
+
extensionInstalled: true,
|
|
22177
|
+
});
|
|
22014
22178
|
this.handshakeEvent.end({
|
|
22179
|
+
extensionId: this.extensionId,
|
|
22180
|
+
extensionVersion: this.extensionVersion,
|
|
22015
22181
|
extensionInstalled: true,
|
|
22016
22182
|
success: true,
|
|
22017
22183
|
});
|
|
22018
22184
|
handshakeResolver.resolve();
|
|
22019
22185
|
this.handshakeResolvers.delete(request.responseId);
|
|
22020
22186
|
}
|
|
22021
|
-
|
|
22187
|
+
else if (resolver) {
|
|
22188
|
+
this.resolvers.delete(request.responseId);
|
|
22189
|
+
resolver.reject(createAuthError(unexpectedError, correlationId, "Extension response contains an unexpected method."));
|
|
22190
|
+
}
|
|
22022
22191
|
}
|
|
22023
22192
|
catch (err) {
|
|
22024
22193
|
this.logger.error("0xf978", correlationId);
|
|
22025
22194
|
this.logger.errorPii(`04i99o ${err}`, correlationId);
|
|
22026
22195
|
this.logger.errorPii(`0xdvsy ${event}`, correlationId);
|
|
22027
22196
|
if (resolver) {
|
|
22028
|
-
|
|
22197
|
+
this.resolvers.delete(responseId);
|
|
22198
|
+
resolver.reject(err instanceof AuthError
|
|
22199
|
+
? err
|
|
22200
|
+
: createAuthError(unexpectedError, correlationId, "Unable to parse extension response."));
|
|
22029
22201
|
}
|
|
22030
22202
|
else if (handshakeResolver) {
|
|
22203
|
+
clearTimeout(this.timeoutId);
|
|
22204
|
+
window.removeEventListener("message", this.windowListener, false);
|
|
22205
|
+
this.messageChannel.port1.close();
|
|
22206
|
+
this.messageChannel.port2.close();
|
|
22207
|
+
this.handshakeEvent.end({
|
|
22208
|
+
success: false,
|
|
22209
|
+
});
|
|
22210
|
+
this.handshakeResolvers.delete(responseId);
|
|
22031
22211
|
handshakeResolver.reject(err);
|
|
22032
22212
|
}
|
|
22033
22213
|
}
|
|
@@ -22036,19 +22216,34 @@ class PlatformAuthExtensionHandler {
|
|
|
22036
22216
|
* Validates native platform response before processing
|
|
22037
22217
|
* @param response
|
|
22038
22218
|
*/
|
|
22039
|
-
validatePlatformBrokerResponse(response) {
|
|
22040
|
-
|
|
22041
|
-
|
|
22042
|
-
|
|
22043
|
-
|
|
22044
|
-
|
|
22045
|
-
|
|
22219
|
+
validatePlatformBrokerResponse(response, correlationId) {
|
|
22220
|
+
const responseCorrelationId = this.getCorrelationId(correlationId);
|
|
22221
|
+
const validationMeasurement = this.performanceClient.startMeasurement(PlatformAuthExtensionValidateResponse, responseCorrelationId);
|
|
22222
|
+
if (response &&
|
|
22223
|
+
Object.prototype.hasOwnProperty.call(response, "access_token") &&
|
|
22224
|
+
Object.prototype.hasOwnProperty.call(response, "id_token") &&
|
|
22225
|
+
Object.prototype.hasOwnProperty.call(response, "client_info") &&
|
|
22226
|
+
Object.prototype.hasOwnProperty.call(response, "account") &&
|
|
22227
|
+
Object.prototype.hasOwnProperty.call(response, "scope") &&
|
|
22228
|
+
Object.prototype.hasOwnProperty.call(response, "expires_in")) {
|
|
22229
|
+
validationMeasurement.end({
|
|
22230
|
+
success: true,
|
|
22231
|
+
platformAuthProviderType: this.platformAuthType,
|
|
22232
|
+
});
|
|
22046
22233
|
return response;
|
|
22047
22234
|
}
|
|
22048
22235
|
else {
|
|
22049
|
-
|
|
22236
|
+
const error = createAuthError(unexpectedError, responseCorrelationId, "Response missing expected properties.");
|
|
22237
|
+
validationMeasurement.end({
|
|
22238
|
+
success: false,
|
|
22239
|
+
platformAuthProviderType: this.platformAuthType,
|
|
22240
|
+
}, error);
|
|
22241
|
+
throw error;
|
|
22050
22242
|
}
|
|
22051
22243
|
}
|
|
22244
|
+
getCorrelationId(correlationId) {
|
|
22245
|
+
return correlationId || this.correlationId;
|
|
22246
|
+
}
|
|
22052
22247
|
/**
|
|
22053
22248
|
* Returns the Id for the browser extension this handler is communicating with
|
|
22054
22249
|
* @returns
|
|
@@ -22086,17 +22281,49 @@ class PlatformAuthDOMHandler {
|
|
|
22086
22281
|
}
|
|
22087
22282
|
static async createProvider(logger, performanceClient, correlationId) {
|
|
22088
22283
|
logger.trace("12mj4a", correlationId);
|
|
22089
|
-
|
|
22090
|
-
|
|
22091
|
-
const
|
|
22092
|
-
|
|
22093
|
-
|
|
22094
|
-
|
|
22284
|
+
const createProviderMeasurement = performanceClient.startMeasurement(PlatformAuthDOMCreateProvider, correlationId);
|
|
22285
|
+
try {
|
|
22286
|
+
const platformAuthentication = window.navigator.platformAuthentication;
|
|
22287
|
+
if (!platformAuthentication) {
|
|
22288
|
+
createProviderMeasurement.add({
|
|
22289
|
+
platformAuthProviderAvailable: false,
|
|
22290
|
+
});
|
|
22291
|
+
createProviderMeasurement.end({
|
|
22292
|
+
platformAuthProviderAvailable: false,
|
|
22293
|
+
});
|
|
22294
|
+
return undefined;
|
|
22295
|
+
}
|
|
22296
|
+
const supportedContracts = (await invokeAsync(platformAuthentication.getSupportedContracts.bind(platformAuthentication), PlatformAuthDOMGetSupportedContracts, logger, performanceClient, correlationId)(PlatformAuthConstants.MICROSOFT_ENTRA_BROKERID));
|
|
22297
|
+
const contractSupported = supportedContracts?.includes(PlatformAuthConstants.PLATFORM_DOM_APIS);
|
|
22298
|
+
if (contractSupported) {
|
|
22095
22299
|
logger.trace("1h5q1r", correlationId);
|
|
22300
|
+
createProviderMeasurement.add({
|
|
22301
|
+
platformAuthProviderAvailable: true,
|
|
22302
|
+
platformAuthProviderType: PlatformAuthConstants.PLATFORM_DOM_PROVIDER,
|
|
22303
|
+
});
|
|
22304
|
+
createProviderMeasurement.end({
|
|
22305
|
+
platformAuthProviderAvailable: true,
|
|
22306
|
+
platformAuthProviderType: PlatformAuthConstants.PLATFORM_DOM_PROVIDER,
|
|
22307
|
+
});
|
|
22096
22308
|
return new PlatformAuthDOMHandler(logger, performanceClient, correlationId);
|
|
22097
22309
|
}
|
|
22310
|
+
createProviderMeasurement.add({
|
|
22311
|
+
platformAuthProviderAvailable: false,
|
|
22312
|
+
});
|
|
22313
|
+
createProviderMeasurement.end({
|
|
22314
|
+
platformAuthProviderAvailable: false,
|
|
22315
|
+
});
|
|
22316
|
+
return undefined;
|
|
22317
|
+
}
|
|
22318
|
+
catch (e) {
|
|
22319
|
+
createProviderMeasurement.add({
|
|
22320
|
+
platformAuthProviderAvailable: false,
|
|
22321
|
+
});
|
|
22322
|
+
createProviderMeasurement.end({
|
|
22323
|
+
platformAuthProviderAvailable: false,
|
|
22324
|
+
}, e);
|
|
22325
|
+
throw e;
|
|
22098
22326
|
}
|
|
22099
|
-
return undefined;
|
|
22100
22327
|
}
|
|
22101
22328
|
/**
|
|
22102
22329
|
* Returns the Id for the broker extension this handler is communicating with
|
|
@@ -22117,31 +22344,46 @@ class PlatformAuthDOMHandler {
|
|
|
22117
22344
|
* @returns
|
|
22118
22345
|
*/
|
|
22119
22346
|
async sendMessage(request) {
|
|
22120
|
-
this.
|
|
22347
|
+
const correlationId = this.getCorrelationId(request.correlationId);
|
|
22348
|
+
const sendMessageMeasurement = this.performanceClient.startMeasurement(PlatformAuthDOMGetToken, correlationId);
|
|
22349
|
+
sendMessageMeasurement.add({
|
|
22350
|
+
platformAuthProviderType: this.platformAuthType,
|
|
22351
|
+
});
|
|
22352
|
+
this.logger.trace(`02bcil ${this.platformAuthType}`, correlationId);
|
|
22121
22353
|
try {
|
|
22122
|
-
const platformDOMRequest = this.initializePlatformDOMRequest(request);
|
|
22354
|
+
const platformDOMRequest = invoke(this.initializePlatformDOMRequest.bind(this), PlatformAuthDOMInitializeRequest, this.logger, this.performanceClient, correlationId)(request);
|
|
22123
22355
|
const response =
|
|
22124
22356
|
// @ts-ignore
|
|
22125
22357
|
await window.navigator.platformAuthentication.executeGetToken(platformDOMRequest);
|
|
22126
|
-
|
|
22358
|
+
const validatedResponse = this.validatePlatformBrokerResponse(response, correlationId);
|
|
22359
|
+
sendMessageMeasurement.end({
|
|
22360
|
+
success: true,
|
|
22361
|
+
platformAuthProviderType: this.platformAuthType,
|
|
22362
|
+
});
|
|
22363
|
+
return validatedResponse;
|
|
22127
22364
|
}
|
|
22128
22365
|
catch (e) {
|
|
22129
|
-
this.logger.error(`11im7g ${this.platformAuthType}`,
|
|
22366
|
+
this.logger.error(`11im7g ${this.platformAuthType}`, correlationId);
|
|
22367
|
+
sendMessageMeasurement.end({
|
|
22368
|
+
success: false,
|
|
22369
|
+
platformAuthProviderType: this.platformAuthType,
|
|
22370
|
+
}, e);
|
|
22130
22371
|
throw e;
|
|
22131
22372
|
}
|
|
22132
22373
|
}
|
|
22133
22374
|
initializePlatformDOMRequest(request) {
|
|
22134
|
-
this.logger.trace(`15d6yv ${this.platformAuthType}`, request.correlationId);
|
|
22135
22375
|
const { accountId, clientId, authority, scope, redirectUri, correlationId, state, preferBinding, enclave, reqCnf, extraParametersNoCache, extraParameters, ...remainingProperties } = request;
|
|
22376
|
+
const requestCorrelationId = this.getCorrelationId(correlationId);
|
|
22377
|
+
this.logger.trace(`15d6yv ${this.platformAuthType}`, requestCorrelationId);
|
|
22136
22378
|
delete remainingProperties.resourceRequestMethod;
|
|
22137
22379
|
delete remainingProperties.resourceRequestUri;
|
|
22138
|
-
const validExtraParameters = this.getDOMExtraParams(remainingProperties,
|
|
22380
|
+
const validExtraParameters = this.getDOMExtraParams(remainingProperties, requestCorrelationId);
|
|
22139
22381
|
const platformDOMRequest = {
|
|
22140
22382
|
accountId: accountId,
|
|
22141
22383
|
brokerId: this.getExtensionId(),
|
|
22142
22384
|
authority: authority,
|
|
22143
22385
|
clientId: clientId,
|
|
22144
|
-
correlationId:
|
|
22386
|
+
correlationId: requestCorrelationId,
|
|
22145
22387
|
extraParameters: {
|
|
22146
22388
|
...extraParameters,
|
|
22147
22389
|
...validExtraParameters,
|
|
@@ -22158,32 +22400,68 @@ class PlatformAuthDOMHandler {
|
|
|
22158
22400
|
return platformDOMRequest;
|
|
22159
22401
|
}
|
|
22160
22402
|
validatePlatformBrokerResponse(response, correlationId) {
|
|
22161
|
-
|
|
22162
|
-
|
|
22163
|
-
|
|
22164
|
-
|
|
22165
|
-
|
|
22166
|
-
|
|
22167
|
-
|
|
22403
|
+
const validationMeasurement = this.performanceClient.startMeasurement(PlatformAuthDOMValidateResponse, correlationId);
|
|
22404
|
+
const requiredKeys = [
|
|
22405
|
+
"accessToken",
|
|
22406
|
+
"idToken",
|
|
22407
|
+
"clientInfo",
|
|
22408
|
+
"account",
|
|
22409
|
+
"scopes",
|
|
22410
|
+
"expiresIn",
|
|
22411
|
+
];
|
|
22412
|
+
const isValid = response &&
|
|
22413
|
+
requiredKeys.every((key) => Object.prototype.hasOwnProperty.call(response, key));
|
|
22414
|
+
if (response &&
|
|
22415
|
+
Object.prototype.hasOwnProperty.call(response, "isSuccess")) {
|
|
22416
|
+
if (isValid) {
|
|
22168
22417
|
this.logger.trace(`0h4vei ${this.platformAuthType}`, correlationId);
|
|
22169
|
-
|
|
22418
|
+
try {
|
|
22419
|
+
const validatedResponse = this.convertToPlatformBrokerResponse(response, correlationId);
|
|
22420
|
+
validationMeasurement.end({
|
|
22421
|
+
success: true,
|
|
22422
|
+
platformAuthProviderType: this.platformAuthType,
|
|
22423
|
+
});
|
|
22424
|
+
return validatedResponse;
|
|
22425
|
+
}
|
|
22426
|
+
catch (e) {
|
|
22427
|
+
validationMeasurement.end({
|
|
22428
|
+
success: false,
|
|
22429
|
+
platformAuthProviderType: this.platformAuthType,
|
|
22430
|
+
}, e);
|
|
22431
|
+
throw e;
|
|
22432
|
+
}
|
|
22170
22433
|
}
|
|
22171
|
-
else if (
|
|
22434
|
+
else if (Object.prototype.hasOwnProperty.call(response, "error")) {
|
|
22172
22435
|
const errorResponse = response;
|
|
22173
22436
|
if (errorResponse.isSuccess === false &&
|
|
22174
22437
|
errorResponse.error &&
|
|
22175
22438
|
errorResponse.error.code) {
|
|
22176
22439
|
this.logger.trace(`0g92vm ${this.platformAuthType}`, correlationId);
|
|
22177
|
-
|
|
22440
|
+
const nativeAuthError = createNativeAuthError(errorResponse.error.code, correlationId, errorResponse.error.description, {
|
|
22178
22441
|
error: parseInt(errorResponse.error.errorCode),
|
|
22179
22442
|
protocol_error: errorResponse.error.protocolError,
|
|
22180
22443
|
status: errorResponse.error.status,
|
|
22181
22444
|
properties: errorResponse.error.properties,
|
|
22182
22445
|
});
|
|
22446
|
+
validationMeasurement.end({
|
|
22447
|
+
success: false,
|
|
22448
|
+
platformAuthProviderType: this.platformAuthType,
|
|
22449
|
+
brokerErrorName: errorResponse.error.code,
|
|
22450
|
+
brokerErrorCode: errorResponse.error.errorCode,
|
|
22451
|
+
}, nativeAuthError);
|
|
22452
|
+
throw nativeAuthError;
|
|
22183
22453
|
}
|
|
22184
22454
|
}
|
|
22185
22455
|
}
|
|
22186
|
-
|
|
22456
|
+
const error = createAuthError(unexpectedError, correlationId, "Response missing expected properties.");
|
|
22457
|
+
validationMeasurement.end({
|
|
22458
|
+
success: false,
|
|
22459
|
+
platformAuthProviderType: this.platformAuthType,
|
|
22460
|
+
}, error);
|
|
22461
|
+
throw error;
|
|
22462
|
+
}
|
|
22463
|
+
getCorrelationId(correlationId) {
|
|
22464
|
+
return correlationId || this.correlationId;
|
|
22187
22465
|
}
|
|
22188
22466
|
convertToPlatformBrokerResponse(response, correlationId) {
|
|
22189
22467
|
this.logger.trace(`14913t ${this.platformAuthType}`, correlationId);
|
|
@@ -22245,26 +22523,55 @@ class PlatformAuthDOMHandler {
|
|
|
22245
22523
|
*/
|
|
22246
22524
|
async function getPlatformAuthProvider(logger, performanceClient, correlationId, nativeBrokerHandshakeTimeout, enablePlatformBrokerDOMSupport) {
|
|
22247
22525
|
logger.trace("134j0v", correlationId);
|
|
22526
|
+
const discoveryMeasurement = performanceClient.startMeasurement(PlatformAuthProviderDiscovery, correlationId);
|
|
22248
22527
|
logger.trace(`04c81g ${enablePlatformBrokerDOMSupport}`, correlationId);
|
|
22249
22528
|
let platformAuthProvider;
|
|
22250
22529
|
try {
|
|
22251
22530
|
if (enablePlatformBrokerDOMSupport) {
|
|
22252
22531
|
// Check if DOM platform API is supported first
|
|
22253
|
-
|
|
22532
|
+
try {
|
|
22533
|
+
platformAuthProvider =
|
|
22534
|
+
await PlatformAuthDOMHandler.createProvider(logger, performanceClient, correlationId);
|
|
22535
|
+
}
|
|
22536
|
+
catch (e) {
|
|
22537
|
+
logger.trace("1ij09j", correlationId);
|
|
22538
|
+
}
|
|
22539
|
+
if (platformAuthProvider) {
|
|
22540
|
+
discoveryMeasurement.add({
|
|
22541
|
+
platformAuthProviderType: PlatformAuthConstants.PLATFORM_DOM_PROVIDER,
|
|
22542
|
+
});
|
|
22543
|
+
discoveryMeasurement.end({
|
|
22544
|
+
success: true,
|
|
22545
|
+
platformAuthProviderType: PlatformAuthConstants.PLATFORM_DOM_PROVIDER,
|
|
22546
|
+
});
|
|
22547
|
+
return platformAuthProvider;
|
|
22548
|
+
}
|
|
22254
22549
|
}
|
|
22255
|
-
|
|
22256
|
-
|
|
22257
|
-
|
|
22258
|
-
|
|
22259
|
-
|
|
22260
|
-
|
|
22261
|
-
|
|
22262
|
-
|
|
22263
|
-
|
|
22550
|
+
logger.trace("0l3na8", correlationId);
|
|
22551
|
+
/*
|
|
22552
|
+
* If DOM APIs are not available, check if browser extension is available.
|
|
22553
|
+
* Platform authentication via DOM APIs is preferred over extension APIs.
|
|
22554
|
+
*/
|
|
22555
|
+
platformAuthProvider =
|
|
22556
|
+
await PlatformAuthExtensionHandler.createProvider(logger, nativeBrokerHandshakeTimeout ||
|
|
22557
|
+
DEFAULT_NATIVE_BROKER_HANDSHAKE_TIMEOUT_MS, performanceClient, correlationId);
|
|
22558
|
+
if (platformAuthProvider) {
|
|
22559
|
+
discoveryMeasurement.add({
|
|
22560
|
+
platformAuthProviderType: PlatformAuthConstants.PLATFORM_EXTENSION_PROVIDER,
|
|
22561
|
+
});
|
|
22264
22562
|
}
|
|
22563
|
+
discoveryMeasurement.end({
|
|
22564
|
+
success: !!platformAuthProvider,
|
|
22565
|
+
platformAuthProviderType: platformAuthProvider
|
|
22566
|
+
? PlatformAuthConstants.PLATFORM_EXTENSION_PROVIDER
|
|
22567
|
+
: undefined,
|
|
22568
|
+
});
|
|
22265
22569
|
}
|
|
22266
22570
|
catch (e) {
|
|
22267
22571
|
logger.trace("0icbd7", e);
|
|
22572
|
+
discoveryMeasurement.end({
|
|
22573
|
+
success: false,
|
|
22574
|
+
}, e);
|
|
22268
22575
|
}
|
|
22269
22576
|
return platformAuthProvider;
|
|
22270
22577
|
}
|
|
@@ -22276,8 +22583,22 @@ async function getPlatformAuthProvider(logger, performanceClient, correlationId,
|
|
|
22276
22583
|
* @param platformAuthProvider
|
|
22277
22584
|
* @param authenticationScheme
|
|
22278
22585
|
*/
|
|
22279
|
-
function isPlatformAuthAllowed(config, logger, correlationId, platformAuthProvider, authenticationScheme) {
|
|
22586
|
+
function isPlatformAuthAllowed(config, logger, correlationId, platformAuthProvider, authenticationScheme, performanceClient) {
|
|
22280
22587
|
logger.trace("0uko3r", correlationId);
|
|
22588
|
+
const schemeSupported = !authenticationScheme ||
|
|
22589
|
+
authenticationScheme === AuthenticationScheme.BEARER ||
|
|
22590
|
+
authenticationScheme === AuthenticationScheme.POP;
|
|
22591
|
+
const fields = {
|
|
22592
|
+
allowPlatformBroker: config.system.allowPlatformBroker,
|
|
22593
|
+
...(config.system.allowPlatformBroker && {
|
|
22594
|
+
platformAuthProviderType: platformAuthProvider instanceof PlatformAuthDOMHandler
|
|
22595
|
+
? PlatformAuthConstants.PLATFORM_DOM_PROVIDER
|
|
22596
|
+
: platformAuthProvider
|
|
22597
|
+
? PlatformAuthConstants.PLATFORM_EXTENSION_PROVIDER
|
|
22598
|
+
: undefined,
|
|
22599
|
+
}),
|
|
22600
|
+
};
|
|
22601
|
+
performanceClient?.addFields(fields, correlationId);
|
|
22281
22602
|
// throw an error if allowPlatformBroker is not enabled and allowPlatformBrokerWithDOM is enabled
|
|
22282
22603
|
if (!config.system.allowPlatformBroker &&
|
|
22283
22604
|
config.experimental.allowPlatformBrokerWithDOM) {
|
|
@@ -22293,17 +22614,11 @@ function isPlatformAuthAllowed(config, logger, correlationId, platformAuthProvid
|
|
|
22293
22614
|
// Platform broker auth providers are not available
|
|
22294
22615
|
return false;
|
|
22295
22616
|
}
|
|
22296
|
-
if (
|
|
22297
|
-
|
|
22298
|
-
|
|
22299
|
-
case AuthenticationScheme.POP:
|
|
22300
|
-
logger.trace("18tev1", correlationId);
|
|
22301
|
-
return true;
|
|
22302
|
-
default:
|
|
22303
|
-
logger.trace("1dd2nh", correlationId);
|
|
22304
|
-
return false;
|
|
22305
|
-
}
|
|
22617
|
+
if (!schemeSupported) {
|
|
22618
|
+
logger.trace("1dd2nh", correlationId);
|
|
22619
|
+
return false;
|
|
22306
22620
|
}
|
|
22621
|
+
logger.trace("18tev1", correlationId);
|
|
22307
22622
|
return true;
|
|
22308
22623
|
}
|
|
22309
22624
|
|
|
@@ -23787,6 +24102,9 @@ class StandardController {
|
|
|
23787
24102
|
this.hybridAuthCodeResponses = new Map();
|
|
23788
24103
|
// Initialize performance client
|
|
23789
24104
|
this.performanceClient = this.config.telemetry.client;
|
|
24105
|
+
this.performanceClient.addGlobalFields({
|
|
24106
|
+
allowPlatformBroker: this.config.system.allowPlatformBroker,
|
|
24107
|
+
});
|
|
23790
24108
|
// Initialize environment-specific crypto and token-binding services.
|
|
23791
24109
|
if (this.isBrowserEnvironment) {
|
|
23792
24110
|
this.browserCrypto = new CryptoOps(this.logger, this.performanceClient);
|
|
@@ -24047,9 +24365,9 @@ class StandardController {
|
|
|
24047
24365
|
enforceResourceParameter(this.config.auth.isMcp, request);
|
|
24048
24366
|
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, InteractionType.Redirect, request);
|
|
24049
24367
|
let result;
|
|
24050
|
-
|
|
24051
|
-
|
|
24052
|
-
const nativeClient = new PlatformAuthInteractionClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, ApiId.acquireTokenRedirect, this.performanceClient,
|
|
24368
|
+
const platformAuthProvider = this.platformAuthProvider;
|
|
24369
|
+
if (this.canUsePlatformBroker(request) && platformAuthProvider) {
|
|
24370
|
+
const nativeClient = new PlatformAuthInteractionClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, ApiId.acquireTokenRedirect, this.performanceClient, platformAuthProvider, this.getNativeAccountId(request), this.nativeInternalStorage, correlationId, this.tokenBindingKeyManager);
|
|
24053
24371
|
result = invokeAsync(nativeClient.acquireTokenRedirect.bind(nativeClient), NativeInteractionClientAcquireTokenRedirect, this.logger, this.performanceClient, correlationId)(request, atrMeasurement).catch((e) => {
|
|
24054
24372
|
if (e instanceof NativeAuthError &&
|
|
24055
24373
|
isFatalNativeAuthError(e)) {
|
|
@@ -24734,11 +25052,8 @@ class StandardController {
|
|
|
24734
25052
|
canUsePlatformBroker(request, accountId) {
|
|
24735
25053
|
const correlationId = this.getRequestCorrelationId(request);
|
|
24736
25054
|
this.logger.trace("1n9lbl", correlationId);
|
|
24737
|
-
|
|
24738
|
-
|
|
24739
|
-
return false;
|
|
24740
|
-
}
|
|
24741
|
-
if (!isPlatformAuthAllowed(this.config, this.logger, correlationId, this.platformAuthProvider, request.authenticationScheme)) {
|
|
25055
|
+
const platformAuthAllowed = isPlatformAuthAllowed(this.config, this.logger, correlationId, this.platformAuthProvider, request.authenticationScheme, this.performanceClient);
|
|
25056
|
+
if (!platformAuthAllowed) {
|
|
24742
25057
|
this.logger.trace("0yoy1g", correlationId);
|
|
24743
25058
|
return false;
|
|
24744
25059
|
}
|
|
@@ -25130,7 +25445,7 @@ class StandardController {
|
|
|
25130
25445
|
*/
|
|
25131
25446
|
async acquireTokenSilentNoIframe(silentRequest, cacheLookupPolicy) {
|
|
25132
25447
|
// if the cache policy is set to access_token only, we should not be hitting the native layer yet
|
|
25133
|
-
if (isPlatformAuthAllowed(this.config, this.logger, silentRequest.correlationId, this.platformAuthProvider, silentRequest.authenticationScheme) &&
|
|
25448
|
+
if (isPlatformAuthAllowed(this.config, this.logger, silentRequest.correlationId, this.platformAuthProvider, silentRequest.authenticationScheme, this.performanceClient) &&
|
|
25134
25449
|
silentRequest.account.nativeAccountId) {
|
|
25135
25450
|
this.logger.verbose("0sczo4", silentRequest.correlationId);
|
|
25136
25451
|
this.performanceClient.addFields({ isPlatformBrokerRequest: true }, silentRequest.correlationId);
|