@azure/msal-browser 4.24.0 → 5.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/IPublicClientApplication.d.ts +2 -9
- 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 +3 -49
- package/dist/app/PublicClientApplication.d.ts.map +1 -1
- package/dist/app/PublicClientApplication.mjs +8 -65
- package/dist/app/PublicClientApplication.mjs.map +1 -1
- package/dist/app/PublicClientNext.d.ts +2 -49
- package/dist/app/PublicClientNext.d.ts.map +1 -1
- package/dist/app/PublicClientNext.mjs +3 -63
- package/dist/app/PublicClientNext.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 +27 -29
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthProvider.d.ts +4 -2
- package/dist/broker/nativeBroker/PlatformAuthProvider.d.ts.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +19 -18
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs.map +1 -1
- package/dist/cache/AccountManager.d.ts.map +1 -1
- package/dist/cache/AccountManager.mjs +25 -20
- 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 +22 -25
- package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
- package/dist/cache/BrowserCacheManager.mjs +108 -169
- package/dist/cache/BrowserCacheManager.mjs.map +1 -1
- package/dist/cache/CacheHelpers.mjs +1 -1
- package/dist/cache/CacheHelpers.mjs.map +1 -1
- package/dist/cache/CacheKeys.mjs +1 -1
- package/dist/cache/CacheKeys.mjs.map +1 -1
- package/dist/cache/CookieStorage.mjs +1 -1
- package/dist/cache/CookieStorage.mjs.map +1 -1
- package/dist/cache/DatabaseStorage.mjs +1 -1
- package/dist/cache/DatabaseStorage.mjs.map +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/MemoryStorage.mjs.map +1 -1
- package/dist/cache/SessionStorage.mjs +1 -1
- package/dist/cache/SessionStorage.mjs.map +1 -1
- package/dist/cache/TokenCache.d.ts +8 -68
- package/dist/cache/TokenCache.d.ts.map +1 -1
- package/dist/cache/TokenCache.mjs +178 -186
- package/dist/cache/TokenCache.mjs.map +1 -1
- package/dist/config/Configuration.d.ts +6 -55
- package/dist/config/Configuration.d.ts.map +1 -1
- package/dist/config/Configuration.mjs +16 -30
- package/dist/config/Configuration.mjs.map +1 -1
- package/dist/controllers/ControllerFactory.d.ts +1 -1
- package/dist/controllers/ControllerFactory.d.ts.map +1 -1
- package/dist/controllers/ControllerFactory.mjs +13 -7
- package/dist/controllers/ControllerFactory.mjs.map +1 -1
- package/dist/controllers/IController.d.ts +5 -6
- package/dist/controllers/IController.d.ts.map +1 -1
- package/dist/controllers/NestedAppAuthController.d.ts +4 -9
- package/dist/controllers/NestedAppAuthController.d.ts.map +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +48 -64
- package/dist/controllers/NestedAppAuthController.mjs.map +1 -1
- package/dist/controllers/StandardController.d.ts +9 -30
- package/dist/controllers/StandardController.d.ts.map +1 -1
- package/dist/controllers/StandardController.mjs +202 -302
- package/dist/controllers/StandardController.mjs.map +1 -1
- package/dist/controllers/UnknownOperatingContextController.d.ts +4 -8
- package/dist/controllers/UnknownOperatingContextController.d.ts.map +1 -1
- package/dist/controllers/UnknownOperatingContextController.mjs +3 -16
- package/dist/controllers/UnknownOperatingContextController.mjs.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 +2 -9
- package/dist/custom-auth-path/app/IPublicClientApplication.d.ts.map +1 -1
- package/dist/custom-auth-path/app/PublicClientApplication.d.ts +3 -49
- package/dist/custom-auth-path/app/PublicClientApplication.d.ts.map +1 -1
- package/dist/custom-auth-path/app/PublicClientApplication.mjs +4 -63
- package/dist/custom-auth-path/app/PublicClientApplication.mjs.map +1 -1
- package/dist/custom-auth-path/app/PublicClientNext.d.ts +2 -49
- package/dist/custom-auth-path/app/PublicClientNext.d.ts.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 +27 -29
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthExtensionHandler.mjs.map +1 -1
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthProvider.d.ts +4 -2
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthProvider.d.ts.map +1 -1
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthProvider.mjs +14 -14
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthProvider.mjs.map +1 -1
- package/dist/custom-auth-path/cache/AccountManager.d.ts.map +1 -1
- package/dist/custom-auth-path/cache/AccountManager.mjs +25 -20
- 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 +22 -25
- package/dist/custom-auth-path/cache/BrowserCacheManager.d.ts.map +1 -1
- package/dist/custom-auth-path/cache/BrowserCacheManager.mjs +108 -169
- 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/CacheHelpers.mjs.map +1 -1
- package/dist/custom-auth-path/cache/CacheKeys.mjs +1 -1
- 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/CookieStorage.mjs.map +1 -1
- package/dist/custom-auth-path/cache/DatabaseStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/DatabaseStorage.mjs.map +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/MemoryStorage.mjs.map +1 -1
- package/dist/custom-auth-path/cache/SessionStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/SessionStorage.mjs.map +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 +6 -55
- package/dist/custom-auth-path/config/Configuration.d.ts.map +1 -1
- package/dist/custom-auth-path/config/Configuration.mjs +16 -30
- package/dist/custom-auth-path/config/Configuration.mjs.map +1 -1
- package/dist/custom-auth-path/controllers/ControllerFactory.d.ts +1 -1
- package/dist/custom-auth-path/controllers/ControllerFactory.d.ts.map +1 -1
- package/dist/custom-auth-path/controllers/ControllerFactory.mjs +5 -3
- package/dist/custom-auth-path/controllers/ControllerFactory.mjs.map +1 -1
- package/dist/custom-auth-path/controllers/IController.d.ts +5 -6
- package/dist/custom-auth-path/controllers/IController.d.ts.map +1 -1
- package/dist/custom-auth-path/controllers/NestedAppAuthController.d.ts +4 -9
- package/dist/custom-auth-path/controllers/NestedAppAuthController.d.ts.map +1 -1
- package/dist/custom-auth-path/controllers/StandardController.d.ts +9 -30
- package/dist/custom-auth-path/controllers/StandardController.d.ts.map +1 -1
- package/dist/custom-auth-path/controllers/StandardController.mjs +202 -302
- package/dist/custom-auth-path/controllers/StandardController.mjs.map +1 -1
- package/dist/custom-auth-path/controllers/UnknownOperatingContextController.d.ts +4 -8
- 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 -3
- package/dist/custom-auth-path/custom_auth/CustomAuthConstants.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/CustomAuthConstants.mjs +1 -2
- package/dist/custom-auth-path/custom_auth/CustomAuthConstants.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/CustomAuthPublicClientApplication.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/CustomAuthPublicClientApplication.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.mjs +9 -9
- package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.mjs.map +1 -1
- 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.d.ts +1 -2
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +3 -11
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowResultBase.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
- 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/jit/error_type/AuthMethodRegistrationError.d.ts +0 -5
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +2 -9
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -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.mjs +1 -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.mjs +1 -1
- 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/error/CustomAuthApiError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/CustomAuthApiError.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/CustomAuthError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/CustomAuthError.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/HttpError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/HttpError.mjs.map +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/InvalidArgumentError.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationError.mjs.map +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/MethodNotImplementedError.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/MsalCustomAuthError.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/NoCachedAccountFoundError.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlError.mjs.map +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/UnexpectedError.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/UnsupportedEnvironmentError.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/UserAccountAttributeError.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/UserAlreadySignedInError.mjs.map +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/CustomAuthInterationClientFactory.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/JitClient.d.ts +8 -2
- 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 +29 -6
- 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/parameter/JitParams.d.ts +1 -0
- package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts +11 -2
- package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +9 -2
- package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs.map +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/BaseApiClient.mjs.map +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/CustomAuthApiClient.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts +0 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +2 -3
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs.map +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/RegisterApiClient.mjs.map +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/ResetPasswordApiClient.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts +2 -7
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +3 -14
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts +0 -5
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts +1 -5
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts +0 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +3 -4
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs.map +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/network_client/http_client/IHttpClient.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/telemetry/PublicApiId.d.ts +3 -4
- package/dist/custom-auth-path/custom_auth/core/telemetry/PublicApiId.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/telemetry/PublicApiId.mjs +5 -4
- package/dist/custom-auth-path/custom_auth/core/telemetry/PublicApiId.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/utils/ArgumentValidator.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/utils/UrlUtils.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/utils/UrlUtils.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +4 -4
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs.map +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/GetAccessTokenResult.mjs.map +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/GetAccountResult.mjs.map +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/result/SignOutResult.mjs.map +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 +7 -9
- 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/operating_context/CustomAuthOperatingContext.mjs.map +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/error_type/ResetPasswordError.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs.map +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/ResetPasswordStartResult.mjs.map +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/ResetPasswordSubmitCodeResult.mjs.map +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/result/ResetPasswordSubmitPasswordResult.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +3 -3
- 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 +2 -2
- 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/auth_flow/state/ResetPasswordState.mjs.map +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 +7 -6
- 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/SignInScenario.mjs.map +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/error_type/SignInError.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +5 -14
- 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 +2 -2
- 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 +2 -2
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInState.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.d.ts +6 -8
- 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 +36 -57
- 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.d.ts +0 -6
- package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +2 -9
- package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs.map +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/error_type/SignUpError.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs.map +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/SignUpResult.mjs.map +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/SignUpSubmitAttributesResult.mjs.map +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/SignUpSubmitCodeResult.mjs.map +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/result/SignUpSubmitPasswordResult.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +2 -2
- 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 +3 -3
- 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 +2 -2
- 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/auth_flow/state/SignUpState.mjs.map +1 -1
- 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 +10 -9
- 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.mjs +2 -8
- 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 +71 -84
- package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
- package/dist/custom-auth-path/interaction_client/PopupClient.d.ts +2 -14
- package/dist/custom-auth-path/interaction_client/PopupClient.d.ts.map +1 -1
- package/dist/custom-auth-path/interaction_client/PopupClient.mjs +64 -153
- package/dist/custom-auth-path/interaction_client/PopupClient.mjs.map +1 -1
- package/dist/custom-auth-path/interaction_client/RedirectClient.d.ts +8 -9
- package/dist/custom-auth-path/interaction_client/RedirectClient.d.ts.map +1 -1
- package/dist/custom-auth-path/interaction_client/RedirectClient.mjs +103 -112
- 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 +38 -49
- 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 +55 -63
- 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 +8 -10
- package/dist/custom-auth-path/interaction_handler/InteractionHandler.mjs.map +1 -1
- package/dist/custom-auth-path/interaction_handler/SilentHandler.d.ts +3 -4
- package/dist/custom-auth-path/interaction_handler/SilentHandler.d.ts.map +1 -1
- package/dist/custom-auth-path/interaction_handler/SilentHandler.mjs +11 -48
- package/dist/custom-auth-path/interaction_handler/SilentHandler.mjs.map +1 -1
- 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/navigation/NavigationClient.mjs.map +1 -1
- package/dist/custom-auth-path/network/FetchClient.mjs +1 -1
- package/dist/custom-auth-path/network/FetchClient.mjs.map +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 +0 -4
- package/dist/custom-auth-path/protocol/Authorize.d.ts.map +1 -1
- package/dist/custom-auth-path/protocol/Authorize.mjs +20 -36
- package/dist/custom-auth-path/protocol/Authorize.mjs.map +1 -1
- 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/PopupRequest.d.ts +1 -1
- package/dist/custom-auth-path/request/PopupRequest.d.ts.map +1 -1
- package/dist/custom-auth-path/request/RedirectRequest.d.ts +1 -8
- package/dist/custom-auth-path/request/RedirectRequest.d.ts.map +1 -1
- package/dist/custom-auth-path/request/RequestHelpers.d.ts +6 -12
- package/dist/custom-auth-path/request/RequestHelpers.d.ts.map +1 -1
- package/dist/custom-auth-path/request/RequestHelpers.mjs +16 -48
- package/dist/custom-auth-path/request/RequestHelpers.mjs.map +1 -1
- package/dist/custom-auth-path/request/SilentRequest.d.ts +1 -1
- package/dist/custom-auth-path/request/SilentRequest.d.ts.map +1 -1
- package/dist/custom-auth-path/request/SsoSilentRequest.d.ts +1 -1
- 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 +131 -0
- package/dist/custom-auth-path/telemetry/BrowserPerformanceEvents.d.ts.map +1 -0
- package/dist/custom-auth-path/telemetry/BrowserPerformanceEvents.mjs +126 -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 -8
- package/dist/custom-auth-path/utils/BrowserConstants.d.ts.map +1 -1
- package/dist/custom-auth-path/utils/BrowserConstants.mjs +3 -3
- package/dist/custom-auth-path/utils/BrowserConstants.mjs.map +1 -1
- package/dist/custom-auth-path/utils/BrowserProtocolUtils.mjs +1 -1
- package/dist/custom-auth-path/utils/BrowserProtocolUtils.mjs.map +1 -1
- package/dist/custom-auth-path/utils/BrowserUtils.d.ts.map +1 -1
- package/dist/custom-auth-path/utils/BrowserUtils.mjs +5 -6
- 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/Helpers.mjs.map +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-path/utils/PopupUtils.d.ts +33 -0
- package/dist/custom-auth-path/utils/PopupUtils.d.ts.map +1 -0
- package/dist/custom-auth-path/utils/PopupUtils.mjs +90 -0
- package/dist/custom-auth-path/utils/PopupUtils.mjs.map +1 -0
- package/dist/custom_auth/CustomAuthConstants.d.ts +2 -3
- 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.map +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +1 -2
- package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
- package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts +0 -5
- package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.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 +8 -2
- package/dist/custom_auth/core/interaction_client/jit/JitClient.d.ts.map +1 -1
- package/dist/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts +1 -0
- package/dist/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts.map +1 -1
- package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts +11 -2
- package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts +0 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts +2 -7
- package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts +0 -5
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts +1 -5
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts +0 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts.map +1 -1
- package/dist/custom_auth/core/network_client/http_client/FetchHttpClient.d.ts.map +1 -1
- package/dist/custom_auth/core/telemetry/PublicApiId.d.ts +3 -4
- package/dist/custom_auth/core/telemetry/PublicApiId.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/state/SignInCodeRequiredState.d.ts.map +1 -1
- package/dist/custom_auth/sign_in/interaction_client/SignInClient.d.ts +6 -8
- package/dist/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -1
- package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts +0 -6
- package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts.map +1 -1
- 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.mjs +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 -6
- 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 +71 -84
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/PopupClient.d.ts +2 -14
- package/dist/interaction_client/PopupClient.d.ts.map +1 -1
- package/dist/interaction_client/PopupClient.mjs +64 -153
- package/dist/interaction_client/PopupClient.mjs.map +1 -1
- package/dist/interaction_client/RedirectClient.d.ts +8 -9
- package/dist/interaction_client/RedirectClient.d.ts.map +1 -1
- package/dist/interaction_client/RedirectClient.mjs +103 -112
- 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 +38 -49
- 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 +55 -63
- 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 +8 -10
- package/dist/interaction_handler/InteractionHandler.mjs.map +1 -1
- package/dist/interaction_handler/SilentHandler.d.ts +3 -4
- package/dist/interaction_handler/SilentHandler.d.ts.map +1 -1
- package/dist/interaction_handler/SilentHandler.mjs +11 -48
- package/dist/interaction_handler/SilentHandler.mjs.map +1 -1
- package/dist/naa/BridgeError.mjs +1 -1
- package/dist/naa/BridgeProxy.mjs +1 -1
- package/dist/naa/BridgeProxy.mjs.map +1 -1
- package/dist/naa/BridgeStatusCode.mjs +1 -1
- package/dist/naa/BridgeStatusCode.mjs.map +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/navigation/NavigationClient.mjs.map +1 -1
- package/dist/network/FetchClient.mjs +1 -1
- package/dist/network/FetchClient.mjs.map +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/operatingcontext/UnknownOperatingContext.mjs +1 -1
- package/dist/operatingcontext/UnknownOperatingContext.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 +0 -4
- package/dist/protocol/Authorize.d.ts.map +1 -1
- package/dist/protocol/Authorize.mjs +20 -36
- package/dist/protocol/Authorize.mjs.map +1 -1
- package/dist/request/AuthorizationCodeRequest.d.ts +1 -1
- package/dist/request/AuthorizationCodeRequest.d.ts.map +1 -1
- package/dist/request/PopupRequest.d.ts +1 -1
- package/dist/request/PopupRequest.d.ts.map +1 -1
- package/dist/request/RedirectRequest.d.ts +1 -8
- package/dist/request/RedirectRequest.d.ts.map +1 -1
- package/dist/request/RequestHelpers.d.ts +6 -12
- package/dist/request/RequestHelpers.d.ts.map +1 -1
- package/dist/request/RequestHelpers.mjs +16 -48
- package/dist/request/RequestHelpers.mjs.map +1 -1
- package/dist/request/SilentRequest.d.ts +1 -1
- package/dist/request/SilentRequest.d.ts.map +1 -1
- package/dist/request/SsoSilentRequest.d.ts +1 -1
- 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 +5 -60
- package/dist/telemetry/BrowserPerformanceClient.mjs.map +1 -1
- package/dist/telemetry/BrowserPerformanceEvents.d.ts +131 -0
- package/dist/telemetry/BrowserPerformanceEvents.d.ts.map +1 -0
- package/dist/telemetry/BrowserPerformanceEvents.mjs +126 -0
- package/dist/telemetry/BrowserPerformanceEvents.mjs.map +1 -0
- package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.mjs.map +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 -8
- package/dist/utils/BrowserConstants.d.ts.map +1 -1
- package/dist/utils/BrowserConstants.mjs +3 -11
- package/dist/utils/BrowserConstants.mjs.map +1 -1
- package/dist/utils/BrowserProtocolUtils.mjs +1 -1
- package/dist/utils/BrowserProtocolUtils.mjs.map +1 -1
- package/dist/utils/BrowserUtils.d.ts.map +1 -1
- package/dist/utils/BrowserUtils.mjs +5 -6
- package/dist/utils/BrowserUtils.mjs.map +1 -1
- package/dist/utils/Helpers.mjs +1 -1
- package/dist/utils/Helpers.mjs.map +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/dist/utils/PopupUtils.d.ts +33 -0
- package/dist/utils/PopupUtils.d.ts.map +1 -0
- package/dist/utils/PopupUtils.mjs +90 -0
- package/dist/utils/PopupUtils.mjs.map +1 -0
- package/lib/custom-auth-path/msal-custom-auth.cjs +2541 -3592
- package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
- package/lib/custom-auth-path/types/app/IPublicClientApplication.d.ts +2 -9
- package/lib/custom-auth-path/types/app/IPublicClientApplication.d.ts.map +1 -1
- package/lib/custom-auth-path/types/app/PublicClientApplication.d.ts +3 -49
- package/lib/custom-auth-path/types/app/PublicClientApplication.d.ts.map +1 -1
- package/lib/custom-auth-path/types/app/PublicClientNext.d.ts +2 -49
- package/lib/custom-auth-path/types/app/PublicClientNext.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 +4 -2
- package/lib/custom-auth-path/types/broker/nativeBroker/PlatformAuthProvider.d.ts.map +1 -1
- 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 +22 -25
- 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 +6 -55
- package/lib/custom-auth-path/types/config/Configuration.d.ts.map +1 -1
- package/lib/custom-auth-path/types/controllers/ControllerFactory.d.ts +1 -1
- package/lib/custom-auth-path/types/controllers/ControllerFactory.d.ts.map +1 -1
- package/lib/custom-auth-path/types/controllers/IController.d.ts +5 -6
- package/lib/custom-auth-path/types/controllers/IController.d.ts.map +1 -1
- package/lib/custom-auth-path/types/controllers/NestedAppAuthController.d.ts +4 -9
- package/lib/custom-auth-path/types/controllers/NestedAppAuthController.d.ts.map +1 -1
- package/lib/custom-auth-path/types/controllers/StandardController.d.ts +9 -30
- package/lib/custom-auth-path/types/controllers/StandardController.d.ts.map +1 -1
- package/lib/custom-auth-path/types/controllers/UnknownOperatingContextController.d.ts +4 -8
- 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 -3
- 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.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +1 -2
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts +0 -5
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.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 +8 -2
- 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/jit/parameter/JitParams.d.ts +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts +11 -2
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts +0 -1
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts +2 -7
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts +0 -5
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts +1 -5
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts +0 -1
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.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/core/telemetry/PublicApiId.d.ts +3 -4
- package/lib/custom-auth-path/types/custom_auth/core/telemetry/PublicApiId.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/state/SignInCodeRequiredState.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/sign_in/interaction_client/SignInClient.d.ts +6 -8
- package/lib/custom-auth-path/types/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts +0 -6
- package/lib/custom-auth-path/types/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts.map +1 -1
- 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/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 +2 -14
- 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 -9
- 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 +3 -4
- 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 +0 -4
- package/lib/custom-auth-path/types/protocol/Authorize.d.ts.map +1 -1
- 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/PopupRequest.d.ts +1 -1
- package/lib/custom-auth-path/types/request/PopupRequest.d.ts.map +1 -1
- package/lib/custom-auth-path/types/request/RedirectRequest.d.ts +1 -8
- package/lib/custom-auth-path/types/request/RedirectRequest.d.ts.map +1 -1
- package/lib/custom-auth-path/types/request/RequestHelpers.d.ts +6 -12
- package/lib/custom-auth-path/types/request/RequestHelpers.d.ts.map +1 -1
- package/lib/custom-auth-path/types/request/SilentRequest.d.ts +1 -1
- package/lib/custom-auth-path/types/request/SilentRequest.d.ts.map +1 -1
- package/lib/custom-auth-path/types/request/SsoSilentRequest.d.ts +1 -1
- 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 +131 -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 -8
- package/lib/custom-auth-path/types/utils/BrowserConstants.d.ts.map +1 -1
- 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/custom-auth-path/types/utils/PopupUtils.d.ts +33 -0
- package/lib/custom-auth-path/types/utils/PopupUtils.d.ts.map +1 -0
- package/lib/msal-browser.cjs +2923 -4754
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +2923 -4754
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +74 -67
- package/lib/types/app/IPublicClientApplication.d.ts +2 -9
- package/lib/types/app/IPublicClientApplication.d.ts.map +1 -1
- package/lib/types/app/PublicClientApplication.d.ts +3 -49
- package/lib/types/app/PublicClientApplication.d.ts.map +1 -1
- package/lib/types/app/PublicClientNext.d.ts +2 -49
- package/lib/types/app/PublicClientNext.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 +4 -2
- package/lib/types/broker/nativeBroker/PlatformAuthProvider.d.ts.map +1 -1
- 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 +22 -25
- 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 +6 -55
- package/lib/types/config/Configuration.d.ts.map +1 -1
- package/lib/types/controllers/ControllerFactory.d.ts +1 -1
- package/lib/types/controllers/ControllerFactory.d.ts.map +1 -1
- package/lib/types/controllers/IController.d.ts +5 -6
- package/lib/types/controllers/IController.d.ts.map +1 -1
- package/lib/types/controllers/NestedAppAuthController.d.ts +4 -9
- package/lib/types/controllers/NestedAppAuthController.d.ts.map +1 -1
- package/lib/types/controllers/StandardController.d.ts +9 -30
- package/lib/types/controllers/StandardController.d.ts.map +1 -1
- package/lib/types/controllers/UnknownOperatingContextController.d.ts +4 -8
- 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 -3
- 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.map +1 -1
- package/lib/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +1 -2
- package/lib/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
- package/lib/types/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts +0 -5
- package/lib/types/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.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 +8 -2
- package/lib/types/custom_auth/core/interaction_client/jit/JitClient.d.ts.map +1 -1
- package/lib/types/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts +1 -0
- package/lib/types/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts.map +1 -1
- package/lib/types/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts +11 -2
- package/lib/types/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts.map +1 -1
- package/lib/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts +0 -1
- package/lib/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts.map +1 -1
- package/lib/types/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts +2 -7
- package/lib/types/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
- package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts +0 -5
- package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts.map +1 -1
- package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts +1 -5
- package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts.map +1 -1
- package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts +0 -1
- package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.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/core/telemetry/PublicApiId.d.ts +3 -4
- package/lib/types/custom_auth/core/telemetry/PublicApiId.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/state/SignInCodeRequiredState.d.ts.map +1 -1
- package/lib/types/custom_auth/sign_in/interaction_client/SignInClient.d.ts +6 -8
- package/lib/types/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -1
- package/lib/types/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts +0 -6
- package/lib/types/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts.map +1 -1
- 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/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 +2 -14
- package/lib/types/interaction_client/PopupClient.d.ts.map +1 -1
- package/lib/types/interaction_client/RedirectClient.d.ts +8 -9
- 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 +3 -4
- 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 +0 -4
- package/lib/types/protocol/Authorize.d.ts.map +1 -1
- package/lib/types/request/AuthorizationCodeRequest.d.ts +1 -1
- package/lib/types/request/AuthorizationCodeRequest.d.ts.map +1 -1
- package/lib/types/request/PopupRequest.d.ts +1 -1
- package/lib/types/request/PopupRequest.d.ts.map +1 -1
- package/lib/types/request/RedirectRequest.d.ts +1 -8
- package/lib/types/request/RedirectRequest.d.ts.map +1 -1
- package/lib/types/request/RequestHelpers.d.ts +6 -12
- package/lib/types/request/RequestHelpers.d.ts.map +1 -1
- package/lib/types/request/SilentRequest.d.ts +1 -1
- package/lib/types/request/SilentRequest.d.ts.map +1 -1
- package/lib/types/request/SsoSilentRequest.d.ts +1 -1
- 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 +131 -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 -8
- package/lib/types/utils/BrowserConstants.d.ts.map +1 -1
- 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/lib/types/utils/PopupUtils.d.ts +33 -0
- package/lib/types/utils/PopupUtils.d.ts.map +1 -0
- package/package.json +113 -115
- package/src/app/IPublicClientApplication.ts +4 -36
- package/src/app/PublicClientApplication.ts +11 -73
- package/src/app/PublicClientNext.ts +6 -71
- package/src/broker/nativeBroker/PlatformAuthDOMHandler.ts +30 -14
- package/src/broker/nativeBroker/PlatformAuthExtensionHandler.ts +57 -32
- package/src/broker/nativeBroker/PlatformAuthProvider.ts +26 -21
- package/src/cache/AccountManager.ts +47 -19
- package/src/cache/AsyncMemoryStorage.ts +39 -22
- package/src/cache/BrowserCacheManager.ts +234 -213
- package/src/cache/IAsyncStorage.ts +10 -5
- package/src/cache/LocalStorage.ts +31 -18
- package/src/cache/TokenCache.ts +367 -360
- package/src/config/Configuration.ts +23 -86
- package/src/controllers/ControllerFactory.ts +13 -6
- package/src/controllers/IController.ts +8 -10
- package/src/controllers/NestedAppAuthController.ts +75 -108
- package/src/controllers/StandardController.ts +335 -518
- package/src/controllers/UnknownOperatingContextController.ts +3 -20
- 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/CustomAuthConstants.ts +0 -1
- package/src/custom_auth/controller/CustomAuthStandardController.ts +10 -9
- package/src/custom_auth/core/CustomAuthAuthority.ts +11 -5
- package/src/custom_auth/core/auth_flow/AuthFlowErrorBase.ts +2 -15
- package/src/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.ts +1 -9
- package/src/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.ts +4 -2
- package/src/custom_auth/core/interaction_client/jit/JitClient.ts +63 -3
- package/src/custom_auth/core/interaction_client/jit/parameter/JitParams.ts +2 -0
- package/src/custom_auth/core/interaction_client/jit/result/JitActionResult.ts +22 -2
- package/src/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.ts +0 -1
- package/src/custom_auth/core/network_client/custom_auth_api/SignInApiClient.ts +1 -27
- package/src/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.ts +0 -6
- package/src/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.ts +1 -6
- package/src/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.ts +0 -1
- package/src/custom_auth/core/network_client/http_client/FetchHttpClient.ts +8 -5
- package/src/custom_auth/core/telemetry/PublicApiId.ts +3 -6
- package/src/custom_auth/get_account/auth_flow/CustomAuthAccountData.ts +3 -3
- package/src/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.ts +19 -14
- 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 +30 -5
- package/src/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.ts +13 -23
- 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 -128
- package/src/custom_auth/sign_in/interaction_client/result/SignInActionResult.ts +0 -15
- 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 +39 -8
- package/src/error/BrowserAuthError.ts +4 -339
- 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 +19 -19
- package/src/interaction_client/BaseInteractionClient.ts +181 -158
- package/src/interaction_client/HybridSpaAuthorizationCodeClient.ts +6 -2
- package/src/interaction_client/PlatformAuthInteractionClient.ts +160 -108
- package/src/interaction_client/PopupClient.ts +217 -308
- package/src/interaction_client/RedirectClient.ts +245 -184
- package/src/interaction_client/SilentAuthCodeClient.ts +41 -16
- package/src/interaction_client/SilentCacheClient.ts +23 -15
- package/src/interaction_client/SilentIframeClient.ts +101 -101
- package/src/interaction_client/SilentRefreshClient.ts +26 -14
- package/src/interaction_client/StandardInteractionClient.ts +112 -107
- package/src/interaction_handler/InteractionHandler.ts +7 -16
- package/src/interaction_handler/SilentHandler.ts +12 -91
- 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 +30 -86
- package/src/request/AuthorizationCodeRequest.ts +1 -4
- package/src/request/PopupRequest.ts +0 -1
- package/src/request/RedirectRequest.ts +0 -8
- package/src/request/RequestHelpers.ts +18 -75
- package/src/request/SilentRequest.ts +1 -5
- package/src/request/SsoSilentRequest.ts +0 -1
- package/src/response/ResponseHandler.ts +8 -4
- package/src/telemetry/BrowserPerformanceClient.ts +4 -108
- package/src/telemetry/BrowserPerformanceEvents.ts +182 -0
- package/src/telemetry/BrowserRootPerformanceEvents.ts +41 -0
- package/src/utils/BrowserConstants.ts +2 -10
- package/src/utils/BrowserUtils.ts +4 -6
- package/src/utils/MsalFrameStatsUtils.ts +4 -2
- package/src/utils/PopupUtils.ts +117 -0
- package/dist/cache/ITokenCache.d.ts +0 -12
- package/dist/cache/ITokenCache.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 -207
- package/dist/custom-auth-path/cache/TokenCache.mjs.map +0 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts +0 -22
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts.map +0 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts +0 -36
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts.map +0 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts +0 -30
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts.map +0 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.d.ts +0 -7
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.d.ts.map +0 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaFailedState.d.ts +0 -7
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaFailedState.d.ts.map +0 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts +0 -59
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts.map +0 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaStateParameters.d.ts +0 -19
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaStateParameters.d.ts.map +0 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/MfaClient.d.ts +0 -21
- package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/MfaClient.d.ts.map +0 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/parameter/MfaClientParameters.d.ts +0 -14
- package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/parameter/MfaClientParameters.d.ts.map +0 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/result/MfaActionResult.d.ts +0 -23
- package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/result/MfaActionResult.d.ts.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/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts +0 -22
- package/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts.map +0 -1
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts +0 -36
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts.map +0 -1
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts +0 -30
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts.map +0 -1
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.d.ts +0 -7
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.d.ts.map +0 -1
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.d.ts +0 -7
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.d.ts.map +0 -1
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts +0 -59
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts.map +0 -1
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaStateParameters.d.ts +0 -19
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaStateParameters.d.ts.map +0 -1
- package/dist/custom_auth/core/interaction_client/mfa/MfaClient.d.ts +0 -21
- package/dist/custom_auth/core/interaction_client/mfa/MfaClient.d.ts.map +0 -1
- package/dist/custom_auth/core/interaction_client/mfa/parameter/MfaClientParameters.d.ts +0 -14
- package/dist/custom_auth/core/interaction_client/mfa/parameter/MfaClientParameters.d.ts.map +0 -1
- package/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.d.ts +0 -23
- package/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.d.ts.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/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/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts +0 -22
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts.map +0 -1
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts +0 -36
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts.map +0 -1
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts +0 -30
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts.map +0 -1
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.d.ts +0 -7
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.d.ts.map +0 -1
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/state/MfaFailedState.d.ts +0 -7
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/state/MfaFailedState.d.ts.map +0 -1
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts +0 -59
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts.map +0 -1
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/state/MfaStateParameters.d.ts +0 -19
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/state/MfaStateParameters.d.ts.map +0 -1
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/mfa/MfaClient.d.ts +0 -21
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/mfa/MfaClient.d.ts.map +0 -1
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/mfa/parameter/MfaClientParameters.d.ts +0 -14
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/mfa/parameter/MfaClientParameters.d.ts.map +0 -1
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/mfa/result/MfaActionResult.d.ts +0 -23
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/mfa/result/MfaActionResult.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/cache/ITokenCache.d.ts +0 -12
- package/lib/types/cache/ITokenCache.d.ts.map +0 -1
- package/lib/types/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts +0 -22
- package/lib/types/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts.map +0 -1
- package/lib/types/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts +0 -36
- package/lib/types/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts.map +0 -1
- package/lib/types/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts +0 -30
- package/lib/types/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts.map +0 -1
- package/lib/types/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.d.ts +0 -7
- package/lib/types/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.d.ts.map +0 -1
- package/lib/types/custom_auth/core/auth_flow/mfa/state/MfaFailedState.d.ts +0 -7
- package/lib/types/custom_auth/core/auth_flow/mfa/state/MfaFailedState.d.ts.map +0 -1
- package/lib/types/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts +0 -59
- package/lib/types/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts.map +0 -1
- package/lib/types/custom_auth/core/auth_flow/mfa/state/MfaStateParameters.d.ts +0 -19
- package/lib/types/custom_auth/core/auth_flow/mfa/state/MfaStateParameters.d.ts.map +0 -1
- package/lib/types/custom_auth/core/interaction_client/mfa/MfaClient.d.ts +0 -21
- package/lib/types/custom_auth/core/interaction_client/mfa/MfaClient.d.ts.map +0 -1
- package/lib/types/custom_auth/core/interaction_client/mfa/parameter/MfaClientParameters.d.ts +0 -14
- package/lib/types/custom_auth/core/interaction_client/mfa/parameter/MfaClientParameters.d.ts.map +0 -1
- package/lib/types/custom_auth/core/interaction_client/mfa/result/MfaActionResult.d.ts +0 -23
- package/lib/types/custom_auth/core/interaction_client/mfa/result/MfaActionResult.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/cache/ITokenCache.ts +0 -21
- package/src/custom_auth/core/auth_flow/mfa/error_type/MfaError.ts +0 -32
- package/src/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.ts +0 -59
- package/src/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.ts +0 -52
- package/src/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.ts +0 -11
- package/src/custom_auth/core/auth_flow/mfa/state/MfaFailedState.ts +0 -11
- package/src/custom_auth/core/auth_flow/mfa/state/MfaState.ts +0 -188
- package/src/custom_auth/core/auth_flow/mfa/state/MfaStateParameters.ts +0 -28
- package/src/custom_auth/core/interaction_client/mfa/MfaClient.ts +0 -148
- package/src/custom_auth/core/interaction_client/mfa/parameter/MfaClientParameters.ts +0 -20
- package/src/custom_auth/core/interaction_client/mfa/result/MfaActionResult.ts +0 -48
- package/src/request/AuthorizationUrlRequest.ts +0 -15
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
import {
|
|
7
7
|
AccessTokenEntity,
|
|
8
8
|
AccountEntity,
|
|
9
|
+
AccountEntityUtils,
|
|
9
10
|
AccountInfo,
|
|
10
11
|
ActiveAccountFilters,
|
|
11
12
|
AppMetadataEntity,
|
|
12
|
-
AuthenticationScheme,
|
|
13
13
|
AuthorityMetadataEntity,
|
|
14
14
|
CacheError,
|
|
15
15
|
CacheErrorCodes,
|
|
@@ -26,7 +26,6 @@ import {
|
|
|
26
26
|
IPerformanceClient,
|
|
27
27
|
Logger,
|
|
28
28
|
PerformanceEvents,
|
|
29
|
-
PersistentCacheKeys,
|
|
30
29
|
RefreshTokenEntity,
|
|
31
30
|
ServerTelemetryEntity,
|
|
32
31
|
StaticAuthorityOptions,
|
|
@@ -36,8 +35,6 @@ import {
|
|
|
36
35
|
TimeUtils,
|
|
37
36
|
TokenKeys,
|
|
38
37
|
CredentialEntity,
|
|
39
|
-
CredentialType,
|
|
40
|
-
DEFAULT_TOKEN_RENEWAL_OFFSET_SEC,
|
|
41
38
|
} from "@azure/msal-common/browser";
|
|
42
39
|
import { CacheOptions } from "../config/Configuration.js";
|
|
43
40
|
import {
|
|
@@ -74,8 +71,6 @@ import { EncryptedData, isEncrypted } from "./EncryptedData.js";
|
|
|
74
71
|
|
|
75
72
|
/**
|
|
76
73
|
* This class implements the cache storage interface for MSAL through browser local or session storage.
|
|
77
|
-
* Cookies are only used if storeAuthStateInCookie is true, and are only used for
|
|
78
|
-
* parameters such as state and nonce, generally.
|
|
79
74
|
*/
|
|
80
75
|
export class BrowserCacheManager extends CacheManager {
|
|
81
76
|
// Cache configuration, either set by user or default values.
|
|
@@ -120,11 +115,12 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
120
115
|
);
|
|
121
116
|
this.temporaryCacheStorage = getStorageImplementation(
|
|
122
117
|
clientId,
|
|
123
|
-
|
|
118
|
+
BrowserCacheLocation.SessionStorage,
|
|
124
119
|
logger,
|
|
125
120
|
performanceClient
|
|
126
121
|
);
|
|
127
122
|
this.cookieStorage = new CookieStorage();
|
|
123
|
+
|
|
128
124
|
this.eventHandler = eventHandler;
|
|
129
125
|
}
|
|
130
126
|
|
|
@@ -271,7 +267,7 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
271
267
|
(expirationTime &&
|
|
272
268
|
TimeUtils.isTokenExpired(
|
|
273
269
|
expirationTime,
|
|
274
|
-
DEFAULT_TOKEN_RENEWAL_OFFSET_SEC
|
|
270
|
+
Constants.DEFAULT_TOKEN_RENEWAL_OFFSET_SEC
|
|
275
271
|
))
|
|
276
272
|
) {
|
|
277
273
|
this.browserStorage.removeItem(v0Key);
|
|
@@ -350,7 +346,8 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
350
346
|
);
|
|
351
347
|
if (previousVersion) {
|
|
352
348
|
this.logger.info(
|
|
353
|
-
`MSAL.js was last initialized by version: ${previousVersion}
|
|
349
|
+
`MSAL.js was last initialized by version: '${previousVersion}'`,
|
|
350
|
+
correlationId
|
|
354
351
|
);
|
|
355
352
|
this.performanceClient.addFields(
|
|
356
353
|
{ previousLibraryVersion: previousVersion },
|
|
@@ -481,7 +478,8 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
481
478
|
this.browserStorage.setUserData.bind(this.browserStorage),
|
|
482
479
|
PerformanceEvents.SetUserData,
|
|
483
480
|
this.logger,
|
|
484
|
-
this.performanceClient
|
|
481
|
+
this.performanceClient,
|
|
482
|
+
correlationId
|
|
485
483
|
)(key, value, correlationId, timestamp);
|
|
486
484
|
if (i > 0) {
|
|
487
485
|
// Finally update the token keys array with the tokens removed
|
|
@@ -545,7 +543,10 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
545
543
|
accountKey: string,
|
|
546
544
|
correlationId: string
|
|
547
545
|
): AccountEntity | null {
|
|
548
|
-
this.logger.trace(
|
|
546
|
+
this.logger.trace(
|
|
547
|
+
"BrowserCacheManager.getAccount called",
|
|
548
|
+
correlationId
|
|
549
|
+
);
|
|
549
550
|
const serializedAccount = this.browserStorage.getUserData(accountKey);
|
|
550
551
|
if (!serializedAccount) {
|
|
551
552
|
this.removeAccountKeyFromMap(accountKey, correlationId);
|
|
@@ -553,12 +554,15 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
553
554
|
}
|
|
554
555
|
|
|
555
556
|
const parsedAccount = this.validateAndParseJson(serializedAccount);
|
|
556
|
-
if (
|
|
557
|
+
if (
|
|
558
|
+
!parsedAccount ||
|
|
559
|
+
!AccountEntityUtils.isAccountEntity(parsedAccount)
|
|
560
|
+
) {
|
|
557
561
|
return null;
|
|
558
562
|
}
|
|
559
563
|
|
|
560
564
|
return CacheManager.toObject<AccountEntity>(
|
|
561
|
-
|
|
565
|
+
{} as AccountEntity,
|
|
562
566
|
parsedAccount
|
|
563
567
|
);
|
|
564
568
|
}
|
|
@@ -571,8 +575,13 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
571
575
|
account: AccountEntity,
|
|
572
576
|
correlationId: string
|
|
573
577
|
): Promise<void> {
|
|
574
|
-
this.logger.trace(
|
|
575
|
-
|
|
578
|
+
this.logger.trace(
|
|
579
|
+
"BrowserCacheManager.setAccount called",
|
|
580
|
+
correlationId
|
|
581
|
+
);
|
|
582
|
+
const key = this.generateAccountKey(
|
|
583
|
+
AccountEntityUtils.getAccountInfo(account)
|
|
584
|
+
);
|
|
576
585
|
const timestamp = Date.now().toString();
|
|
577
586
|
account.lastUpdatedAt = timestamp;
|
|
578
587
|
await this.setUserData(
|
|
@@ -581,22 +590,7 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
581
590
|
correlationId,
|
|
582
591
|
timestamp
|
|
583
592
|
);
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
/**
|
|
587
|
-
* @deprecated - Remove this in next major version in favor of more consistent LOGIN event
|
|
588
|
-
*/
|
|
589
|
-
if (
|
|
590
|
-
this.cacheConfig.cacheLocation ===
|
|
591
|
-
BrowserCacheLocation.LocalStorage &&
|
|
592
|
-
wasAdded
|
|
593
|
-
) {
|
|
594
|
-
this.eventHandler.emitEvent(
|
|
595
|
-
EventType.ACCOUNT_ADDED,
|
|
596
|
-
undefined,
|
|
597
|
-
account.getAccountInfo()
|
|
598
|
-
);
|
|
599
|
-
}
|
|
593
|
+
this.addAccountKeyToMap(key, correlationId);
|
|
600
594
|
}
|
|
601
595
|
|
|
602
596
|
/**
|
|
@@ -612,9 +606,13 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
612
606
|
* @param key
|
|
613
607
|
*/
|
|
614
608
|
addAccountKeyToMap(key: string, correlationId: string): boolean {
|
|
615
|
-
this.logger.trace(
|
|
609
|
+
this.logger.trace(
|
|
610
|
+
"BrowserCacheManager.addAccountKeyToMap called",
|
|
611
|
+
correlationId
|
|
612
|
+
);
|
|
616
613
|
this.logger.tracePii(
|
|
617
|
-
`BrowserCacheManager.addAccountKeyToMap called with key: ${key}
|
|
614
|
+
`BrowserCacheManager.addAccountKeyToMap called with key: '${key}'`,
|
|
615
|
+
correlationId
|
|
618
616
|
);
|
|
619
617
|
const accountKeys = this.getAccountKeys();
|
|
620
618
|
if (accountKeys.indexOf(key) === -1) {
|
|
@@ -626,12 +624,14 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
626
624
|
correlationId
|
|
627
625
|
);
|
|
628
626
|
this.logger.verbose(
|
|
629
|
-
"BrowserCacheManager.addAccountKeyToMap account key added"
|
|
627
|
+
"BrowserCacheManager.addAccountKeyToMap account key added",
|
|
628
|
+
correlationId
|
|
630
629
|
);
|
|
631
630
|
return true;
|
|
632
631
|
} else {
|
|
633
632
|
this.logger.verbose(
|
|
634
|
-
"BrowserCacheManager.addAccountKeyToMap account key already exists in map"
|
|
633
|
+
"BrowserCacheManager.addAccountKeyToMap account key already exists in map",
|
|
634
|
+
correlationId
|
|
635
635
|
);
|
|
636
636
|
return false;
|
|
637
637
|
}
|
|
@@ -642,9 +642,13 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
642
642
|
* @param key
|
|
643
643
|
*/
|
|
644
644
|
removeAccountKeyFromMap(key: string, correlationId: string): void {
|
|
645
|
-
this.logger.trace(
|
|
645
|
+
this.logger.trace(
|
|
646
|
+
"BrowserCacheManager.removeAccountKeyFromMap called",
|
|
647
|
+
correlationId
|
|
648
|
+
);
|
|
646
649
|
this.logger.tracePii(
|
|
647
|
-
`BrowserCacheManager.removeAccountKeyFromMap called with key: ${key}
|
|
650
|
+
`BrowserCacheManager.removeAccountKeyFromMap called with key: '${key}'`,
|
|
651
|
+
correlationId
|
|
648
652
|
);
|
|
649
653
|
const accountKeys = this.getAccountKeys();
|
|
650
654
|
const removalIndex = accountKeys.indexOf(key);
|
|
@@ -662,11 +666,13 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
662
666
|
);
|
|
663
667
|
}
|
|
664
668
|
this.logger.trace(
|
|
665
|
-
"BrowserCacheManager.removeAccountKeyFromMap account key removed"
|
|
669
|
+
"BrowserCacheManager.removeAccountKeyFromMap account key removed",
|
|
670
|
+
correlationId
|
|
666
671
|
);
|
|
667
672
|
} else {
|
|
668
673
|
this.logger.trace(
|
|
669
|
-
"BrowserCacheManager.removeAccountKeyFromMap key not found in existing map"
|
|
674
|
+
"BrowserCacheManager.removeAccountKeyFromMap key not found in existing map",
|
|
675
|
+
correlationId
|
|
670
676
|
);
|
|
671
677
|
}
|
|
672
678
|
}
|
|
@@ -699,19 +705,6 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
699
705
|
this.browserStorage.removeItem(key);
|
|
700
706
|
}
|
|
701
707
|
});
|
|
702
|
-
|
|
703
|
-
/**
|
|
704
|
-
* @deprecated - Remove this in next major version in favor of more consistent LOGOUT event
|
|
705
|
-
*/
|
|
706
|
-
if (
|
|
707
|
-
this.cacheConfig.cacheLocation === BrowserCacheLocation.LocalStorage
|
|
708
|
-
) {
|
|
709
|
-
this.eventHandler.emitEvent(
|
|
710
|
-
EventType.ACCOUNT_REMOVED,
|
|
711
|
-
undefined,
|
|
712
|
-
account
|
|
713
|
-
);
|
|
714
|
-
}
|
|
715
708
|
}
|
|
716
709
|
|
|
717
710
|
/**
|
|
@@ -723,7 +716,10 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
723
716
|
const tokenKeys = this.getTokenKeys();
|
|
724
717
|
const idRemoval = tokenKeys.idToken.indexOf(key);
|
|
725
718
|
if (idRemoval > -1) {
|
|
726
|
-
this.logger.info(
|
|
719
|
+
this.logger.info(
|
|
720
|
+
"idToken removed from tokenKeys map",
|
|
721
|
+
correlationId
|
|
722
|
+
);
|
|
727
723
|
tokenKeys.idToken.splice(idRemoval, 1);
|
|
728
724
|
this.setTokenKeys(tokenKeys, correlationId);
|
|
729
725
|
}
|
|
@@ -753,7 +749,7 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
753
749
|
correlationId: string,
|
|
754
750
|
schemaVersion: number = CacheKeys.CREDENTIAL_SCHEMA_VERSION
|
|
755
751
|
): void {
|
|
756
|
-
this.logger.trace("removeAccessTokenKey called");
|
|
752
|
+
this.logger.trace("removeAccessTokenKey called", correlationId);
|
|
757
753
|
const tokenKeys = this.getTokenKeys(schemaVersion);
|
|
758
754
|
let keysRemoved = 0;
|
|
759
755
|
keys.forEach((key) => {
|
|
@@ -766,7 +762,8 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
766
762
|
|
|
767
763
|
if (keysRemoved > 0) {
|
|
768
764
|
this.logger.info(
|
|
769
|
-
`removed ${keysRemoved} accessToken keys from tokenKeys map
|
|
765
|
+
`removed '${keysRemoved}' accessToken keys from tokenKeys map`,
|
|
766
|
+
correlationId
|
|
770
767
|
);
|
|
771
768
|
this.setTokenKeys(tokenKeys, correlationId, schemaVersion);
|
|
772
769
|
return;
|
|
@@ -782,7 +779,10 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
782
779
|
const tokenKeys = this.getTokenKeys();
|
|
783
780
|
const refreshRemoval = tokenKeys.refreshToken.indexOf(key);
|
|
784
781
|
if (refreshRemoval > -1) {
|
|
785
|
-
this.logger.info(
|
|
782
|
+
this.logger.info(
|
|
783
|
+
"refreshToken removed from tokenKeys map",
|
|
784
|
+
correlationId
|
|
785
|
+
);
|
|
786
786
|
tokenKeys.refreshToken.splice(refreshRemoval, 1);
|
|
787
787
|
this.setTokenKeys(tokenKeys, correlationId);
|
|
788
788
|
}
|
|
@@ -799,7 +799,7 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
799
799
|
}
|
|
800
800
|
|
|
801
801
|
/**
|
|
802
|
-
*
|
|
802
|
+
* Sets the token keys in the cache
|
|
803
803
|
* @param tokenKeys
|
|
804
804
|
* @param correlationId
|
|
805
805
|
* @returns
|
|
@@ -839,7 +839,8 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
839
839
|
const value = this.browserStorage.getUserData(idTokenKey);
|
|
840
840
|
if (!value) {
|
|
841
841
|
this.logger.trace(
|
|
842
|
-
"BrowserCacheManager.getIdTokenCredential: called, no cache hit"
|
|
842
|
+
"BrowserCacheManager.getIdTokenCredential: called, no cache hit",
|
|
843
|
+
correlationId
|
|
843
844
|
);
|
|
844
845
|
this.removeIdToken(idTokenKey, correlationId);
|
|
845
846
|
return null;
|
|
@@ -848,13 +849,15 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
848
849
|
const parsedIdToken = this.validateAndParseJson(value);
|
|
849
850
|
if (!parsedIdToken || !CacheHelpers.isIdTokenEntity(parsedIdToken)) {
|
|
850
851
|
this.logger.trace(
|
|
851
|
-
"BrowserCacheManager.getIdTokenCredential: called, no cache hit"
|
|
852
|
+
"BrowserCacheManager.getIdTokenCredential: called, no cache hit",
|
|
853
|
+
correlationId
|
|
852
854
|
);
|
|
853
855
|
return null;
|
|
854
856
|
}
|
|
855
857
|
|
|
856
858
|
this.logger.trace(
|
|
857
|
-
"BrowserCacheManager.getIdTokenCredential: cache hit"
|
|
859
|
+
"BrowserCacheManager.getIdTokenCredential: cache hit",
|
|
860
|
+
correlationId
|
|
858
861
|
);
|
|
859
862
|
return parsedIdToken as IdTokenEntity;
|
|
860
863
|
}
|
|
@@ -867,7 +870,10 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
867
870
|
idToken: IdTokenEntity,
|
|
868
871
|
correlationId: string
|
|
869
872
|
): Promise<void> {
|
|
870
|
-
this.logger.trace(
|
|
873
|
+
this.logger.trace(
|
|
874
|
+
"BrowserCacheManager.setIdTokenCredential called",
|
|
875
|
+
correlationId
|
|
876
|
+
);
|
|
871
877
|
const idTokenKey = this.generateCredentialKey(idToken);
|
|
872
878
|
const timestamp = Date.now().toString();
|
|
873
879
|
idToken.lastUpdatedAt = timestamp;
|
|
@@ -882,7 +888,8 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
882
888
|
const tokenKeys = this.getTokenKeys();
|
|
883
889
|
if (tokenKeys.idToken.indexOf(idTokenKey) === -1) {
|
|
884
890
|
this.logger.info(
|
|
885
|
-
"BrowserCacheManager: addTokenKey - idToken added to map"
|
|
891
|
+
"BrowserCacheManager: addTokenKey - idToken added to map",
|
|
892
|
+
correlationId
|
|
886
893
|
);
|
|
887
894
|
tokenKeys.idToken.push(idTokenKey);
|
|
888
895
|
this.setTokenKeys(tokenKeys, correlationId);
|
|
@@ -900,7 +907,8 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
900
907
|
const value = this.browserStorage.getUserData(accessTokenKey);
|
|
901
908
|
if (!value) {
|
|
902
909
|
this.logger.trace(
|
|
903
|
-
"BrowserCacheManager.getAccessTokenCredential: called, no cache hit"
|
|
910
|
+
"BrowserCacheManager.getAccessTokenCredential: called, no cache hit",
|
|
911
|
+
correlationId
|
|
904
912
|
);
|
|
905
913
|
this.removeAccessTokenKeys([accessTokenKey], correlationId);
|
|
906
914
|
return null;
|
|
@@ -911,13 +919,15 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
911
919
|
!CacheHelpers.isAccessTokenEntity(parsedAccessToken)
|
|
912
920
|
) {
|
|
913
921
|
this.logger.trace(
|
|
914
|
-
"BrowserCacheManager.getAccessTokenCredential: called, no cache hit"
|
|
922
|
+
"BrowserCacheManager.getAccessTokenCredential: called, no cache hit",
|
|
923
|
+
correlationId
|
|
915
924
|
);
|
|
916
925
|
return null;
|
|
917
926
|
}
|
|
918
927
|
|
|
919
928
|
this.logger.trace(
|
|
920
|
-
"BrowserCacheManager.getAccessTokenCredential: cache hit"
|
|
929
|
+
"BrowserCacheManager.getAccessTokenCredential: cache hit",
|
|
930
|
+
correlationId
|
|
921
931
|
);
|
|
922
932
|
return parsedAccessToken as AccessTokenEntity;
|
|
923
933
|
}
|
|
@@ -931,7 +941,8 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
931
941
|
correlationId: string
|
|
932
942
|
): Promise<void> {
|
|
933
943
|
this.logger.trace(
|
|
934
|
-
"BrowserCacheManager.setAccessTokenCredential called"
|
|
944
|
+
"BrowserCacheManager.setAccessTokenCredential called",
|
|
945
|
+
correlationId
|
|
935
946
|
);
|
|
936
947
|
const accessTokenKey = this.generateCredentialKey(accessToken);
|
|
937
948
|
const timestamp = Date.now().toString();
|
|
@@ -950,7 +961,8 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
950
961
|
tokenKeys.accessToken.splice(index, 1); // Remove existing key before pushing to the end
|
|
951
962
|
}
|
|
952
963
|
this.logger.trace(
|
|
953
|
-
`access token ${index === -1 ? "added to" : "updated in"} map
|
|
964
|
+
`access token '${index === -1 ? "added to" : "updated in"}' map`,
|
|
965
|
+
correlationId
|
|
954
966
|
);
|
|
955
967
|
tokenKeys.accessToken.push(accessTokenKey);
|
|
956
968
|
this.setTokenKeys(tokenKeys, correlationId);
|
|
@@ -967,7 +979,8 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
967
979
|
const value = this.browserStorage.getUserData(refreshTokenKey);
|
|
968
980
|
if (!value) {
|
|
969
981
|
this.logger.trace(
|
|
970
|
-
"BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"
|
|
982
|
+
"BrowserCacheManager.getRefreshTokenCredential: called, no cache hit",
|
|
983
|
+
correlationId
|
|
971
984
|
);
|
|
972
985
|
this.removeRefreshToken(refreshTokenKey, correlationId);
|
|
973
986
|
return null;
|
|
@@ -978,13 +991,15 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
978
991
|
!CacheHelpers.isRefreshTokenEntity(parsedRefreshToken)
|
|
979
992
|
) {
|
|
980
993
|
this.logger.trace(
|
|
981
|
-
"BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"
|
|
994
|
+
"BrowserCacheManager.getRefreshTokenCredential: called, no cache hit",
|
|
995
|
+
correlationId
|
|
982
996
|
);
|
|
983
997
|
return null;
|
|
984
998
|
}
|
|
985
999
|
|
|
986
1000
|
this.logger.trace(
|
|
987
|
-
"BrowserCacheManager.getRefreshTokenCredential: cache hit"
|
|
1001
|
+
"BrowserCacheManager.getRefreshTokenCredential: cache hit",
|
|
1002
|
+
correlationId
|
|
988
1003
|
);
|
|
989
1004
|
return parsedRefreshToken as RefreshTokenEntity;
|
|
990
1005
|
}
|
|
@@ -998,7 +1013,8 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
998
1013
|
correlationId: string
|
|
999
1014
|
): Promise<void> {
|
|
1000
1015
|
this.logger.trace(
|
|
1001
|
-
"BrowserCacheManager.setRefreshTokenCredential called"
|
|
1016
|
+
"BrowserCacheManager.setRefreshTokenCredential called",
|
|
1017
|
+
correlationId
|
|
1002
1018
|
);
|
|
1003
1019
|
const refreshTokenKey = this.generateCredentialKey(refreshToken);
|
|
1004
1020
|
const timestamp = Date.now().toString();
|
|
@@ -1014,7 +1030,8 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
1014
1030
|
const tokenKeys = this.getTokenKeys();
|
|
1015
1031
|
if (tokenKeys.refreshToken.indexOf(refreshTokenKey) === -1) {
|
|
1016
1032
|
this.logger.info(
|
|
1017
|
-
"BrowserCacheManager: addTokenKey - refreshToken added to map"
|
|
1033
|
+
"BrowserCacheManager: addTokenKey - refreshToken added to map",
|
|
1034
|
+
correlationId
|
|
1018
1035
|
);
|
|
1019
1036
|
tokenKeys.refreshToken.push(refreshTokenKey);
|
|
1020
1037
|
this.setTokenKeys(tokenKeys, correlationId);
|
|
@@ -1024,12 +1041,17 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
1024
1041
|
/**
|
|
1025
1042
|
* fetch appMetadata entity from the platform cache
|
|
1026
1043
|
* @param appMetadataKey
|
|
1044
|
+
* @param correlationId
|
|
1027
1045
|
*/
|
|
1028
|
-
getAppMetadata(
|
|
1046
|
+
getAppMetadata(
|
|
1047
|
+
appMetadataKey: string,
|
|
1048
|
+
correlationId: string
|
|
1049
|
+
): AppMetadataEntity | null {
|
|
1029
1050
|
const value = this.browserStorage.getItem(appMetadataKey);
|
|
1030
1051
|
if (!value) {
|
|
1031
1052
|
this.logger.trace(
|
|
1032
|
-
"BrowserCacheManager.getAppMetadata: called, no cache hit"
|
|
1053
|
+
"BrowserCacheManager.getAppMetadata: called, no cache hit",
|
|
1054
|
+
correlationId
|
|
1033
1055
|
);
|
|
1034
1056
|
return null;
|
|
1035
1057
|
}
|
|
@@ -1040,24 +1062,32 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
1040
1062
|
!CacheHelpers.isAppMetadataEntity(appMetadataKey, parsedMetadata)
|
|
1041
1063
|
) {
|
|
1042
1064
|
this.logger.trace(
|
|
1043
|
-
"BrowserCacheManager.getAppMetadata: called, no cache hit"
|
|
1065
|
+
"BrowserCacheManager.getAppMetadata: called, no cache hit",
|
|
1066
|
+
correlationId
|
|
1044
1067
|
);
|
|
1045
1068
|
return null;
|
|
1046
1069
|
}
|
|
1047
1070
|
|
|
1048
|
-
this.logger.trace(
|
|
1071
|
+
this.logger.trace(
|
|
1072
|
+
"BrowserCacheManager.getAppMetadata: cache hit",
|
|
1073
|
+
correlationId
|
|
1074
|
+
);
|
|
1049
1075
|
return parsedMetadata as AppMetadataEntity;
|
|
1050
1076
|
}
|
|
1051
1077
|
|
|
1052
1078
|
/**
|
|
1053
1079
|
* set appMetadata entity to the platform cache
|
|
1054
1080
|
* @param appMetadata
|
|
1081
|
+
* @param correlationId
|
|
1055
1082
|
*/
|
|
1056
1083
|
setAppMetadata(
|
|
1057
1084
|
appMetadata: AppMetadataEntity,
|
|
1058
1085
|
correlationId: string
|
|
1059
1086
|
): void {
|
|
1060
|
-
this.logger.trace(
|
|
1087
|
+
this.logger.trace(
|
|
1088
|
+
"BrowserCacheManager.setAppMetadata called",
|
|
1089
|
+
correlationId
|
|
1090
|
+
);
|
|
1061
1091
|
const appMetadataKey = CacheHelpers.generateAppMetadataKey(appMetadata);
|
|
1062
1092
|
this.setItem(
|
|
1063
1093
|
appMetadataKey,
|
|
@@ -1069,14 +1099,17 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
1069
1099
|
/**
|
|
1070
1100
|
* fetch server telemetry entity from the platform cache
|
|
1071
1101
|
* @param serverTelemetryKey
|
|
1102
|
+
* @param correlationId
|
|
1072
1103
|
*/
|
|
1073
1104
|
getServerTelemetry(
|
|
1074
|
-
serverTelemetryKey: string
|
|
1105
|
+
serverTelemetryKey: string,
|
|
1106
|
+
correlationId: string
|
|
1075
1107
|
): ServerTelemetryEntity | null {
|
|
1076
1108
|
const value = this.browserStorage.getItem(serverTelemetryKey);
|
|
1077
1109
|
if (!value) {
|
|
1078
1110
|
this.logger.trace(
|
|
1079
|
-
"BrowserCacheManager.getServerTelemetry: called, no cache hit"
|
|
1111
|
+
"BrowserCacheManager.getServerTelemetry: called, no cache hit",
|
|
1112
|
+
correlationId
|
|
1080
1113
|
);
|
|
1081
1114
|
return null;
|
|
1082
1115
|
}
|
|
@@ -1089,12 +1122,16 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
1089
1122
|
)
|
|
1090
1123
|
) {
|
|
1091
1124
|
this.logger.trace(
|
|
1092
|
-
"BrowserCacheManager.getServerTelemetry: called, no cache hit"
|
|
1125
|
+
"BrowserCacheManager.getServerTelemetry: called, no cache hit",
|
|
1126
|
+
correlationId
|
|
1093
1127
|
);
|
|
1094
1128
|
return null;
|
|
1095
1129
|
}
|
|
1096
1130
|
|
|
1097
|
-
this.logger.trace(
|
|
1131
|
+
this.logger.trace(
|
|
1132
|
+
"BrowserCacheManager.getServerTelemetry: cache hit",
|
|
1133
|
+
correlationId
|
|
1134
|
+
);
|
|
1098
1135
|
return parsedEntity as ServerTelemetryEntity;
|
|
1099
1136
|
}
|
|
1100
1137
|
|
|
@@ -1108,7 +1145,10 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
1108
1145
|
serverTelemetry: ServerTelemetryEntity,
|
|
1109
1146
|
correlationId: string
|
|
1110
1147
|
): void {
|
|
1111
|
-
this.logger.trace(
|
|
1148
|
+
this.logger.trace(
|
|
1149
|
+
"BrowserCacheManager.setServerTelemetry called",
|
|
1150
|
+
correlationId
|
|
1151
|
+
);
|
|
1112
1152
|
this.setItem(
|
|
1113
1153
|
serverTelemetryKey,
|
|
1114
1154
|
JSON.stringify(serverTelemetry),
|
|
@@ -1119,11 +1159,15 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
1119
1159
|
/**
|
|
1120
1160
|
*
|
|
1121
1161
|
*/
|
|
1122
|
-
getAuthorityMetadata(
|
|
1162
|
+
getAuthorityMetadata(
|
|
1163
|
+
key: string,
|
|
1164
|
+
correlationId: string
|
|
1165
|
+
): AuthorityMetadataEntity | null {
|
|
1123
1166
|
const value = this.internalStorage.getItem(key);
|
|
1124
1167
|
if (!value) {
|
|
1125
1168
|
this.logger.trace(
|
|
1126
|
-
"BrowserCacheManager.getAuthorityMetadata: called, no cache hit"
|
|
1169
|
+
"BrowserCacheManager.getAuthorityMetadata: called, no cache hit",
|
|
1170
|
+
correlationId
|
|
1127
1171
|
);
|
|
1128
1172
|
return null;
|
|
1129
1173
|
}
|
|
@@ -1133,7 +1177,8 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
1133
1177
|
CacheHelpers.isAuthorityMetadataEntity(key, parsedMetadata)
|
|
1134
1178
|
) {
|
|
1135
1179
|
this.logger.trace(
|
|
1136
|
-
"BrowserCacheManager.getAuthorityMetadata: cache hit"
|
|
1180
|
+
"BrowserCacheManager.getAuthorityMetadata: cache hit",
|
|
1181
|
+
correlationId
|
|
1137
1182
|
);
|
|
1138
1183
|
return parsedMetadata as AuthorityMetadataEntity;
|
|
1139
1184
|
}
|
|
@@ -1168,20 +1213,27 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
1168
1213
|
*/
|
|
1169
1214
|
getWrapperMetadata(): [string, string] {
|
|
1170
1215
|
const sku =
|
|
1171
|
-
this.internalStorage.getItem(InMemoryCacheKeys.WRAPPER_SKU) ||
|
|
1172
|
-
Constants.EMPTY_STRING;
|
|
1216
|
+
this.internalStorage.getItem(InMemoryCacheKeys.WRAPPER_SKU) || "";
|
|
1173
1217
|
const version =
|
|
1174
|
-
this.internalStorage.getItem(InMemoryCacheKeys.WRAPPER_VER) ||
|
|
1175
|
-
Constants.EMPTY_STRING;
|
|
1218
|
+
this.internalStorage.getItem(InMemoryCacheKeys.WRAPPER_VER) || "";
|
|
1176
1219
|
return [sku, version];
|
|
1177
1220
|
}
|
|
1178
1221
|
|
|
1179
1222
|
/**
|
|
1180
1223
|
*
|
|
1224
|
+
* @param key
|
|
1181
1225
|
* @param entity
|
|
1226
|
+
* @param correlationId
|
|
1182
1227
|
*/
|
|
1183
|
-
setAuthorityMetadata(
|
|
1184
|
-
|
|
1228
|
+
setAuthorityMetadata(
|
|
1229
|
+
key: string,
|
|
1230
|
+
entity: AuthorityMetadataEntity,
|
|
1231
|
+
correlationId: string
|
|
1232
|
+
): void {
|
|
1233
|
+
this.logger.trace(
|
|
1234
|
+
"BrowserCacheManager.setAuthorityMetadata called",
|
|
1235
|
+
correlationId
|
|
1236
|
+
);
|
|
1185
1237
|
this.internalStorage.setItem(key, JSON.stringify(entity));
|
|
1186
1238
|
}
|
|
1187
1239
|
|
|
@@ -1190,14 +1242,15 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
1190
1242
|
*/
|
|
1191
1243
|
getActiveAccount(correlationId: string): AccountInfo | null {
|
|
1192
1244
|
const activeAccountKeyFilters = this.generateCacheKey(
|
|
1193
|
-
PersistentCacheKeys.ACTIVE_ACCOUNT_FILTERS
|
|
1245
|
+
Constants.PersistentCacheKeys.ACTIVE_ACCOUNT_FILTERS
|
|
1194
1246
|
);
|
|
1195
1247
|
const activeAccountValueFilters = this.browserStorage.getItem(
|
|
1196
1248
|
activeAccountKeyFilters
|
|
1197
1249
|
);
|
|
1198
1250
|
if (!activeAccountValueFilters) {
|
|
1199
1251
|
this.logger.trace(
|
|
1200
|
-
"BrowserCacheManager.getActiveAccount: No active account filters found"
|
|
1252
|
+
"BrowserCacheManager.getActiveAccount: No active account filters found",
|
|
1253
|
+
correlationId
|
|
1201
1254
|
);
|
|
1202
1255
|
return null;
|
|
1203
1256
|
}
|
|
@@ -1206,7 +1259,8 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
1206
1259
|
) as AccountInfo;
|
|
1207
1260
|
if (activeAccountValueObj) {
|
|
1208
1261
|
this.logger.trace(
|
|
1209
|
-
"BrowserCacheManager.getActiveAccount: Active account filters schema found"
|
|
1262
|
+
"BrowserCacheManager.getActiveAccount: Active account filters schema found",
|
|
1263
|
+
correlationId
|
|
1210
1264
|
);
|
|
1211
1265
|
return this.getAccountInfoFilteredBy(
|
|
1212
1266
|
{
|
|
@@ -1218,7 +1272,8 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
1218
1272
|
);
|
|
1219
1273
|
}
|
|
1220
1274
|
this.logger.trace(
|
|
1221
|
-
"BrowserCacheManager.getActiveAccount: No active account found"
|
|
1275
|
+
"BrowserCacheManager.getActiveAccount: No active account found",
|
|
1276
|
+
correlationId
|
|
1222
1277
|
);
|
|
1223
1278
|
return null;
|
|
1224
1279
|
}
|
|
@@ -1229,15 +1284,17 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
1229
1284
|
*/
|
|
1230
1285
|
setActiveAccount(account: AccountInfo | null, correlationId: string): void {
|
|
1231
1286
|
const activeAccountKey = this.generateCacheKey(
|
|
1232
|
-
PersistentCacheKeys.ACTIVE_ACCOUNT_FILTERS
|
|
1287
|
+
Constants.PersistentCacheKeys.ACTIVE_ACCOUNT_FILTERS
|
|
1233
1288
|
);
|
|
1234
1289
|
if (account) {
|
|
1235
|
-
this.logger.verbose(
|
|
1290
|
+
this.logger.verbose(
|
|
1291
|
+
"setActiveAccount: Active account set",
|
|
1292
|
+
correlationId
|
|
1293
|
+
);
|
|
1236
1294
|
const activeAccountValue: ActiveAccountFilters = {
|
|
1237
1295
|
homeAccountId: account.homeAccountId,
|
|
1238
1296
|
localAccountId: account.localAccountId,
|
|
1239
1297
|
tenantId: account.tenantId,
|
|
1240
|
-
lastUpdatedAt: TimeUtils.nowSeconds().toString(),
|
|
1241
1298
|
};
|
|
1242
1299
|
this.setItem(
|
|
1243
1300
|
activeAccountKey,
|
|
@@ -1246,7 +1303,8 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
1246
1303
|
);
|
|
1247
1304
|
} else {
|
|
1248
1305
|
this.logger.verbose(
|
|
1249
|
-
"setActiveAccount: No account passed, active account not set"
|
|
1306
|
+
"setActiveAccount: No account passed, active account not set",
|
|
1307
|
+
correlationId
|
|
1250
1308
|
);
|
|
1251
1309
|
this.browserStorage.removeItem(activeAccountKey);
|
|
1252
1310
|
}
|
|
@@ -1256,12 +1314,17 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
1256
1314
|
/**
|
|
1257
1315
|
* fetch throttling entity from the platform cache
|
|
1258
1316
|
* @param throttlingCacheKey
|
|
1317
|
+
* @param correlationId
|
|
1259
1318
|
*/
|
|
1260
|
-
getThrottlingCache(
|
|
1319
|
+
getThrottlingCache(
|
|
1320
|
+
throttlingCacheKey: string,
|
|
1321
|
+
correlationId: string
|
|
1322
|
+
): ThrottlingEntity | null {
|
|
1261
1323
|
const value = this.browserStorage.getItem(throttlingCacheKey);
|
|
1262
1324
|
if (!value) {
|
|
1263
1325
|
this.logger.trace(
|
|
1264
|
-
"BrowserCacheManager.getThrottlingCache: called, no cache hit"
|
|
1326
|
+
"BrowserCacheManager.getThrottlingCache: called, no cache hit",
|
|
1327
|
+
correlationId
|
|
1265
1328
|
);
|
|
1266
1329
|
return null;
|
|
1267
1330
|
}
|
|
@@ -1275,12 +1338,16 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
1275
1338
|
)
|
|
1276
1339
|
) {
|
|
1277
1340
|
this.logger.trace(
|
|
1278
|
-
"BrowserCacheManager.getThrottlingCache: called, no cache hit"
|
|
1341
|
+
"BrowserCacheManager.getThrottlingCache: called, no cache hit",
|
|
1342
|
+
correlationId
|
|
1279
1343
|
);
|
|
1280
1344
|
return null;
|
|
1281
1345
|
}
|
|
1282
1346
|
|
|
1283
|
-
this.logger.trace(
|
|
1347
|
+
this.logger.trace(
|
|
1348
|
+
"BrowserCacheManager.getThrottlingCache: cache hit",
|
|
1349
|
+
correlationId
|
|
1350
|
+
);
|
|
1284
1351
|
return parsedThrottlingCache as ThrottlingEntity;
|
|
1285
1352
|
}
|
|
1286
1353
|
|
|
@@ -1294,7 +1361,10 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
1294
1361
|
throttlingCache: ThrottlingEntity,
|
|
1295
1362
|
correlationId: string
|
|
1296
1363
|
): void {
|
|
1297
|
-
this.logger.trace(
|
|
1364
|
+
this.logger.trace(
|
|
1365
|
+
"BrowserCacheManager.setThrottlingCache called",
|
|
1366
|
+
correlationId
|
|
1367
|
+
);
|
|
1298
1368
|
this.setItem(
|
|
1299
1369
|
throttlingCacheKey,
|
|
1300
1370
|
JSON.stringify(throttlingCache),
|
|
@@ -1304,21 +1374,16 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
1304
1374
|
|
|
1305
1375
|
/**
|
|
1306
1376
|
* Gets cache item with given key.
|
|
1307
|
-
*
|
|
1308
|
-
* @param
|
|
1377
|
+
* @param cacheKey
|
|
1378
|
+
* @param correlationId
|
|
1379
|
+
* @param generateKey
|
|
1309
1380
|
*/
|
|
1310
|
-
getTemporaryCache(
|
|
1381
|
+
getTemporaryCache(
|
|
1382
|
+
cacheKey: string,
|
|
1383
|
+
correlationId: string,
|
|
1384
|
+
generateKey?: boolean
|
|
1385
|
+
): string | null {
|
|
1311
1386
|
const key = generateKey ? this.generateCacheKey(cacheKey) : cacheKey;
|
|
1312
|
-
if (this.cacheConfig.storeAuthStateInCookie) {
|
|
1313
|
-
const itemCookie = this.cookieStorage.getItem(key);
|
|
1314
|
-
if (itemCookie) {
|
|
1315
|
-
this.logger.trace(
|
|
1316
|
-
"BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"
|
|
1317
|
-
);
|
|
1318
|
-
return itemCookie;
|
|
1319
|
-
}
|
|
1320
|
-
}
|
|
1321
|
-
|
|
1322
1387
|
const value = this.temporaryCacheStorage.getItem(key);
|
|
1323
1388
|
if (!value) {
|
|
1324
1389
|
// If temp cache item not found in session/memory, check local storage for items set by old versions
|
|
@@ -1329,26 +1394,23 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
1329
1394
|
const item = this.browserStorage.getItem(key);
|
|
1330
1395
|
if (item) {
|
|
1331
1396
|
this.logger.trace(
|
|
1332
|
-
"BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"
|
|
1397
|
+
"BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage",
|
|
1398
|
+
correlationId
|
|
1333
1399
|
);
|
|
1334
1400
|
return item;
|
|
1335
1401
|
}
|
|
1336
1402
|
}
|
|
1337
1403
|
this.logger.trace(
|
|
1338
|
-
"BrowserCacheManager.getTemporaryCache: No cache item found in local storage"
|
|
1404
|
+
"BrowserCacheManager.getTemporaryCache: No cache item found in local storage",
|
|
1405
|
+
correlationId
|
|
1339
1406
|
);
|
|
1340
1407
|
return null;
|
|
1341
1408
|
}
|
|
1342
|
-
this.logger.trace(
|
|
1343
|
-
"BrowserCacheManager.getTemporaryCache: Temporary cache item returned"
|
|
1344
|
-
);
|
|
1345
1409
|
return value;
|
|
1346
1410
|
}
|
|
1347
1411
|
|
|
1348
1412
|
/**
|
|
1349
1413
|
* Sets the cache item with the key and value given.
|
|
1350
|
-
* Stores in cookie if storeAuthStateInCookie is set to true.
|
|
1351
|
-
* This can cause cookie overflow if used incorrectly.
|
|
1352
1414
|
* @param key
|
|
1353
1415
|
* @param value
|
|
1354
1416
|
*/
|
|
@@ -1358,19 +1420,7 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
1358
1420
|
generateKey?: boolean
|
|
1359
1421
|
): void {
|
|
1360
1422
|
const key = generateKey ? this.generateCacheKey(cacheKey) : cacheKey;
|
|
1361
|
-
|
|
1362
1423
|
this.temporaryCacheStorage.setItem(key, value);
|
|
1363
|
-
if (this.cacheConfig.storeAuthStateInCookie) {
|
|
1364
|
-
this.logger.trace(
|
|
1365
|
-
"BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"
|
|
1366
|
-
);
|
|
1367
|
-
this.cookieStorage.setItem(
|
|
1368
|
-
key,
|
|
1369
|
-
value,
|
|
1370
|
-
undefined,
|
|
1371
|
-
this.cacheConfig.secureCookies
|
|
1372
|
-
);
|
|
1373
|
-
}
|
|
1374
1424
|
}
|
|
1375
1425
|
|
|
1376
1426
|
/**
|
|
@@ -1383,17 +1433,10 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
1383
1433
|
|
|
1384
1434
|
/**
|
|
1385
1435
|
* Removes the temporary cache item with the given key.
|
|
1386
|
-
* Will also clear the cookie item if storeAuthStateInCookie is set to true.
|
|
1387
1436
|
* @param key
|
|
1388
1437
|
*/
|
|
1389
1438
|
removeTemporaryItem(key: string): void {
|
|
1390
1439
|
this.temporaryCacheStorage.removeItem(key);
|
|
1391
|
-
if (this.cacheConfig.storeAuthStateInCookie) {
|
|
1392
|
-
this.logger.trace(
|
|
1393
|
-
"BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"
|
|
1394
|
-
);
|
|
1395
|
-
this.cookieStorage.removeItem(key);
|
|
1396
|
-
}
|
|
1397
1440
|
}
|
|
1398
1441
|
|
|
1399
1442
|
/**
|
|
@@ -1434,43 +1477,6 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
1434
1477
|
this.internalStorage.clear();
|
|
1435
1478
|
}
|
|
1436
1479
|
|
|
1437
|
-
/**
|
|
1438
|
-
* Clears all access tokes that have claims prior to saving the current one
|
|
1439
|
-
* @param performanceClient {IPerformanceClient}
|
|
1440
|
-
* @param correlationId {string} correlation id
|
|
1441
|
-
* @returns
|
|
1442
|
-
*/
|
|
1443
|
-
clearTokensAndKeysWithClaims(correlationId: string): void {
|
|
1444
|
-
this.performanceClient.addQueueMeasurement(
|
|
1445
|
-
PerformanceEvents.ClearTokensAndKeysWithClaims,
|
|
1446
|
-
correlationId
|
|
1447
|
-
);
|
|
1448
|
-
|
|
1449
|
-
const tokenKeys = this.getTokenKeys();
|
|
1450
|
-
let removedAccessTokens = 0;
|
|
1451
|
-
tokenKeys.accessToken.forEach((key: string) => {
|
|
1452
|
-
// if the access token has claims in its key, remove the token key and the token
|
|
1453
|
-
const credential = this.getAccessTokenCredential(
|
|
1454
|
-
key,
|
|
1455
|
-
correlationId
|
|
1456
|
-
);
|
|
1457
|
-
if (
|
|
1458
|
-
credential?.requestedClaimsHash &&
|
|
1459
|
-
key.includes(credential.requestedClaimsHash.toLowerCase())
|
|
1460
|
-
) {
|
|
1461
|
-
this.removeAccessToken(key, correlationId);
|
|
1462
|
-
removedAccessTokens++;
|
|
1463
|
-
}
|
|
1464
|
-
});
|
|
1465
|
-
|
|
1466
|
-
// warn if any access tokens are removed
|
|
1467
|
-
if (removedAccessTokens > 0) {
|
|
1468
|
-
this.logger.warning(
|
|
1469
|
-
`${removedAccessTokens} access tokens with claims in the cache keys have been removed from the cache.`
|
|
1470
|
-
);
|
|
1471
|
-
}
|
|
1472
|
-
}
|
|
1473
|
-
|
|
1474
1480
|
/**
|
|
1475
1481
|
* Prepend msal.<client-id> to each key
|
|
1476
1482
|
* @param key
|
|
@@ -1493,13 +1499,14 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
1493
1499
|
*/
|
|
1494
1500
|
generateCredentialKey(credential: CredentialEntity): string {
|
|
1495
1501
|
const familyId =
|
|
1496
|
-
(credential.credentialType ===
|
|
1502
|
+
(credential.credentialType ===
|
|
1503
|
+
Constants.CredentialType.REFRESH_TOKEN &&
|
|
1497
1504
|
credential.familyId) ||
|
|
1498
1505
|
credential.clientId;
|
|
1499
1506
|
const scheme =
|
|
1500
1507
|
credential.tokenType &&
|
|
1501
1508
|
credential.tokenType.toLowerCase() !==
|
|
1502
|
-
AuthenticationScheme.BEARER.toLowerCase()
|
|
1509
|
+
Constants.AuthenticationScheme.BEARER.toLowerCase()
|
|
1503
1510
|
? credential.tokenType.toLowerCase()
|
|
1504
1511
|
: "";
|
|
1505
1512
|
const credentialKey = [
|
|
@@ -1510,7 +1517,6 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
1510
1517
|
familyId,
|
|
1511
1518
|
credential.realm || "",
|
|
1512
1519
|
credential.target || "",
|
|
1513
|
-
credential.requestedClaimsHash || "",
|
|
1514
1520
|
scheme,
|
|
1515
1521
|
];
|
|
1516
1522
|
|
|
@@ -1536,10 +1542,13 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
1536
1542
|
|
|
1537
1543
|
/**
|
|
1538
1544
|
* Reset all temporary cache items
|
|
1539
|
-
* @param
|
|
1545
|
+
* @param correlationId
|
|
1540
1546
|
*/
|
|
1541
|
-
resetRequestCache(): void {
|
|
1542
|
-
this.logger.trace(
|
|
1547
|
+
resetRequestCache(correlationId: string): void {
|
|
1548
|
+
this.logger.trace(
|
|
1549
|
+
"BrowserCacheManager.resetRequestCache called",
|
|
1550
|
+
correlationId
|
|
1551
|
+
);
|
|
1543
1552
|
|
|
1544
1553
|
this.removeTemporaryItem(
|
|
1545
1554
|
this.generateCacheKey(TemporaryCacheKeys.REQUEST_PARAMS)
|
|
@@ -1556,14 +1565,18 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
1556
1565
|
this.removeTemporaryItem(
|
|
1557
1566
|
this.generateCacheKey(TemporaryCacheKeys.NATIVE_REQUEST)
|
|
1558
1567
|
);
|
|
1559
|
-
this.setInteractionInProgress(false);
|
|
1568
|
+
this.setInteractionInProgress(false, undefined);
|
|
1560
1569
|
}
|
|
1561
1570
|
|
|
1562
1571
|
cacheAuthorizeRequest(
|
|
1563
1572
|
authCodeRequest: CommonAuthorizationUrlRequest,
|
|
1573
|
+
correlationId: string,
|
|
1564
1574
|
codeVerifier?: string
|
|
1565
1575
|
): void {
|
|
1566
|
-
this.logger.trace(
|
|
1576
|
+
this.logger.trace(
|
|
1577
|
+
"BrowserCacheManager.cacheAuthorizeRequest called",
|
|
1578
|
+
correlationId
|
|
1579
|
+
);
|
|
1567
1580
|
|
|
1568
1581
|
const encodedValue = base64Encode(JSON.stringify(authCodeRequest));
|
|
1569
1582
|
this.setTemporaryCache(
|
|
@@ -1584,12 +1597,19 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
1584
1597
|
|
|
1585
1598
|
/**
|
|
1586
1599
|
* Gets the token exchange parameters from the cache. Throws an error if nothing is found.
|
|
1600
|
+
* @param correlationId
|
|
1587
1601
|
*/
|
|
1588
|
-
getCachedRequest(
|
|
1589
|
-
|
|
1602
|
+
getCachedRequest(
|
|
1603
|
+
correlationId: string
|
|
1604
|
+
): [CommonAuthorizationUrlRequest, string] {
|
|
1605
|
+
this.logger.trace(
|
|
1606
|
+
"BrowserCacheManager.getCachedRequest called",
|
|
1607
|
+
correlationId
|
|
1608
|
+
);
|
|
1590
1609
|
// Get token request from cache and parse as TokenExchangeParameters.
|
|
1591
1610
|
const encodedTokenRequest = this.getTemporaryCache(
|
|
1592
1611
|
TemporaryCacheKeys.REQUEST_PARAMS,
|
|
1612
|
+
correlationId,
|
|
1593
1613
|
true
|
|
1594
1614
|
);
|
|
1595
1615
|
if (!encodedTokenRequest) {
|
|
@@ -1599,6 +1619,7 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
1599
1619
|
}
|
|
1600
1620
|
const encodedVerifier = this.getTemporaryCache(
|
|
1601
1621
|
TemporaryCacheKeys.VERIFIER,
|
|
1622
|
+
correlationId,
|
|
1602
1623
|
true
|
|
1603
1624
|
);
|
|
1604
1625
|
|
|
@@ -1610,9 +1631,13 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
1610
1631
|
verifier = base64Decode(encodedVerifier);
|
|
1611
1632
|
}
|
|
1612
1633
|
} catch (e) {
|
|
1613
|
-
this.logger.errorPii(
|
|
1634
|
+
this.logger.errorPii(
|
|
1635
|
+
`Attempted to parse: '${encodedTokenRequest}'`,
|
|
1636
|
+
correlationId
|
|
1637
|
+
);
|
|
1614
1638
|
this.logger.error(
|
|
1615
|
-
`Parsing cached token request threw with error: ${e}
|
|
1639
|
+
`Parsing cached token request threw with error: '${e}'`,
|
|
1640
|
+
correlationId
|
|
1616
1641
|
);
|
|
1617
1642
|
throw createBrowserAuthError(
|
|
1618
1643
|
BrowserAuthErrorCodes.unableToParseTokenRequestCacheError
|
|
@@ -1624,16 +1649,22 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
1624
1649
|
|
|
1625
1650
|
/**
|
|
1626
1651
|
* Gets cached native request for redirect flows
|
|
1652
|
+
* @param correlationId
|
|
1627
1653
|
*/
|
|
1628
1654
|
getCachedNativeRequest(): PlatformAuthRequest | null {
|
|
1629
|
-
this.logger.trace(
|
|
1655
|
+
this.logger.trace(
|
|
1656
|
+
"BrowserCacheManager.getCachedNativeRequest called",
|
|
1657
|
+
""
|
|
1658
|
+
);
|
|
1630
1659
|
const cachedRequest = this.getTemporaryCache(
|
|
1631
1660
|
TemporaryCacheKeys.NATIVE_REQUEST,
|
|
1661
|
+
"",
|
|
1632
1662
|
true
|
|
1633
1663
|
);
|
|
1634
1664
|
if (!cachedRequest) {
|
|
1635
1665
|
this.logger.trace(
|
|
1636
|
-
"BrowserCacheManager.getCachedNativeRequest: No cached native request found"
|
|
1666
|
+
"BrowserCacheManager.getCachedNativeRequest: No cached native request found",
|
|
1667
|
+
""
|
|
1637
1668
|
);
|
|
1638
1669
|
return null;
|
|
1639
1670
|
}
|
|
@@ -1643,7 +1674,8 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
1643
1674
|
) as PlatformAuthRequest;
|
|
1644
1675
|
if (!parsedRequest) {
|
|
1645
1676
|
this.logger.error(
|
|
1646
|
-
"BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"
|
|
1677
|
+
"BrowserCacheManager.getCachedNativeRequest: Unable to parse native request",
|
|
1678
|
+
""
|
|
1647
1679
|
);
|
|
1648
1680
|
return null;
|
|
1649
1681
|
}
|
|
@@ -1666,16 +1698,17 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
1666
1698
|
type: INTERACTION_TYPE;
|
|
1667
1699
|
} | null {
|
|
1668
1700
|
const key = `${CacheKeys.PREFIX}.${TemporaryCacheKeys.INTERACTION_STATUS_KEY}`;
|
|
1669
|
-
const value = this.getTemporaryCache(key, false);
|
|
1701
|
+
const value = this.getTemporaryCache(key, "", false);
|
|
1670
1702
|
try {
|
|
1671
1703
|
return value ? JSON.parse(value) : null;
|
|
1672
1704
|
} catch (e) {
|
|
1673
1705
|
// Remove interaction and other temp keys if interaction status can't be parsed
|
|
1674
1706
|
this.logger.error(
|
|
1675
|
-
`Cannot parse interaction status. Removing temporary cache items and clearing url hash. Retrying interaction should fix the error
|
|
1707
|
+
`Cannot parse interaction status. Removing temporary cache items and clearing url hash. Retrying interaction should fix the error`,
|
|
1708
|
+
""
|
|
1676
1709
|
);
|
|
1677
1710
|
this.removeTemporaryItem(key);
|
|
1678
|
-
this.resetRequestCache();
|
|
1711
|
+
this.resetRequestCache("");
|
|
1679
1712
|
clearHash(window);
|
|
1680
1713
|
return null;
|
|
1681
1714
|
}
|
|
@@ -1729,11 +1762,6 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
1729
1762
|
result.tenantId
|
|
1730
1763
|
);
|
|
1731
1764
|
|
|
1732
|
-
let claimsHash;
|
|
1733
|
-
if (request.claims) {
|
|
1734
|
-
claimsHash = await this.cryptoImpl.hashString(request.claims);
|
|
1735
|
-
}
|
|
1736
|
-
|
|
1737
1765
|
/**
|
|
1738
1766
|
* meta data for cache stores time in seconds from epoch
|
|
1739
1767
|
* AuthenticationResult returns expiresOn and extExpiresOn in milliseconds (as a Date object which is in ms)
|
|
@@ -1758,11 +1786,9 @@ export class BrowserCacheManager extends CacheManager {
|
|
|
1758
1786
|
: 0,
|
|
1759
1787
|
base64Decode,
|
|
1760
1788
|
undefined, // refreshOn
|
|
1761
|
-
result.tokenType as AuthenticationScheme,
|
|
1789
|
+
result.tokenType as Constants.AuthenticationScheme,
|
|
1762
1790
|
undefined, // userAssertionHash
|
|
1763
|
-
request.sshKid
|
|
1764
|
-
request.claims,
|
|
1765
|
-
claimsHash
|
|
1791
|
+
request.sshKid
|
|
1766
1792
|
);
|
|
1767
1793
|
|
|
1768
1794
|
const cacheRecord = {
|
|
@@ -1835,7 +1861,7 @@ function getStorageImplementation(
|
|
|
1835
1861
|
break;
|
|
1836
1862
|
}
|
|
1837
1863
|
} catch (e) {
|
|
1838
|
-
logger.error(e as string);
|
|
1864
|
+
logger.error(e as string, "");
|
|
1839
1865
|
}
|
|
1840
1866
|
|
|
1841
1867
|
return new MemoryStorage();
|
|
@@ -1850,11 +1876,6 @@ export const DEFAULT_BROWSER_CACHE_MANAGER = (
|
|
|
1850
1876
|
const cacheOptions: Required<CacheOptions> = {
|
|
1851
1877
|
cacheLocation: BrowserCacheLocation.MemoryStorage,
|
|
1852
1878
|
cacheRetentionDays: 5,
|
|
1853
|
-
temporaryCacheLocation: BrowserCacheLocation.MemoryStorage,
|
|
1854
|
-
storeAuthStateInCookie: false,
|
|
1855
|
-
secureCookies: false,
|
|
1856
|
-
cacheMigrationEnabled: false,
|
|
1857
|
-
claimsBasedCachingEnabled: false,
|
|
1858
1879
|
};
|
|
1859
1880
|
return new BrowserCacheManager(
|
|
1860
1881
|
clientId,
|