@azure/msal-browser 5.30.0 → 5.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/dist/app/IPublicClientApplication.mjs +4 -1
- package/dist/app/IPublicClientApplication.mjs.map +1 -1
- package/dist/app/PublicClientApplication.mjs +14 -2
- package/dist/app/PublicClientApplication.mjs.map +1 -1
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +10 -23
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +2 -3
- 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 +39 -2
- package/dist/cache/BrowserCacheManager.mjs.map +1 -1
- package/dist/cache/CacheHelpers.mjs +1 -1
- package/dist/cache/CacheKeys.mjs +1 -1
- package/dist/cache/CookieStorage.mjs +1 -1
- package/dist/cache/DatabaseStorage.mjs +1 -1
- package/dist/cache/EncryptedData.mjs +1 -1
- package/dist/cache/LocalStorage.mjs +1 -1
- package/dist/cache/MemoryStorage.mjs +1 -1
- package/dist/cache/SessionStorage.mjs +1 -1
- package/dist/cache/TokenCache.mjs +1 -1
- package/dist/config/Configuration.mjs +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +26 -5
- package/dist/controllers/NestedAppAuthController.mjs.map +1 -1
- package/dist/controllers/StandardController.mjs +44 -11
- package/dist/controllers/StandardController.mjs.map +1 -1
- package/dist/crypto/BrowserCrypto.mjs +5 -3
- package/dist/crypto/BrowserCrypto.mjs.map +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 -4
- package/dist/custom_auth/CustomAuthPublicClientApplication.mjs.map +1 -1
- package/dist/custom_auth/controller/CustomAuthStandardController.mjs +11 -4
- package/dist/custom_auth/controller/CustomAuthStandardController.mjs.map +1 -1
- package/dist/custom_auth/core/CustomAuthAuthority.mjs +3 -3
- package/dist/custom_auth/core/CustomAuthAuthority.mjs.map +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 -4
- package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -3
- package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs.map +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 -8
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs.map +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 -3
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -3
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs.map +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 -7
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs +1 -2
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs +1 -2
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.mjs +1 -2
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.mjs +1 -2
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs +2 -5
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.mjs +1 -2
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.mjs.map +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 -2
- package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs +1 -2
- package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs +1 -2
- package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs +1 -2
- package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.mjs +2 -3
- package/dist/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.mjs.map +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 +32 -27
- package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs.map +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 +6 -2
- package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs.map +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 +7 -5
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs +12 -3
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs.map +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 +9 -39
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.mjs.map +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/BaseResultsV2.mjs.map +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/custom_auth_api/v2/result/SignUpResultsV2.mjs.map +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 +2 -1
- package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs.map +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/state/NewPasswordRequiredStateV2.mjs +1 -2
- package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateTransitionHandlerV2.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 -3
- package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -3
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -3
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs.map +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/state/SignInContinuationStateV2.mjs +1 -2
- package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.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/state/AttributesRequiredStateV2.mjs +1 -2
- package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountCodeRequiredStateV2.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountPasswordRequiredStateV2.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountStateTransitionHelperV2.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 +4 -2
- package/dist/interaction_client/BaseInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs +18 -5
- 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 +2 -1
- package/dist/interaction_client/StandardInteractionClient.mjs.map +1 -1
- package/dist/interaction_handler/InteractionHandler.mjs +1 -1
- package/dist/interaction_handler/SilentHandler.mjs +1 -1
- package/dist/log-strings-mapping.json +695 -695
- 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 +2 -1
- package/dist/protocol/Authorize.mjs.map +1 -1
- package/dist/redirect_bridge/index.mjs +1 -1
- package/dist/request/RequestHelpers.mjs +2 -1
- package/dist/request/RequestHelpers.mjs.map +1 -1
- package/dist/request/SilentRequestHelpers.mjs +6 -4
- package/dist/request/SilentRequestHelpers.mjs.map +1 -1
- package/dist/response/ResponseHandler.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceEvents.mjs +7 -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/BrowserDetection.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/IframeMonitor.mjs +1 -1
- package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
- package/dist/utils/PopupMonitor.mjs +1 -1
- package/dist/utils/PopupOriginCheck.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 +2 -2
- package/lib/custom-auth-path/msal-custom-auth.cjs +386 -252
- package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
- package/lib/custom-auth-path/msal-custom-auth.js +386 -252
- package/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
- package/lib/log-strings-mapping.json +2 -2
- package/lib/msal-browser.cjs +411 -153
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +411 -153
- 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 +2 -2
- package/src/app/IPublicClientApplication.ts +16 -0
- package/src/app/PublicClientApplication.ts +22 -0
- package/src/broker/nativeBroker/PlatformAuthDOMHandler.ts +11 -44
- package/src/broker/nativeBroker/PlatformAuthProvider.ts +1 -2
- package/src/broker/nativeBroker/PlatformAuthResponse.ts +2 -6
- package/src/cache/BrowserCacheManager.ts +65 -1
- package/src/controllers/NestedAppAuthController.ts +35 -2
- package/src/controllers/StandardController.ts +76 -12
- package/src/controllers/UnknownOperatingContextController.ts +10 -0
- package/src/crypto/BrowserCrypto.ts +4 -2
- package/src/custom_auth/CustomAuthActionInputs.ts +0 -9
- package/src/custom_auth/CustomAuthPublicClientApplication.ts +0 -3
- package/src/custom_auth/ICustomAuthPublicClientApplicationV2.ts +0 -3
- package/src/custom_auth/controller/CustomAuthStandardController.ts +15 -2
- package/src/custom_auth/core/CustomAuthAuthority.ts +2 -1
- package/src/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.ts +0 -3
- package/src/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.ts +0 -2
- package/src/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.ts +0 -7
- package/src/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.ts +0 -2
- package/src/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.ts +0 -2
- package/src/custom_auth/core/auth_flow/mfa/state/MfaState.ts +0 -6
- package/src/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.ts +0 -1
- package/src/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.ts +0 -1
- package/src/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.ts +0 -4
- package/src/custom_auth/core/auth_flow/v2/CustomAuthResultV2.ts +0 -1
- package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.ts +0 -1
- package/src/custom_auth/core/auth_flow/v2/result/AuthMethodRegistrationChallengeResultV2.ts +0 -2
- package/src/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.ts +0 -2
- package/src/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.ts +0 -2
- package/src/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.ts +0 -2
- package/src/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.ts +0 -2
- package/src/custom_auth/core/auth_flow/v2/result/SubmitPasswordResultV2.ts +0 -2
- package/src/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.ts +0 -2
- package/src/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.ts +0 -1
- package/src/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.ts +0 -3
- package/src/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.ts +0 -1
- package/src/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.ts +0 -1
- package/src/custom_auth/core/auth_flow/v2/state/CompletedStateV2.ts +0 -1
- package/src/custom_auth/core/auth_flow/v2/state/FailedStateV2.ts +0 -1
- package/src/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.ts +0 -1
- package/src/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.ts +8 -6
- package/src/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.ts +1 -0
- package/src/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.ts +43 -29
- package/src/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.ts +21 -2
- package/src/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.ts +12 -8
- package/src/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.ts +35 -4
- package/src/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.ts +10 -47
- package/src/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.ts +1 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.ts +9 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.ts +5 -5
- package/src/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.ts +2 -5
- package/src/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.ts +2 -4
- package/src/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.ts +1 -0
- package/src/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.ts +0 -2
- package/src/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.ts +0 -1
- package/src/custom_auth/sign_in/auth_flow/result/SignInResult.ts +0 -2
- package/src/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.ts +0 -2
- package/src/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.ts +0 -2
- package/src/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.ts +0 -2
- package/src/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.ts +0 -2
- package/src/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.ts +0 -1
- package/src/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.ts +0 -2
- package/src/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.ts +0 -2
- package/src/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.ts +0 -1
- package/src/interaction_client/BaseInteractionClient.ts +6 -1
- package/src/interaction_client/PlatformAuthInteractionClient.ts +28 -8
- package/src/interaction_client/StandardInteractionClient.ts +1 -0
- package/src/packageMetadata.ts +1 -1
- package/src/protocol/Authorize.ts +5 -0
- package/src/request/EndSessionPopupRequest.ts +3 -0
- package/src/request/RedirectRequest.ts +3 -0
- package/src/request/RequestHelpers.ts +5 -0
- package/src/request/SilentRequestHelpers.ts +9 -4
- package/src/telemetry/BrowserPerformanceEvents.ts +7 -0
- package/types/app/IPublicClientApplication.d.ts +8 -0
- package/types/app/IPublicClientApplication.d.ts.map +1 -1
- package/types/app/PublicClientApplication.d.ts +6 -1
- package/types/app/PublicClientApplication.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts +0 -1
- package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthProvider.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthResponse.d.ts +2 -6
- package/types/broker/nativeBroker/PlatformAuthResponse.d.ts.map +1 -1
- package/types/cache/BrowserCacheManager.d.ts +20 -2
- package/types/cache/BrowserCacheManager.d.ts.map +1 -1
- package/types/controllers/NestedAppAuthController.d.ts +5 -0
- package/types/controllers/NestedAppAuthController.d.ts.map +1 -1
- package/types/controllers/StandardController.d.ts +4 -0
- package/types/controllers/StandardController.d.ts.map +1 -1
- package/types/controllers/UnknownOperatingContextController.d.ts +5 -0
- package/types/controllers/UnknownOperatingContextController.d.ts.map +1 -1
- package/types/crypto/BrowserCrypto.d.ts.map +1 -1
- package/types/custom_auth/CustomAuthActionInputs.d.ts +0 -9
- package/types/custom_auth/CustomAuthActionInputs.d.ts.map +1 -1
- package/types/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/types/custom_auth/CustomAuthPublicClientApplication.d.ts +0 -3
- package/types/custom_auth/CustomAuthPublicClientApplication.d.ts.map +1 -1
- package/types/custom_auth/ICustomAuthPublicClientApplicationV2.d.ts +0 -3
- package/types/custom_auth/ICustomAuthPublicClientApplicationV2.d.ts.map +1 -1
- package/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
- package/types/custom_auth/core/CustomAuthAuthority.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts +0 -3
- package/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts +0 -2
- package/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts +0 -7
- package/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts +0 -2
- package/types/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts +0 -2
- package/types/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts +0 -6
- package/types/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.d.ts +0 -1
- package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.d.ts +0 -1
- package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.d.ts +0 -4
- package/types/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts +0 -1
- package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.d.ts +0 -1
- package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/result/AuthMethodRegistrationChallengeResultV2.d.ts +0 -2
- package/types/custom_auth/core/auth_flow/v2/result/AuthMethodRegistrationChallengeResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.d.ts +0 -2
- package/types/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts +0 -2
- package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts +0 -2
- package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts +0 -2
- package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/result/SubmitPasswordResultV2.d.ts +0 -2
- package/types/custom_auth/core/auth_flow/v2/result/SubmitPasswordResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts +0 -2
- package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.d.ts +0 -1
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts +0 -1
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.d.ts +0 -1
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts +0 -1
- package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/CompletedStateV2.d.ts +0 -1
- package/types/custom_auth/core/auth_flow/v2/state/CompletedStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/FailedStateV2.d.ts +0 -1
- package/types/custom_auth/core/auth_flow/v2/state/FailedStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts +0 -1
- package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.d.ts +0 -1
- package/types/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts +1 -0
- package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts +3 -2
- package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts.map +1 -1
- package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts +10 -1
- package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.d.ts +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts +8 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.d.ts +4 -5
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts +3 -6
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts +2 -5
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts.map +1 -1
- package/types/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.d.ts.map +1 -1
- package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts +0 -2
- package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts.map +1 -1
- package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts +0 -1
- package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts +0 -2
- package/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts.map +1 -1
- package/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts +0 -2
- package/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts.map +1 -1
- package/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts +0 -2
- package/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts.map +1 -1
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts +0 -2
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts.map +1 -1
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts +0 -2
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts.map +1 -1
- package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts +0 -1
- package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts.map +1 -1
- package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts +0 -2
- package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts.map +1 -1
- package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts +0 -2
- package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts.map +1 -1
- package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts +0 -1
- package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts.map +1 -1
- package/types/interaction_client/BaseInteractionClient.d.ts +3 -2
- package/types/interaction_client/BaseInteractionClient.d.ts.map +1 -1
- package/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/types/interaction_client/StandardInteractionClient.d.ts.map +1 -1
- package/types/packageMetadata.d.ts +1 -1
- package/types/protocol/Authorize.d.ts.map +1 -1
- package/types/request/EndSessionPopupRequest.d.ts +3 -0
- package/types/request/EndSessionPopupRequest.d.ts.map +1 -1
- package/types/request/RedirectRequest.d.ts +3 -0
- package/types/request/RedirectRequest.d.ts.map +1 -1
- package/types/request/RequestHelpers.d.ts.map +1 -1
- package/types/request/SilentRequestHelpers.d.ts +1 -1
- package/types/request/SilentRequestHelpers.d.ts.map +1 -1
- package/types/telemetry/BrowserPerformanceEvents.d.ts +5 -0
- package/types/telemetry/BrowserPerformanceEvents.d.ts.map +1 -1
package/lib/msal-browser.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.31.0 2026-12-02 */
|
|
2
2
|
'use strict';
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
|
-
/*! @azure/msal-common v16.
|
|
5
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
6
6
|
/*
|
|
7
7
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8
8
|
* Licensed under the MIT License.
|
|
@@ -62,7 +62,7 @@ const ATTRIBUTE_TOKENS = "attribute_tokens";
|
|
|
62
62
|
*/
|
|
63
63
|
const POPUP_ORIGIN_CHECK_DONE = "pocd";
|
|
64
64
|
|
|
65
|
-
/*! @azure/msal-common v16.
|
|
65
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
66
66
|
/*
|
|
67
67
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
68
68
|
* Licensed under the MIT License.
|
|
@@ -301,7 +301,7 @@ const JsonWebTokenTypes$1 = {
|
|
|
301
301
|
// Token renewal offset default in seconds
|
|
302
302
|
const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
|
|
303
303
|
|
|
304
|
-
/*! @azure/msal-common v16.
|
|
304
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
305
305
|
/*
|
|
306
306
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
307
307
|
* Licensed under the MIT License.
|
|
@@ -330,7 +330,7 @@ function createAuthError(code, correlationId, additionalMessage) {
|
|
|
330
330
|
return new AuthError(code, correlationId, additionalMessage || getDefaultErrorMessage$1(code));
|
|
331
331
|
}
|
|
332
332
|
|
|
333
|
-
/*! @azure/msal-common v16.
|
|
333
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
334
334
|
|
|
335
335
|
/*
|
|
336
336
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -353,7 +353,7 @@ function createClientAuthError(errorCode, correlationId, additionalMessage) {
|
|
|
353
353
|
return new ClientAuthError(errorCode, correlationId, additionalMessage);
|
|
354
354
|
}
|
|
355
355
|
|
|
356
|
-
/*! @azure/msal-common v16.
|
|
356
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
357
357
|
/*
|
|
358
358
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
359
359
|
* Licensed under the MIT License.
|
|
@@ -439,7 +439,7 @@ var ClientAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
439
439
|
userCanceled: userCanceled
|
|
440
440
|
});
|
|
441
441
|
|
|
442
|
-
/*! @azure/msal-common v16.
|
|
442
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
443
443
|
|
|
444
444
|
/*
|
|
445
445
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -477,7 +477,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
|
|
|
477
477
|
};
|
|
478
478
|
}
|
|
479
479
|
|
|
480
|
-
/*! @azure/msal-common v16.
|
|
480
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
481
481
|
|
|
482
482
|
/*
|
|
483
483
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -543,7 +543,7 @@ function getJWSPayload(authToken, correlationId) {
|
|
|
543
543
|
return matches[2];
|
|
544
544
|
}
|
|
545
545
|
|
|
546
|
-
/*! @azure/msal-common v16.
|
|
546
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
547
547
|
|
|
548
548
|
/*
|
|
549
549
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -631,7 +631,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
|
|
|
631
631
|
return updatedAccountInfo;
|
|
632
632
|
}
|
|
633
633
|
|
|
634
|
-
/*! @azure/msal-common v16.
|
|
634
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
635
635
|
/*
|
|
636
636
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
637
637
|
* Licensed under the MIT License.
|
|
@@ -645,7 +645,7 @@ const AuthorityType = {
|
|
|
645
645
|
Ciam: 3,
|
|
646
646
|
};
|
|
647
647
|
|
|
648
|
-
/*! @azure/msal-common v16.
|
|
648
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
649
649
|
/*
|
|
650
650
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
651
651
|
* Licensed under the MIT License.
|
|
@@ -667,7 +667,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
|
|
|
667
667
|
return null;
|
|
668
668
|
}
|
|
669
669
|
|
|
670
|
-
/*! @azure/msal-common v16.
|
|
670
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
671
671
|
/*
|
|
672
672
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
673
673
|
* Licensed under the MIT License.
|
|
@@ -691,7 +691,7 @@ const ProtocolMode = {
|
|
|
691
691
|
EAR: "EAR",
|
|
692
692
|
};
|
|
693
693
|
|
|
694
|
-
/*! @azure/msal-common v16.
|
|
694
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
695
695
|
/**
|
|
696
696
|
* Returns the AccountInfo interface for this account.
|
|
697
697
|
* @internal
|
|
@@ -880,7 +880,7 @@ function isAccountEntity(entity) {
|
|
|
880
880
|
entity.hasOwnProperty("authorityType"));
|
|
881
881
|
}
|
|
882
882
|
|
|
883
|
-
/*! @azure/msal-common v16.
|
|
883
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
884
884
|
/*
|
|
885
885
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
886
886
|
* Licensed under the MIT License.
|
|
@@ -897,7 +897,7 @@ var AuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
897
897
|
unexpectedError: unexpectedError
|
|
898
898
|
});
|
|
899
899
|
|
|
900
|
-
/*! @azure/msal-common v16.
|
|
900
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
901
901
|
|
|
902
902
|
/*
|
|
903
903
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -917,7 +917,7 @@ function createClientConfigurationError(errorCode, correlationId) {
|
|
|
917
917
|
return new ClientConfigurationError(errorCode, correlationId);
|
|
918
918
|
}
|
|
919
919
|
|
|
920
|
-
/*! @azure/msal-common v16.
|
|
920
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
921
921
|
/*
|
|
922
922
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
923
923
|
* Licensed under the MIT License.
|
|
@@ -957,7 +957,7 @@ function getResponseHeader(headers, name) {
|
|
|
957
957
|
return headerName === undefined ? undefined : headers[headerName];
|
|
958
958
|
}
|
|
959
959
|
|
|
960
|
-
/*! @azure/msal-common v16.
|
|
960
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
961
961
|
/*
|
|
962
962
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
963
963
|
* Licensed under the MIT License.
|
|
@@ -1027,7 +1027,7 @@ var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
1027
1027
|
urlParseError: urlParseError
|
|
1028
1028
|
});
|
|
1029
1029
|
|
|
1030
|
-
/*! @azure/msal-common v16.
|
|
1030
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
1031
1031
|
|
|
1032
1032
|
/*
|
|
1033
1033
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1047,21 +1047,38 @@ class AuthenticationHeaderParser {
|
|
|
1047
1047
|
* @returns
|
|
1048
1048
|
*/
|
|
1049
1049
|
getShrNonce() {
|
|
1050
|
-
// Attempt to parse nonce from
|
|
1050
|
+
// Attempt to parse nonce from Authentication-Info
|
|
1051
1051
|
const authenticationInfo = getResponseHeader(this.headers, HeaderNames.AuthenticationInfo);
|
|
1052
1052
|
if (authenticationInfo) {
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1053
|
+
// Also support the legacy PoP-prefixed Authentication-Info form.
|
|
1054
|
+
const parameters = this.parseChallenges(authenticationInfo.trim().replace(/^PoP[ \t]+/i, ""));
|
|
1055
|
+
for (const parameter of parameters) {
|
|
1056
|
+
const nextNonce = getHeaderParameter(parameter, "nextnonce");
|
|
1057
|
+
if (nextNonce) {
|
|
1058
|
+
return nextNonce;
|
|
1059
|
+
}
|
|
1056
1060
|
}
|
|
1057
1061
|
throw createClientConfigurationError(invalidAuthenticationHeader, "");
|
|
1058
1062
|
}
|
|
1059
1063
|
// Attempt to parse nonce from WWW-Authenticate
|
|
1060
1064
|
const wwwAuthenticate = getResponseHeader(this.headers, HeaderNames.WWWAuthenticate);
|
|
1061
1065
|
if (wwwAuthenticate) {
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1066
|
+
let isPopChallenge = false;
|
|
1067
|
+
for (const parameter of this.parseChallenges(wwwAuthenticate)) {
|
|
1068
|
+
const scheme = /^[^ \t=]+/.exec(parameter)?.[0] || "";
|
|
1069
|
+
const remainder = parameter.slice(scheme.length).trim();
|
|
1070
|
+
let authParameter = parameter;
|
|
1071
|
+
// A scheme starts a new challenge; whitespace before '=' does not.
|
|
1072
|
+
if (scheme && !remainder.startsWith("=")) {
|
|
1073
|
+
isPopChallenge = scheme.toLowerCase() === "pop";
|
|
1074
|
+
authParameter = remainder;
|
|
1075
|
+
}
|
|
1076
|
+
if (isPopChallenge) {
|
|
1077
|
+
const nonce = getHeaderParameter(authParameter, "nonce");
|
|
1078
|
+
if (nonce) {
|
|
1079
|
+
return nonce;
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1065
1082
|
}
|
|
1066
1083
|
throw createClientConfigurationError(invalidAuthenticationHeader, "");
|
|
1067
1084
|
}
|
|
@@ -1069,24 +1086,53 @@ class AuthenticationHeaderParser {
|
|
|
1069
1086
|
throw createClientConfigurationError(missingNonceAuthenticationHeader, "");
|
|
1070
1087
|
}
|
|
1071
1088
|
/**
|
|
1072
|
-
*
|
|
1089
|
+
* Splits authentication parameters without splitting commas inside quoted strings.
|
|
1073
1090
|
* @param header
|
|
1074
1091
|
* @returns
|
|
1075
1092
|
*/
|
|
1076
1093
|
parseChallenges(header) {
|
|
1077
|
-
const
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
const
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1094
|
+
const parameters = [];
|
|
1095
|
+
let inQuotes = false;
|
|
1096
|
+
let start = 0;
|
|
1097
|
+
for (let i = 0; i < header.length; i++) {
|
|
1098
|
+
const character = header[i];
|
|
1099
|
+
if (inQuotes && character === "\\") {
|
|
1100
|
+
i++;
|
|
1101
|
+
}
|
|
1102
|
+
else if (character === '"') {
|
|
1103
|
+
inQuotes = !inQuotes;
|
|
1104
|
+
}
|
|
1105
|
+
else if (character === "," && !inQuotes) {
|
|
1106
|
+
parameters.push(header.slice(start, i).trim());
|
|
1107
|
+
start = i + 1;
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
if (!inQuotes) {
|
|
1111
|
+
parameters.push(header.slice(start).trim());
|
|
1112
|
+
}
|
|
1113
|
+
return parameters;
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
/**
|
|
1117
|
+
* Reads a named authentication parameter, removing only HTTP quoted-string syntax.
|
|
1118
|
+
* @param parameter - A single authentication parameter.
|
|
1119
|
+
* @param name - The parameter name to read.
|
|
1120
|
+
* @returns The opaque parameter value, or undefined if the name does not match.
|
|
1121
|
+
*/
|
|
1122
|
+
function getHeaderParameter(parameter, name) {
|
|
1123
|
+
const separator = parameter.indexOf("=");
|
|
1124
|
+
if (separator === -1 ||
|
|
1125
|
+
parameter.slice(0, separator).trim().toLowerCase() !== name) {
|
|
1126
|
+
return undefined;
|
|
1086
1127
|
}
|
|
1128
|
+
const value = parameter.slice(separator + 1).trim();
|
|
1129
|
+
if (value.startsWith('"') && value.endsWith('"')) {
|
|
1130
|
+
return value.slice(1, -1).replace(/\\(.)/g, "$1");
|
|
1131
|
+
}
|
|
1132
|
+
return value;
|
|
1087
1133
|
}
|
|
1088
1134
|
|
|
1089
|
-
/*! @azure/msal-common v16.
|
|
1135
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
1090
1136
|
/*
|
|
1091
1137
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1092
1138
|
* Licensed under the MIT License.
|
|
@@ -1098,7 +1144,7 @@ function isOpenIdConfigResponse(response) {
|
|
|
1098
1144
|
response.hasOwnProperty("jwks_uri"));
|
|
1099
1145
|
}
|
|
1100
1146
|
|
|
1101
|
-
/*! @azure/msal-common v16.
|
|
1147
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
1102
1148
|
/*
|
|
1103
1149
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1104
1150
|
* Licensed under the MIT License.
|
|
@@ -1178,7 +1224,7 @@ class StringUtils {
|
|
|
1178
1224
|
}
|
|
1179
1225
|
}
|
|
1180
1226
|
|
|
1181
|
-
/*! @azure/msal-common v16.
|
|
1227
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
1182
1228
|
|
|
1183
1229
|
/*
|
|
1184
1230
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1365,7 +1411,7 @@ class UrlString {
|
|
|
1365
1411
|
}
|
|
1366
1412
|
}
|
|
1367
1413
|
|
|
1368
|
-
/*! @azure/msal-common v16.
|
|
1414
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
1369
1415
|
|
|
1370
1416
|
/*
|
|
1371
1417
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1519,7 +1565,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
1519
1565
|
return null;
|
|
1520
1566
|
}
|
|
1521
1567
|
|
|
1522
|
-
/*! @azure/msal-common v16.
|
|
1568
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
1523
1569
|
/*
|
|
1524
1570
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1525
1571
|
* Licensed under the MIT License.
|
|
@@ -1537,7 +1583,7 @@ const AzureCloudInstance = {
|
|
|
1537
1583
|
AzureUsGovernment: "https://login.microsoftonline.us",
|
|
1538
1584
|
};
|
|
1539
1585
|
|
|
1540
|
-
/*! @azure/msal-common v16.
|
|
1586
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
1541
1587
|
/*
|
|
1542
1588
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1543
1589
|
* Licensed under the MIT License.
|
|
@@ -1547,7 +1593,7 @@ function isCloudInstanceDiscoveryResponse(response) {
|
|
|
1547
1593
|
response.hasOwnProperty("metadata"));
|
|
1548
1594
|
}
|
|
1549
1595
|
|
|
1550
|
-
/*! @azure/msal-common v16.
|
|
1596
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
1551
1597
|
/*
|
|
1552
1598
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1553
1599
|
* Licensed under the MIT License.
|
|
@@ -1557,7 +1603,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
|
|
|
1557
1603
|
response.hasOwnProperty("error_description"));
|
|
1558
1604
|
}
|
|
1559
1605
|
|
|
1560
|
-
/*! @azure/msal-common v16.
|
|
1606
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
1561
1607
|
/*
|
|
1562
1608
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1563
1609
|
* Licensed under the MIT License.
|
|
@@ -1628,7 +1674,7 @@ const RegionDiscoveryGetCurrentVersion = "regionDiscoveryGetCurrentVersion";
|
|
|
1628
1674
|
const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken";
|
|
1629
1675
|
const SetUserData = "setUserData";
|
|
1630
1676
|
|
|
1631
|
-
/*! @azure/msal-common v16.
|
|
1677
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
1632
1678
|
/*
|
|
1633
1679
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1634
1680
|
* Licensed under the MIT License.
|
|
@@ -1722,7 +1768,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
|
|
|
1722
1768
|
};
|
|
1723
1769
|
};
|
|
1724
1770
|
|
|
1725
|
-
/*! @azure/msal-common v16.
|
|
1771
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
1726
1772
|
|
|
1727
1773
|
/*
|
|
1728
1774
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1851,7 +1897,7 @@ RegionDiscovery.IMDS_OPTIONS = {
|
|
|
1851
1897
|
},
|
|
1852
1898
|
};
|
|
1853
1899
|
|
|
1854
|
-
/*! @azure/msal-common v16.
|
|
1900
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
1855
1901
|
/*
|
|
1856
1902
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1857
1903
|
* Licensed under the MIT License.
|
|
@@ -1916,7 +1962,7 @@ function wasClockTurnedBack(cachedAt) {
|
|
|
1916
1962
|
return cachedAtSec > nowSeconds();
|
|
1917
1963
|
}
|
|
1918
1964
|
|
|
1919
|
-
/*! @azure/msal-common v16.
|
|
1965
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
1920
1966
|
|
|
1921
1967
|
/*
|
|
1922
1968
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2203,7 +2249,7 @@ function serializeAttributeTokens(attributeTokens) {
|
|
|
2203
2249
|
return [...attributeTokens].sort().join(" ");
|
|
2204
2250
|
}
|
|
2205
2251
|
|
|
2206
|
-
/*! @azure/msal-common v16.
|
|
2252
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
2207
2253
|
|
|
2208
2254
|
/*
|
|
2209
2255
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3174,7 +3220,7 @@ function buildStaticAuthorityOptions(authOptions) {
|
|
|
3174
3220
|
};
|
|
3175
3221
|
}
|
|
3176
3222
|
|
|
3177
|
-
/*! @azure/msal-common v16.
|
|
3223
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
3178
3224
|
|
|
3179
3225
|
/*
|
|
3180
3226
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3208,7 +3254,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
|
|
|
3208
3254
|
}
|
|
3209
3255
|
}
|
|
3210
3256
|
|
|
3211
|
-
/*! @azure/msal-common v16.
|
|
3257
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
3212
3258
|
|
|
3213
3259
|
/*
|
|
3214
3260
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3404,7 +3450,7 @@ class ScopeSet {
|
|
|
3404
3450
|
}
|
|
3405
3451
|
}
|
|
3406
3452
|
|
|
3407
|
-
/*! @azure/msal-common v16.
|
|
3453
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
3408
3454
|
|
|
3409
3455
|
/*
|
|
3410
3456
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3905,7 +3951,7 @@ function addAttributeTokens(parameters, attributeTokens) {
|
|
|
3905
3951
|
}
|
|
3906
3952
|
}
|
|
3907
3953
|
|
|
3908
|
-
/*! @azure/msal-common v16.
|
|
3954
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
3909
3955
|
|
|
3910
3956
|
/*
|
|
3911
3957
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4036,7 +4082,7 @@ function validateUrl(url, logger, correlationId) {
|
|
|
4036
4082
|
}
|
|
4037
4083
|
}
|
|
4038
4084
|
|
|
4039
|
-
/*! @azure/msal-common v16.
|
|
4085
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
4040
4086
|
|
|
4041
4087
|
/*
|
|
4042
4088
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4084,7 +4130,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
|
|
|
4084
4130
|
},
|
|
4085
4131
|
};
|
|
4086
4132
|
|
|
4087
|
-
/*! @azure/msal-common v16.
|
|
4133
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
4088
4134
|
|
|
4089
4135
|
/*
|
|
4090
4136
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4107,7 +4153,7 @@ const DEFAULT_TOKEN_BINDING_KEY_MANAGER = {
|
|
|
4107
4153
|
},
|
|
4108
4154
|
};
|
|
4109
4155
|
|
|
4110
|
-
/*! @azure/msal-common v16.
|
|
4156
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
4111
4157
|
/*
|
|
4112
4158
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4113
4159
|
* Licensed under the MIT License.
|
|
@@ -4396,12 +4442,12 @@ class Logger {
|
|
|
4396
4442
|
}
|
|
4397
4443
|
}
|
|
4398
4444
|
|
|
4399
|
-
/*! @azure/msal-common v16.
|
|
4445
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
4400
4446
|
/* eslint-disable header/header */
|
|
4401
4447
|
const name$1 = "@azure/msal-common";
|
|
4402
|
-
const version$1 = "16.
|
|
4448
|
+
const version$1 = "16.18.0";
|
|
4403
4449
|
|
|
4404
|
-
/*! @azure/msal-common v16.
|
|
4450
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
4405
4451
|
/*
|
|
4406
4452
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4407
4453
|
* Licensed under the MIT License.
|
|
@@ -4409,7 +4455,7 @@ const version$1 = "16.17.0";
|
|
|
4409
4455
|
const cacheQuotaExceeded = "cache_quota_exceeded";
|
|
4410
4456
|
const cacheErrorUnknown = "cache_error_unknown";
|
|
4411
4457
|
|
|
4412
|
-
/*! @azure/msal-common v16.
|
|
4458
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
4413
4459
|
|
|
4414
4460
|
/*
|
|
4415
4461
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4447,7 +4493,7 @@ function createCacheError(e) {
|
|
|
4447
4493
|
}
|
|
4448
4494
|
}
|
|
4449
4495
|
|
|
4450
|
-
/*! @azure/msal-common v16.
|
|
4496
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
4451
4497
|
|
|
4452
4498
|
/*
|
|
4453
4499
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5675,7 +5721,7 @@ class DefaultStorageClass extends CacheManager {
|
|
|
5675
5721
|
}
|
|
5676
5722
|
}
|
|
5677
5723
|
|
|
5678
|
-
/*! @azure/msal-common v16.
|
|
5724
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
5679
5725
|
/*
|
|
5680
5726
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5681
5727
|
* Licensed under the MIT License.
|
|
@@ -5741,7 +5787,7 @@ const IntFields = new Set([
|
|
|
5741
5787
|
"fetchRetryCount",
|
|
5742
5788
|
]);
|
|
5743
5789
|
|
|
5744
|
-
/*! @azure/msal-common v16.
|
|
5790
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
5745
5791
|
|
|
5746
5792
|
/*
|
|
5747
5793
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5799,7 +5845,7 @@ class StubPerformanceClient {
|
|
|
5799
5845
|
}
|
|
5800
5846
|
}
|
|
5801
5847
|
|
|
5802
|
-
/*! @azure/msal-common v16.
|
|
5848
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
5803
5849
|
|
|
5804
5850
|
/*
|
|
5805
5851
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5853,7 +5899,7 @@ const DEFAULT_TELEMETRY_OPTIONS = {
|
|
|
5853
5899
|
* @returns Configuration
|
|
5854
5900
|
* @internal
|
|
5855
5901
|
*/
|
|
5856
|
-
function buildClientConfiguration({ authOptions: userAuthOptions, systemOptions: userSystemOptions, loggerOptions: userLoggerOption, storageInterface: storageImplementation, networkInterface: networkImplementation, cryptoInterface: cryptoImplementation, tokenBindingKeyManager: tokenBindingKeyManager, clientCredentials: clientCredentials, libraryInfo: libraryInfo, telemetry: telemetry, serverTelemetryManager: serverTelemetryManager, persistencePlugin: persistencePlugin, serializableCache: serializableCache, }) {
|
|
5902
|
+
function buildClientConfiguration({ authOptions: userAuthOptions, systemOptions: userSystemOptions, loggerOptions: userLoggerOption, storageInterface: storageImplementation, networkInterface: networkImplementation, cryptoInterface: cryptoImplementation, tokenBindingKeyManager: tokenBindingKeyManager, dpopNonceProvider: dpopNonceProvider, clientCredentials: clientCredentials, libraryInfo: libraryInfo, telemetry: telemetry, serverTelemetryManager: serverTelemetryManager, persistencePlugin: persistencePlugin, serializableCache: serializableCache, }) {
|
|
5857
5903
|
const loggerOptions = {
|
|
5858
5904
|
...DEFAULT_LOGGER_IMPLEMENTATION,
|
|
5859
5905
|
...userLoggerOption,
|
|
@@ -5868,6 +5914,7 @@ function buildClientConfiguration({ authOptions: userAuthOptions, systemOptions:
|
|
|
5868
5914
|
networkInterface: networkImplementation || DEFAULT_NETWORK_IMPLEMENTATION,
|
|
5869
5915
|
cryptoInterface: cryptoImplementation || DEFAULT_CRYPTO_IMPLEMENTATION,
|
|
5870
5916
|
tokenBindingKeyManager: resolvedTokenBindingKeyManager,
|
|
5917
|
+
dpopNonceProvider,
|
|
5871
5918
|
clientCredentials: clientCredentials || DEFAULT_CLIENT_CREDENTIALS,
|
|
5872
5919
|
libraryInfo: { ...DEFAULT_LIBRARY_INFO, ...libraryInfo },
|
|
5873
5920
|
telemetry: { ...DEFAULT_TELEMETRY_OPTIONS, ...telemetry },
|
|
@@ -5897,7 +5944,7 @@ function isOidcProtocolMode(config) {
|
|
|
5897
5944
|
return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
|
|
5898
5945
|
}
|
|
5899
5946
|
|
|
5900
|
-
/*! @azure/msal-common v16.
|
|
5947
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
5901
5948
|
/*
|
|
5902
5949
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5903
5950
|
* Licensed under the MIT License.
|
|
@@ -5924,7 +5971,7 @@ function isOidcProtocolMode(config) {
|
|
|
5924
5971
|
}
|
|
5925
5972
|
}
|
|
5926
5973
|
|
|
5927
|
-
/*! @azure/msal-common v16.
|
|
5974
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
5928
5975
|
|
|
5929
5976
|
/*
|
|
5930
5977
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5945,7 +5992,7 @@ function createJoseHeaderError(code, correlationId) {
|
|
|
5945
5992
|
return new JoseHeaderError(code, correlationId);
|
|
5946
5993
|
}
|
|
5947
5994
|
|
|
5948
|
-
/*! @azure/msal-common v16.
|
|
5995
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
5949
5996
|
/*
|
|
5950
5997
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5951
5998
|
* Licensed under the MIT License.
|
|
@@ -5970,7 +6017,7 @@ function isPlainObject(value) {
|
|
|
5970
6017
|
return Object.getPrototypeOf(value) === proto;
|
|
5971
6018
|
}
|
|
5972
6019
|
|
|
5973
|
-
/*! @azure/msal-common v16.
|
|
6020
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
5974
6021
|
/*
|
|
5975
6022
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5976
6023
|
* Licensed under the MIT License.
|
|
@@ -5980,7 +6027,7 @@ const missingAlgError = "missing_alg_error";
|
|
|
5980
6027
|
const missingJwkError = "missing_jwk_error";
|
|
5981
6028
|
const invalidJwkError = "invalid_jwk_error";
|
|
5982
6029
|
|
|
5983
|
-
/*! @azure/msal-common v16.
|
|
6030
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
5984
6031
|
|
|
5985
6032
|
/*
|
|
5986
6033
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6046,7 +6093,7 @@ class JoseHeader {
|
|
|
6046
6093
|
}
|
|
6047
6094
|
}
|
|
6048
6095
|
|
|
6049
|
-
/*! @azure/msal-common v16.
|
|
6096
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
6050
6097
|
|
|
6051
6098
|
/*
|
|
6052
6099
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6147,7 +6194,50 @@ class PopTokenGenerator {
|
|
|
6147
6194
|
}
|
|
6148
6195
|
}
|
|
6149
6196
|
|
|
6150
|
-
/*! @azure/msal-common v16.
|
|
6197
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
6198
|
+
|
|
6199
|
+
/*
|
|
6200
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6201
|
+
* Licensed under the MIT License.
|
|
6202
|
+
*/
|
|
6203
|
+
/**
|
|
6204
|
+
* Validates that a DPoP nonce is a non-empty string and returns the opaque
|
|
6205
|
+
* value unchanged.
|
|
6206
|
+
* @internal
|
|
6207
|
+
*/
|
|
6208
|
+
function validateDpopNonce(nonce, correlationId = "") {
|
|
6209
|
+
if (typeof nonce !== "string" || nonce.length === 0) {
|
|
6210
|
+
throw createClientConfigurationError(invalidDpopNonce, correlationId);
|
|
6211
|
+
}
|
|
6212
|
+
return nonce;
|
|
6213
|
+
}
|
|
6214
|
+
/**
|
|
6215
|
+
* Returns the normalized HTTPS origin used to scope a resource-server nonce.
|
|
6216
|
+
* @internal
|
|
6217
|
+
*/
|
|
6218
|
+
function canonicalizeDpopResourceServer(resourceRequestUri, correlationId = "") {
|
|
6219
|
+
if (typeof resourceRequestUri !== "string" ||
|
|
6220
|
+
!/^https:\/\//i.test(resourceRequestUri)) {
|
|
6221
|
+
throw createClientConfigurationError(invalidDpopHtu, correlationId);
|
|
6222
|
+
}
|
|
6223
|
+
let parsedUrl;
|
|
6224
|
+
try {
|
|
6225
|
+
parsedUrl = new URL(resourceRequestUri);
|
|
6226
|
+
}
|
|
6227
|
+
catch {
|
|
6228
|
+
throw createClientConfigurationError(invalidDpopHtu, correlationId);
|
|
6229
|
+
}
|
|
6230
|
+
if (parsedUrl.protocol !== "https:" ||
|
|
6231
|
+
parsedUrl.origin === "null" ||
|
|
6232
|
+
!parsedUrl.hostname ||
|
|
6233
|
+
parsedUrl.username ||
|
|
6234
|
+
parsedUrl.password) {
|
|
6235
|
+
throw createClientConfigurationError(invalidDpopHtu, correlationId);
|
|
6236
|
+
}
|
|
6237
|
+
return parsedUrl.origin;
|
|
6238
|
+
}
|
|
6239
|
+
|
|
6240
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
6151
6241
|
|
|
6152
6242
|
/*
|
|
6153
6243
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6192,11 +6282,6 @@ function normalizeHtu(url, correlationId) {
|
|
|
6192
6282
|
parsedUrl.hash = "";
|
|
6193
6283
|
return parsedUrl.href;
|
|
6194
6284
|
}
|
|
6195
|
-
function validateDpopNonce(nonce, correlationId) {
|
|
6196
|
-
if (nonce !== undefined && nonce.trim().length === 0) {
|
|
6197
|
-
throw createClientConfigurationError(invalidDpopNonce, correlationId);
|
|
6198
|
-
}
|
|
6199
|
-
}
|
|
6200
6285
|
/**
|
|
6201
6286
|
* Validates and normalizes the HTTP resource context for a DPoP-bound request.
|
|
6202
6287
|
* @internal
|
|
@@ -6240,7 +6325,6 @@ class DpopProofGenerator {
|
|
|
6240
6325
|
* - jti is a fresh CSPRNG-backed unique identifier for every proof.
|
|
6241
6326
|
*/
|
|
6242
6327
|
buildTokenProofClaims(params, correlationId = "") {
|
|
6243
|
-
validateDpopNonce(params.nonce, correlationId);
|
|
6244
6328
|
const claims = {
|
|
6245
6329
|
jti: this.cryptoUtils.createNewGuid(),
|
|
6246
6330
|
htm: "POST",
|
|
@@ -6248,7 +6332,7 @@ class DpopProofGenerator {
|
|
|
6248
6332
|
iat: nowSeconds(),
|
|
6249
6333
|
};
|
|
6250
6334
|
if (params.nonce !== undefined) {
|
|
6251
|
-
claims.nonce = params.nonce;
|
|
6335
|
+
claims.nonce = validateDpopNonce(params.nonce, correlationId);
|
|
6252
6336
|
}
|
|
6253
6337
|
return claims;
|
|
6254
6338
|
}
|
|
@@ -6266,7 +6350,6 @@ class DpopProofGenerator {
|
|
|
6266
6350
|
* - jti is a fresh CSPRNG-backed unique identifier for every proof.
|
|
6267
6351
|
*/
|
|
6268
6352
|
buildResourceProofClaims(params, correlationId = "") {
|
|
6269
|
-
validateDpopNonce(params.nonce, correlationId);
|
|
6270
6353
|
const resourceContext = normalizeDpopResourceRequestContext(params, correlationId);
|
|
6271
6354
|
const claims = {
|
|
6272
6355
|
jti: this.cryptoUtils.createNewGuid(),
|
|
@@ -6276,7 +6359,7 @@ class DpopProofGenerator {
|
|
|
6276
6359
|
iat: nowSeconds(),
|
|
6277
6360
|
};
|
|
6278
6361
|
if (params.nonce !== undefined) {
|
|
6279
|
-
claims.nonce = params.nonce;
|
|
6362
|
+
claims.nonce = validateDpopNonce(params.nonce, correlationId);
|
|
6280
6363
|
}
|
|
6281
6364
|
return claims;
|
|
6282
6365
|
}
|
|
@@ -6302,7 +6385,7 @@ class DpopProofGenerator {
|
|
|
6302
6385
|
}
|
|
6303
6386
|
}
|
|
6304
6387
|
|
|
6305
|
-
/*! @azure/msal-common v16.
|
|
6388
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
6306
6389
|
/*
|
|
6307
6390
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6308
6391
|
* Licensed under the MIT License.
|
|
@@ -6366,7 +6449,7 @@ var InteractionRequiredAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
6366
6449
|
uiNotAllowed: uiNotAllowed
|
|
6367
6450
|
});
|
|
6368
6451
|
|
|
6369
|
-
/*! @azure/msal-common v16.
|
|
6452
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
6370
6453
|
|
|
6371
6454
|
/*
|
|
6372
6455
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6433,7 +6516,7 @@ function createInteractionRequiredAuthError(errorCode, correlationId, errorMessa
|
|
|
6433
6516
|
return new InteractionRequiredAuthError(errorCode, correlationId, errorMessage);
|
|
6434
6517
|
}
|
|
6435
6518
|
|
|
6436
|
-
/*! @azure/msal-common v16.
|
|
6519
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
6437
6520
|
|
|
6438
6521
|
/*
|
|
6439
6522
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6452,7 +6535,7 @@ class ServerError extends AuthError {
|
|
|
6452
6535
|
}
|
|
6453
6536
|
}
|
|
6454
6537
|
|
|
6455
|
-
/*! @azure/msal-common v16.
|
|
6538
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
6456
6539
|
|
|
6457
6540
|
/*
|
|
6458
6541
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6523,18 +6606,29 @@ function parseRequestState(base64Decode, state, correlationId) {
|
|
|
6523
6606
|
}
|
|
6524
6607
|
}
|
|
6525
6608
|
|
|
6526
|
-
/*! @azure/msal-common v16.
|
|
6609
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
6527
6610
|
|
|
6528
6611
|
/*
|
|
6529
6612
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6530
6613
|
* Licensed under the MIT License.
|
|
6531
6614
|
*/
|
|
6615
|
+
/*
|
|
6616
|
+
* Retains the signing key for fresh proofs on deduplicated calls without
|
|
6617
|
+
* exposing it on the public AuthenticationResult.
|
|
6618
|
+
*/
|
|
6619
|
+
const dpopKeyIdByAuthenticationResult = new WeakMap();
|
|
6620
|
+
function getDpopNonceForRequest(dpopNonceProvider, request) {
|
|
6621
|
+
if (!request.resourceRequestUri || !dpopNonceProvider) {
|
|
6622
|
+
return undefined;
|
|
6623
|
+
}
|
|
6624
|
+
return dpopNonceProvider.getDpopNonce(request.resourceRequestUri, request.correlationId);
|
|
6625
|
+
}
|
|
6532
6626
|
/**
|
|
6533
6627
|
* Class that handles response parsing.
|
|
6534
6628
|
* @internal
|
|
6535
6629
|
*/
|
|
6536
6630
|
class ResponseHandler {
|
|
6537
|
-
constructor(clientId, cacheStorage, cryptoObj, logger, performanceClient, serializableCache, persistencePlugin, tokenBindingKeyManager = DEFAULT_TOKEN_BINDING_KEY_MANAGER) {
|
|
6631
|
+
constructor(clientId, cacheStorage, cryptoObj, logger, performanceClient, serializableCache, persistencePlugin, tokenBindingKeyManager = DEFAULT_TOKEN_BINDING_KEY_MANAGER, dpopNonceProvider) {
|
|
6538
6632
|
this.clientId = clientId;
|
|
6539
6633
|
this.cacheStorage = cacheStorage;
|
|
6540
6634
|
this.cryptoObj = cryptoObj;
|
|
@@ -6543,6 +6637,7 @@ class ResponseHandler {
|
|
|
6543
6637
|
this.performanceClient = performanceClient;
|
|
6544
6638
|
this.serializableCache = serializableCache;
|
|
6545
6639
|
this.persistencePlugin = persistencePlugin;
|
|
6640
|
+
this.dpopNonceProvider = dpopNonceProvider;
|
|
6546
6641
|
}
|
|
6547
6642
|
/**
|
|
6548
6643
|
* Function which validates server authorization token response.
|
|
@@ -6681,6 +6776,7 @@ class ResponseHandler {
|
|
|
6681
6776
|
requestState: requestStateObj,
|
|
6682
6777
|
requestId: serverRequestId,
|
|
6683
6778
|
tokenBindingKeyManager: this.tokenBindingKeyManager,
|
|
6779
|
+
dpopNonceProvider: this.dpopNonceProvider,
|
|
6684
6780
|
});
|
|
6685
6781
|
}
|
|
6686
6782
|
}
|
|
@@ -6700,6 +6796,7 @@ class ResponseHandler {
|
|
|
6700
6796
|
serverTokenResponse,
|
|
6701
6797
|
requestId: serverRequestId,
|
|
6702
6798
|
tokenBindingKeyManager: this.tokenBindingKeyManager,
|
|
6799
|
+
dpopNonceProvider: this.dpopNonceProvider,
|
|
6703
6800
|
});
|
|
6704
6801
|
}
|
|
6705
6802
|
/**
|
|
@@ -6797,7 +6894,7 @@ class ResponseHandler {
|
|
|
6797
6894
|
* @param stateString
|
|
6798
6895
|
*/
|
|
6799
6896
|
static async generateAuthenticationResult(cryptoObj, authority, cacheRecord, fromTokenCache, request, performanceClient, options = {}) {
|
|
6800
|
-
const { idTokenClaims, requestState, serverTokenResponse, requestId, tokenBindingKeyManager = DEFAULT_TOKEN_BINDING_KEY_MANAGER, } = options;
|
|
6897
|
+
const { idTokenClaims, requestState, serverTokenResponse, requestId, tokenBindingKeyManager = DEFAULT_TOKEN_BINDING_KEY_MANAGER, dpopNonceProvider, } = options;
|
|
6801
6898
|
let accessToken = "";
|
|
6802
6899
|
let responseScopes = [];
|
|
6803
6900
|
let expiresOn = null;
|
|
@@ -6805,8 +6902,13 @@ class ResponseHandler {
|
|
|
6805
6902
|
let refreshOn;
|
|
6806
6903
|
let familyId = "";
|
|
6807
6904
|
let dpopProof;
|
|
6905
|
+
const cachedAccessTokenType = cacheRecord.accessToken?.tokenType || "";
|
|
6906
|
+
const isDpopAccessToken = cachedAccessTokenType.toLowerCase() ===
|
|
6907
|
+
AuthenticationScheme$1.DPOP.toLowerCase();
|
|
6908
|
+
const resultTokenType = isDpopAccessToken
|
|
6909
|
+
? AuthenticationScheme$1.DPOP
|
|
6910
|
+
: cachedAccessTokenType;
|
|
6808
6911
|
if (cacheRecord.accessToken) {
|
|
6809
|
-
const accessTokenType = cacheRecord.accessToken.tokenType?.toLowerCase();
|
|
6810
6912
|
/*
|
|
6811
6913
|
* if the request object has `popKid` property, `signPopToken` will be set to false and
|
|
6812
6914
|
* the token will be returned unsigned
|
|
@@ -6824,15 +6926,17 @@ class ResponseHandler {
|
|
|
6824
6926
|
else {
|
|
6825
6927
|
accessToken = cacheRecord.accessToken.secret;
|
|
6826
6928
|
}
|
|
6827
|
-
if (
|
|
6828
|
-
AuthenticationScheme$1.DPOP.toLowerCase()) {
|
|
6929
|
+
if (isDpopAccessToken) {
|
|
6829
6930
|
if (!cacheRecord.accessToken.keyId) {
|
|
6830
6931
|
throw createClientAuthError(keyIdMissing, request.correlationId);
|
|
6831
6932
|
}
|
|
6832
6933
|
const dpopProofGenerator = new DpopProofGenerator(cryptoObj, tokenBindingKeyManager);
|
|
6934
|
+
const dpopNonce = getDpopNonceForRequest(dpopNonceProvider, request);
|
|
6935
|
+
performanceClient?.addFields({ dpopNonceAppliedToProof: Boolean(dpopNonce) }, request.correlationId);
|
|
6833
6936
|
dpopProof = await dpopProofGenerator.generateResourceProof({
|
|
6834
6937
|
htu: request.resourceRequestUri,
|
|
6835
6938
|
htm: request.resourceRequestMethod,
|
|
6939
|
+
nonce: dpopNonce,
|
|
6836
6940
|
accessToken: cacheRecord.accessToken.secret,
|
|
6837
6941
|
}, cacheRecord.accessToken.keyId, request.correlationId);
|
|
6838
6942
|
}
|
|
@@ -6880,7 +6984,7 @@ class ResponseHandler {
|
|
|
6880
6984
|
? updateAccountTenantProfileData(getAccountInfo(cacheRecord.account), undefined, // tenantProfile optional
|
|
6881
6985
|
idTokenClaims, cacheRecord.idToken?.secret)
|
|
6882
6986
|
: null;
|
|
6883
|
-
|
|
6987
|
+
const authenticationResult = {
|
|
6884
6988
|
authority: authority.canonicalAuthority,
|
|
6885
6989
|
uniqueId: uid,
|
|
6886
6990
|
tenantId: tid,
|
|
@@ -6897,16 +7001,49 @@ class ResponseHandler {
|
|
|
6897
7001
|
correlationId: request.correlationId,
|
|
6898
7002
|
requestId: requestId || "",
|
|
6899
7003
|
familyId: familyId,
|
|
6900
|
-
tokenType:
|
|
6901
|
-
AuthenticationScheme$1.DPOP.toLowerCase()
|
|
6902
|
-
? AuthenticationScheme$1.DPOP
|
|
6903
|
-
: cacheRecord.accessToken?.tokenType || "",
|
|
7004
|
+
tokenType: resultTokenType,
|
|
6904
7005
|
state: requestState ? requestState.userRequestState : "",
|
|
6905
7006
|
cloudGraphHostName: cacheRecord.account?.cloudGraphHostName || "",
|
|
6906
7007
|
msGraphHost: cacheRecord.account?.msGraphHost || "",
|
|
6907
7008
|
code: serverTokenResponse?.spa_code,
|
|
6908
7009
|
fromPlatformBroker: false,
|
|
6909
7010
|
};
|
|
7011
|
+
if (isDpopAccessToken && cacheRecord.accessToken?.keyId) {
|
|
7012
|
+
ResponseHandler.setDpopKeyId(authenticationResult, cacheRecord.accessToken.keyId);
|
|
7013
|
+
}
|
|
7014
|
+
return authenticationResult;
|
|
7015
|
+
}
|
|
7016
|
+
/**
|
|
7017
|
+
* Retains an MSAL-owned DPoP key for fresh proofs on deduplicated calls.
|
|
7018
|
+
* @internal
|
|
7019
|
+
*/
|
|
7020
|
+
static setDpopKeyId(authenticationResult, keyId) {
|
|
7021
|
+
dpopKeyIdByAuthenticationResult.set(authenticationResult, keyId);
|
|
7022
|
+
}
|
|
7023
|
+
/**
|
|
7024
|
+
* Returns whether MSAL can generate another proof for this result.
|
|
7025
|
+
* @internal
|
|
7026
|
+
*/
|
|
7027
|
+
static hasDpopKeyId(authenticationResult) {
|
|
7028
|
+
return dpopKeyIdByAuthenticationResult.has(authenticationResult);
|
|
7029
|
+
}
|
|
7030
|
+
/**
|
|
7031
|
+
* Generates a fresh resource proof for a previously constructed DPoP result.
|
|
7032
|
+
* @internal
|
|
7033
|
+
*/
|
|
7034
|
+
static async generateDpopResourceProof(cryptoObj, authenticationResult, request, performanceClient, options = {}) {
|
|
7035
|
+
const keyId = dpopKeyIdByAuthenticationResult.get(authenticationResult);
|
|
7036
|
+
if (!keyId) {
|
|
7037
|
+
throw createClientAuthError(keyIdMissing, request.correlationId);
|
|
7038
|
+
}
|
|
7039
|
+
const dpopNonce = getDpopNonceForRequest(options.dpopNonceProvider, request);
|
|
7040
|
+
performanceClient.addFields({ dpopNonceAppliedToProof: Boolean(dpopNonce) }, request.correlationId);
|
|
7041
|
+
return new DpopProofGenerator(cryptoObj, options.tokenBindingKeyManager ?? DEFAULT_TOKEN_BINDING_KEY_MANAGER).generateResourceProof({
|
|
7042
|
+
htu: request.resourceRequestUri,
|
|
7043
|
+
htm: request.resourceRequestMethod,
|
|
7044
|
+
nonce: dpopNonce,
|
|
7045
|
+
accessToken: authenticationResult.accessToken,
|
|
7046
|
+
}, keyId, request.correlationId);
|
|
6910
7047
|
}
|
|
6911
7048
|
}
|
|
6912
7049
|
/** @internal */
|
|
@@ -6951,7 +7088,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
|
|
|
6951
7088
|
return baseAccount;
|
|
6952
7089
|
}
|
|
6953
7090
|
|
|
6954
|
-
/*! @azure/msal-common v16.
|
|
7091
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
6955
7092
|
/*
|
|
6956
7093
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6957
7094
|
* Licensed under the MIT License.
|
|
@@ -6961,7 +7098,7 @@ const CcsCredentialType = {
|
|
|
6961
7098
|
UPN: "UPN",
|
|
6962
7099
|
};
|
|
6963
7100
|
|
|
6964
|
-
/*! @azure/msal-common v16.
|
|
7101
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
6965
7102
|
/*
|
|
6966
7103
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6967
7104
|
* Licensed under the MIT License.
|
|
@@ -6980,7 +7117,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint, fmiP
|
|
|
6980
7117
|
}
|
|
6981
7118
|
}
|
|
6982
7119
|
|
|
6983
|
-
/*! @azure/msal-common v16.
|
|
7120
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
6984
7121
|
|
|
6985
7122
|
/*
|
|
6986
7123
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7004,7 +7141,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
|
|
|
7004
7141
|
};
|
|
7005
7142
|
}
|
|
7006
7143
|
|
|
7007
|
-
/*! @azure/msal-common v16.
|
|
7144
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
7008
7145
|
|
|
7009
7146
|
/*
|
|
7010
7147
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7094,7 +7231,7 @@ function getRetryAfterHeader(response) {
|
|
|
7094
7231
|
return undefined;
|
|
7095
7232
|
}
|
|
7096
7233
|
|
|
7097
|
-
/*! @azure/msal-common v16.
|
|
7234
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
7098
7235
|
|
|
7099
7236
|
/*
|
|
7100
7237
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7125,7 +7262,7 @@ function createNetworkError(error, httpStatus, responseHeaders, additionalError)
|
|
|
7125
7262
|
return new NetworkError(error, httpStatus, responseHeaders);
|
|
7126
7263
|
}
|
|
7127
7264
|
|
|
7128
|
-
/*! @azure/msal-common v16.
|
|
7265
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
7129
7266
|
|
|
7130
7267
|
/*
|
|
7131
7268
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7259,7 +7396,7 @@ async function sendPostRequest(thumbprint, tokenEndpoint, options, correlationId
|
|
|
7259
7396
|
return response;
|
|
7260
7397
|
}
|
|
7261
7398
|
|
|
7262
|
-
/*! @azure/msal-common v16.
|
|
7399
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
7263
7400
|
|
|
7264
7401
|
/*
|
|
7265
7402
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7310,7 +7447,7 @@ class AuthorizationCodeClient {
|
|
|
7310
7447
|
const response = await invokeAsync(this.executeTokenRequest.bind(this), AuthClientExecuteTokenRequest, this.logger, this.performanceClient, request.correlationId)(this.authority, request, this.serverTelemetryManager);
|
|
7311
7448
|
// Retrieve requestId from response headers
|
|
7312
7449
|
const requestId = response.headers?.[HeaderNames.X_MS_REQUEST_ID];
|
|
7313
|
-
const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.performanceClient, this.config.serializableCache, this.config.persistencePlugin, this.config.tokenBindingKeyManager);
|
|
7450
|
+
const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.performanceClient, this.config.serializableCache, this.config.persistencePlugin, this.config.tokenBindingKeyManager, this.config.dpopNonceProvider);
|
|
7314
7451
|
// Validate response. This function throws a server error if an error is returned by the server.
|
|
7315
7452
|
responseHandler.validateTokenResponse(response.body, request.correlationId);
|
|
7316
7453
|
return invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), HandleServerTokenResponse, this.logger, this.performanceClient, request.correlationId)(response.body, this.authority, reqTimestamp, request, apiId, authCodePayload, undefined, undefined, undefined, requestId);
|
|
@@ -7527,7 +7664,7 @@ class AuthorizationCodeClient {
|
|
|
7527
7664
|
}
|
|
7528
7665
|
}
|
|
7529
7666
|
|
|
7530
|
-
/*! @azure/msal-common v16.
|
|
7667
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
7531
7668
|
|
|
7532
7669
|
/*
|
|
7533
7670
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7757,7 +7894,7 @@ function extractLoginHint(account) {
|
|
|
7757
7894
|
return account.loginHint || account.idTokenClaims?.login_hint || null;
|
|
7758
7895
|
}
|
|
7759
7896
|
|
|
7760
|
-
/*! @azure/msal-common v16.
|
|
7897
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
7761
7898
|
|
|
7762
7899
|
/*
|
|
7763
7900
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8306,7 +8443,7 @@ class PerformanceClient {
|
|
|
8306
8443
|
}
|
|
8307
8444
|
}
|
|
8308
8445
|
|
|
8309
|
-
/*! @azure/msal-common v16.
|
|
8446
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
8310
8447
|
|
|
8311
8448
|
/*
|
|
8312
8449
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8341,7 +8478,7 @@ class RefreshTokenClient {
|
|
|
8341
8478
|
const response = await invokeAsync(this.executeTokenRequest.bind(this), RefreshTokenClientExecuteTokenRequest, this.logger, this.performanceClient, request.correlationId)(request, this.authority);
|
|
8342
8479
|
// Retrieve requestId from response headers
|
|
8343
8480
|
const requestId = response.headers?.[HeaderNames.X_MS_REQUEST_ID];
|
|
8344
|
-
const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.performanceClient, this.config.serializableCache, this.config.persistencePlugin, this.config.tokenBindingKeyManager);
|
|
8481
|
+
const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.performanceClient, this.config.serializableCache, this.config.persistencePlugin, this.config.tokenBindingKeyManager, this.config.dpopNonceProvider);
|
|
8345
8482
|
responseHandler.validateTokenResponse(response.body, request.correlationId);
|
|
8346
8483
|
return invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), HandleServerTokenResponse, this.logger, this.performanceClient, request.correlationId)(response.body, this.authority, reqTimestamp, request, apiId, undefined, undefined, true, request.forceCache, requestId);
|
|
8347
8484
|
}
|
|
@@ -8541,7 +8678,7 @@ class RefreshTokenClient {
|
|
|
8541
8678
|
}
|
|
8542
8679
|
}
|
|
8543
8680
|
|
|
8544
|
-
/*! @azure/msal-common v16.
|
|
8681
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
8545
8682
|
|
|
8546
8683
|
/*
|
|
8547
8684
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8834,7 +8971,7 @@ class StubServerTelemetryManager extends ServerTelemetryManager {
|
|
|
8834
8971
|
clearNativeBrokerErrorCode() { }
|
|
8835
8972
|
}
|
|
8836
8973
|
|
|
8837
|
-
/*! @azure/msal-common v16.
|
|
8974
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
8838
8975
|
|
|
8839
8976
|
/*
|
|
8840
8977
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8957,11 +9094,12 @@ class SilentFlowClient {
|
|
|
8957
9094
|
return ResponseHandler.generateAuthenticationResult(this.cryptoUtils, this.authority, cacheRecord, true, request, this.performanceClient, {
|
|
8958
9095
|
idTokenClaims,
|
|
8959
9096
|
tokenBindingKeyManager: this.config.tokenBindingKeyManager,
|
|
9097
|
+
dpopNonceProvider: this.config.dpopNonceProvider,
|
|
8960
9098
|
});
|
|
8961
9099
|
}
|
|
8962
9100
|
}
|
|
8963
9101
|
|
|
8964
|
-
/*! @azure/msal-common v16.
|
|
9102
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
8965
9103
|
|
|
8966
9104
|
/*
|
|
8967
9105
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8977,7 +9115,7 @@ const StubbedNetworkModule = {
|
|
|
8977
9115
|
},
|
|
8978
9116
|
};
|
|
8979
9117
|
|
|
8980
|
-
/*! @azure/msal-common v16.
|
|
9118
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
8981
9119
|
|
|
8982
9120
|
/*
|
|
8983
9121
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -9029,6 +9167,11 @@ const AcquireTokenByRefreshToken = "acquireTokenByRefreshToken";
|
|
|
9029
9167
|
* Internal API for acquireTokenSilent.
|
|
9030
9168
|
*/
|
|
9031
9169
|
const AcquireTokenSilentAsync = "acquireTokenSilentAsync";
|
|
9170
|
+
/**
|
|
9171
|
+
* loadDpopNonce API in StandardController (msal-browser).
|
|
9172
|
+
* Stores a resource-server DPoP nonce in controller-owned memory.
|
|
9173
|
+
*/
|
|
9174
|
+
const StandardControllerLoadDpopNonce = "standardControllerLoadDpopNonce";
|
|
9032
9175
|
/**
|
|
9033
9176
|
* provisionTokenBindingKey API in TokenBindingKeyManager class (msal-browser).
|
|
9034
9177
|
* Used to provision token-binding key material and return a key identifier.
|
|
@@ -9995,7 +10138,9 @@ async function decryptEarResponse(earJwk, earJwe) {
|
|
|
9995
10138
|
const iv = base64DecToArr(earJweParts[2]);
|
|
9996
10139
|
const ciphertext = base64DecToArr(earJweParts[3]);
|
|
9997
10140
|
const tag = base64DecToArr(earJweParts[4]);
|
|
9998
|
-
|
|
10141
|
+
if (tag.byteLength !== 16) {
|
|
10142
|
+
throw new Error("Invalid AES-GCM authentication tag length");
|
|
10143
|
+
}
|
|
9999
10144
|
// Concat ciphertext and tag
|
|
10000
10145
|
const encryptedData = new Uint8Array(ciphertext.length + tag.length);
|
|
10001
10146
|
encryptedData.set(ciphertext);
|
|
@@ -10003,7 +10148,7 @@ async function decryptEarResponse(earJwk, earJwe) {
|
|
|
10003
10148
|
const decryptedData = await window.crypto.subtle.decrypt({
|
|
10004
10149
|
name: AES_GCM,
|
|
10005
10150
|
iv: iv,
|
|
10006
|
-
tagLength:
|
|
10151
|
+
tagLength: 128,
|
|
10007
10152
|
additionalData: header,
|
|
10008
10153
|
}, key, encryptedData);
|
|
10009
10154
|
return new TextDecoder().decode(decryptedData);
|
|
@@ -11901,7 +12046,7 @@ const EventType = {
|
|
|
11901
12046
|
|
|
11902
12047
|
/* eslint-disable header/header */
|
|
11903
12048
|
const name = "@azure/msal-browser";
|
|
11904
|
-
const version = "5.
|
|
12049
|
+
const version = "5.31.0";
|
|
11905
12050
|
|
|
11906
12051
|
/*
|
|
11907
12052
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -11923,6 +12068,7 @@ function removeElementFromArray(array, element) {
|
|
|
11923
12068
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
11924
12069
|
* Licensed under the MIT License.
|
|
11925
12070
|
*/
|
|
12071
|
+
const MAX_RESOURCE_SERVER_NONCES = 50;
|
|
11926
12072
|
/**
|
|
11927
12073
|
* Reason an old-schema cache entry was removed during migration.
|
|
11928
12074
|
*/
|
|
@@ -11938,6 +12084,7 @@ const MigrationRemovalReason = {
|
|
|
11938
12084
|
class BrowserCacheManager extends CacheManager {
|
|
11939
12085
|
constructor(clientId, cacheConfig, cryptoImpl, logger, performanceClient, eventHandler, staticAuthorityOptions, tokenBindingKeyManager = DEFAULT_TOKEN_BINDING_KEY_MANAGER) {
|
|
11940
12086
|
super(clientId, cryptoImpl, logger, performanceClient, staticAuthorityOptions, tokenBindingKeyManager);
|
|
12087
|
+
this.dpopNonces = new Map();
|
|
11941
12088
|
this.cacheConfig = cacheConfig;
|
|
11942
12089
|
this.logger = logger;
|
|
11943
12090
|
this.internalStorage = new MemoryStorage();
|
|
@@ -12958,6 +13105,40 @@ class BrowserCacheManager extends CacheManager {
|
|
|
12958
13105
|
const version = this.internalStorage.getItem(InMemoryCacheKeys.WRAPPER_VER) || "";
|
|
12959
13106
|
return [sku, version];
|
|
12960
13107
|
}
|
|
13108
|
+
/**
|
|
13109
|
+
* Stores a validated resource-server DPoP nonce in PCA-local memory.
|
|
13110
|
+
* @internal
|
|
13111
|
+
*/
|
|
13112
|
+
setDpopNonce(resourceRequestUri, dpopNonce, correlationId = "") {
|
|
13113
|
+
const resourceServer = canonicalizeDpopResourceServer(resourceRequestUri, correlationId);
|
|
13114
|
+
const validatedNonce = validateDpopNonce(dpopNonce, correlationId);
|
|
13115
|
+
// Reinsert replacements so eviction remains oldest-write ordered.
|
|
13116
|
+
this.dpopNonces.delete(resourceServer);
|
|
13117
|
+
this.dpopNonces.set(resourceServer, validatedNonce);
|
|
13118
|
+
if (this.dpopNonces.size > MAX_RESOURCE_SERVER_NONCES) {
|
|
13119
|
+
const oldestResourceServer = this.dpopNonces.keys().next().value;
|
|
13120
|
+
if (oldestResourceServer) {
|
|
13121
|
+
this.dpopNonces.delete(oldestResourceServer);
|
|
13122
|
+
}
|
|
13123
|
+
this.performanceClient.incrementFields({ "ext.dpopNonceCacheEvictionCount": 1 }, correlationId);
|
|
13124
|
+
}
|
|
13125
|
+
}
|
|
13126
|
+
/**
|
|
13127
|
+
* Reads the current resource-server DPoP nonce from PCA-local memory.
|
|
13128
|
+
* This optional structural capability is consumed by msal-common without
|
|
13129
|
+
* adding methods to the CacheManager abstraction.
|
|
13130
|
+
* @internal
|
|
13131
|
+
*/
|
|
13132
|
+
getDpopNonce(resourceRequestUri, correlationId = "") {
|
|
13133
|
+
return this.dpopNonces.get(canonicalizeDpopResourceServer(resourceRequestUri, correlationId));
|
|
13134
|
+
}
|
|
13135
|
+
/**
|
|
13136
|
+
* Clears all PCA-local DPoP nonce state.
|
|
13137
|
+
* @internal
|
|
13138
|
+
*/
|
|
13139
|
+
clearDpopNonces() {
|
|
13140
|
+
this.dpopNonces.clear();
|
|
13141
|
+
}
|
|
12961
13142
|
/**
|
|
12962
13143
|
*
|
|
12963
13144
|
* @param key
|
|
@@ -13102,6 +13283,7 @@ class BrowserCacheManager extends CacheManager {
|
|
|
13102
13283
|
}
|
|
13103
13284
|
});
|
|
13104
13285
|
this.internalStorage.clear();
|
|
13286
|
+
this.dpopNonces.clear();
|
|
13105
13287
|
}
|
|
13106
13288
|
/**
|
|
13107
13289
|
* Prepend msal.<client-id> to each key
|
|
@@ -13632,7 +13814,7 @@ class EventHandler {
|
|
|
13632
13814
|
* Licensed under the MIT License.
|
|
13633
13815
|
*/
|
|
13634
13816
|
class BaseInteractionClient {
|
|
13635
|
-
constructor(config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, performanceClient, correlationId, platformAuthProvider, tokenBindingKeyManager) {
|
|
13817
|
+
constructor(config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, performanceClient, correlationId, platformAuthProvider, tokenBindingKeyManager, dpopNonceProvider) {
|
|
13636
13818
|
this.config = config;
|
|
13637
13819
|
this.browserStorage = storageImpl;
|
|
13638
13820
|
this.browserCrypto = browserCrypto;
|
|
@@ -13646,6 +13828,7 @@ class BaseInteractionClient {
|
|
|
13646
13828
|
this.tokenBindingKeyManager =
|
|
13647
13829
|
tokenBindingKeyManager ||
|
|
13648
13830
|
new TokenBindingKeyManager(this.logger, this.performanceClient);
|
|
13831
|
+
this.dpopNonceProvider = dpopNonceProvider ?? storageImpl;
|
|
13649
13832
|
}
|
|
13650
13833
|
}
|
|
13651
13834
|
/**
|
|
@@ -13744,6 +13927,7 @@ async function getDiscoveredAuthority(config, correlationId, performanceClient,
|
|
|
13744
13927
|
* @returns A promise that resolves when the cache has been cleared.
|
|
13745
13928
|
*/
|
|
13746
13929
|
async function clearCacheOnLogout(browserStorage, browserCrypto, logger, correlationId, account) {
|
|
13930
|
+
browserStorage.clearDpopNonces();
|
|
13747
13931
|
if (account) {
|
|
13748
13932
|
// Clear given account.
|
|
13749
13933
|
try {
|
|
@@ -13891,6 +14075,7 @@ async function initializeBaseRequest(request, config, performanceClient, logger,
|
|
|
13891
14075
|
}
|
|
13892
14076
|
logger.verbose(`1ecmns ${validatedRequest.authenticationScheme}`, correlationId);
|
|
13893
14077
|
}
|
|
14078
|
+
performanceClient.addFields({ authenticationScheme: validatedRequest.authenticationScheme }, correlationId);
|
|
13894
14079
|
return validatedRequest;
|
|
13895
14080
|
}
|
|
13896
14081
|
async function initializeSilentRequest(request, account, config, performanceClient, logger) {
|
|
@@ -14165,6 +14350,7 @@ class StandardInteractionClient extends BaseInteractionClient {
|
|
|
14165
14350
|
},
|
|
14166
14351
|
cryptoInterface: this.browserCrypto,
|
|
14167
14352
|
tokenBindingKeyManager: this.tokenBindingKeyManager,
|
|
14353
|
+
dpopNonceProvider: this.dpopNonceProvider,
|
|
14168
14354
|
networkInterface: this.networkClient,
|
|
14169
14355
|
storageInterface: this.browserStorage,
|
|
14170
14356
|
serverTelemetryManager: serverTelemetryManager,
|
|
@@ -14805,7 +14991,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
14805
14991
|
this.accountId = accountId;
|
|
14806
14992
|
this.platformAuthProvider = provider;
|
|
14807
14993
|
this.nativeStorageManager = nativeStorageImpl;
|
|
14808
|
-
this.silentCacheClient = new SilentCacheClient(config, this.nativeStorageManager, browserCrypto, logger, eventHandler, navigationClient, performanceClient, correlationId, provider, this.tokenBindingKeyManager);
|
|
14994
|
+
this.silentCacheClient = new SilentCacheClient(config, this.nativeStorageManager, browserCrypto, logger, eventHandler, navigationClient, performanceClient, correlationId, provider, this.tokenBindingKeyManager, browserStorage);
|
|
14809
14995
|
const extensionName = this.platformAuthProvider.getExtensionName();
|
|
14810
14996
|
this.skus = ServerTelemetryManager.makeExtraSkuString({
|
|
14811
14997
|
libraryName: BrowserConstants.MSAL_SKU,
|
|
@@ -15190,6 +15376,11 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
15190
15376
|
const shouldRemoveGeneratedDpopKey = isL3DpopResponse ||
|
|
15191
15377
|
(this.isDpopBrokerRequest(request) &&
|
|
15192
15378
|
storeInCache?.accessToken === false);
|
|
15379
|
+
if (dpopBrokerOutcome === "L1" &&
|
|
15380
|
+
!shouldRemoveGeneratedDpopKey &&
|
|
15381
|
+
request.keyId) {
|
|
15382
|
+
ResponseHandler.setDpopKeyId(result, request.keyId);
|
|
15383
|
+
}
|
|
15193
15384
|
if (shouldRemoveGeneratedDpopKey) {
|
|
15194
15385
|
await this.resetGeneratedDpopRequestKey(request);
|
|
15195
15386
|
}
|
|
@@ -15458,7 +15649,12 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
15458
15649
|
const configClaims = request.skipBrokerClaims && !!request.embeddedClientId
|
|
15459
15650
|
? undefined
|
|
15460
15651
|
: this.config.auth.clientCapabilities;
|
|
15461
|
-
const { scopes, claims
|
|
15652
|
+
const { scopes, claims } = request;
|
|
15653
|
+
const dpopNonce = request.authenticationScheme ===
|
|
15654
|
+
AuthenticationScheme$1.DPOP &&
|
|
15655
|
+
request.resourceRequestUri
|
|
15656
|
+
? this.browserStorage.getDpopNonce(request.resourceRequestUri, this.correlationId)
|
|
15657
|
+
: undefined;
|
|
15462
15658
|
const scopeSet = new ScopeSet([...(scopes || []), ...OIDC_DEFAULT_SCOPES$1], this.correlationId);
|
|
15463
15659
|
const mergedClaims = buildMergedClaims$1(claims, configClaims?.length ? configClaims : undefined);
|
|
15464
15660
|
const hasAttributeTokens = !!request.attributeTokens?.length;
|
|
@@ -15768,11 +15964,14 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
15768
15964
|
return brokerProof;
|
|
15769
15965
|
}
|
|
15770
15966
|
const dpopProofGenerator = new DpopProofGenerator(this.browserCrypto, this.tokenBindingKeyManager);
|
|
15967
|
+
const currentNonce = request.resourceRequestUri
|
|
15968
|
+
? this.browserStorage.getDpopNonce(request.resourceRequestUri, this.correlationId)
|
|
15969
|
+
: undefined;
|
|
15771
15970
|
return dpopProofGenerator.generateResourceProof({
|
|
15772
15971
|
htu: request.resourceRequestUri,
|
|
15773
15972
|
htm: request.resourceRequestMethod,
|
|
15774
15973
|
accessToken: response.access_token,
|
|
15775
|
-
nonce: request.extraParametersNoCache?.pop_nonce,
|
|
15974
|
+
nonce: currentNonce ?? request.extraParametersNoCache?.pop_nonce,
|
|
15776
15975
|
}, request.keyId, this.correlationId);
|
|
15777
15976
|
}
|
|
15778
15977
|
/**
|
|
@@ -16260,6 +16459,7 @@ async function handleResponseCode(request, response, codeVerifier, apiId, config
|
|
|
16260
16459
|
// Instrument clientdata telemetry fields from the authorize response
|
|
16261
16460
|
instrumentClientData(response, request.correlationId, performanceClient);
|
|
16262
16461
|
if (response.accountId) {
|
|
16462
|
+
validateAuthorizationResponse(response, request.state, request.correlationId);
|
|
16263
16463
|
return invokeAsync(handleResponsePlatformBroker, HandleResponsePlatformBroker, logger, performanceClient, request.correlationId)(request, response.accountId, apiId, config, browserStorage, nativeStorage, eventHandler, logger, performanceClient, platformAuthProvider, tokenBindingKeyManager);
|
|
16264
16464
|
}
|
|
16265
16465
|
const authCodeRequest = {
|
|
@@ -17117,7 +17317,6 @@ class PlatformAuthExtensionHandler {
|
|
|
17117
17317
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
17118
17318
|
* Licensed under the MIT License.
|
|
17119
17319
|
*/
|
|
17120
|
-
const PLATFORM_AUTH_DOM_DPOP_NOT_SUPPORTED = "platform_auth_dom_dpop_not_supported";
|
|
17121
17320
|
class PlatformAuthDOMHandler {
|
|
17122
17321
|
constructor(logger, performanceClient, correlationId) {
|
|
17123
17322
|
this.logger = logger;
|
|
@@ -17197,11 +17396,9 @@ class PlatformAuthDOMHandler {
|
|
|
17197
17396
|
});
|
|
17198
17397
|
this.logger.trace(`02bcil ${this.platformAuthType}`, correlationId);
|
|
17199
17398
|
try {
|
|
17200
|
-
if (request.tokenType?.trim().toLowerCase() ===
|
|
17201
|
-
PlatformAuthTokenType.DPOP_WITH_PROOF) {
|
|
17202
|
-
throw createBrowserAuthError(PLATFORM_AUTH_DOM_DPOP_NOT_SUPPORTED, correlationId);
|
|
17203
|
-
}
|
|
17204
17399
|
const platformDOMRequest = invoke(this.initializePlatformDOMRequest.bind(this), PlatformAuthDOMInitializeRequest, this.logger, this.performanceClient, correlationId)(request);
|
|
17400
|
+
request.bindingPreferenceSent =
|
|
17401
|
+
platformDOMRequest.preferBinding !== undefined;
|
|
17205
17402
|
const response =
|
|
17206
17403
|
// @ts-ignore
|
|
17207
17404
|
await window.navigator.platformAuthentication.executeGetToken(platformDOMRequest);
|
|
@@ -17246,8 +17443,12 @@ class PlatformAuthDOMHandler {
|
|
|
17246
17443
|
preferBinding: preferBinding,
|
|
17247
17444
|
enclave: enclave,
|
|
17248
17445
|
requestConfirmation: reqCnf,
|
|
17249
|
-
extraParametersNoCache
|
|
17446
|
+
extraParametersNoCache: extraParametersNoCache && {
|
|
17447
|
+
...extraParametersNoCache,
|
|
17448
|
+
},
|
|
17250
17449
|
};
|
|
17450
|
+
delete platformDOMRequest.extraParameters?.bindingPreferenceSent;
|
|
17451
|
+
delete platformDOMRequest.extraParametersNoCache?.bindingPreferenceSent;
|
|
17251
17452
|
return platformDOMRequest;
|
|
17252
17453
|
}
|
|
17253
17454
|
validatePlatformBrokerResponse(response, correlationId) {
|
|
@@ -17264,7 +17465,8 @@ class PlatformAuthDOMHandler {
|
|
|
17264
17465
|
requiredKeys.every((key) => Object.prototype.hasOwnProperty.call(response, key));
|
|
17265
17466
|
if (response &&
|
|
17266
17467
|
Object.prototype.hasOwnProperty.call(response, "isSuccess")) {
|
|
17267
|
-
if (isValid
|
|
17468
|
+
if (isValid &&
|
|
17469
|
+
response.isSuccess === true) {
|
|
17268
17470
|
this.logger.trace(`0h4vei ${this.platformAuthType}`, correlationId);
|
|
17269
17471
|
try {
|
|
17270
17472
|
const validatedResponse = this.convertToPlatformBrokerResponse(response, correlationId);
|
|
@@ -17317,7 +17519,6 @@ class PlatformAuthDOMHandler {
|
|
|
17317
17519
|
convertToPlatformBrokerResponse(response, correlationId) {
|
|
17318
17520
|
this.logger.trace(`14913t ${this.platformAuthType}`, correlationId);
|
|
17319
17521
|
const responseProperties = response.properties || {};
|
|
17320
|
-
const bindingAttested = this.parseDOMBoolean(responseProperties.binding_attested, "binding_attested", correlationId);
|
|
17321
17522
|
const nativeResponse = {
|
|
17322
17523
|
access_token: response.accessToken,
|
|
17323
17524
|
id_token: response.idToken,
|
|
@@ -17329,21 +17530,9 @@ class PlatformAuthDOMHandler {
|
|
|
17329
17530
|
properties: responseProperties,
|
|
17330
17531
|
extendedLifetimeToken: response.extendedLifetimeToken ?? false,
|
|
17331
17532
|
shr: response.proofOfPossessionPayload,
|
|
17332
|
-
token_type: responseProperties.token_type,
|
|
17333
|
-
DPoP: responseProperties.dpop_proof,
|
|
17334
|
-
binding_attested: bindingAttested,
|
|
17335
17533
|
};
|
|
17336
17534
|
return nativeResponse;
|
|
17337
17535
|
}
|
|
17338
|
-
parseDOMBoolean(value, propertyName, correlationId) {
|
|
17339
|
-
if (value === undefined) {
|
|
17340
|
-
return undefined;
|
|
17341
|
-
}
|
|
17342
|
-
if (value === "true" || value === "false") {
|
|
17343
|
-
return value === "true";
|
|
17344
|
-
}
|
|
17345
|
-
throw createAuthError(unexpectedError, correlationId, `Platform broker returned invalid ${propertyName} value.`);
|
|
17346
|
-
}
|
|
17347
17536
|
getDOMExtraParams(extraParameters, correlationId) {
|
|
17348
17537
|
try {
|
|
17349
17538
|
const stringifiedProperties = {};
|
|
@@ -17456,8 +17645,7 @@ function isPlatformAuthAllowed(config, logger, correlationId, platformAuthProvid
|
|
|
17456
17645
|
const schemeSupported = !authenticationScheme ||
|
|
17457
17646
|
authenticationScheme === AuthenticationScheme$1.BEARER ||
|
|
17458
17647
|
authenticationScheme === AuthenticationScheme$1.POP ||
|
|
17459
|
-
|
|
17460
|
-
!(platformAuthProvider instanceof PlatformAuthDOMHandler));
|
|
17648
|
+
authenticationScheme === AuthenticationScheme$1.DPOP;
|
|
17461
17649
|
const fields = {
|
|
17462
17650
|
allowPlatformBroker: config.system.allowPlatformBroker,
|
|
17463
17651
|
...(config.system.allowPlatformBroker && {
|
|
@@ -19040,7 +19228,10 @@ function preparePlatformSilentRequest({ request, account, config, }) {
|
|
|
19040
19228
|
account,
|
|
19041
19229
|
});
|
|
19042
19230
|
return {
|
|
19043
|
-
key:
|
|
19231
|
+
key: platformRequest.authenticationScheme ===
|
|
19232
|
+
AuthenticationScheme$1.DPOP
|
|
19233
|
+
? undefined
|
|
19234
|
+
: `platform:${getPlatformSilentRequestKey(platformRequest, config)}`,
|
|
19044
19235
|
request: platformRequest,
|
|
19045
19236
|
account: platformRequest.account,
|
|
19046
19237
|
};
|
|
@@ -19072,7 +19263,6 @@ function getPlatformSilentRequestKey(request, config) {
|
|
|
19072
19263
|
loginHint: request.loginHint,
|
|
19073
19264
|
popKid: request.popKid,
|
|
19074
19265
|
shrNonce: request.shrNonce,
|
|
19075
|
-
dpopNonce: request.dpopNonce,
|
|
19076
19266
|
skipBrokerClaims: request.embeddedClientId
|
|
19077
19267
|
? !!request.skipBrokerClaims
|
|
19078
19268
|
: undefined,
|
|
@@ -20321,6 +20511,16 @@ class StandardController {
|
|
|
20321
20511
|
getLogger() {
|
|
20322
20512
|
return this.logger;
|
|
20323
20513
|
}
|
|
20514
|
+
/**
|
|
20515
|
+
* Stores a resource-server DPoP nonce for the matching HTTPS origin.
|
|
20516
|
+
*/
|
|
20517
|
+
async loadDpopNonce(resourceRequestUri, dpopNonce) {
|
|
20518
|
+
blockNonBrowserEnvironment();
|
|
20519
|
+
const correlationId = createNewGuid();
|
|
20520
|
+
return invokeAsync(async () => {
|
|
20521
|
+
this.browserStorage.setDpopNonce(resourceRequestUri, dpopNonce, correlationId);
|
|
20522
|
+
}, StandardControllerLoadDpopNonce, this.logger, this.performanceClient, correlationId)();
|
|
20523
|
+
}
|
|
20324
20524
|
/**
|
|
20325
20525
|
* Replaces the default logger set in configurations with new Logger with new configurations
|
|
20326
20526
|
* @param logger Logger instance
|
|
@@ -20475,32 +20675,55 @@ class StandardController {
|
|
|
20475
20675
|
correlationId,
|
|
20476
20676
|
config: this.config,
|
|
20477
20677
|
}, this.platformAuthProvider, this.logger, this.performanceClient);
|
|
20478
|
-
const
|
|
20479
|
-
|
|
20678
|
+
const requestKey = preparedRequest.key;
|
|
20679
|
+
const shouldDeduplicate = requestKey !== undefined;
|
|
20480
20680
|
const inProgressRequest = shouldDeduplicate
|
|
20481
|
-
? this.activeSilentTokenRequests.get(
|
|
20681
|
+
? this.activeSilentTokenRequests.get(requestKey)
|
|
20482
20682
|
: undefined;
|
|
20483
20683
|
if (typeof inProgressRequest === "undefined") {
|
|
20484
20684
|
this.logger.verbose(shouldDeduplicate
|
|
20485
20685
|
? "0fcjbk"
|
|
20486
|
-
: "acquireTokenSilent called for DPoP request, starting an independent operation", correlationId);
|
|
20686
|
+
: "acquireTokenSilent called for platform DPoP request, starting an independent operation", correlationId);
|
|
20487
20687
|
this.performanceClient.addFields({ deduped: false }, correlationId);
|
|
20488
20688
|
const activeRequest = invokeAsync(this.acquireTokenSilentAsync.bind(this), AcquireTokenSilentAsync, this.logger, this.performanceClient, correlationId)({
|
|
20489
20689
|
...preparedRequest.request,
|
|
20490
20690
|
correlationId,
|
|
20491
20691
|
}, preparedRequest.account);
|
|
20492
|
-
if (
|
|
20692
|
+
if (requestKey === undefined) {
|
|
20493
20693
|
return activeRequest;
|
|
20494
20694
|
}
|
|
20495
|
-
this.activeSilentTokenRequests.set(
|
|
20695
|
+
this.activeSilentTokenRequests.set(requestKey, activeRequest);
|
|
20496
20696
|
return activeRequest.finally(() => {
|
|
20497
|
-
this.activeSilentTokenRequests.delete(
|
|
20697
|
+
this.activeSilentTokenRequests.delete(requestKey);
|
|
20498
20698
|
});
|
|
20499
20699
|
}
|
|
20500
20700
|
else {
|
|
20501
20701
|
this.logger.verbose("1yq7nb", correlationId);
|
|
20502
20702
|
this.performanceClient.addFields({ deduped: true }, correlationId);
|
|
20503
|
-
|
|
20703
|
+
const joiningRequest = {
|
|
20704
|
+
...preparedRequest.request,
|
|
20705
|
+
correlationId,
|
|
20706
|
+
};
|
|
20707
|
+
const result = await inProgressRequest;
|
|
20708
|
+
if (joiningRequest.authenticationScheme !==
|
|
20709
|
+
AuthenticationScheme$1.DPOP) {
|
|
20710
|
+
return result;
|
|
20711
|
+
}
|
|
20712
|
+
if (result.fromPlatformBroker &&
|
|
20713
|
+
!ResponseHandler.hasDpopKeyId(result)) {
|
|
20714
|
+
return invokeAsync(this.acquireTokenSilentAsync.bind(this), AcquireTokenSilentAsync, this.logger, this.performanceClient, correlationId)(joiningRequest, result.account || preparedRequest.account);
|
|
20715
|
+
}
|
|
20716
|
+
const dpopProof = await ResponseHandler.generateDpopResourceProof(this.browserCrypto, result, {
|
|
20717
|
+
...joiningRequest,
|
|
20718
|
+
authority: joiningRequest.authority || this.config.auth.authority,
|
|
20719
|
+
}, this.performanceClient, {
|
|
20720
|
+
tokenBindingKeyManager: this.tokenBindingKeyManager,
|
|
20721
|
+
dpopNonceProvider: this.browserStorage,
|
|
20722
|
+
});
|
|
20723
|
+
return {
|
|
20724
|
+
...result,
|
|
20725
|
+
dpopProof,
|
|
20726
|
+
};
|
|
20504
20727
|
}
|
|
20505
20728
|
}
|
|
20506
20729
|
/**
|
|
@@ -21268,8 +21491,21 @@ class NestedAppAuthController {
|
|
|
21268
21491
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
21269
21492
|
isBroker) {
|
|
21270
21493
|
const initCorrelationId = request?.correlationId || createNewGuid();
|
|
21271
|
-
|
|
21272
|
-
|
|
21494
|
+
const initMeasurement = this.performanceClient.startMeasurement(InitializeClientApplication, initCorrelationId);
|
|
21495
|
+
initMeasurement.add({
|
|
21496
|
+
nestedAppAuthRequest: true,
|
|
21497
|
+
bridgeType: "NAA",
|
|
21498
|
+
});
|
|
21499
|
+
try {
|
|
21500
|
+
await invokeAsync(this.browserStorage.initialize.bind(this.browserStorage), InitializeCache, this.logger, this.performanceClient, initCorrelationId)(initCorrelationId);
|
|
21501
|
+
}
|
|
21502
|
+
catch (error) {
|
|
21503
|
+
initMeasurement.discard();
|
|
21504
|
+
throw error;
|
|
21505
|
+
}
|
|
21506
|
+
initMeasurement.end({
|
|
21507
|
+
success: true,
|
|
21508
|
+
});
|
|
21273
21509
|
}
|
|
21274
21510
|
/**
|
|
21275
21511
|
* Validate the incoming request and add correlationId if not present
|
|
@@ -21678,6 +21914,13 @@ class NestedAppAuthController {
|
|
|
21678
21914
|
async clearCache(logoutRequest) {
|
|
21679
21915
|
throw NestedAppAuthError.createUnsupportedError(logoutRequest?.correlationId);
|
|
21680
21916
|
}
|
|
21917
|
+
/**
|
|
21918
|
+
* Rejects DPoP nonce loading until nested app authentication supports
|
|
21919
|
+
* forwarding the complete resource proof context.
|
|
21920
|
+
*/
|
|
21921
|
+
loadDpopNonce() {
|
|
21922
|
+
return Promise.reject(NestedAppAuthError.createUnsupportedError());
|
|
21923
|
+
}
|
|
21681
21924
|
async hydrateCache(result, request) {
|
|
21682
21925
|
this.logger.verbose("16jycr", result.correlationId);
|
|
21683
21926
|
const accountEntity = createAccountEntityFromAccountInfo(result.account, result.cloudGraphHostName, result.msGraphHost);
|
|
@@ -22307,6 +22550,12 @@ class PublicClientApplication {
|
|
|
22307
22550
|
getActiveAccount() {
|
|
22308
22551
|
return this.controller.getActiveAccount();
|
|
22309
22552
|
}
|
|
22553
|
+
/**
|
|
22554
|
+
* Stores an opaque resource-server DPoP nonce for the matching HTTPS origin.
|
|
22555
|
+
*/
|
|
22556
|
+
loadDpopNonce(resourceRequestUri, dpopNonce) {
|
|
22557
|
+
return this.controller.loadDpopNonce(resourceRequestUri, dpopNonce);
|
|
22558
|
+
}
|
|
22310
22559
|
/**
|
|
22311
22560
|
* Called by wrapper libraries (Angular & React) to set SKU and Version passed down to telemetry, logger, etc.
|
|
22312
22561
|
* @param sku
|
|
@@ -22353,10 +22602,11 @@ class PublicClientApplication {
|
|
|
22353
22602
|
* @param configuration
|
|
22354
22603
|
* @param correlationId
|
|
22355
22604
|
* @param pcaFactory
|
|
22605
|
+
* @param standardPcaFactory
|
|
22356
22606
|
* @returns IPublicClientApplication
|
|
22357
22607
|
*
|
|
22358
22608
|
*/
|
|
22359
|
-
async function createNestablePublicClientApplication(configuration, correlationId, pcaFactory) {
|
|
22609
|
+
async function createNestablePublicClientApplication(configuration, correlationId, pcaFactory, standardPcaFactory) {
|
|
22360
22610
|
const nestedAppAuth = new NestedAppOperatingContext(configuration);
|
|
22361
22611
|
await nestedAppAuth.initialize(correlationId);
|
|
22362
22612
|
if (nestedAppAuth.isAvailable()) {
|
|
@@ -22368,6 +22618,11 @@ async function createNestablePublicClientApplication(configuration, correlationI
|
|
|
22368
22618
|
await nestablePCA.initialize({ correlationId: cid });
|
|
22369
22619
|
return nestablePCA;
|
|
22370
22620
|
}
|
|
22621
|
+
if (standardPcaFactory) {
|
|
22622
|
+
const standardPCA = standardPcaFactory(configuration);
|
|
22623
|
+
await standardPCA.initialize(correlationId ? { correlationId } : undefined);
|
|
22624
|
+
return standardPCA;
|
|
22625
|
+
}
|
|
22371
22626
|
return createStandardPublicClientApplication(configuration);
|
|
22372
22627
|
}
|
|
22373
22628
|
/**
|
|
@@ -22500,6 +22755,9 @@ const stubbedPublicClientApplication = {
|
|
|
22500
22755
|
clearCache: () => {
|
|
22501
22756
|
return Promise.reject(createBrowserConfigurationAuthError(stubbedPublicClientApplicationCalled, ""));
|
|
22502
22757
|
},
|
|
22758
|
+
loadDpopNonce: () => {
|
|
22759
|
+
return Promise.reject(createBrowserConfigurationAuthError(stubbedPublicClientApplicationCalled, ""));
|
|
22760
|
+
},
|
|
22503
22761
|
};
|
|
22504
22762
|
|
|
22505
22763
|
/*
|