@azure/msal-browser 4.21.0 → 4.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/IPublicClientApplication.mjs +1 -1
- package/dist/app/PublicClientApplication.mjs +1 -1
- package/dist/app/PublicClientNext.mjs +1 -1
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs +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.mjs +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 +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.mjs +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 +2 -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 +4 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs.map +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 +2 -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 +5 -4
- 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.d.ts +1 -1
- package/dist/custom-auth-path/custom_auth/core/utils/UrlUtils.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/utils/UrlUtils.mjs +10 -2
- package/dist/custom-auth-path/custom_auth/core/utils/UrlUtils.mjs.map +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.mjs +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.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/PopupClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/RedirectClient.mjs +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.mjs +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 +2 -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 +2 -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/core/utils/UrlUtils.d.ts +1 -1
- package/dist/custom_auth/core/utils/UrlUtils.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.mjs +1 -1
- package/dist/error/NativeAuthErrorCodes.mjs +1 -1
- package/dist/error/NestedAppAuthError.mjs +1 -1
- package/dist/event/EventHandler.mjs +1 -1
- package/dist/event/EventMessage.mjs +1 -1
- package/dist/event/EventType.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs +1 -1
- package/dist/interaction_client/PopupClient.mjs +1 -1
- package/dist/interaction_client/RedirectClient.mjs +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
- package/dist/interaction_client/SilentCacheClient.mjs +1 -1
- package/dist/interaction_client/SilentIframeClient.mjs +1 -1
- package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
- package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
- package/dist/interaction_handler/InteractionHandler.mjs +1 -1
- package/dist/interaction_handler/SilentHandler.mjs +1 -1
- package/dist/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.mjs +1 -1
- package/dist/request/RequestHelpers.mjs +1 -1
- package/dist/response/ResponseHandler.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
- package/dist/telemetry/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 +117 -146
- package/lib/custom-auth-path/msal-custom-auth.cjs.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 +2 -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 +2 -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/core/utils/UrlUtils.d.ts +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/utils/UrlUtils.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/packageMetadata.d.ts +1 -1
- package/lib/msal-browser.cjs +66 -66
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +66 -66
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +60 -60
- package/lib/types/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/lib/types/custom_auth/configuration/CustomAuthConfiguration.d.ts +2 -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 +2 -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/core/utils/UrlUtils.d.ts +1 -1
- package/lib/types/custom_auth/core/utils/UrlUtils.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/packageMetadata.d.ts +1 -1
- package/package.json +1 -1
- package/src/custom_auth/configuration/CustomAuthConfiguration.ts +2 -0
- package/src/custom_auth/controller/CustomAuthStandardController.ts +3 -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/interaction_client/CustomAuthInteractionClientBase.ts +1 -1
- package/src/custom_auth/core/network_client/custom_auth_api/BaseApiClient.ts +11 -3
- package/src/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.ts +12 -4
- package/src/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.ts +22 -0
- package/src/custom_auth/core/network_client/custom_auth_api/SignInApiClient.ts +22 -0
- package/src/custom_auth/core/network_client/custom_auth_api/SignupApiClient.ts +22 -0
- package/src/custom_auth/core/utils/UrlUtils.ts +15 -1
- 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/packageMetadata.ts +1 -1
|
@@ -2,6 +2,8 @@ import { BrowserConfiguration, Configuration } from "../../config/Configuration.
|
|
|
2
2
|
export type CustomAuthOptions = {
|
|
3
3
|
challengeTypes?: Array<string>;
|
|
4
4
|
authApiProxyUrl: string;
|
|
5
|
+
customAuthApiQueryParams?: Record<string, string>;
|
|
6
|
+
capabilities?: Array<string>;
|
|
5
7
|
};
|
|
6
8
|
export type CustomAuthConfiguration = Configuration & {
|
|
7
9
|
customAuth: CustomAuthOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomAuthConfiguration.d.ts","sourceRoot":"","sources":["../../../../src/custom_auth/configuration/CustomAuthConfiguration.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,oBAAoB,EACpB,aAAa,EAChB,MAAM,+BAA+B,CAAC;AAEvC,MAAM,MAAM,iBAAiB,GAAG;IAC5B,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"CustomAuthConfiguration.d.ts","sourceRoot":"","sources":["../../../../src/custom_auth/configuration/CustomAuthConfiguration.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,oBAAoB,EACpB,aAAa,EAChB,MAAM,+BAA+B,CAAC;AAEvC,MAAM,MAAM,iBAAiB,GAAG;IAC5B,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,wBAAwB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClD,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,aAAa,GAAG;IAClD,UAAU,EAAE,iBAAiB,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG,oBAAoB,GAAG;IAChE,UAAU,EAAE,iBAAiB,CAAC;CACjC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomAuthStandardController.d.ts","sourceRoot":"","sources":["../../../../src/custom_auth/controller/CustomAuthStandardController.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAM3E,OAAO,EACH,sBAAsB,EACtB,YAAY,EACZ,YAAY,EACZ,mBAAmB,EAEtB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,0BAA0B,EAAE,MAAM,oDAAoD,CAAC;AAChG,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAGnF,OAAO,EAAE,wBAAwB,EAAE,MAAM,gEAAgE,CAAC;AAa1G,OAAO,EAAE,oBAAoB,EAAE,MAAM,gEAAgE,CAAC;AAetG,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAK7E,qBAAa,4BACT,SAAQ,kBACR,YAAW,6BAA6B;IAExC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;IAC5C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;IAC5C,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAsB;IAC1D,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA8B;IAC1D,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAiC;IAClE,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAsB;gBAQ5C,gBAAgB,EAAE,0BAA0B,EAC5C,mBAAmB,CAAC,EAAE,oBAAoB;
|
|
1
|
+
{"version":3,"file":"CustomAuthStandardController.d.ts","sourceRoot":"","sources":["../../../../src/custom_auth/controller/CustomAuthStandardController.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAM3E,OAAO,EACH,sBAAsB,EACtB,YAAY,EACZ,YAAY,EACZ,mBAAmB,EAEtB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,0BAA0B,EAAE,MAAM,oDAAoD,CAAC;AAChG,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAGnF,OAAO,EAAE,wBAAwB,EAAE,MAAM,gEAAgE,CAAC;AAa1G,OAAO,EAAE,oBAAoB,EAAE,MAAM,gEAAgE,CAAC;AAetG,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAK7E,qBAAa,4BACT,SAAQ,kBACR,YAAW,6BAA6B;IAExC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;IAC5C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;IAC5C,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAsB;IAC1D,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA8B;IAC1D,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAiC;IAClE,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAsB;gBAQ5C,gBAAgB,EAAE,0BAA0B,EAC5C,mBAAmB,CAAC,EAAE,oBAAoB;IA2D9C,iBAAiB,CACb,sBAAsB,CAAC,EAAE,sBAAsB,GAChD,gBAAgB;IAqCb,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAiKzD,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IA8GzD,aAAa,CACf,mBAAmB,EAAE,mBAAmB,GACzC,OAAO,CAAC,wBAAwB,CAAC;IAoDpC,OAAO,CAAC,gBAAgB;IAQxB,OAAO,CAAC,qBAAqB;CAWhC"}
|
|
@@ -29,5 +29,10 @@ export declare abstract class AuthActionErrorBase extends AuthFlowErrorBase {
|
|
|
29
29
|
* @returns {boolean} True if the error is due to the expired continuation token, false otherwise.
|
|
30
30
|
*/
|
|
31
31
|
isTokenExpired(): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Check if client app supports the challenge type configured in Entra.
|
|
34
|
+
* @returns {boolean} True if client app doesn't support the challenge type configured in Entra, "loginPopup" function is required to continue the operation.
|
|
35
|
+
*/
|
|
36
|
+
isRedirectRequired(): boolean;
|
|
32
37
|
}
|
|
33
38
|
//# sourceMappingURL=AuthFlowErrorBase.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthFlowErrorBase.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/auth_flow/AuthFlowErrorBase.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAK9D;;GAEG;AACH,8BAAsB,iBAAiB;IAChB,SAAS,EAAE,eAAe;gBAA1B,SAAS,EAAE,eAAe;IAE7C,SAAS,CAAC,mBAAmB,IAAI,OAAO;IAIxC,SAAS,CAAC,kBAAkB,IAAI,OAAO;IAYvC,SAAS,CAAC,+BAA+B,IAAI,OAAO;IAYpD,SAAS,CAAC,wBAAwB,IAAI,OAAO;IAa7C,SAAS,CAAC,kBAAkB,IAAI,OAAO;IAWvC,SAAS,CAAC,eAAe,IAAI,OAAO;IAIpC,SAAS,CAAC,yBAAyB,IAAI,OAAO;IAiB9C,SAAS,CAAC,wBAAwB,IAAI,OAAO;IAO7C,SAAS,CAAC,wBAAwB,IAAI,OAAO;IAO7C,SAAS,CAAC,gCAAgC,IAAI,OAAO;IAYrD,SAAS,CAAC,2BAA2B,IAAI,OAAO;IAIhD,SAAS,CAAC,mBAAmB,IAAI,OAAO;IAOxC;;;OAGG;IACH,SAAS,CAAC,4BAA4B,IAAI,OAAO;CAOpD;AAED,8BAAsB,mBAAoB,SAAQ,iBAAiB;IAC/D;;;OAGG;IACH,cAAc,IAAI,OAAO;
|
|
1
|
+
{"version":3,"file":"AuthFlowErrorBase.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/auth_flow/AuthFlowErrorBase.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAK9D;;GAEG;AACH,8BAAsB,iBAAiB;IAChB,SAAS,EAAE,eAAe;gBAA1B,SAAS,EAAE,eAAe;IAE7C,SAAS,CAAC,mBAAmB,IAAI,OAAO;IAIxC,SAAS,CAAC,kBAAkB,IAAI,OAAO;IAYvC,SAAS,CAAC,+BAA+B,IAAI,OAAO;IAYpD,SAAS,CAAC,wBAAwB,IAAI,OAAO;IAa7C,SAAS,CAAC,kBAAkB,IAAI,OAAO;IAWvC,SAAS,CAAC,eAAe,IAAI,OAAO;IAIpC,SAAS,CAAC,yBAAyB,IAAI,OAAO;IAiB9C,SAAS,CAAC,wBAAwB,IAAI,OAAO;IAO7C,SAAS,CAAC,wBAAwB,IAAI,OAAO;IAO7C,SAAS,CAAC,gCAAgC,IAAI,OAAO;IAYrD,SAAS,CAAC,2BAA2B,IAAI,OAAO;IAIhD,SAAS,CAAC,mBAAmB,IAAI,OAAO;IAOxC;;;OAGG;IACH,SAAS,CAAC,4BAA4B,IAAI,OAAO;CAOpD;AAED,8BAAsB,mBAAoB,SAAQ,iBAAiB;IAC/D;;;OAGG;IACH,cAAc,IAAI,OAAO;IAIzB;;;OAGG;IACH,kBAAkB,IAAI,OAAO;CAGhC"}
|
|
@@ -4,7 +4,8 @@ import { CustomAuthError } from "./CustomAuthError.js";
|
|
|
4
4
|
* Error when no required authentication method by Microsoft Entra is supported
|
|
5
5
|
*/
|
|
6
6
|
export declare class RedirectError extends CustomAuthError {
|
|
7
|
-
|
|
7
|
+
redirectReason?: string | undefined;
|
|
8
|
+
constructor(correlationId?: string, redirectReason?: string | undefined);
|
|
8
9
|
}
|
|
9
10
|
/**
|
|
10
11
|
* Custom Auth API error.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomAuthApiError.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/error/CustomAuthApiError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,kEAAkE,CAAC;AACjG,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,qBAAa,aAAc,SAAQ,eAAe;
|
|
1
|
+
{"version":3,"file":"CustomAuthApiError.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/error/CustomAuthApiError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,kEAAkE,CAAC;AACjG,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,qBAAa,aAAc,SAAQ,eAAe;IACH,cAAc,CAAC;gBAA9C,aAAa,CAAC,EAAE,MAAM,EAAS,cAAc,CAAC,oBAAQ;CASrE;AAED;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,eAAe;IAOxC,UAAU,CAAC;IACX,iBAAiB,CAAC;IAClB,OAAO,CAAC;IACR,SAAS,CAAC;gBARjB,KAAK,EAAE,MAAM,EACb,gBAAgB,EAAE,MAAM,EACxB,aAAa,CAAC,EAAE,MAAM,EACtB,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,EAC1B,QAAQ,CAAC,EAAE,MAAM,EACV,UAAU,CAAC,6BAAsB,EACjC,iBAAiB,CAAC,oBAAQ,EAC1B,OAAO,CAAC,oBAAQ,EAChB,SAAS,CAAC,oBAAQ;CAKhC"}
|
|
@@ -3,8 +3,9 @@ import { ServerTelemetryManager } from "@azure/msal-common/browser";
|
|
|
3
3
|
export declare abstract class BaseApiClient {
|
|
4
4
|
private readonly clientId;
|
|
5
5
|
private httpClient;
|
|
6
|
+
private customAuthApiQueryParams?;
|
|
6
7
|
private readonly baseRequestUrl;
|
|
7
|
-
constructor(baseUrl: string, clientId: string, httpClient: IHttpClient);
|
|
8
|
+
constructor(baseUrl: string, clientId: string, httpClient: IHttpClient, customAuthApiQueryParams?: Record<string, string> | undefined);
|
|
8
9
|
protected request<T>(endpoint: string, data: Record<string, string | boolean>, telemetryManager: ServerTelemetryManager, correlationId: string): Promise<T>;
|
|
9
10
|
protected ensureContinuationTokenIsValid(continuationToken: string | undefined, correlationId: string): void;
|
|
10
11
|
private readResponseCorrelationId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseApiClient.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/network_client/custom_auth_api/BaseApiClient.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAO5D,OAAO,EAEH,sBAAsB,EACzB,MAAM,4BAA4B,CAAC;AAGpC,8BAAsB,aAAa;IAK3B,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,UAAU;
|
|
1
|
+
{"version":3,"file":"BaseApiClient.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/network_client/custom_auth_api/BaseApiClient.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAO5D,OAAO,EAEH,sBAAsB,EACzB,MAAM,4BAA4B,CAAC;AAGpC,8BAAsB,aAAa;IAK3B,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,UAAU;IAClB,OAAO,CAAC,wBAAwB,CAAC;IANrC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAM;gBAGjC,OAAO,EAAE,MAAM,EACE,QAAQ,EAAE,MAAM,EACzB,UAAU,EAAE,WAAW,EACvB,wBAAwB,CAAC,oCAAwB;cAO7C,OAAO,CAAC,CAAC,EACrB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,EACtC,gBAAgB,EAAE,sBAAsB,EACxC,aAAa,EAAE,MAAM,GACtB,OAAO,CAAC,CAAC,CAAC;IA2Bb,SAAS,CAAC,8BAA8B,CACpC,iBAAiB,EAAE,MAAM,GAAG,SAAS,EACrC,aAAa,EAAE,MAAM,GACtB,IAAI;IAUP,OAAO,CAAC,yBAAyB;IAUjC,OAAO,CAAC,gBAAgB;YAkBV,iBAAiB;CAiElC"}
|
|
@@ -7,6 +7,6 @@ export declare class CustomAuthApiClient implements ICustomAuthApiClient {
|
|
|
7
7
|
signInApi: SignInApiClient;
|
|
8
8
|
signUpApi: SignupApiClient;
|
|
9
9
|
resetPasswordApi: ResetPasswordApiClient;
|
|
10
|
-
constructor(customAuthApiBaseUrl: string, clientId: string, httpClient: IHttpClient);
|
|
10
|
+
constructor(customAuthApiBaseUrl: string, clientId: string, httpClient: IHttpClient, capabilities?: string, customAuthApiQueryParams?: Record<string, string>);
|
|
11
11
|
}
|
|
12
12
|
//# sourceMappingURL=CustomAuthApiClient.d.ts.map
|
package/lib/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomAuthApiClient.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAE5D,qBAAa,mBAAoB,YAAW,oBAAoB;IAC5D,SAAS,EAAE,eAAe,CAAC;IAC3B,SAAS,EAAE,eAAe,CAAC;IAC3B,gBAAgB,EAAE,sBAAsB,CAAC;gBAGrC,oBAAoB,EAAE,MAAM,EAC5B,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,WAAW;
|
|
1
|
+
{"version":3,"file":"CustomAuthApiClient.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAE5D,qBAAa,mBAAoB,YAAW,oBAAoB;IAC5D,SAAS,EAAE,eAAe,CAAC;IAC3B,SAAS,EAAE,eAAe,CAAC;IAC3B,gBAAgB,EAAE,sBAAsB,CAAC;gBAGrC,oBAAoB,EAAE,MAAM,EAC5B,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,WAAW,EACvB,YAAY,CAAC,EAAE,MAAM,EACrB,wBAAwB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAwBxD"}
|
package/lib/types/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { BaseApiClient } from "./BaseApiClient.js";
|
|
2
|
+
import { IHttpClient } from "../http_client/IHttpClient.js";
|
|
2
3
|
import { ResetPasswordChallengeRequest, ResetPasswordContinueRequest, ResetPasswordPollCompletionRequest, ResetPasswordStartRequest, ResetPasswordSubmitRequest } from "./types/ApiRequestTypes.js";
|
|
3
4
|
import { ResetPasswordChallengeResponse, ResetPasswordContinueResponse, ResetPasswordPollCompletionResponse, ResetPasswordStartResponse, ResetPasswordSubmitResponse } from "./types/ApiResponseTypes.js";
|
|
4
5
|
export declare class ResetPasswordApiClient extends BaseApiClient {
|
|
6
|
+
private readonly capabilities?;
|
|
7
|
+
constructor(customAuthApiBaseUrl: string, clientId: string, httpClient: IHttpClient, capabilities?: string, customAuthApiQueryParams?: Record<string, string>);
|
|
5
8
|
/**
|
|
6
9
|
* Start the password reset flow
|
|
7
10
|
*/
|
package/lib/types/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResetPasswordApiClient.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"ResetPasswordApiClient.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAG5D,OAAO,EACH,6BAA6B,EAC7B,4BAA4B,EAC5B,kCAAkC,EAClC,yBAAyB,EACzB,0BAA0B,EAC7B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACH,8BAA8B,EAC9B,6BAA6B,EAC7B,mCAAmC,EACnC,0BAA0B,EAC1B,2BAA2B,EAC9B,MAAM,6BAA6B,CAAC;AAErC,qBAAa,sBAAuB,SAAQ,aAAa;IACrD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAS;gBAGnC,oBAAoB,EAAE,MAAM,EAC5B,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,WAAW,EACvB,YAAY,CAAC,EAAE,MAAM,EACrB,wBAAwB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAWrD;;OAEG;IACG,KAAK,CACP,MAAM,EAAE,yBAAyB,GAClC,OAAO,CAAC,0BAA0B,CAAC;IAsBtC;;;OAGG;IACG,gBAAgB,CAClB,MAAM,EAAE,6BAA6B,GACtC,OAAO,CAAC,8BAA8B,CAAC;IAmB1C;;;OAGG;IACG,gBAAgB,CAClB,MAAM,EAAE,4BAA4B,GACrC,OAAO,CAAC,6BAA6B,CAAC;IAoBzC;;;OAGG;IACG,iBAAiB,CACnB,MAAM,EAAE,0BAA0B,GACnC,OAAO,CAAC,2BAA2B,CAAC;IAuBvC;;;OAGG;IACG,cAAc,CAChB,MAAM,EAAE,kCAAkC,GAC3C,OAAO,CAAC,mCAAmC,CAAC;IAe/C,SAAS,CAAC,uBAAuB,CAC7B,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,MAAM,GACtB,IAAI;CAcV"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { BaseApiClient } from "./BaseApiClient.js";
|
|
2
|
+
import { IHttpClient } from "../http_client/IHttpClient.js";
|
|
2
3
|
import { SignInChallengeRequest, SignInContinuationTokenRequest, SignInInitiateRequest, SignInOobTokenRequest, SignInPasswordTokenRequest } from "./types/ApiRequestTypes.js";
|
|
3
4
|
import { SignInChallengeResponse, SignInInitiateResponse, SignInTokenResponse } from "./types/ApiResponseTypes.js";
|
|
4
5
|
export declare class SignInApiClient extends BaseApiClient {
|
|
6
|
+
private readonly capabilities?;
|
|
7
|
+
constructor(customAuthApiBaseUrl: string, clientId: string, httpClient: IHttpClient, capabilities?: string, customAuthApiQueryParams?: Record<string, string>);
|
|
5
8
|
/**
|
|
6
9
|
* Initiates the sign-in flow
|
|
7
10
|
* @param username User's email
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignInApiClient.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/network_client/custom_auth_api/SignInApiClient.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"SignInApiClient.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/network_client/custom_auth_api/SignInApiClient.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAG5D,OAAO,EACH,sBAAsB,EACtB,8BAA8B,EAC9B,qBAAqB,EACrB,qBAAqB,EACrB,0BAA0B,EAC7B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACH,uBAAuB,EACvB,sBAAsB,EACtB,mBAAmB,EACtB,MAAM,6BAA6B,CAAC;AAErC,qBAAa,eAAgB,SAAQ,aAAa;IAC9C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAS;gBAGnC,oBAAoB,EAAE,MAAM,EAC5B,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,WAAW,EACvB,YAAY,CAAC,EAAE,MAAM,EACrB,wBAAwB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAWrD;;;;OAIG;IACG,QAAQ,CACV,MAAM,EAAE,qBAAqB,GAC9B,OAAO,CAAC,sBAAsB,CAAC;IAsBlC;;;;OAIG;IACG,gBAAgB,CAClB,MAAM,EAAE,sBAAsB,GAC/B,OAAO,CAAC,uBAAuB,CAAC;IAmBnC;;;;;OAKG;IACG,yBAAyB,CAC3B,MAAM,EAAE,0BAA0B,GACnC,OAAO,CAAC,mBAAmB,CAAC;IAczB,oBAAoB,CACtB,MAAM,EAAE,qBAAqB,GAC9B,OAAO,CAAC,mBAAmB,CAAC;IAczB,iCAAiC,CACnC,MAAM,EAAE,8BAA8B,GACvC,OAAO,CAAC,mBAAmB,CAAC;YAejB,aAAa;IAoB3B,OAAO,CAAC,MAAM,CAAC,0BAA0B;CAoC5C"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { BaseApiClient } from "./BaseApiClient.js";
|
|
2
|
+
import { IHttpClient } from "../http_client/IHttpClient.js";
|
|
2
3
|
import { SignUpChallengeRequest, SignUpContinueWithAttributesRequest, SignUpContinueWithOobRequest, SignUpContinueWithPasswordRequest, SignUpStartRequest } from "./types/ApiRequestTypes.js";
|
|
3
4
|
import { SignUpChallengeResponse, SignUpContinueResponse, SignUpStartResponse } from "./types/ApiResponseTypes.js";
|
|
4
5
|
export declare class SignupApiClient extends BaseApiClient {
|
|
6
|
+
private readonly capabilities?;
|
|
7
|
+
constructor(customAuthApiBaseUrl: string, clientId: string, httpClient: IHttpClient, capabilities?: string, customAuthApiQueryParams?: Record<string, string>);
|
|
5
8
|
/**
|
|
6
9
|
* Start the sign-up flow
|
|
7
10
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignupApiClient.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/network_client/custom_auth_api/SignupApiClient.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"SignupApiClient.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/network_client/custom_auth_api/SignupApiClient.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EACH,sBAAsB,EACtB,mCAAmC,EACnC,4BAA4B,EAC5B,iCAAiC,EACjC,kBAAkB,EACrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACH,uBAAuB,EACvB,sBAAsB,EACtB,mBAAmB,EACtB,MAAM,6BAA6B,CAAC;AAErC,qBAAa,eAAgB,SAAQ,aAAa;IAC9C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAS;gBAGnC,oBAAoB,EAAE,MAAM,EAC5B,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,WAAW,EACvB,YAAY,CAAC,EAAE,MAAM,EACrB,wBAAwB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAWrD;;OAEG;IACG,KAAK,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IA0BrE;;OAEG;IACG,gBAAgB,CAClB,MAAM,EAAE,sBAAsB,GAC/B,OAAO,CAAC,uBAAuB,CAAC;IAmBnC;;OAEG;IACG,gBAAgB,CAClB,MAAM,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC;IAoB5B,oBAAoB,CACtB,MAAM,EAAE,iCAAiC,GAC1C,OAAO,CAAC,sBAAsB,CAAC;IAoB5B,sBAAsB,CACxB,MAAM,EAAE,mCAAmC,GAC5C,OAAO,CAAC,sBAAsB,CAAC;CAmBrC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare function parseUrl(url: string): URL;
|
|
2
|
-
export declare function buildUrl(baseUrl: string, path: string): URL;
|
|
2
|
+
export declare function buildUrl(baseUrl: string, path: string, queryParams?: Record<string, string>): URL;
|
|
3
3
|
//# sourceMappingURL=UrlUtils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UrlUtils.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/utils/UrlUtils.ts"],"names":[],"mappings":"AAQA,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CASzC;AAED,wBAAgB,QAAQ,
|
|
1
|
+
{"version":3,"file":"UrlUtils.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/utils/UrlUtils.ts"],"names":[],"mappings":"AAQA,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CASzC;AAED,wBAAgB,QAAQ,CACpB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACrC,GAAG,CAeL"}
|
|
@@ -15,11 +15,6 @@ export declare class ResetPasswordError extends AuthActionErrorBase {
|
|
|
15
15
|
* @returns {boolean} True if the error is due to the provided challenge type is not supported, false otherwise.
|
|
16
16
|
*/
|
|
17
17
|
isUnsupportedChallengeType(): boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Check if client app supports the challenge type configured in Entra.
|
|
20
|
-
* @returns {boolean} True if client app doesn't support the challenge type configured in Entra, "loginPopup" function is required to continue the operation.
|
|
21
|
-
*/
|
|
22
|
-
isRedirectRequired(): boolean;
|
|
23
18
|
}
|
|
24
19
|
export declare class ResetPasswordSubmitPasswordError extends AuthActionErrorBase {
|
|
25
20
|
/**
|
|
@@ -39,17 +34,7 @@ export declare class ResetPasswordSubmitCodeError extends AuthActionErrorBase {
|
|
|
39
34
|
* @returns {boolean} True if the provided code is invalid, false otherwise.
|
|
40
35
|
*/
|
|
41
36
|
isInvalidCode(): boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Check if client app supports the challenge type configured in Entra.
|
|
44
|
-
* @returns {boolean} True if client app doesn't support the challenge type configured in Entra, "loginPopup" function is required to continue the operation.
|
|
45
|
-
*/
|
|
46
|
-
isRedirectRequired(): boolean;
|
|
47
37
|
}
|
|
48
38
|
export declare class ResetPasswordResendCodeError extends AuthActionErrorBase {
|
|
49
|
-
/**
|
|
50
|
-
* Check if client app supports the challenge type configured in Entra.
|
|
51
|
-
* @returns {boolean} True if client app doesn't support the challenge type configured in Entra, "loginPopup" function is required to continue the operation.
|
|
52
|
-
*/
|
|
53
|
-
isRedirectRequired(): boolean;
|
|
54
39
|
}
|
|
55
40
|
//# sourceMappingURL=ResetPasswordError.d.ts.map
|
package/lib/types/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResetPasswordError.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AAInF,qBAAa,kBAAmB,SAAQ,mBAAmB;IACvD;;;OAGG;IACH,cAAc,IAAI,OAAO;IAIzB;;;OAGG;IACH,iBAAiB,IAAI,OAAO;IAI5B;;;OAGG;IACH,0BAA0B,IAAI,OAAO;
|
|
1
|
+
{"version":3,"file":"ResetPasswordError.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AAInF,qBAAa,kBAAmB,SAAQ,mBAAmB;IACvD;;;OAGG;IACH,cAAc,IAAI,OAAO;IAIzB;;;OAGG;IACH,iBAAiB,IAAI,OAAO;IAI5B;;;OAGG;IACH,0BAA0B,IAAI,OAAO;CAGxC;AAED,qBAAa,gCAAiC,SAAQ,mBAAmB;IACrE;;;OAGG;IACH,iBAAiB,IAAI,OAAO;IAM5B;;;OAGG;IACH,qBAAqB,IAAI,OAAO;CASnC;AAED,qBAAa,4BAA6B,SAAQ,mBAAmB;IACjE;;;OAGG;IACH,aAAa,IAAI,OAAO;CAG3B;AAED,qBAAa,4BAA6B,SAAQ,mBAAmB;CAAG"}
|
|
@@ -25,11 +25,6 @@ export declare class SignInError extends AuthActionErrorBase {
|
|
|
25
25
|
* @returns {boolean} True if the error is due to the provided challenge type is not supported, false otherwise.
|
|
26
26
|
*/
|
|
27
27
|
isUnsupportedChallengeType(): boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Check if client app supports the challenge type configured in Entra.
|
|
30
|
-
* @returns {boolean} True if "loginPopup" function is required to continue sthe operation.
|
|
31
|
-
*/
|
|
32
|
-
isRedirectRequired(): boolean;
|
|
33
28
|
}
|
|
34
29
|
export declare class SignInSubmitPasswordError extends AuthActionErrorBase {
|
|
35
30
|
/**
|
|
@@ -46,10 +41,5 @@ export declare class SignInSubmitCodeError extends AuthActionErrorBase {
|
|
|
46
41
|
isInvalidCode(): boolean;
|
|
47
42
|
}
|
|
48
43
|
export declare class SignInResendCodeError extends AuthActionErrorBase {
|
|
49
|
-
/**
|
|
50
|
-
* Check if client app supports the challenge type configured in Entra.
|
|
51
|
-
* @returns {boolean} True if "loginPopup" function is required to continue sthe operation.
|
|
52
|
-
*/
|
|
53
|
-
isRedirectRequired(): boolean;
|
|
54
44
|
}
|
|
55
45
|
//# sourceMappingURL=SignInError.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignInError.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/sign_in/auth_flow/error_type/SignInError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AAGnF,qBAAa,WAAY,SAAQ,mBAAmB;IAChD;;;OAGG;IACH,cAAc,IAAI,OAAO;IAIzB;;;OAGG;IACH,iBAAiB,IAAI,OAAO;IAI5B;;;OAGG;IACH,mBAAmB,IAAI,OAAO;IAI9B;;;OAGG;IACH,uBAAuB,IAAI,OAAO;IAIlC;;;OAGG;IACH,0BAA0B,IAAI,OAAO;
|
|
1
|
+
{"version":3,"file":"SignInError.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/sign_in/auth_flow/error_type/SignInError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AAGnF,qBAAa,WAAY,SAAQ,mBAAmB;IAChD;;;OAGG;IACH,cAAc,IAAI,OAAO;IAIzB;;;OAGG;IACH,iBAAiB,IAAI,OAAO;IAI5B;;;OAGG;IACH,mBAAmB,IAAI,OAAO;IAI9B;;;OAGG;IACH,uBAAuB,IAAI,OAAO;IAIlC;;;OAGG;IACH,0BAA0B,IAAI,OAAO;CAGxC;AAED,qBAAa,yBAA0B,SAAQ,mBAAmB;IAC9D;;;OAGG;IACH,iBAAiB,IAAI,OAAO;CAG/B;AAED,qBAAa,qBAAsB,SAAQ,mBAAmB;IAC1D;;;OAGG;IACH,aAAa,IAAI,OAAO;CAG3B;AAED,qBAAa,qBAAsB,SAAQ,mBAAmB;CAAG"}
|
|
@@ -30,11 +30,6 @@ export declare class SignUpError extends AuthActionErrorBase {
|
|
|
30
30
|
* @returns {boolean} True if the error is due to the provided challenge type is not supported, false otherwise.
|
|
31
31
|
*/
|
|
32
32
|
isUnsupportedChallengeType(): boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Check if client app supports the challenge type configured in Entra.
|
|
35
|
-
* @returns {boolean} True if "loginPopup" function is required to continue sthe operation.
|
|
36
|
-
*/
|
|
37
|
-
isRedirectRequired(): boolean;
|
|
38
33
|
}
|
|
39
34
|
export declare class SignUpSubmitPasswordError extends AuthActionErrorBase {
|
|
40
35
|
/**
|
|
@@ -42,11 +37,6 @@ export declare class SignUpSubmitPasswordError extends AuthActionErrorBase {
|
|
|
42
37
|
* @returns {boolean} True if the error is due to the password being invalid, false otherwise.
|
|
43
38
|
*/
|
|
44
39
|
isInvalidPassword(): boolean;
|
|
45
|
-
/**
|
|
46
|
-
* Check if client app supports the challenge type configured in Entra.
|
|
47
|
-
* @returns {boolean} True if "loginPopup" function is required to continue sthe operation.
|
|
48
|
-
*/
|
|
49
|
-
isRedirectRequired(): boolean;
|
|
50
40
|
}
|
|
51
41
|
export declare class SignUpSubmitCodeError extends AuthActionErrorBase {
|
|
52
42
|
/**
|
|
@@ -54,11 +44,6 @@ export declare class SignUpSubmitCodeError extends AuthActionErrorBase {
|
|
|
54
44
|
* @returns {boolean} True if the provided code is invalid, false otherwise.
|
|
55
45
|
*/
|
|
56
46
|
isInvalidCode(): boolean;
|
|
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
47
|
}
|
|
63
48
|
export declare class SignUpSubmitAttributesError extends AuthActionErrorBase {
|
|
64
49
|
/**
|
|
@@ -71,17 +56,7 @@ export declare class SignUpSubmitAttributesError extends AuthActionErrorBase {
|
|
|
71
56
|
* @returns {boolean} True if the error is due to the attributes validation failed, false otherwise.
|
|
72
57
|
*/
|
|
73
58
|
isAttributesValidationFailed(): boolean;
|
|
74
|
-
/**
|
|
75
|
-
* Check if client app supports the challenge type configured in Entra.
|
|
76
|
-
* @returns {boolean} True if "loginPopup" function is required to continue sthe operation.
|
|
77
|
-
*/
|
|
78
|
-
isRedirectRequired(): boolean;
|
|
79
59
|
}
|
|
80
60
|
export declare class SignUpResendCodeError extends AuthActionErrorBase {
|
|
81
|
-
/**
|
|
82
|
-
* Check if client app supports the challenge type configured in Entra.
|
|
83
|
-
* @returns {boolean} True if "loginPopup" function is required to continue sthe operation.
|
|
84
|
-
*/
|
|
85
|
-
isRedirectRequired(): boolean;
|
|
86
61
|
}
|
|
87
62
|
//# sourceMappingURL=SignUpError.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignUpError.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/sign_up/auth_flow/error_type/SignUpError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AAEnF,qBAAa,WAAY,SAAQ,mBAAmB;IAChD;;;OAGG;IACH,mBAAmB,IAAI,OAAO;IAI9B;;;OAGG;IACH,iBAAiB,IAAI,OAAO;IAI5B;;;OAGG;IACH,iBAAiB,IAAI,OAAO;IAI5B;;;OAGG;IACH,2BAA2B,IAAI,OAAO;IAItC;;;OAGG;IACH,4BAA4B,IAAI,OAAO;IAIvC;;;OAGG;IACH,0BAA0B,IAAI,OAAO;
|
|
1
|
+
{"version":3,"file":"SignUpError.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/sign_up/auth_flow/error_type/SignUpError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AAEnF,qBAAa,WAAY,SAAQ,mBAAmB;IAChD;;;OAGG;IACH,mBAAmB,IAAI,OAAO;IAI9B;;;OAGG;IACH,iBAAiB,IAAI,OAAO;IAI5B;;;OAGG;IACH,iBAAiB,IAAI,OAAO;IAI5B;;;OAGG;IACH,2BAA2B,IAAI,OAAO;IAItC;;;OAGG;IACH,4BAA4B,IAAI,OAAO;IAIvC;;;OAGG;IACH,0BAA0B,IAAI,OAAO;CAGxC;AAED,qBAAa,yBAA0B,SAAQ,mBAAmB;IAC9D;;;OAGG;IACH,iBAAiB,IAAI,OAAO;CAK/B;AAED,qBAAa,qBAAsB,SAAQ,mBAAmB;IAC1D;;;OAGG;IACH,aAAa,IAAI,OAAO;CAG3B;AAED,qBAAa,2BAA4B,SAAQ,mBAAmB;IAChE;;;OAGG;IACH,2BAA2B,IAAI,OAAO;IAItC;;;OAGG;IACH,4BAA4B,IAAI,OAAO;CAG1C;AAED,qBAAa,qBAAsB,SAAQ,mBAAmB;CAAG"}
|
package/package.json
CHANGED
|
@@ -11,6 +11,8 @@ import {
|
|
|
11
11
|
export type CustomAuthOptions = {
|
|
12
12
|
challengeTypes?: Array<string>;
|
|
13
13
|
authApiProxyUrl: string;
|
|
14
|
+
customAuthApiQueryParams?: Record<string, string>;
|
|
15
|
+
capabilities?: Array<string>;
|
|
14
16
|
};
|
|
15
17
|
|
|
16
18
|
export type CustomAuthConfiguration = Configuration & {
|
|
@@ -112,7 +112,9 @@ export class CustomAuthStandardController
|
|
|
112
112
|
new CustomAuthApiClient(
|
|
113
113
|
this.authority.getCustomAuthApiDomain(),
|
|
114
114
|
this.customAuthConfig.auth.clientId,
|
|
115
|
-
new FetchHttpClient(this.logger)
|
|
115
|
+
new FetchHttpClient(this.logger),
|
|
116
|
+
this.customAuthConfig.customAuth?.capabilities?.join(" "),
|
|
117
|
+
this.customAuthConfig.customAuth?.customAuthApiQueryParams
|
|
116
118
|
),
|
|
117
119
|
this.authority
|
|
118
120
|
);
|
|
@@ -149,4 +149,12 @@ export abstract class AuthActionErrorBase extends AuthFlowErrorBase {
|
|
|
149
149
|
isTokenExpired(): boolean {
|
|
150
150
|
return this.isTokenExpiredError();
|
|
151
151
|
}
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Check if client app supports the challenge type configured in Entra.
|
|
155
|
+
* @returns {boolean} True if client app doesn't support the challenge type configured in Entra, "loginPopup" function is required to continue the operation.
|
|
156
|
+
*/
|
|
157
|
+
isRedirectRequired(): boolean {
|
|
158
|
+
return this.isRedirectError();
|
|
159
|
+
}
|
|
152
160
|
}
|
|
@@ -10,10 +10,11 @@ import { CustomAuthError } from "./CustomAuthError.js";
|
|
|
10
10
|
* Error when no required authentication method by Microsoft Entra is supported
|
|
11
11
|
*/
|
|
12
12
|
export class RedirectError extends CustomAuthError {
|
|
13
|
-
constructor(correlationId?: string) {
|
|
13
|
+
constructor(correlationId?: string, public redirectReason?: string) {
|
|
14
14
|
super(
|
|
15
15
|
"redirect",
|
|
16
|
-
|
|
16
|
+
redirectReason ||
|
|
17
|
+
"Redirect Error, a fallback to the browser-delegated authentication is needed. Use loginPopup instead.",
|
|
17
18
|
correlationId
|
|
18
19
|
);
|
|
19
20
|
Object.setPrototypeOf(this, RedirectError.prototype);
|
|
@@ -27,7 +27,8 @@ export abstract class BaseApiClient {
|
|
|
27
27
|
constructor(
|
|
28
28
|
baseUrl: string,
|
|
29
29
|
private readonly clientId: string,
|
|
30
|
-
private httpClient: IHttpClient
|
|
30
|
+
private httpClient: IHttpClient,
|
|
31
|
+
private customAuthApiQueryParams?: Record<string, string>
|
|
31
32
|
) {
|
|
32
33
|
this.baseRequestUrl = parseUrl(
|
|
33
34
|
!baseUrl.endsWith("/") ? `${baseUrl}/` : baseUrl
|
|
@@ -45,7 +46,11 @@ export abstract class BaseApiClient {
|
|
|
45
46
|
...data,
|
|
46
47
|
});
|
|
47
48
|
const headers = this.getCommonHeaders(correlationId, telemetryManager);
|
|
48
|
-
const url = buildUrl(
|
|
49
|
+
const url = buildUrl(
|
|
50
|
+
this.baseRequestUrl.href,
|
|
51
|
+
endpoint,
|
|
52
|
+
this.customAuthApiQueryParams
|
|
53
|
+
);
|
|
49
54
|
|
|
50
55
|
let response: Response;
|
|
51
56
|
|
|
@@ -128,7 +133,10 @@ export abstract class BaseApiClient {
|
|
|
128
133
|
typeof responseData === "object" &&
|
|
129
134
|
responseData.challenge_type === ChallengeType.REDIRECT
|
|
130
135
|
) {
|
|
131
|
-
throw new RedirectError(
|
|
136
|
+
throw new RedirectError(
|
|
137
|
+
correlationId,
|
|
138
|
+
responseData.redirect_reason
|
|
139
|
+
);
|
|
132
140
|
}
|
|
133
141
|
|
|
134
142
|
return {
|
|
@@ -17,22 +17,30 @@ 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,
|
|
22
|
+
customAuthApiQueryParams?: Record<string, string>
|
|
21
23
|
) {
|
|
22
24
|
this.signInApi = new SignInApiClient(
|
|
23
25
|
customAuthApiBaseUrl,
|
|
24
26
|
clientId,
|
|
25
|
-
httpClient
|
|
27
|
+
httpClient,
|
|
28
|
+
capabilities,
|
|
29
|
+
customAuthApiQueryParams
|
|
26
30
|
);
|
|
27
31
|
this.signUpApi = new SignupApiClient(
|
|
28
32
|
customAuthApiBaseUrl,
|
|
29
33
|
clientId,
|
|
30
|
-
httpClient
|
|
34
|
+
httpClient,
|
|
35
|
+
capabilities,
|
|
36
|
+
customAuthApiQueryParams
|
|
31
37
|
);
|
|
32
38
|
this.resetPasswordApi = new ResetPasswordApiClient(
|
|
33
39
|
customAuthApiBaseUrl,
|
|
34
40
|
clientId,
|
|
35
|
-
httpClient
|
|
41
|
+
httpClient,
|
|
42
|
+
capabilities,
|
|
43
|
+
customAuthApiQueryParams
|
|
36
44
|
);
|
|
37
45
|
}
|
|
38
46
|
}
|
|
@@ -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,24 @@ 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
|
+
customAuthApiQueryParams?: Record<string, string>
|
|
39
|
+
) {
|
|
40
|
+
super(
|
|
41
|
+
customAuthApiBaseUrl,
|
|
42
|
+
clientId,
|
|
43
|
+
httpClient,
|
|
44
|
+
customAuthApiQueryParams
|
|
45
|
+
);
|
|
46
|
+
this.capabilities = capabilities;
|
|
47
|
+
}
|
|
48
|
+
|
|
30
49
|
/**
|
|
31
50
|
* Start the password reset flow
|
|
32
51
|
*/
|
|
@@ -38,6 +57,9 @@ export class ResetPasswordApiClient extends BaseApiClient {
|
|
|
38
57
|
{
|
|
39
58
|
challenge_type: params.challenge_type,
|
|
40
59
|
username: params.username,
|
|
60
|
+
...(this.capabilities && {
|
|
61
|
+
capabilities: this.capabilities,
|
|
62
|
+
}),
|
|
41
63
|
},
|
|
42
64
|
params.telemetryManager,
|
|
43
65
|
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,24 @@ 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
|
+
customAuthApiQueryParams?: Record<string, string>
|
|
35
|
+
) {
|
|
36
|
+
super(
|
|
37
|
+
customAuthApiBaseUrl,
|
|
38
|
+
clientId,
|
|
39
|
+
httpClient,
|
|
40
|
+
customAuthApiQueryParams
|
|
41
|
+
);
|
|
42
|
+
this.capabilities = capabilities;
|
|
43
|
+
}
|
|
44
|
+
|
|
26
45
|
/**
|
|
27
46
|
* Initiates the sign-in flow
|
|
28
47
|
* @param username User's email
|
|
@@ -36,6 +55,9 @@ export class SignInApiClient extends BaseApiClient {
|
|
|
36
55
|
{
|
|
37
56
|
username: params.username,
|
|
38
57
|
challenge_type: params.challenge_type,
|
|
58
|
+
...(this.capabilities && {
|
|
59
|
+
capabilities: this.capabilities,
|
|
60
|
+
}),
|
|
39
61
|
},
|
|
40
62
|
params.telemetryManager,
|
|
41
63
|
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,24 @@ 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
|
+
customAuthApiQueryParams?: Record<string, string>
|
|
32
|
+
) {
|
|
33
|
+
super(
|
|
34
|
+
customAuthApiBaseUrl,
|
|
35
|
+
clientId,
|
|
36
|
+
httpClient,
|
|
37
|
+
customAuthApiQueryParams
|
|
38
|
+
);
|
|
39
|
+
this.capabilities = capabilities;
|
|
40
|
+
}
|
|
41
|
+
|
|
23
42
|
/**
|
|
24
43
|
* Start the sign-up flow
|
|
25
44
|
*/
|
|
@@ -33,6 +52,9 @@ export class SignupApiClient extends BaseApiClient {
|
|
|
33
52
|
attributes: JSON.stringify(params.attributes),
|
|
34
53
|
}),
|
|
35
54
|
challenge_type: params.challenge_type,
|
|
55
|
+
...(this.capabilities && {
|
|
56
|
+
capabilities: this.capabilities,
|
|
57
|
+
}),
|
|
36
58
|
},
|
|
37
59
|
params.telemetryManager,
|
|
38
60
|
params.correlationId
|
|
@@ -17,9 +17,23 @@ export function parseUrl(url: string): URL {
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
export function buildUrl(
|
|
20
|
+
export function buildUrl(
|
|
21
|
+
baseUrl: string,
|
|
22
|
+
path: string,
|
|
23
|
+
queryParams?: Record<string, string>
|
|
24
|
+
): URL {
|
|
21
25
|
const newBaseUrl = !baseUrl.endsWith("/") ? `${baseUrl}/` : baseUrl;
|
|
22
26
|
const newPath = path.startsWith("/") ? path.slice(1) : path;
|
|
23
27
|
const url = new URL(newPath, newBaseUrl);
|
|
28
|
+
|
|
29
|
+
// Add query parameters if provided
|
|
30
|
+
if (queryParams) {
|
|
31
|
+
Object.entries(queryParams).forEach(([key, value]) => {
|
|
32
|
+
if (value !== undefined && value !== null) {
|
|
33
|
+
url.searchParams.set(key, String(value));
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
|
|
24
38
|
return url;
|
|
25
39
|
}
|