@azure/msal-browser 4.15.0 → 4.18.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/CookieStorage.mjs +1 -1
- package/dist/cache/DatabaseStorage.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.d.ts.map +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +15 -3
- package/dist/controllers/NestedAppAuthController.mjs.map +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/CookieStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/DatabaseStorage.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/NestedAppAuthController.d.ts.map +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/CustomAuthActionInputs.d.ts +3 -0
- package/dist/custom-auth-path/custom_auth/CustomAuthActionInputs.d.ts.map +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/controller/CustomAuthStandardController.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.mjs +8 -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 +10 -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.mjs +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.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +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.mjs +1 -1
- 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 +4 -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.mjs +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/ApiRequestTypes.d.ts +1 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts.map +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.d.ts +1 -0
- package/dist/custom-auth-path/custom_auth/core/utils/ArgumentValidator.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/utils/ArgumentValidator.mjs +18 -2
- package/dist/custom-auth-path/custom_auth/core/utils/ArgumentValidator.mjs.map +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.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +8 -4
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs.map +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.mjs +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 +5 -0
- 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 +8 -1
- 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.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +2 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs.map +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.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +6 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs.map +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.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +2 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs.map +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/auth_flow/state/SignInStateParameters.d.ts +1 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.mjs +10 -1
- package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/parameter/SignInParams.d.ts +3 -0
- package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/parameter/SignInParams.d.ts.map +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.mjs +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.d.ts +2 -1
- package/dist/custom-auth-path/interaction_client/PopupClient.d.ts.map +1 -1
- package/dist/custom-auth-path/interaction_client/PopupClient.mjs +43 -14
- package/dist/custom-auth-path/interaction_client/PopupClient.mjs.map +1 -1
- package/dist/custom-auth-path/interaction_client/RedirectClient.d.ts +5 -0
- package/dist/custom-auth-path/interaction_client/RedirectClient.d.ts.map +1 -1
- package/dist/custom-auth-path/interaction_client/RedirectClient.mjs +42 -15
- 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.d.ts.map +1 -1
- package/dist/custom-auth-path/interaction_client/SilentIframeClient.mjs +13 -7
- package/dist/custom-auth-path/interaction_client/SilentIframeClient.mjs.map +1 -1
- package/dist/custom-auth-path/interaction_client/SilentRefreshClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/StandardInteractionClient.d.ts.map +1 -1
- package/dist/custom-auth-path/interaction_client/StandardInteractionClient.mjs +7 -3
- package/dist/custom-auth-path/interaction_client/StandardInteractionClient.mjs.map +1 -1
- package/dist/custom-auth-path/interaction_handler/InteractionHandler.mjs +1 -1
- package/dist/custom-auth-path/interaction_handler/SilentHandler.d.ts +1 -0
- package/dist/custom-auth-path/interaction_handler/SilentHandler.d.ts.map +1 -1
- package/dist/custom-auth-path/interaction_handler/SilentHandler.mjs +12 -3
- package/dist/custom-auth-path/interaction_handler/SilentHandler.mjs.map +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 +4 -0
- package/dist/custom-auth-path/protocol/Authorize.d.ts.map +1 -1
- package/dist/custom-auth-path/protocol/Authorize.mjs +15 -2
- package/dist/custom-auth-path/protocol/Authorize.mjs.map +1 -1
- package/dist/custom-auth-path/request/RequestHelpers.d.ts +11 -1
- package/dist/custom-auth-path/request/RequestHelpers.d.ts.map +1 -1
- package/dist/custom-auth-path/request/RequestHelpers.mjs +32 -3
- package/dist/custom-auth-path/request/RequestHelpers.mjs.map +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/MsalFrameStatsUtils.mjs +1 -1
- package/dist/custom_auth/CustomAuthActionInputs.d.ts +3 -0
- package/dist/custom_auth/CustomAuthActionInputs.d.ts.map +1 -1
- package/dist/custom_auth/CustomAuthConstants.d.ts +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/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts.map +1 -1
- package/dist/custom_auth/core/utils/ArgumentValidator.d.ts +1 -0
- package/dist/custom_auth/core/utils/ArgumentValidator.d.ts.map +1 -1
- package/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.d.ts.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.d.ts +5 -0
- package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.d.ts.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.d.ts.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts +1 -0
- package/dist/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts.map +1 -1
- package/dist/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -1
- package/dist/custom_auth/sign_in/interaction_client/parameter/SignInParams.d.ts +3 -0
- package/dist/custom_auth/sign_in/interaction_client/parameter/SignInParams.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.d.ts +2 -1
- package/dist/interaction_client/PopupClient.d.ts.map +1 -1
- package/dist/interaction_client/PopupClient.mjs +43 -14
- package/dist/interaction_client/PopupClient.mjs.map +1 -1
- package/dist/interaction_client/RedirectClient.d.ts +5 -0
- package/dist/interaction_client/RedirectClient.d.ts.map +1 -1
- package/dist/interaction_client/RedirectClient.mjs +42 -15
- 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.d.ts.map +1 -1
- package/dist/interaction_client/SilentIframeClient.mjs +13 -7
- package/dist/interaction_client/SilentIframeClient.mjs.map +1 -1
- package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
- package/dist/interaction_client/StandardInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/StandardInteractionClient.mjs +7 -3
- package/dist/interaction_client/StandardInteractionClient.mjs.map +1 -1
- package/dist/interaction_handler/InteractionHandler.mjs +1 -1
- package/dist/interaction_handler/SilentHandler.d.ts +1 -0
- package/dist/interaction_handler/SilentHandler.d.ts.map +1 -1
- package/dist/interaction_handler/SilentHandler.mjs +12 -3
- package/dist/interaction_handler/SilentHandler.mjs.map +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 +4 -0
- package/dist/protocol/Authorize.d.ts.map +1 -1
- package/dist/protocol/Authorize.mjs +15 -2
- package/dist/protocol/Authorize.mjs.map +1 -1
- package/dist/request/RequestHelpers.d.ts +11 -1
- package/dist/request/RequestHelpers.d.ts.map +1 -1
- package/dist/request/RequestHelpers.mjs +32 -3
- package/dist/request/RequestHelpers.mjs.map +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/MsalFrameStatsUtils.mjs +1 -1
- package/lib/custom-auth-path/msal-custom-auth.cjs +292 -96
- package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
- package/lib/custom-auth-path/types/controllers/NestedAppAuthController.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/CustomAuthActionInputs.d.ts +3 -0
- package/lib/custom-auth-path/types/custom_auth/CustomAuthActionInputs.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/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/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/types/ApiRequestTypes.d.ts +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/utils/ArgumentValidator.d.ts +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/utils/ArgumentValidator.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/get_account/auth_flow/CustomAuthAccountData.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/error_type/SignInError.d.ts +5 -0
- 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_in/auth_flow/state/SignInCodeRequiredState.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts +1 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/sign_in/interaction_client/parameter/SignInParams.d.ts +3 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/interaction_client/parameter/SignInParams.d.ts.map +1 -1
- package/lib/custom-auth-path/types/interaction_client/PopupClient.d.ts +2 -1
- package/lib/custom-auth-path/types/interaction_client/PopupClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/interaction_client/RedirectClient.d.ts +5 -0
- package/lib/custom-auth-path/types/interaction_client/RedirectClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/interaction_client/SilentIframeClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/interaction_client/StandardInteractionClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/interaction_handler/SilentHandler.d.ts +1 -0
- package/lib/custom-auth-path/types/interaction_handler/SilentHandler.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 +4 -0
- package/lib/custom-auth-path/types/protocol/Authorize.d.ts.map +1 -1
- package/lib/custom-auth-path/types/request/RequestHelpers.d.ts +11 -1
- package/lib/custom-auth-path/types/request/RequestHelpers.d.ts.map +1 -1
- package/lib/msal-browser.cjs +256 -98
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +256 -98
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +68 -68
- package/lib/types/controllers/NestedAppAuthController.d.ts.map +1 -1
- package/lib/types/custom_auth/CustomAuthActionInputs.d.ts +3 -0
- package/lib/types/custom_auth/CustomAuthActionInputs.d.ts.map +1 -1
- package/lib/types/custom_auth/CustomAuthConstants.d.ts +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/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
- package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts +1 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts.map +1 -1
- package/lib/types/custom_auth/core/utils/ArgumentValidator.d.ts +1 -0
- package/lib/types/custom_auth/core/utils/ArgumentValidator.d.ts.map +1 -1
- package/lib/types/custom_auth/get_account/auth_flow/CustomAuthAccountData.d.ts.map +1 -1
- package/lib/types/custom_auth/sign_in/auth_flow/error_type/SignInError.d.ts +5 -0
- package/lib/types/custom_auth/sign_in/auth_flow/error_type/SignInError.d.ts.map +1 -1
- package/lib/types/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts.map +1 -1
- package/lib/types/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts.map +1 -1
- package/lib/types/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.d.ts.map +1 -1
- package/lib/types/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts +1 -0
- package/lib/types/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts.map +1 -1
- package/lib/types/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -1
- package/lib/types/custom_auth/sign_in/interaction_client/parameter/SignInParams.d.ts +3 -0
- package/lib/types/custom_auth/sign_in/interaction_client/parameter/SignInParams.d.ts.map +1 -1
- package/lib/types/interaction_client/PopupClient.d.ts +2 -1
- package/lib/types/interaction_client/PopupClient.d.ts.map +1 -1
- package/lib/types/interaction_client/RedirectClient.d.ts +5 -0
- package/lib/types/interaction_client/RedirectClient.d.ts.map +1 -1
- package/lib/types/interaction_client/SilentIframeClient.d.ts.map +1 -1
- package/lib/types/interaction_client/StandardInteractionClient.d.ts.map +1 -1
- package/lib/types/interaction_handler/SilentHandler.d.ts +1 -0
- package/lib/types/interaction_handler/SilentHandler.d.ts.map +1 -1
- package/lib/types/packageMetadata.d.ts +1 -1
- package/lib/types/protocol/Authorize.d.ts +4 -0
- package/lib/types/protocol/Authorize.d.ts.map +1 -1
- package/lib/types/request/RequestHelpers.d.ts +11 -1
- package/lib/types/request/RequestHelpers.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/controllers/NestedAppAuthController.ts +18 -2
- package/src/custom_auth/CustomAuthActionInputs.ts +3 -0
- package/src/custom_auth/controller/CustomAuthStandardController.ts +18 -10
- package/src/custom_auth/core/auth_flow/AuthFlowErrorBase.ts +12 -0
- package/src/custom_auth/core/network_client/custom_auth_api/SignInApiClient.ts +3 -0
- package/src/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.ts +1 -0
- package/src/custom_auth/core/utils/ArgumentValidator.ts +22 -0
- package/src/custom_auth/get_account/auth_flow/CustomAuthAccountData.ts +24 -9
- package/src/custom_auth/sign_in/auth_flow/error_type/SignInError.ts +8 -0
- package/src/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.ts +1 -0
- package/src/custom_auth/sign_in/auth_flow/state/SignInContinuationState.ts +10 -0
- package/src/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.ts +1 -0
- package/src/custom_auth/sign_in/auth_flow/state/SignInStateParameters.ts +1 -0
- package/src/custom_auth/sign_in/interaction_client/SignInClient.ts +9 -0
- package/src/custom_auth/sign_in/interaction_client/parameter/SignInParams.ts +3 -0
- package/src/interaction_client/PopupClient.ts +161 -63
- package/src/interaction_client/RedirectClient.ts +86 -35
- package/src/interaction_client/SilentIframeClient.ts +49 -28
- package/src/interaction_client/StandardInteractionClient.ts +13 -2
- package/src/interaction_handler/SilentHandler.ts +24 -1
- package/src/packageMetadata.ts +1 -1
- package/src/protocol/Authorize.ts +48 -0
- package/src/request/RequestHelpers.ts +45 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v4.
|
|
1
|
+
/*! @azure/msal-browser v4.18.0 2025-07-30 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { GetAccountResult } from '../get_account/auth_flow/result/GetAccountResult.mjs';
|
|
4
4
|
import { SignInResult } from '../sign_in/auth_flow/result/SignInResult.mjs';
|
|
@@ -17,7 +17,7 @@ import { CustomAuthApiClient } from '../core/network_client/custom_auth_api/Cust
|
|
|
17
17
|
import { FetchHttpClient } from '../core/network_client/http_client/FetchHttpClient.mjs';
|
|
18
18
|
import { ResetPasswordClient } from '../reset_password/interaction_client/ResetPasswordClient.mjs';
|
|
19
19
|
import { NoCachedAccountFoundError } from '../core/error/NoCachedAccountFoundError.mjs';
|
|
20
|
-
import { ensureArgumentIsNotNullOrUndefined, ensureArgumentIsNotEmptyString } from '../core/utils/ArgumentValidator.mjs';
|
|
20
|
+
import { ensureArgumentIsNotNullOrUndefined, ensureArgumentIsNotEmptyString, ensureArgumentIsJSONString } from '../core/utils/ArgumentValidator.mjs';
|
|
21
21
|
import { UserAlreadySignedInError } from '../core/error/UserAlreadySignedInError.mjs';
|
|
22
22
|
import { CustomAuthSilentCacheClient } from '../get_account/interaction_client/CustomAuthSilentCacheClient.mjs';
|
|
23
23
|
import { UnsupportedEnvironmentError } from '../core/error/UnsupportedEnvironmentError.mjs';
|
|
@@ -91,6 +91,9 @@ class CustomAuthStandardController extends StandardController {
|
|
|
91
91
|
ensureArgumentIsNotNullOrUndefined("signInInputs", signInInputs, correlationId);
|
|
92
92
|
ensureArgumentIsNotEmptyString("signInInputs.username", signInInputs.username, correlationId);
|
|
93
93
|
this.ensureUserNotSignedIn(correlationId);
|
|
94
|
+
if (signInInputs.claims) {
|
|
95
|
+
ensureArgumentIsJSONString("signInInputs.claims", signInInputs.claims, correlationId);
|
|
96
|
+
}
|
|
94
97
|
// start the signin flow
|
|
95
98
|
const signInStartParams = {
|
|
96
99
|
clientId: this.customAuthConfig.auth.clientId,
|
|
@@ -115,6 +118,7 @@ class CustomAuthStandardController extends StandardController {
|
|
|
115
118
|
username: signInInputs.username,
|
|
116
119
|
codeLength: startResult.codeLength,
|
|
117
120
|
scopes: signInInputs.scopes ?? [],
|
|
121
|
+
claims: signInInputs.claims,
|
|
118
122
|
}));
|
|
119
123
|
}
|
|
120
124
|
else if (startResult.type === SIGN_IN_PASSWORD_REQUIRED_RESULT_TYPE) {
|
|
@@ -131,6 +135,7 @@ class CustomAuthStandardController extends StandardController {
|
|
|
131
135
|
cacheClient: this.cacheClient,
|
|
132
136
|
username: signInInputs.username,
|
|
133
137
|
scopes: signInInputs.scopes ?? [],
|
|
138
|
+
claims: signInInputs.claims,
|
|
134
139
|
}));
|
|
135
140
|
}
|
|
136
141
|
this.logger.verbose("Submitting password for sign-in.", correlationId);
|
|
@@ -143,6 +148,7 @@ class CustomAuthStandardController extends StandardController {
|
|
|
143
148
|
continuationToken: startResult.continuationToken,
|
|
144
149
|
password: signInInputs.password,
|
|
145
150
|
username: signInInputs.username,
|
|
151
|
+
claims: signInInputs.claims,
|
|
146
152
|
};
|
|
147
153
|
const completedResult = await this.signInClient.submitPassword(submitPasswordParams);
|
|
148
154
|
this.logger.verbose("Sign-in flow completed.", correlationId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomAuthStandardController.mjs","sources":["../../../../../src/custom_auth/controller/CustomAuthStandardController.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;AAGG;
|
|
1
|
+
{"version":3,"file":"CustomAuthStandardController.mjs","sources":["../../../../../src/custom_auth/controller/CustomAuthStandardController.ts"],"sourcesContent":[null],"names":["ArgumentValidator.ensureArgumentIsNotNullOrUndefined","ArgumentValidator.ensureArgumentIsNotEmptyString","ArgumentValidator.ensureArgumentIsJSONString"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;AAGG;AAoDH;;AAEG;AACG,MAAO,4BACT,SAAQ,kBAAkB,CAAA;AAU1B;;;;AAIG;IACH,WACI,CAAA,gBAA4C,EAC5C,mBAA0C,EAAA;QAE1C,KAAK,CAAC,gBAAgB,CAAC,CAAC;AAExB,QAAA,IAAI,CAAC,IAAI,CAAC,oBAAoB,EAAE;AAC5B,YAAA,IAAI,CAAC,MAAM,CAAC,OAAO,CACf,oDAAoD,CACvD,CAAC;YACF,MAAM,IAAI,2BAA2B,EAAE,CAAC;AAC3C,SAAA;AAED,QAAA,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAC3B,kBAAkB,CAAC,GAAG,EACtB,kBAAkB,CAAC,OAAO,CAC7B,CAAC;AACF,QAAA,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC,mBAAmB,EAAE,CAAC;AAE/D,QAAA,IAAI,CAAC,SAAS,GAAG,IAAI,mBAAmB,CACpC,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,EACpC,IAAI,CAAC,gBAAgB,EACrB,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,cAAc,EACnB,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,eAAe,CACpD,CAAC;AAEF,QAAA,MAAM,wBAAwB,GAAG,IAAI,iCAAiC,CAClE,IAAI,CAAC,gBAAgB,EACrB,IAAI,CAAC,cAAc,EACnB,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,gBAAgB,EAC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ValidationFailedError(): boolean;
|
|
18
18
|
protected isNoCachedAccountFoundError(): boolean;
|
|
19
19
|
protected isTokenExpiredError(): boolean;
|
|
20
|
+
/**
|
|
21
|
+
* @todo verify the password change required error can be detected once the MFA is in place.
|
|
22
|
+
* This error will be raised during signin and refresh tokens when calling /token endpoint.
|
|
23
|
+
*/
|
|
24
|
+
protected isPasswordResetRequiredError(): boolean;
|
|
20
25
|
}
|
|
21
26
|
export declare abstract class AuthActionErrorBase extends AuthFlowErrorBase {
|
|
22
27
|
/**
|
|
@@ -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;
|
|
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;CAG5B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v4.
|
|
1
|
+
/*! @azure/msal-browser v4.18.0 2025-07-30 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { CustomAuthApiError, RedirectError } from '../error/CustomAuthApiError.mjs';
|
|
4
4
|
import { NoCachedAccountFoundError } from '../error/NoCachedAccountFoundError.mjs';
|
|
@@ -90,6 +90,15 @@ class AuthFlowErrorBase {
|
|
|
90
90
|
return (this.errorData instanceof CustomAuthApiError &&
|
|
91
91
|
this.errorData.error === EXPIRED_TOKEN);
|
|
92
92
|
}
|
|
93
|
+
/**
|
|
94
|
+
* @todo verify the password change required error can be detected once the MFA is in place.
|
|
95
|
+
* This error will be raised during signin and refresh tokens when calling /token endpoint.
|
|
96
|
+
*/
|
|
97
|
+
isPasswordResetRequiredError() {
|
|
98
|
+
return (this.errorData instanceof CustomAuthApiError &&
|
|
99
|
+
this.errorData.error === INVALID_REQUEST &&
|
|
100
|
+
this.errorData.errorCodes?.includes(50142) === true);
|
|
101
|
+
}
|
|
93
102
|
}
|
|
94
103
|
class AuthActionErrorBase extends AuthFlowErrorBase {
|
|
95
104
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthFlowErrorBase.mjs","sources":["../../../../../../src/custom_auth/core/auth_flow/AuthFlowErrorBase.ts"],"sourcesContent":[null],"names":["CustomAuthApiErrorCode.USER_NOT_FOUND","CustomAuthApiErrorCode.INVALID_REQUEST","CustomAuthApiErrorCode.UNSUPPORTED_CHALLENGE_TYPE","CustomAuthApiErrorCode.INVALID_GRANT","CustomAuthApiSuberror.INVALID_OOB_VALUE","CustomAuthApiSuberror.PASSWORD_BANNED","CustomAuthApiSuberror.PASSWORD_IS_INVALID","CustomAuthApiSuberror.PASSWORD_RECENTLY_USED","CustomAuthApiSuberror.PASSWORD_TOO_LONG","CustomAuthApiSuberror.PASSWORD_TOO_SHORT","CustomAuthApiSuberror.PASSWORD_TOO_WEAK","CustomAuthApiErrorCode.USER_ALREADY_EXISTS","CustomAuthApiErrorCode.ATTRIBUTES_REQUIRED","CustomAuthApiSuberror.ATTRIBUTE_VALIATION_FAILED","CustomAuthApiErrorCode.EXPIRED_TOKEN"],"mappings":";;;;;;;;AAAA;;;AAGG;AAWH;;AAEG;MACmB,iBAAiB,CAAA;AACnC,IAAA,WAAA,CAAmB,SAA0B,EAAA;QAA1B,IAAS,CAAA,SAAA,GAAT,SAAS,CAAiB;KAAI;IAEvC,mBAAmB,GAAA;QACzB,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,KAAKA,cAAqC,CAAC;KACzE;IAES,kBAAkB,GAAA;AACxB,QAAA,QACI,CAAC,IAAI,CAAC,SAAS,YAAY,oBAAoB;YAC3C,IAAI,CAAC,SAAS,CAAC,gBAAgB,EAAE,Q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,GAAA;AACzB,QAAA,QACI,IAAI,CAAC,SAAS,YAAY,kBAAkB;YAC5C,IAAI,CAAC,SAAS,CAAC,KAAK,KAAKC,aAAoC,EAC/D;KACL;AACJ,CAAA;AAEK,MAAgB,mBAAoB,SAAQ,iBAAiB,CAAA;AAC/D;;;AAGG;IACH,cAAc,GAAA;AACV,QAAA,OAAO,IAAI,CAAC,mBAAmB,EAAE,CAAC;KACrC;AACJ;;;;"}
|
|
1
|
+
{"version":3,"file":"AuthFlowErrorBase.mjs","sources":["../../../../../../src/custom_auth/core/auth_flow/AuthFlowErrorBase.ts"],"sourcesContent":[null],"names":["CustomAuthApiErrorCode.USER_NOT_FOUND","CustomAuthApiErrorCode.INVALID_REQUEST","CustomAuthApiErrorCode.UNSUPPORTED_CHALLENGE_TYPE","CustomAuthApiErrorCode.INVALID_GRANT","CustomAuthApiSuberror.INVALID_OOB_VALUE","CustomAuthApiSuberror.PASSWORD_BANNED","CustomAuthApiSuberror.PASSWORD_IS_INVALID","CustomAuthApiSuberror.PASSWORD_RECENTLY_USED","CustomAuthApiSuberror.PASSWORD_TOO_LONG","CustomAuthApiSuberror.PASSWORD_TOO_SHORT","CustomAuthApiSuberror.PASSWORD_TOO_WEAK","CustomAuthApiErrorCode.USER_ALREADY_EXISTS","CustomAuthApiErrorCode.ATTRIBUTES_REQUIRED","CustomAuthApiSuberror.ATTRIBUTE_VALIATION_FAILED","CustomAuthApiErrorCode.EXPIRED_TOKEN"],"mappings":";;;;;;;;AAAA;;;AAGG;AAWH;;AAEG;MACmB,iBAAiB,CAAA;AACnC,IAAA,WAAA,CAAmB,SAA0B,EAAA;QAA1B,IAAS,CAAA,SAAA,GAAT,SAAS,CAAiB;KAAI;IAEvC,mBAAmB,GAAA;QACzB,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,KAAKA,cAAqC,CAAC;KACzE;IAES,kBAAkB,GAAA;AACxB,QAAA,QACI,CAAC,IAAI,CAAC,SAAS,YAAY,oBAAoB;YAC3C,I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AAY,yBAAyB,CAAC;KAC9D;IAES,mBAAmB,GAAA;AACzB,QAAA,QACI,IAAI,CAAC,SAAS,YAAY,kBAAkB;YAC5C,IAAI,CAAC,SAAS,CAAC,KAAK,KAAKC,aAAoC,EAC/D;KACL;AAED;;;AAGG;IACO,4BAA4B,GAAA;AAClC,QAAA,QACI,IAAI,CAAC,SAAS,YAAY,kBAAkB;AAC5C,YAAA,IAAI,CAAC,SAAS,CAAC,KAAK,KAAKb,eAAsC;AAC/D,YAAA,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,IAAI,EACrD;KACL;AACJ,CAAA;AAEK,MAAgB,mBAAoB,SAAQ,iBAAiB,CAAA;AAC/D;;;AAGG;IACH,cAAc,GAAA;AACV,QAAA,OAAO,IAAI,CAAC,mBAAmB,EAAE,CAAC;KACrC;AACJ;;;;"}
|
package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v4.
|
|
1
|
+
/*! @azure/msal-browser v4.18.0 2025-07-30 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { HttpHeaderKeys, DefaultPackageInfo, ChallengeType } from '../../../CustomAuthConstants.mjs';
|
|
4
4
|
import { HTTP_REQUEST_FAILED, CONTINUATION_TOKEN_MISSING, INVALID_RESPONSE_BODY } from './types/ApiErrorCodes.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v4.
|
|
1
|
+
/*! @azure/msal-browser v4.18.0 2025-07-30 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { GrantType, ResetPasswordPollStatus } from '../../../CustomAuthConstants.mjs';
|
|
4
4
|
import { CustomAuthApiError } from '../../error/CustomAuthApiError.mjs';
|
|
@@ -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;AAGnD,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;;;;OAIG;IACG,QAAQ,CACV,MAAM,EAAE,qBAAqB,GAC9B,OAAO,CAAC,sBAAsB,CAAC;IAmBlC;;;;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;
|
|
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;AAGnD,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;;;;OAIG;IACG,QAAQ,CACV,MAAM,EAAE,qBAAqB,GAC9B,OAAO,CAAC,sBAAsB,CAAC;IAmBlC;;;;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"}
|
package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v4.
|
|
1
|
+
/*! @azure/msal-browser v4.18.0 2025-07-30 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { GrantType } from '../../../CustomAuthConstants.mjs';
|
|
4
4
|
import { CustomAuthApiError } from '../../error/CustomAuthApiError.mjs';
|
|
@@ -49,6 +49,7 @@ class SignInApiClient extends BaseApiClient {
|
|
|
49
49
|
grant_type: GrantType.PASSWORD,
|
|
50
50
|
scope: params.scope,
|
|
51
51
|
password: params.password,
|
|
52
|
+
...(params.claims && { claims: params.claims }),
|
|
52
53
|
}, params.telemetryManager, params.correlationId);
|
|
53
54
|
}
|
|
54
55
|
async requestTokensWithOob(params) {
|
|
@@ -57,6 +58,7 @@ class SignInApiClient extends BaseApiClient {
|
|
|
57
58
|
scope: params.scope,
|
|
58
59
|
oob: params.oob,
|
|
59
60
|
grant_type: GrantType.OOB,
|
|
61
|
+
...(params.claims && { claims: params.claims }),
|
|
60
62
|
}, params.telemetryManager, params.correlationId);
|
|
61
63
|
}
|
|
62
64
|
async requestTokenWithContinuationToken(params) {
|
|
@@ -66,6 +68,7 @@ class SignInApiClient extends BaseApiClient {
|
|
|
66
68
|
scope: params.scope,
|
|
67
69
|
grant_type: GrantType.CONTINUATION_TOKEN,
|
|
68
70
|
client_info: true,
|
|
71
|
+
...(params.claims && { claims: params.claims }),
|
|
69
72
|
}, params.telemetryManager, params.correlationId);
|
|
70
73
|
}
|
|
71
74
|
async requestTokens(requestData, telemetryManager, correlationId) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignInApiClient.mjs","sources":["../../../../../../../src/custom_auth/core/network_client/custom_auth_api/SignInApiClient.ts"],"sourcesContent":[null],"names":["CustomAuthApiEndpoint.SIGNIN_INITIATE","CustomAuthApiEndpoint.SIGNIN_CHALLENGE","CustomAuthApiEndpoint.SIGNIN_TOKEN","CustomAuthApiErrorCode.ACCESS_TOKEN_MISSING","CustomAuthApiErrorCode.ID_TOKEN_MISSING","CustomAuthApiErrorCode.REFRESH_TOKEN_MISSING","CustomAuthApiErrorCode.INVALID_EXPIRES_IN","CustomAuthApiErrorCode.INVALID_TOKEN_TYPE","CustomAuthApiErrorCode.CLIENT_INFO_MISSING"],"mappings":";;;;;;;;AAAA;;;AAGG;AAqBG,MAAO,eAAgB,SAAQ,aAAa,CAAA;AAC9C;;;;AAIG;IACH,MAAM,QAAQ,CACV,MAA6B,EAAA;QAE7B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAC7BA,eAAqC,EACrC;YACI,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,cAAc,EAAE,MAAM,CAAC,cAAc;SACxC,EACD,MAAM,CAAC,gBAAgB,EACvB,MAAM,CAAC,aAAa,CACvB,CAAC;QAEF,IAAI,CAAC,8BAA8B,CAC/B,MAAM,CAAC,kBAAkB,EACzB,MAAM,CAAC,aAAa,CACvB,CAAC;AAEF,QAAA,OAAO,MAAM,CAAC;KACjB;AAED;;;;AAIG;IACH,MAAM,gBAAgB,CAClB,MAA8B,EAAA;QAE9B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAC7BC,gBAAsC,EACtC;YACI,kBAAkB,EAAE,MAAM,CAAC,kBAAkB;YAC7C,cAAc,EAAE,MAAM,CAAC,cAAc;SACxC,EACD,MAAM,CAAC,gBAAgB,EACvB,MAAM,CAAC,aAAa,CACvB,CAAC;QAEF,IAAI,CAAC,8BAA8B,CAC/B,MAAM,CAAC,kBAAkB,EACzB,MAAM,CAAC,aAAa,CACvB,CAAC;AAEF,QAAA,OAAO,MAAM,CAAC;KACjB;AAED;;;;;AAKG;IACH,MAAM,yBAAyB,CAC3B,MAAkC,EAAA;QAElC,OAAO,IAAI,CAAC,aAAa,CACrB;YACI,kBAAkB,EAAE,MAAM,CAAC,kBAAkB;YAC7C,UAAU,EAAE,SAAS,CAAC,QAAQ;YAC9B,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,QAAQ,EAAE,MAAM,CAAC,QAAQ;
|
|
1
|
+
{"version":3,"file":"SignInApiClient.mjs","sources":["../../../../../../../src/custom_auth/core/network_client/custom_auth_api/SignInApiClient.ts"],"sourcesContent":[null],"names":["CustomAuthApiEndpoint.SIGNIN_INITIATE","CustomAuthApiEndpoint.SIGNIN_CHALLENGE","CustomAuthApiEndpoint.SIGNIN_TOKEN","CustomAuthApiErrorCode.ACCESS_TOKEN_MISSING","CustomAuthApiErrorCode.ID_TOKEN_MISSING","CustomAuthApiErrorCode.REFRESH_TOKEN_MISSING","CustomAuthApiErrorCode.INVALID_EXPIRES_IN","CustomAuthApiErrorCode.INVALID_TOKEN_TYPE","CustomAuthApiErrorCode.CLIENT_INFO_MISSING"],"mappings":";;;;;;;;AAAA;;;AAGG;AAqBG,MAAO,eAAgB,SAAQ,aAAa,CAAA;AAC9C;;;;AAIG;IACH,MAAM,QAAQ,CACV,MAA6B,EAAA;QAE7B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAC7BA,eAAqC,EACrC;YACI,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,cAAc,EAAE,MAAM,CAAC,cAAc;SACxC,EACD,MAAM,CAAC,gBAAgB,EACvB,MAAM,CAAC,aAAa,CACvB,CAAC;QAEF,IAAI,CAAC,8BAA8B,CAC/B,MAAM,CAAC,kBAAkB,EACzB,MAAM,CAAC,aAAa,CACvB,CAAC;AAEF,QAAA,OAAO,MAAM,C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CAAC;AACtE,SAAA;aAAM,IAAI,CAAC,aAAa,CAAC,UAAU,IAAI,aAAa,CAAC,UAAU,IAAI,CAAC,EAAE;AACnE,YAAA,SAAS,GAAGC,kBAAyC,CAAC;YACtD,gBAAgB,GAAG,4CAA4C,CAAC;AACnE,SAAA;AAAM,aAAA,IAAI,aAAa,CAAC,UAAU,KAAK,QAAQ,EAAE;AAC9C,YAAA,SAAS,GAAGC,kBAAyC,CAAC;AACtD,YAAA,gBAAgB,GAAG,CAAe,YAAA,EAAA,aAAa,CAAC,UAAU,mCAAmC,CAAC;AACjG,SAAA;AAAM,aAAA,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE;AACnC,YAAA,SAAS,GAAGC,mBAA0C,CAAC;YACvD,gBAAgB,GAAG,6CAA6C,CAAC;AACpE,SAAA;AAED,QAAA,IAAI,CAAC,SAAS,IAAI,CAAC,gBAAgB,EAAE;YACjC,OAAO;AACV,SAAA;QAED,MAAM,IAAI,kBAAkB,CACxB,SAAS,EACT,gBAAgB,EAChB,aAAa,CAAC,cAAc,CAC/B,CAAC;KACL;AACJ;;;;"}
|
|
@@ -10,6 +10,7 @@ export interface SignInChallengeRequest extends ApiRequestBase {
|
|
|
10
10
|
interface SignInTokenRequestBase extends ApiRequestBase {
|
|
11
11
|
continuation_token: string;
|
|
12
12
|
scope: string;
|
|
13
|
+
claims?: string;
|
|
13
14
|
}
|
|
14
15
|
export interface SignInPasswordTokenRequest extends SignInTokenRequestBase {
|
|
15
16
|
password: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiRequestTypes.d.ts","sourceRoot":"","sources":["../../../../../../../src/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGnD,MAAM,WAAW,qBAAsB,SAAQ,cAAc;IACzD,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC1D,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;CAC9B;AAED,UAAU,sBAAuB,SAAQ,cAAc;IACnD,kBAAkB,EAAE,MAAM,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"ApiRequestTypes.d.ts","sourceRoot":"","sources":["../../../../../../../src/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGnD,MAAM,WAAW,qBAAsB,SAAQ,cAAc;IACzD,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC1D,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;CAC9B;AAED,UAAU,sBAAuB,SAAQ,cAAc;IACnD,kBAAkB,EAAE,MAAM,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,0BAA2B,SAAQ,sBAAsB;IACtE,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,qBAAsB,SAAQ,sBAAsB;IACjE,GAAG,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,8BAA+B,SAAQ,sBAAsB;IAC1E,QAAQ,EAAE,MAAM,CAAC;CACpB;AAGD,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACtD,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACvC;AAED,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC1D,kBAAkB,EAAE,MAAM,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;CAC1B;AAED,UAAU,yBAA0B,SAAQ,cAAc;IACtD,kBAAkB,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,4BACb,SAAQ,yBAAyB;IACjC,GAAG,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iCACb,SAAQ,yBAAyB;IACjC,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,mCACb,SAAQ,yBAAyB;IACjC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC;AAGD,MAAM,WAAW,yBAA0B,SAAQ,cAAc;IAC7D,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,6BAA8B,SAAQ,cAAc;IACjE,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,4BAA6B,SAAQ,cAAc;IAChE,kBAAkB,EAAE,MAAM,CAAC;IAC3B,GAAG,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,0BAA2B,SAAQ,cAAc;IAC9D,kBAAkB,EAAE,MAAM,CAAC;IAC3B,YAAY,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,kCAAmC,SAAQ,cAAc;IACtE,kBAAkB,EAAE,MAAM,CAAC;CAC9B"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export declare function ensureArgumentIsNotNullOrUndefined<T>(argName: string, argValue: T | undefined | null, correlationId?: string): asserts argValue is T;
|
|
2
2
|
export declare function ensureArgumentIsNotEmptyString(argName: string, argValue: string | undefined, correlationId?: string): void;
|
|
3
|
+
export declare function ensureArgumentIsJSONString(argName: string, argValue: string, correlationId?: string): void;
|
|
3
4
|
//# sourceMappingURL=ArgumentValidator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArgumentValidator.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/utils/ArgumentValidator.ts"],"names":[],"mappings":"AAOA,wBAAgB,kCAAkC,CAAC,CAAC,EAChD,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,CAAC,GAAG,SAAS,GAAG,IAAI,EAC9B,aAAa,CAAC,EAAE,MAAM,GACvB,OAAO,CAAC,QAAQ,IAAI,CAAC,CAIvB;AAED,wBAAgB,8BAA8B,CAC1C,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,aAAa,CAAC,EAAE,MAAM,GACvB,IAAI,CAIN"}
|
|
1
|
+
{"version":3,"file":"ArgumentValidator.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/utils/ArgumentValidator.ts"],"names":[],"mappings":"AAOA,wBAAgB,kCAAkC,CAAC,CAAC,EAChD,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,CAAC,GAAG,SAAS,GAAG,IAAI,EAC9B,aAAa,CAAC,EAAE,MAAM,GACvB,OAAO,CAAC,QAAQ,IAAI,CAAC,CAIvB;AAED,wBAAgB,8BAA8B,CAC1C,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,aAAa,CAAC,EAAE,MAAM,GACvB,IAAI,CAIN;AAED,wBAAgB,0BAA0B,CACtC,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,aAAa,CAAC,EAAE,MAAM,GACvB,IAAI,CAgBN"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v4.
|
|
1
|
+
/*! @azure/msal-browser v4.18.0 2025-07-30 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { InvalidArgumentError } from '../error/InvalidArgumentError.mjs';
|
|
4
4
|
|
|
@@ -15,7 +15,23 @@ function ensureArgumentIsNotEmptyString(argName, argValue, correlationId) {
|
|
|
15
15
|
if (!argValue || argValue.trim() === "") {
|
|
16
16
|
throw new InvalidArgumentError(argName, correlationId);
|
|
17
17
|
}
|
|
18
|
+
}
|
|
19
|
+
function ensureArgumentIsJSONString(argName, argValue, correlationId) {
|
|
20
|
+
try {
|
|
21
|
+
const parsed = JSON.parse(argValue);
|
|
22
|
+
if (typeof parsed !== "object" ||
|
|
23
|
+
parsed === null ||
|
|
24
|
+
Array.isArray(parsed)) {
|
|
25
|
+
throw new InvalidArgumentError(argName, correlationId);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
catch (e) {
|
|
29
|
+
if (e instanceof SyntaxError) {
|
|
30
|
+
throw new InvalidArgumentError(argName, correlationId);
|
|
31
|
+
}
|
|
32
|
+
throw e; // Rethrow unexpected errors
|
|
33
|
+
}
|
|
18
34
|
}
|
|
19
35
|
|
|
20
|
-
export { ensureArgumentIsNotEmptyString, ensureArgumentIsNotNullOrUndefined };
|
|
36
|
+
export { ensureArgumentIsJSONString, ensureArgumentIsNotEmptyString, ensureArgumentIsNotNullOrUndefined };
|
|
21
37
|
//# sourceMappingURL=ArgumentValidator.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArgumentValidator.mjs","sources":["../../../../../../src/custom_auth/core/utils/ArgumentValidator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;;;AAGG;SAIa,kCAAkC,CAC9C,OAAe,EACf,QAA8B,EAC9B,aAAsB,EAAA;AAEtB,IAAA,IAAI,QAAQ,KAAK,IAAI,IAAI,QAAQ,KAAK,SAAS,EAAE;AAC7C,QAAA,MAAM,IAAI,oBAAoB,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;AAC1D,KAAA;AACL,CAAC;SAEe,8BAA8B,CAC1C,OAAe,EACf,QAA4B,EAC5B,aAAsB,EAAA;IAEtB,IAAI,CAAC,QAAQ,IAAI,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;AACrC,QAAA,MAAM,IAAI,oBAAoB,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;AAC1D,KAAA;AACL;;;;"}
|
|
1
|
+
{"version":3,"file":"ArgumentValidator.mjs","sources":["../../../../../../src/custom_auth/core/utils/ArgumentValidator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;;;AAGG;SAIa,kCAAkC,CAC9C,OAAe,EACf,QAA8B,EAC9B,aAAsB,EAAA;AAEtB,IAAA,IAAI,QAAQ,KAAK,IAAI,IAAI,QAAQ,KAAK,SAAS,EAAE;AAC7C,QAAA,MAAM,IAAI,oBAAoB,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;AAC1D,KAAA;AACL,CAAC;SAEe,8BAA8B,CAC1C,OAAe,EACf,QAA4B,EAC5B,aAAsB,EAAA;IAEtB,IAAI,CAAC,QAAQ,IAAI,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;AACrC,QAAA,MAAM,IAAI,oBAAoB,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;AAC1D,KAAA;AACL,CAAC;SAEe,0BAA0B,CACtC,OAAe,EACf,QAAgB,EAChB,aAAsB,EAAA;IAEtB,IAAI;QACA,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QACpC,IACI,OAAO,MAAM,KAAK,QAAQ;AAC1B,YAAA,MAAM,KAAK,IAAI;AACf,YAAA,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EACvB;AACE,YAAA,MAAM,IAAI,oBAAoB,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;AAC1D,SAAA;AACJ,KAAA;AAAC,IAAA,OAAO,CAAC,EAAE;QACR,IAAI,CAAC,YAAY,WAAW,EAAE;AAC1B,YAAA,MAAM,IAAI,oBAAoB,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;AAC1D,SAAA;QACD,MAAM,CAAC,CAAC;AACX,KAAA;AACL;;;;"}
|
package/dist/custom-auth-path/custom_auth/get_account/auth_flow/CustomAuthAccountData.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomAuthAccountData.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/get_account/auth_flow/CustomAuthAccountData.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,8BAA8B,EAAE,MAAM,gDAAgD,CAAC;AAChG,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,2BAA2B,EAAE,MAAM,sDAAsD,CAAC;AAGnG,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EACH,WAAW,EAGX,MAAM,EACN,WAAW,EACd,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"CustomAuthAccountData.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/get_account/auth_flow/CustomAuthAccountData.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,8BAA8B,EAAE,MAAM,gDAAgD,CAAC;AAChG,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,2BAA2B,EAAE,MAAM,sDAAsD,CAAC;AAGnG,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EACH,WAAW,EAGX,MAAM,EACN,WAAW,EACd,MAAM,4BAA4B,CAAC;AAOpC,qBAAa,qBAAqB;IAE1B,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAJb,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,8BAA8B,EACtC,WAAW,EAAE,2BAA2B,EACxC,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,MAAM;IAa1C;;;;;OAKG;IACG,OAAO,IAAI,OAAO,CAAC,aAAa,CAAC;IA8BvC,UAAU,IAAI,WAAW;IAIzB;;;;;OAKG;IACH,UAAU,IAAI,MAAM,GAAG,SAAS;IAIhC;;;OAGG;IACH,SAAS,IAAI,eAAe,GAAG,SAAS;IAIxC;;;;;;OAMG;IACG,cAAc,CAChB,0BAA0B,EAAE,0BAA0B,GACvD,OAAO,CAAC,oBAAoB,CAAC;IA2DhC,OAAO,CAAC,6BAA6B;CAyBxC;AAED,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG;IACxC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;CAC5E,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/*! @azure/msal-browser v4.
|
|
1
|
+
/*! @azure/msal-browser v4.18.0 2025-07-30 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { SignOutResult } from './result/SignOutResult.mjs';
|
|
4
4
|
import { GetAccessTokenResult } from './result/GetAccessTokenResult.mjs';
|
|
5
5
|
import { NoCachedAccountFoundError } from '../../core/error/NoCachedAccountFoundError.mjs';
|
|
6
6
|
import { DefaultScopes } from '../../CustomAuthConstants.mjs';
|
|
7
7
|
import { AuthenticationScheme } from '@azure/msal-common/browser';
|
|
8
|
-
import { ensureArgumentIsNotEmptyString, ensureArgumentIsNotNullOrUndefined } from '../../core/utils/ArgumentValidator.mjs';
|
|
8
|
+
import { ensureArgumentIsNotEmptyString, ensureArgumentIsNotNullOrUndefined, ensureArgumentIsJSONString } from '../../core/utils/ArgumentValidator.mjs';
|
|
9
9
|
|
|
10
10
|
/*
|
|
11
11
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -78,6 +78,9 @@ class CustomAuthAccountData {
|
|
|
78
78
|
async getAccessToken(accessTokenRetrievalInputs) {
|
|
79
79
|
try {
|
|
80
80
|
ensureArgumentIsNotNullOrUndefined("accessTokenRetrievalInputs", accessTokenRetrievalInputs, this.correlationId);
|
|
81
|
+
if (accessTokenRetrievalInputs.claims) {
|
|
82
|
+
ensureArgumentIsJSONString("accessTokenRetrievalInputs.claims", accessTokenRetrievalInputs.claims, this.correlationId);
|
|
83
|
+
}
|
|
81
84
|
this.logger.verbose("Getting current account.", this.correlationId);
|
|
82
85
|
const currentAccount = this.cacheClient.getCurrentAccount(this.account.username);
|
|
83
86
|
if (!currentAccount) {
|
|
@@ -88,7 +91,7 @@ class CustomAuthAccountData {
|
|
|
88
91
|
accessTokenRetrievalInputs.scopes.length > 0
|
|
89
92
|
? accessTokenRetrievalInputs.scopes
|
|
90
93
|
: [...DefaultScopes];
|
|
91
|
-
const commonSilentFlowRequest = this.createCommonSilentFlowRequest(currentAccount, accessTokenRetrievalInputs.forceRefresh, newScopes);
|
|
94
|
+
const commonSilentFlowRequest = this.createCommonSilentFlowRequest(currentAccount, accessTokenRetrievalInputs.forceRefresh, newScopes, accessTokenRetrievalInputs.claims);
|
|
92
95
|
const result = await this.cacheClient.acquireToken(commonSilentFlowRequest);
|
|
93
96
|
this.logger.verbose("Successfully got access token from cache.", this.correlationId);
|
|
94
97
|
return new GetAccessTokenResult(result);
|
|
@@ -98,7 +101,7 @@ class CustomAuthAccountData {
|
|
|
98
101
|
return GetAccessTokenResult.createWithError(error);
|
|
99
102
|
}
|
|
100
103
|
}
|
|
101
|
-
createCommonSilentFlowRequest(accountInfo, forceRefresh = false, requestScopes) {
|
|
104
|
+
createCommonSilentFlowRequest(accountInfo, forceRefresh = false, requestScopes, claims) {
|
|
102
105
|
const silentRequest = {
|
|
103
106
|
authority: this.config.auth.authority,
|
|
104
107
|
correlationId: this.correlationId,
|
|
@@ -110,6 +113,7 @@ class CustomAuthAccountData {
|
|
|
110
113
|
accessToken: true,
|
|
111
114
|
refreshToken: true,
|
|
112
115
|
},
|
|
116
|
+
...(claims && { claims: claims }),
|
|
113
117
|
};
|
|
114
118
|
return {
|
|
115
119
|
...silentRequest,
|