@azure/msal-browser 4.27.0 → 5.0.0-beta.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/README.md +24 -32
- package/dist/app/IPublicClientApplication.d.ts +3 -10
- package/dist/app/IPublicClientApplication.d.ts.map +1 -1
- package/dist/app/IPublicClientApplication.mjs +1 -22
- package/dist/app/IPublicClientApplication.mjs.map +1 -1
- package/dist/app/PublicClientApplication.d.ts +6 -56
- package/dist/app/PublicClientApplication.d.ts.map +1 -1
- package/dist/app/PublicClientApplication.mjs +15 -80
- package/dist/app/PublicClientApplication.mjs.map +1 -1
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs +3 -2
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.d.ts.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +13 -15
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.d.ts +1 -1
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.d.ts.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +28 -30
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthProvider.d.ts +12 -4
- package/dist/broker/nativeBroker/PlatformAuthProvider.d.ts.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +43 -28
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs.map +1 -1
- package/dist/cache/AccountManager.d.ts +0 -25
- package/dist/cache/AccountManager.d.ts.map +1 -1
- package/dist/cache/AccountManager.mjs +10 -84
- package/dist/cache/AccountManager.mjs.map +1 -1
- package/dist/cache/AsyncMemoryStorage.d.ts +14 -7
- package/dist/cache/AsyncMemoryStorage.d.ts.map +1 -1
- package/dist/cache/AsyncMemoryStorage.mjs +30 -23
- package/dist/cache/AsyncMemoryStorage.mjs.map +1 -1
- package/dist/cache/BrowserCacheManager.d.ts +24 -27
- package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
- package/dist/cache/BrowserCacheManager.mjs +134 -188
- package/dist/cache/BrowserCacheManager.mjs.map +1 -1
- package/dist/cache/CacheHelpers.mjs +1 -1
- package/dist/cache/CacheKeys.mjs +3 -2
- 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/IAsyncStorage.d.ts +10 -5
- package/dist/cache/IAsyncStorage.d.ts.map +1 -1
- package/dist/cache/LocalStorage.d.ts.map +1 -1
- package/dist/cache/LocalStorage.mjs +23 -19
- package/dist/cache/LocalStorage.mjs.map +1 -1
- package/dist/cache/MemoryStorage.mjs +1 -1
- package/dist/cache/SessionStorage.mjs +1 -1
- package/dist/cache/TokenCache.d.ts +8 -68
- package/dist/cache/TokenCache.d.ts.map +1 -1
- package/dist/cache/TokenCache.mjs +179 -187
- package/dist/cache/TokenCache.mjs.map +1 -1
- package/dist/config/Configuration.d.ts +8 -69
- package/dist/config/Configuration.d.ts.map +1 -1
- package/dist/config/Configuration.mjs +22 -39
- package/dist/config/Configuration.mjs.map +1 -1
- package/dist/controllers/IController.d.ts +2 -58
- package/dist/controllers/IController.d.ts.map +1 -1
- package/dist/controllers/NestedAppAuthController.d.ts +5 -49
- package/dist/controllers/NestedAppAuthController.d.ts.map +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +32 -100
- package/dist/controllers/NestedAppAuthController.mjs.map +1 -1
- package/dist/controllers/StandardController.d.ts +10 -55
- package/dist/controllers/StandardController.d.ts.map +1 -1
- package/dist/controllers/StandardController.mjs +179 -335
- package/dist/controllers/StandardController.mjs.map +1 -1
- package/dist/controllers/UnknownOperatingContextController.d.ts +5 -18
- package/dist/controllers/UnknownOperatingContextController.d.ts.map +1 -1
- package/dist/crypto/BrowserCrypto.d.ts +1 -2
- package/dist/crypto/BrowserCrypto.d.ts.map +1 -1
- package/dist/crypto/BrowserCrypto.mjs +2 -4
- package/dist/crypto/BrowserCrypto.mjs.map +1 -1
- package/dist/crypto/CryptoOps.d.ts +4 -2
- package/dist/crypto/CryptoOps.d.ts.map +1 -1
- package/dist/crypto/CryptoOps.mjs +17 -14
- package/dist/crypto/CryptoOps.mjs.map +1 -1
- package/dist/crypto/PkceGenerator.d.ts.map +1 -1
- package/dist/crypto/PkceGenerator.mjs +7 -8
- package/dist/crypto/PkceGenerator.mjs.map +1 -1
- package/dist/crypto/SignedHttpRequest.d.ts +2 -1
- package/dist/crypto/SignedHttpRequest.d.ts.map +1 -1
- package/dist/crypto/SignedHttpRequest.mjs +6 -18
- package/dist/crypto/SignedHttpRequest.mjs.map +1 -1
- package/dist/custom-auth-path/app/IPublicClientApplication.d.ts +3 -10
- package/dist/custom-auth-path/app/IPublicClientApplication.d.ts.map +1 -1
- package/dist/custom-auth-path/app/PublicClientApplication.d.ts +6 -56
- package/dist/custom-auth-path/app/PublicClientApplication.d.ts.map +1 -1
- package/dist/custom-auth-path/app/PublicClientApplication.mjs +5 -76
- package/dist/custom-auth-path/app/PublicClientApplication.mjs.map +1 -1
- package/dist/custom-auth-path/broker/nativeBroker/NativeStatusCodes.mjs +3 -2
- package/dist/custom-auth-path/broker/nativeBroker/NativeStatusCodes.mjs.map +1 -1
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthDOMHandler.d.ts.map +1 -1
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthDOMHandler.mjs +13 -15
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthDOMHandler.mjs.map +1 -1
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthExtensionHandler.d.ts +1 -1
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthExtensionHandler.d.ts.map +1 -1
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +28 -30
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthExtensionHandler.mjs.map +1 -1
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthProvider.d.ts +12 -4
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthProvider.d.ts.map +1 -1
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthProvider.mjs +37 -23
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthProvider.mjs.map +1 -1
- package/dist/custom-auth-path/cache/AccountManager.d.ts +0 -25
- package/dist/custom-auth-path/cache/AccountManager.d.ts.map +1 -1
- package/dist/custom-auth-path/cache/AccountManager.mjs +10 -84
- package/dist/custom-auth-path/cache/AccountManager.mjs.map +1 -1
- package/dist/custom-auth-path/cache/AsyncMemoryStorage.d.ts +14 -7
- package/dist/custom-auth-path/cache/AsyncMemoryStorage.d.ts.map +1 -1
- package/dist/custom-auth-path/cache/AsyncMemoryStorage.mjs +30 -23
- package/dist/custom-auth-path/cache/AsyncMemoryStorage.mjs.map +1 -1
- package/dist/custom-auth-path/cache/BrowserCacheManager.d.ts +24 -27
- package/dist/custom-auth-path/cache/BrowserCacheManager.d.ts.map +1 -1
- package/dist/custom-auth-path/cache/BrowserCacheManager.mjs +134 -188
- package/dist/custom-auth-path/cache/BrowserCacheManager.mjs.map +1 -1
- package/dist/custom-auth-path/cache/CacheHelpers.mjs +1 -1
- package/dist/custom-auth-path/cache/CacheKeys.mjs +3 -2
- package/dist/custom-auth-path/cache/CacheKeys.mjs.map +1 -1
- package/dist/custom-auth-path/cache/CookieStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/DatabaseStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/EncryptedData.mjs +1 -1
- package/dist/custom-auth-path/cache/IAsyncStorage.d.ts +10 -5
- package/dist/custom-auth-path/cache/IAsyncStorage.d.ts.map +1 -1
- package/dist/custom-auth-path/cache/LocalStorage.d.ts.map +1 -1
- package/dist/custom-auth-path/cache/LocalStorage.mjs +23 -19
- package/dist/custom-auth-path/cache/LocalStorage.mjs.map +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.d.ts +8 -68
- package/dist/custom-auth-path/cache/TokenCache.d.ts.map +1 -1
- package/dist/custom-auth-path/config/Configuration.d.ts +8 -69
- package/dist/custom-auth-path/config/Configuration.d.ts.map +1 -1
- package/dist/custom-auth-path/config/Configuration.mjs +22 -39
- package/dist/custom-auth-path/config/Configuration.mjs.map +1 -1
- package/dist/custom-auth-path/controllers/IController.d.ts +2 -58
- package/dist/custom-auth-path/controllers/IController.d.ts.map +1 -1
- package/dist/custom-auth-path/controllers/NestedAppAuthController.d.ts +5 -49
- package/dist/custom-auth-path/controllers/NestedAppAuthController.d.ts.map +1 -1
- package/dist/custom-auth-path/controllers/StandardController.d.ts +10 -55
- package/dist/custom-auth-path/controllers/StandardController.d.ts.map +1 -1
- package/dist/custom-auth-path/controllers/StandardController.mjs +179 -335
- package/dist/custom-auth-path/controllers/StandardController.mjs.map +1 -1
- package/dist/custom-auth-path/controllers/UnknownOperatingContextController.d.ts +5 -18
- package/dist/custom-auth-path/controllers/UnknownOperatingContextController.d.ts.map +1 -1
- package/dist/custom-auth-path/crypto/BrowserCrypto.d.ts +1 -2
- package/dist/custom-auth-path/crypto/BrowserCrypto.d.ts.map +1 -1
- package/dist/custom-auth-path/crypto/BrowserCrypto.mjs +2 -4
- package/dist/custom-auth-path/crypto/BrowserCrypto.mjs.map +1 -1
- package/dist/custom-auth-path/crypto/CryptoOps.d.ts +4 -2
- package/dist/custom-auth-path/crypto/CryptoOps.d.ts.map +1 -1
- package/dist/custom-auth-path/crypto/CryptoOps.mjs +17 -14
- package/dist/custom-auth-path/crypto/CryptoOps.mjs.map +1 -1
- package/dist/custom-auth-path/crypto/PkceGenerator.d.ts.map +1 -1
- package/dist/custom-auth-path/crypto/PkceGenerator.mjs +7 -8
- package/dist/custom-auth-path/crypto/PkceGenerator.mjs.map +1 -1
- package/dist/custom-auth-path/crypto/SignedHttpRequest.d.ts +2 -1
- package/dist/custom-auth-path/crypto/SignedHttpRequest.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/CustomAuthConstants.d.ts +2 -2
- package/dist/custom-auth-path/custom_auth/CustomAuthConstants.d.ts.map +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 +27 -31
- package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/CustomAuthAuthority.d.ts +2 -2
- package/dist/custom-auth-path/custom_auth/core/CustomAuthAuthority.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/CustomAuthAuthority.mjs +6 -7
- package/dist/custom-auth-path/custom_auth/core/CustomAuthAuthority.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +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 +3 -3
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowState.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts +3 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +4 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts +2 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +3 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts +7 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +17 -10
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts +2 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +3 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts +2 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +3 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts +6 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +13 -7
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaState.mjs.map +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.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +4 -4
- package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/JitClient.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/JitClient.mjs +20 -15
- package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/JitClient.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/MfaClient.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/MfaClient.mjs +17 -14
- package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/MfaClient.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/result/MfaActionResult.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/RegisterApiClient.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.mjs +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/ApiSuberrors.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/http_client/FetchHttpClient.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +5 -5
- package/dist/custom-auth-path/custom_auth/core/network_client/http_client/FetchHttpClient.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/telemetry/PublicApiId.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/utils/UrlUtils.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +10 -10
- 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.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +17 -19
- package/dist/custom-auth-path/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs.map +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 +7 -7
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs.map +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 +4 -4
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs.map +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.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +30 -28
- package/dist/custom-auth-path/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs.map +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.mjs +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.d.ts +2 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +3 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts +2 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +3 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts +2 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +3 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +6 -6
- 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.mjs +4 -4
- 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.mjs +4 -4
- 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 +4 -4
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInState.mjs.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 +53 -47
- 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/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 +6 -6
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +10 -10
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs.map +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 +6 -6
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs.map +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.d.ts +4 -4
- package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/SignUpClient.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/SignUpClient.mjs +56 -50
- package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/SignUpClient.mjs.map +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.d.ts +1 -246
- package/dist/custom-auth-path/error/BrowserAuthError.d.ts.map +1 -1
- package/dist/custom-auth-path/error/BrowserAuthError.mjs +6 -61
- package/dist/custom-auth-path/error/BrowserAuthError.mjs.map +1 -1
- package/dist/custom-auth-path/error/BrowserAuthErrorCodes.d.ts +3 -2
- package/dist/custom-auth-path/error/BrowserAuthErrorCodes.d.ts.map +1 -1
- package/dist/custom-auth-path/error/BrowserAuthErrorCodes.mjs +6 -10
- package/dist/custom-auth-path/error/BrowserAuthErrorCodes.mjs.map +1 -1
- package/dist/custom-auth-path/error/BrowserConfigurationAuthError.d.ts +0 -23
- package/dist/custom-auth-path/error/BrowserConfigurationAuthError.d.ts.map +1 -1
- package/dist/custom-auth-path/error/BrowserConfigurationAuthError.mjs +4 -9
- package/dist/custom-auth-path/error/BrowserConfigurationAuthError.mjs.map +1 -1
- package/dist/custom-auth-path/error/BrowserConfigurationAuthErrorCodes.mjs +2 -3
- package/dist/custom-auth-path/error/BrowserConfigurationAuthErrorCodes.mjs.map +1 -1
- package/dist/custom-auth-path/error/NativeAuthError.d.ts +0 -3
- package/dist/custom-auth-path/error/NativeAuthError.d.ts.map +1 -1
- package/dist/custom-auth-path/error/NativeAuthError.mjs +10 -12
- package/dist/custom-auth-path/error/NativeAuthError.mjs.map +1 -1
- package/dist/custom-auth-path/error/NativeAuthErrorCodes.d.ts +1 -0
- package/dist/custom-auth-path/error/NativeAuthErrorCodes.d.ts.map +1 -1
- package/dist/custom-auth-path/error/NativeAuthErrorCodes.mjs +1 -1
- package/dist/custom-auth-path/error/NestedAppAuthError.d.ts +0 -9
- package/dist/custom-auth-path/error/NestedAppAuthError.d.ts.map +1 -1
- package/dist/custom-auth-path/event/EventHandler.d.ts.map +1 -1
- package/dist/custom-auth-path/event/EventHandler.mjs +9 -12
- package/dist/custom-auth-path/event/EventHandler.mjs.map +1 -1
- package/dist/custom-auth-path/event/EventMessage.d.ts.map +1 -1
- package/dist/custom-auth-path/event/EventType.d.ts +3 -10
- package/dist/custom-auth-path/event/EventType.d.ts.map +1 -1
- package/dist/custom-auth-path/event/EventType.mjs +4 -11
- package/dist/custom-auth-path/event/EventType.mjs.map +1 -1
- package/dist/custom-auth-path/index.d.ts +34 -6
- package/dist/custom-auth-path/index.d.ts.map +1 -1
- package/dist/custom-auth-path/interaction_client/BaseInteractionClient.d.ts +50 -32
- package/dist/custom-auth-path/interaction_client/BaseInteractionClient.d.ts.map +1 -1
- package/dist/custom-auth-path/interaction_client/BaseInteractionClient.mjs +116 -97
- package/dist/custom-auth-path/interaction_client/BaseInteractionClient.mjs.map +1 -1
- package/dist/custom-auth-path/interaction_client/HybridSpaAuthorizationCodeClient.d.ts +2 -2
- package/dist/custom-auth-path/interaction_client/HybridSpaAuthorizationCodeClient.d.ts.map +1 -1
- package/dist/custom-auth-path/interaction_client/HybridSpaAuthorizationCodeClient.mjs +3 -3
- package/dist/custom-auth-path/interaction_client/HybridSpaAuthorizationCodeClient.mjs.map +1 -1
- package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.d.ts +5 -3
- package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.mjs +72 -87
- package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
- package/dist/custom-auth-path/interaction_client/PopupClient.d.ts +1 -16
- package/dist/custom-auth-path/interaction_client/PopupClient.d.ts.map +1 -1
- package/dist/custom-auth-path/interaction_client/PopupClient.mjs +66 -145
- package/dist/custom-auth-path/interaction_client/PopupClient.mjs.map +1 -1
- package/dist/custom-auth-path/interaction_client/RedirectClient.d.ts +8 -4
- package/dist/custom-auth-path/interaction_client/RedirectClient.d.ts.map +1 -1
- package/dist/custom-auth-path/interaction_client/RedirectClient.mjs +78 -85
- package/dist/custom-auth-path/interaction_client/RedirectClient.mjs.map +1 -1
- package/dist/custom-auth-path/interaction_client/SilentAuthCodeClient.d.ts +1 -1
- package/dist/custom-auth-path/interaction_client/SilentAuthCodeClient.d.ts.map +1 -1
- package/dist/custom-auth-path/interaction_client/SilentAuthCodeClient.mjs +17 -10
- package/dist/custom-auth-path/interaction_client/SilentAuthCodeClient.mjs.map +1 -1
- package/dist/custom-auth-path/interaction_client/SilentCacheClient.d.ts.map +1 -1
- package/dist/custom-auth-path/interaction_client/SilentCacheClient.mjs +11 -10
- package/dist/custom-auth-path/interaction_client/SilentCacheClient.mjs.map +1 -1
- package/dist/custom-auth-path/interaction_client/SilentIframeClient.d.ts +1 -1
- package/dist/custom-auth-path/interaction_client/SilentIframeClient.d.ts.map +1 -1
- package/dist/custom-auth-path/interaction_client/SilentIframeClient.mjs +43 -50
- package/dist/custom-auth-path/interaction_client/SilentIframeClient.mjs.map +1 -1
- package/dist/custom-auth-path/interaction_client/SilentRefreshClient.d.ts.map +1 -1
- package/dist/custom-auth-path/interaction_client/SilentRefreshClient.mjs +9 -8
- package/dist/custom-auth-path/interaction_client/SilentRefreshClient.mjs.map +1 -1
- package/dist/custom-auth-path/interaction_client/StandardInteractionClient.d.ts +17 -7
- package/dist/custom-auth-path/interaction_client/StandardInteractionClient.d.ts.map +1 -1
- package/dist/custom-auth-path/interaction_client/StandardInteractionClient.mjs +63 -67
- package/dist/custom-auth-path/interaction_client/StandardInteractionClient.mjs.map +1 -1
- package/dist/custom-auth-path/interaction_handler/InteractionHandler.d.ts +2 -3
- package/dist/custom-auth-path/interaction_handler/InteractionHandler.d.ts.map +1 -1
- package/dist/custom-auth-path/interaction_handler/InteractionHandler.mjs +7 -13
- package/dist/custom-auth-path/interaction_handler/InteractionHandler.mjs.map +1 -1
- package/dist/custom-auth-path/interaction_handler/SilentHandler.d.ts +2 -8
- package/dist/custom-auth-path/interaction_handler/SilentHandler.d.ts.map +1 -1
- package/dist/custom-auth-path/interaction_handler/SilentHandler.mjs +8 -97
- package/dist/custom-auth-path/interaction_handler/SilentHandler.mjs.map +1 -1
- package/dist/custom-auth-path/log-strings-mapping.json +1703 -0
- package/dist/custom-auth-path/naa/mapping/NestedAppAuthAdapter.d.ts.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.d.ts +2 -1
- package/dist/custom-auth-path/operatingcontext/BaseOperatingContext.d.ts.map +1 -1
- package/dist/custom-auth-path/operatingcontext/BaseOperatingContext.mjs +1 -1
- package/dist/custom-auth-path/operatingcontext/BaseOperatingContext.mjs.map +1 -1
- package/dist/custom-auth-path/operatingcontext/NestedAppOperatingContext.d.ts +2 -1
- package/dist/custom-auth-path/operatingcontext/NestedAppOperatingContext.d.ts.map +1 -1
- package/dist/custom-auth-path/operatingcontext/StandardOperatingContext.d.ts +1 -1
- package/dist/custom-auth-path/operatingcontext/StandardOperatingContext.d.ts.map +1 -1
- package/dist/custom-auth-path/operatingcontext/StandardOperatingContext.mjs +3 -2
- package/dist/custom-auth-path/operatingcontext/StandardOperatingContext.mjs.map +1 -1
- package/dist/custom-auth-path/packageMetadata.d.ts +1 -1
- package/dist/custom-auth-path/packageMetadata.d.ts.map +1 -1
- package/dist/custom-auth-path/packageMetadata.mjs +2 -2
- package/dist/custom-auth-path/protocol/Authorize.d.ts.map +1 -1
- package/dist/custom-auth-path/protocol/Authorize.mjs +37 -29
- package/dist/custom-auth-path/protocol/Authorize.mjs.map +1 -1
- package/dist/custom-auth-path/redirect_bridge/index.d.ts +16 -0
- package/dist/custom-auth-path/redirect_bridge/index.d.ts.map +1 -0
- package/dist/custom-auth-path/request/AuthorizationCodeRequest.d.ts +1 -1
- package/dist/custom-auth-path/request/AuthorizationCodeRequest.d.ts.map +1 -1
- package/dist/custom-auth-path/request/EndSessionPopupRequest.d.ts +1 -1
- package/dist/custom-auth-path/request/EndSessionPopupRequest.d.ts.map +1 -1
- package/dist/custom-auth-path/request/EndSessionRequest.d.ts +1 -3
- package/dist/custom-auth-path/request/EndSessionRequest.d.ts.map +1 -1
- package/dist/custom-auth-path/request/HandleRedirectPromiseOptions.d.ts +5 -0
- package/dist/custom-auth-path/request/HandleRedirectPromiseOptions.d.ts.map +1 -0
- package/dist/custom-auth-path/request/PopupRequest.d.ts +5 -4
- package/dist/custom-auth-path/request/PopupRequest.d.ts.map +1 -1
- package/dist/custom-auth-path/request/RedirectRequest.d.ts +3 -11
- package/dist/custom-auth-path/request/RedirectRequest.d.ts.map +1 -1
- package/dist/custom-auth-path/request/RequestHelpers.d.ts +7 -3
- package/dist/custom-auth-path/request/RequestHelpers.d.ts.map +1 -1
- package/dist/custom-auth-path/request/RequestHelpers.mjs +21 -28
- package/dist/custom-auth-path/request/RequestHelpers.mjs.map +1 -1
- package/dist/custom-auth-path/request/SilentRequest.d.ts +3 -4
- package/dist/custom-auth-path/request/SilentRequest.d.ts.map +1 -1
- package/dist/custom-auth-path/request/SsoSilentRequest.d.ts +3 -4
- package/dist/custom-auth-path/request/SsoSilentRequest.d.ts.map +1 -1
- package/dist/custom-auth-path/response/ResponseHandler.d.ts +1 -1
- package/dist/custom-auth-path/response/ResponseHandler.d.ts.map +1 -1
- package/dist/custom-auth-path/response/ResponseHandler.mjs +5 -5
- package/dist/custom-auth-path/response/ResponseHandler.mjs.map +1 -1
- package/dist/custom-auth-path/telemetry/BrowserPerformanceClient.d.ts +2 -19
- package/dist/custom-auth-path/telemetry/BrowserPerformanceClient.d.ts.map +1 -1
- package/dist/custom-auth-path/telemetry/BrowserPerformanceEvents.d.ts +130 -0
- package/dist/custom-auth-path/telemetry/BrowserPerformanceEvents.d.ts.map +1 -0
- package/dist/custom-auth-path/telemetry/BrowserPerformanceEvents.mjs +124 -0
- package/dist/custom-auth-path/telemetry/BrowserPerformanceEvents.mjs.map +1 -0
- package/dist/custom-auth-path/telemetry/BrowserRootPerformanceEvents.d.ts +35 -0
- package/dist/custom-auth-path/telemetry/BrowserRootPerformanceEvents.d.ts.map +1 -0
- package/dist/custom-auth-path/telemetry/BrowserRootPerformanceEvents.mjs +45 -0
- package/dist/custom-auth-path/telemetry/BrowserRootPerformanceEvents.mjs.map +1 -0
- package/dist/custom-auth-path/utils/BrowserConstants.d.ts +0 -12
- package/dist/custom-auth-path/utils/BrowserConstants.d.ts.map +1 -1
- package/dist/custom-auth-path/utils/BrowserConstants.mjs +3 -7
- package/dist/custom-auth-path/utils/BrowserConstants.mjs.map +1 -1
- package/dist/custom-auth-path/utils/BrowserProtocolUtils.mjs +2 -2
- package/dist/custom-auth-path/utils/BrowserProtocolUtils.mjs.map +1 -1
- package/dist/custom-auth-path/utils/BrowserUtils.d.ts +36 -2
- package/dist/custom-auth-path/utils/BrowserUtils.d.ts.map +1 -1
- package/dist/custom-auth-path/utils/BrowserUtils.mjs +155 -14
- package/dist/custom-auth-path/utils/BrowserUtils.mjs.map +1 -1
- package/dist/custom-auth-path/utils/Helpers.mjs +1 -1
- package/dist/custom-auth-path/utils/MsalFrameStatsUtils.d.ts +1 -1
- package/dist/custom-auth-path/utils/MsalFrameStatsUtils.d.ts.map +1 -1
- package/dist/custom-auth-path/utils/MsalFrameStatsUtils.mjs +3 -3
- package/dist/custom-auth-path/utils/MsalFrameStatsUtils.mjs.map +1 -1
- package/dist/custom_auth/CustomAuthConstants.d.ts +2 -2
- package/dist/custom_auth/CustomAuthConstants.d.ts.map +1 -1
- package/dist/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
- package/dist/custom_auth/core/CustomAuthAuthority.d.ts +2 -2
- package/dist/custom_auth/core/CustomAuthAuthority.d.ts.map +1 -1
- package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts +3 -0
- package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts.map +1 -1
- package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts +2 -0
- package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts.map +1 -1
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts +7 -0
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts.map +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts +2 -0
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts.map +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts +2 -0
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts.map +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts +6 -0
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts.map +1 -1
- package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts.map +1 -1
- package/dist/custom_auth/core/interaction_client/jit/JitClient.d.ts.map +1 -1
- package/dist/custom_auth/core/interaction_client/mfa/MfaClient.d.ts.map +1 -1
- package/dist/custom_auth/core/network_client/http_client/FetchHttpClient.d.ts.map +1 -1
- package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.d.ts.map +1 -1
- package/dist/custom_auth/reset_password/interaction_client/ResetPasswordClient.d.ts.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts +2 -0
- package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts +2 -0
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts +2 -0
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts.map +1 -1
- package/dist/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -1
- package/dist/custom_auth/sign_up/interaction_client/SignUpClient.d.ts +4 -4
- package/dist/custom_auth/sign_up/interaction_client/SignUpClient.d.ts.map +1 -1
- package/dist/encode/Base64Decode.mjs +1 -1
- package/dist/encode/Base64Encode.mjs +1 -1
- package/dist/error/BrowserAuthError.d.ts +1 -246
- package/dist/error/BrowserAuthError.d.ts.map +1 -1
- package/dist/error/BrowserAuthError.mjs +6 -253
- package/dist/error/BrowserAuthError.mjs.map +1 -1
- package/dist/error/BrowserAuthErrorCodes.d.ts +3 -2
- package/dist/error/BrowserAuthErrorCodes.d.ts.map +1 -1
- package/dist/error/BrowserAuthErrorCodes.mjs +6 -5
- package/dist/error/BrowserAuthErrorCodes.mjs.map +1 -1
- package/dist/error/BrowserConfigurationAuthError.d.ts +0 -23
- package/dist/error/BrowserConfigurationAuthError.d.ts.map +1 -1
- package/dist/error/BrowserConfigurationAuthError.mjs +4 -29
- package/dist/error/BrowserConfigurationAuthError.mjs.map +1 -1
- package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
- package/dist/error/NativeAuthError.d.ts +0 -3
- package/dist/error/NativeAuthError.d.ts.map +1 -1
- package/dist/error/NativeAuthError.mjs +10 -12
- package/dist/error/NativeAuthError.mjs.map +1 -1
- package/dist/error/NativeAuthErrorCodes.d.ts +1 -0
- package/dist/error/NativeAuthErrorCodes.d.ts.map +1 -1
- package/dist/error/NativeAuthErrorCodes.mjs +4 -3
- package/dist/error/NativeAuthErrorCodes.mjs.map +1 -1
- package/dist/error/NestedAppAuthError.d.ts +0 -9
- package/dist/error/NestedAppAuthError.d.ts.map +1 -1
- package/dist/error/NestedAppAuthError.mjs +4 -12
- package/dist/error/NestedAppAuthError.mjs.map +1 -1
- package/dist/event/EventHandler.d.ts.map +1 -1
- package/dist/event/EventHandler.mjs +9 -12
- package/dist/event/EventHandler.mjs.map +1 -1
- package/dist/event/EventMessage.d.ts.map +1 -1
- package/dist/event/EventMessage.mjs +2 -17
- package/dist/event/EventMessage.mjs.map +1 -1
- package/dist/event/EventType.d.ts +3 -10
- package/dist/event/EventType.d.ts.map +1 -1
- package/dist/event/EventType.mjs +4 -11
- package/dist/event/EventType.mjs.map +1 -1
- package/dist/index.d.ts +34 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +25 -5
- package/dist/index.mjs.map +1 -1
- package/dist/interaction_client/BaseInteractionClient.d.ts +50 -32
- package/dist/interaction_client/BaseInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/BaseInteractionClient.mjs +116 -97
- package/dist/interaction_client/BaseInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.d.ts +2 -2
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.d.ts.map +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +3 -3
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs.map +1 -1
- package/dist/interaction_client/PlatformAuthInteractionClient.d.ts +5 -3
- package/dist/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs +72 -87
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/PopupClient.d.ts +1 -16
- package/dist/interaction_client/PopupClient.d.ts.map +1 -1
- package/dist/interaction_client/PopupClient.mjs +66 -145
- package/dist/interaction_client/PopupClient.mjs.map +1 -1
- package/dist/interaction_client/RedirectClient.d.ts +8 -4
- package/dist/interaction_client/RedirectClient.d.ts.map +1 -1
- package/dist/interaction_client/RedirectClient.mjs +78 -85
- package/dist/interaction_client/RedirectClient.mjs.map +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.d.ts +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.d.ts.map +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.mjs +17 -10
- package/dist/interaction_client/SilentAuthCodeClient.mjs.map +1 -1
- package/dist/interaction_client/SilentCacheClient.d.ts.map +1 -1
- package/dist/interaction_client/SilentCacheClient.mjs +11 -10
- package/dist/interaction_client/SilentCacheClient.mjs.map +1 -1
- package/dist/interaction_client/SilentIframeClient.d.ts +1 -1
- package/dist/interaction_client/SilentIframeClient.d.ts.map +1 -1
- package/dist/interaction_client/SilentIframeClient.mjs +43 -50
- package/dist/interaction_client/SilentIframeClient.mjs.map +1 -1
- package/dist/interaction_client/SilentRefreshClient.d.ts.map +1 -1
- package/dist/interaction_client/SilentRefreshClient.mjs +9 -8
- package/dist/interaction_client/SilentRefreshClient.mjs.map +1 -1
- package/dist/interaction_client/StandardInteractionClient.d.ts +17 -7
- package/dist/interaction_client/StandardInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/StandardInteractionClient.mjs +63 -67
- package/dist/interaction_client/StandardInteractionClient.mjs.map +1 -1
- package/dist/interaction_handler/InteractionHandler.d.ts +2 -3
- package/dist/interaction_handler/InteractionHandler.d.ts.map +1 -1
- package/dist/interaction_handler/InteractionHandler.mjs +7 -13
- package/dist/interaction_handler/InteractionHandler.mjs.map +1 -1
- package/dist/interaction_handler/SilentHandler.d.ts +2 -8
- package/dist/interaction_handler/SilentHandler.d.ts.map +1 -1
- package/dist/interaction_handler/SilentHandler.mjs +8 -97
- package/dist/interaction_handler/SilentHandler.mjs.map +1 -1
- package/dist/log-strings-mapping.json +1135 -0
- 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.d.ts.map +1 -1
- package/dist/naa/mapping/NestedAppAuthAdapter.mjs +9 -6
- package/dist/naa/mapping/NestedAppAuthAdapter.mjs.map +1 -1
- package/dist/navigation/NavigationClient.mjs +1 -1
- package/dist/network/FetchClient.mjs +1 -1
- package/dist/operatingcontext/BaseOperatingContext.d.ts +2 -1
- package/dist/operatingcontext/BaseOperatingContext.d.ts.map +1 -1
- package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
- package/dist/operatingcontext/BaseOperatingContext.mjs.map +1 -1
- package/dist/operatingcontext/NestedAppOperatingContext.d.ts +2 -1
- package/dist/operatingcontext/NestedAppOperatingContext.d.ts.map +1 -1
- package/dist/operatingcontext/NestedAppOperatingContext.mjs +5 -4
- package/dist/operatingcontext/NestedAppOperatingContext.mjs.map +1 -1
- package/dist/operatingcontext/StandardOperatingContext.d.ts +1 -1
- package/dist/operatingcontext/StandardOperatingContext.d.ts.map +1 -1
- package/dist/operatingcontext/StandardOperatingContext.mjs +3 -2
- package/dist/operatingcontext/StandardOperatingContext.mjs.map +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.d.ts.map +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/protocol/Authorize.d.ts.map +1 -1
- package/dist/protocol/Authorize.mjs +37 -29
- package/dist/protocol/Authorize.mjs.map +1 -1
- package/dist/redirect-bridge/app/IPublicClientApplication.d.ts +48 -0
- package/dist/redirect-bridge/app/IPublicClientApplication.d.ts.map +1 -0
- package/dist/{app/PublicClientNext.d.ts → redirect-bridge/app/PublicClientApplication.d.ts} +35 -66
- package/dist/redirect-bridge/app/PublicClientApplication.d.ts.map +1 -0
- package/dist/redirect-bridge/broker/nativeBroker/IPlatformAuthHandler.d.ts +12 -0
- package/dist/redirect-bridge/broker/nativeBroker/IPlatformAuthHandler.d.ts.map +1 -0
- package/dist/redirect-bridge/broker/nativeBroker/NativeStatusCodes.d.ts +9 -0
- package/dist/redirect-bridge/broker/nativeBroker/NativeStatusCodes.d.ts.map +1 -0
- package/dist/redirect-bridge/broker/nativeBroker/PlatformAuthDOMHandler.d.ts +30 -0
- package/dist/redirect-bridge/broker/nativeBroker/PlatformAuthDOMHandler.d.ts.map +1 -0
- package/dist/redirect-bridge/broker/nativeBroker/PlatformAuthExtensionHandler.d.ts +63 -0
- package/dist/redirect-bridge/broker/nativeBroker/PlatformAuthExtensionHandler.d.ts.map +1 -0
- package/dist/redirect-bridge/broker/nativeBroker/PlatformAuthProvider.d.ts +28 -0
- package/dist/redirect-bridge/broker/nativeBroker/PlatformAuthProvider.d.ts.map +1 -0
- package/dist/redirect-bridge/broker/nativeBroker/PlatformAuthRequest.d.ts +78 -0
- package/dist/redirect-bridge/broker/nativeBroker/PlatformAuthRequest.d.ts.map +1 -0
- package/dist/redirect-bridge/broker/nativeBroker/PlatformAuthResponse.d.ts +71 -0
- package/dist/redirect-bridge/broker/nativeBroker/PlatformAuthResponse.d.ts.map +1 -0
- package/dist/redirect-bridge/cache/AccountManager.d.ts +24 -0
- package/dist/redirect-bridge/cache/AccountManager.d.ts.map +1 -0
- package/dist/redirect-bridge/cache/AsyncMemoryStorage.d.ts +58 -0
- package/dist/redirect-bridge/cache/AsyncMemoryStorage.d.ts.map +1 -0
- package/dist/redirect-bridge/cache/BrowserCacheManager.d.ts +366 -0
- package/dist/redirect-bridge/cache/BrowserCacheManager.d.ts.map +1 -0
- package/dist/redirect-bridge/cache/CacheHelpers.d.ts +16 -0
- package/dist/redirect-bridge/cache/CacheHelpers.d.ts.map +1 -0
- package/dist/redirect-bridge/cache/CacheKeys.d.ts +14 -0
- package/dist/redirect-bridge/cache/CacheKeys.d.ts.map +1 -0
- package/dist/redirect-bridge/cache/CacheKeys.mjs +10 -0
- package/dist/redirect-bridge/cache/CacheKeys.mjs.map +1 -0
- package/dist/redirect-bridge/cache/CookieStorage.d.ts +23 -0
- package/dist/redirect-bridge/cache/CookieStorage.d.ts.map +1 -0
- package/dist/redirect-bridge/cache/DatabaseStorage.d.ts +57 -0
- package/dist/redirect-bridge/cache/DatabaseStorage.d.ts.map +1 -0
- package/dist/redirect-bridge/cache/EncryptedData.d.ts +8 -0
- package/dist/redirect-bridge/cache/EncryptedData.d.ts.map +1 -0
- package/dist/redirect-bridge/cache/IAsyncStorage.d.ts +33 -0
- package/dist/redirect-bridge/cache/IAsyncStorage.d.ts.map +1 -0
- package/dist/redirect-bridge/cache/IWindowStorage.d.ts +42 -0
- package/dist/redirect-bridge/cache/IWindowStorage.d.ts.map +1 -0
- package/dist/redirect-bridge/cache/LocalStorage.d.ts +51 -0
- package/dist/redirect-bridge/cache/LocalStorage.d.ts.map +1 -0
- package/dist/redirect-bridge/cache/MemoryStorage.d.ts +16 -0
- package/dist/redirect-bridge/cache/MemoryStorage.d.ts.map +1 -0
- package/dist/redirect-bridge/cache/SessionStorage.d.ts +14 -0
- package/dist/redirect-bridge/cache/SessionStorage.d.ts.map +1 -0
- package/dist/redirect-bridge/cache/TokenCache.d.ts +18 -0
- package/dist/redirect-bridge/cache/TokenCache.d.ts.map +1 -0
- package/dist/redirect-bridge/config/Configuration.d.ts +175 -0
- package/dist/redirect-bridge/config/Configuration.d.ts.map +1 -0
- package/dist/redirect-bridge/config/Configuration.mjs +10 -0
- package/dist/redirect-bridge/config/Configuration.mjs.map +1 -0
- package/dist/redirect-bridge/controllers/IController.d.ts +3 -0
- package/dist/redirect-bridge/controllers/IController.d.ts.map +1 -0
- package/dist/redirect-bridge/controllers/NestedAppAuthController.d.ts +159 -0
- package/dist/redirect-bridge/controllers/NestedAppAuthController.d.ts.map +1 -0
- package/{lib/custom-auth-path/types/app/PublicClientNext.d.ts → dist/redirect-bridge/controllers/StandardController.d.ts} +253 -151
- package/dist/redirect-bridge/controllers/StandardController.d.ts.map +1 -0
- package/dist/redirect-bridge/controllers/UnknownOperatingContextController.d.ts +73 -0
- package/dist/redirect-bridge/controllers/UnknownOperatingContextController.d.ts.map +1 -0
- package/dist/redirect-bridge/crypto/BrowserCrypto.d.ts +96 -0
- package/dist/redirect-bridge/crypto/BrowserCrypto.d.ts.map +1 -0
- package/dist/redirect-bridge/crypto/CryptoOps.d.ts +77 -0
- package/dist/redirect-bridge/crypto/CryptoOps.d.ts.map +1 -0
- package/dist/redirect-bridge/crypto/PkceGenerator.d.ts +9 -0
- package/dist/redirect-bridge/crypto/PkceGenerator.d.ts.map +1 -0
- package/dist/redirect-bridge/crypto/SignedHttpRequest.d.ts +32 -0
- package/dist/redirect-bridge/crypto/SignedHttpRequest.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/CustomAuthActionInputs.d.ts +29 -0
- package/dist/redirect-bridge/custom_auth/CustomAuthActionInputs.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/CustomAuthConstants.d.ts +35 -0
- package/dist/redirect-bridge/custom_auth/CustomAuthConstants.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/CustomAuthPublicClientApplication.d.ts +55 -0
- package/dist/redirect-bridge/custom_auth/CustomAuthPublicClientApplication.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/ICustomAuthPublicClientApplication.d.ts +33 -0
- package/dist/redirect-bridge/custom_auth/ICustomAuthPublicClientApplication.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/UserAccountAttributes.d.ts +12 -0
- package/dist/redirect-bridge/custom_auth/UserAccountAttributes.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/configuration/CustomAuthConfiguration.d.ts +14 -0
- package/dist/redirect-bridge/custom_auth/configuration/CustomAuthConfiguration.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/controller/CustomAuthStandardController.d.ts +27 -0
- package/dist/redirect-bridge/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/controller/ICustomAuthStandardController.d.ts +13 -0
- package/dist/redirect-bridge/custom_auth/controller/ICustomAuthStandardController.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/CustomAuthAuthority.d.ts +29 -0
- package/dist/redirect-bridge/custom_auth/core/CustomAuthAuthority.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +40 -0
- package/dist/redirect-bridge/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/auth_flow/AuthFlowResultBase.d.ts +11 -0
- package/dist/redirect-bridge/custom_auth/core/auth_flow/AuthFlowResultBase.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/auth_flow/AuthFlowState.d.ts +31 -0
- package/dist/redirect-bridge/custom_auth/core/auth_flow/AuthFlowState.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/auth_flow/AuthFlowStateTypes.d.ts +29 -0
- package/dist/redirect-bridge/custom_auth/core/auth_flow/AuthFlowStateTypes.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/auth_flow/jit/AuthMethodDetails.d.ts +15 -0
- package/dist/redirect-bridge/custom_auth/core/auth_flow/jit/AuthMethodDetails.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts +27 -0
- package/dist/redirect-bridge/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts +47 -0
- package/dist/redirect-bridge/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts +37 -0
- package/dist/redirect-bridge/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.d.ts +11 -0
- package/dist/redirect-bridge/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.d.ts +11 -0
- package/dist/redirect-bridge/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts +82 -0
- package/dist/redirect-bridge/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.d.ts +20 -0
- package/dist/redirect-bridge/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts +27 -0
- package/dist/redirect-bridge/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts +40 -0
- package/dist/redirect-bridge/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts +34 -0
- package/dist/redirect-bridge/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.d.ts +11 -0
- package/dist/redirect-bridge/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/auth_flow/mfa/state/MfaFailedState.d.ts +11 -0
- package/dist/redirect-bridge/custom_auth/core/auth_flow/mfa/state/MfaFailedState.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts +67 -0
- package/dist/redirect-bridge/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/auth_flow/mfa/state/MfaStateParameters.d.ts +19 -0
- package/dist/redirect-bridge/custom_auth/core/auth_flow/mfa/state/MfaStateParameters.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/error/CustomAuthApiError.d.ts +20 -0
- package/dist/redirect-bridge/custom_auth/core/error/CustomAuthApiError.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/error/CustomAuthError.d.ts +9 -0
- package/dist/redirect-bridge/custom_auth/core/error/CustomAuthError.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/error/HttpError.d.ts +5 -0
- package/dist/redirect-bridge/custom_auth/core/error/HttpError.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/error/HttpErrorCodes.d.ts +3 -0
- package/dist/redirect-bridge/custom_auth/core/error/HttpErrorCodes.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/error/InvalidArgumentError.d.ts +5 -0
- package/dist/redirect-bridge/custom_auth/core/error/InvalidArgumentError.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/error/InvalidConfigurationError.d.ts +5 -0
- package/dist/redirect-bridge/custom_auth/core/error/InvalidConfigurationError.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/error/InvalidConfigurationErrorCodes.d.ts +4 -0
- package/dist/redirect-bridge/custom_auth/core/error/InvalidConfigurationErrorCodes.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/error/MethodNotImplementedError.d.ts +5 -0
- package/dist/redirect-bridge/custom_auth/core/error/MethodNotImplementedError.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/error/MsalCustomAuthError.d.ts +5 -0
- package/dist/redirect-bridge/custom_auth/core/error/MsalCustomAuthError.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/error/NoCachedAccountFoundError.d.ts +5 -0
- package/dist/redirect-bridge/custom_auth/core/error/NoCachedAccountFoundError.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/error/ParsedUrlError.d.ts +5 -0
- package/dist/redirect-bridge/custom_auth/core/error/ParsedUrlError.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/error/ParsedUrlErrorCodes.d.ts +2 -0
- package/dist/redirect-bridge/custom_auth/core/error/ParsedUrlErrorCodes.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/error/UnexpectedError.d.ts +5 -0
- package/dist/redirect-bridge/custom_auth/core/error/UnexpectedError.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/error/UnsupportedEnvironmentError.d.ts +5 -0
- package/dist/redirect-bridge/custom_auth/core/error/UnsupportedEnvironmentError.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/error/UserAccountAttributeError.d.ts +5 -0
- package/dist/redirect-bridge/custom_auth/core/error/UserAccountAttributeError.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/error/UserAccountAttributeErrorCodes.d.ts +2 -0
- package/dist/redirect-bridge/custom_auth/core/error/UserAccountAttributeErrorCodes.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/error/UserAlreadySignedInError.d.ts +5 -0
- package/dist/redirect-bridge/custom_auth/core/error/UserAlreadySignedInError.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts +34 -0
- package/dist/redirect-bridge/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.d.ts +22 -0
- package/dist/redirect-bridge/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/interaction_client/jit/JitClient.d.ts +21 -0
- package/dist/redirect-bridge/custom_auth/core/interaction_client/jit/JitClient.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts +20 -0
- package/dist/redirect-bridge/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts +22 -0
- package/dist/redirect-bridge/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/interaction_client/mfa/MfaClient.d.ts +21 -0
- package/dist/redirect-bridge/custom_auth/core/interaction_client/mfa/MfaClient.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/interaction_client/mfa/parameter/MfaClientParameters.d.ts +14 -0
- package/dist/redirect-bridge/custom_auth/core/interaction_client/mfa/parameter/MfaClientParameters.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/interaction_client/mfa/result/MfaActionResult.d.ts +23 -0
- package/dist/redirect-bridge/custom_auth/core/interaction_client/mfa/result/MfaActionResult.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/network_client/custom_auth_api/BaseApiClient.d.ts +15 -0
- package/dist/redirect-bridge/custom_auth/core/network_client/custom_auth_api/BaseApiClient.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts +14 -0
- package/dist/redirect-bridge/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts +16 -0
- package/dist/redirect-bridge/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts +11 -0
- package/dist/redirect-bridge/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.d.ts +18 -0
- package/dist/redirect-bridge/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.d.ts +34 -0
- package/dist/redirect-bridge/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts +37 -0
- package/dist/redirect-bridge/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/network_client/custom_auth_api/SignupApiClient.d.ts +23 -0
- package/dist/redirect-bridge/custom_auth/core/network_client/custom_auth_api/SignupApiClient.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.d.ts +23 -0
- package/dist/redirect-bridge/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/network_client/custom_auth_api/types/ApiErrorResponseTypes.d.ts +29 -0
- package/dist/redirect-bridge/custom_auth/core/network_client/custom_auth_api/types/ApiErrorResponseTypes.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts +86 -0
- package/dist/redirect-bridge/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts +71 -0
- package/dist/redirect-bridge/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts +13 -0
- package/dist/redirect-bridge/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/network_client/custom_auth_api/types/ApiTypesBase.d.ts +9 -0
- package/dist/redirect-bridge/custom_auth/core/network_client/custom_auth_api/types/ApiTypesBase.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/network_client/http_client/FetchHttpClient.d.ts +13 -0
- package/dist/redirect-bridge/custom_auth/core/network_client/http_client/FetchHttpClient.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/network_client/http_client/IHttpClient.d.ts +35 -0
- package/dist/redirect-bridge/custom_auth/core/network_client/http_client/IHttpClient.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/telemetry/PublicApiId.d.ts +25 -0
- package/dist/redirect-bridge/custom_auth/core/telemetry/PublicApiId.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/utils/ArgumentValidator.d.ts +4 -0
- package/dist/redirect-bridge/custom_auth/core/utils/ArgumentValidator.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/core/utils/UrlUtils.d.ts +3 -0
- package/dist/redirect-bridge/custom_auth/core/utils/UrlUtils.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/get_account/auth_flow/CustomAuthAccountData.d.ts +47 -0
- package/dist/redirect-bridge/custom_auth/get_account/auth_flow/CustomAuthAccountData.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/get_account/auth_flow/error_type/GetAccountError.d.ts +32 -0
- package/dist/redirect-bridge/custom_auth/get_account/auth_flow/error_type/GetAccountError.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.d.ts +37 -0
- package/dist/redirect-bridge/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/get_account/auth_flow/result/GetAccountResult.d.ts +36 -0
- package/dist/redirect-bridge/custom_auth/get_account/auth_flow/result/GetAccountResult.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/get_account/auth_flow/result/SignOutResult.d.ts +35 -0
- package/dist/redirect-bridge/custom_auth/get_account/auth_flow/result/SignOutResult.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/get_account/auth_flow/state/GetAccessTokenState.d.ts +20 -0
- package/dist/redirect-bridge/custom_auth/get_account/auth_flow/state/GetAccessTokenState.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/get_account/auth_flow/state/GetAccountState.d.ts +20 -0
- package/dist/redirect-bridge/custom_auth/get_account/auth_flow/state/GetAccountState.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/get_account/auth_flow/state/SignOutState.d.ts +20 -0
- package/dist/redirect-bridge/custom_auth/get_account/auth_flow/state/SignOutState.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.d.ts +21 -0
- package/dist/redirect-bridge/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/index.d.ts +84 -0
- package/dist/redirect-bridge/custom_auth/index.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/operating_context/CustomAuthOperatingContext.d.ts +13 -0
- package/dist/redirect-bridge/custom_auth/operating_context/CustomAuthOperatingContext.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.d.ts +40 -0
- package/dist/redirect-bridge/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.d.ts +37 -0
- package/dist/redirect-bridge/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.d.ts +37 -0
- package/dist/redirect-bridge/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.d.ts +37 -0
- package/dist/redirect-bridge/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.d.ts +32 -0
- package/dist/redirect-bridge/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.d.ts +27 -0
- package/dist/redirect-bridge/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.d.ts +11 -0
- package/dist/redirect-bridge/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.d.ts +11 -0
- package/dist/redirect-bridge/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.d.ts +16 -0
- package/dist/redirect-bridge/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/reset_password/auth_flow/state/ResetPasswordState.d.ts +6 -0
- package/dist/redirect-bridge/custom_auth/reset_password/auth_flow/state/ResetPasswordState.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts +19 -0
- package/dist/redirect-bridge/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/reset_password/interaction_client/ResetPasswordClient.d.ts +33 -0
- package/dist/redirect-bridge/custom_auth/reset_password/interaction_client/ResetPasswordClient.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/reset_password/interaction_client/parameter/ResetPasswordParams.d.ts +19 -0
- package/dist/redirect-bridge/custom_auth/reset_password/interaction_client/parameter/ResetPasswordParams.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/reset_password/interaction_client/result/ResetPasswordActionResult.d.ts +14 -0
- package/dist/redirect-bridge/custom_auth/reset_password/interaction_client/result/ResetPasswordActionResult.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/sign_in/auth_flow/SignInScenario.d.ts +6 -0
- package/dist/redirect-bridge/custom_auth/sign_in/auth_flow/SignInScenario.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/sign_in/auth_flow/error_type/SignInError.d.ts +45 -0
- package/dist/redirect-bridge/custom_auth/sign_in/auth_flow/error_type/SignInError.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.d.ts +37 -0
- package/dist/redirect-bridge/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts +72 -0
- package/dist/redirect-bridge/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts +51 -0
- package/dist/redirect-bridge/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts +46 -0
- package/dist/redirect-bridge/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts +33 -0
- package/dist/redirect-bridge/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/sign_in/auth_flow/state/SignInCompletedState.d.ts +12 -0
- package/dist/redirect-bridge/custom_auth/sign_in/auth_flow/state/SignInCompletedState.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts +17 -0
- package/dist/redirect-bridge/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/sign_in/auth_flow/state/SignInFailedState.d.ts +11 -0
- package/dist/redirect-bridge/custom_auth/sign_in/auth_flow/state/SignInFailedState.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.d.ts +21 -0
- package/dist/redirect-bridge/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/sign_in/auth_flow/state/SignInState.d.ts +22 -0
- package/dist/redirect-bridge/custom_auth/sign_in/auth_flow/state/SignInState.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts +25 -0
- package/dist/redirect-bridge/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/sign_in/interaction_client/SignInClient.d.ts +49 -0
- package/dist/redirect-bridge/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/sign_in/interaction_client/parameter/SignInParams.d.ts +32 -0
- package/dist/redirect-bridge/custom_auth/sign_in/interaction_client/parameter/SignInParams.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts +43 -0
- package/dist/redirect-bridge/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/sign_up/auth_flow/error_type/SignUpError.d.ts +62 -0
- package/dist/redirect-bridge/custom_auth/sign_up/auth_flow/error_type/SignUpError.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.d.ts +37 -0
- package/dist/redirect-bridge/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/sign_up/auth_flow/result/SignUpResult.d.ts +53 -0
- package/dist/redirect-bridge/custom_auth/sign_up/auth_flow/result/SignUpResult.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.d.ts +37 -0
- package/dist/redirect-bridge/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.d.ts +53 -0
- package/dist/redirect-bridge/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.d.ts +45 -0
- package/dist/redirect-bridge/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.d.ts +25 -0
- package/dist/redirect-bridge/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.d.ts +32 -0
- package/dist/redirect-bridge/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.d.ts +11 -0
- package/dist/redirect-bridge/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/sign_up/auth_flow/state/SignUpFailedState.d.ts +11 -0
- package/dist/redirect-bridge/custom_auth/sign_up/auth_flow/state/SignUpFailedState.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.d.ts +16 -0
- package/dist/redirect-bridge/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/sign_up/auth_flow/state/SignUpState.d.ts +6 -0
- package/dist/redirect-bridge/custom_auth/sign_up/auth_flow/state/SignUpState.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts +24 -0
- package/dist/redirect-bridge/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/sign_up/interaction_client/SignUpClient.d.ts +41 -0
- package/dist/redirect-bridge/custom_auth/sign_up/interaction_client/SignUpClient.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/sign_up/interaction_client/parameter/SignUpParams.d.ts +26 -0
- package/dist/redirect-bridge/custom_auth/sign_up/interaction_client/parameter/SignUpParams.d.ts.map +1 -0
- package/dist/redirect-bridge/custom_auth/sign_up/interaction_client/result/SignUpActionResult.d.ts +34 -0
- package/dist/redirect-bridge/custom_auth/sign_up/interaction_client/result/SignUpActionResult.d.ts.map +1 -0
- package/dist/redirect-bridge/encode/Base64Decode.d.ts +15 -0
- package/dist/redirect-bridge/encode/Base64Decode.d.ts.map +1 -0
- package/dist/redirect-bridge/encode/Base64Decode.mjs +44 -0
- package/dist/redirect-bridge/encode/Base64Decode.mjs.map +1 -0
- package/dist/redirect-bridge/encode/Base64Encode.d.ts +20 -0
- package/dist/redirect-bridge/encode/Base64Encode.d.ts.map +1 -0
- package/dist/redirect-bridge/error/BrowserAuthError.d.ts +12 -0
- package/dist/redirect-bridge/error/BrowserAuthError.d.ts.map +1 -0
- package/dist/redirect-bridge/error/BrowserAuthError.mjs +27 -0
- package/dist/redirect-bridge/error/BrowserAuthError.mjs.map +1 -0
- package/dist/redirect-bridge/error/BrowserAuthErrorCodes.d.ts +53 -0
- package/dist/redirect-bridge/error/BrowserAuthErrorCodes.d.ts.map +1 -0
- package/dist/redirect-bridge/error/BrowserAuthErrorCodes.mjs +14 -0
- package/dist/redirect-bridge/error/BrowserAuthErrorCodes.mjs.map +1 -0
- package/dist/redirect-bridge/error/BrowserConfigurationAuthError.d.ts +11 -0
- package/dist/redirect-bridge/error/BrowserConfigurationAuthError.d.ts.map +1 -0
- package/dist/redirect-bridge/error/BrowserConfigurationAuthErrorCodes.d.ts +4 -0
- package/dist/redirect-bridge/error/BrowserConfigurationAuthErrorCodes.d.ts.map +1 -0
- package/dist/redirect-bridge/error/NativeAuthError.d.ts +27 -0
- package/dist/redirect-bridge/error/NativeAuthError.d.ts.map +1 -0
- package/dist/redirect-bridge/error/NativeAuthErrorCodes.d.ts +5 -0
- package/dist/redirect-bridge/error/NativeAuthErrorCodes.d.ts.map +1 -0
- package/dist/redirect-bridge/error/NestedAppAuthError.d.ts +6 -0
- package/dist/redirect-bridge/error/NestedAppAuthError.d.ts.map +1 -0
- package/dist/redirect-bridge/event/EventHandler.d.ts +49 -0
- package/dist/redirect-bridge/event/EventHandler.d.ts.map +1 -0
- package/dist/redirect-bridge/event/EventMessage.d.ts +40 -0
- package/dist/redirect-bridge/event/EventMessage.d.ts.map +1 -0
- package/dist/redirect-bridge/event/EventType.d.ts +24 -0
- package/dist/redirect-bridge/event/EventType.d.ts.map +1 -0
- package/dist/redirect-bridge/index.d.ts +73 -0
- package/dist/redirect-bridge/index.d.ts.map +1 -0
- package/dist/redirect-bridge/interaction_client/BaseInteractionClient.d.ts +77 -0
- package/dist/redirect-bridge/interaction_client/BaseInteractionClient.d.ts.map +1 -0
- package/dist/redirect-bridge/interaction_client/HybridSpaAuthorizationCodeClient.d.ts +5 -0
- package/dist/redirect-bridge/interaction_client/HybridSpaAuthorizationCodeClient.d.ts.map +1 -0
- package/dist/redirect-bridge/interaction_client/PlatformAuthInteractionClient.d.ts +151 -0
- package/dist/redirect-bridge/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -0
- package/dist/redirect-bridge/interaction_client/PopupClient.d.ts +106 -0
- package/dist/redirect-bridge/interaction_client/PopupClient.d.ts.map +1 -0
- package/dist/redirect-bridge/interaction_client/RedirectClient.d.ts +77 -0
- package/dist/redirect-bridge/interaction_client/RedirectClient.d.ts.map +1 -0
- package/dist/redirect-bridge/interaction_client/SilentAuthCodeClient.d.ts +24 -0
- package/dist/redirect-bridge/interaction_client/SilentAuthCodeClient.d.ts.map +1 -0
- package/dist/redirect-bridge/interaction_client/SilentCacheClient.d.ts +17 -0
- package/dist/redirect-bridge/interaction_client/SilentCacheClient.d.ts.map +1 -0
- package/dist/redirect-bridge/interaction_client/SilentIframeClient.d.ts +43 -0
- package/dist/redirect-bridge/interaction_client/SilentIframeClient.d.ts.map +1 -0
- package/dist/redirect-bridge/interaction_client/SilentRefreshClient.d.ts +32 -0
- package/dist/redirect-bridge/interaction_client/SilentRefreshClient.d.ts.map +1 -0
- package/dist/redirect-bridge/interaction_client/StandardInteractionClient.d.ts +76 -0
- package/dist/redirect-bridge/interaction_client/StandardInteractionClient.d.ts.map +1 -0
- package/dist/redirect-bridge/interaction_handler/InteractionHandler.d.ts +32 -0
- package/dist/redirect-bridge/interaction_handler/InteractionHandler.d.ts.map +1 -0
- package/dist/redirect-bridge/interaction_handler/SilentHandler.d.ts +11 -0
- package/dist/redirect-bridge/interaction_handler/SilentHandler.d.ts.map +1 -0
- package/dist/redirect-bridge/naa/AccountInfo.d.ts +13 -0
- package/dist/redirect-bridge/naa/AccountInfo.d.ts.map +1 -0
- package/dist/redirect-bridge/naa/AuthBridge.d.ts +9 -0
- package/dist/redirect-bridge/naa/AuthBridge.d.ts.map +1 -0
- package/dist/redirect-bridge/naa/AuthResult.d.ts +7 -0
- package/dist/redirect-bridge/naa/AuthResult.d.ts.map +1 -0
- package/dist/redirect-bridge/naa/BridgeAccountContext.d.ts +13 -0
- package/dist/redirect-bridge/naa/BridgeAccountContext.d.ts.map +1 -0
- package/dist/redirect-bridge/naa/BridgeCapabilities.d.ts +4 -0
- package/dist/redirect-bridge/naa/BridgeCapabilities.d.ts.map +1 -0
- package/dist/redirect-bridge/naa/BridgeError.d.ts +10 -0
- package/dist/redirect-bridge/naa/BridgeError.d.ts.map +1 -0
- package/dist/redirect-bridge/naa/BridgeProxy.d.ts +69 -0
- package/dist/redirect-bridge/naa/BridgeProxy.d.ts.map +1 -0
- package/dist/redirect-bridge/naa/BridgeRequest.d.ts +8 -0
- package/dist/redirect-bridge/naa/BridgeRequest.d.ts.map +1 -0
- package/dist/redirect-bridge/naa/BridgeRequestEnvelope.d.ts +13 -0
- package/dist/redirect-bridge/naa/BridgeRequestEnvelope.d.ts.map +1 -0
- package/dist/redirect-bridge/naa/BridgeResponseEnvelope.d.ts +14 -0
- package/dist/redirect-bridge/naa/BridgeResponseEnvelope.d.ts.map +1 -0
- package/dist/redirect-bridge/naa/BridgeStatusCode.d.ts +12 -0
- package/dist/redirect-bridge/naa/BridgeStatusCode.d.ts.map +1 -0
- package/dist/redirect-bridge/naa/IBridgeProxy.d.ts +11 -0
- package/dist/redirect-bridge/naa/IBridgeProxy.d.ts.map +1 -0
- package/dist/redirect-bridge/naa/InitContext.d.ts +9 -0
- package/dist/redirect-bridge/naa/InitContext.d.ts.map +1 -0
- package/dist/redirect-bridge/naa/TokenRequest.d.ts +20 -0
- package/dist/redirect-bridge/naa/TokenRequest.d.ts.map +1 -0
- package/dist/redirect-bridge/naa/TokenResponse.d.ts +14 -0
- package/dist/redirect-bridge/naa/TokenResponse.d.ts.map +1 -0
- package/dist/redirect-bridge/naa/mapping/NestedAppAuthAdapter.d.ts +36 -0
- package/dist/redirect-bridge/naa/mapping/NestedAppAuthAdapter.d.ts.map +1 -0
- package/dist/redirect-bridge/navigation/INavigationClient.d.ts +17 -0
- package/dist/redirect-bridge/navigation/INavigationClient.d.ts.map +1 -0
- package/dist/redirect-bridge/navigation/NavigationClient.d.ts +23 -0
- package/dist/redirect-bridge/navigation/NavigationClient.d.ts.map +1 -0
- package/dist/redirect-bridge/navigation/NavigationClient.mjs +48 -0
- package/dist/redirect-bridge/navigation/NavigationClient.mjs.map +1 -0
- package/dist/redirect-bridge/navigation/NavigationOptions.d.ts +13 -0
- package/dist/redirect-bridge/navigation/NavigationOptions.d.ts.map +1 -0
- package/dist/redirect-bridge/network/FetchClient.d.ts +21 -0
- package/dist/redirect-bridge/network/FetchClient.d.ts.map +1 -0
- package/dist/redirect-bridge/operatingcontext/BaseOperatingContext.d.ts +43 -0
- package/dist/redirect-bridge/operatingcontext/BaseOperatingContext.d.ts.map +1 -0
- package/dist/redirect-bridge/operatingcontext/NestedAppOperatingContext.d.ts +41 -0
- package/dist/redirect-bridge/operatingcontext/NestedAppOperatingContext.d.ts.map +1 -0
- package/dist/redirect-bridge/operatingcontext/StandardOperatingContext.d.ts +26 -0
- package/dist/redirect-bridge/operatingcontext/StandardOperatingContext.d.ts.map +1 -0
- package/dist/redirect-bridge/operatingcontext/UnknownOperatingContext.d.ts +26 -0
- package/dist/redirect-bridge/operatingcontext/UnknownOperatingContext.d.ts.map +1 -0
- package/dist/redirect-bridge/packageMetadata.d.ts +3 -0
- package/dist/redirect-bridge/packageMetadata.d.ts.map +1 -0
- package/dist/redirect-bridge/protocol/Authorize.d.ts +69 -0
- package/dist/redirect-bridge/protocol/Authorize.d.ts.map +1 -0
- package/dist/redirect-bridge/redirect_bridge/index.d.ts +16 -0
- package/dist/redirect-bridge/redirect_bridge/index.d.ts.map +1 -0
- package/dist/redirect-bridge/redirect_bridge/index.mjs +108 -0
- package/dist/redirect-bridge/redirect_bridge/index.mjs.map +1 -0
- package/dist/redirect-bridge/request/AuthorizationCodeRequest.d.ts +9 -0
- package/dist/redirect-bridge/request/AuthorizationCodeRequest.d.ts.map +1 -0
- package/dist/redirect-bridge/request/ClearCacheRequest.d.ts +11 -0
- package/dist/redirect-bridge/request/ClearCacheRequest.d.ts.map +1 -0
- package/dist/redirect-bridge/request/EndSessionPopupRequest.d.ts +21 -0
- package/dist/redirect-bridge/request/EndSessionPopupRequest.d.ts.map +1 -0
- package/dist/redirect-bridge/request/EndSessionRequest.d.ts +14 -0
- package/dist/redirect-bridge/request/EndSessionRequest.d.ts.map +1 -0
- package/dist/redirect-bridge/request/HandleRedirectPromiseOptions.d.ts +5 -0
- package/dist/redirect-bridge/request/HandleRedirectPromiseOptions.d.ts.map +1 -0
- package/dist/redirect-bridge/request/InitializeApplicationRequest.d.ts +9 -0
- package/dist/redirect-bridge/request/InitializeApplicationRequest.d.ts.map +1 -0
- package/dist/redirect-bridge/request/PopupRequest.d.ts +37 -0
- package/dist/redirect-bridge/request/PopupRequest.d.ts.map +1 -0
- package/dist/redirect-bridge/request/PopupWindowAttributes.d.ts +16 -0
- package/dist/redirect-bridge/request/PopupWindowAttributes.d.ts.map +1 -0
- package/dist/redirect-bridge/request/RedirectRequest.d.ts +32 -0
- package/dist/redirect-bridge/request/RedirectRequest.d.ts.map +1 -0
- package/dist/redirect-bridge/request/RequestHelpers.d.ts +28 -0
- package/dist/redirect-bridge/request/RequestHelpers.d.ts.map +1 -0
- package/dist/redirect-bridge/request/SilentRequest.d.ts +32 -0
- package/dist/redirect-bridge/request/SilentRequest.d.ts.map +1 -0
- package/dist/redirect-bridge/request/SsoSilentRequest.d.ts +27 -0
- package/dist/redirect-bridge/request/SsoSilentRequest.d.ts.map +1 -0
- package/dist/redirect-bridge/response/AuthenticationResult.d.ts +5 -0
- package/dist/redirect-bridge/response/AuthenticationResult.d.ts.map +1 -0
- package/dist/redirect-bridge/response/ResponseHandler.d.ts +8 -0
- package/dist/redirect-bridge/response/ResponseHandler.d.ts.map +1 -0
- package/dist/redirect-bridge/telemetry/BrowserPerformanceClient.d.ts +18 -0
- package/dist/redirect-bridge/telemetry/BrowserPerformanceClient.d.ts.map +1 -0
- package/dist/redirect-bridge/telemetry/BrowserPerformanceEvents.d.ts +130 -0
- package/dist/redirect-bridge/telemetry/BrowserPerformanceEvents.d.ts.map +1 -0
- package/dist/redirect-bridge/telemetry/BrowserPerformanceMeasurement.d.ts +22 -0
- package/dist/redirect-bridge/telemetry/BrowserPerformanceMeasurement.d.ts.map +1 -0
- package/dist/redirect-bridge/telemetry/BrowserRootPerformanceEvents.d.ts +35 -0
- package/dist/redirect-bridge/telemetry/BrowserRootPerformanceEvents.d.ts.map +1 -0
- package/dist/redirect-bridge/utils/BrowserConstants.d.ts +162 -0
- package/dist/redirect-bridge/utils/BrowserConstants.d.ts.map +1 -0
- package/dist/redirect-bridge/utils/BrowserConstants.mjs +38 -0
- package/dist/redirect-bridge/utils/BrowserConstants.mjs.map +1 -0
- package/dist/redirect-bridge/utils/BrowserProtocolUtils.d.ts +12 -0
- package/dist/redirect-bridge/utils/BrowserProtocolUtils.d.ts.map +1 -0
- package/dist/redirect-bridge/utils/BrowserUtils.d.ts +111 -0
- package/dist/redirect-bridge/utils/BrowserUtils.d.ts.map +1 -0
- package/dist/redirect-bridge/utils/BrowserUtils.mjs +97 -0
- package/dist/redirect-bridge/utils/BrowserUtils.mjs.map +1 -0
- package/dist/redirect-bridge/utils/Helpers.d.ts +7 -0
- package/dist/redirect-bridge/utils/Helpers.d.ts.map +1 -0
- package/dist/redirect-bridge/utils/MsalFrameStatsUtils.d.ts +3 -0
- package/dist/redirect-bridge/utils/MsalFrameStatsUtils.d.ts.map +1 -0
- package/dist/redirect_bridge/index.d.ts +16 -0
- package/dist/redirect_bridge/index.d.ts.map +1 -0
- package/dist/request/AuthorizationCodeRequest.d.ts +1 -1
- package/dist/request/AuthorizationCodeRequest.d.ts.map +1 -1
- package/dist/request/EndSessionPopupRequest.d.ts +1 -1
- package/dist/request/EndSessionPopupRequest.d.ts.map +1 -1
- package/dist/request/EndSessionRequest.d.ts +1 -3
- package/dist/request/EndSessionRequest.d.ts.map +1 -1
- package/dist/request/HandleRedirectPromiseOptions.d.ts +5 -0
- package/dist/request/HandleRedirectPromiseOptions.d.ts.map +1 -0
- package/dist/request/PopupRequest.d.ts +5 -4
- package/dist/request/PopupRequest.d.ts.map +1 -1
- package/dist/request/RedirectRequest.d.ts +3 -11
- package/dist/request/RedirectRequest.d.ts.map +1 -1
- package/dist/request/RequestHelpers.d.ts +7 -3
- package/dist/request/RequestHelpers.d.ts.map +1 -1
- package/dist/request/RequestHelpers.mjs +21 -28
- package/dist/request/RequestHelpers.mjs.map +1 -1
- package/dist/request/SilentRequest.d.ts +3 -4
- package/dist/request/SilentRequest.d.ts.map +1 -1
- package/dist/request/SsoSilentRequest.d.ts +3 -4
- package/dist/request/SsoSilentRequest.d.ts.map +1 -1
- package/dist/response/ResponseHandler.d.ts +1 -1
- package/dist/response/ResponseHandler.d.ts.map +1 -1
- package/dist/response/ResponseHandler.mjs +5 -5
- package/dist/response/ResponseHandler.mjs.map +1 -1
- package/dist/telemetry/BrowserPerformanceClient.d.ts +2 -19
- package/dist/telemetry/BrowserPerformanceClient.d.ts.map +1 -1
- package/dist/telemetry/BrowserPerformanceClient.mjs +3 -58
- package/dist/telemetry/BrowserPerformanceClient.mjs.map +1 -1
- package/dist/telemetry/BrowserPerformanceEvents.d.ts +130 -0
- package/dist/telemetry/BrowserPerformanceEvents.d.ts.map +1 -0
- package/dist/telemetry/BrowserPerformanceEvents.mjs +124 -0
- package/dist/telemetry/BrowserPerformanceEvents.mjs.map +1 -0
- package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
- package/dist/telemetry/BrowserRootPerformanceEvents.d.ts +35 -0
- package/dist/telemetry/BrowserRootPerformanceEvents.d.ts.map +1 -0
- package/dist/telemetry/BrowserRootPerformanceEvents.mjs +45 -0
- package/dist/telemetry/BrowserRootPerformanceEvents.mjs.map +1 -0
- package/dist/utils/BrowserConstants.d.ts +0 -12
- package/dist/utils/BrowserConstants.d.ts.map +1 -1
- package/dist/utils/BrowserConstants.mjs +3 -15
- package/dist/utils/BrowserConstants.mjs.map +1 -1
- package/dist/utils/BrowserProtocolUtils.mjs +2 -2
- package/dist/utils/BrowserProtocolUtils.mjs.map +1 -1
- package/dist/utils/BrowserUtils.d.ts +36 -2
- package/dist/utils/BrowserUtils.d.ts.map +1 -1
- package/dist/utils/BrowserUtils.mjs +155 -14
- package/dist/utils/BrowserUtils.mjs.map +1 -1
- package/dist/utils/Helpers.mjs +1 -1
- package/dist/utils/MsalFrameStatsUtils.d.ts +1 -1
- package/dist/utils/MsalFrameStatsUtils.d.ts.map +1 -1
- package/dist/utils/MsalFrameStatsUtils.mjs +3 -3
- package/dist/utils/MsalFrameStatsUtils.mjs.map +1 -1
- package/lib/custom-auth-path/log-strings-mapping.json +1703 -0
- package/lib/custom-auth-path/msal-custom-auth.cjs +6205 -7144
- package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
- package/lib/custom-auth-path/types/app/IPublicClientApplication.d.ts +3 -10
- package/lib/custom-auth-path/types/app/IPublicClientApplication.d.ts.map +1 -1
- package/lib/custom-auth-path/types/app/PublicClientApplication.d.ts +6 -56
- package/lib/custom-auth-path/types/app/PublicClientApplication.d.ts.map +1 -1
- package/lib/custom-auth-path/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts.map +1 -1
- package/lib/custom-auth-path/types/broker/nativeBroker/PlatformAuthExtensionHandler.d.ts +1 -1
- package/lib/custom-auth-path/types/broker/nativeBroker/PlatformAuthExtensionHandler.d.ts.map +1 -1
- package/lib/custom-auth-path/types/broker/nativeBroker/PlatformAuthProvider.d.ts +12 -4
- package/lib/custom-auth-path/types/broker/nativeBroker/PlatformAuthProvider.d.ts.map +1 -1
- package/lib/custom-auth-path/types/cache/AccountManager.d.ts +0 -25
- package/lib/custom-auth-path/types/cache/AccountManager.d.ts.map +1 -1
- package/lib/custom-auth-path/types/cache/AsyncMemoryStorage.d.ts +14 -7
- package/lib/custom-auth-path/types/cache/AsyncMemoryStorage.d.ts.map +1 -1
- package/lib/custom-auth-path/types/cache/BrowserCacheManager.d.ts +24 -27
- package/lib/custom-auth-path/types/cache/BrowserCacheManager.d.ts.map +1 -1
- package/lib/custom-auth-path/types/cache/IAsyncStorage.d.ts +10 -5
- package/lib/custom-auth-path/types/cache/IAsyncStorage.d.ts.map +1 -1
- package/lib/custom-auth-path/types/cache/LocalStorage.d.ts.map +1 -1
- package/lib/custom-auth-path/types/cache/TokenCache.d.ts +8 -68
- package/lib/custom-auth-path/types/cache/TokenCache.d.ts.map +1 -1
- package/lib/custom-auth-path/types/config/Configuration.d.ts +8 -69
- package/lib/custom-auth-path/types/config/Configuration.d.ts.map +1 -1
- package/lib/custom-auth-path/types/controllers/IController.d.ts +2 -58
- package/lib/custom-auth-path/types/controllers/IController.d.ts.map +1 -1
- package/lib/custom-auth-path/types/controllers/NestedAppAuthController.d.ts +5 -49
- package/lib/custom-auth-path/types/controllers/NestedAppAuthController.d.ts.map +1 -1
- package/lib/custom-auth-path/types/controllers/StandardController.d.ts +10 -55
- package/lib/custom-auth-path/types/controllers/StandardController.d.ts.map +1 -1
- package/lib/custom-auth-path/types/controllers/UnknownOperatingContextController.d.ts +5 -18
- package/lib/custom-auth-path/types/controllers/UnknownOperatingContextController.d.ts.map +1 -1
- package/lib/custom-auth-path/types/crypto/BrowserCrypto.d.ts +1 -2
- package/lib/custom-auth-path/types/crypto/BrowserCrypto.d.ts.map +1 -1
- package/lib/custom-auth-path/types/crypto/CryptoOps.d.ts +4 -2
- package/lib/custom-auth-path/types/crypto/CryptoOps.d.ts.map +1 -1
- package/lib/custom-auth-path/types/crypto/PkceGenerator.d.ts.map +1 -1
- package/lib/custom-auth-path/types/crypto/SignedHttpRequest.d.ts +2 -1
- package/lib/custom-auth-path/types/crypto/SignedHttpRequest.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/CustomAuthConstants.d.ts +2 -2
- package/lib/custom-auth-path/types/custom_auth/CustomAuthConstants.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/CustomAuthAuthority.d.ts +2 -2
- package/lib/custom-auth-path/types/custom_auth/core/CustomAuthAuthority.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts +3 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts +2 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts +7 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts +2 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts +2 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts +6 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/JitClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/mfa/MfaClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/network_client/http_client/FetchHttpClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/reset_password/interaction_client/ResetPasswordClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts +2 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts +2 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts +2 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.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_up/interaction_client/SignUpClient.d.ts +4 -4
- package/lib/custom-auth-path/types/custom_auth/sign_up/interaction_client/SignUpClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/error/BrowserAuthError.d.ts +1 -246
- package/lib/custom-auth-path/types/error/BrowserAuthError.d.ts.map +1 -1
- package/lib/custom-auth-path/types/error/BrowserAuthErrorCodes.d.ts +3 -2
- package/lib/custom-auth-path/types/error/BrowserAuthErrorCodes.d.ts.map +1 -1
- package/lib/custom-auth-path/types/error/BrowserConfigurationAuthError.d.ts +0 -23
- package/lib/custom-auth-path/types/error/BrowserConfigurationAuthError.d.ts.map +1 -1
- package/lib/custom-auth-path/types/error/NativeAuthError.d.ts +0 -3
- package/lib/custom-auth-path/types/error/NativeAuthError.d.ts.map +1 -1
- package/lib/custom-auth-path/types/error/NativeAuthErrorCodes.d.ts +1 -0
- package/lib/custom-auth-path/types/error/NativeAuthErrorCodes.d.ts.map +1 -1
- package/lib/custom-auth-path/types/error/NestedAppAuthError.d.ts +0 -9
- package/lib/custom-auth-path/types/error/NestedAppAuthError.d.ts.map +1 -1
- package/lib/custom-auth-path/types/event/EventHandler.d.ts.map +1 -1
- package/lib/custom-auth-path/types/event/EventMessage.d.ts.map +1 -1
- package/lib/custom-auth-path/types/event/EventType.d.ts +3 -10
- package/lib/custom-auth-path/types/event/EventType.d.ts.map +1 -1
- package/lib/custom-auth-path/types/index.d.ts +34 -6
- package/lib/custom-auth-path/types/index.d.ts.map +1 -1
- package/lib/custom-auth-path/types/interaction_client/BaseInteractionClient.d.ts +50 -32
- package/lib/custom-auth-path/types/interaction_client/BaseInteractionClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/interaction_client/HybridSpaAuthorizationCodeClient.d.ts +2 -2
- package/lib/custom-auth-path/types/interaction_client/HybridSpaAuthorizationCodeClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/interaction_client/PlatformAuthInteractionClient.d.ts +5 -3
- package/lib/custom-auth-path/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/interaction_client/PopupClient.d.ts +1 -16
- 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 +8 -4
- package/lib/custom-auth-path/types/interaction_client/RedirectClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/interaction_client/SilentAuthCodeClient.d.ts +1 -1
- package/lib/custom-auth-path/types/interaction_client/SilentAuthCodeClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/interaction_client/SilentCacheClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/interaction_client/SilentIframeClient.d.ts +1 -1
- package/lib/custom-auth-path/types/interaction_client/SilentIframeClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/interaction_client/SilentRefreshClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/interaction_client/StandardInteractionClient.d.ts +17 -7
- package/lib/custom-auth-path/types/interaction_client/StandardInteractionClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/interaction_handler/InteractionHandler.d.ts +2 -3
- package/lib/custom-auth-path/types/interaction_handler/InteractionHandler.d.ts.map +1 -1
- package/lib/custom-auth-path/types/interaction_handler/SilentHandler.d.ts +2 -8
- package/lib/custom-auth-path/types/interaction_handler/SilentHandler.d.ts.map +1 -1
- package/lib/custom-auth-path/types/naa/mapping/NestedAppAuthAdapter.d.ts.map +1 -1
- package/lib/custom-auth-path/types/operatingcontext/BaseOperatingContext.d.ts +2 -1
- package/lib/custom-auth-path/types/operatingcontext/BaseOperatingContext.d.ts.map +1 -1
- package/lib/custom-auth-path/types/operatingcontext/NestedAppOperatingContext.d.ts +2 -1
- package/lib/custom-auth-path/types/operatingcontext/NestedAppOperatingContext.d.ts.map +1 -1
- package/lib/custom-auth-path/types/operatingcontext/StandardOperatingContext.d.ts +1 -1
- package/lib/custom-auth-path/types/operatingcontext/StandardOperatingContext.d.ts.map +1 -1
- package/lib/custom-auth-path/types/packageMetadata.d.ts +1 -1
- package/lib/custom-auth-path/types/packageMetadata.d.ts.map +1 -1
- package/lib/custom-auth-path/types/protocol/Authorize.d.ts.map +1 -1
- package/lib/custom-auth-path/types/redirect_bridge/index.d.ts +16 -0
- package/lib/custom-auth-path/types/redirect_bridge/index.d.ts.map +1 -0
- package/lib/custom-auth-path/types/request/AuthorizationCodeRequest.d.ts +1 -1
- package/lib/custom-auth-path/types/request/AuthorizationCodeRequest.d.ts.map +1 -1
- package/lib/custom-auth-path/types/request/EndSessionPopupRequest.d.ts +1 -1
- package/lib/custom-auth-path/types/request/EndSessionPopupRequest.d.ts.map +1 -1
- package/lib/custom-auth-path/types/request/EndSessionRequest.d.ts +1 -3
- package/lib/custom-auth-path/types/request/EndSessionRequest.d.ts.map +1 -1
- package/lib/custom-auth-path/types/request/HandleRedirectPromiseOptions.d.ts +5 -0
- package/lib/custom-auth-path/types/request/HandleRedirectPromiseOptions.d.ts.map +1 -0
- package/lib/custom-auth-path/types/request/PopupRequest.d.ts +5 -4
- package/lib/custom-auth-path/types/request/PopupRequest.d.ts.map +1 -1
- package/lib/custom-auth-path/types/request/RedirectRequest.d.ts +3 -11
- package/lib/custom-auth-path/types/request/RedirectRequest.d.ts.map +1 -1
- package/lib/custom-auth-path/types/request/RequestHelpers.d.ts +7 -3
- package/lib/custom-auth-path/types/request/RequestHelpers.d.ts.map +1 -1
- package/lib/custom-auth-path/types/request/SilentRequest.d.ts +3 -4
- package/lib/custom-auth-path/types/request/SilentRequest.d.ts.map +1 -1
- package/lib/custom-auth-path/types/request/SsoSilentRequest.d.ts +3 -4
- package/lib/custom-auth-path/types/request/SsoSilentRequest.d.ts.map +1 -1
- package/lib/custom-auth-path/types/response/ResponseHandler.d.ts +1 -1
- package/lib/custom-auth-path/types/response/ResponseHandler.d.ts.map +1 -1
- package/lib/custom-auth-path/types/telemetry/BrowserPerformanceClient.d.ts +2 -19
- package/lib/custom-auth-path/types/telemetry/BrowserPerformanceClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/telemetry/BrowserPerformanceEvents.d.ts +130 -0
- package/lib/custom-auth-path/types/telemetry/BrowserPerformanceEvents.d.ts.map +1 -0
- package/lib/custom-auth-path/types/telemetry/BrowserRootPerformanceEvents.d.ts +35 -0
- package/lib/custom-auth-path/types/telemetry/BrowserRootPerformanceEvents.d.ts.map +1 -0
- package/lib/custom-auth-path/types/utils/BrowserConstants.d.ts +0 -12
- package/lib/custom-auth-path/types/utils/BrowserConstants.d.ts.map +1 -1
- package/lib/custom-auth-path/types/utils/BrowserUtils.d.ts +36 -2
- package/lib/custom-auth-path/types/utils/BrowserUtils.d.ts.map +1 -1
- package/lib/custom-auth-path/types/utils/MsalFrameStatsUtils.d.ts +1 -1
- package/lib/custom-auth-path/types/utils/MsalFrameStatsUtils.d.ts.map +1 -1
- package/lib/log-strings-mapping.json +1135 -0
- package/lib/msal-browser.cjs +15223 -17702
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +15223 -17702
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +2 -68
- package/lib/redirect-bridge/msal-redirect-bridge.js +729 -0
- package/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -0
- package/lib/redirect-bridge/msal-redirect-bridge.min.js +2 -0
- package/lib/types/app/IPublicClientApplication.d.ts +3 -10
- package/lib/types/app/IPublicClientApplication.d.ts.map +1 -1
- package/lib/types/app/PublicClientApplication.d.ts +6 -56
- package/lib/types/app/PublicClientApplication.d.ts.map +1 -1
- package/lib/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts.map +1 -1
- package/lib/types/broker/nativeBroker/PlatformAuthExtensionHandler.d.ts +1 -1
- package/lib/types/broker/nativeBroker/PlatformAuthExtensionHandler.d.ts.map +1 -1
- package/lib/types/broker/nativeBroker/PlatformAuthProvider.d.ts +12 -4
- package/lib/types/broker/nativeBroker/PlatformAuthProvider.d.ts.map +1 -1
- package/lib/types/cache/AccountManager.d.ts +0 -25
- package/lib/types/cache/AccountManager.d.ts.map +1 -1
- package/lib/types/cache/AsyncMemoryStorage.d.ts +14 -7
- package/lib/types/cache/AsyncMemoryStorage.d.ts.map +1 -1
- package/lib/types/cache/BrowserCacheManager.d.ts +24 -27
- package/lib/types/cache/BrowserCacheManager.d.ts.map +1 -1
- package/lib/types/cache/IAsyncStorage.d.ts +10 -5
- package/lib/types/cache/IAsyncStorage.d.ts.map +1 -1
- package/lib/types/cache/LocalStorage.d.ts.map +1 -1
- package/lib/types/cache/TokenCache.d.ts +8 -68
- package/lib/types/cache/TokenCache.d.ts.map +1 -1
- package/lib/types/config/Configuration.d.ts +8 -69
- package/lib/types/config/Configuration.d.ts.map +1 -1
- package/lib/types/controllers/IController.d.ts +2 -58
- package/lib/types/controllers/IController.d.ts.map +1 -1
- package/lib/types/controllers/NestedAppAuthController.d.ts +5 -49
- package/lib/types/controllers/NestedAppAuthController.d.ts.map +1 -1
- package/lib/types/controllers/StandardController.d.ts +10 -55
- package/lib/types/controllers/StandardController.d.ts.map +1 -1
- package/lib/types/controllers/UnknownOperatingContextController.d.ts +5 -18
- package/lib/types/controllers/UnknownOperatingContextController.d.ts.map +1 -1
- package/lib/types/crypto/BrowserCrypto.d.ts +1 -2
- package/lib/types/crypto/BrowserCrypto.d.ts.map +1 -1
- package/lib/types/crypto/CryptoOps.d.ts +4 -2
- package/lib/types/crypto/CryptoOps.d.ts.map +1 -1
- package/lib/types/crypto/PkceGenerator.d.ts.map +1 -1
- package/lib/types/crypto/SignedHttpRequest.d.ts +2 -1
- package/lib/types/crypto/SignedHttpRequest.d.ts.map +1 -1
- package/lib/types/custom_auth/CustomAuthConstants.d.ts +2 -2
- package/lib/types/custom_auth/CustomAuthConstants.d.ts.map +1 -1
- package/lib/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
- package/lib/types/custom_auth/core/CustomAuthAuthority.d.ts +2 -2
- package/lib/types/custom_auth/core/CustomAuthAuthority.d.ts.map +1 -1
- package/lib/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts +3 -0
- package/lib/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts.map +1 -1
- package/lib/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts +2 -0
- package/lib/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts.map +1 -1
- package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts +7 -0
- package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts.map +1 -1
- package/lib/types/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts +2 -0
- package/lib/types/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts.map +1 -1
- package/lib/types/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts +2 -0
- package/lib/types/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts.map +1 -1
- package/lib/types/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts +6 -0
- package/lib/types/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts.map +1 -1
- package/lib/types/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts.map +1 -1
- package/lib/types/custom_auth/core/interaction_client/jit/JitClient.d.ts.map +1 -1
- package/lib/types/custom_auth/core/interaction_client/mfa/MfaClient.d.ts.map +1 -1
- package/lib/types/custom_auth/core/network_client/http_client/FetchHttpClient.d.ts.map +1 -1
- package/lib/types/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.d.ts.map +1 -1
- package/lib/types/custom_auth/reset_password/interaction_client/ResetPasswordClient.d.ts.map +1 -1
- package/lib/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts +2 -0
- package/lib/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts.map +1 -1
- package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts +2 -0
- package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts.map +1 -1
- package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts +2 -0
- package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.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_up/interaction_client/SignUpClient.d.ts +4 -4
- package/lib/types/custom_auth/sign_up/interaction_client/SignUpClient.d.ts.map +1 -1
- package/lib/types/error/BrowserAuthError.d.ts +1 -246
- package/lib/types/error/BrowserAuthError.d.ts.map +1 -1
- package/lib/types/error/BrowserAuthErrorCodes.d.ts +3 -2
- package/lib/types/error/BrowserAuthErrorCodes.d.ts.map +1 -1
- package/lib/types/error/BrowserConfigurationAuthError.d.ts +0 -23
- package/lib/types/error/BrowserConfigurationAuthError.d.ts.map +1 -1
- package/lib/types/error/NativeAuthError.d.ts +0 -3
- package/lib/types/error/NativeAuthError.d.ts.map +1 -1
- package/lib/types/error/NativeAuthErrorCodes.d.ts +1 -0
- package/lib/types/error/NativeAuthErrorCodes.d.ts.map +1 -1
- package/lib/types/error/NestedAppAuthError.d.ts +0 -9
- package/lib/types/error/NestedAppAuthError.d.ts.map +1 -1
- package/lib/types/event/EventHandler.d.ts.map +1 -1
- package/lib/types/event/EventMessage.d.ts.map +1 -1
- package/lib/types/event/EventType.d.ts +3 -10
- package/lib/types/event/EventType.d.ts.map +1 -1
- package/lib/types/index.d.ts +34 -6
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/interaction_client/BaseInteractionClient.d.ts +50 -32
- package/lib/types/interaction_client/BaseInteractionClient.d.ts.map +1 -1
- package/lib/types/interaction_client/HybridSpaAuthorizationCodeClient.d.ts +2 -2
- package/lib/types/interaction_client/HybridSpaAuthorizationCodeClient.d.ts.map +1 -1
- package/lib/types/interaction_client/PlatformAuthInteractionClient.d.ts +5 -3
- package/lib/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/lib/types/interaction_client/PopupClient.d.ts +1 -16
- package/lib/types/interaction_client/PopupClient.d.ts.map +1 -1
- package/lib/types/interaction_client/RedirectClient.d.ts +8 -4
- package/lib/types/interaction_client/RedirectClient.d.ts.map +1 -1
- package/lib/types/interaction_client/SilentAuthCodeClient.d.ts +1 -1
- package/lib/types/interaction_client/SilentAuthCodeClient.d.ts.map +1 -1
- package/lib/types/interaction_client/SilentCacheClient.d.ts.map +1 -1
- package/lib/types/interaction_client/SilentIframeClient.d.ts +1 -1
- package/lib/types/interaction_client/SilentIframeClient.d.ts.map +1 -1
- package/lib/types/interaction_client/SilentRefreshClient.d.ts.map +1 -1
- package/lib/types/interaction_client/StandardInteractionClient.d.ts +17 -7
- package/lib/types/interaction_client/StandardInteractionClient.d.ts.map +1 -1
- package/lib/types/interaction_handler/InteractionHandler.d.ts +2 -3
- package/lib/types/interaction_handler/InteractionHandler.d.ts.map +1 -1
- package/lib/types/interaction_handler/SilentHandler.d.ts +2 -8
- package/lib/types/interaction_handler/SilentHandler.d.ts.map +1 -1
- package/lib/types/naa/mapping/NestedAppAuthAdapter.d.ts.map +1 -1
- package/lib/types/operatingcontext/BaseOperatingContext.d.ts +2 -1
- package/lib/types/operatingcontext/BaseOperatingContext.d.ts.map +1 -1
- package/lib/types/operatingcontext/NestedAppOperatingContext.d.ts +2 -1
- package/lib/types/operatingcontext/NestedAppOperatingContext.d.ts.map +1 -1
- package/lib/types/operatingcontext/StandardOperatingContext.d.ts +1 -1
- package/lib/types/operatingcontext/StandardOperatingContext.d.ts.map +1 -1
- package/lib/types/packageMetadata.d.ts +1 -1
- package/lib/types/packageMetadata.d.ts.map +1 -1
- package/lib/types/protocol/Authorize.d.ts.map +1 -1
- package/lib/types/redirect_bridge/index.d.ts +16 -0
- package/lib/types/redirect_bridge/index.d.ts.map +1 -0
- package/lib/types/request/AuthorizationCodeRequest.d.ts +1 -1
- package/lib/types/request/AuthorizationCodeRequest.d.ts.map +1 -1
- package/lib/types/request/EndSessionPopupRequest.d.ts +1 -1
- package/lib/types/request/EndSessionPopupRequest.d.ts.map +1 -1
- package/lib/types/request/EndSessionRequest.d.ts +1 -3
- package/lib/types/request/EndSessionRequest.d.ts.map +1 -1
- package/lib/types/request/HandleRedirectPromiseOptions.d.ts +5 -0
- package/lib/types/request/HandleRedirectPromiseOptions.d.ts.map +1 -0
- package/lib/types/request/PopupRequest.d.ts +5 -4
- package/lib/types/request/PopupRequest.d.ts.map +1 -1
- package/lib/types/request/RedirectRequest.d.ts +3 -11
- package/lib/types/request/RedirectRequest.d.ts.map +1 -1
- package/lib/types/request/RequestHelpers.d.ts +7 -3
- package/lib/types/request/RequestHelpers.d.ts.map +1 -1
- package/lib/types/request/SilentRequest.d.ts +3 -4
- package/lib/types/request/SilentRequest.d.ts.map +1 -1
- package/lib/types/request/SsoSilentRequest.d.ts +3 -4
- package/lib/types/request/SsoSilentRequest.d.ts.map +1 -1
- package/lib/types/response/ResponseHandler.d.ts +1 -1
- package/lib/types/response/ResponseHandler.d.ts.map +1 -1
- package/lib/types/telemetry/BrowserPerformanceClient.d.ts +2 -19
- package/lib/types/telemetry/BrowserPerformanceClient.d.ts.map +1 -1
- package/lib/types/telemetry/BrowserPerformanceEvents.d.ts +130 -0
- package/lib/types/telemetry/BrowserPerformanceEvents.d.ts.map +1 -0
- package/lib/types/telemetry/BrowserRootPerformanceEvents.d.ts +35 -0
- package/lib/types/telemetry/BrowserRootPerformanceEvents.d.ts.map +1 -0
- package/lib/types/utils/BrowserConstants.d.ts +0 -12
- package/lib/types/utils/BrowserConstants.d.ts.map +1 -1
- package/lib/types/utils/BrowserUtils.d.ts +36 -2
- package/lib/types/utils/BrowserUtils.d.ts.map +1 -1
- package/lib/types/utils/MsalFrameStatsUtils.d.ts +1 -1
- package/lib/types/utils/MsalFrameStatsUtils.d.ts.map +1 -1
- package/package.json +16 -5
- package/src/app/IPublicClientApplication.ts +5 -37
- package/src/app/PublicClientApplication.ts +20 -96
- package/src/broker/nativeBroker/PlatformAuthDOMHandler.ts +30 -14
- package/src/broker/nativeBroker/PlatformAuthExtensionHandler.ts +57 -32
- package/src/broker/nativeBroker/PlatformAuthProvider.ts +48 -41
- package/src/cache/AccountManager.ts +11 -125
- package/src/cache/AsyncMemoryStorage.ts +39 -22
- package/src/cache/BrowserCacheManager.ts +272 -238
- package/src/cache/IAsyncStorage.ts +10 -5
- package/src/cache/LocalStorage.ts +31 -18
- package/src/cache/TokenCache.ts +390 -381
- package/src/config/Configuration.ts +33 -114
- package/src/controllers/IController.ts +2 -121
- package/src/controllers/NestedAppAuthController.ts +49 -152
- package/src/controllers/StandardController.ts +280 -496
- package/src/controllers/UnknownOperatingContextController.ts +4 -90
- package/src/crypto/BrowserCrypto.ts +1 -13
- package/src/crypto/CryptoOps.ts +32 -18
- package/src/crypto/PkceGenerator.ts +6 -14
- package/src/crypto/SignedHttpRequest.ts +14 -21
- package/src/custom_auth/controller/CustomAuthStandardController.ts +11 -9
- package/src/custom_auth/core/CustomAuthAuthority.ts +12 -5
- package/src/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.ts +3 -0
- package/src/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.ts +2 -0
- package/src/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.ts +9 -2
- package/src/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.ts +2 -0
- package/src/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.ts +2 -0
- package/src/custom_auth/core/auth_flow/mfa/state/MfaState.ts +8 -2
- package/src/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.ts +3 -1
- package/src/custom_auth/core/interaction_client/jit/JitClient.ts +31 -13
- package/src/custom_auth/core/interaction_client/mfa/MfaClient.ts +30 -13
- package/src/custom_auth/core/network_client/http_client/FetchHttpClient.ts +8 -5
- package/src/custom_auth/get_account/auth_flow/CustomAuthAccountData.ts +3 -3
- package/src/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.ts +16 -8
- package/src/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.ts +2 -2
- package/src/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.ts +1 -1
- package/src/custom_auth/reset_password/interaction_client/ResetPasswordClient.ts +44 -18
- package/src/custom_auth/sign_in/auth_flow/result/SignInResult.ts +2 -0
- package/src/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.ts +2 -0
- package/src/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.ts +2 -0
- package/src/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.ts +1 -1
- package/src/custom_auth/sign_in/auth_flow/state/SignInContinuationState.ts +1 -1
- package/src/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.ts +1 -1
- package/src/custom_auth/sign_in/interaction_client/SignInClient.ts +77 -39
- package/src/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.ts +1 -1
- package/src/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.ts +2 -2
- package/src/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.ts +1 -1
- package/src/custom_auth/sign_up/interaction_client/SignUpClient.ts +96 -49
- package/src/error/BrowserAuthError.ts +4 -339
- package/src/error/BrowserAuthErrorCodes.ts +4 -2
- package/src/error/BrowserConfigurationAuthError.ts +2 -37
- package/src/error/NativeAuthError.ts +7 -13
- package/src/error/NativeAuthErrorCodes.ts +1 -0
- package/src/error/NestedAppAuthError.ts +2 -14
- package/src/event/EventHandler.ts +13 -11
- package/src/event/EventMessage.ts +1 -18
- package/src/event/EventType.ts +3 -10
- package/src/index.ts +14 -19
- package/src/interaction_client/BaseInteractionClient.ts +181 -158
- package/src/interaction_client/HybridSpaAuthorizationCodeClient.ts +6 -2
- package/src/interaction_client/PlatformAuthInteractionClient.ts +160 -112
- package/src/interaction_client/PopupClient.ts +189 -198
- package/src/interaction_client/RedirectClient.ts +191 -114
- package/src/interaction_client/SilentAuthCodeClient.ts +41 -16
- package/src/interaction_client/SilentCacheClient.ts +23 -15
- package/src/interaction_client/SilentIframeClient.ts +105 -90
- package/src/interaction_client/SilentRefreshClient.ts +26 -14
- package/src/interaction_client/StandardInteractionClient.ts +118 -102
- package/src/interaction_handler/InteractionHandler.ts +6 -26
- package/src/interaction_handler/SilentHandler.ts +6 -151
- package/src/naa/mapping/NestedAppAuthAdapter.ts +8 -6
- package/src/operatingcontext/BaseOperatingContext.ts +2 -1
- package/src/operatingcontext/NestedAppOperatingContext.ts +8 -3
- package/src/operatingcontext/StandardOperatingContext.ts +2 -1
- package/src/packageMetadata.ts +1 -1
- package/src/protocol/Authorize.ts +52 -56
- package/src/redirect_bridge/index.ts +131 -0
- package/src/request/AuthorizationCodeRequest.ts +1 -4
- package/src/request/EndSessionPopupRequest.ts +1 -3
- package/src/request/EndSessionRequest.ts +1 -5
- package/src/request/HandleRedirectPromiseOptions.ts +9 -0
- package/src/request/PopupRequest.ts +4 -4
- package/src/request/RedirectRequest.ts +2 -11
- package/src/request/RequestHelpers.ts +25 -48
- package/src/request/SilentRequest.ts +3 -8
- package/src/request/SsoSilentRequest.ts +2 -4
- package/src/response/ResponseHandler.ts +8 -4
- package/src/telemetry/BrowserPerformanceClient.ts +2 -103
- package/src/telemetry/BrowserPerformanceEvents.ts +181 -0
- package/src/telemetry/BrowserRootPerformanceEvents.ts +41 -0
- package/src/utils/BrowserConstants.ts +2 -14
- package/src/utils/BrowserProtocolUtils.ts +1 -1
- package/src/utils/BrowserUtils.ts +232 -15
- package/src/utils/MsalFrameStatsUtils.ts +4 -2
- package/dist/app/PublicClientNext.d.ts.map +0 -1
- package/dist/app/PublicClientNext.mjs +0 -363
- package/dist/app/PublicClientNext.mjs.map +0 -1
- package/dist/cache/ITokenCache.d.ts +0 -12
- package/dist/cache/ITokenCache.d.ts.map +0 -1
- package/dist/controllers/ControllerFactory.d.ts +0 -6
- package/dist/controllers/ControllerFactory.d.ts.map +0 -1
- package/dist/controllers/ControllerFactory.mjs +0 -35
- package/dist/controllers/ControllerFactory.mjs.map +0 -1
- package/dist/controllers/UnknownOperatingContextController.mjs +0 -268
- package/dist/controllers/UnknownOperatingContextController.mjs.map +0 -1
- package/dist/custom-auth-path/app/PublicClientNext.d.ts +0 -278
- package/dist/custom-auth-path/app/PublicClientNext.d.ts.map +0 -1
- package/dist/custom-auth-path/cache/ITokenCache.d.ts +0 -12
- package/dist/custom-auth-path/cache/ITokenCache.d.ts.map +0 -1
- package/dist/custom-auth-path/cache/TokenCache.mjs +0 -208
- package/dist/custom-auth-path/cache/TokenCache.mjs.map +0 -1
- package/dist/custom-auth-path/controllers/ControllerFactory.d.ts +0 -6
- package/dist/custom-auth-path/controllers/ControllerFactory.d.ts.map +0 -1
- package/dist/custom-auth-path/controllers/ControllerFactory.mjs +0 -17
- package/dist/custom-auth-path/controllers/ControllerFactory.mjs.map +0 -1
- package/dist/custom-auth-path/request/AuthorizationUrlRequest.d.ts +0 -7
- package/dist/custom-auth-path/request/AuthorizationUrlRequest.d.ts.map +0 -1
- package/dist/operatingcontext/UnknownOperatingContext.mjs +0 -49
- package/dist/operatingcontext/UnknownOperatingContext.mjs.map +0 -1
- package/dist/request/AuthorizationUrlRequest.d.ts +0 -7
- package/dist/request/AuthorizationUrlRequest.d.ts.map +0 -1
- package/lib/custom-auth-path/types/app/PublicClientNext.d.ts.map +0 -1
- package/lib/custom-auth-path/types/cache/ITokenCache.d.ts +0 -12
- package/lib/custom-auth-path/types/cache/ITokenCache.d.ts.map +0 -1
- package/lib/custom-auth-path/types/controllers/ControllerFactory.d.ts +0 -6
- package/lib/custom-auth-path/types/controllers/ControllerFactory.d.ts.map +0 -1
- package/lib/custom-auth-path/types/request/AuthorizationUrlRequest.d.ts +0 -7
- package/lib/custom-auth-path/types/request/AuthorizationUrlRequest.d.ts.map +0 -1
- package/lib/types/app/PublicClientNext.d.ts +0 -278
- package/lib/types/app/PublicClientNext.d.ts.map +0 -1
- package/lib/types/cache/ITokenCache.d.ts +0 -12
- package/lib/types/cache/ITokenCache.d.ts.map +0 -1
- package/lib/types/controllers/ControllerFactory.d.ts +0 -6
- package/lib/types/controllers/ControllerFactory.d.ts.map +0 -1
- package/lib/types/request/AuthorizationUrlRequest.d.ts +0 -7
- package/lib/types/request/AuthorizationUrlRequest.d.ts.map +0 -1
- package/src/app/PublicClientNext.ts +0 -454
- package/src/cache/ITokenCache.ts +0 -21
- package/src/controllers/ControllerFactory.ts +0 -42
- package/src/request/AuthorizationUrlRequest.ts +0 -15
|
@@ -7,31 +7,30 @@ import { CryptoOps } from "../crypto/CryptoOps.js";
|
|
|
7
7
|
import {
|
|
8
8
|
InteractionRequiredAuthError,
|
|
9
9
|
AccountInfo,
|
|
10
|
-
Constants,
|
|
11
10
|
INetworkModule,
|
|
12
11
|
Logger,
|
|
13
12
|
CommonSilentFlowRequest,
|
|
14
13
|
ICrypto,
|
|
15
14
|
DEFAULT_CRYPTO_IMPLEMENTATION,
|
|
16
15
|
AuthError,
|
|
17
|
-
PerformanceEvents,
|
|
18
16
|
PerformanceCallbackFunction,
|
|
19
17
|
IPerformanceClient,
|
|
20
18
|
BaseAuthRequest,
|
|
21
|
-
PromptValue,
|
|
22
19
|
InProgressPerformanceEvent,
|
|
23
20
|
getRequestThumbprint,
|
|
24
|
-
AccountEntity,
|
|
25
21
|
invokeAsync,
|
|
26
|
-
invoke,
|
|
27
22
|
createClientAuthError,
|
|
28
23
|
ClientAuthErrorCodes,
|
|
29
24
|
AccountFilter,
|
|
30
25
|
buildStaticAuthorityOptions,
|
|
31
26
|
InteractionRequiredAuthErrorCodes,
|
|
32
27
|
PkceCodes,
|
|
28
|
+
AccountEntityUtils,
|
|
29
|
+
Constants,
|
|
33
30
|
AuthToken,
|
|
34
31
|
} from "@azure/msal-common/browser";
|
|
32
|
+
import * as BrowserPerformanceEvents from "../telemetry/BrowserPerformanceEvents.js";
|
|
33
|
+
import * as BrowserRootPerformanceEvents from "../telemetry/BrowserRootPerformanceEvents.js";
|
|
35
34
|
import {
|
|
36
35
|
BrowserCacheManager,
|
|
37
36
|
DEFAULT_BROWSER_CACHE_MANAGER,
|
|
@@ -63,8 +62,6 @@ import { PopupClient } from "../interaction_client/PopupClient.js";
|
|
|
63
62
|
import { RedirectClient } from "../interaction_client/RedirectClient.js";
|
|
64
63
|
import { SilentIframeClient } from "../interaction_client/SilentIframeClient.js";
|
|
65
64
|
import { SilentRefreshClient } from "../interaction_client/SilentRefreshClient.js";
|
|
66
|
-
import { TokenCache } from "../cache/TokenCache.js";
|
|
67
|
-
import { ITokenCache } from "../cache/ITokenCache.js";
|
|
68
65
|
import { PlatformAuthInteractionClient } from "../interaction_client/PlatformAuthInteractionClient.js";
|
|
69
66
|
import { SilentRequest } from "../request/SilentRequest.js";
|
|
70
67
|
import {
|
|
@@ -94,6 +91,7 @@ import {
|
|
|
94
91
|
} from "../broker/nativeBroker/PlatformAuthProvider.js";
|
|
95
92
|
import { IPlatformAuthHandler } from "../broker/nativeBroker/IPlatformAuthHandler.js";
|
|
96
93
|
import { collectInstanceStats } from "../utils/MsalFrameStatsUtils.js";
|
|
94
|
+
import { HandleRedirectPromiseOptions } from "../request/HandleRedirectPromiseOptions.js";
|
|
97
95
|
|
|
98
96
|
function preflightCheck(
|
|
99
97
|
initialized: boolean,
|
|
@@ -130,9 +128,6 @@ export class StandardController implements IController {
|
|
|
130
128
|
// Input configuration by developer/user
|
|
131
129
|
protected readonly config: BrowserConfiguration;
|
|
132
130
|
|
|
133
|
-
// Token cache implementation
|
|
134
|
-
private tokenCache: TokenCache;
|
|
135
|
-
|
|
136
131
|
// Logger
|
|
137
132
|
protected logger: Logger;
|
|
138
133
|
|
|
@@ -249,11 +244,6 @@ export class StandardController implements IController {
|
|
|
249
244
|
const nativeCacheOptions: Required<CacheOptions> = {
|
|
250
245
|
cacheLocation: BrowserCacheLocation.MemoryStorage,
|
|
251
246
|
cacheRetentionDays: 5,
|
|
252
|
-
temporaryCacheLocation: BrowserCacheLocation.MemoryStorage,
|
|
253
|
-
storeAuthStateInCookie: false,
|
|
254
|
-
secureCookies: false,
|
|
255
|
-
cacheMigrationEnabled: false,
|
|
256
|
-
claimsBasedCachingEnabled: false,
|
|
257
247
|
};
|
|
258
248
|
this.nativeInternalStorage = new BrowserCacheManager(
|
|
259
249
|
this.config.auth.clientId,
|
|
@@ -264,14 +254,6 @@ export class StandardController implements IController {
|
|
|
264
254
|
this.eventHandler
|
|
265
255
|
);
|
|
266
256
|
|
|
267
|
-
// Initialize the token cache
|
|
268
|
-
this.tokenCache = new TokenCache(
|
|
269
|
-
this.config,
|
|
270
|
-
this.browserStorage,
|
|
271
|
-
this.logger,
|
|
272
|
-
this.browserCrypto
|
|
273
|
-
);
|
|
274
|
-
|
|
275
257
|
this.activeSilentTokenRequests = new Map();
|
|
276
258
|
|
|
277
259
|
// Register listener functions
|
|
@@ -295,7 +277,7 @@ export class StandardController implements IController {
|
|
|
295
277
|
if (!correlationId) {
|
|
296
278
|
return;
|
|
297
279
|
}
|
|
298
|
-
this.logger.info("Perf: Visibility change detected");
|
|
280
|
+
this.logger.info("Perf: Visibility change detected", correlationId);
|
|
299
281
|
this.performanceClient.incrementFields(
|
|
300
282
|
{ visibilityChangeCount: 1 },
|
|
301
283
|
correlationId
|
|
@@ -306,20 +288,22 @@ export class StandardController implements IController {
|
|
|
306
288
|
* Initializer function to perform async startup tasks such as connecting to WAM extension
|
|
307
289
|
* @param request {?InitializeApplicationRequest} correlation id
|
|
308
290
|
*/
|
|
309
|
-
async initialize(
|
|
310
|
-
request
|
|
311
|
-
|
|
312
|
-
): Promise<void> {
|
|
313
|
-
this.logger.trace("initialize called");
|
|
291
|
+
async initialize(request?: InitializeApplicationRequest): Promise<void> {
|
|
292
|
+
const correlationId = this.getRequestCorrelationId(request);
|
|
293
|
+
this.logger.trace("initialize called", correlationId);
|
|
314
294
|
if (this.initialized) {
|
|
315
295
|
this.logger.info(
|
|
316
|
-
"initialize has already been called, exiting early."
|
|
296
|
+
"initialize has already been called, exiting early.",
|
|
297
|
+
correlationId
|
|
317
298
|
);
|
|
318
299
|
return;
|
|
319
300
|
}
|
|
320
301
|
|
|
321
302
|
if (!this.isBrowserEnvironment) {
|
|
322
|
-
this.logger.info(
|
|
303
|
+
this.logger.info(
|
|
304
|
+
"in non-browser environment, exiting early.",
|
|
305
|
+
correlationId
|
|
306
|
+
);
|
|
323
307
|
this.initialized = true;
|
|
324
308
|
this.eventHandler.emitEvent(EventType.INITIALIZE_END);
|
|
325
309
|
return;
|
|
@@ -329,21 +313,17 @@ export class StandardController implements IController {
|
|
|
329
313
|
request?.correlationId || this.getRequestCorrelationId();
|
|
330
314
|
const allowPlatformBroker = this.config.system.allowPlatformBroker;
|
|
331
315
|
const initMeasurement = this.performanceClient.startMeasurement(
|
|
332
|
-
|
|
316
|
+
BrowserRootPerformanceEvents.InitializeClientApplication,
|
|
333
317
|
initCorrelationId
|
|
334
318
|
);
|
|
335
319
|
this.eventHandler.emitEvent(EventType.INITIALIZE_START);
|
|
336
320
|
|
|
337
321
|
// Broker applications are initialized twice, so we avoid double-counting it
|
|
338
|
-
|
|
339
|
-
try {
|
|
340
|
-
this.logMultipleInstances(initMeasurement);
|
|
341
|
-
} catch {}
|
|
342
|
-
}
|
|
322
|
+
this.logMultipleInstances(initMeasurement, initCorrelationId);
|
|
343
323
|
|
|
344
324
|
await invokeAsync(
|
|
345
325
|
this.browserStorage.initialize.bind(this.browserStorage),
|
|
346
|
-
|
|
326
|
+
BrowserPerformanceEvents.InitializeCache,
|
|
347
327
|
this.logger,
|
|
348
328
|
this.performanceClient,
|
|
349
329
|
initCorrelationId
|
|
@@ -356,31 +336,21 @@ export class StandardController implements IController {
|
|
|
356
336
|
this.logger,
|
|
357
337
|
this.performanceClient,
|
|
358
338
|
initCorrelationId,
|
|
359
|
-
this.config.system.nativeBrokerHandshakeTimeout
|
|
360
|
-
this.config.system.allowPlatformBrokerWithDOM
|
|
339
|
+
this.config.system.nativeBrokerHandshakeTimeout
|
|
361
340
|
);
|
|
362
341
|
} catch (e) {
|
|
363
|
-
this.logger.verbose(e as string);
|
|
342
|
+
this.logger.verbose(e as string, initCorrelationId);
|
|
364
343
|
}
|
|
365
344
|
}
|
|
366
345
|
|
|
367
|
-
if (
|
|
368
|
-
this.
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
invoke(
|
|
373
|
-
this.browserStorage.clearTokensAndKeysWithClaims.bind(
|
|
374
|
-
this.browserStorage
|
|
375
|
-
),
|
|
376
|
-
PerformanceEvents.ClearTokensAndKeysWithClaims,
|
|
377
|
-
this.logger,
|
|
378
|
-
this.performanceClient,
|
|
379
|
-
initCorrelationId
|
|
380
|
-
)(initCorrelationId);
|
|
346
|
+
if (
|
|
347
|
+
this.config.cache.cacheLocation ===
|
|
348
|
+
BrowserCacheLocation.LocalStorage
|
|
349
|
+
) {
|
|
350
|
+
this.eventHandler.subscribeCrossTab();
|
|
381
351
|
}
|
|
382
352
|
|
|
383
|
-
this.config.system.
|
|
353
|
+
!this.config.system.navigatePopups &&
|
|
384
354
|
(await this.preGeneratePkceCodes(initCorrelationId));
|
|
385
355
|
this.initialized = true;
|
|
386
356
|
this.eventHandler.emitEvent(EventType.INITIALIZE_END);
|
|
@@ -397,39 +367,42 @@ export class StandardController implements IController {
|
|
|
397
367
|
* has loaded during redirect flows. This should be invoked on all page loads involved in redirect
|
|
398
368
|
* auth flows.
|
|
399
369
|
* @param hash Hash to process. Defaults to the current value of window.location.hash. Only needs to be provided explicitly if the response to be handled is not contained in the current value.
|
|
370
|
+
* @param options Object containing optional configuration for redirect promise handling.
|
|
400
371
|
* @returns Token response or null. If the return value is null, then no auth redirect was detected.
|
|
401
372
|
*/
|
|
402
373
|
async handleRedirectPromise(
|
|
403
|
-
|
|
374
|
+
options?: HandleRedirectPromiseOptions
|
|
404
375
|
): Promise<AuthenticationResult | null> {
|
|
405
|
-
this.logger.verbose("handleRedirectPromise called");
|
|
376
|
+
this.logger.verbose("handleRedirectPromise called", "");
|
|
406
377
|
// Block token acquisition before initialize has been called
|
|
407
378
|
BrowserUtils.blockAPICallsBeforeInitialize(this.initialized);
|
|
408
|
-
|
|
409
379
|
if (this.isBrowserEnvironment) {
|
|
410
380
|
/**
|
|
411
381
|
* Store the promise on the PublicClientApplication instance if this is the first invocation of handleRedirectPromise,
|
|
412
382
|
* otherwise return the promise from the first invocation. Prevents race conditions when handleRedirectPromise is called
|
|
413
383
|
* several times concurrently.
|
|
414
384
|
*/
|
|
415
|
-
const redirectResponseKey = hash || "";
|
|
385
|
+
const redirectResponseKey = options?.hash || "";
|
|
416
386
|
let response = this.redirectResponse.get(redirectResponseKey);
|
|
417
387
|
if (typeof response === "undefined") {
|
|
418
|
-
response = this.handleRedirectPromiseInternal(
|
|
388
|
+
response = this.handleRedirectPromiseInternal(options);
|
|
419
389
|
this.redirectResponse.set(redirectResponseKey, response);
|
|
420
390
|
this.logger.verbose(
|
|
421
|
-
"handleRedirectPromise has been called for the first time, storing the promise"
|
|
391
|
+
"handleRedirectPromise has been called for the first time, storing the promise",
|
|
392
|
+
""
|
|
422
393
|
);
|
|
423
394
|
} else {
|
|
424
395
|
this.logger.verbose(
|
|
425
|
-
"handleRedirectPromise has been called previously, returning the result from the first call"
|
|
396
|
+
"handleRedirectPromise has been called previously, returning the result from the first call",
|
|
397
|
+
""
|
|
426
398
|
);
|
|
427
399
|
}
|
|
428
400
|
|
|
429
401
|
return response;
|
|
430
402
|
}
|
|
431
403
|
this.logger.verbose(
|
|
432
|
-
"handleRedirectPromise returns null, not browser environment"
|
|
404
|
+
"handleRedirectPromise returns null, not browser environment",
|
|
405
|
+
""
|
|
433
406
|
);
|
|
434
407
|
return null;
|
|
435
408
|
}
|
|
@@ -440,11 +413,12 @@ export class StandardController implements IController {
|
|
|
440
413
|
* @returns
|
|
441
414
|
*/
|
|
442
415
|
private async handleRedirectPromiseInternal(
|
|
443
|
-
|
|
416
|
+
options?: HandleRedirectPromiseOptions
|
|
444
417
|
): Promise<AuthenticationResult | null> {
|
|
445
418
|
if (!this.browserStorage.isInteractionInProgress(true)) {
|
|
446
419
|
this.logger.info(
|
|
447
|
-
"handleRedirectPromise called but there is no interaction in progress, returning null."
|
|
420
|
+
"handleRedirectPromise called but there is no interaction in progress, returning null.",
|
|
421
|
+
""
|
|
448
422
|
);
|
|
449
423
|
return null;
|
|
450
424
|
}
|
|
@@ -453,7 +427,8 @@ export class StandardController implements IController {
|
|
|
453
427
|
this.browserStorage.getInteractionInProgress()?.type;
|
|
454
428
|
if (interactionType === INTERACTION_TYPE.SIGNOUT) {
|
|
455
429
|
this.logger.verbose(
|
|
456
|
-
"handleRedirectPromise removing interaction_in_progress flag and returning null after sign-out"
|
|
430
|
+
"handleRedirectPromise removing interaction_in_progress flag and returning null after sign-out",
|
|
431
|
+
""
|
|
457
432
|
);
|
|
458
433
|
this.browserStorage.setInteractionInProgress(false);
|
|
459
434
|
return Promise.resolve(null);
|
|
@@ -463,7 +438,9 @@ export class StandardController implements IController {
|
|
|
463
438
|
const platformBrokerRequest: PlatformAuthRequest | null =
|
|
464
439
|
this.browserStorage.getCachedNativeRequest();
|
|
465
440
|
const useNative =
|
|
466
|
-
platformBrokerRequest &&
|
|
441
|
+
platformBrokerRequest &&
|
|
442
|
+
this.platformAuthProvider &&
|
|
443
|
+
!options?.hash;
|
|
467
444
|
|
|
468
445
|
let rootMeasurement: InProgressPerformanceEvent;
|
|
469
446
|
|
|
@@ -475,16 +452,16 @@ export class StandardController implements IController {
|
|
|
475
452
|
let redirectResponse: Promise<AuthenticationResult | null>;
|
|
476
453
|
try {
|
|
477
454
|
if (useNative && this.platformAuthProvider) {
|
|
455
|
+
const correlationId =
|
|
456
|
+
platformBrokerRequest?.correlationId || "";
|
|
478
457
|
rootMeasurement = this.performanceClient.startMeasurement(
|
|
479
|
-
|
|
480
|
-
|
|
458
|
+
BrowserRootPerformanceEvents.AcquireTokenRedirect,
|
|
459
|
+
correlationId
|
|
481
460
|
);
|
|
482
461
|
this.logger.trace(
|
|
483
|
-
"handleRedirectPromise - acquiring token from native platform"
|
|
462
|
+
"handleRedirectPromise - acquiring token from native platform",
|
|
463
|
+
correlationId
|
|
484
464
|
);
|
|
485
|
-
rootMeasurement.add({
|
|
486
|
-
isPlatformBrokerRequest: true,
|
|
487
|
-
});
|
|
488
465
|
const nativeClient = new PlatformAuthInteractionClient(
|
|
489
466
|
this.config,
|
|
490
467
|
this.browserStorage,
|
|
@@ -502,41 +479,51 @@ export class StandardController implements IController {
|
|
|
502
479
|
|
|
503
480
|
redirectResponse = invokeAsync(
|
|
504
481
|
nativeClient.handleRedirectPromise.bind(nativeClient),
|
|
505
|
-
|
|
482
|
+
BrowserPerformanceEvents.HandleNativeRedirectPromiseMeasurement,
|
|
506
483
|
this.logger,
|
|
507
484
|
this.performanceClient,
|
|
508
485
|
rootMeasurement.event.correlationId
|
|
509
486
|
)(this.performanceClient, rootMeasurement.event.correlationId);
|
|
510
487
|
} else {
|
|
511
488
|
const [standardRequest, codeVerifier] =
|
|
512
|
-
this.browserStorage.getCachedRequest();
|
|
489
|
+
this.browserStorage.getCachedRequest("");
|
|
513
490
|
const correlationId = standardRequest.correlationId;
|
|
514
491
|
// Reset rootMeasurement now that we have correlationId
|
|
515
492
|
rootMeasurement = this.performanceClient.startMeasurement(
|
|
516
|
-
|
|
493
|
+
BrowserRootPerformanceEvents.AcquireTokenRedirect,
|
|
517
494
|
correlationId
|
|
518
495
|
);
|
|
519
496
|
this.logger.trace(
|
|
520
|
-
"handleRedirectPromise - acquiring token from web flow"
|
|
497
|
+
"handleRedirectPromise - acquiring token from web flow",
|
|
498
|
+
correlationId
|
|
521
499
|
);
|
|
522
500
|
const redirectClient = this.createRedirectClient(correlationId);
|
|
523
501
|
redirectResponse = invokeAsync(
|
|
524
502
|
redirectClient.handleRedirectPromise.bind(redirectClient),
|
|
525
|
-
|
|
503
|
+
BrowserPerformanceEvents.HandleRedirectPromiseMeasurement,
|
|
526
504
|
this.logger,
|
|
527
505
|
this.performanceClient,
|
|
528
506
|
rootMeasurement.event.correlationId
|
|
529
|
-
)(
|
|
507
|
+
)(standardRequest, codeVerifier, rootMeasurement, options);
|
|
530
508
|
}
|
|
531
509
|
} catch (e) {
|
|
532
|
-
this.browserStorage.resetRequestCache();
|
|
510
|
+
this.browserStorage.resetRequestCache("");
|
|
533
511
|
throw e;
|
|
534
512
|
}
|
|
535
513
|
|
|
536
514
|
return redirectResponse
|
|
537
515
|
.then((result: AuthenticationResult | null) => {
|
|
538
516
|
if (result) {
|
|
539
|
-
this.browserStorage.resetRequestCache();
|
|
517
|
+
this.browserStorage.resetRequestCache(result.correlationId);
|
|
518
|
+
this.eventHandler.emitEvent(
|
|
519
|
+
EventType.ACQUIRE_TOKEN_SUCCESS,
|
|
520
|
+
InteractionType.Redirect,
|
|
521
|
+
result
|
|
522
|
+
);
|
|
523
|
+
this.logger.verbose(
|
|
524
|
+
"handleRedirectResponse returned result, acquire token success",
|
|
525
|
+
result.correlationId
|
|
526
|
+
);
|
|
540
527
|
// Emit login event if number of accounts change
|
|
541
528
|
const isLoggingIn =
|
|
542
529
|
loggedInAccounts.length < this.getAllAccounts().length;
|
|
@@ -544,19 +531,11 @@ export class StandardController implements IController {
|
|
|
544
531
|
this.eventHandler.emitEvent(
|
|
545
532
|
EventType.LOGIN_SUCCESS,
|
|
546
533
|
InteractionType.Redirect,
|
|
547
|
-
result
|
|
534
|
+
result.account
|
|
548
535
|
);
|
|
549
536
|
this.logger.verbose(
|
|
550
|
-
"handleRedirectResponse returned result, login success"
|
|
551
|
-
|
|
552
|
-
} else {
|
|
553
|
-
this.eventHandler.emitEvent(
|
|
554
|
-
EventType.ACQUIRE_TOKEN_SUCCESS,
|
|
555
|
-
InteractionType.Redirect,
|
|
556
|
-
result
|
|
557
|
-
);
|
|
558
|
-
this.logger.verbose(
|
|
559
|
-
"handleRedirectResponse returned result, acquire token success"
|
|
537
|
+
"handleRedirectResponse returned result, login success",
|
|
538
|
+
result.correlationId
|
|
560
539
|
);
|
|
561
540
|
}
|
|
562
541
|
rootMeasurement.end(
|
|
@@ -586,24 +565,16 @@ export class StandardController implements IController {
|
|
|
586
565
|
return result;
|
|
587
566
|
})
|
|
588
567
|
.catch((e) => {
|
|
589
|
-
this.browserStorage.resetRequestCache(
|
|
568
|
+
this.browserStorage.resetRequestCache(
|
|
569
|
+
rootMeasurement.event.correlationId
|
|
570
|
+
);
|
|
590
571
|
const eventError = e as EventError;
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
eventError
|
|
598
|
-
);
|
|
599
|
-
} else {
|
|
600
|
-
this.eventHandler.emitEvent(
|
|
601
|
-
EventType.LOGIN_FAILURE,
|
|
602
|
-
InteractionType.Redirect,
|
|
603
|
-
null,
|
|
604
|
-
eventError
|
|
605
|
-
);
|
|
606
|
-
}
|
|
572
|
+
this.eventHandler.emitEvent(
|
|
573
|
+
EventType.ACQUIRE_TOKEN_FAILURE,
|
|
574
|
+
InteractionType.Redirect,
|
|
575
|
+
null,
|
|
576
|
+
eventError
|
|
577
|
+
);
|
|
607
578
|
this.eventHandler.emitEvent(
|
|
608
579
|
EventType.HANDLE_REDIRECT_END,
|
|
609
580
|
InteractionType.Redirect
|
|
@@ -635,55 +606,31 @@ export class StandardController implements IController {
|
|
|
635
606
|
this.logger.verbose("acquireTokenRedirect called", correlationId);
|
|
636
607
|
|
|
637
608
|
const atrMeasurement = this.performanceClient.startMeasurement(
|
|
638
|
-
|
|
609
|
+
BrowserRootPerformanceEvents.AcquireTokenPreRedirect,
|
|
639
610
|
correlationId
|
|
640
611
|
);
|
|
641
612
|
atrMeasurement.add({
|
|
642
613
|
scenarioId: request.scenarioId,
|
|
643
614
|
});
|
|
644
615
|
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
return navigate;
|
|
663
|
-
};
|
|
664
|
-
} else {
|
|
665
|
-
const configOnRedirectNavigateCb =
|
|
666
|
-
this.config.auth.onRedirectNavigate;
|
|
667
|
-
this.config.auth.onRedirectNavigate = (url: string) => {
|
|
668
|
-
const navigate =
|
|
669
|
-
typeof configOnRedirectNavigateCb === "function"
|
|
670
|
-
? configOnRedirectNavigateCb(url)
|
|
671
|
-
: undefined;
|
|
672
|
-
atrMeasurement.add({
|
|
673
|
-
navigateCallbackResult: navigate !== false,
|
|
674
|
-
});
|
|
675
|
-
atrMeasurement.event =
|
|
676
|
-
atrMeasurement.end(
|
|
677
|
-
{ success: true },
|
|
678
|
-
undefined,
|
|
679
|
-
request.account
|
|
680
|
-
) || atrMeasurement.event;
|
|
681
|
-
return navigate;
|
|
682
|
-
};
|
|
683
|
-
}
|
|
616
|
+
const configOnRedirectNavigateCb = this.config.auth.onRedirectNavigate;
|
|
617
|
+
this.config.auth.onRedirectNavigate = (url: string) => {
|
|
618
|
+
const navigate =
|
|
619
|
+
typeof configOnRedirectNavigateCb === "function"
|
|
620
|
+
? configOnRedirectNavigateCb(url)
|
|
621
|
+
: undefined;
|
|
622
|
+
atrMeasurement.add({
|
|
623
|
+
navigateCallbackResult: navigate !== false,
|
|
624
|
+
});
|
|
625
|
+
atrMeasurement.event =
|
|
626
|
+
atrMeasurement.end(
|
|
627
|
+
{ success: true },
|
|
628
|
+
undefined,
|
|
629
|
+
request.account
|
|
630
|
+
) || atrMeasurement.event;
|
|
631
|
+
return navigate;
|
|
632
|
+
};
|
|
684
633
|
|
|
685
|
-
// If logged in, emit acquire token events
|
|
686
|
-
const isLoggedIn = this.getAllAccounts().length > 0;
|
|
687
634
|
try {
|
|
688
635
|
BrowserUtils.redirectPreflightCheck(this.initialized, this.config);
|
|
689
636
|
this.browserStorage.setInteractionInProgress(
|
|
@@ -691,19 +638,11 @@ export class StandardController implements IController {
|
|
|
691
638
|
INTERACTION_TYPE.SIGNIN
|
|
692
639
|
);
|
|
693
640
|
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
);
|
|
700
|
-
} else {
|
|
701
|
-
this.eventHandler.emitEvent(
|
|
702
|
-
EventType.LOGIN_START,
|
|
703
|
-
InteractionType.Redirect,
|
|
704
|
-
request
|
|
705
|
-
);
|
|
706
|
-
}
|
|
641
|
+
this.eventHandler.emitEvent(
|
|
642
|
+
EventType.ACQUIRE_TOKEN_START,
|
|
643
|
+
InteractionType.Redirect,
|
|
644
|
+
request
|
|
645
|
+
);
|
|
707
646
|
|
|
708
647
|
let result: Promise<void>;
|
|
709
648
|
|
|
@@ -725,25 +664,21 @@ export class StandardController implements IController {
|
|
|
725
664
|
this.nativeInternalStorage,
|
|
726
665
|
correlationId
|
|
727
666
|
);
|
|
728
|
-
|
|
729
667
|
result = nativeClient
|
|
730
668
|
.acquireTokenRedirect(request, atrMeasurement)
|
|
731
669
|
.catch((e: AuthError) => {
|
|
732
|
-
atrMeasurement.add({
|
|
733
|
-
brokerErrorName: e.name,
|
|
734
|
-
brokerErrorCode: e.errorCode,
|
|
735
|
-
});
|
|
736
670
|
if (
|
|
737
671
|
e instanceof NativeAuthError &&
|
|
738
672
|
isFatalNativeAuthError(e)
|
|
739
673
|
) {
|
|
740
|
-
this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt
|
|
674
|
+
this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt
|
|
741
675
|
const redirectClient =
|
|
742
676
|
this.createRedirectClient(correlationId);
|
|
743
677
|
return redirectClient.acquireToken(request);
|
|
744
678
|
} else if (e instanceof InteractionRequiredAuthError) {
|
|
745
679
|
this.logger.verbose(
|
|
746
|
-
"acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow"
|
|
680
|
+
"acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow",
|
|
681
|
+
correlationId
|
|
747
682
|
);
|
|
748
683
|
const redirectClient =
|
|
749
684
|
this.createRedirectClient(correlationId);
|
|
@@ -758,7 +693,7 @@ export class StandardController implements IController {
|
|
|
758
693
|
|
|
759
694
|
return await result;
|
|
760
695
|
} catch (e) {
|
|
761
|
-
this.browserStorage.resetRequestCache();
|
|
696
|
+
this.browserStorage.resetRequestCache(correlationId);
|
|
762
697
|
/*
|
|
763
698
|
* Pre-redirect event completes before navigation occurs.
|
|
764
699
|
* Timed out navigation needs to be instrumented separately as a post-redirect event.
|
|
@@ -766,7 +701,7 @@ export class StandardController implements IController {
|
|
|
766
701
|
if (atrMeasurement.event.status === 2) {
|
|
767
702
|
this.performanceClient
|
|
768
703
|
.startMeasurement(
|
|
769
|
-
|
|
704
|
+
BrowserRootPerformanceEvents.AcquireTokenRedirect,
|
|
770
705
|
correlationId
|
|
771
706
|
)
|
|
772
707
|
.end({ success: false }, e, request.account);
|
|
@@ -774,21 +709,12 @@ export class StandardController implements IController {
|
|
|
774
709
|
atrMeasurement.end({ success: false }, e, request.account);
|
|
775
710
|
}
|
|
776
711
|
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
);
|
|
784
|
-
} else {
|
|
785
|
-
this.eventHandler.emitEvent(
|
|
786
|
-
EventType.LOGIN_FAILURE,
|
|
787
|
-
InteractionType.Redirect,
|
|
788
|
-
null,
|
|
789
|
-
e as EventError
|
|
790
|
-
);
|
|
791
|
-
}
|
|
712
|
+
this.eventHandler.emitEvent(
|
|
713
|
+
EventType.ACQUIRE_TOKEN_FAILURE,
|
|
714
|
+
InteractionType.Redirect,
|
|
715
|
+
null,
|
|
716
|
+
e as EventError
|
|
717
|
+
);
|
|
792
718
|
throw e;
|
|
793
719
|
}
|
|
794
720
|
}
|
|
@@ -807,7 +733,7 @@ export class StandardController implements IController {
|
|
|
807
733
|
acquireTokenPopup(request: PopupRequest): Promise<AuthenticationResult> {
|
|
808
734
|
const correlationId = this.getRequestCorrelationId(request);
|
|
809
735
|
const atPopupMeasurement = this.performanceClient.startMeasurement(
|
|
810
|
-
|
|
736
|
+
BrowserRootPerformanceEvents.AcquireTokenPopup,
|
|
811
737
|
correlationId
|
|
812
738
|
);
|
|
813
739
|
|
|
@@ -824,7 +750,9 @@ export class StandardController implements IController {
|
|
|
824
750
|
);
|
|
825
751
|
this.browserStorage.setInteractionInProgress(
|
|
826
752
|
true,
|
|
827
|
-
INTERACTION_TYPE.SIGNIN
|
|
753
|
+
INTERACTION_TYPE.SIGNIN,
|
|
754
|
+
request.overrideInteractionInProgress,
|
|
755
|
+
correlationId
|
|
828
756
|
);
|
|
829
757
|
} catch (e) {
|
|
830
758
|
// Since this function is syncronous we need to reject
|
|
@@ -833,27 +761,16 @@ export class StandardController implements IController {
|
|
|
833
761
|
|
|
834
762
|
// If logged in, emit acquire token events
|
|
835
763
|
const loggedInAccounts = this.getAllAccounts();
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
);
|
|
842
|
-
} else {
|
|
843
|
-
this.eventHandler.emitEvent(
|
|
844
|
-
EventType.LOGIN_START,
|
|
845
|
-
InteractionType.Popup,
|
|
846
|
-
request
|
|
847
|
-
);
|
|
848
|
-
}
|
|
764
|
+
this.eventHandler.emitEvent(
|
|
765
|
+
EventType.ACQUIRE_TOKEN_START,
|
|
766
|
+
InteractionType.Popup,
|
|
767
|
+
request
|
|
768
|
+
);
|
|
849
769
|
|
|
850
770
|
let result: Promise<AuthenticationResult>;
|
|
851
771
|
const pkce = this.getPreGeneratedPkceCodes(correlationId);
|
|
852
772
|
|
|
853
773
|
if (this.canUsePlatformBroker(request)) {
|
|
854
|
-
atPopupMeasurement.add({
|
|
855
|
-
isPlatformBrokerRequest: true,
|
|
856
|
-
});
|
|
857
774
|
result = this.acquireTokenNative(
|
|
858
775
|
{
|
|
859
776
|
...request,
|
|
@@ -865,6 +782,7 @@ export class StandardController implements IController {
|
|
|
865
782
|
atPopupMeasurement.end(
|
|
866
783
|
{
|
|
867
784
|
success: true,
|
|
785
|
+
isNativeBroker: true,
|
|
868
786
|
},
|
|
869
787
|
undefined,
|
|
870
788
|
response.account
|
|
@@ -872,21 +790,18 @@ export class StandardController implements IController {
|
|
|
872
790
|
return response;
|
|
873
791
|
})
|
|
874
792
|
.catch((e: AuthError) => {
|
|
875
|
-
atPopupMeasurement.add({
|
|
876
|
-
brokerErrorName: e.name,
|
|
877
|
-
brokerErrorCode: e.errorCode,
|
|
878
|
-
});
|
|
879
793
|
if (
|
|
880
794
|
e instanceof NativeAuthError &&
|
|
881
795
|
isFatalNativeAuthError(e)
|
|
882
796
|
) {
|
|
883
|
-
this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to
|
|
797
|
+
this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt
|
|
884
798
|
const popupClient =
|
|
885
799
|
this.createPopupClient(correlationId);
|
|
886
800
|
return popupClient.acquireToken(request, pkce);
|
|
887
801
|
} else if (e instanceof InteractionRequiredAuthError) {
|
|
888
802
|
this.logger.verbose(
|
|
889
|
-
"acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow"
|
|
803
|
+
"acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow",
|
|
804
|
+
correlationId
|
|
890
805
|
);
|
|
891
806
|
const popupClient =
|
|
892
807
|
this.createPopupClient(correlationId);
|
|
@@ -906,17 +821,16 @@ export class StandardController implements IController {
|
|
|
906
821
|
*/
|
|
907
822
|
const isLoggingIn =
|
|
908
823
|
loggedInAccounts.length < this.getAllAccounts().length;
|
|
824
|
+
this.eventHandler.emitEvent(
|
|
825
|
+
EventType.ACQUIRE_TOKEN_SUCCESS,
|
|
826
|
+
InteractionType.Popup,
|
|
827
|
+
result
|
|
828
|
+
);
|
|
909
829
|
if (isLoggingIn) {
|
|
910
830
|
this.eventHandler.emitEvent(
|
|
911
831
|
EventType.LOGIN_SUCCESS,
|
|
912
832
|
InteractionType.Popup,
|
|
913
|
-
result
|
|
914
|
-
);
|
|
915
|
-
} else {
|
|
916
|
-
this.eventHandler.emitEvent(
|
|
917
|
-
EventType.ACQUIRE_TOKEN_SUCCESS,
|
|
918
|
-
InteractionType.Popup,
|
|
919
|
-
result
|
|
833
|
+
result.account
|
|
920
834
|
);
|
|
921
835
|
}
|
|
922
836
|
|
|
@@ -932,22 +846,12 @@ export class StandardController implements IController {
|
|
|
932
846
|
return result;
|
|
933
847
|
})
|
|
934
848
|
.catch((e: Error) => {
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
);
|
|
942
|
-
} else {
|
|
943
|
-
this.eventHandler.emitEvent(
|
|
944
|
-
EventType.LOGIN_FAILURE,
|
|
945
|
-
InteractionType.Popup,
|
|
946
|
-
null,
|
|
947
|
-
e
|
|
948
|
-
);
|
|
949
|
-
}
|
|
950
|
-
|
|
849
|
+
this.eventHandler.emitEvent(
|
|
850
|
+
EventType.ACQUIRE_TOKEN_FAILURE,
|
|
851
|
+
InteractionType.Popup,
|
|
852
|
+
null,
|
|
853
|
+
e
|
|
854
|
+
);
|
|
951
855
|
atPopupMeasurement.end(
|
|
952
856
|
{
|
|
953
857
|
success: false,
|
|
@@ -961,7 +865,7 @@ export class StandardController implements IController {
|
|
|
961
865
|
})
|
|
962
866
|
.finally(async () => {
|
|
963
867
|
this.browserStorage.setInteractionInProgress(false);
|
|
964
|
-
if (this.config.system.
|
|
868
|
+
if (!this.config.system.navigatePopups) {
|
|
965
869
|
await this.preGeneratePkceCodes(correlationId);
|
|
966
870
|
}
|
|
967
871
|
});
|
|
@@ -975,10 +879,6 @@ export class StandardController implements IController {
|
|
|
975
879
|
return;
|
|
976
880
|
}
|
|
977
881
|
|
|
978
|
-
this.logger.info(
|
|
979
|
-
"Perf: Visibility change detected in ",
|
|
980
|
-
measurement.event.name
|
|
981
|
-
);
|
|
982
882
|
measurement.increment({
|
|
983
883
|
visibilityChangeCount: 1,
|
|
984
884
|
});
|
|
@@ -1011,7 +911,7 @@ export class StandardController implements IController {
|
|
|
1011
911
|
correlationId: correlationId,
|
|
1012
912
|
};
|
|
1013
913
|
this.ssoSilentMeasurement = this.performanceClient.startMeasurement(
|
|
1014
|
-
|
|
914
|
+
BrowserRootPerformanceEvents.SsoSilent,
|
|
1015
915
|
correlationId
|
|
1016
916
|
);
|
|
1017
917
|
this.ssoSilentMeasurement?.add({
|
|
@@ -1030,9 +930,11 @@ export class StandardController implements IController {
|
|
|
1030
930
|
"visibilitychange",
|
|
1031
931
|
this.trackPageVisibilityWithMeasurement
|
|
1032
932
|
);
|
|
933
|
+
|
|
934
|
+
const loggedInAccounts = this.getAllAccounts();
|
|
1033
935
|
this.logger.verbose("ssoSilent called", correlationId);
|
|
1034
936
|
this.eventHandler.emitEvent(
|
|
1035
|
-
EventType.
|
|
937
|
+
EventType.ACQUIRE_TOKEN_START,
|
|
1036
938
|
InteractionType.Silent,
|
|
1037
939
|
validRequest
|
|
1038
940
|
);
|
|
@@ -1040,17 +942,10 @@ export class StandardController implements IController {
|
|
|
1040
942
|
let result: Promise<AuthenticationResult>;
|
|
1041
943
|
|
|
1042
944
|
if (this.canUsePlatformBroker(validRequest)) {
|
|
1043
|
-
this.ssoSilentMeasurement?.add({
|
|
1044
|
-
isPlatformBrokerRequest: true,
|
|
1045
|
-
});
|
|
1046
945
|
result = this.acquireTokenNative(
|
|
1047
946
|
validRequest,
|
|
1048
947
|
ApiId.ssoSilent
|
|
1049
948
|
).catch((e: AuthError) => {
|
|
1050
|
-
this.ssoSilentMeasurement?.add({
|
|
1051
|
-
brokerErrorName: e.name,
|
|
1052
|
-
brokerErrorCode: e.errorCode,
|
|
1053
|
-
});
|
|
1054
949
|
// If native token acquisition fails for availability reasons fallback to standard flow
|
|
1055
950
|
if (e instanceof NativeAuthError && isFatalNativeAuthError(e)) {
|
|
1056
951
|
this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt
|
|
@@ -1070,14 +965,24 @@ export class StandardController implements IController {
|
|
|
1070
965
|
|
|
1071
966
|
return result
|
|
1072
967
|
.then((response) => {
|
|
968
|
+
const isLoggingIn =
|
|
969
|
+
loggedInAccounts.length < this.getAllAccounts().length;
|
|
1073
970
|
this.eventHandler.emitEvent(
|
|
1074
|
-
EventType.
|
|
971
|
+
EventType.ACQUIRE_TOKEN_SUCCESS,
|
|
1075
972
|
InteractionType.Silent,
|
|
1076
973
|
response
|
|
1077
974
|
);
|
|
975
|
+
if (isLoggingIn) {
|
|
976
|
+
this.eventHandler.emitEvent(
|
|
977
|
+
EventType.LOGIN_SUCCESS,
|
|
978
|
+
InteractionType.Silent,
|
|
979
|
+
response.account
|
|
980
|
+
);
|
|
981
|
+
}
|
|
1078
982
|
this.ssoSilentMeasurement?.end(
|
|
1079
983
|
{
|
|
1080
984
|
success: true,
|
|
985
|
+
isNativeBroker: response.fromPlatformBroker,
|
|
1081
986
|
accessTokenSize: response.accessToken.length,
|
|
1082
987
|
idTokenSize: response.idToken.length,
|
|
1083
988
|
},
|
|
@@ -1088,7 +993,7 @@ export class StandardController implements IController {
|
|
|
1088
993
|
})
|
|
1089
994
|
.catch((e: Error) => {
|
|
1090
995
|
this.eventHandler.emitEvent(
|
|
1091
|
-
EventType.
|
|
996
|
+
EventType.ACQUIRE_TOKEN_FAILURE,
|
|
1092
997
|
InteractionType.Silent,
|
|
1093
998
|
null,
|
|
1094
999
|
e
|
|
@@ -1126,12 +1031,12 @@ export class StandardController implements IController {
|
|
|
1126
1031
|
const correlationId = this.getRequestCorrelationId(request);
|
|
1127
1032
|
this.logger.trace("acquireTokenByCode called", correlationId);
|
|
1128
1033
|
const atbcMeasurement = this.performanceClient.startMeasurement(
|
|
1129
|
-
|
|
1034
|
+
BrowserRootPerformanceEvents.AcquireTokenByCode,
|
|
1130
1035
|
correlationId
|
|
1131
1036
|
);
|
|
1132
1037
|
preflightCheck(this.initialized, atbcMeasurement);
|
|
1133
1038
|
this.eventHandler.emitEvent(
|
|
1134
|
-
EventType.
|
|
1039
|
+
EventType.ACQUIRE_TOKEN_START,
|
|
1135
1040
|
InteractionType.Silent,
|
|
1136
1041
|
request
|
|
1137
1042
|
);
|
|
@@ -1157,7 +1062,7 @@ export class StandardController implements IController {
|
|
|
1157
1062
|
})
|
|
1158
1063
|
.then((result: AuthenticationResult) => {
|
|
1159
1064
|
this.eventHandler.emitEvent(
|
|
1160
|
-
EventType.
|
|
1065
|
+
EventType.ACQUIRE_TOKEN_SUCCESS,
|
|
1161
1066
|
InteractionType.Silent,
|
|
1162
1067
|
result
|
|
1163
1068
|
);
|
|
@@ -1165,6 +1070,7 @@ export class StandardController implements IController {
|
|
|
1165
1070
|
atbcMeasurement.end(
|
|
1166
1071
|
{
|
|
1167
1072
|
success: true,
|
|
1073
|
+
isNativeBroker: result.fromPlatformBroker,
|
|
1168
1074
|
accessTokenSize: result.accessToken.length,
|
|
1169
1075
|
idTokenSize: result.idToken.length,
|
|
1170
1076
|
},
|
|
@@ -1176,7 +1082,7 @@ export class StandardController implements IController {
|
|
|
1176
1082
|
.catch((error: Error) => {
|
|
1177
1083
|
this.hybridAuthCodeResponses.delete(hybridAuthCode);
|
|
1178
1084
|
this.eventHandler.emitEvent(
|
|
1179
|
-
EventType.
|
|
1085
|
+
EventType.ACQUIRE_TOKEN_FAILURE,
|
|
1180
1086
|
InteractionType.Silent,
|
|
1181
1087
|
null,
|
|
1182
1088
|
error
|
|
@@ -1202,9 +1108,6 @@ export class StandardController implements IController {
|
|
|
1202
1108
|
if (
|
|
1203
1109
|
this.canUsePlatformBroker(request, request.nativeAccountId)
|
|
1204
1110
|
) {
|
|
1205
|
-
atbcMeasurement.add({
|
|
1206
|
-
isPlatformBrokerRequest: true,
|
|
1207
|
-
});
|
|
1208
1111
|
const result = await this.acquireTokenNative(
|
|
1209
1112
|
{
|
|
1210
1113
|
...request,
|
|
@@ -1220,10 +1123,6 @@ export class StandardController implements IController {
|
|
|
1220
1123
|
) {
|
|
1221
1124
|
this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt
|
|
1222
1125
|
}
|
|
1223
|
-
atbcMeasurement.add({
|
|
1224
|
-
brokerErrorName: e.name,
|
|
1225
|
-
brokerErrorCode: e.errorCode,
|
|
1226
|
-
});
|
|
1227
1126
|
throw e;
|
|
1228
1127
|
});
|
|
1229
1128
|
atbcMeasurement.end(
|
|
@@ -1246,7 +1145,7 @@ export class StandardController implements IController {
|
|
|
1246
1145
|
}
|
|
1247
1146
|
} catch (e) {
|
|
1248
1147
|
this.eventHandler.emitEvent(
|
|
1249
|
-
EventType.
|
|
1148
|
+
EventType.ACQUIRE_TOKEN_FAILURE,
|
|
1250
1149
|
InteractionType.Silent,
|
|
1251
1150
|
null,
|
|
1252
1151
|
e as EventError
|
|
@@ -1269,14 +1168,12 @@ export class StandardController implements IController {
|
|
|
1269
1168
|
private async acquireTokenByCodeAsync(
|
|
1270
1169
|
request: AuthorizationCodeRequest
|
|
1271
1170
|
): Promise<AuthenticationResult> {
|
|
1272
|
-
this.
|
|
1273
|
-
|
|
1274
|
-
request.correlationId
|
|
1275
|
-
);
|
|
1171
|
+
const correlationId = this.getRequestCorrelationId(request);
|
|
1172
|
+
this.logger.trace("acquireTokenByCodeAsync called", correlationId);
|
|
1276
1173
|
this.acquireTokenByCodeAsyncMeasurement =
|
|
1277
1174
|
this.performanceClient.startMeasurement(
|
|
1278
|
-
|
|
1279
|
-
|
|
1175
|
+
BrowserPerformanceEvents.AcquireTokenByCodeAsync,
|
|
1176
|
+
correlationId
|
|
1280
1177
|
);
|
|
1281
1178
|
this.acquireTokenByCodeAsyncMeasurement?.increment({
|
|
1282
1179
|
visibilityChangeCount: 0,
|
|
@@ -1285,15 +1182,15 @@ export class StandardController implements IController {
|
|
|
1285
1182
|
"visibilitychange",
|
|
1286
1183
|
this.trackPageVisibilityWithMeasurement
|
|
1287
1184
|
);
|
|
1288
|
-
const silentAuthCodeClient =
|
|
1289
|
-
|
|
1290
|
-
);
|
|
1185
|
+
const silentAuthCodeClient =
|
|
1186
|
+
this.createSilentAuthCodeClient(correlationId);
|
|
1291
1187
|
const silentTokenResult = await silentAuthCodeClient
|
|
1292
1188
|
.acquireToken(request)
|
|
1293
1189
|
.then((response) => {
|
|
1294
1190
|
this.acquireTokenByCodeAsyncMeasurement?.end({
|
|
1295
1191
|
success: true,
|
|
1296
1192
|
fromCache: response.fromCache,
|
|
1193
|
+
isNativeBroker: response.fromPlatformBroker,
|
|
1297
1194
|
});
|
|
1298
1195
|
return response;
|
|
1299
1196
|
})
|
|
@@ -1326,10 +1223,6 @@ export class StandardController implements IController {
|
|
|
1326
1223
|
commonRequest: CommonSilentFlowRequest,
|
|
1327
1224
|
cacheLookupPolicy: CacheLookupPolicy
|
|
1328
1225
|
): Promise<AuthenticationResult> {
|
|
1329
|
-
this.performanceClient.addQueueMeasurement(
|
|
1330
|
-
PerformanceEvents.AcquireTokenFromCache,
|
|
1331
|
-
commonRequest.correlationId
|
|
1332
|
-
);
|
|
1333
1226
|
switch (cacheLookupPolicy) {
|
|
1334
1227
|
case CacheLookupPolicy.Default:
|
|
1335
1228
|
case CacheLookupPolicy.AccessToken:
|
|
@@ -1339,7 +1232,7 @@ export class StandardController implements IController {
|
|
|
1339
1232
|
);
|
|
1340
1233
|
return invokeAsync(
|
|
1341
1234
|
silentCacheClient.acquireToken.bind(silentCacheClient),
|
|
1342
|
-
|
|
1235
|
+
BrowserPerformanceEvents.SilentCacheClientAcquireToken,
|
|
1343
1236
|
this.logger,
|
|
1344
1237
|
this.performanceClient,
|
|
1345
1238
|
commonRequest.correlationId
|
|
@@ -1361,10 +1254,6 @@ export class StandardController implements IController {
|
|
|
1361
1254
|
commonRequest: CommonSilentFlowRequest,
|
|
1362
1255
|
cacheLookupPolicy: CacheLookupPolicy
|
|
1363
1256
|
): Promise<AuthenticationResult> {
|
|
1364
|
-
this.performanceClient.addQueueMeasurement(
|
|
1365
|
-
PerformanceEvents.AcquireTokenByRefreshToken,
|
|
1366
|
-
commonRequest.correlationId
|
|
1367
|
-
);
|
|
1368
1257
|
switch (cacheLookupPolicy) {
|
|
1369
1258
|
case CacheLookupPolicy.Default:
|
|
1370
1259
|
case CacheLookupPolicy.AccessTokenAndRefreshToken:
|
|
@@ -1376,7 +1265,7 @@ export class StandardController implements IController {
|
|
|
1376
1265
|
|
|
1377
1266
|
return invokeAsync(
|
|
1378
1267
|
silentRefreshClient.acquireToken.bind(silentRefreshClient),
|
|
1379
|
-
|
|
1268
|
+
BrowserPerformanceEvents.SilentRefreshClientAcquireToken,
|
|
1380
1269
|
this.logger,
|
|
1381
1270
|
this.performanceClient,
|
|
1382
1271
|
commonRequest.correlationId
|
|
@@ -1396,18 +1285,13 @@ export class StandardController implements IController {
|
|
|
1396
1285
|
protected async acquireTokenBySilentIframe(
|
|
1397
1286
|
request: CommonSilentFlowRequest
|
|
1398
1287
|
): Promise<AuthenticationResult> {
|
|
1399
|
-
this.performanceClient.addQueueMeasurement(
|
|
1400
|
-
PerformanceEvents.AcquireTokenBySilentIframe,
|
|
1401
|
-
request.correlationId
|
|
1402
|
-
);
|
|
1403
|
-
|
|
1404
1288
|
const silentIframeClient = this.createSilentIframeClient(
|
|
1405
1289
|
request.correlationId
|
|
1406
1290
|
);
|
|
1407
1291
|
|
|
1408
1292
|
return invokeAsync(
|
|
1409
1293
|
silentIframeClient.acquireToken.bind(silentIframeClient),
|
|
1410
|
-
|
|
1294
|
+
BrowserPerformanceEvents.SilentIframeClientAcquireToken,
|
|
1411
1295
|
this.logger,
|
|
1412
1296
|
this.performanceClient,
|
|
1413
1297
|
request.correlationId
|
|
@@ -1418,23 +1302,6 @@ export class StandardController implements IController {
|
|
|
1418
1302
|
|
|
1419
1303
|
// #region Logout
|
|
1420
1304
|
|
|
1421
|
-
/**
|
|
1422
|
-
* Deprecated logout function. Use logoutRedirect or logoutPopup instead
|
|
1423
|
-
* @param logoutRequest
|
|
1424
|
-
* @deprecated
|
|
1425
|
-
*/
|
|
1426
|
-
async logout(logoutRequest?: EndSessionRequest): Promise<void> {
|
|
1427
|
-
const correlationId = this.getRequestCorrelationId(logoutRequest);
|
|
1428
|
-
this.logger.warning(
|
|
1429
|
-
"logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",
|
|
1430
|
-
correlationId
|
|
1431
|
-
);
|
|
1432
|
-
return this.logoutRedirect({
|
|
1433
|
-
correlationId,
|
|
1434
|
-
...logoutRequest,
|
|
1435
|
-
});
|
|
1436
|
-
}
|
|
1437
|
-
|
|
1438
1305
|
/**
|
|
1439
1306
|
* Use to log out the current user, and redirect the user to the postLogoutRedirectUri.
|
|
1440
1307
|
* Default behaviour is to redirect the user to `window.location.href`.
|
|
@@ -1481,7 +1348,6 @@ export class StandardController implements IController {
|
|
|
1481
1348
|
*/
|
|
1482
1349
|
async clearCache(logoutRequest?: ClearCacheRequest): Promise<void> {
|
|
1483
1350
|
if (!this.isBrowserEnvironment) {
|
|
1484
|
-
this.logger.info("in non-browser environment, returning early.");
|
|
1485
1351
|
return;
|
|
1486
1352
|
}
|
|
1487
1353
|
const correlationId = this.getRequestCorrelationId(logoutRequest);
|
|
@@ -1499,12 +1365,11 @@ export class StandardController implements IController {
|
|
|
1499
1365
|
* @returns Array of AccountInfo objects in cache
|
|
1500
1366
|
*/
|
|
1501
1367
|
getAllAccounts(accountFilter?: AccountFilter): AccountInfo[] {
|
|
1502
|
-
const correlationId = this.getRequestCorrelationId();
|
|
1503
1368
|
return AccountManager.getAllAccounts(
|
|
1504
1369
|
this.logger,
|
|
1505
1370
|
this.browserStorage,
|
|
1506
1371
|
this.isBrowserEnvironment,
|
|
1507
|
-
|
|
1372
|
+
this.getRequestCorrelationId(),
|
|
1508
1373
|
accountFilter
|
|
1509
1374
|
);
|
|
1510
1375
|
}
|
|
@@ -1515,64 +1380,11 @@ export class StandardController implements IController {
|
|
|
1515
1380
|
* @returns The first account found in the cache matching the provided filter or null if no account could be found.
|
|
1516
1381
|
*/
|
|
1517
1382
|
getAccount(accountFilter: AccountFilter): AccountInfo | null {
|
|
1518
|
-
const correlationId = this.getRequestCorrelationId();
|
|
1519
1383
|
return AccountManager.getAccount(
|
|
1520
1384
|
accountFilter,
|
|
1521
1385
|
this.logger,
|
|
1522
1386
|
this.browserStorage,
|
|
1523
|
-
|
|
1524
|
-
);
|
|
1525
|
-
}
|
|
1526
|
-
|
|
1527
|
-
/**
|
|
1528
|
-
* Returns the signed in account matching username.
|
|
1529
|
-
* (the account object is created at the time of successful login)
|
|
1530
|
-
* or null when no matching account is found.
|
|
1531
|
-
* This API is provided for convenience but getAccountById should be used for best reliability
|
|
1532
|
-
* @param username
|
|
1533
|
-
* @returns The account object stored in MSAL
|
|
1534
|
-
*/
|
|
1535
|
-
getAccountByUsername(username: string): AccountInfo | null {
|
|
1536
|
-
const correlationId = this.getRequestCorrelationId();
|
|
1537
|
-
return AccountManager.getAccountByUsername(
|
|
1538
|
-
username,
|
|
1539
|
-
this.logger,
|
|
1540
|
-
this.browserStorage,
|
|
1541
|
-
correlationId
|
|
1542
|
-
);
|
|
1543
|
-
}
|
|
1544
|
-
|
|
1545
|
-
/**
|
|
1546
|
-
* Returns the signed in account matching homeAccountId.
|
|
1547
|
-
* (the account object is created at the time of successful login)
|
|
1548
|
-
* or null when no matching account is found
|
|
1549
|
-
* @param homeAccountId
|
|
1550
|
-
* @returns The account object stored in MSAL
|
|
1551
|
-
*/
|
|
1552
|
-
getAccountByHomeId(homeAccountId: string): AccountInfo | null {
|
|
1553
|
-
const correlationId = this.getRequestCorrelationId();
|
|
1554
|
-
return AccountManager.getAccountByHomeId(
|
|
1555
|
-
homeAccountId,
|
|
1556
|
-
this.logger,
|
|
1557
|
-
this.browserStorage,
|
|
1558
|
-
correlationId
|
|
1559
|
-
);
|
|
1560
|
-
}
|
|
1561
|
-
|
|
1562
|
-
/**
|
|
1563
|
-
* Returns the signed in account matching localAccountId.
|
|
1564
|
-
* (the account object is created at the time of successful login)
|
|
1565
|
-
* or null when no matching account is found
|
|
1566
|
-
* @param localAccountId
|
|
1567
|
-
* @returns The account object stored in MSAL
|
|
1568
|
-
*/
|
|
1569
|
-
getAccountByLocalId(localAccountId: string): AccountInfo | null {
|
|
1570
|
-
const correlationId = this.getRequestCorrelationId();
|
|
1571
|
-
return AccountManager.getAccountByLocalId(
|
|
1572
|
-
localAccountId,
|
|
1573
|
-
this.logger,
|
|
1574
|
-
this.browserStorage,
|
|
1575
|
-
correlationId
|
|
1387
|
+
this.getRequestCorrelationId()
|
|
1576
1388
|
);
|
|
1577
1389
|
}
|
|
1578
1390
|
|
|
@@ -1581,11 +1393,10 @@ export class StandardController implements IController {
|
|
|
1581
1393
|
* @param account
|
|
1582
1394
|
*/
|
|
1583
1395
|
setActiveAccount(account: AccountInfo | null): void {
|
|
1584
|
-
const correlationId = this.getRequestCorrelationId();
|
|
1585
1396
|
AccountManager.setActiveAccount(
|
|
1586
1397
|
account,
|
|
1587
1398
|
this.browserStorage,
|
|
1588
|
-
|
|
1399
|
+
this.getRequestCorrelationId()
|
|
1589
1400
|
);
|
|
1590
1401
|
}
|
|
1591
1402
|
|
|
@@ -1593,10 +1404,9 @@ export class StandardController implements IController {
|
|
|
1593
1404
|
* Gets the currently active account
|
|
1594
1405
|
*/
|
|
1595
1406
|
getActiveAccount(): AccountInfo | null {
|
|
1596
|
-
const correlationId = this.getRequestCorrelationId();
|
|
1597
1407
|
return AccountManager.getActiveAccount(
|
|
1598
1408
|
this.browserStorage,
|
|
1599
|
-
|
|
1409
|
+
this.getRequestCorrelationId()
|
|
1600
1410
|
);
|
|
1601
1411
|
}
|
|
1602
1412
|
|
|
@@ -1616,23 +1426,25 @@ export class StandardController implements IController {
|
|
|
1616
1426
|
| RedirectRequest
|
|
1617
1427
|
| PopupRequest
|
|
1618
1428
|
): Promise<void> {
|
|
1619
|
-
this.logger.verbose("hydrateCache called");
|
|
1429
|
+
this.logger.verbose("hydrateCache called", result.correlationId);
|
|
1620
1430
|
|
|
1621
1431
|
// Account gets saved to browser storage regardless of native or not
|
|
1622
|
-
const accountEntity =
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1432
|
+
const accountEntity =
|
|
1433
|
+
AccountEntityUtils.createAccountEntityFromAccountInfo(
|
|
1434
|
+
result.account,
|
|
1435
|
+
result.cloudGraphHostName,
|
|
1436
|
+
result.msGraphHost
|
|
1437
|
+
);
|
|
1627
1438
|
await this.browserStorage.setAccount(
|
|
1628
1439
|
accountEntity,
|
|
1629
1440
|
result.correlationId,
|
|
1630
1441
|
AuthToken.isKmsi(result.idTokenClaims)
|
|
1631
1442
|
);
|
|
1632
1443
|
|
|
1633
|
-
if (result.
|
|
1444
|
+
if (result.fromPlatformBroker) {
|
|
1634
1445
|
this.logger.verbose(
|
|
1635
|
-
"Response was from native broker, storing in-memory"
|
|
1446
|
+
"Response was from native broker, storing in-memory",
|
|
1447
|
+
result.correlationId
|
|
1636
1448
|
);
|
|
1637
1449
|
// Tokens from native broker are stored in-memory
|
|
1638
1450
|
return this.nativeInternalStorage.hydrateCache(result, request);
|
|
@@ -1653,12 +1465,14 @@ export class StandardController implements IController {
|
|
|
1653
1465
|
accountId?: string,
|
|
1654
1466
|
cacheLookupPolicy?: CacheLookupPolicy
|
|
1655
1467
|
): Promise<AuthenticationResult> {
|
|
1656
|
-
this.
|
|
1468
|
+
const correlationId = this.getRequestCorrelationId(request);
|
|
1469
|
+
this.logger.trace("acquireTokenNative called", correlationId);
|
|
1657
1470
|
if (!this.platformAuthProvider) {
|
|
1658
1471
|
throw createBrowserAuthError(
|
|
1659
1472
|
BrowserAuthErrorCodes.nativeConnectionNotEstablished
|
|
1660
1473
|
);
|
|
1661
1474
|
}
|
|
1475
|
+
|
|
1662
1476
|
const nativeClient = new PlatformAuthInteractionClient(
|
|
1663
1477
|
this.config,
|
|
1664
1478
|
this.browserStorage,
|
|
@@ -1671,7 +1485,7 @@ export class StandardController implements IController {
|
|
|
1671
1485
|
this.platformAuthProvider,
|
|
1672
1486
|
accountId || this.getNativeAccountId(request),
|
|
1673
1487
|
this.nativeInternalStorage,
|
|
1674
|
-
|
|
1488
|
+
correlationId
|
|
1675
1489
|
);
|
|
1676
1490
|
|
|
1677
1491
|
return nativeClient.acquireToken(request, cacheLookupPolicy);
|
|
@@ -1685,10 +1499,12 @@ export class StandardController implements IController {
|
|
|
1685
1499
|
request: RedirectRequest | PopupRequest | SsoSilentRequest,
|
|
1686
1500
|
accountId?: string
|
|
1687
1501
|
): boolean {
|
|
1688
|
-
this.
|
|
1502
|
+
const correlationId = this.getRequestCorrelationId(request);
|
|
1503
|
+
this.logger.trace("canUsePlatformBroker called", correlationId);
|
|
1689
1504
|
if (!this.platformAuthProvider) {
|
|
1690
1505
|
this.logger.trace(
|
|
1691
|
-
"canUsePlatformBroker: platform broker unavilable, returning false"
|
|
1506
|
+
"canUsePlatformBroker: platform broker unavilable, returning false",
|
|
1507
|
+
correlationId
|
|
1692
1508
|
);
|
|
1693
1509
|
return false;
|
|
1694
1510
|
}
|
|
@@ -1697,29 +1513,32 @@ export class StandardController implements IController {
|
|
|
1697
1513
|
!isPlatformAuthAllowed(
|
|
1698
1514
|
this.config,
|
|
1699
1515
|
this.logger,
|
|
1516
|
+
correlationId,
|
|
1700
1517
|
this.platformAuthProvider,
|
|
1701
1518
|
request.authenticationScheme
|
|
1702
1519
|
)
|
|
1703
1520
|
) {
|
|
1704
1521
|
this.logger.trace(
|
|
1705
|
-
"canUsePlatformBroker: isBrokerAvailable returned false, returning false"
|
|
1522
|
+
"canUsePlatformBroker: isBrokerAvailable returned false, returning false",
|
|
1523
|
+
correlationId
|
|
1706
1524
|
);
|
|
1707
1525
|
return false;
|
|
1708
1526
|
}
|
|
1709
1527
|
|
|
1710
1528
|
if (request.prompt) {
|
|
1711
1529
|
switch (request.prompt) {
|
|
1712
|
-
case PromptValue.NONE:
|
|
1713
|
-
case PromptValue.CONSENT:
|
|
1714
|
-
case PromptValue.LOGIN:
|
|
1715
|
-
case PromptValue.SELECT_ACCOUNT:
|
|
1530
|
+
case Constants.PromptValue.NONE:
|
|
1531
|
+
case Constants.PromptValue.CONSENT:
|
|
1532
|
+
case Constants.PromptValue.LOGIN:
|
|
1716
1533
|
this.logger.trace(
|
|
1717
|
-
"canUsePlatformBroker: prompt is compatible with platform broker flow"
|
|
1534
|
+
"canUsePlatformBroker: prompt is compatible with platform broker flow",
|
|
1535
|
+
correlationId
|
|
1718
1536
|
);
|
|
1719
1537
|
break;
|
|
1720
1538
|
default:
|
|
1721
1539
|
this.logger.trace(
|
|
1722
|
-
`canUsePlatformBroker: prompt = ${request.prompt} is not compatible with platform broker flow, returning false
|
|
1540
|
+
`canUsePlatformBroker: prompt = '${request.prompt}' is not compatible with platform broker flow, returning false`,
|
|
1541
|
+
correlationId
|
|
1723
1542
|
);
|
|
1724
1543
|
return false;
|
|
1725
1544
|
}
|
|
@@ -1727,7 +1546,8 @@ export class StandardController implements IController {
|
|
|
1727
1546
|
|
|
1728
1547
|
if (!accountId && !this.getNativeAccountId(request)) {
|
|
1729
1548
|
this.logger.trace(
|
|
1730
|
-
"canUsePlatformBroker: nativeAccountId is not available, returning false"
|
|
1549
|
+
"canUsePlatformBroker: nativeAccountId is not available, returning false",
|
|
1550
|
+
correlationId
|
|
1731
1551
|
);
|
|
1732
1552
|
return false;
|
|
1733
1553
|
}
|
|
@@ -1758,7 +1578,7 @@ export class StandardController implements IController {
|
|
|
1758
1578
|
* Returns new instance of the Popup Interaction Client
|
|
1759
1579
|
* @param correlationId
|
|
1760
1580
|
*/
|
|
1761
|
-
public createPopupClient(correlationId
|
|
1581
|
+
public createPopupClient(correlationId: string): PopupClient {
|
|
1762
1582
|
return new PopupClient(
|
|
1763
1583
|
this.config,
|
|
1764
1584
|
this.browserStorage,
|
|
@@ -1768,8 +1588,8 @@ export class StandardController implements IController {
|
|
|
1768
1588
|
this.navigationClient,
|
|
1769
1589
|
this.performanceClient,
|
|
1770
1590
|
this.nativeInternalStorage,
|
|
1771
|
-
|
|
1772
|
-
|
|
1591
|
+
correlationId,
|
|
1592
|
+
this.platformAuthProvider
|
|
1773
1593
|
);
|
|
1774
1594
|
}
|
|
1775
1595
|
|
|
@@ -1777,7 +1597,7 @@ export class StandardController implements IController {
|
|
|
1777
1597
|
* Returns new instance of the Redirect Interaction Client
|
|
1778
1598
|
* @param correlationId
|
|
1779
1599
|
*/
|
|
1780
|
-
protected createRedirectClient(correlationId
|
|
1600
|
+
protected createRedirectClient(correlationId: string): RedirectClient {
|
|
1781
1601
|
return new RedirectClient(
|
|
1782
1602
|
this.config,
|
|
1783
1603
|
this.browserStorage,
|
|
@@ -1787,8 +1607,8 @@ export class StandardController implements IController {
|
|
|
1787
1607
|
this.navigationClient,
|
|
1788
1608
|
this.performanceClient,
|
|
1789
1609
|
this.nativeInternalStorage,
|
|
1790
|
-
|
|
1791
|
-
|
|
1610
|
+
correlationId,
|
|
1611
|
+
this.platformAuthProvider
|
|
1792
1612
|
);
|
|
1793
1613
|
}
|
|
1794
1614
|
|
|
@@ -1796,9 +1616,7 @@ export class StandardController implements IController {
|
|
|
1796
1616
|
* Returns new instance of the Silent Iframe Interaction Client
|
|
1797
1617
|
* @param correlationId
|
|
1798
1618
|
*/
|
|
1799
|
-
public createSilentIframeClient(
|
|
1800
|
-
correlationId?: string
|
|
1801
|
-
): SilentIframeClient {
|
|
1619
|
+
public createSilentIframeClient(correlationId: string): SilentIframeClient {
|
|
1802
1620
|
return new SilentIframeClient(
|
|
1803
1621
|
this.config,
|
|
1804
1622
|
this.browserStorage,
|
|
@@ -1809,8 +1627,8 @@ export class StandardController implements IController {
|
|
|
1809
1627
|
ApiId.ssoSilent,
|
|
1810
1628
|
this.performanceClient,
|
|
1811
1629
|
this.nativeInternalStorage,
|
|
1812
|
-
|
|
1813
|
-
|
|
1630
|
+
correlationId,
|
|
1631
|
+
this.platformAuthProvider
|
|
1814
1632
|
);
|
|
1815
1633
|
}
|
|
1816
1634
|
|
|
@@ -1818,7 +1636,7 @@ export class StandardController implements IController {
|
|
|
1818
1636
|
* Returns new instance of the Silent Cache Interaction Client
|
|
1819
1637
|
*/
|
|
1820
1638
|
protected createSilentCacheClient(
|
|
1821
|
-
correlationId
|
|
1639
|
+
correlationId: string
|
|
1822
1640
|
): SilentCacheClient {
|
|
1823
1641
|
return new SilentCacheClient(
|
|
1824
1642
|
this.config,
|
|
@@ -1828,8 +1646,8 @@ export class StandardController implements IController {
|
|
|
1828
1646
|
this.eventHandler,
|
|
1829
1647
|
this.navigationClient,
|
|
1830
1648
|
this.performanceClient,
|
|
1831
|
-
|
|
1832
|
-
|
|
1649
|
+
correlationId,
|
|
1650
|
+
this.platformAuthProvider
|
|
1833
1651
|
);
|
|
1834
1652
|
}
|
|
1835
1653
|
|
|
@@ -1837,7 +1655,7 @@ export class StandardController implements IController {
|
|
|
1837
1655
|
* Returns new instance of the Silent Refresh Interaction Client
|
|
1838
1656
|
*/
|
|
1839
1657
|
protected createSilentRefreshClient(
|
|
1840
|
-
correlationId
|
|
1658
|
+
correlationId: string
|
|
1841
1659
|
): SilentRefreshClient {
|
|
1842
1660
|
return new SilentRefreshClient(
|
|
1843
1661
|
this.config,
|
|
@@ -1847,8 +1665,8 @@ export class StandardController implements IController {
|
|
|
1847
1665
|
this.eventHandler,
|
|
1848
1666
|
this.navigationClient,
|
|
1849
1667
|
this.performanceClient,
|
|
1850
|
-
|
|
1851
|
-
|
|
1668
|
+
correlationId,
|
|
1669
|
+
this.platformAuthProvider
|
|
1852
1670
|
);
|
|
1853
1671
|
}
|
|
1854
1672
|
|
|
@@ -1856,7 +1674,7 @@ export class StandardController implements IController {
|
|
|
1856
1674
|
* Returns new instance of the Silent AuthCode Interaction Client
|
|
1857
1675
|
*/
|
|
1858
1676
|
protected createSilentAuthCodeClient(
|
|
1859
|
-
correlationId
|
|
1677
|
+
correlationId: string
|
|
1860
1678
|
): SilentAuthCodeClient {
|
|
1861
1679
|
return new SilentAuthCodeClient(
|
|
1862
1680
|
this.config,
|
|
@@ -1867,8 +1685,8 @@ export class StandardController implements IController {
|
|
|
1867
1685
|
this.navigationClient,
|
|
1868
1686
|
ApiId.acquireTokenByCode,
|
|
1869
1687
|
this.performanceClient,
|
|
1870
|
-
|
|
1871
|
-
|
|
1688
|
+
correlationId,
|
|
1689
|
+
this.platformAuthProvider
|
|
1872
1690
|
);
|
|
1873
1691
|
}
|
|
1874
1692
|
|
|
@@ -1912,49 +1730,6 @@ export class StandardController implements IController {
|
|
|
1912
1730
|
return this.performanceClient.removePerformanceCallback(callbackId);
|
|
1913
1731
|
}
|
|
1914
1732
|
|
|
1915
|
-
/**
|
|
1916
|
-
* Adds event listener that emits an event when a user account is added or removed from localstorage in a different browser tab or window
|
|
1917
|
-
* @deprecated These events will be raised by default and this method will be removed in a future major version.
|
|
1918
|
-
*/
|
|
1919
|
-
enableAccountStorageEvents(): void {
|
|
1920
|
-
if (
|
|
1921
|
-
this.config.cache.cacheLocation !==
|
|
1922
|
-
BrowserCacheLocation.LocalStorage
|
|
1923
|
-
) {
|
|
1924
|
-
this.logger.info(
|
|
1925
|
-
"Account storage events are only available when cacheLocation is set to localStorage"
|
|
1926
|
-
);
|
|
1927
|
-
return;
|
|
1928
|
-
}
|
|
1929
|
-
|
|
1930
|
-
this.eventHandler.subscribeCrossTab();
|
|
1931
|
-
}
|
|
1932
|
-
|
|
1933
|
-
/**
|
|
1934
|
-
* Removes event listener that emits an event when a user account is added or removed from localstorage in a different browser tab or window
|
|
1935
|
-
* @deprecated These events will be raised by default and this method will be removed in a future major version.
|
|
1936
|
-
*/
|
|
1937
|
-
disableAccountStorageEvents(): void {
|
|
1938
|
-
if (
|
|
1939
|
-
this.config.cache.cacheLocation !==
|
|
1940
|
-
BrowserCacheLocation.LocalStorage
|
|
1941
|
-
) {
|
|
1942
|
-
this.logger.info(
|
|
1943
|
-
"Account storage events are only available when cacheLocation is set to localStorage"
|
|
1944
|
-
);
|
|
1945
|
-
return;
|
|
1946
|
-
}
|
|
1947
|
-
|
|
1948
|
-
this.eventHandler.unsubscribeCrossTab();
|
|
1949
|
-
}
|
|
1950
|
-
|
|
1951
|
-
/**
|
|
1952
|
-
* Gets the token cache for the application.
|
|
1953
|
-
*/
|
|
1954
|
-
getTokenCache(): ITokenCache {
|
|
1955
|
-
return this.tokenCache;
|
|
1956
|
-
}
|
|
1957
|
-
|
|
1958
1733
|
/**
|
|
1959
1734
|
* Returns the logger instance
|
|
1960
1735
|
*/
|
|
@@ -2031,7 +1806,7 @@ export class StandardController implements IController {
|
|
|
2031
1806
|
* Included for fallback for non-browser environments,
|
|
2032
1807
|
* and to ensure this method always returns a string.
|
|
2033
1808
|
*/
|
|
2034
|
-
return
|
|
1809
|
+
return "";
|
|
2035
1810
|
}
|
|
2036
1811
|
|
|
2037
1812
|
// #endregion
|
|
@@ -2081,7 +1856,7 @@ export class StandardController implements IController {
|
|
|
2081
1856
|
): Promise<AuthenticationResult> {
|
|
2082
1857
|
const correlationId = this.getRequestCorrelationId(request);
|
|
2083
1858
|
const atsMeasurement = this.performanceClient.startMeasurement(
|
|
2084
|
-
|
|
1859
|
+
BrowserRootPerformanceEvents.AcquireTokenSilent,
|
|
2085
1860
|
correlationId
|
|
2086
1861
|
);
|
|
2087
1862
|
atsMeasurement.add({
|
|
@@ -2103,6 +1878,7 @@ export class StandardController implements IController {
|
|
|
2103
1878
|
{
|
|
2104
1879
|
success: true,
|
|
2105
1880
|
fromCache: result.fromCache,
|
|
1881
|
+
isNativeBroker: result.fromPlatformBroker,
|
|
2106
1882
|
accessTokenSize: result.accessToken.length,
|
|
2107
1883
|
idTokenSize: result.idToken.length,
|
|
2108
1884
|
},
|
|
@@ -2167,7 +1943,7 @@ export class StandardController implements IController {
|
|
|
2167
1943
|
|
|
2168
1944
|
const activeRequest = invokeAsync(
|
|
2169
1945
|
this.acquireTokenSilentAsync.bind(this),
|
|
2170
|
-
|
|
1946
|
+
BrowserPerformanceEvents.AcquireTokenSilentAsync,
|
|
2171
1947
|
this.logger,
|
|
2172
1948
|
this.performanceClient,
|
|
2173
1949
|
correlationId
|
|
@@ -2205,11 +1981,6 @@ export class StandardController implements IController {
|
|
|
2205
1981
|
): Promise<AuthenticationResult> {
|
|
2206
1982
|
const trackPageVisibility = () =>
|
|
2207
1983
|
this.trackPageVisibility(request.correlationId);
|
|
2208
|
-
this.performanceClient.addQueueMeasurement(
|
|
2209
|
-
PerformanceEvents.AcquireTokenSilentAsync,
|
|
2210
|
-
request.correlationId
|
|
2211
|
-
);
|
|
2212
|
-
|
|
2213
1984
|
this.eventHandler.emitEvent(
|
|
2214
1985
|
EventType.ACQUIRE_TOKEN_START,
|
|
2215
1986
|
InteractionType.Silent,
|
|
@@ -2227,7 +1998,7 @@ export class StandardController implements IController {
|
|
|
2227
1998
|
|
|
2228
1999
|
const silentRequest = await invokeAsync(
|
|
2229
2000
|
initializeSilentRequest,
|
|
2230
|
-
|
|
2001
|
+
BrowserPerformanceEvents.InitializeSilentRequest,
|
|
2231
2002
|
this.logger,
|
|
2232
2003
|
this.performanceClient,
|
|
2233
2004
|
request.correlationId
|
|
@@ -2261,7 +2032,7 @@ export class StandardController implements IController {
|
|
|
2261
2032
|
);
|
|
2262
2033
|
return invokeAsync(
|
|
2263
2034
|
this.acquireTokenBySilentIframe.bind(this),
|
|
2264
|
-
|
|
2035
|
+
BrowserPerformanceEvents.AcquireTokenBySilentIframe,
|
|
2265
2036
|
this.logger,
|
|
2266
2037
|
this.performanceClient,
|
|
2267
2038
|
silentRequest.correlationId
|
|
@@ -2281,12 +2052,12 @@ export class StandardController implements IController {
|
|
|
2281
2052
|
const [activePromise, activeCorrelationId] =
|
|
2282
2053
|
this.activeIframeRequest;
|
|
2283
2054
|
this.logger.verbose(
|
|
2284
|
-
`Iframe request is already in progress, awaiting resolution for request with correlationId: ${activeCorrelationId}`,
|
|
2055
|
+
`Iframe request is already in progress, awaiting resolution for request with correlationId: '${activeCorrelationId}'`,
|
|
2285
2056
|
silentRequest.correlationId
|
|
2286
2057
|
);
|
|
2287
2058
|
const awaitConcurrentIframeMeasure =
|
|
2288
2059
|
this.performanceClient.startMeasurement(
|
|
2289
|
-
|
|
2060
|
+
BrowserPerformanceEvents.AwaitConcurrentIframe,
|
|
2290
2061
|
silentRequest.correlationId
|
|
2291
2062
|
);
|
|
2292
2063
|
awaitConcurrentIframeMeasure.add({
|
|
@@ -2299,7 +2070,7 @@ export class StandardController implements IController {
|
|
|
2299
2070
|
});
|
|
2300
2071
|
if (activePromiseResult) {
|
|
2301
2072
|
this.logger.verbose(
|
|
2302
|
-
`Parallel iframe request with correlationId: ${activeCorrelationId} succeeded. Retrying cache and/or RT redemption`,
|
|
2073
|
+
`Parallel iframe request with correlationId: '${activeCorrelationId}' succeeded. Retrying cache and/or RT redemption`,
|
|
2303
2074
|
silentRequest.correlationId
|
|
2304
2075
|
);
|
|
2305
2076
|
// Retry cache lookup and/or RT exchange after iframe completes
|
|
@@ -2309,7 +2080,8 @@ export class StandardController implements IController {
|
|
|
2309
2080
|
);
|
|
2310
2081
|
} else {
|
|
2311
2082
|
this.logger.info(
|
|
2312
|
-
`Iframe request with correlationId: ${activeCorrelationId} failed. Interaction is required
|
|
2083
|
+
`Iframe request with correlationId: '${activeCorrelationId}' failed. Interaction is required.`,
|
|
2084
|
+
silentRequest.correlationId
|
|
2313
2085
|
);
|
|
2314
2086
|
// If previous iframe request failed, it's unlikely to succeed this time. Throw original error.
|
|
2315
2087
|
throw refreshTokenError;
|
|
@@ -2322,7 +2094,7 @@ export class StandardController implements IController {
|
|
|
2322
2094
|
);
|
|
2323
2095
|
return invokeAsync(
|
|
2324
2096
|
this.acquireTokenBySilentIframe.bind(this),
|
|
2325
|
-
|
|
2097
|
+
BrowserPerformanceEvents.AcquireTokenBySilentIframe,
|
|
2326
2098
|
this.logger,
|
|
2327
2099
|
this.performanceClient,
|
|
2328
2100
|
silentRequest.correlationId
|
|
@@ -2341,12 +2113,15 @@ export class StandardController implements IController {
|
|
|
2341
2113
|
InteractionType.Silent,
|
|
2342
2114
|
response
|
|
2343
2115
|
);
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2116
|
+
if (request.correlationId) {
|
|
2117
|
+
this.performanceClient.addFields(
|
|
2118
|
+
{
|
|
2119
|
+
fromCache: response.fromCache,
|
|
2120
|
+
isNativeBroker: response.fromPlatformBroker,
|
|
2121
|
+
},
|
|
2122
|
+
request.correlationId
|
|
2123
|
+
);
|
|
2124
|
+
}
|
|
2350
2125
|
|
|
2351
2126
|
return response;
|
|
2352
2127
|
})
|
|
@@ -2382,16 +2157,14 @@ export class StandardController implements IController {
|
|
|
2382
2157
|
isPlatformAuthAllowed(
|
|
2383
2158
|
this.config,
|
|
2384
2159
|
this.logger,
|
|
2160
|
+
silentRequest.correlationId,
|
|
2385
2161
|
this.platformAuthProvider,
|
|
2386
2162
|
silentRequest.authenticationScheme
|
|
2387
2163
|
) &&
|
|
2388
2164
|
silentRequest.account.nativeAccountId
|
|
2389
2165
|
) {
|
|
2390
2166
|
this.logger.verbose(
|
|
2391
|
-
"acquireTokenSilent - attempting to acquire token from native platform"
|
|
2392
|
-
);
|
|
2393
|
-
this.performanceClient.addFields(
|
|
2394
|
-
{ isPlatformBrokerRequest: true },
|
|
2167
|
+
"acquireTokenSilent - attempting to acquire token from native platform",
|
|
2395
2168
|
silentRequest.correlationId
|
|
2396
2169
|
);
|
|
2397
2170
|
return this.acquireTokenNative(
|
|
@@ -2400,17 +2173,11 @@ export class StandardController implements IController {
|
|
|
2400
2173
|
silentRequest.account.nativeAccountId,
|
|
2401
2174
|
cacheLookupPolicy
|
|
2402
2175
|
).catch(async (e: AuthError) => {
|
|
2403
|
-
this.performanceClient.addFields(
|
|
2404
|
-
{
|
|
2405
|
-
brokerErrorName: e.name,
|
|
2406
|
-
brokerErrorCode: e.errorCode,
|
|
2407
|
-
},
|
|
2408
|
-
silentRequest.correlationId
|
|
2409
|
-
);
|
|
2410
2176
|
// If native token acquisition fails for availability reasons fallback to web flow
|
|
2411
2177
|
if (e instanceof NativeAuthError && isFatalNativeAuthError(e)) {
|
|
2412
2178
|
this.logger.verbose(
|
|
2413
|
-
"acquireTokenSilent - native platform unavailable, falling back to web flow"
|
|
2179
|
+
"acquireTokenSilent - native platform unavailable, falling back to web flow",
|
|
2180
|
+
silentRequest.correlationId
|
|
2414
2181
|
);
|
|
2415
2182
|
this.platformAuthProvider = undefined; // Prevent future requests from continuing to attempt
|
|
2416
2183
|
// Cache will not contain tokens, given that previous WAM requests succeeded. Skip cache and RT renewal and go straight to iframe renewal
|
|
@@ -2422,17 +2189,19 @@ export class StandardController implements IController {
|
|
|
2422
2189
|
});
|
|
2423
2190
|
} else {
|
|
2424
2191
|
this.logger.verbose(
|
|
2425
|
-
"acquireTokenSilent - attempting to acquire token from web flow"
|
|
2192
|
+
"acquireTokenSilent - attempting to acquire token from web flow",
|
|
2193
|
+
silentRequest.correlationId
|
|
2426
2194
|
);
|
|
2427
2195
|
// add logs to identify embedded cache retrieval
|
|
2428
2196
|
if (cacheLookupPolicy === CacheLookupPolicy.AccessToken) {
|
|
2429
2197
|
this.logger.verbose(
|
|
2430
|
-
"acquireTokenSilent - cache lookup policy set to AccessToken, attempting to acquire token from local cache"
|
|
2198
|
+
"acquireTokenSilent - cache lookup policy set to AccessToken, attempting to acquire token from local cache",
|
|
2199
|
+
silentRequest.correlationId
|
|
2431
2200
|
);
|
|
2432
2201
|
}
|
|
2433
2202
|
return invokeAsync(
|
|
2434
2203
|
this.acquireTokenFromCache.bind(this),
|
|
2435
|
-
|
|
2204
|
+
BrowserPerformanceEvents.AcquireTokenFromCache,
|
|
2436
2205
|
this.logger,
|
|
2437
2206
|
this.performanceClient,
|
|
2438
2207
|
silentRequest.correlationId
|
|
@@ -2450,7 +2219,7 @@ export class StandardController implements IController {
|
|
|
2450
2219
|
|
|
2451
2220
|
return invokeAsync(
|
|
2452
2221
|
this.acquireTokenByRefreshToken.bind(this),
|
|
2453
|
-
|
|
2222
|
+
BrowserPerformanceEvents.AcquireTokenByRefreshToken,
|
|
2454
2223
|
this.logger,
|
|
2455
2224
|
this.performanceClient,
|
|
2456
2225
|
silentRequest.correlationId
|
|
@@ -2465,10 +2234,10 @@ export class StandardController implements IController {
|
|
|
2465
2234
|
* @param correlationId
|
|
2466
2235
|
*/
|
|
2467
2236
|
private async preGeneratePkceCodes(correlationId: string): Promise<void> {
|
|
2468
|
-
this.logger.verbose("Generating new PKCE codes");
|
|
2237
|
+
this.logger.verbose("Generating new PKCE codes", correlationId);
|
|
2469
2238
|
this.pkceCode = await invokeAsync(
|
|
2470
2239
|
generatePkceCodes,
|
|
2471
|
-
|
|
2240
|
+
BrowserPerformanceEvents.GeneratePkceCodes,
|
|
2472
2241
|
this.logger,
|
|
2473
2242
|
this.performanceClient,
|
|
2474
2243
|
correlationId
|
|
@@ -2483,12 +2252,20 @@ export class StandardController implements IController {
|
|
|
2483
2252
|
private getPreGeneratedPkceCodes(
|
|
2484
2253
|
correlationId: string
|
|
2485
2254
|
): PkceCodes | undefined {
|
|
2486
|
-
this.logger.verbose("Attempting to pick up pre-generated PKCE codes");
|
|
2487
2255
|
const res = this.pkceCode ? { ...this.pkceCode } : undefined;
|
|
2488
2256
|
this.pkceCode = undefined;
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2257
|
+
if (res) {
|
|
2258
|
+
this.logger.verbose(
|
|
2259
|
+
`Pre-generated PKCE codes were found`,
|
|
2260
|
+
correlationId
|
|
2261
|
+
);
|
|
2262
|
+
} else {
|
|
2263
|
+
this.logger.verbose(
|
|
2264
|
+
`Pre-generated PKCE codes were not found`,
|
|
2265
|
+
correlationId
|
|
2266
|
+
);
|
|
2267
|
+
}
|
|
2268
|
+
|
|
2492
2269
|
this.performanceClient.addFields(
|
|
2493
2270
|
{ usePreGeneratedPkce: !!res },
|
|
2494
2271
|
correlationId
|
|
@@ -2497,7 +2274,8 @@ export class StandardController implements IController {
|
|
|
2497
2274
|
}
|
|
2498
2275
|
|
|
2499
2276
|
private logMultipleInstances(
|
|
2500
|
-
performanceEvent: InProgressPerformanceEvent
|
|
2277
|
+
performanceEvent: InProgressPerformanceEvent,
|
|
2278
|
+
correlationId: string
|
|
2501
2279
|
): void {
|
|
2502
2280
|
const clientId = this.config.auth.clientId;
|
|
2503
2281
|
|
|
@@ -2512,12 +2290,18 @@ export class StandardController implements IController {
|
|
|
2512
2290
|
|
|
2513
2291
|
if (clientIds.length > 0) {
|
|
2514
2292
|
this.logger.verbose(
|
|
2515
|
-
"There is already an instance of MSAL.js in the window."
|
|
2293
|
+
"There is already an instance of MSAL.js in the window.",
|
|
2294
|
+
correlationId
|
|
2516
2295
|
);
|
|
2517
2296
|
}
|
|
2518
2297
|
// @ts-ignore
|
|
2519
2298
|
window.msal.clientIds.push(clientId);
|
|
2520
|
-
collectInstanceStats(
|
|
2299
|
+
collectInstanceStats(
|
|
2300
|
+
clientId,
|
|
2301
|
+
performanceEvent,
|
|
2302
|
+
this.logger,
|
|
2303
|
+
correlationId
|
|
2304
|
+
);
|
|
2521
2305
|
}
|
|
2522
2306
|
}
|
|
2523
2307
|
|