@azure/msal-browser 4.20.0 → 4.21.1
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 +30 -0
- package/dist/app/IPublicClientApplication.mjs +1 -1
- package/dist/app/PublicClientApplication.mjs +1 -1
- package/dist/app/PublicClientNext.mjs +1 -1
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs +2 -3
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
- package/dist/cache/AccountManager.mjs +1 -1
- package/dist/cache/AsyncMemoryStorage.mjs +1 -1
- package/dist/cache/BrowserCacheManager.mjs +1 -1
- package/dist/cache/CacheHelpers.mjs +1 -1
- package/dist/cache/CacheKeys.mjs +1 -1
- package/dist/cache/CookieStorage.mjs +1 -1
- package/dist/cache/DatabaseStorage.mjs +1 -1
- package/dist/cache/EncryptedData.mjs +1 -1
- package/dist/cache/LocalStorage.mjs +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/ControllerFactory.mjs +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +1 -1
- package/dist/controllers/StandardController.d.ts.map +1 -1
- package/dist/controllers/StandardController.mjs +36 -9
- package/dist/controllers/StandardController.mjs.map +1 -1
- package/dist/controllers/UnknownOperatingContextController.mjs +1 -1
- package/dist/crypto/BrowserCrypto.mjs +1 -1
- package/dist/crypto/CryptoOps.mjs +1 -1
- package/dist/crypto/PkceGenerator.mjs +1 -1
- package/dist/crypto/SignedHttpRequest.mjs +1 -1
- package/dist/custom-auth-path/app/PublicClientApplication.mjs +1 -1
- package/dist/custom-auth-path/broker/nativeBroker/NativeStatusCodes.mjs +2 -3
- package/dist/custom-auth-path/broker/nativeBroker/NativeStatusCodes.mjs.map +1 -1
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
- package/dist/custom-auth-path/cache/AccountManager.mjs +1 -1
- package/dist/custom-auth-path/cache/AsyncMemoryStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/BrowserCacheManager.mjs +1 -1
- package/dist/custom-auth-path/cache/CacheHelpers.mjs +1 -1
- package/dist/custom-auth-path/cache/CacheKeys.mjs +1 -1
- package/dist/custom-auth-path/cache/CookieStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/DatabaseStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/EncryptedData.mjs +1 -1
- package/dist/custom-auth-path/cache/LocalStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/MemoryStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/SessionStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/TokenCache.mjs +1 -1
- package/dist/custom-auth-path/config/Configuration.mjs +1 -1
- package/dist/custom-auth-path/controllers/ControllerFactory.mjs +1 -1
- package/dist/custom-auth-path/controllers/StandardController.d.ts.map +1 -1
- package/dist/custom-auth-path/controllers/StandardController.mjs +36 -9
- package/dist/custom-auth-path/controllers/StandardController.mjs.map +1 -1
- package/dist/custom-auth-path/crypto/BrowserCrypto.mjs +1 -1
- package/dist/custom-auth-path/crypto/CryptoOps.mjs +1 -1
- package/dist/custom-auth-path/crypto/PkceGenerator.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/dist/custom-auth-path/custom_auth/CustomAuthConstants.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/CustomAuthPublicClientApplication.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/configuration/CustomAuthConfiguration.d.ts +1 -0
- package/dist/custom-auth-path/custom_auth/configuration/CustomAuthConfiguration.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.mjs +2 -2
- package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/CustomAuthAuthority.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +5 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +8 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/CustomAuthApiError.d.ts +2 -1
- package/dist/custom-auth-path/custom_auth/core/error/CustomAuthApiError.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/CustomAuthApiError.mjs +5 -3
- package/dist/custom-auth-path/custom_auth/core/error/CustomAuthApiError.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/CustomAuthError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/HttpError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/UnexpectedError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/BaseApiClient.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +2 -2
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +5 -5
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.d.ts +3 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +8 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts +3 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +8 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignupApiClient.d.ts +3 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignupApiClient.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +8 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/telemetry/PublicApiId.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/utils/UrlUtils.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/index.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.d.ts +0 -15
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -22
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/error_type/SignInError.d.ts +0 -10
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/error_type/SignInError.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -15
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/error_type/SignUpError.d.ts +0 -25
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/error_type/SignUpError.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -36
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
- package/dist/custom-auth-path/encode/Base64Decode.mjs +1 -1
- package/dist/custom-auth-path/encode/Base64Encode.mjs +1 -1
- package/dist/custom-auth-path/error/BrowserAuthError.mjs +1 -1
- package/dist/custom-auth-path/error/BrowserAuthErrorCodes.mjs +1 -1
- package/dist/custom-auth-path/error/BrowserConfigurationAuthError.mjs +1 -1
- package/dist/custom-auth-path/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
- package/dist/custom-auth-path/error/NativeAuthError.d.ts.map +1 -1
- package/dist/custom-auth-path/error/NativeAuthError.mjs +3 -4
- package/dist/custom-auth-path/error/NativeAuthError.mjs.map +1 -1
- package/dist/custom-auth-path/error/NativeAuthErrorCodes.mjs +1 -1
- package/dist/custom-auth-path/event/EventHandler.mjs +1 -1
- package/dist/custom-auth-path/event/EventType.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/BaseInteractionClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.mjs +15 -6
- package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
- package/dist/custom-auth-path/interaction_client/PopupClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/RedirectClient.mjs +4 -4
- package/dist/custom-auth-path/interaction_client/RedirectClient.mjs.map +1 -1
- package/dist/custom-auth-path/interaction_client/SilentAuthCodeClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/SilentCacheClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/SilentIframeClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/SilentRefreshClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/StandardInteractionClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_handler/InteractionHandler.mjs +1 -1
- package/dist/custom-auth-path/interaction_handler/SilentHandler.mjs +1 -1
- package/dist/custom-auth-path/navigation/NavigationClient.mjs +1 -1
- package/dist/custom-auth-path/network/FetchClient.mjs +1 -1
- package/dist/custom-auth-path/operatingcontext/BaseOperatingContext.mjs +1 -1
- package/dist/custom-auth-path/operatingcontext/StandardOperatingContext.mjs +1 -1
- package/dist/custom-auth-path/packageMetadata.d.ts +1 -1
- package/dist/custom-auth-path/packageMetadata.mjs +2 -2
- package/dist/custom-auth-path/protocol/Authorize.d.ts.map +1 -1
- package/dist/custom-auth-path/protocol/Authorize.mjs +5 -1
- package/dist/custom-auth-path/protocol/Authorize.mjs.map +1 -1
- package/dist/custom-auth-path/request/RequestHelpers.mjs +1 -1
- package/dist/custom-auth-path/response/ResponseHandler.mjs +1 -1
- package/dist/custom-auth-path/utils/BrowserConstants.mjs +1 -1
- package/dist/custom-auth-path/utils/BrowserProtocolUtils.mjs +1 -1
- package/dist/custom-auth-path/utils/BrowserUtils.mjs +1 -1
- package/dist/custom-auth-path/utils/Helpers.mjs +1 -1
- package/dist/custom-auth-path/utils/MsalFrameStatsUtils.mjs +1 -1
- package/dist/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/dist/custom_auth/configuration/CustomAuthConfiguration.d.ts +1 -0
- package/dist/custom_auth/configuration/CustomAuthConfiguration.d.ts.map +1 -1
- package/dist/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +5 -0
- package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
- package/dist/custom_auth/core/error/CustomAuthApiError.d.ts +2 -1
- package/dist/custom_auth/core/error/CustomAuthApiError.d.ts.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.d.ts.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.d.ts +3 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.d.ts.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts +3 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.d.ts +3 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.d.ts.map +1 -1
- package/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.d.ts +0 -15
- package/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.d.ts.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.d.ts +0 -10
- package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.d.ts.map +1 -1
- package/dist/custom_auth/sign_up/auth_flow/error_type/SignUpError.d.ts +0 -25
- package/dist/custom_auth/sign_up/auth_flow/error_type/SignUpError.d.ts.map +1 -1
- package/dist/encode/Base64Decode.mjs +1 -1
- package/dist/encode/Base64Encode.mjs +1 -1
- package/dist/error/BrowserAuthError.mjs +1 -1
- package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
- package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
- package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
- package/dist/error/NativeAuthError.d.ts.map +1 -1
- package/dist/error/NativeAuthError.mjs +3 -4
- package/dist/error/NativeAuthError.mjs.map +1 -1
- package/dist/error/NativeAuthErrorCodes.mjs +1 -1
- package/dist/error/NestedAppAuthError.mjs +1 -1
- package/dist/event/EventHandler.mjs +1 -1
- package/dist/event/EventMessage.mjs +1 -1
- package/dist/event/EventType.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
- package/dist/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs +15 -6
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/PopupClient.mjs +1 -1
- package/dist/interaction_client/RedirectClient.mjs +4 -4
- package/dist/interaction_client/RedirectClient.mjs.map +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
- package/dist/interaction_client/SilentCacheClient.mjs +1 -1
- package/dist/interaction_client/SilentIframeClient.mjs +1 -1
- package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
- package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
- package/dist/interaction_handler/InteractionHandler.mjs +1 -1
- package/dist/interaction_handler/SilentHandler.mjs +1 -1
- package/dist/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/operatingcontext/UnknownOperatingContext.mjs +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/protocol/Authorize.d.ts.map +1 -1
- package/dist/protocol/Authorize.mjs +5 -1
- package/dist/protocol/Authorize.mjs.map +1 -1
- package/dist/request/RequestHelpers.mjs +1 -1
- package/dist/response/ResponseHandler.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
- package/dist/utils/BrowserConstants.mjs +1 -1
- package/dist/utils/BrowserProtocolUtils.mjs +1 -1
- package/dist/utils/BrowserUtils.mjs +1 -1
- package/dist/utils/Helpers.mjs +1 -1
- package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
- package/lib/custom-auth-path/msal-custom-auth.cjs +215 -162
- package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
- package/lib/custom-auth-path/types/controllers/StandardController.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/lib/custom-auth-path/types/custom_auth/configuration/CustomAuthConfiguration.d.ts +1 -0
- package/lib/custom-auth-path/types/custom_auth/configuration/CustomAuthConfiguration.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +5 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/error/CustomAuthApiError.d.ts +2 -1
- package/lib/custom-auth-path/types/custom_auth/core/error/CustomAuthApiError.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/BaseApiClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.d.ts +3 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts +3 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/SignupApiClient.d.ts +3 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/SignupApiClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.d.ts +0 -15
- package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/error_type/SignInError.d.ts +0 -10
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/error_type/SignInError.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/error_type/SignUpError.d.ts +0 -25
- package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/error_type/SignUpError.d.ts.map +1 -1
- package/lib/custom-auth-path/types/error/NativeAuthError.d.ts.map +1 -1
- package/lib/custom-auth-path/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/packageMetadata.d.ts +1 -1
- package/lib/custom-auth-path/types/protocol/Authorize.d.ts.map +1 -1
- package/lib/msal-browser.cjs +179 -86
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +179 -86
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +66 -66
- package/lib/types/controllers/StandardController.d.ts.map +1 -1
- package/lib/types/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/lib/types/custom_auth/configuration/CustomAuthConfiguration.d.ts +1 -0
- package/lib/types/custom_auth/configuration/CustomAuthConfiguration.d.ts.map +1 -1
- package/lib/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
- package/lib/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +5 -0
- package/lib/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
- package/lib/types/custom_auth/core/error/CustomAuthApiError.d.ts +2 -1
- package/lib/types/custom_auth/core/error/CustomAuthApiError.d.ts.map +1 -1
- package/lib/types/custom_auth/core/network_client/custom_auth_api/BaseApiClient.d.ts.map +1 -1
- package/lib/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts +1 -1
- package/lib/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -1
- package/lib/types/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.d.ts +3 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.d.ts.map +1 -1
- package/lib/types/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts +3 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
- package/lib/types/custom_auth/core/network_client/custom_auth_api/SignupApiClient.d.ts +3 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/SignupApiClient.d.ts.map +1 -1
- package/lib/types/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.d.ts +0 -15
- package/lib/types/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.d.ts.map +1 -1
- package/lib/types/custom_auth/sign_in/auth_flow/error_type/SignInError.d.ts +0 -10
- package/lib/types/custom_auth/sign_in/auth_flow/error_type/SignInError.d.ts.map +1 -1
- package/lib/types/custom_auth/sign_up/auth_flow/error_type/SignUpError.d.ts +0 -25
- package/lib/types/custom_auth/sign_up/auth_flow/error_type/SignUpError.d.ts.map +1 -1
- package/lib/types/error/NativeAuthError.d.ts.map +1 -1
- package/lib/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/lib/types/packageMetadata.d.ts +1 -1
- package/lib/types/protocol/Authorize.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/controllers/StandardController.ts +42 -9
- package/src/custom_auth/configuration/CustomAuthConfiguration.ts +1 -0
- package/src/custom_auth/controller/CustomAuthStandardController.ts +2 -1
- package/src/custom_auth/core/auth_flow/AuthFlowErrorBase.ts +8 -0
- package/src/custom_auth/core/error/CustomAuthApiError.ts +3 -2
- package/src/custom_auth/core/network_client/custom_auth_api/BaseApiClient.ts +4 -1
- package/src/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.ts +8 -4
- package/src/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.ts +16 -0
- package/src/custom_auth/core/network_client/custom_auth_api/SignInApiClient.ts +16 -0
- package/src/custom_auth/core/network_client/custom_auth_api/SignupApiClient.ts +16 -0
- package/src/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.ts +1 -25
- package/src/custom_auth/sign_in/auth_flow/error_type/SignInError.ts +1 -17
- package/src/custom_auth/sign_up/auth_flow/error_type/SignUpError.ts +1 -41
- package/src/error/NativeAuthError.ts +1 -2
- package/src/interaction_client/PlatformAuthInteractionClient.ts +17 -5
- package/src/interaction_client/RedirectClient.ts +2 -2
- package/src/packageMetadata.ts +1 -1
- package/src/protocol/Authorize.ts +8 -0
|
@@ -128,7 +128,10 @@ export abstract class BaseApiClient {
|
|
|
128
128
|
typeof responseData === "object" &&
|
|
129
129
|
responseData.challenge_type === ChallengeType.REDIRECT
|
|
130
130
|
) {
|
|
131
|
-
throw new RedirectError(
|
|
131
|
+
throw new RedirectError(
|
|
132
|
+
correlationId,
|
|
133
|
+
responseData.redirect_reason
|
|
134
|
+
);
|
|
132
135
|
}
|
|
133
136
|
|
|
134
137
|
return {
|
|
@@ -17,22 +17,26 @@ export class CustomAuthApiClient implements ICustomAuthApiClient {
|
|
|
17
17
|
constructor(
|
|
18
18
|
customAuthApiBaseUrl: string,
|
|
19
19
|
clientId: string,
|
|
20
|
-
httpClient: IHttpClient
|
|
20
|
+
httpClient: IHttpClient,
|
|
21
|
+
capabilities?: string
|
|
21
22
|
) {
|
|
22
23
|
this.signInApi = new SignInApiClient(
|
|
23
24
|
customAuthApiBaseUrl,
|
|
24
25
|
clientId,
|
|
25
|
-
httpClient
|
|
26
|
+
httpClient,
|
|
27
|
+
capabilities
|
|
26
28
|
);
|
|
27
29
|
this.signUpApi = new SignupApiClient(
|
|
28
30
|
customAuthApiBaseUrl,
|
|
29
31
|
clientId,
|
|
30
|
-
httpClient
|
|
32
|
+
httpClient,
|
|
33
|
+
capabilities
|
|
31
34
|
);
|
|
32
35
|
this.resetPasswordApi = new ResetPasswordApiClient(
|
|
33
36
|
customAuthApiBaseUrl,
|
|
34
37
|
clientId,
|
|
35
|
-
httpClient
|
|
38
|
+
httpClient,
|
|
39
|
+
capabilities
|
|
36
40
|
);
|
|
37
41
|
}
|
|
38
42
|
}
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
} from "../../../CustomAuthConstants.js";
|
|
10
10
|
import { CustomAuthApiError } from "../../error/CustomAuthApiError.js";
|
|
11
11
|
import { BaseApiClient } from "./BaseApiClient.js";
|
|
12
|
+
import { IHttpClient } from "../http_client/IHttpClient.js";
|
|
12
13
|
import * as CustomAuthApiEndpoint from "./CustomAuthApiEndpoint.js";
|
|
13
14
|
import * as CustomAuthApiErrorCode from "./types/ApiErrorCodes.js";
|
|
14
15
|
import {
|
|
@@ -27,6 +28,18 @@ import {
|
|
|
27
28
|
} from "./types/ApiResponseTypes.js";
|
|
28
29
|
|
|
29
30
|
export class ResetPasswordApiClient extends BaseApiClient {
|
|
31
|
+
private readonly capabilities?: string;
|
|
32
|
+
|
|
33
|
+
constructor(
|
|
34
|
+
customAuthApiBaseUrl: string,
|
|
35
|
+
clientId: string,
|
|
36
|
+
httpClient: IHttpClient,
|
|
37
|
+
capabilities?: string
|
|
38
|
+
) {
|
|
39
|
+
super(customAuthApiBaseUrl, clientId, httpClient);
|
|
40
|
+
this.capabilities = capabilities;
|
|
41
|
+
}
|
|
42
|
+
|
|
30
43
|
/**
|
|
31
44
|
* Start the password reset flow
|
|
32
45
|
*/
|
|
@@ -38,6 +51,9 @@ export class ResetPasswordApiClient extends BaseApiClient {
|
|
|
38
51
|
{
|
|
39
52
|
challenge_type: params.challenge_type,
|
|
40
53
|
username: params.username,
|
|
54
|
+
...(this.capabilities && {
|
|
55
|
+
capabilities: this.capabilities,
|
|
56
|
+
}),
|
|
41
57
|
},
|
|
42
58
|
params.telemetryManager,
|
|
43
59
|
params.correlationId
|
|
@@ -7,6 +7,7 @@ import { ServerTelemetryManager } from "@azure/msal-common/browser";
|
|
|
7
7
|
import { GrantType } from "../../../CustomAuthConstants.js";
|
|
8
8
|
import { CustomAuthApiError } from "../../error/CustomAuthApiError.js";
|
|
9
9
|
import { BaseApiClient } from "./BaseApiClient.js";
|
|
10
|
+
import { IHttpClient } from "../http_client/IHttpClient.js";
|
|
10
11
|
import * as CustomAuthApiEndpoint from "./CustomAuthApiEndpoint.js";
|
|
11
12
|
import * as CustomAuthApiErrorCode from "./types/ApiErrorCodes.js";
|
|
12
13
|
import {
|
|
@@ -23,6 +24,18 @@ import {
|
|
|
23
24
|
} from "./types/ApiResponseTypes.js";
|
|
24
25
|
|
|
25
26
|
export class SignInApiClient extends BaseApiClient {
|
|
27
|
+
private readonly capabilities?: string;
|
|
28
|
+
|
|
29
|
+
constructor(
|
|
30
|
+
customAuthApiBaseUrl: string,
|
|
31
|
+
clientId: string,
|
|
32
|
+
httpClient: IHttpClient,
|
|
33
|
+
capabilities?: string
|
|
34
|
+
) {
|
|
35
|
+
super(customAuthApiBaseUrl, clientId, httpClient);
|
|
36
|
+
this.capabilities = capabilities;
|
|
37
|
+
}
|
|
38
|
+
|
|
26
39
|
/**
|
|
27
40
|
* Initiates the sign-in flow
|
|
28
41
|
* @param username User's email
|
|
@@ -36,6 +49,9 @@ export class SignInApiClient extends BaseApiClient {
|
|
|
36
49
|
{
|
|
37
50
|
username: params.username,
|
|
38
51
|
challenge_type: params.challenge_type,
|
|
52
|
+
...(this.capabilities && {
|
|
53
|
+
capabilities: this.capabilities,
|
|
54
|
+
}),
|
|
39
55
|
},
|
|
40
56
|
params.telemetryManager,
|
|
41
57
|
params.correlationId
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import { GrantType } from "../../../CustomAuthConstants.js";
|
|
7
7
|
import { BaseApiClient } from "./BaseApiClient.js";
|
|
8
|
+
import { IHttpClient } from "../http_client/IHttpClient.js";
|
|
8
9
|
import * as CustomAuthApiEndpoint from "./CustomAuthApiEndpoint.js";
|
|
9
10
|
import {
|
|
10
11
|
SignUpChallengeRequest,
|
|
@@ -20,6 +21,18 @@ import {
|
|
|
20
21
|
} from "./types/ApiResponseTypes.js";
|
|
21
22
|
|
|
22
23
|
export class SignupApiClient extends BaseApiClient {
|
|
24
|
+
private readonly capabilities?: string;
|
|
25
|
+
|
|
26
|
+
constructor(
|
|
27
|
+
customAuthApiBaseUrl: string,
|
|
28
|
+
clientId: string,
|
|
29
|
+
httpClient: IHttpClient,
|
|
30
|
+
capabilities?: string
|
|
31
|
+
) {
|
|
32
|
+
super(customAuthApiBaseUrl, clientId, httpClient);
|
|
33
|
+
this.capabilities = capabilities;
|
|
34
|
+
}
|
|
35
|
+
|
|
23
36
|
/**
|
|
24
37
|
* Start the sign-up flow
|
|
25
38
|
*/
|
|
@@ -33,6 +46,9 @@ export class SignupApiClient extends BaseApiClient {
|
|
|
33
46
|
attributes: JSON.stringify(params.attributes),
|
|
34
47
|
}),
|
|
35
48
|
challenge_type: params.challenge_type,
|
|
49
|
+
...(this.capabilities && {
|
|
50
|
+
capabilities: this.capabilities,
|
|
51
|
+
}),
|
|
36
52
|
},
|
|
37
53
|
params.telemetryManager,
|
|
38
54
|
params.correlationId
|
|
@@ -31,14 +31,6 @@ export class ResetPasswordError extends AuthActionErrorBase {
|
|
|
31
31
|
isUnsupportedChallengeType(): boolean {
|
|
32
32
|
return this.isUnsupportedChallengeTypeError();
|
|
33
33
|
}
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Check if client app supports the challenge type configured in Entra.
|
|
37
|
-
* @returns {boolean} True if client app doesn't support the challenge type configured in Entra, "loginPopup" function is required to continue the operation.
|
|
38
|
-
*/
|
|
39
|
-
isRedirectRequired(): boolean {
|
|
40
|
-
return this.isRedirectError();
|
|
41
|
-
}
|
|
42
34
|
}
|
|
43
35
|
|
|
44
36
|
export class ResetPasswordSubmitPasswordError extends AuthActionErrorBase {
|
|
@@ -75,22 +67,6 @@ export class ResetPasswordSubmitCodeError extends AuthActionErrorBase {
|
|
|
75
67
|
isInvalidCode(): boolean {
|
|
76
68
|
return this.isInvalidCodeError();
|
|
77
69
|
}
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Check if client app supports the challenge type configured in Entra.
|
|
81
|
-
* @returns {boolean} True if client app doesn't support the challenge type configured in Entra, "loginPopup" function is required to continue the operation.
|
|
82
|
-
*/
|
|
83
|
-
isRedirectRequired(): boolean {
|
|
84
|
-
return this.isRedirectError();
|
|
85
|
-
}
|
|
86
70
|
}
|
|
87
71
|
|
|
88
|
-
export class ResetPasswordResendCodeError extends AuthActionErrorBase {
|
|
89
|
-
/**
|
|
90
|
-
* Check if client app supports the challenge type configured in Entra.
|
|
91
|
-
* @returns {boolean} True if client app doesn't support the challenge type configured in Entra, "loginPopup" function is required to continue the operation.
|
|
92
|
-
*/
|
|
93
|
-
isRedirectRequired(): boolean {
|
|
94
|
-
return this.isRedirectError();
|
|
95
|
-
}
|
|
96
|
-
}
|
|
72
|
+
export class ResetPasswordResendCodeError extends AuthActionErrorBase {}
|
|
@@ -46,14 +46,6 @@ export class SignInError extends AuthActionErrorBase {
|
|
|
46
46
|
isUnsupportedChallengeType(): boolean {
|
|
47
47
|
return this.isUnsupportedChallengeTypeError();
|
|
48
48
|
}
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Check if client app supports the challenge type configured in Entra.
|
|
52
|
-
* @returns {boolean} True if "loginPopup" function is required to continue sthe operation.
|
|
53
|
-
*/
|
|
54
|
-
isRedirectRequired(): boolean {
|
|
55
|
-
return this.isRedirectError();
|
|
56
|
-
}
|
|
57
49
|
}
|
|
58
50
|
|
|
59
51
|
export class SignInSubmitPasswordError extends AuthActionErrorBase {
|
|
@@ -76,12 +68,4 @@ export class SignInSubmitCodeError extends AuthActionErrorBase {
|
|
|
76
68
|
}
|
|
77
69
|
}
|
|
78
70
|
|
|
79
|
-
export class SignInResendCodeError extends AuthActionErrorBase {
|
|
80
|
-
/**
|
|
81
|
-
* Check if client app supports the challenge type configured in Entra.
|
|
82
|
-
* @returns {boolean} True if "loginPopup" function is required to continue sthe operation.
|
|
83
|
-
*/
|
|
84
|
-
isRedirectRequired(): boolean {
|
|
85
|
-
return this.isRedirectError();
|
|
86
|
-
}
|
|
87
|
-
}
|
|
71
|
+
export class SignInResendCodeError extends AuthActionErrorBase {}
|
|
@@ -53,14 +53,6 @@ export class SignUpError extends AuthActionErrorBase {
|
|
|
53
53
|
isUnsupportedChallengeType(): boolean {
|
|
54
54
|
return this.isUnsupportedChallengeTypeError();
|
|
55
55
|
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Check if client app supports the challenge type configured in Entra.
|
|
59
|
-
* @returns {boolean} True if "loginPopup" function is required to continue sthe operation.
|
|
60
|
-
*/
|
|
61
|
-
isRedirectRequired(): boolean {
|
|
62
|
-
return this.isRedirectError();
|
|
63
|
-
}
|
|
64
56
|
}
|
|
65
57
|
|
|
66
58
|
export class SignUpSubmitPasswordError extends AuthActionErrorBase {
|
|
@@ -73,14 +65,6 @@ export class SignUpSubmitPasswordError extends AuthActionErrorBase {
|
|
|
73
65
|
this.isPasswordIncorrectError() || this.isInvalidNewPasswordError()
|
|
74
66
|
);
|
|
75
67
|
}
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Check if client app supports the challenge type configured in Entra.
|
|
79
|
-
* @returns {boolean} True if "loginPopup" function is required to continue sthe operation.
|
|
80
|
-
*/
|
|
81
|
-
isRedirectRequired(): boolean {
|
|
82
|
-
return this.isRedirectError();
|
|
83
|
-
}
|
|
84
68
|
}
|
|
85
69
|
|
|
86
70
|
export class SignUpSubmitCodeError extends AuthActionErrorBase {
|
|
@@ -91,14 +75,6 @@ export class SignUpSubmitCodeError extends AuthActionErrorBase {
|
|
|
91
75
|
isInvalidCode(): boolean {
|
|
92
76
|
return this.isInvalidCodeError();
|
|
93
77
|
}
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* Check if client app supports the challenge type configured in Entra.
|
|
97
|
-
* @returns {boolean} True if "loginPopup" function is required to continue sthe operation.
|
|
98
|
-
*/
|
|
99
|
-
isRedirectRequired(): boolean {
|
|
100
|
-
return this.isRedirectError();
|
|
101
|
-
}
|
|
102
78
|
}
|
|
103
79
|
|
|
104
80
|
export class SignUpSubmitAttributesError extends AuthActionErrorBase {
|
|
@@ -117,22 +93,6 @@ export class SignUpSubmitAttributesError extends AuthActionErrorBase {
|
|
|
117
93
|
isAttributesValidationFailed(): boolean {
|
|
118
94
|
return this.isAttributeValidationFailedError();
|
|
119
95
|
}
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* Check if client app supports the challenge type configured in Entra.
|
|
123
|
-
* @returns {boolean} True if "loginPopup" function is required to continue sthe operation.
|
|
124
|
-
*/
|
|
125
|
-
isRedirectRequired(): boolean {
|
|
126
|
-
return this.isRedirectError();
|
|
127
|
-
}
|
|
128
96
|
}
|
|
129
97
|
|
|
130
|
-
export class SignUpResendCodeError extends AuthActionErrorBase {
|
|
131
|
-
/**
|
|
132
|
-
* Check if client app supports the challenge type configured in Entra.
|
|
133
|
-
* @returns {boolean} True if "loginPopup" function is required to continue sthe operation.
|
|
134
|
-
*/
|
|
135
|
-
isRedirectRequired(): boolean {
|
|
136
|
-
return this.isRedirectError();
|
|
137
|
-
}
|
|
138
|
-
}
|
|
98
|
+
export class SignUpResendCodeError extends AuthActionErrorBase {}
|
|
@@ -52,8 +52,7 @@ export function isFatalNativeAuthError(error: NativeAuthError): boolean {
|
|
|
52
52
|
if (
|
|
53
53
|
error.ext &&
|
|
54
54
|
error.ext.status &&
|
|
55
|
-
|
|
56
|
-
error.ext.status === NativeStatusCodes.DISABLED)
|
|
55
|
+
error.ext.status === NativeStatusCodes.DISABLED
|
|
57
56
|
) {
|
|
58
57
|
return true;
|
|
59
58
|
}
|
|
@@ -155,14 +155,14 @@ export class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
155
155
|
): Promise<AuthenticationResult> {
|
|
156
156
|
this.performanceClient.addQueueMeasurement(
|
|
157
157
|
PerformanceEvents.NativeInteractionClientAcquireToken,
|
|
158
|
-
|
|
158
|
+
this.correlationId
|
|
159
159
|
);
|
|
160
160
|
this.logger.trace("NativeInteractionClient - acquireToken called.");
|
|
161
161
|
|
|
162
162
|
// start the perf measurement
|
|
163
163
|
const nativeATMeasurement = this.performanceClient.startMeasurement(
|
|
164
164
|
PerformanceEvents.NativeInteractionClientAcquireToken,
|
|
165
|
-
|
|
165
|
+
this.correlationId
|
|
166
166
|
);
|
|
167
167
|
const reqTimestamp = TimeUtils.nowSeconds();
|
|
168
168
|
|
|
@@ -191,6 +191,10 @@ export class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
191
191
|
this.logger.info(
|
|
192
192
|
"MSAL internal Cache does not contain tokens, return error as per cache policy"
|
|
193
193
|
);
|
|
194
|
+
nativeATMeasurement.end({
|
|
195
|
+
success: false,
|
|
196
|
+
brokerErrorCode: "cache_request_failed",
|
|
197
|
+
});
|
|
194
198
|
throw e;
|
|
195
199
|
}
|
|
196
200
|
// continue with a native call for any and all errors
|
|
@@ -221,7 +225,6 @@ export class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
221
225
|
success: false,
|
|
222
226
|
errorCode: error.errorCode,
|
|
223
227
|
subErrorCode: error.subError,
|
|
224
|
-
isNativeBroker: true,
|
|
225
228
|
});
|
|
226
229
|
throw error;
|
|
227
230
|
});
|
|
@@ -229,6 +232,9 @@ export class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
229
232
|
if (e instanceof NativeAuthError) {
|
|
230
233
|
serverTelemetryManager.setNativeBrokerErrorCode(e.errorCode);
|
|
231
234
|
}
|
|
235
|
+
nativeATMeasurement.end({
|
|
236
|
+
success: false,
|
|
237
|
+
});
|
|
232
238
|
throw e;
|
|
233
239
|
}
|
|
234
240
|
}
|
|
@@ -423,6 +429,12 @@ export class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
423
429
|
const serverTelemetryManager =
|
|
424
430
|
this.initializeServerTelemetryManager(this.apiId);
|
|
425
431
|
serverTelemetryManager.clearNativeBrokerErrorCode();
|
|
432
|
+
if (performanceClient && this.correlationId) {
|
|
433
|
+
this.performanceClient.addFields(
|
|
434
|
+
{ isNativeBroker: true },
|
|
435
|
+
this.correlationId
|
|
436
|
+
);
|
|
437
|
+
}
|
|
426
438
|
return authResult;
|
|
427
439
|
} catch (e) {
|
|
428
440
|
throw e;
|
|
@@ -948,7 +960,7 @@ export class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
948
960
|
PerformanceEvents.PopTokenGenerateCnf,
|
|
949
961
|
this.logger,
|
|
950
962
|
this.performanceClient,
|
|
951
|
-
|
|
963
|
+
this.correlationId
|
|
952
964
|
)(shrParameters, this.logger);
|
|
953
965
|
reqCnfData = generatedReqCnfData.reqCnfString;
|
|
954
966
|
validatedRequest.keyId = generatedReqCnfData.kid;
|
|
@@ -1073,7 +1085,7 @@ export class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
1073
1085
|
embeddedClientId: child_client_id,
|
|
1074
1086
|
embeddedRedirectUri: child_redirect_uri,
|
|
1075
1087
|
},
|
|
1076
|
-
|
|
1088
|
+
this.correlationId
|
|
1077
1089
|
);
|
|
1078
1090
|
}
|
|
1079
1091
|
}
|
|
@@ -391,8 +391,8 @@ export class RedirectClient extends StandardInteractionClient {
|
|
|
391
391
|
true
|
|
392
392
|
) || Constants.EMPTY_STRING;
|
|
393
393
|
const loginRequestUrlNormalized =
|
|
394
|
-
|
|
395
|
-
const currentUrlNormalized =
|
|
394
|
+
UrlUtils.normalizeUrlForComparison(loginRequestUrl);
|
|
395
|
+
const currentUrlNormalized = UrlUtils.normalizeUrlForComparison(
|
|
396
396
|
window.location.href
|
|
397
397
|
);
|
|
398
398
|
|
package/src/packageMetadata.ts
CHANGED
|
@@ -84,6 +84,14 @@ async function getStandardParameters(
|
|
|
84
84
|
// signal ests that this is a WAM call
|
|
85
85
|
RequestParameterBuilder.addNativeBroker(parameters);
|
|
86
86
|
|
|
87
|
+
// instrument JS-platform bridge specific fields
|
|
88
|
+
performanceClient.addFields(
|
|
89
|
+
{
|
|
90
|
+
isPlatformAuthorizeRequest: true,
|
|
91
|
+
},
|
|
92
|
+
request.correlationId
|
|
93
|
+
);
|
|
94
|
+
|
|
87
95
|
// pass the req_cnf for POP
|
|
88
96
|
if (request.authenticationScheme === AuthenticationScheme.POP) {
|
|
89
97
|
const cryptoOps = new CryptoOps(logger, performanceClient);
|