@azure/msal-browser 5.14.0 → 5.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/IPublicClientApplication.mjs +16 -16
- package/dist/app/IPublicClientApplication.mjs.map +1 -1
- package/dist/app/PublicClientApplication.mjs +1 -1
- package/dist/app/PublicClientApplication.mjs.map +1 -1
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +3 -3
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +7 -7
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +2 -2
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs.map +1 -1
- package/dist/cache/AccountManager.mjs +1 -1
- package/dist/cache/AccountManager.mjs.map +1 -1
- package/dist/cache/AsyncMemoryStorage.mjs +1 -1
- package/dist/cache/AsyncMemoryStorage.mjs.map +1 -1
- package/dist/cache/BrowserCacheManager.mjs +13 -11
- package/dist/cache/BrowserCacheManager.mjs.map +1 -1
- package/dist/cache/CacheHelpers.mjs +1 -1
- package/dist/cache/CacheHelpers.mjs.map +1 -1
- package/dist/cache/CacheKeys.mjs +1 -1
- package/dist/cache/CacheKeys.mjs.map +1 -1
- package/dist/cache/CookieStorage.mjs +4 -4
- package/dist/cache/CookieStorage.mjs.map +1 -1
- package/dist/cache/DatabaseStorage.mjs +7 -7
- package/dist/cache/DatabaseStorage.mjs.map +1 -1
- package/dist/cache/EncryptedData.mjs +1 -1
- package/dist/cache/LocalStorage.mjs +5 -5
- package/dist/cache/LocalStorage.mjs.map +1 -1
- package/dist/cache/MemoryStorage.mjs +1 -1
- package/dist/cache/MemoryStorage.mjs.map +1 -1
- package/dist/cache/SessionStorage.mjs +2 -2
- package/dist/cache/SessionStorage.mjs.map +1 -1
- package/dist/cache/TokenCache.mjs +7 -7
- package/dist/cache/TokenCache.mjs.map +1 -1
- package/dist/config/Configuration.mjs +3 -3
- package/dist/config/Configuration.mjs.map +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +14 -15
- package/dist/controllers/NestedAppAuthController.mjs.map +1 -1
- package/dist/controllers/StandardController.mjs +12 -12
- package/dist/controllers/StandardController.mjs.map +1 -1
- package/dist/crypto/BrowserCrypto.mjs +7 -7
- package/dist/crypto/BrowserCrypto.mjs.map +1 -1
- package/dist/crypto/CryptoOps.mjs +3 -3
- package/dist/crypto/CryptoOps.mjs.map +1 -1
- package/dist/crypto/PkceGenerator.mjs +3 -3
- package/dist/crypto/PkceGenerator.mjs.map +1 -1
- package/dist/crypto/SignedHttpRequest.mjs +1 -1
- package/dist/crypto/SignedHttpRequest.mjs.map +1 -1
- package/dist/custom_auth/CustomAuthConstants.mjs +1 -1
- package/dist/custom_auth/CustomAuthConstants.mjs.map +1 -1
- package/dist/custom_auth/CustomAuthPublicClientApplication.mjs +1 -1
- package/dist/custom_auth/CustomAuthPublicClientApplication.mjs.map +1 -1
- package/dist/custom_auth/controller/CustomAuthStandardController.mjs +1 -1
- package/dist/custom_auth/controller/CustomAuthStandardController.mjs.map +1 -1
- package/dist/custom_auth/core/CustomAuthAuthority.mjs +2 -2
- 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/AuthFlowErrorBase.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowResultBase.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowState.mjs.map +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/error_type/AuthMethodRegistrationError.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -1
- 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 -1
- 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/AuthMethodRegistrationCompletedState.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +1 -1
- 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/error_type/MfaError.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +1 -1
- 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 -1
- 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/MfaCompletedState.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs.map +1 -1
- package/dist/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
- package/dist/custom_auth/core/error/CustomAuthApiError.mjs.map +1 -1
- package/dist/custom_auth/core/error/CustomAuthError.mjs +1 -1
- package/dist/custom_auth/core/error/CustomAuthError.mjs.map +1 -1
- package/dist/custom_auth/core/error/HttpError.mjs +1 -1
- package/dist/custom_auth/core/error/HttpError.mjs.map +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/InvalidArgumentError.mjs.map +1 -1
- package/dist/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
- package/dist/custom_auth/core/error/InvalidConfigurationError.mjs.map +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/MethodNotImplementedError.mjs.map +1 -1
- package/dist/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
- package/dist/custom_auth/core/error/MsalCustomAuthError.mjs.map +1 -1
- package/dist/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
- package/dist/custom_auth/core/error/NoCachedAccountFoundError.mjs.map +1 -1
- package/dist/custom_auth/core/error/ParsedUrlError.mjs +1 -1
- package/dist/custom_auth/core/error/ParsedUrlError.mjs.map +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/UnexpectedError.mjs.map +1 -1
- package/dist/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
- package/dist/custom_auth/core/error/UnsupportedEnvironmentError.mjs.map +1 -1
- package/dist/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
- package/dist/custom_auth/core/error/UserAccountAttributeError.mjs.map +1 -1
- package/dist/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
- package/dist/custom_auth/core/error/UserAlreadySignedInError.mjs.map +1 -1
- package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs.map +1 -1
- package/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs.map +1 -1
- package/dist/custom_auth/core/interaction_client/jit/JitClient.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/jit/JitClient.mjs.map +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/MfaClient.mjs.map +1 -1
- package/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs.map +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/CustomAuthApiClient.mjs.map +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/RegisterApiClient.mjs.map +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/ResetPasswordApiClient.mjs.map +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/SignInApiClient.mjs.map +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/SignupApiClient.mjs.map +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/http_client/FetchHttpClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/http_client/FetchHttpClient.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs.map +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/ArgumentValidator.mjs.map +1 -1
- package/dist/custom_auth/core/utils/CustomHeaderUtils.mjs +1 -1
- package/dist/custom_auth/core/utils/CustomHeaderUtils.mjs.map +1 -1
- package/dist/custom_auth/core/utils/UrlUtils.mjs +1 -1
- package/dist/custom_auth/core/utils/UrlUtils.mjs.map +1 -1
- package/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs.map +1 -1
- package/dist/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs.map +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs.map +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs.map +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/SignOutResult.mjs.map +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs.map +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/GetAccountState.mjs.map +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/SignOutState.mjs.map +1 -1
- package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +2 -2
- 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/operating_context/CustomAuthOperatingContext.mjs.map +1 -1
- package/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs.map +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs.map +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs.map +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs.map +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs.map +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs.map +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs.map +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs.map +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs.map +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs.map +1 -1
- package/dist/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
- package/dist/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/SignInScenario.mjs.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
- 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 -1
- 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 -1
- 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/SignInCodeRequiredState.mjs.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInState.mjs.map +1 -1
- package/dist/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
- package/dist/custom_auth/sign_in/interaction_client/SignInClient.mjs.map +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/error_type/SignUpError.mjs.map +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs.map +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs.map +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs.map +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs.map +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs.map +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs.map +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs.map +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs.map +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs.map +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs.map +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpState.mjs.map +1 -1
- package/dist/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
- package/dist/custom_auth/sign_up/interaction_client/SignUpClient.mjs.map +1 -1
- package/dist/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
- package/dist/encode/Base64Decode.mjs +2 -2
- package/dist/encode/Base64Decode.mjs.map +1 -1
- package/dist/encode/Base64Encode.mjs +1 -1
- package/dist/error/BrowserAuthError.mjs +5 -5
- package/dist/error/BrowserAuthError.mjs.map +1 -1
- package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
- package/dist/error/BrowserConfigurationAuthError.mjs +5 -5
- package/dist/error/BrowserConfigurationAuthError.mjs.map +1 -1
- package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
- package/dist/error/NativeAuthError.mjs +20 -10
- package/dist/error/NativeAuthError.mjs.map +1 -1
- package/dist/error/NativeAuthErrorCodes.mjs +1 -1
- package/dist/error/NestedAppAuthError.mjs +9 -5
- package/dist/error/NestedAppAuthError.mjs.map +1 -1
- package/dist/event/EventHandler.mjs +1 -1
- package/dist/event/EventHandler.mjs.map +1 -1
- package/dist/event/EventMessage.mjs +1 -1
- package/dist/event/EventMessage.mjs.map +1 -1
- package/dist/event/EventType.mjs +1 -1
- package/dist/event/EventType.mjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/interaction_client/BaseInteractionClient.mjs +4 -4
- package/dist/interaction_client/BaseInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs.map +1 -1
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs +23 -19
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/PopupClient.mjs +9 -9
- package/dist/interaction_client/PopupClient.mjs.map +1 -1
- package/dist/interaction_client/RedirectClient.mjs +13 -13
- package/dist/interaction_client/RedirectClient.mjs.map +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.mjs +4 -4
- package/dist/interaction_client/SilentAuthCodeClient.mjs.map +1 -1
- package/dist/interaction_client/SilentCacheClient.mjs +1 -1
- package/dist/interaction_client/SilentCacheClient.mjs.map +1 -1
- package/dist/interaction_client/SilentIframeClient.mjs +4 -4
- package/dist/interaction_client/SilentIframeClient.mjs.map +1 -1
- package/dist/interaction_client/SilentRefreshClient.mjs +3 -3
- package/dist/interaction_client/SilentRefreshClient.mjs.map +1 -1
- package/dist/interaction_client/StandardInteractionClient.mjs +5 -5
- package/dist/interaction_client/StandardInteractionClient.mjs.map +1 -1
- package/dist/interaction_handler/InteractionHandler.mjs +3 -3
- package/dist/interaction_handler/InteractionHandler.mjs.map +1 -1
- package/dist/interaction_handler/SilentHandler.mjs +2 -2
- package/dist/interaction_handler/SilentHandler.mjs.map +1 -1
- package/dist/log-strings-mapping.json +2 -2
- package/dist/naa/BridgeError.mjs +1 -1
- package/dist/naa/BridgeProxy.mjs +2 -2
- package/dist/naa/BridgeProxy.mjs.map +1 -1
- package/dist/naa/BridgeStatusCode.mjs +1 -1
- package/dist/naa/BridgeStatusCode.mjs.map +1 -1
- package/dist/naa/mapping/NestedAppAuthAdapter.mjs +18 -17
- package/dist/naa/mapping/NestedAppAuthAdapter.mjs.map +1 -1
- package/dist/navigation/NavigationClient.mjs +2 -2
- package/dist/navigation/NavigationClient.mjs.map +1 -1
- package/dist/network/FetchClient.mjs +7 -7
- package/dist/network/FetchClient.mjs.map +1 -1
- package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
- package/dist/operatingcontext/BaseOperatingContext.mjs.map +1 -1
- package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
- package/dist/operatingcontext/NestedAppOperatingContext.mjs.map +1 -1
- package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
- package/dist/operatingcontext/StandardOperatingContext.mjs.map +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/protocol/Authorize.mjs +8 -8
- package/dist/protocol/Authorize.mjs.map +1 -1
- package/dist/redirect_bridge/index.mjs +1 -1
- package/dist/redirect_bridge/index.mjs.map +1 -1
- package/dist/request/RequestHelpers.mjs +4 -4
- package/dist/request/RequestHelpers.mjs.map +1 -1
- package/dist/response/ResponseHandler.mjs +8 -8
- package/dist/response/ResponseHandler.mjs.map +1 -1
- package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceClient.mjs.map +1 -1
- package/dist/telemetry/BrowserPerformanceEvents.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceEvents.mjs.map +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.mjs.map +1 -1
- package/dist/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
- package/dist/utils/BrowserConstants.mjs +1 -1
- package/dist/utils/BrowserConstants.mjs.map +1 -1
- package/dist/utils/BrowserProtocolUtils.mjs +4 -4
- package/dist/utils/BrowserProtocolUtils.mjs.map +1 -1
- package/dist/utils/BrowserUtils.mjs +24 -20
- package/dist/utils/BrowserUtils.mjs.map +1 -1
- package/dist/utils/Helpers.mjs +1 -1
- package/dist/utils/Helpers.mjs.map +1 -1
- package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
- package/dist/utils/MsalFrameStatsUtils.mjs.map +1 -1
- package/lib/custom-auth-path/log-strings-mapping.json +2 -2
- package/lib/custom-auth-path/msal-custom-auth.cjs +5629 -5558
- package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
- package/lib/custom-auth-path/msal-custom-auth.js +5629 -5558
- 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 +6058 -5966
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +6058 -5966
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +2 -2
- package/lib/redirect-bridge/msal-redirect-bridge.cjs +80 -76
- package/lib/redirect-bridge/msal-redirect-bridge.cjs.map +1 -1
- package/lib/redirect-bridge/msal-redirect-bridge.js +80 -76
- package/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -1
- package/lib/redirect-bridge/msal-redirect-bridge.min.js +2 -2
- package/package.json +2 -2
- package/src/app/IPublicClientApplication.ts +30 -15
- package/src/broker/nativeBroker/PlatformAuthDOMHandler.ts +2 -0
- package/src/broker/nativeBroker/PlatformAuthExtensionHandler.ts +8 -2
- package/src/broker/nativeBroker/PlatformAuthProvider.ts +2 -1
- package/src/cache/BrowserCacheManager.ts +22 -11
- package/src/cache/CookieStorage.ts +13 -3
- package/src/cache/DatabaseStorage.ts +12 -6
- package/src/cache/LocalStorage.ts +8 -4
- package/src/cache/SessionStorage.ts +2 -1
- package/src/cache/TokenCache.ts +15 -6
- package/src/config/Configuration.ts +4 -2
- package/src/controllers/NestedAppAuthController.ts +19 -11
- package/src/controllers/StandardController.ts +20 -9
- package/src/crypto/BrowserCrypto.ts +10 -2
- package/src/crypto/CryptoOps.ts +4 -2
- package/src/crypto/PkceGenerator.ts +8 -2
- package/src/custom_auth/core/CustomAuthAuthority.ts +4 -2
- package/src/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.ts +2 -1
- package/src/encode/Base64Decode.ts +2 -1
- package/src/error/BrowserAuthError.ts +9 -3
- package/src/error/BrowserConfigurationAuthError.ts +9 -3
- package/src/error/NativeAuthError.ts +44 -11
- package/src/error/NestedAppAuthError.ts +14 -4
- package/src/interaction_client/BaseInteractionClient.ts +8 -3
- package/src/interaction_client/PlatformAuthInteractionClient.ts +49 -21
- package/src/interaction_client/PopupClient.ts +14 -8
- package/src/interaction_client/RedirectClient.ts +21 -10
- package/src/interaction_client/SilentAuthCodeClient.ts +5 -3
- package/src/interaction_client/SilentIframeClient.ts +5 -3
- package/src/interaction_client/SilentRefreshClient.ts +3 -2
- package/src/interaction_client/StandardInteractionClient.ts +8 -4
- package/src/interaction_handler/InteractionHandler.ts +4 -2
- package/src/interaction_handler/SilentHandler.ts +4 -1
- package/src/naa/mapping/NestedAppAuthAdapter.ts +43 -14
- package/src/navigation/NavigationClient.ts +1 -0
- package/src/network/FetchClient.ts +14 -6
- package/src/packageMetadata.ts +1 -1
- package/src/protocol/Authorize.ts +23 -7
- package/src/request/RequestHelpers.ts +6 -3
- package/src/response/ResponseHandler.ts +20 -7
- package/src/utils/BrowserProtocolUtils.ts +11 -3
- package/src/utils/BrowserUtils.ts +41 -16
- package/types/app/IPublicClientApplication.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthExtensionHandler.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthProvider.d.ts.map +1 -1
- package/types/cache/BrowserCacheManager.d.ts.map +1 -1
- package/types/cache/CookieStorage.d.ts +1 -1
- package/types/cache/CookieStorage.d.ts.map +1 -1
- package/types/cache/DatabaseStorage.d.ts.map +1 -1
- package/types/cache/LocalStorage.d.ts.map +1 -1
- package/types/cache/SessionStorage.d.ts.map +1 -1
- package/types/cache/TokenCache.d.ts.map +1 -1
- package/types/config/Configuration.d.ts.map +1 -1
- package/types/controllers/NestedAppAuthController.d.ts.map +1 -1
- package/types/controllers/StandardController.d.ts.map +1 -1
- package/types/crypto/BrowserCrypto.d.ts.map +1 -1
- package/types/crypto/CryptoOps.d.ts.map +1 -1
- package/types/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/types/custom_auth/core/CustomAuthAuthority.d.ts.map +1 -1
- package/types/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.d.ts.map +1 -1
- package/types/encode/Base64Decode.d.ts.map +1 -1
- package/types/error/BrowserAuthError.d.ts +2 -2
- package/types/error/BrowserAuthError.d.ts.map +1 -1
- package/types/error/BrowserConfigurationAuthError.d.ts +2 -2
- package/types/error/BrowserConfigurationAuthError.d.ts.map +1 -1
- package/types/error/NativeAuthError.d.ts +2 -2
- package/types/error/NativeAuthError.d.ts.map +1 -1
- package/types/error/NestedAppAuthError.d.ts +2 -2
- package/types/error/NestedAppAuthError.d.ts.map +1 -1
- package/types/interaction_client/BaseInteractionClient.d.ts.map +1 -1
- package/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/types/interaction_client/PopupClient.d.ts.map +1 -1
- package/types/interaction_client/RedirectClient.d.ts.map +1 -1
- package/types/interaction_client/SilentAuthCodeClient.d.ts.map +1 -1
- package/types/interaction_client/SilentIframeClient.d.ts.map +1 -1
- package/types/interaction_client/SilentRefreshClient.d.ts.map +1 -1
- package/types/interaction_client/StandardInteractionClient.d.ts.map +1 -1
- package/types/interaction_handler/InteractionHandler.d.ts.map +1 -1
- package/types/interaction_handler/SilentHandler.d.ts.map +1 -1
- package/types/naa/mapping/NestedAppAuthAdapter.d.ts.map +1 -1
- package/types/navigation/NavigationClient.d.ts.map +1 -1
- package/types/network/FetchClient.d.ts.map +1 -1
- package/types/packageMetadata.d.ts +1 -1
- package/types/protocol/Authorize.d.ts.map +1 -1
- package/types/request/RequestHelpers.d.ts.map +1 -1
- package/types/response/ResponseHandler.d.ts +1 -1
- package/types/response/ResponseHandler.d.ts.map +1 -1
- package/types/utils/BrowserProtocolUtils.d.ts +1 -1
- package/types/utils/BrowserProtocolUtils.d.ts.map +1 -1
- package/types/utils/BrowserUtils.d.ts +2 -2
- package/types/utils/BrowserUtils.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "https://github.com/AzureAD/microsoft-authentication-library-for-js.git"
|
|
12
12
|
},
|
|
13
|
-
"version": "5.
|
|
13
|
+
"version": "5.16.0",
|
|
14
14
|
"description": "Microsoft Authentication Library for js",
|
|
15
15
|
"keywords": [
|
|
16
16
|
"implicit",
|
|
@@ -129,6 +129,6 @@
|
|
|
129
129
|
"typescript": "^4.9.5"
|
|
130
130
|
},
|
|
131
131
|
"dependencies": {
|
|
132
|
-
"@azure/msal-common": "16.
|
|
132
|
+
"@azure/msal-common": "16.11.0"
|
|
133
133
|
}
|
|
134
134
|
}
|
|
@@ -81,35 +81,40 @@ export const stubbedPublicClientApplication: IPublicClientApplication = {
|
|
|
81
81
|
initialize: () => {
|
|
82
82
|
return Promise.reject(
|
|
83
83
|
createBrowserConfigurationAuthError(
|
|
84
|
-
BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled
|
|
84
|
+
BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled,
|
|
85
|
+
""
|
|
85
86
|
)
|
|
86
87
|
);
|
|
87
88
|
},
|
|
88
89
|
acquireTokenPopup: () => {
|
|
89
90
|
return Promise.reject(
|
|
90
91
|
createBrowserConfigurationAuthError(
|
|
91
|
-
BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled
|
|
92
|
+
BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled,
|
|
93
|
+
""
|
|
92
94
|
)
|
|
93
95
|
);
|
|
94
96
|
},
|
|
95
97
|
acquireTokenRedirect: () => {
|
|
96
98
|
return Promise.reject(
|
|
97
99
|
createBrowserConfigurationAuthError(
|
|
98
|
-
BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled
|
|
100
|
+
BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled,
|
|
101
|
+
""
|
|
99
102
|
)
|
|
100
103
|
);
|
|
101
104
|
},
|
|
102
105
|
acquireTokenSilent: () => {
|
|
103
106
|
return Promise.reject(
|
|
104
107
|
createBrowserConfigurationAuthError(
|
|
105
|
-
BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled
|
|
108
|
+
BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled,
|
|
109
|
+
""
|
|
106
110
|
)
|
|
107
111
|
);
|
|
108
112
|
},
|
|
109
113
|
acquireTokenByCode: () => {
|
|
110
114
|
return Promise.reject(
|
|
111
115
|
createBrowserConfigurationAuthError(
|
|
112
|
-
BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled
|
|
116
|
+
BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled,
|
|
117
|
+
""
|
|
113
118
|
)
|
|
114
119
|
);
|
|
115
120
|
},
|
|
@@ -122,42 +127,48 @@ export const stubbedPublicClientApplication: IPublicClientApplication = {
|
|
|
122
127
|
handleRedirectPromise: () => {
|
|
123
128
|
return Promise.reject(
|
|
124
129
|
createBrowserConfigurationAuthError(
|
|
125
|
-
BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled
|
|
130
|
+
BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled,
|
|
131
|
+
""
|
|
126
132
|
)
|
|
127
133
|
);
|
|
128
134
|
},
|
|
129
135
|
loginPopup: () => {
|
|
130
136
|
return Promise.reject(
|
|
131
137
|
createBrowserConfigurationAuthError(
|
|
132
|
-
BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled
|
|
138
|
+
BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled,
|
|
139
|
+
""
|
|
133
140
|
)
|
|
134
141
|
);
|
|
135
142
|
},
|
|
136
143
|
loginRedirect: () => {
|
|
137
144
|
return Promise.reject(
|
|
138
145
|
createBrowserConfigurationAuthError(
|
|
139
|
-
BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled
|
|
146
|
+
BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled,
|
|
147
|
+
""
|
|
140
148
|
)
|
|
141
149
|
);
|
|
142
150
|
},
|
|
143
151
|
logoutRedirect: () => {
|
|
144
152
|
return Promise.reject(
|
|
145
153
|
createBrowserConfigurationAuthError(
|
|
146
|
-
BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled
|
|
154
|
+
BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled,
|
|
155
|
+
""
|
|
147
156
|
)
|
|
148
157
|
);
|
|
149
158
|
},
|
|
150
159
|
logoutPopup: () => {
|
|
151
160
|
return Promise.reject(
|
|
152
161
|
createBrowserConfigurationAuthError(
|
|
153
|
-
BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled
|
|
162
|
+
BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled,
|
|
163
|
+
""
|
|
154
164
|
)
|
|
155
165
|
);
|
|
156
166
|
},
|
|
157
167
|
ssoSilent: () => {
|
|
158
168
|
return Promise.reject(
|
|
159
169
|
createBrowserConfigurationAuthError(
|
|
160
|
-
BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled
|
|
170
|
+
BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled,
|
|
171
|
+
""
|
|
161
172
|
)
|
|
162
173
|
);
|
|
163
174
|
},
|
|
@@ -175,7 +186,8 @@ export const stubbedPublicClientApplication: IPublicClientApplication = {
|
|
|
175
186
|
},
|
|
176
187
|
getLogger: () => {
|
|
177
188
|
throw createBrowserConfigurationAuthError(
|
|
178
|
-
BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled
|
|
189
|
+
BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled,
|
|
190
|
+
""
|
|
179
191
|
);
|
|
180
192
|
},
|
|
181
193
|
setLogger: () => {
|
|
@@ -195,20 +207,23 @@ export const stubbedPublicClientApplication: IPublicClientApplication = {
|
|
|
195
207
|
},
|
|
196
208
|
getConfiguration: () => {
|
|
197
209
|
throw createBrowserConfigurationAuthError(
|
|
198
|
-
BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled
|
|
210
|
+
BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled,
|
|
211
|
+
""
|
|
199
212
|
);
|
|
200
213
|
},
|
|
201
214
|
hydrateCache: () => {
|
|
202
215
|
return Promise.reject(
|
|
203
216
|
createBrowserConfigurationAuthError(
|
|
204
|
-
BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled
|
|
217
|
+
BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled,
|
|
218
|
+
""
|
|
205
219
|
)
|
|
206
220
|
);
|
|
207
221
|
},
|
|
208
222
|
clearCache: () => {
|
|
209
223
|
return Promise.reject(
|
|
210
224
|
createBrowserConfigurationAuthError(
|
|
211
|
-
BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled
|
|
225
|
+
BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled,
|
|
226
|
+
""
|
|
212
227
|
)
|
|
213
228
|
);
|
|
214
229
|
},
|
|
@@ -208,6 +208,7 @@ export class PlatformAuthDOMHandler implements IPlatformAuthHandler {
|
|
|
208
208
|
);
|
|
209
209
|
throw createNativeAuthError(
|
|
210
210
|
errorResponse.error.code,
|
|
211
|
+
correlationId,
|
|
211
212
|
errorResponse.error.description,
|
|
212
213
|
{
|
|
213
214
|
error: parseInt(errorResponse.error.errorCode),
|
|
@@ -221,6 +222,7 @@ export class PlatformAuthDOMHandler implements IPlatformAuthHandler {
|
|
|
221
222
|
}
|
|
222
223
|
throw createAuthError(
|
|
223
224
|
AuthErrorCodes.unexpectedError,
|
|
225
|
+
correlationId,
|
|
224
226
|
"Response missing expected properties."
|
|
225
227
|
);
|
|
226
228
|
}
|
|
@@ -211,7 +211,8 @@ export class PlatformAuthExtensionHandler implements IPlatformAuthHandler {
|
|
|
211
211
|
});
|
|
212
212
|
reject(
|
|
213
213
|
createBrowserAuthError(
|
|
214
|
-
BrowserAuthErrorCodes.nativeHandshakeTimeout
|
|
214
|
+
BrowserAuthErrorCodes.nativeHandshakeTimeout,
|
|
215
|
+
""
|
|
215
216
|
)
|
|
216
217
|
);
|
|
217
218
|
this.handshakeResolvers.delete(req.responseId);
|
|
@@ -280,7 +281,8 @@ export class PlatformAuthExtensionHandler implements IPlatformAuthHandler {
|
|
|
280
281
|
});
|
|
281
282
|
handshakeResolver.reject(
|
|
282
283
|
createBrowserAuthError(
|
|
283
|
-
BrowserAuthErrorCodes.nativeExtensionNotInstalled
|
|
284
|
+
BrowserAuthErrorCodes.nativeExtensionNotInstalled,
|
|
285
|
+
""
|
|
284
286
|
)
|
|
285
287
|
);
|
|
286
288
|
}
|
|
@@ -327,6 +329,7 @@ export class PlatformAuthExtensionHandler implements IPlatformAuthHandler {
|
|
|
327
329
|
resolver.reject(
|
|
328
330
|
createNativeAuthError(
|
|
329
331
|
response.code,
|
|
332
|
+
correlationId,
|
|
330
333
|
response.description,
|
|
331
334
|
response.ext
|
|
332
335
|
)
|
|
@@ -339,6 +342,7 @@ export class PlatformAuthExtensionHandler implements IPlatformAuthHandler {
|
|
|
339
342
|
resolver.reject(
|
|
340
343
|
createNativeAuthError(
|
|
341
344
|
response.result["code"],
|
|
345
|
+
correlationId,
|
|
342
346
|
response.result["description"],
|
|
343
347
|
response.result["ext"]
|
|
344
348
|
)
|
|
@@ -349,6 +353,7 @@ export class PlatformAuthExtensionHandler implements IPlatformAuthHandler {
|
|
|
349
353
|
} else {
|
|
350
354
|
throw createAuthError(
|
|
351
355
|
AuthErrorCodes.unexpectedError,
|
|
356
|
+
correlationId,
|
|
352
357
|
"Event does not contain result."
|
|
353
358
|
);
|
|
354
359
|
}
|
|
@@ -420,6 +425,7 @@ export class PlatformAuthExtensionHandler implements IPlatformAuthHandler {
|
|
|
420
425
|
} else {
|
|
421
426
|
throw createAuthError(
|
|
422
427
|
AuthErrorCodes.unexpectedError,
|
|
428
|
+
"",
|
|
423
429
|
"Response missing expected properties."
|
|
424
430
|
);
|
|
425
431
|
}
|
|
@@ -128,7 +128,8 @@ export function isPlatformAuthAllowed(
|
|
|
128
128
|
config.experimental.allowPlatformBrokerWithDOM
|
|
129
129
|
) {
|
|
130
130
|
throw createClientConfigurationError(
|
|
131
|
-
ClientConfigurationErrorCodes.invalidPlatformBrokerConfiguration
|
|
131
|
+
ClientConfigurationErrorCodes.invalidPlatformBrokerConfiguration,
|
|
132
|
+
""
|
|
132
133
|
);
|
|
133
134
|
}
|
|
134
135
|
|
|
@@ -446,7 +446,8 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
446
446
|
const idToken = JSON.parse(rawValue) as IdTokenEntity;
|
|
447
447
|
const claims = AuthToken.extractTokenClaims(
|
|
448
448
|
idToken.secret,
|
|
449
|
-
base64Decode
|
|
449
|
+
base64Decode,
|
|
450
|
+
""
|
|
450
451
|
);
|
|
451
452
|
if (claims) {
|
|
452
453
|
kmsiMap[idToken.homeAccountId] = AuthToken.isKmsi(claims);
|
|
@@ -561,7 +562,8 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
561
562
|
|
|
562
563
|
const claims = AuthToken.extractTokenClaims(
|
|
563
564
|
oldSchemaData.secret,
|
|
564
|
-
base64Decode
|
|
565
|
+
base64Decode,
|
|
566
|
+
correlationId
|
|
565
567
|
);
|
|
566
568
|
|
|
567
569
|
const newIdTokenKey = this.generateCredentialKey(oldSchemaData);
|
|
@@ -576,7 +578,8 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
576
578
|
Object.keys(
|
|
577
579
|
AuthToken.extractTokenClaims(
|
|
578
580
|
currentIdToken.secret,
|
|
579
|
-
base64Decode
|
|
581
|
+
base64Decode,
|
|
582
|
+
correlationId
|
|
580
583
|
) || {}
|
|
581
584
|
).includes("signin_state");
|
|
582
585
|
|
|
@@ -603,6 +606,7 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
603
606
|
account.homeAccountId,
|
|
604
607
|
account.localAccountId,
|
|
605
608
|
tenantId,
|
|
609
|
+
account.nativeAccountId,
|
|
606
610
|
claims
|
|
607
611
|
);
|
|
608
612
|
tenantProfiles.push(newTenantProfile);
|
|
@@ -920,10 +924,9 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
920
924
|
`MSAL.js was last initialized by version: '${previousVersion}'`,
|
|
921
925
|
correlationId
|
|
922
926
|
);
|
|
923
|
-
this.performanceClient.
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
);
|
|
927
|
+
this.performanceClient.addGlobalFields({
|
|
928
|
+
previousLibraryVersion: previousVersion,
|
|
929
|
+
});
|
|
927
930
|
}
|
|
928
931
|
|
|
929
932
|
if (previousVersion !== version) {
|
|
@@ -2236,7 +2239,8 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
2236
2239
|
);
|
|
2237
2240
|
if (!encodedTokenRequest) {
|
|
2238
2241
|
throw createBrowserAuthError(
|
|
2239
|
-
BrowserAuthErrorCodes.noTokenRequestCacheError
|
|
2242
|
+
BrowserAuthErrorCodes.noTokenRequestCacheError,
|
|
2243
|
+
""
|
|
2240
2244
|
);
|
|
2241
2245
|
}
|
|
2242
2246
|
const encodedVerifier = this.getTemporaryCache(
|
|
@@ -2262,7 +2266,8 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
2262
2266
|
correlationId
|
|
2263
2267
|
);
|
|
2264
2268
|
throw createBrowserAuthError(
|
|
2265
|
-
BrowserAuthErrorCodes.unableToParseTokenRequestCacheError
|
|
2269
|
+
BrowserAuthErrorCodes.unableToParseTokenRequestCacheError,
|
|
2270
|
+
""
|
|
2266
2271
|
);
|
|
2267
2272
|
}
|
|
2268
2273
|
|
|
@@ -2363,7 +2368,8 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
2363
2368
|
this.removeTemporaryItem(key);
|
|
2364
2369
|
} else {
|
|
2365
2370
|
throw createBrowserAuthError(
|
|
2366
|
-
BrowserAuthErrorCodes.interactionInProgress
|
|
2371
|
+
BrowserAuthErrorCodes.interactionInProgress,
|
|
2372
|
+
""
|
|
2367
2373
|
);
|
|
2368
2374
|
}
|
|
2369
2375
|
}
|
|
@@ -2425,6 +2431,7 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
2425
2431
|
? TimeUtils.toSecondsFromDate(result.extExpiresOn)
|
|
2426
2432
|
: 0,
|
|
2427
2433
|
base64Decode,
|
|
2434
|
+
request.correlationId || "",
|
|
2428
2435
|
undefined, // refreshOn
|
|
2429
2436
|
result.tokenType as Constants.AuthenticationScheme,
|
|
2430
2437
|
undefined, // userAssertionHash
|
|
@@ -2443,7 +2450,11 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
2443
2450
|
cacheRecord,
|
|
2444
2451
|
result.correlationId,
|
|
2445
2452
|
AuthToken.isKmsi(
|
|
2446
|
-
AuthToken.extractTokenClaims(
|
|
2453
|
+
AuthToken.extractTokenClaims(
|
|
2454
|
+
result.idToken,
|
|
2455
|
+
base64Decode,
|
|
2456
|
+
result.correlationId
|
|
2457
|
+
)
|
|
2447
2458
|
),
|
|
2448
2459
|
ApiId.hydrateCache
|
|
2449
2460
|
);
|
|
@@ -46,7 +46,10 @@ export class CookieStorage implements IWindowStorage<string> {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
getUserData(): string | null {
|
|
49
|
-
throw createClientAuthError(
|
|
49
|
+
throw createClientAuthError(
|
|
50
|
+
ClientAuthErrorCodes.methodNotImplemented,
|
|
51
|
+
""
|
|
52
|
+
);
|
|
50
53
|
}
|
|
51
54
|
|
|
52
55
|
setItem(
|
|
@@ -73,9 +76,16 @@ export class CookieStorage implements IWindowStorage<string> {
|
|
|
73
76
|
document.cookie = cookieStr;
|
|
74
77
|
}
|
|
75
78
|
|
|
76
|
-
async setUserData(
|
|
79
|
+
async setUserData(
|
|
80
|
+
_key: string,
|
|
81
|
+
_value: string,
|
|
82
|
+
correlationId: string
|
|
83
|
+
): Promise<void> {
|
|
77
84
|
return Promise.reject(
|
|
78
|
-
createClientAuthError(
|
|
85
|
+
createClientAuthError(
|
|
86
|
+
ClientAuthErrorCodes.methodNotImplemented,
|
|
87
|
+
correlationId
|
|
88
|
+
)
|
|
79
89
|
);
|
|
80
90
|
}
|
|
81
91
|
|
|
@@ -65,7 +65,8 @@ export class DatabaseStorage<T> implements IAsyncStorage<T> {
|
|
|
65
65
|
openDB.addEventListener("error", () =>
|
|
66
66
|
reject(
|
|
67
67
|
createBrowserAuthError(
|
|
68
|
-
BrowserAuthErrorCodes.databaseUnavailable
|
|
68
|
+
BrowserAuthErrorCodes.databaseUnavailable,
|
|
69
|
+
""
|
|
69
70
|
)
|
|
70
71
|
)
|
|
71
72
|
);
|
|
@@ -104,7 +105,8 @@ export class DatabaseStorage<T> implements IAsyncStorage<T> {
|
|
|
104
105
|
if (!this.db) {
|
|
105
106
|
return reject(
|
|
106
107
|
createBrowserAuthError(
|
|
107
|
-
BrowserAuthErrorCodes.databaseNotOpen
|
|
108
|
+
BrowserAuthErrorCodes.databaseNotOpen,
|
|
109
|
+
""
|
|
108
110
|
)
|
|
109
111
|
);
|
|
110
112
|
}
|
|
@@ -140,7 +142,8 @@ export class DatabaseStorage<T> implements IAsyncStorage<T> {
|
|
|
140
142
|
if (!this.db) {
|
|
141
143
|
return reject(
|
|
142
144
|
createBrowserAuthError(
|
|
143
|
-
BrowserAuthErrorCodes.databaseNotOpen
|
|
145
|
+
BrowserAuthErrorCodes.databaseNotOpen,
|
|
146
|
+
""
|
|
144
147
|
)
|
|
145
148
|
);
|
|
146
149
|
}
|
|
@@ -175,7 +178,8 @@ export class DatabaseStorage<T> implements IAsyncStorage<T> {
|
|
|
175
178
|
if (!this.db) {
|
|
176
179
|
return reject(
|
|
177
180
|
createBrowserAuthError(
|
|
178
|
-
BrowserAuthErrorCodes.databaseNotOpen
|
|
181
|
+
BrowserAuthErrorCodes.databaseNotOpen,
|
|
182
|
+
""
|
|
179
183
|
)
|
|
180
184
|
);
|
|
181
185
|
}
|
|
@@ -208,7 +212,8 @@ export class DatabaseStorage<T> implements IAsyncStorage<T> {
|
|
|
208
212
|
if (!this.db) {
|
|
209
213
|
return reject(
|
|
210
214
|
createBrowserAuthError(
|
|
211
|
-
BrowserAuthErrorCodes.databaseNotOpen
|
|
215
|
+
BrowserAuthErrorCodes.databaseNotOpen,
|
|
216
|
+
""
|
|
212
217
|
)
|
|
213
218
|
);
|
|
214
219
|
}
|
|
@@ -244,7 +249,8 @@ export class DatabaseStorage<T> implements IAsyncStorage<T> {
|
|
|
244
249
|
if (!this.db) {
|
|
245
250
|
return reject(
|
|
246
251
|
createBrowserAuthError(
|
|
247
|
-
BrowserAuthErrorCodes.databaseNotOpen
|
|
252
|
+
BrowserAuthErrorCodes.databaseNotOpen,
|
|
253
|
+
""
|
|
248
254
|
)
|
|
249
255
|
);
|
|
250
256
|
}
|
|
@@ -60,7 +60,8 @@ export class LocalStorage implements IWindowStorage<string> {
|
|
|
60
60
|
) {
|
|
61
61
|
if (!window.localStorage) {
|
|
62
62
|
throw createBrowserConfigurationAuthError(
|
|
63
|
-
BrowserConfigurationAuthErrorCodes.storageNotSupported
|
|
63
|
+
BrowserConfigurationAuthErrorCodes.storageNotSupported,
|
|
64
|
+
""
|
|
64
65
|
);
|
|
65
66
|
}
|
|
66
67
|
this.memoryStorage = new MemoryStorage<string>();
|
|
@@ -164,7 +165,8 @@ export class LocalStorage implements IWindowStorage<string> {
|
|
|
164
165
|
getUserData(key: string): string | null {
|
|
165
166
|
if (!this.initialized) {
|
|
166
167
|
throw createBrowserAuthError(
|
|
167
|
-
BrowserAuthErrorCodes.uninitializedPublicClientApplication
|
|
168
|
+
BrowserAuthErrorCodes.uninitializedPublicClientApplication,
|
|
169
|
+
""
|
|
168
170
|
);
|
|
169
171
|
}
|
|
170
172
|
return this.memoryStorage.getItem(key);
|
|
@@ -177,7 +179,8 @@ export class LocalStorage implements IWindowStorage<string> {
|
|
|
177
179
|
): Promise<object | null> {
|
|
178
180
|
if (!this.initialized || !this.encryptionCookie) {
|
|
179
181
|
throw createBrowserAuthError(
|
|
180
|
-
BrowserAuthErrorCodes.uninitializedPublicClientApplication
|
|
182
|
+
BrowserAuthErrorCodes.uninitializedPublicClientApplication,
|
|
183
|
+
""
|
|
181
184
|
);
|
|
182
185
|
}
|
|
183
186
|
|
|
@@ -234,7 +237,8 @@ export class LocalStorage implements IWindowStorage<string> {
|
|
|
234
237
|
): Promise<void> {
|
|
235
238
|
if (!this.initialized || !this.encryptionCookie) {
|
|
236
239
|
throw createBrowserAuthError(
|
|
237
|
-
BrowserAuthErrorCodes.uninitializedPublicClientApplication
|
|
240
|
+
BrowserAuthErrorCodes.uninitializedPublicClientApplication,
|
|
241
|
+
""
|
|
238
242
|
);
|
|
239
243
|
}
|
|
240
244
|
|
|
@@ -13,7 +13,8 @@ export class SessionStorage implements IWindowStorage<string> {
|
|
|
13
13
|
constructor() {
|
|
14
14
|
if (!window.sessionStorage) {
|
|
15
15
|
throw createBrowserConfigurationAuthError(
|
|
16
|
-
BrowserConfigurationAuthErrorCodes.storageNotSupported
|
|
16
|
+
BrowserConfigurationAuthErrorCodes.storageNotSupported,
|
|
17
|
+
""
|
|
17
18
|
);
|
|
18
19
|
}
|
|
19
20
|
}
|
package/src/cache/TokenCache.ts
CHANGED
|
@@ -81,7 +81,11 @@ export async function loadExternalTokens(
|
|
|
81
81
|
|
|
82
82
|
try {
|
|
83
83
|
const idTokenClaims = response.id_token
|
|
84
|
-
? AuthToken.extractTokenClaims(
|
|
84
|
+
? AuthToken.extractTokenClaims(
|
|
85
|
+
response.id_token,
|
|
86
|
+
base64Decode,
|
|
87
|
+
correlationId
|
|
88
|
+
)
|
|
85
89
|
: undefined;
|
|
86
90
|
const kmsi = AuthToken.isKmsi(idTokenClaims || {});
|
|
87
91
|
|
|
@@ -260,7 +264,10 @@ async function loadAccount(
|
|
|
260
264
|
"TokenCache - if an account is not provided on the request, clientInfo or idToken must be provided instead.",
|
|
261
265
|
correlationId
|
|
262
266
|
);
|
|
263
|
-
throw createBrowserAuthError(
|
|
267
|
+
throw createBrowserAuthError(
|
|
268
|
+
BrowserAuthErrorCodes.unableToLoadToken,
|
|
269
|
+
""
|
|
270
|
+
);
|
|
264
271
|
}
|
|
265
272
|
|
|
266
273
|
const homeAccountId = AccountEntityUtils.generateHomeAccountId(
|
|
@@ -384,8 +391,8 @@ async function loadAccessToken(
|
|
|
384
391
|
logger.verbose("TokenCache - loading access token", correlationId);
|
|
385
392
|
|
|
386
393
|
const scopes = response.scope
|
|
387
|
-
? ScopeSet.fromString(response.scope)
|
|
388
|
-
: new ScopeSet(request.scopes);
|
|
394
|
+
? ScopeSet.fromString(response.scope, correlationId)
|
|
395
|
+
: new ScopeSet(request.scopes, correlationId);
|
|
389
396
|
const expiresOn =
|
|
390
397
|
options.expiresOn || response.expires_in + TimeUtils.nowSeconds();
|
|
391
398
|
|
|
@@ -403,7 +410,8 @@ async function loadAccessToken(
|
|
|
403
410
|
scopes.printScopes(),
|
|
404
411
|
expiresOn,
|
|
405
412
|
extendedExpiresOn,
|
|
406
|
-
base64Decode
|
|
413
|
+
base64Decode,
|
|
414
|
+
correlationId
|
|
407
415
|
);
|
|
408
416
|
|
|
409
417
|
await storage.setAccessTokenCredential(
|
|
@@ -492,7 +500,8 @@ function generateAuthenticationResult(
|
|
|
492
500
|
if (cacheRecord?.accessToken) {
|
|
493
501
|
accessToken = cacheRecord.accessToken.secret;
|
|
494
502
|
responseScopes = ScopeSet.fromString(
|
|
495
|
-
cacheRecord.accessToken.target
|
|
503
|
+
cacheRecord.accessToken.target,
|
|
504
|
+
request.correlationId || ""
|
|
496
505
|
).asArray();
|
|
497
506
|
// Access token expiresOn stored in seconds, converting to Date for AuthenticationResult
|
|
498
507
|
expiresOn = TimeUtils.toDateFromSeconds(
|
|
@@ -360,7 +360,8 @@ export function buildConfiguration(
|
|
|
360
360
|
logger.warning(
|
|
361
361
|
JSON.stringify(
|
|
362
362
|
createClientConfigurationError(
|
|
363
|
-
ClientConfigurationErrorCodes.cannotSetOIDCOptions
|
|
363
|
+
ClientConfigurationErrorCodes.cannotSetOIDCOptions,
|
|
364
|
+
""
|
|
364
365
|
)
|
|
365
366
|
),
|
|
366
367
|
""
|
|
@@ -374,7 +375,8 @@ export function buildConfiguration(
|
|
|
374
375
|
providedSystemOptions?.allowPlatformBroker
|
|
375
376
|
) {
|
|
376
377
|
throw createClientConfigurationError(
|
|
377
|
-
ClientConfigurationErrorCodes.cannotAllowPlatformBroker
|
|
378
|
+
ClientConfigurationErrorCodes.cannotAllowPlatformBroker,
|
|
379
|
+
""
|
|
378
380
|
);
|
|
379
381
|
}
|
|
380
382
|
|
|
@@ -628,9 +628,8 @@ export class NestedAppAuthController implements IController {
|
|
|
628
628
|
* acquireTokenRedirect flow is not supported in nested app auth
|
|
629
629
|
* @param request
|
|
630
630
|
*/
|
|
631
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
632
631
|
acquireTokenRedirect(request: RedirectRequest): Promise<void> {
|
|
633
|
-
throw NestedAppAuthError.createUnsupportedError();
|
|
632
|
+
throw NestedAppAuthError.createUnsupportedError(request?.correlationId);
|
|
634
633
|
}
|
|
635
634
|
|
|
636
635
|
/**
|
|
@@ -648,11 +647,10 @@ export class NestedAppAuthController implements IController {
|
|
|
648
647
|
* Hybrid flow is not currently supported in nested app auth
|
|
649
648
|
* @param request
|
|
650
649
|
*/
|
|
651
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
652
650
|
acquireTokenByCode(
|
|
653
|
-
request: AuthorizationCodeRequest
|
|
651
|
+
request: AuthorizationCodeRequest
|
|
654
652
|
): Promise<AuthenticationResult> {
|
|
655
|
-
throw NestedAppAuthError.createUnsupportedError();
|
|
653
|
+
throw NestedAppAuthError.createUnsupportedError(request?.correlationId);
|
|
656
654
|
}
|
|
657
655
|
|
|
658
656
|
/**
|
|
@@ -677,11 +675,13 @@ export class NestedAppAuthController implements IController {
|
|
|
677
675
|
|
|
678
676
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
679
677
|
addPerformanceCallback(callback: PerformanceCallbackFunction): string {
|
|
678
|
+
// No request context: callback registration is not per-request
|
|
680
679
|
throw NestedAppAuthError.createUnsupportedError();
|
|
681
680
|
}
|
|
682
681
|
|
|
683
682
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
684
683
|
removePerformanceCallback(callbackId: string): boolean {
|
|
684
|
+
// No request context: callback registration is not per-request
|
|
685
685
|
throw NestedAppAuthError.createUnsupportedError();
|
|
686
686
|
}
|
|
687
687
|
|
|
@@ -756,17 +756,21 @@ export class NestedAppAuthController implements IController {
|
|
|
756
756
|
}
|
|
757
757
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
758
758
|
loginRedirect(request?: RedirectRequest | undefined): Promise<void> {
|
|
759
|
-
throw NestedAppAuthError.createUnsupportedError();
|
|
759
|
+
throw NestedAppAuthError.createUnsupportedError(request?.correlationId);
|
|
760
760
|
}
|
|
761
761
|
logoutRedirect(
|
|
762
|
-
logoutRequest?: EndSessionRequest | undefined
|
|
762
|
+
logoutRequest?: EndSessionRequest | undefined
|
|
763
763
|
): Promise<void> {
|
|
764
|
-
throw NestedAppAuthError.createUnsupportedError(
|
|
764
|
+
throw NestedAppAuthError.createUnsupportedError(
|
|
765
|
+
logoutRequest?.correlationId
|
|
766
|
+
);
|
|
765
767
|
}
|
|
766
768
|
logoutPopup(
|
|
767
|
-
logoutRequest?: EndSessionPopupRequest | undefined
|
|
769
|
+
logoutRequest?: EndSessionPopupRequest | undefined
|
|
768
770
|
): Promise<void> {
|
|
769
|
-
throw NestedAppAuthError.createUnsupportedError(
|
|
771
|
+
throw NestedAppAuthError.createUnsupportedError(
|
|
772
|
+
logoutRequest?.correlationId
|
|
773
|
+
);
|
|
770
774
|
}
|
|
771
775
|
ssoSilent(
|
|
772
776
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -829,16 +833,20 @@ export class NestedAppAuthController implements IController {
|
|
|
829
833
|
}
|
|
830
834
|
|
|
831
835
|
getPerformanceClient(): IPerformanceClient {
|
|
836
|
+
// Accessor stub with no request context
|
|
832
837
|
throw NestedAppAuthError.createUnsupportedError();
|
|
833
838
|
}
|
|
834
839
|
|
|
835
840
|
getRedirectResponse(): Map<string, Promise<AuthenticationResult | null>> {
|
|
841
|
+
// Accessor stub with no request context
|
|
836
842
|
throw NestedAppAuthError.createUnsupportedError();
|
|
837
843
|
}
|
|
838
844
|
|
|
839
845
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
840
846
|
async clearCache(logoutRequest?: ClearCacheRequest): Promise<void> {
|
|
841
|
-
throw NestedAppAuthError.createUnsupportedError(
|
|
847
|
+
throw NestedAppAuthError.createUnsupportedError(
|
|
848
|
+
logoutRequest?.correlationId
|
|
849
|
+
);
|
|
842
850
|
}
|
|
843
851
|
|
|
844
852
|
async hydrateCache(
|