@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
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! @azure/msal-browser
|
|
1
|
+
/*! @azure/msal-browser v5.0.0-alpha.0 2025-10-02 */
|
|
2
2
|
'use strict';
|
|
3
|
-
import { CacheManager, CacheHelpers, TimeUtils,
|
|
3
|
+
import { CacheManager, CacheHelpers, TimeUtils, Constants, createCacheError, CacheErrorCodes, invokeAsync, PerformanceEvents, AccountEntityUtils, StringUtils, CacheError, DEFAULT_CRYPTO_IMPLEMENTATION } from '@azure/msal-common/browser';
|
|
4
4
|
import { createBrowserAuthError } from '../error/BrowserAuthError.mjs';
|
|
5
5
|
import { BrowserCacheLocation, InMemoryCacheKeys, TemporaryCacheKeys, INTERACTION_TYPE } from '../utils/BrowserConstants.mjs';
|
|
6
6
|
import { ACCOUNT_SCHEMA_VERSION, CREDENTIAL_SCHEMA_VERSION, getAccountKeysCacheKey, PREFIX, CACHE_KEY_SEPARATOR, VERSION_CACHE_KEY, getTokenKeysCacheKey } from './CacheKeys.mjs';
|
|
@@ -24,8 +24,6 @@ import { noTokenRequestCacheError, unableToParseTokenRequestCacheError, interact
|
|
|
24
24
|
*/
|
|
25
25
|
/**
|
|
26
26
|
* This class implements the cache storage interface for MSAL through browser local or session storage.
|
|
27
|
-
* Cookies are only used if storeAuthStateInCookie is true, and are only used for
|
|
28
|
-
* parameters such as state and nonce, generally.
|
|
29
27
|
*/
|
|
30
28
|
class BrowserCacheManager extends CacheManager {
|
|
31
29
|
constructor(clientId, cacheConfig, cryptoImpl, logger, performanceClient, eventHandler, staticAuthorityOptions) {
|
|
@@ -34,7 +32,7 @@ class BrowserCacheManager extends CacheManager {
|
|
|
34
32
|
this.logger = logger;
|
|
35
33
|
this.internalStorage = new MemoryStorage();
|
|
36
34
|
this.browserStorage = getStorageImplementation(clientId, cacheConfig.cacheLocation, logger, performanceClient);
|
|
37
|
-
this.temporaryCacheStorage = getStorageImplementation(clientId,
|
|
35
|
+
this.temporaryCacheStorage = getStorageImplementation(clientId, BrowserCacheLocation.SessionStorage, logger, performanceClient);
|
|
38
36
|
this.cookieStorage = new CookieStorage();
|
|
39
37
|
this.eventHandler = eventHandler;
|
|
40
38
|
}
|
|
@@ -117,7 +115,7 @@ class BrowserCacheManager extends CacheManager {
|
|
|
117
115
|
if (!decryptedData ||
|
|
118
116
|
TimeUtils.isCacheExpired(parsedV0Value.lastUpdatedAt, this.cacheConfig.cacheRetentionDays) ||
|
|
119
117
|
(expirationTime &&
|
|
120
|
-
TimeUtils.isTokenExpired(expirationTime, DEFAULT_TOKEN_RENEWAL_OFFSET_SEC))) {
|
|
118
|
+
TimeUtils.isTokenExpired(expirationTime, Constants.DEFAULT_TOKEN_RENEWAL_OFFSET_SEC))) {
|
|
121
119
|
this.browserStorage.removeItem(v0Key);
|
|
122
120
|
removeElementFromArray(v0Keys, v0Key);
|
|
123
121
|
this.performanceClient.incrementFields({ expiredCacheRemovedCount: 1 }, correlationId);
|
|
@@ -160,7 +158,7 @@ class BrowserCacheManager extends CacheManager {
|
|
|
160
158
|
trackVersionChanges(correlationId) {
|
|
161
159
|
const previousVersion = this.browserStorage.getItem(VERSION_CACHE_KEY);
|
|
162
160
|
if (previousVersion) {
|
|
163
|
-
this.logger.info(`MSAL.js was last initialized by version: ${previousVersion}
|
|
161
|
+
this.logger.info(`MSAL.js was last initialized by version: '${previousVersion}'`, correlationId);
|
|
164
162
|
this.performanceClient.addFields({ previousLibraryVersion: previousVersion }, correlationId);
|
|
165
163
|
}
|
|
166
164
|
if (previousVersion !== version) {
|
|
@@ -260,7 +258,7 @@ class BrowserCacheManager extends CacheManager {
|
|
|
260
258
|
const maxRetries = 20;
|
|
261
259
|
for (let i = 0; i <= maxRetries; i++) {
|
|
262
260
|
try {
|
|
263
|
-
await invokeAsync(this.browserStorage.setUserData.bind(this.browserStorage), PerformanceEvents.SetUserData, this.logger, this.performanceClient)(key, value, correlationId, timestamp);
|
|
261
|
+
await invokeAsync(this.browserStorage.setUserData.bind(this.browserStorage), PerformanceEvents.SetUserData, this.logger, this.performanceClient, correlationId)(key, value, correlationId, timestamp);
|
|
264
262
|
if (i > 0) {
|
|
265
263
|
// Finally update the token keys array with the tokens removed
|
|
266
264
|
if (i <= tokenKeysV0Count) {
|
|
@@ -306,37 +304,30 @@ class BrowserCacheManager extends CacheManager {
|
|
|
306
304
|
* @returns
|
|
307
305
|
*/
|
|
308
306
|
getAccount(accountKey, correlationId) {
|
|
309
|
-
this.logger.trace("BrowserCacheManager.getAccount called");
|
|
307
|
+
this.logger.trace("BrowserCacheManager.getAccount called", correlationId);
|
|
310
308
|
const serializedAccount = this.browserStorage.getUserData(accountKey);
|
|
311
309
|
if (!serializedAccount) {
|
|
312
310
|
this.removeAccountKeyFromMap(accountKey, correlationId);
|
|
313
311
|
return null;
|
|
314
312
|
}
|
|
315
313
|
const parsedAccount = this.validateAndParseJson(serializedAccount);
|
|
316
|
-
if (!parsedAccount ||
|
|
314
|
+
if (!parsedAccount ||
|
|
315
|
+
!AccountEntityUtils.isAccountEntity(parsedAccount)) {
|
|
317
316
|
return null;
|
|
318
317
|
}
|
|
319
|
-
return CacheManager.toObject(
|
|
318
|
+
return CacheManager.toObject({}, parsedAccount);
|
|
320
319
|
}
|
|
321
320
|
/**
|
|
322
321
|
* set account entity in the platform cache
|
|
323
322
|
* @param account
|
|
324
323
|
*/
|
|
325
324
|
async setAccount(account, correlationId) {
|
|
326
|
-
this.logger.trace("BrowserCacheManager.setAccount called");
|
|
327
|
-
const key = this.generateAccountKey(
|
|
325
|
+
this.logger.trace("BrowserCacheManager.setAccount called", correlationId);
|
|
326
|
+
const key = this.generateAccountKey(AccountEntityUtils.getAccountInfo(account));
|
|
328
327
|
const timestamp = Date.now().toString();
|
|
329
328
|
account.lastUpdatedAt = timestamp;
|
|
330
329
|
await this.setUserData(key, JSON.stringify(account), correlationId, timestamp);
|
|
331
|
-
|
|
332
|
-
/**
|
|
333
|
-
* @deprecated - Remove this in next major version in favor of more consistent LOGIN event
|
|
334
|
-
*/
|
|
335
|
-
if (this.cacheConfig.cacheLocation ===
|
|
336
|
-
BrowserCacheLocation.LocalStorage &&
|
|
337
|
-
wasAdded) {
|
|
338
|
-
this.eventHandler.emitEvent(EventType.ACCOUNT_ADDED, undefined, account.getAccountInfo());
|
|
339
|
-
}
|
|
330
|
+
this.addAccountKeyToMap(key, correlationId);
|
|
340
331
|
}
|
|
341
332
|
/**
|
|
342
333
|
* Returns the array of account keys currently cached
|
|
@@ -350,18 +341,18 @@ class BrowserCacheManager extends CacheManager {
|
|
|
350
341
|
* @param key
|
|
351
342
|
*/
|
|
352
343
|
addAccountKeyToMap(key, correlationId) {
|
|
353
|
-
this.logger.trace("BrowserCacheManager.addAccountKeyToMap called");
|
|
354
|
-
this.logger.tracePii(`BrowserCacheManager.addAccountKeyToMap called with key: ${key}
|
|
344
|
+
this.logger.trace("BrowserCacheManager.addAccountKeyToMap called", correlationId);
|
|
345
|
+
this.logger.tracePii(`BrowserCacheManager.addAccountKeyToMap called with key: '${key}'`, correlationId);
|
|
355
346
|
const accountKeys = this.getAccountKeys();
|
|
356
347
|
if (accountKeys.indexOf(key) === -1) {
|
|
357
348
|
// Only add key if it does not already exist in the map
|
|
358
349
|
accountKeys.push(key);
|
|
359
350
|
this.setItem(getAccountKeysCacheKey(), JSON.stringify(accountKeys), correlationId);
|
|
360
|
-
this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added");
|
|
351
|
+
this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added", correlationId);
|
|
361
352
|
return true;
|
|
362
353
|
}
|
|
363
354
|
else {
|
|
364
|
-
this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key already exists in map");
|
|
355
|
+
this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key already exists in map", correlationId);
|
|
365
356
|
return false;
|
|
366
357
|
}
|
|
367
358
|
}
|
|
@@ -370,8 +361,8 @@ class BrowserCacheManager extends CacheManager {
|
|
|
370
361
|
* @param key
|
|
371
362
|
*/
|
|
372
363
|
removeAccountKeyFromMap(key, correlationId) {
|
|
373
|
-
this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called");
|
|
374
|
-
this.logger.tracePii(`BrowserCacheManager.removeAccountKeyFromMap called with key: ${key}
|
|
364
|
+
this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called", correlationId);
|
|
365
|
+
this.logger.tracePii(`BrowserCacheManager.removeAccountKeyFromMap called with key: '${key}'`, correlationId);
|
|
375
366
|
const accountKeys = this.getAccountKeys();
|
|
376
367
|
const removalIndex = accountKeys.indexOf(key);
|
|
377
368
|
if (removalIndex > -1) {
|
|
@@ -384,10 +375,10 @@ class BrowserCacheManager extends CacheManager {
|
|
|
384
375
|
else {
|
|
385
376
|
this.setItem(getAccountKeysCacheKey(), JSON.stringify(accountKeys), correlationId);
|
|
386
377
|
}
|
|
387
|
-
this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed");
|
|
378
|
+
this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed", correlationId);
|
|
388
379
|
}
|
|
389
380
|
else {
|
|
390
|
-
this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap key not found in existing map");
|
|
381
|
+
this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap key not found in existing map", correlationId);
|
|
391
382
|
}
|
|
392
383
|
}
|
|
393
384
|
/**
|
|
@@ -409,12 +400,6 @@ class BrowserCacheManager extends CacheManager {
|
|
|
409
400
|
this.browserStorage.removeItem(key);
|
|
410
401
|
}
|
|
411
402
|
});
|
|
412
|
-
/**
|
|
413
|
-
* @deprecated - Remove this in next major version in favor of more consistent LOGOUT event
|
|
414
|
-
*/
|
|
415
|
-
if (this.cacheConfig.cacheLocation === BrowserCacheLocation.LocalStorage) {
|
|
416
|
-
this.eventHandler.emitEvent(EventType.ACCOUNT_REMOVED, undefined, account);
|
|
417
|
-
}
|
|
418
403
|
}
|
|
419
404
|
/**
|
|
420
405
|
* Removes given idToken from the cache and from the key map
|
|
@@ -425,7 +410,7 @@ class BrowserCacheManager extends CacheManager {
|
|
|
425
410
|
const tokenKeys = this.getTokenKeys();
|
|
426
411
|
const idRemoval = tokenKeys.idToken.indexOf(key);
|
|
427
412
|
if (idRemoval > -1) {
|
|
428
|
-
this.logger.info("idToken removed from tokenKeys map");
|
|
413
|
+
this.logger.info("idToken removed from tokenKeys map", correlationId);
|
|
429
414
|
tokenKeys.idToken.splice(idRemoval, 1);
|
|
430
415
|
this.setTokenKeys(tokenKeys, correlationId);
|
|
431
416
|
}
|
|
@@ -445,7 +430,7 @@ class BrowserCacheManager extends CacheManager {
|
|
|
445
430
|
* @param tokenKeys
|
|
446
431
|
*/
|
|
447
432
|
removeAccessTokenKeys(keys, correlationId, schemaVersion = CREDENTIAL_SCHEMA_VERSION) {
|
|
448
|
-
this.logger.trace("removeAccessTokenKey called");
|
|
433
|
+
this.logger.trace("removeAccessTokenKey called", correlationId);
|
|
449
434
|
const tokenKeys = this.getTokenKeys(schemaVersion);
|
|
450
435
|
let keysRemoved = 0;
|
|
451
436
|
keys.forEach((key) => {
|
|
@@ -456,7 +441,7 @@ class BrowserCacheManager extends CacheManager {
|
|
|
456
441
|
}
|
|
457
442
|
});
|
|
458
443
|
if (keysRemoved > 0) {
|
|
459
|
-
this.logger.info(`removed ${keysRemoved} accessToken keys from tokenKeys map
|
|
444
|
+
this.logger.info(`removed '${keysRemoved}' accessToken keys from tokenKeys map`, correlationId);
|
|
460
445
|
this.setTokenKeys(tokenKeys, correlationId, schemaVersion);
|
|
461
446
|
return;
|
|
462
447
|
}
|
|
@@ -470,7 +455,7 @@ class BrowserCacheManager extends CacheManager {
|
|
|
470
455
|
const tokenKeys = this.getTokenKeys();
|
|
471
456
|
const refreshRemoval = tokenKeys.refreshToken.indexOf(key);
|
|
472
457
|
if (refreshRemoval > -1) {
|
|
473
|
-
this.logger.info("refreshToken removed from tokenKeys map");
|
|
458
|
+
this.logger.info("refreshToken removed from tokenKeys map", correlationId);
|
|
474
459
|
tokenKeys.refreshToken.splice(refreshRemoval, 1);
|
|
475
460
|
this.setTokenKeys(tokenKeys, correlationId);
|
|
476
461
|
}
|
|
@@ -483,7 +468,7 @@ class BrowserCacheManager extends CacheManager {
|
|
|
483
468
|
return getTokenKeys(this.clientId, this.browserStorage, schemaVersion);
|
|
484
469
|
}
|
|
485
470
|
/**
|
|
486
|
-
*
|
|
471
|
+
* Sets the token keys in the cache
|
|
487
472
|
* @param tokenKeys
|
|
488
473
|
* @param correlationId
|
|
489
474
|
* @returns
|
|
@@ -507,16 +492,16 @@ class BrowserCacheManager extends CacheManager {
|
|
|
507
492
|
getIdTokenCredential(idTokenKey, correlationId) {
|
|
508
493
|
const value = this.browserStorage.getUserData(idTokenKey);
|
|
509
494
|
if (!value) {
|
|
510
|
-
this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit");
|
|
495
|
+
this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit", correlationId);
|
|
511
496
|
this.removeIdToken(idTokenKey, correlationId);
|
|
512
497
|
return null;
|
|
513
498
|
}
|
|
514
499
|
const parsedIdToken = this.validateAndParseJson(value);
|
|
515
500
|
if (!parsedIdToken || !CacheHelpers.isIdTokenEntity(parsedIdToken)) {
|
|
516
|
-
this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit");
|
|
501
|
+
this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit", correlationId);
|
|
517
502
|
return null;
|
|
518
503
|
}
|
|
519
|
-
this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit");
|
|
504
|
+
this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit", correlationId);
|
|
520
505
|
return parsedIdToken;
|
|
521
506
|
}
|
|
522
507
|
/**
|
|
@@ -524,14 +509,14 @@ class BrowserCacheManager extends CacheManager {
|
|
|
524
509
|
* @param idToken
|
|
525
510
|
*/
|
|
526
511
|
async setIdTokenCredential(idToken, correlationId) {
|
|
527
|
-
this.logger.trace("BrowserCacheManager.setIdTokenCredential called");
|
|
512
|
+
this.logger.trace("BrowserCacheManager.setIdTokenCredential called", correlationId);
|
|
528
513
|
const idTokenKey = this.generateCredentialKey(idToken);
|
|
529
514
|
const timestamp = Date.now().toString();
|
|
530
515
|
idToken.lastUpdatedAt = timestamp;
|
|
531
516
|
await this.setUserData(idTokenKey, JSON.stringify(idToken), correlationId, timestamp);
|
|
532
517
|
const tokenKeys = this.getTokenKeys();
|
|
533
518
|
if (tokenKeys.idToken.indexOf(idTokenKey) === -1) {
|
|
534
|
-
this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map");
|
|
519
|
+
this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map", correlationId);
|
|
535
520
|
tokenKeys.idToken.push(idTokenKey);
|
|
536
521
|
this.setTokenKeys(tokenKeys, correlationId);
|
|
537
522
|
}
|
|
@@ -543,17 +528,17 @@ class BrowserCacheManager extends CacheManager {
|
|
|
543
528
|
getAccessTokenCredential(accessTokenKey, correlationId) {
|
|
544
529
|
const value = this.browserStorage.getUserData(accessTokenKey);
|
|
545
530
|
if (!value) {
|
|
546
|
-
this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit");
|
|
531
|
+
this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit", correlationId);
|
|
547
532
|
this.removeAccessTokenKeys([accessTokenKey], correlationId);
|
|
548
533
|
return null;
|
|
549
534
|
}
|
|
550
535
|
const parsedAccessToken = this.validateAndParseJson(value);
|
|
551
536
|
if (!parsedAccessToken ||
|
|
552
537
|
!CacheHelpers.isAccessTokenEntity(parsedAccessToken)) {
|
|
553
|
-
this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit");
|
|
538
|
+
this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit", correlationId);
|
|
554
539
|
return null;
|
|
555
540
|
}
|
|
556
|
-
this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit");
|
|
541
|
+
this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit", correlationId);
|
|
557
542
|
return parsedAccessToken;
|
|
558
543
|
}
|
|
559
544
|
/**
|
|
@@ -561,7 +546,7 @@ class BrowserCacheManager extends CacheManager {
|
|
|
561
546
|
* @param accessToken
|
|
562
547
|
*/
|
|
563
548
|
async setAccessTokenCredential(accessToken, correlationId) {
|
|
564
|
-
this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");
|
|
549
|
+
this.logger.trace("BrowserCacheManager.setAccessTokenCredential called", correlationId);
|
|
565
550
|
const accessTokenKey = this.generateCredentialKey(accessToken);
|
|
566
551
|
const timestamp = Date.now().toString();
|
|
567
552
|
accessToken.lastUpdatedAt = timestamp;
|
|
@@ -571,7 +556,7 @@ class BrowserCacheManager extends CacheManager {
|
|
|
571
556
|
if (index !== -1) {
|
|
572
557
|
tokenKeys.accessToken.splice(index, 1); // Remove existing key before pushing to the end
|
|
573
558
|
}
|
|
574
|
-
this.logger.trace(`access token ${index === -1 ? "added to" : "updated in"} map
|
|
559
|
+
this.logger.trace(`access token '${index === -1 ? "added to" : "updated in"}' map`, correlationId);
|
|
575
560
|
tokenKeys.accessToken.push(accessTokenKey);
|
|
576
561
|
this.setTokenKeys(tokenKeys, correlationId);
|
|
577
562
|
}
|
|
@@ -582,17 +567,17 @@ class BrowserCacheManager extends CacheManager {
|
|
|
582
567
|
getRefreshTokenCredential(refreshTokenKey, correlationId) {
|
|
583
568
|
const value = this.browserStorage.getUserData(refreshTokenKey);
|
|
584
569
|
if (!value) {
|
|
585
|
-
this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit");
|
|
570
|
+
this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit", correlationId);
|
|
586
571
|
this.removeRefreshToken(refreshTokenKey, correlationId);
|
|
587
572
|
return null;
|
|
588
573
|
}
|
|
589
574
|
const parsedRefreshToken = this.validateAndParseJson(value);
|
|
590
575
|
if (!parsedRefreshToken ||
|
|
591
576
|
!CacheHelpers.isRefreshTokenEntity(parsedRefreshToken)) {
|
|
592
|
-
this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit");
|
|
577
|
+
this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit", correlationId);
|
|
593
578
|
return null;
|
|
594
579
|
}
|
|
595
|
-
this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit");
|
|
580
|
+
this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit", correlationId);
|
|
596
581
|
return parsedRefreshToken;
|
|
597
582
|
}
|
|
598
583
|
/**
|
|
@@ -600,14 +585,14 @@ class BrowserCacheManager extends CacheManager {
|
|
|
600
585
|
* @param refreshToken
|
|
601
586
|
*/
|
|
602
587
|
async setRefreshTokenCredential(refreshToken, correlationId) {
|
|
603
|
-
this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");
|
|
588
|
+
this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called", correlationId);
|
|
604
589
|
const refreshTokenKey = this.generateCredentialKey(refreshToken);
|
|
605
590
|
const timestamp = Date.now().toString();
|
|
606
591
|
refreshToken.lastUpdatedAt = timestamp;
|
|
607
592
|
await this.setUserData(refreshTokenKey, JSON.stringify(refreshToken), correlationId, timestamp);
|
|
608
593
|
const tokenKeys = this.getTokenKeys();
|
|
609
594
|
if (tokenKeys.refreshToken.indexOf(refreshTokenKey) === -1) {
|
|
610
|
-
this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map");
|
|
595
|
+
this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map", correlationId);
|
|
611
596
|
tokenKeys.refreshToken.push(refreshTokenKey);
|
|
612
597
|
this.setTokenKeys(tokenKeys, correlationId);
|
|
613
598
|
}
|
|
@@ -615,48 +600,51 @@ class BrowserCacheManager extends CacheManager {
|
|
|
615
600
|
/**
|
|
616
601
|
* fetch appMetadata entity from the platform cache
|
|
617
602
|
* @param appMetadataKey
|
|
603
|
+
* @param correlationId
|
|
618
604
|
*/
|
|
619
|
-
getAppMetadata(appMetadataKey) {
|
|
605
|
+
getAppMetadata(appMetadataKey, correlationId) {
|
|
620
606
|
const value = this.browserStorage.getItem(appMetadataKey);
|
|
621
607
|
if (!value) {
|
|
622
|
-
this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit");
|
|
608
|
+
this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit", correlationId);
|
|
623
609
|
return null;
|
|
624
610
|
}
|
|
625
611
|
const parsedMetadata = this.validateAndParseJson(value);
|
|
626
612
|
if (!parsedMetadata ||
|
|
627
613
|
!CacheHelpers.isAppMetadataEntity(appMetadataKey, parsedMetadata)) {
|
|
628
|
-
this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit");
|
|
614
|
+
this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit", correlationId);
|
|
629
615
|
return null;
|
|
630
616
|
}
|
|
631
|
-
this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit");
|
|
617
|
+
this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit", correlationId);
|
|
632
618
|
return parsedMetadata;
|
|
633
619
|
}
|
|
634
620
|
/**
|
|
635
621
|
* set appMetadata entity to the platform cache
|
|
636
622
|
* @param appMetadata
|
|
623
|
+
* @param correlationId
|
|
637
624
|
*/
|
|
638
625
|
setAppMetadata(appMetadata, correlationId) {
|
|
639
|
-
this.logger.trace("BrowserCacheManager.setAppMetadata called");
|
|
626
|
+
this.logger.trace("BrowserCacheManager.setAppMetadata called", correlationId);
|
|
640
627
|
const appMetadataKey = CacheHelpers.generateAppMetadataKey(appMetadata);
|
|
641
628
|
this.setItem(appMetadataKey, JSON.stringify(appMetadata), correlationId);
|
|
642
629
|
}
|
|
643
630
|
/**
|
|
644
631
|
* fetch server telemetry entity from the platform cache
|
|
645
632
|
* @param serverTelemetryKey
|
|
633
|
+
* @param correlationId
|
|
646
634
|
*/
|
|
647
|
-
getServerTelemetry(serverTelemetryKey) {
|
|
635
|
+
getServerTelemetry(serverTelemetryKey, correlationId) {
|
|
648
636
|
const value = this.browserStorage.getItem(serverTelemetryKey);
|
|
649
637
|
if (!value) {
|
|
650
|
-
this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit");
|
|
638
|
+
this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit", correlationId);
|
|
651
639
|
return null;
|
|
652
640
|
}
|
|
653
641
|
const parsedEntity = this.validateAndParseJson(value);
|
|
654
642
|
if (!parsedEntity ||
|
|
655
643
|
!CacheHelpers.isServerTelemetryEntity(serverTelemetryKey, parsedEntity)) {
|
|
656
|
-
this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit");
|
|
644
|
+
this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit", correlationId);
|
|
657
645
|
return null;
|
|
658
646
|
}
|
|
659
|
-
this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit");
|
|
647
|
+
this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit", correlationId);
|
|
660
648
|
return parsedEntity;
|
|
661
649
|
}
|
|
662
650
|
/**
|
|
@@ -665,22 +653,22 @@ class BrowserCacheManager extends CacheManager {
|
|
|
665
653
|
* @param serverTelemetry
|
|
666
654
|
*/
|
|
667
655
|
setServerTelemetry(serverTelemetryKey, serverTelemetry, correlationId) {
|
|
668
|
-
this.logger.trace("BrowserCacheManager.setServerTelemetry called");
|
|
656
|
+
this.logger.trace("BrowserCacheManager.setServerTelemetry called", correlationId);
|
|
669
657
|
this.setItem(serverTelemetryKey, JSON.stringify(serverTelemetry), correlationId);
|
|
670
658
|
}
|
|
671
659
|
/**
|
|
672
660
|
*
|
|
673
661
|
*/
|
|
674
|
-
getAuthorityMetadata(key) {
|
|
662
|
+
getAuthorityMetadata(key, correlationId) {
|
|
675
663
|
const value = this.internalStorage.getItem(key);
|
|
676
664
|
if (!value) {
|
|
677
|
-
this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit");
|
|
665
|
+
this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit", correlationId);
|
|
678
666
|
return null;
|
|
679
667
|
}
|
|
680
668
|
const parsedMetadata = this.validateAndParseJson(value);
|
|
681
669
|
if (parsedMetadata &&
|
|
682
670
|
CacheHelpers.isAuthorityMetadataEntity(key, parsedMetadata)) {
|
|
683
|
-
this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit");
|
|
671
|
+
this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit", correlationId);
|
|
684
672
|
return parsedMetadata;
|
|
685
673
|
}
|
|
686
674
|
return null;
|
|
@@ -707,40 +695,40 @@ class BrowserCacheManager extends CacheManager {
|
|
|
707
695
|
* Returns wrapper metadata from in-memory storage
|
|
708
696
|
*/
|
|
709
697
|
getWrapperMetadata() {
|
|
710
|
-
const sku = this.internalStorage.getItem(InMemoryCacheKeys.WRAPPER_SKU) ||
|
|
711
|
-
|
|
712
|
-
const version = this.internalStorage.getItem(InMemoryCacheKeys.WRAPPER_VER) ||
|
|
713
|
-
Constants.EMPTY_STRING;
|
|
698
|
+
const sku = this.internalStorage.getItem(InMemoryCacheKeys.WRAPPER_SKU) || "";
|
|
699
|
+
const version = this.internalStorage.getItem(InMemoryCacheKeys.WRAPPER_VER) || "";
|
|
714
700
|
return [sku, version];
|
|
715
701
|
}
|
|
716
702
|
/**
|
|
717
703
|
*
|
|
704
|
+
* @param key
|
|
718
705
|
* @param entity
|
|
706
|
+
* @param correlationId
|
|
719
707
|
*/
|
|
720
|
-
setAuthorityMetadata(key, entity) {
|
|
721
|
-
this.logger.trace("BrowserCacheManager.setAuthorityMetadata called");
|
|
708
|
+
setAuthorityMetadata(key, entity, correlationId) {
|
|
709
|
+
this.logger.trace("BrowserCacheManager.setAuthorityMetadata called", correlationId);
|
|
722
710
|
this.internalStorage.setItem(key, JSON.stringify(entity));
|
|
723
711
|
}
|
|
724
712
|
/**
|
|
725
713
|
* Gets the active account
|
|
726
714
|
*/
|
|
727
715
|
getActiveAccount(correlationId) {
|
|
728
|
-
const activeAccountKeyFilters = this.generateCacheKey(PersistentCacheKeys.ACTIVE_ACCOUNT_FILTERS);
|
|
716
|
+
const activeAccountKeyFilters = this.generateCacheKey(Constants.PersistentCacheKeys.ACTIVE_ACCOUNT_FILTERS);
|
|
729
717
|
const activeAccountValueFilters = this.browserStorage.getItem(activeAccountKeyFilters);
|
|
730
718
|
if (!activeAccountValueFilters) {
|
|
731
|
-
this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters found");
|
|
719
|
+
this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters found", correlationId);
|
|
732
720
|
return null;
|
|
733
721
|
}
|
|
734
722
|
const activeAccountValueObj = this.validateAndParseJson(activeAccountValueFilters);
|
|
735
723
|
if (activeAccountValueObj) {
|
|
736
|
-
this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found");
|
|
724
|
+
this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found", correlationId);
|
|
737
725
|
return this.getAccountInfoFilteredBy({
|
|
738
726
|
homeAccountId: activeAccountValueObj.homeAccountId,
|
|
739
727
|
localAccountId: activeAccountValueObj.localAccountId,
|
|
740
728
|
tenantId: activeAccountValueObj.tenantId,
|
|
741
729
|
}, correlationId);
|
|
742
730
|
}
|
|
743
|
-
this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found");
|
|
731
|
+
this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found", correlationId);
|
|
744
732
|
return null;
|
|
745
733
|
}
|
|
746
734
|
/**
|
|
@@ -748,19 +736,18 @@ class BrowserCacheManager extends CacheManager {
|
|
|
748
736
|
* @param account
|
|
749
737
|
*/
|
|
750
738
|
setActiveAccount(account, correlationId) {
|
|
751
|
-
const activeAccountKey = this.generateCacheKey(PersistentCacheKeys.ACTIVE_ACCOUNT_FILTERS);
|
|
739
|
+
const activeAccountKey = this.generateCacheKey(Constants.PersistentCacheKeys.ACTIVE_ACCOUNT_FILTERS);
|
|
752
740
|
if (account) {
|
|
753
|
-
this.logger.verbose("setActiveAccount: Active account set");
|
|
741
|
+
this.logger.verbose("setActiveAccount: Active account set", correlationId);
|
|
754
742
|
const activeAccountValue = {
|
|
755
743
|
homeAccountId: account.homeAccountId,
|
|
756
744
|
localAccountId: account.localAccountId,
|
|
757
745
|
tenantId: account.tenantId,
|
|
758
|
-
lastUpdatedAt: TimeUtils.nowSeconds().toString(),
|
|
759
746
|
};
|
|
760
747
|
this.setItem(activeAccountKey, JSON.stringify(activeAccountValue), correlationId);
|
|
761
748
|
}
|
|
762
749
|
else {
|
|
763
|
-
this.logger.verbose("setActiveAccount: No account passed, active account not set");
|
|
750
|
+
this.logger.verbose("setActiveAccount: No account passed, active account not set", correlationId);
|
|
764
751
|
this.browserStorage.removeItem(activeAccountKey);
|
|
765
752
|
}
|
|
766
753
|
this.eventHandler.emitEvent(EventType.ACTIVE_ACCOUNT_CHANGED);
|
|
@@ -768,20 +755,21 @@ class BrowserCacheManager extends CacheManager {
|
|
|
768
755
|
/**
|
|
769
756
|
* fetch throttling entity from the platform cache
|
|
770
757
|
* @param throttlingCacheKey
|
|
758
|
+
* @param correlationId
|
|
771
759
|
*/
|
|
772
|
-
getThrottlingCache(throttlingCacheKey) {
|
|
760
|
+
getThrottlingCache(throttlingCacheKey, correlationId) {
|
|
773
761
|
const value = this.browserStorage.getItem(throttlingCacheKey);
|
|
774
762
|
if (!value) {
|
|
775
|
-
this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit");
|
|
763
|
+
this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit", correlationId);
|
|
776
764
|
return null;
|
|
777
765
|
}
|
|
778
766
|
const parsedThrottlingCache = this.validateAndParseJson(value);
|
|
779
767
|
if (!parsedThrottlingCache ||
|
|
780
768
|
!CacheHelpers.isThrottlingEntity(throttlingCacheKey, parsedThrottlingCache)) {
|
|
781
|
-
this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit");
|
|
769
|
+
this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit", correlationId);
|
|
782
770
|
return null;
|
|
783
771
|
}
|
|
784
|
-
this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit");
|
|
772
|
+
this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit", correlationId);
|
|
785
773
|
return parsedThrottlingCache;
|
|
786
774
|
}
|
|
787
775
|
/**
|
|
@@ -790,23 +778,17 @@ class BrowserCacheManager extends CacheManager {
|
|
|
790
778
|
* @param throttlingCache
|
|
791
779
|
*/
|
|
792
780
|
setThrottlingCache(throttlingCacheKey, throttlingCache, correlationId) {
|
|
793
|
-
this.logger.trace("BrowserCacheManager.setThrottlingCache called");
|
|
781
|
+
this.logger.trace("BrowserCacheManager.setThrottlingCache called", correlationId);
|
|
794
782
|
this.setItem(throttlingCacheKey, JSON.stringify(throttlingCache), correlationId);
|
|
795
783
|
}
|
|
796
784
|
/**
|
|
797
785
|
* Gets cache item with given key.
|
|
798
|
-
*
|
|
799
|
-
* @param
|
|
786
|
+
* @param cacheKey
|
|
787
|
+
* @param correlationId
|
|
788
|
+
* @param generateKey
|
|
800
789
|
*/
|
|
801
|
-
getTemporaryCache(cacheKey, generateKey) {
|
|
790
|
+
getTemporaryCache(cacheKey, correlationId, generateKey) {
|
|
802
791
|
const key = generateKey ? this.generateCacheKey(cacheKey) : cacheKey;
|
|
803
|
-
if (this.cacheConfig.storeAuthStateInCookie) {
|
|
804
|
-
const itemCookie = this.cookieStorage.getItem(key);
|
|
805
|
-
if (itemCookie) {
|
|
806
|
-
this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies");
|
|
807
|
-
return itemCookie;
|
|
808
|
-
}
|
|
809
|
-
}
|
|
810
792
|
const value = this.temporaryCacheStorage.getItem(key);
|
|
811
793
|
if (!value) {
|
|
812
794
|
// If temp cache item not found in session/memory, check local storage for items set by old versions
|
|
@@ -814,30 +796,23 @@ class BrowserCacheManager extends CacheManager {
|
|
|
814
796
|
BrowserCacheLocation.LocalStorage) {
|
|
815
797
|
const item = this.browserStorage.getItem(key);
|
|
816
798
|
if (item) {
|
|
817
|
-
this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage");
|
|
799
|
+
this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage", correlationId);
|
|
818
800
|
return item;
|
|
819
801
|
}
|
|
820
802
|
}
|
|
821
|
-
this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage");
|
|
803
|
+
this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage", correlationId);
|
|
822
804
|
return null;
|
|
823
805
|
}
|
|
824
|
-
this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned");
|
|
825
806
|
return value;
|
|
826
807
|
}
|
|
827
808
|
/**
|
|
828
809
|
* Sets the cache item with the key and value given.
|
|
829
|
-
* Stores in cookie if storeAuthStateInCookie is set to true.
|
|
830
|
-
* This can cause cookie overflow if used incorrectly.
|
|
831
810
|
* @param key
|
|
832
811
|
* @param value
|
|
833
812
|
*/
|
|
834
813
|
setTemporaryCache(cacheKey, value, generateKey) {
|
|
835
814
|
const key = generateKey ? this.generateCacheKey(cacheKey) : cacheKey;
|
|
836
815
|
this.temporaryCacheStorage.setItem(key, value);
|
|
837
|
-
if (this.cacheConfig.storeAuthStateInCookie) {
|
|
838
|
-
this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie");
|
|
839
|
-
this.cookieStorage.setItem(key, value, undefined, this.cacheConfig.secureCookies);
|
|
840
|
-
}
|
|
841
816
|
}
|
|
842
817
|
/**
|
|
843
818
|
* Removes the cache item with the given key.
|
|
@@ -848,15 +823,10 @@ class BrowserCacheManager extends CacheManager {
|
|
|
848
823
|
}
|
|
849
824
|
/**
|
|
850
825
|
* Removes the temporary cache item with the given key.
|
|
851
|
-
* Will also clear the cookie item if storeAuthStateInCookie is set to true.
|
|
852
826
|
* @param key
|
|
853
827
|
*/
|
|
854
828
|
removeTemporaryItem(key) {
|
|
855
829
|
this.temporaryCacheStorage.removeItem(key);
|
|
856
|
-
if (this.cacheConfig.storeAuthStateInCookie) {
|
|
857
|
-
this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie");
|
|
858
|
-
this.cookieStorage.removeItem(key);
|
|
859
|
-
}
|
|
860
830
|
}
|
|
861
831
|
/**
|
|
862
832
|
* Gets all keys in window.
|
|
@@ -887,30 +857,6 @@ class BrowserCacheManager extends CacheManager {
|
|
|
887
857
|
});
|
|
888
858
|
this.internalStorage.clear();
|
|
889
859
|
}
|
|
890
|
-
/**
|
|
891
|
-
* Clears all access tokes that have claims prior to saving the current one
|
|
892
|
-
* @param performanceClient {IPerformanceClient}
|
|
893
|
-
* @param correlationId {string} correlation id
|
|
894
|
-
* @returns
|
|
895
|
-
*/
|
|
896
|
-
clearTokensAndKeysWithClaims(correlationId) {
|
|
897
|
-
this.performanceClient.addQueueMeasurement(PerformanceEvents.ClearTokensAndKeysWithClaims, correlationId);
|
|
898
|
-
const tokenKeys = this.getTokenKeys();
|
|
899
|
-
let removedAccessTokens = 0;
|
|
900
|
-
tokenKeys.accessToken.forEach((key) => {
|
|
901
|
-
// if the access token has claims in its key, remove the token key and the token
|
|
902
|
-
const credential = this.getAccessTokenCredential(key, correlationId);
|
|
903
|
-
if (credential?.requestedClaimsHash &&
|
|
904
|
-
key.includes(credential.requestedClaimsHash.toLowerCase())) {
|
|
905
|
-
this.removeAccessToken(key, correlationId);
|
|
906
|
-
removedAccessTokens++;
|
|
907
|
-
}
|
|
908
|
-
});
|
|
909
|
-
// warn if any access tokens are removed
|
|
910
|
-
if (removedAccessTokens > 0) {
|
|
911
|
-
this.logger.warning(`${removedAccessTokens} access tokens with claims in the cache keys have been removed from the cache.`);
|
|
912
|
-
}
|
|
913
|
-
}
|
|
914
860
|
/**
|
|
915
861
|
* Prepend msal.<client-id> to each key
|
|
916
862
|
* @param key
|
|
@@ -931,12 +877,13 @@ class BrowserCacheManager extends CacheManager {
|
|
|
931
877
|
* @returns
|
|
932
878
|
*/
|
|
933
879
|
generateCredentialKey(credential) {
|
|
934
|
-
const familyId = (credential.credentialType ===
|
|
880
|
+
const familyId = (credential.credentialType ===
|
|
881
|
+
Constants.CredentialType.REFRESH_TOKEN &&
|
|
935
882
|
credential.familyId) ||
|
|
936
883
|
credential.clientId;
|
|
937
884
|
const scheme = credential.tokenType &&
|
|
938
885
|
credential.tokenType.toLowerCase() !==
|
|
939
|
-
AuthenticationScheme.BEARER.toLowerCase()
|
|
886
|
+
Constants.AuthenticationScheme.BEARER.toLowerCase()
|
|
940
887
|
? credential.tokenType.toLowerCase()
|
|
941
888
|
: "";
|
|
942
889
|
const credentialKey = [
|
|
@@ -947,7 +894,6 @@ class BrowserCacheManager extends CacheManager {
|
|
|
947
894
|
familyId,
|
|
948
895
|
credential.realm || "",
|
|
949
896
|
credential.target || "",
|
|
950
|
-
credential.requestedClaimsHash || "",
|
|
951
897
|
scheme,
|
|
952
898
|
];
|
|
953
899
|
return credentialKey.join(CACHE_KEY_SEPARATOR).toLowerCase();
|
|
@@ -969,19 +915,19 @@ class BrowserCacheManager extends CacheManager {
|
|
|
969
915
|
}
|
|
970
916
|
/**
|
|
971
917
|
* Reset all temporary cache items
|
|
972
|
-
* @param
|
|
918
|
+
* @param correlationId
|
|
973
919
|
*/
|
|
974
|
-
resetRequestCache() {
|
|
975
|
-
this.logger.trace("BrowserCacheManager.resetRequestCache called");
|
|
920
|
+
resetRequestCache(correlationId) {
|
|
921
|
+
this.logger.trace("BrowserCacheManager.resetRequestCache called", correlationId);
|
|
976
922
|
this.removeTemporaryItem(this.generateCacheKey(TemporaryCacheKeys.REQUEST_PARAMS));
|
|
977
923
|
this.removeTemporaryItem(this.generateCacheKey(TemporaryCacheKeys.VERIFIER));
|
|
978
924
|
this.removeTemporaryItem(this.generateCacheKey(TemporaryCacheKeys.ORIGIN_URI));
|
|
979
925
|
this.removeTemporaryItem(this.generateCacheKey(TemporaryCacheKeys.URL_HASH));
|
|
980
926
|
this.removeTemporaryItem(this.generateCacheKey(TemporaryCacheKeys.NATIVE_REQUEST));
|
|
981
|
-
this.setInteractionInProgress(false);
|
|
927
|
+
this.setInteractionInProgress(false, undefined);
|
|
982
928
|
}
|
|
983
|
-
cacheAuthorizeRequest(authCodeRequest, codeVerifier) {
|
|
984
|
-
this.logger.trace("BrowserCacheManager.cacheAuthorizeRequest called");
|
|
929
|
+
cacheAuthorizeRequest(authCodeRequest, correlationId, codeVerifier) {
|
|
930
|
+
this.logger.trace("BrowserCacheManager.cacheAuthorizeRequest called", correlationId);
|
|
985
931
|
const encodedValue = base64Encode(JSON.stringify(authCodeRequest));
|
|
986
932
|
this.setTemporaryCache(TemporaryCacheKeys.REQUEST_PARAMS, encodedValue, true);
|
|
987
933
|
if (codeVerifier) {
|
|
@@ -991,15 +937,16 @@ class BrowserCacheManager extends CacheManager {
|
|
|
991
937
|
}
|
|
992
938
|
/**
|
|
993
939
|
* Gets the token exchange parameters from the cache. Throws an error if nothing is found.
|
|
940
|
+
* @param correlationId
|
|
994
941
|
*/
|
|
995
|
-
getCachedRequest() {
|
|
996
|
-
this.logger.trace("BrowserCacheManager.getCachedRequest called");
|
|
942
|
+
getCachedRequest(correlationId) {
|
|
943
|
+
this.logger.trace("BrowserCacheManager.getCachedRequest called", correlationId);
|
|
997
944
|
// Get token request from cache and parse as TokenExchangeParameters.
|
|
998
|
-
const encodedTokenRequest = this.getTemporaryCache(TemporaryCacheKeys.REQUEST_PARAMS, true);
|
|
945
|
+
const encodedTokenRequest = this.getTemporaryCache(TemporaryCacheKeys.REQUEST_PARAMS, correlationId, true);
|
|
999
946
|
if (!encodedTokenRequest) {
|
|
1000
947
|
throw createBrowserAuthError(noTokenRequestCacheError);
|
|
1001
948
|
}
|
|
1002
|
-
const encodedVerifier = this.getTemporaryCache(TemporaryCacheKeys.VERIFIER, true);
|
|
949
|
+
const encodedVerifier = this.getTemporaryCache(TemporaryCacheKeys.VERIFIER, correlationId, true);
|
|
1003
950
|
let parsedRequest;
|
|
1004
951
|
let verifier = "";
|
|
1005
952
|
try {
|
|
@@ -1009,25 +956,26 @@ class BrowserCacheManager extends CacheManager {
|
|
|
1009
956
|
}
|
|
1010
957
|
}
|
|
1011
958
|
catch (e) {
|
|
1012
|
-
this.logger.errorPii(`Attempted to parse: ${encodedTokenRequest}
|
|
1013
|
-
this.logger.error(`Parsing cached token request threw with error: ${e}
|
|
959
|
+
this.logger.errorPii(`Attempted to parse: '${encodedTokenRequest}'`, correlationId);
|
|
960
|
+
this.logger.error(`Parsing cached token request threw with error: '${e}'`, correlationId);
|
|
1014
961
|
throw createBrowserAuthError(unableToParseTokenRequestCacheError);
|
|
1015
962
|
}
|
|
1016
963
|
return [parsedRequest, verifier];
|
|
1017
964
|
}
|
|
1018
965
|
/**
|
|
1019
966
|
* Gets cached native request for redirect flows
|
|
967
|
+
* @param correlationId
|
|
1020
968
|
*/
|
|
1021
969
|
getCachedNativeRequest() {
|
|
1022
|
-
this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");
|
|
1023
|
-
const cachedRequest = this.getTemporaryCache(TemporaryCacheKeys.NATIVE_REQUEST, true);
|
|
970
|
+
this.logger.trace("BrowserCacheManager.getCachedNativeRequest called", "");
|
|
971
|
+
const cachedRequest = this.getTemporaryCache(TemporaryCacheKeys.NATIVE_REQUEST, "", true);
|
|
1024
972
|
if (!cachedRequest) {
|
|
1025
|
-
this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found");
|
|
973
|
+
this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found", "");
|
|
1026
974
|
return null;
|
|
1027
975
|
}
|
|
1028
976
|
const parsedRequest = this.validateAndParseJson(cachedRequest);
|
|
1029
977
|
if (!parsedRequest) {
|
|
1030
|
-
this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request");
|
|
978
|
+
this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request", "");
|
|
1031
979
|
return null;
|
|
1032
980
|
}
|
|
1033
981
|
return parsedRequest;
|
|
@@ -1043,15 +991,15 @@ class BrowserCacheManager extends CacheManager {
|
|
|
1043
991
|
}
|
|
1044
992
|
getInteractionInProgress() {
|
|
1045
993
|
const key = `${PREFIX}.${TemporaryCacheKeys.INTERACTION_STATUS_KEY}`;
|
|
1046
|
-
const value = this.getTemporaryCache(key, false);
|
|
994
|
+
const value = this.getTemporaryCache(key, "", false);
|
|
1047
995
|
try {
|
|
1048
996
|
return value ? JSON.parse(value) : null;
|
|
1049
997
|
}
|
|
1050
998
|
catch (e) {
|
|
1051
999
|
// Remove interaction and other temp keys if interaction status can't be parsed
|
|
1052
|
-
this.logger.error(`Cannot parse interaction status. Removing temporary cache items and clearing url hash. Retrying interaction should fix the error
|
|
1000
|
+
this.logger.error(`Cannot parse interaction status. Removing temporary cache items and clearing url hash. Retrying interaction should fix the error`, "");
|
|
1053
1001
|
this.removeTemporaryItem(key);
|
|
1054
|
-
this.resetRequestCache();
|
|
1002
|
+
this.resetRequestCache("");
|
|
1055
1003
|
clearHash(window);
|
|
1056
1004
|
return null;
|
|
1057
1005
|
}
|
|
@@ -1080,10 +1028,6 @@ class BrowserCacheManager extends CacheManager {
|
|
|
1080
1028
|
*/
|
|
1081
1029
|
async hydrateCache(result, request) {
|
|
1082
1030
|
const idTokenEntity = CacheHelpers.createIdTokenEntity(result.account?.homeAccountId, result.account?.environment, result.idToken, this.clientId, result.tenantId);
|
|
1083
|
-
let claimsHash;
|
|
1084
|
-
if (request.claims) {
|
|
1085
|
-
claimsHash = await this.cryptoImpl.hashString(request.claims);
|
|
1086
|
-
}
|
|
1087
1031
|
/**
|
|
1088
1032
|
* meta data for cache stores time in seconds from epoch
|
|
1089
1033
|
* AuthenticationResult returns expiresOn and extExpiresOn in milliseconds (as a Date object which is in ms)
|
|
@@ -1099,7 +1043,7 @@ class BrowserCacheManager extends CacheManager {
|
|
|
1099
1043
|
? TimeUtils.toSecondsFromDate(result.extExpiresOn)
|
|
1100
1044
|
: 0, base64Decode, undefined, // refreshOn
|
|
1101
1045
|
result.tokenType, undefined, // userAssertionHash
|
|
1102
|
-
request.sshKid
|
|
1046
|
+
request.sshKid);
|
|
1103
1047
|
const cacheRecord = {
|
|
1104
1048
|
idToken: idTokenEntity,
|
|
1105
1049
|
accessToken: accessTokenEntity,
|
|
@@ -1151,7 +1095,7 @@ function getStorageImplementation(clientId, cacheLocation, logger, performanceCl
|
|
|
1151
1095
|
}
|
|
1152
1096
|
}
|
|
1153
1097
|
catch (e) {
|
|
1154
|
-
logger.error(e);
|
|
1098
|
+
logger.error(e, "");
|
|
1155
1099
|
}
|
|
1156
1100
|
return new MemoryStorage();
|
|
1157
1101
|
}
|
|
@@ -1159,11 +1103,6 @@ const DEFAULT_BROWSER_CACHE_MANAGER = (clientId, logger, performanceClient, even
|
|
|
1159
1103
|
const cacheOptions = {
|
|
1160
1104
|
cacheLocation: BrowserCacheLocation.MemoryStorage,
|
|
1161
1105
|
cacheRetentionDays: 5,
|
|
1162
|
-
temporaryCacheLocation: BrowserCacheLocation.MemoryStorage,
|
|
1163
|
-
storeAuthStateInCookie: false,
|
|
1164
|
-
secureCookies: false,
|
|
1165
|
-
cacheMigrationEnabled: false,
|
|
1166
|
-
claimsBasedCachingEnabled: false,
|
|
1167
1106
|
};
|
|
1168
1107
|
return new BrowserCacheManager(clientId, cacheOptions, DEFAULT_CRYPTO_IMPLEMENTATION, logger, performanceClient, eventHandler);
|
|
1169
1108
|
};
|