@azure/msal-browser 5.10.1 → 5.12.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 +44 -2
- package/dist/app/PublicClientApplication.mjs.map +1 -1
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs +3 -3
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +18 -32
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs.map +1 -1
- package/dist/cache/AccountManager.mjs +1 -1
- package/dist/cache/AsyncMemoryStorage.mjs +1 -1
- package/dist/cache/BrowserCacheManager.mjs +12 -1
- package/dist/cache/BrowserCacheManager.mjs.map +1 -1
- package/dist/cache/CacheHelpers.mjs +1 -1
- package/dist/cache/CacheKeys.mjs +2 -3
- package/dist/cache/CacheKeys.mjs.map +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 +3 -2
- package/dist/config/Configuration.mjs.map +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +1 -1
- package/dist/controllers/StandardController.mjs +4 -4
- package/dist/controllers/StandardController.mjs.map +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/CustomAuthConstants.mjs +11 -2
- package/dist/custom_auth/CustomAuthConstants.mjs.map +1 -1
- package/dist/custom_auth/CustomAuthPublicClientApplication.mjs +1 -1
- package/dist/custom_auth/controller/CustomAuthStandardController.mjs +2 -2
- package/dist/custom_auth/controller/CustomAuthStandardController.mjs.map +1 -1
- package/dist/custom_auth/core/CustomAuthAuthority.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +1 -1
- package/dist/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
- package/dist/custom_auth/core/error/CustomAuthError.mjs +1 -1
- package/dist/custom_auth/core/error/HttpError.mjs +1 -1
- package/dist/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
- package/dist/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
- package/dist/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
- package/dist/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
- package/dist/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
- package/dist/custom_auth/core/error/ParsedUrlError.mjs +1 -1
- package/dist/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/error/UnexpectedError.mjs +1 -1
- package/dist/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
- package/dist/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
- package/dist/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/jit/JitClient.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/mfa/MfaClient.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +21 -3
- package/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +6 -6
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +3 -3
- package/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +3 -3
- package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +3 -3
- package/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
- package/dist/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
- package/dist/custom_auth/core/telemetry/PublicApiId.mjs +1 -1
- package/dist/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
- package/dist/custom_auth/core/utils/CustomHeaderUtils.mjs +56 -0
- package/dist/custom_auth/core/utils/CustomHeaderUtils.mjs.map +1 -0
- package/dist/custom_auth/core/utils/UrlUtils.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
- package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
- package/dist/custom_auth/index.mjs +1 -1
- package/dist/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
- package/dist/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
- package/dist/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
- package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
- package/dist/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
- package/dist/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
- package/dist/encode/Base64Decode.mjs +1 -1
- package/dist/encode/Base64Encode.mjs +1 -1
- package/dist/error/BrowserAuthError.mjs +1 -1
- package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
- package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
- package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
- package/dist/error/NativeAuthError.mjs +4 -4
- package/dist/error/NativeAuthError.mjs.map +1 -1
- package/dist/error/NativeAuthErrorCodes.mjs +1 -1
- package/dist/error/NestedAppAuthError.mjs +1 -1
- package/dist/event/EventHandler.mjs +1 -1
- package/dist/event/EventMessage.mjs +1 -1
- package/dist/event/EventType.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs +4 -3
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/PopupClient.mjs +27 -7
- package/dist/interaction_client/PopupClient.mjs.map +1 -1
- package/dist/interaction_client/RedirectClient.mjs +6 -1
- package/dist/interaction_client/RedirectClient.mjs.map +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
- package/dist/interaction_client/SilentCacheClient.mjs +1 -1
- package/dist/interaction_client/SilentIframeClient.mjs +11 -4
- package/dist/interaction_client/SilentIframeClient.mjs.map +1 -1
- package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
- package/dist/interaction_client/StandardInteractionClient.mjs +6 -4
- package/dist/interaction_client/StandardInteractionClient.mjs.map +1 -1
- package/dist/interaction_handler/InteractionHandler.mjs +1 -1
- package/dist/interaction_handler/SilentHandler.mjs +2 -1
- package/dist/interaction_handler/SilentHandler.mjs.map +1 -1
- package/dist/log-strings-mapping.json +1203 -1187
- 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 +10 -2
- package/dist/operatingcontext/BaseOperatingContext.mjs.map +1 -1
- package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
- package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/protocol/Authorize.mjs +1 -1
- package/dist/redirect_bridge/index.mjs +4 -5
- package/dist/redirect_bridge/index.mjs.map +1 -1
- package/dist/request/RequestHelpers.mjs +1 -1
- package/dist/response/ResponseHandler.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceEvents.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
- package/dist/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
- package/dist/utils/BrowserConstants.mjs +1 -1
- package/dist/utils/BrowserProtocolUtils.mjs +1 -1
- package/dist/utils/BrowserUtils.mjs +15 -5
- package/dist/utils/BrowserUtils.mjs.map +1 -1
- package/dist/utils/Helpers.mjs +1 -1
- package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
- package/lib/custom-auth-path/log-strings-mapping.json +33 -17
- package/lib/custom-auth-path/msal-custom-auth.cjs +342 -169
- package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
- package/lib/custom-auth-path/msal-custom-auth.js +342 -169
- package/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
- package/lib/log-strings-mapping.json +13 -9
- package/lib/msal-browser.cjs +275 -167
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +275 -167
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +2 -2
- package/lib/redirect-bridge/msal-redirect-bridge.cjs +59 -50
- package/lib/redirect-bridge/msal-redirect-bridge.cjs.map +1 -1
- package/lib/redirect-bridge/msal-redirect-bridge.js +59 -50
- package/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -1
- package/lib/redirect-bridge/msal-redirect-bridge.min.js +2 -2
- package/package.json +2 -2
- package/src/app/PublicClientApplication.ts +85 -1
- package/src/broker/nativeBroker/NativeStatusCodes.ts +1 -1
- package/src/broker/nativeBroker/PlatformAuthProvider.ts +34 -30
- package/src/cache/BrowserCacheManager.ts +17 -0
- package/src/config/Configuration.ts +5 -0
- package/src/controllers/StandardController.ts +6 -3
- package/src/custom_auth/CustomAuthConstants.ts +10 -0
- package/src/custom_auth/configuration/CustomAuthConfiguration.ts +2 -0
- package/src/custom_auth/configuration/CustomAuthRequestInterceptor.ts +54 -0
- package/src/custom_auth/controller/CustomAuthStandardController.ts +3 -1
- package/src/custom_auth/core/network_client/custom_auth_api/BaseApiClient.ts +41 -2
- package/src/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.ts +17 -5
- package/src/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.ts +8 -2
- package/src/custom_auth/core/network_client/custom_auth_api/SignInApiClient.ts +8 -3
- package/src/custom_auth/core/network_client/custom_auth_api/SignupApiClient.ts +8 -2
- package/src/custom_auth/core/utils/CustomHeaderUtils.ts +75 -0
- package/src/custom_auth/index.ts +4 -0
- package/src/error/NativeAuthError.ts +2 -2
- package/src/interaction_client/PlatformAuthInteractionClient.ts +5 -1
- package/src/interaction_client/PopupClient.ts +65 -27
- package/src/interaction_client/RedirectClient.ts +5 -0
- package/src/interaction_client/SilentIframeClient.ts +49 -19
- package/src/interaction_client/StandardInteractionClient.ts +11 -5
- package/src/interaction_handler/SilentHandler.ts +1 -0
- package/src/operatingcontext/BaseOperatingContext.ts +15 -1
- package/src/packageMetadata.ts +1 -1
- package/src/redirect_bridge/index.ts +3 -7
- package/src/utils/BrowserUtils.ts +28 -7
- package/types/app/PublicClientApplication.d.ts +37 -1
- package/types/app/PublicClientApplication.d.ts.map +1 -1
- package/types/broker/nativeBroker/NativeStatusCodes.d.ts +1 -1
- package/types/broker/nativeBroker/PlatformAuthProvider.d.ts +7 -12
- package/types/broker/nativeBroker/PlatformAuthProvider.d.ts.map +1 -1
- package/types/cache/BrowserCacheManager.d.ts.map +1 -1
- package/types/config/Configuration.d.ts +4 -0
- package/types/config/Configuration.d.ts.map +1 -1
- package/types/controllers/StandardController.d.ts.map +1 -1
- package/types/custom_auth/CustomAuthConstants.d.ts +5 -1
- package/types/custom_auth/CustomAuthConstants.d.ts.map +1 -1
- package/types/custom_auth/configuration/CustomAuthConfiguration.d.ts +2 -0
- package/types/custom_auth/configuration/CustomAuthConfiguration.d.ts.map +1 -1
- package/types/custom_auth/configuration/CustomAuthRequestInterceptor.d.ts +42 -0
- package/types/custom_auth/configuration/CustomAuthRequestInterceptor.d.ts.map +1 -0
- package/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/BaseApiClient.d.ts +6 -2
- package/types/custom_auth/core/network_client/custom_auth_api/BaseApiClient.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts +3 -1
- package/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.d.ts +3 -1
- package/types/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts +3 -1
- package/types/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/SignupApiClient.d.ts +3 -1
- package/types/custom_auth/core/network_client/custom_auth_api/SignupApiClient.d.ts.map +1 -1
- package/types/custom_auth/core/utils/CustomHeaderUtils.d.ts +21 -0
- package/types/custom_auth/core/utils/CustomHeaderUtils.d.ts.map +1 -0
- package/types/custom_auth/index.d.ts +1 -0
- package/types/custom_auth/index.d.ts.map +1 -1
- package/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/types/interaction_client/PopupClient.d.ts +11 -1
- package/types/interaction_client/PopupClient.d.ts.map +1 -1
- package/types/interaction_client/RedirectClient.d.ts.map +1 -1
- package/types/interaction_client/SilentIframeClient.d.ts +20 -1
- package/types/interaction_client/SilentIframeClient.d.ts.map +1 -1
- package/types/interaction_client/StandardInteractionClient.d.ts.map +1 -1
- package/types/interaction_handler/SilentHandler.d.ts.map +1 -1
- package/types/operatingcontext/BaseOperatingContext.d.ts +8 -1
- package/types/operatingcontext/BaseOperatingContext.d.ts.map +1 -1
- package/types/packageMetadata.d.ts +1 -1
- package/types/redirect_bridge/index.d.ts.map +1 -1
- package/types/utils/BrowserUtils.d.ts +17 -2
- package/types/utils/BrowserUtils.d.ts.map +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.12.0 2026-06-05 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { CustomAuthInteractionClientBase } from '../CustomAuthInteractionClientBase.mjs';
|
|
4
4
|
import { createJitVerificationRequiredResult, createJitCompletedResult } from './result/JitActionResult.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.12.0 2026-06-05 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { CustomAuthInteractionClientBase } from '../CustomAuthInteractionClientBase.mjs';
|
|
4
4
|
import { createMfaVerificationRequiredResult, createMfaCompletedResult } from './result/MfaActionResult.mjs';
|
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.12.0 2026-06-05 */
|
|
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';
|
|
5
5
|
import { parseUrl, buildUrl } from '../../utils/UrlUtils.mjs';
|
|
6
6
|
import { CustomAuthApiError, RedirectError } from '../../error/CustomAuthApiError.mjs';
|
|
7
7
|
import { AADServerParamKeys } from '@azure/msal-common/browser';
|
|
8
|
+
import { filterCustomHeaders } from '../../utils/CustomHeaderUtils.mjs';
|
|
8
9
|
|
|
9
10
|
/*
|
|
10
11
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
11
12
|
* Licensed under the MIT License.
|
|
12
13
|
*/
|
|
13
14
|
class BaseApiClient {
|
|
14
|
-
constructor(baseUrl, clientId, httpClient, customAuthApiQueryParams) {
|
|
15
|
+
constructor(baseUrl, clientId, httpClient, customAuthApiQueryParams, requestInterceptor, logger) {
|
|
15
16
|
this.clientId = clientId;
|
|
16
17
|
this.httpClient = httpClient;
|
|
17
18
|
this.customAuthApiQueryParams = customAuthApiQueryParams;
|
|
19
|
+
this.requestInterceptor = requestInterceptor;
|
|
20
|
+
this.logger = logger;
|
|
18
21
|
this.baseRequestUrl = parseUrl(!baseUrl.endsWith("/") ? `${baseUrl}/` : baseUrl);
|
|
19
22
|
}
|
|
20
23
|
async request(endpoint, data, telemetryManager, correlationId) {
|
|
@@ -22,8 +25,10 @@ class BaseApiClient {
|
|
|
22
25
|
client_id: this.clientId,
|
|
23
26
|
...data,
|
|
24
27
|
});
|
|
25
|
-
const
|
|
28
|
+
const commonHeaders = this.getCommonHeaders(correlationId, telemetryManager);
|
|
26
29
|
const url = buildUrl(this.baseRequestUrl.href, endpoint, this.customAuthApiQueryParams);
|
|
30
|
+
const additionalHeaders = await this.getAdditionalHeaders(url, correlationId);
|
|
31
|
+
const headers = { ...commonHeaders, ...additionalHeaders };
|
|
27
32
|
let response;
|
|
28
33
|
try {
|
|
29
34
|
response = await this.httpClient.post(url, formData, headers);
|
|
@@ -81,6 +86,19 @@ class BaseApiClient {
|
|
|
81
86
|
: responseError.invalid_attributes ?? [];
|
|
82
87
|
throw new CustomAuthApiError(responseError.error, responseError.error_description, responseError.correlation_id, responseError.error_codes, responseError.suberror, attributes, responseError.continuation_token, responseError.trace_id, responseError.timestamp);
|
|
83
88
|
}
|
|
89
|
+
async getAdditionalHeaders(url, correlationId) {
|
|
90
|
+
if (!this.requestInterceptor) {
|
|
91
|
+
return {};
|
|
92
|
+
}
|
|
93
|
+
try {
|
|
94
|
+
const result = await Promise.resolve(this.requestInterceptor.addAdditionalHeaderFields(url));
|
|
95
|
+
return filterCustomHeaders(result, this.logger, correlationId);
|
|
96
|
+
}
|
|
97
|
+
catch (e) {
|
|
98
|
+
this.logger?.warningPii("1ptwx4", correlationId);
|
|
99
|
+
return {};
|
|
100
|
+
}
|
|
101
|
+
}
|
|
84
102
|
}
|
|
85
103
|
|
|
86
104
|
export { BaseApiClient };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseApiClient.mjs","sources":["../../../../../src/custom_auth/core/network_client/custom_auth_api/BaseApiClient.ts"],"sourcesContent":[null],"names":["CustomAuthApiErrorCode.HTTP_REQUEST_FAILED","CustomAuthApiErrorCode.CONTINUATION_TOKEN_MISSING","CustomAuthApiErrorCode.INVALID_RESPONSE_BODY"],"mappings":"
|
|
1
|
+
{"version":3,"file":"BaseApiClient.mjs","sources":["../../../../../src/custom_auth/core/network_client/custom_auth_api/BaseApiClient.ts"],"sourcesContent":[null],"names":["CustomAuthApiErrorCode.HTTP_REQUEST_FAILED","CustomAuthApiErrorCode.CONTINUATION_TOKEN_MISSING","CustomAuthApiErrorCode.INVALID_RESPONSE_BODY"],"mappings":";;;;;;;;;AAAA;;;AAGG;MAuBmB,aAAa,CAAA;IAG/B,WACI,CAAA,OAAe,EACE,QAAgB,EACzB,UAAuB,EACvB,wBAAiD,EACjD,kBAAiD,EACjD,MAAe,EAAA;QAJN,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAQ;QACzB,IAAU,CAAA,UAAA,GAAV,UAAU,CAAa;QACvB,IAAwB,CAAA,wBAAA,GAAxB,wBAAwB,CAAyB;QACjD,IAAkB,CAAA,kBAAA,GAAlB,kBAAkB,CAA+B;QACjD,IAAM,CAAA,MAAA,GAAN,MAAM,CAAS;QAEvB,IAAI,CAAC,cAAc,GAAG,QAAQ,CAC1B,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAA,EAAG,OAAO,CAAA,CAAA,CAAG,GAAG,OAAO,CACnD,CAAC;KACL;IAES,MAAM,OAAO,CACnB,QAAgB,EAChB,IAAsC,EACtC,gBA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*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.12.0 2026-06-05 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { ResetPasswordApiClient } from './ResetPasswordApiClient.mjs';
|
|
4
4
|
import { SignupApiClient } from './SignupApiClient.mjs';
|
|
@@ -10,11 +10,11 @@ import { RegisterApiClient } from './RegisterApiClient.mjs';
|
|
|
10
10
|
* Licensed under the MIT License.
|
|
11
11
|
*/
|
|
12
12
|
class CustomAuthApiClient {
|
|
13
|
-
constructor(customAuthApiBaseUrl, clientId, httpClient, capabilities, customAuthApiQueryParams) {
|
|
14
|
-
this.signInApi = new SignInApiClient(customAuthApiBaseUrl, clientId, httpClient, capabilities, customAuthApiQueryParams);
|
|
15
|
-
this.signUpApi = new SignupApiClient(customAuthApiBaseUrl, clientId, httpClient, capabilities, customAuthApiQueryParams);
|
|
16
|
-
this.resetPasswordApi = new ResetPasswordApiClient(customAuthApiBaseUrl, clientId, httpClient, capabilities, customAuthApiQueryParams);
|
|
17
|
-
this.registerApi = new RegisterApiClient(customAuthApiBaseUrl, clientId, httpClient, customAuthApiQueryParams);
|
|
13
|
+
constructor(customAuthApiBaseUrl, clientId, httpClient, capabilities, customAuthApiQueryParams, requestInterceptor, logger) {
|
|
14
|
+
this.signInApi = new SignInApiClient(customAuthApiBaseUrl, clientId, httpClient, capabilities, customAuthApiQueryParams, requestInterceptor, logger);
|
|
15
|
+
this.signUpApi = new SignupApiClient(customAuthApiBaseUrl, clientId, httpClient, capabilities, customAuthApiQueryParams, requestInterceptor, logger);
|
|
16
|
+
this.resetPasswordApi = new ResetPasswordApiClient(customAuthApiBaseUrl, clientId, httpClient, capabilities, customAuthApiQueryParams, requestInterceptor, logger);
|
|
17
|
+
this.registerApi = new RegisterApiClient(customAuthApiBaseUrl, clientId, httpClient, customAuthApiQueryParams, requestInterceptor, logger);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomAuthApiClient.mjs","sources":["../../../../../src/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAAA;;;AAGG;
|
|
1
|
+
{"version":3,"file":"CustomAuthApiClient.mjs","sources":["../../../../../src/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAAA;;;AAGG;MAWU,mBAAmB,CAAA;AAM5B,IAAA,WAAA,CACI,oBAA4B,EAC5B,QAAgB,EAChB,UAAuB,EACvB,YAAqB,EACrB,wBAAiD,EACjD,kBAAiD,EACjD,MAAe,EAAA;QAEf,IAAI,CAAC,SAAS,GAAG,IAAI,eAAe,CAChC,oBAAoB,EACpB,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,wBAAwB,EACxB,kBAAkB,EAClB,MAAM,CACT,CAAC;QACF,IAAI,CAAC,SAAS,GAAG,IAAI,eAAe,CAChC,oBAAoB,EACpB,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,wBAAwB,EACxB,kBAAkB,EAClB,MAAM,CACT,CAAC;QACF,IAAI,CAAC,gBAAgB,GAAG,IAAI,sBAAsB,CAC9C,oBAAoB,EACpB,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,wBAAwB,EACxB,kBAAkB,EAClB,MAAM,CACT,CAAC;AACF,QAAA,IAAI,CAAC,WAAW,GAAG,IAAI,iBAAiB,CACpC,oBAAoB,EACpB,QAAQ,EACR,UAAU,EACV,wBAAwB,EACxB,kBAAkB,EAClB,MAAM,CACT,CAAC;KACL;AACJ;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.12.0 2026-06-05 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { BaseApiClient } from './BaseApiClient.mjs';
|
|
4
4
|
import { REGISTER_INTROSPECT, REGISTER_CHALLENGE, REGISTER_CONTINUE } from './CustomAuthApiEndpoint.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.12.0 2026-06-05 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { GrantType, ResetPasswordPollStatus } from '../../../CustomAuthConstants.mjs';
|
|
4
4
|
import { CustomAuthApiError } from '../../error/CustomAuthApiError.mjs';
|
|
@@ -11,8 +11,8 @@ import { INVALID_POLL_STATUS } from './types/ApiErrorCodes.mjs';
|
|
|
11
11
|
* Licensed under the MIT License.
|
|
12
12
|
*/
|
|
13
13
|
class ResetPasswordApiClient extends BaseApiClient {
|
|
14
|
-
constructor(customAuthApiBaseUrl, clientId, httpClient, capabilities, customAuthApiQueryParams) {
|
|
15
|
-
super(customAuthApiBaseUrl, clientId, httpClient, customAuthApiQueryParams);
|
|
14
|
+
constructor(customAuthApiBaseUrl, clientId, httpClient, capabilities, customAuthApiQueryParams, requestInterceptor, logger) {
|
|
15
|
+
super(customAuthApiBaseUrl, clientId, httpClient, customAuthApiQueryParams, requestInterceptor, logger);
|
|
16
16
|
this.capabilities = capabilities;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResetPasswordApiClient.mjs","sources":["../../../../../src/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.ts"],"sourcesContent":[null],"names":["CustomAuthApiEndpoint.RESET_PWD_START","CustomAuthApiEndpoint.RESET_PWD_CHALLENGE","CustomAuthApiEndpoint.RESET_PWD_CONTINUE","CustomAuthApiEndpoint.RESET_PWD_SUBMIT","CustomAuthApiEndpoint.RESET_PWD_POLL","CustomAuthApiErrorCode.INVALID_POLL_STATUS"],"mappings":";;;;;;;;AAAA;;;AAGG;
|
|
1
|
+
{"version":3,"file":"ResetPasswordApiClient.mjs","sources":["../../../../../src/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.ts"],"sourcesContent":[null],"names":["CustomAuthApiEndpoint.RESET_PWD_START","CustomAuthApiEndpoint.RESET_PWD_CHALLENGE","CustomAuthApiEndpoint.RESET_PWD_CONTINUE","CustomAuthApiEndpoint.RESET_PWD_SUBMIT","CustomAuthApiEndpoint.RESET_PWD_POLL","CustomAuthApiErrorCode.INVALID_POLL_STATUS"],"mappings":";;;;;;;;AAAA;;;AAGG;AA4BG,MAAO,sBAAuB,SAAQ,aAAa,CAAA;AAGrD,IAAA,WAAA,CACI,oBAA4B,EAC5B,QAAgB,EAChB,UAAuB,EACvB,YAAqB,EACrB,wBAAiD,EACjD,kBAAiD,EACjD,MAAe,EAAA;AAEf,QAAA,KAAK,CACD,oBAAoB,EACpB,QAAQ,EACR,UAAU,EACV,wBAAwB,EACxB,kBAAkB,EAClB,MAAM,CACT,CAAC;AACF,QAAA,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;KACpC;AAED;;AAEG;IACH,MAAM,KAAK,CACP,MAAiC,EAAA;QAEjC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAC7BA,eAAqC,EACrC;YACI,cAAc,EAAE,MAAM,CAAC,cAAc;YACrC,QAAQ,EAAE,MAAM,CAAC,QAAQ;AACzB,YAAA,IAAI,IAAI,CAAC,YAAY,IAAI;gBACrB,YAAY,EAAE,IAAI,CAAC,YAAY;aAClC,CAAC;SACL,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;;;AAGG;IACH,MAAM,gBAAgB,CAClB,MAAqC,EAAA;QAErC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAC7BC,mBAAyC,EACzC;YACI,cAAc,EAAE,MAAM,CAAC,cAAc;YACrC,kBAAkB,EAAE,MAAM,CAAC,kBAAkB;SAChD,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C,cAAoC,EACpC;YACI,kBAAkB,EAAE,MAAM,CAAC,kBAAkB;SAChD,EACD,MAAM,CAAC,gBAAgB,EACvB,MAAM,CAAC,aAAa,CACvB,CAAC;QAEF,IAAI,CAAC,uBAAuB,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,aAAa,CAAC,CAAC;AAElE,QAAA,OAAO,MAAM,CAAC;KACjB;IAES,uBAAuB,CAC7B,MAAc,EACd,aAAqB,EAAA;AAErB,QAAA,IACI,MAAM,KAAK,uBAAuB,CAAC,MAAM;YACzC,MAAM,KAAK,uBAAuB,CAAC,WAAW;YAC9C,MAAM,KAAK,uBAAuB,CAAC,SAAS;AAC5C,YAAA,MAAM,KAAK,uBAAuB,CAAC,WAAW,EAChD;AACE,YAAA,MAAM,IAAI,kBAAkB,CACxBC,mBAA0C,EAC1C,CAAA,iBAAA,EAAoB,MAAM,CAAA,+BAAA,CAAiC,EAC3D,aAAa,CAChB,CAAC;AACL,SAAA;KACJ;AACJ;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.12.0 2026-06-05 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { GrantType } from '../../../CustomAuthConstants.mjs';
|
|
4
4
|
import { CustomAuthApiError } from '../../error/CustomAuthApiError.mjs';
|
|
@@ -11,8 +11,8 @@ import { ACCESS_TOKEN_MISSING, ID_TOKEN_MISSING, REFRESH_TOKEN_MISSING, INVALID_
|
|
|
11
11
|
* Licensed under the MIT License.
|
|
12
12
|
*/
|
|
13
13
|
class SignInApiClient extends BaseApiClient {
|
|
14
|
-
constructor(customAuthApiBaseUrl, clientId, httpClient, capabilities, customAuthApiQueryParams) {
|
|
15
|
-
super(customAuthApiBaseUrl, clientId, httpClient, customAuthApiQueryParams);
|
|
14
|
+
constructor(customAuthApiBaseUrl, clientId, httpClient, capabilities, customAuthApiQueryParams, requestInterceptor, logger) {
|
|
15
|
+
super(customAuthApiBaseUrl, clientId, httpClient, customAuthApiQueryParams, requestInterceptor, logger);
|
|
16
16
|
this.capabilities = capabilities;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
@@ -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_INTROSPECT","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;
|
|
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_INTROSPECT","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;AAyBG,MAAO,eAAgB,SAAQ,aAAa,CAAA;AAG9C,IAAA,WAAA,CACI,oBAA4B,EAC5B,QAAgB,EAChB,UAAuB,EACvB,YAAqB,EACrB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,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;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.12.0 2026-06-05 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { GrantType } from '../../../CustomAuthConstants.mjs';
|
|
4
4
|
import { BaseApiClient } from './BaseApiClient.mjs';
|
|
@@ -9,8 +9,8 @@ import { SIGNUP_START, SIGNUP_CHALLENGE, SIGNUP_CONTINUE } from './CustomAuthApi
|
|
|
9
9
|
* Licensed under the MIT License.
|
|
10
10
|
*/
|
|
11
11
|
class SignupApiClient extends BaseApiClient {
|
|
12
|
-
constructor(customAuthApiBaseUrl, clientId, httpClient, capabilities, customAuthApiQueryParams) {
|
|
13
|
-
super(customAuthApiBaseUrl, clientId, httpClient, customAuthApiQueryParams);
|
|
12
|
+
constructor(customAuthApiBaseUrl, clientId, httpClient, capabilities, customAuthApiQueryParams, requestInterceptor, logger) {
|
|
13
|
+
super(customAuthApiBaseUrl, clientId, httpClient, customAuthApiQueryParams, requestInterceptor, logger);
|
|
14
14
|
this.capabilities = capabilities;
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignupApiClient.mjs","sources":["../../../../../src/custom_auth/core/network_client/custom_auth_api/SignupApiClient.ts"],"sourcesContent":[null],"names":["CustomAuthApiEndpoint.SIGNUP_START","CustomAuthApiEndpoint.SIGNUP_CHALLENGE","CustomAuthApiEndpoint.SIGNUP_CONTINUE"],"mappings":";;;;;;AAAA;;;AAGG;
|
|
1
|
+
{"version":3,"file":"SignupApiClient.mjs","sources":["../../../../../src/custom_auth/core/network_client/custom_auth_api/SignupApiClient.ts"],"sourcesContent":[null],"names":["CustomAuthApiEndpoint.SIGNUP_START","CustomAuthApiEndpoint.SIGNUP_CHALLENGE","CustomAuthApiEndpoint.SIGNUP_CONTINUE"],"mappings":";;;;;;AAAA;;;AAGG;AAqBG,MAAO,eAAgB,SAAQ,aAAa,CAAA;AAG9C,IAAA,WAAA,CACI,oBAA4B,EAC5B,QAAgB,EAChB,UAAuB,EACvB,YAAqB,EACrB,wBAAiD,EACjD,kBAAiD,EACjD,MAAe,EAAA;AAEf,QAAA,KAAK,CACD,oBAAoB,EACpB,QAAQ,EACR,UAAU,EACV,wBAAwB,EACxB,kBAAkB,EAClB,MAAM,CACT,CAAC;AACF,QAAA,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;KACpC;AAED;;AAEG;IACH,MAAM,KAAK,CAAC,MAA0B,EAAA;QAClC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAC7BA,YAAkC,EAClC;YACI,QAAQ,EAAE,MAAM,CAAC,QAAQ;AACzB,YAAA,IAAI,MAAM,CAAC,QAAQ,IAAI,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,CAAC;AACrD,YAAA,IAAI,MAAM,CAAC,UAAU,IAAI;gBACrB,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,UAAU,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I,CAAC,OAAO,CAC7BA,eAAqC,EACrC;YACI,kBAAkB,EAAE,MAAM,CAAC,kBAAkB;YAC7C,UAAU,EAAE,SAAS,CAAC,QAAQ;YAC9B,QAAQ,EAAE,MAAM,CAAC,QAAQ;SAC5B,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;IAED,MAAM,sBAAsB,CACxB,MAA2C,EAAA;QAE3C,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAC7BA,eAAqC,EACrC;YACI,kBAAkB,EAAE,MAAM,CAAC,kBAAkB;YAC7C,UAAU,EAAE,SAAS,CAAC,UAAU;YAChC,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,UAAU,CAAC;SAChD,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;AACJ;;;;"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/*! @azure/msal-browser v5.12.0 2026-06-05 */
|
|
2
|
+
'use strict';
|
|
3
|
+
import { CustomHeaderConstants } from '../../CustomAuthConstants.mjs';
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
|
+
* Licensed under the MIT License.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Filters the headers returned by a {@link CustomAuthRequestInterceptor},
|
|
11
|
+
* keeping only those that conform to the custom-auth header naming rules.
|
|
12
|
+
*
|
|
13
|
+
* Rules (mirrors the iOS / Android native auth implementations):
|
|
14
|
+
* - Header names must start with `x-` (case-insensitive); others are dropped.
|
|
15
|
+
* - Header names that start with any reserved prefix (`x-client-`, `x-ms-`,
|
|
16
|
+
* `x-broker-`, `x-app-`) are dropped.
|
|
17
|
+
* - Headers with empty/whitespace-only names or null/undefined values are dropped.
|
|
18
|
+
*
|
|
19
|
+
* Dropped headers are logged as warnings (PII-safe) when a logger is provided.
|
|
20
|
+
*
|
|
21
|
+
* @param headers - Raw headers returned by the interceptor.
|
|
22
|
+
* @param logger - Optional logger used to emit warnings for dropped headers.
|
|
23
|
+
* @param correlationId - Optional correlation id forwarded to the logger.
|
|
24
|
+
* @returns A new record containing only the headers that pass the filter,
|
|
25
|
+
* preserving the original casing of header names.
|
|
26
|
+
*/
|
|
27
|
+
function filterCustomHeaders(headers, logger, correlationId) {
|
|
28
|
+
const filtered = {};
|
|
29
|
+
if (!headers) {
|
|
30
|
+
return filtered;
|
|
31
|
+
}
|
|
32
|
+
for (const [name, value] of Object.entries(headers)) {
|
|
33
|
+
if (!name || value === undefined || value === null) {
|
|
34
|
+
continue;
|
|
35
|
+
}
|
|
36
|
+
const trimmedName = name.trim();
|
|
37
|
+
if (!trimmedName) {
|
|
38
|
+
continue;
|
|
39
|
+
}
|
|
40
|
+
const lowerName = trimmedName.toLowerCase();
|
|
41
|
+
if (!lowerName.startsWith(CustomHeaderConstants.REQUIRED_PREFIX)) {
|
|
42
|
+
logger?.warningPii("0vzpop", correlationId ?? "");
|
|
43
|
+
continue;
|
|
44
|
+
}
|
|
45
|
+
const reservedPrefix = CustomHeaderConstants.RESERVED_PREFIXES.find((prefix) => lowerName.startsWith(prefix));
|
|
46
|
+
if (reservedPrefix) {
|
|
47
|
+
logger?.warningPii("1m3lhk", correlationId ?? "");
|
|
48
|
+
continue;
|
|
49
|
+
}
|
|
50
|
+
filtered[trimmedName] = value;
|
|
51
|
+
}
|
|
52
|
+
return filtered;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export { filterCustomHeaders };
|
|
56
|
+
//# sourceMappingURL=CustomHeaderUtils.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomHeaderUtils.mjs","sources":["../../../../src/custom_auth/core/utils/CustomHeaderUtils.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;;;AAGG;AAKH;;;;;;;;;;;;;;;;;AAiBG;SACa,mBAAmB,CAC/B,OAAkD,EAClD,MAAe,EACf,aAAsB,EAAA;IAEtB,MAAM,QAAQ,GAA2B,EAAE,CAAC;IAE5C,IAAI,CAAC,OAAO,EAAE;AACV,QAAA,OAAO,QAAQ,CAAC;AACnB,KAAA;AAED,IAAA,KAAK,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;QACjD,IAAI,CAAC,IAAI,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,EAAE;YAChD,SAAS;AACZ,SAAA;AAED,QAAA,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;QAEhC,IAAI,CAAC,WAAW,EAAE;YACd,SAAS;AACZ,SAAA;AAED,QAAA,MAAM,SAAS,GAAG,WAAW,CAAC,WAAW,EAAE,CAAC;QAE5C,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,qBAAqB,CAAC,eAAe,CAAC,EAAE;AAC9D,YAAA,MAAM,EAAE,UAAU,CACd,QAAA,EAAA,aAAA,IAAA;YAGJ,SAAS;AACZ,SAAA;QAED,MAAM,cAAc,GAAG,qBAAqB,CAAC,iBAAiB,CAAC,IAAI,CAC/D,CAAC,MAAM,KAAK,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC,CAC3C,CAAC;AAEF,QAAA,IAAI,cAAc,EAAE;AAChB,YAAA,MAAM,EAAE,UAAU,CACd,QAAA,EAAA,aAAA,IAAA,EAAuC,CAAA,CAAA;YAG3C,SAAS;AACZ,SAAA;AAED,QAAA,QAAQ,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC;AACjC,KAAA;AAED,IAAA,OAAO,QAAQ,CAAC;AACpB;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.12.0 2026-06-05 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { AuthFlowResultBase } from '../../../core/auth_flow/AuthFlowResultBase.mjs';
|
|
4
4
|
import { GetCurrentAccountAccessTokenError } from '../error_type/GetAccountError.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.12.0 2026-06-05 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { AuthFlowStateBase } from '../../../core/auth_flow/AuthFlowState.mjs';
|
|
4
4
|
import { GET_ACCESS_TOKEN_COMPLETED_STATE_TYPE, GET_ACCESS_TOKEN_FAILED_STATE_TYPE } from '../../../core/auth_flow/AuthFlowStateTypes.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.12.0 2026-06-05 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { AuthFlowStateBase } from '../../../core/auth_flow/AuthFlowState.mjs';
|
|
4
4
|
import { GET_ACCOUNT_COMPLETED_STATE_TYPE, GET_ACCOUNT_FAILED_STATE_TYPE } from '../../../core/auth_flow/AuthFlowStateTypes.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.12.0 2026-06-05 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { AuthFlowStateBase } from '../../../core/auth_flow/AuthFlowState.mjs';
|
|
4
4
|
import { SIGN_OUT_COMPLETED_STATE_TYPE, SIGN_OUT_FAILED_STATE_TYPE } from '../../../core/auth_flow/AuthFlowStateTypes.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.12.0 2026-06-05 */
|
|
2
2
|
'use strict';
|
|
3
3
|
export { CustomAuthPublicClientApplication } from './CustomAuthPublicClientApplication.mjs';
|
|
4
4
|
export { CustomAuthAccountData } from './get_account/auth_flow/CustomAuthAccountData.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.12.0 2026-06-05 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { AuthActionErrorBase } from '../../../core/auth_flow/AuthFlowErrorBase.mjs';
|
|
4
4
|
import { CustomAuthApiError } from '../../../core/error/CustomAuthApiError.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.12.0 2026-06-05 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { AuthFlowResultBase } from '../../../core/auth_flow/AuthFlowResultBase.mjs';
|
|
4
4
|
import { ResetPasswordResendCodeError } from '../error_type/ResetPasswordError.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.12.0 2026-06-05 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { AuthFlowResultBase } from '../../../core/auth_flow/AuthFlowResultBase.mjs';
|
|
4
4
|
import { ResetPasswordError } from '../error_type/ResetPasswordError.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.12.0 2026-06-05 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { AuthFlowResultBase } from '../../../core/auth_flow/AuthFlowResultBase.mjs';
|
|
4
4
|
import { ResetPasswordSubmitCodeError } from '../error_type/ResetPasswordError.mjs';
|