@azure/msal-browser 4.24.1 → 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 -303
- 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 -303
- 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 -13
- package/dist/custom-auth-path/error/NativeAuthError.mjs.map +1 -1
- package/dist/custom-auth-path/error/NativeAuthErrorCodes.d.ts +1 -1
- package/dist/custom-auth-path/error/NativeAuthErrorCodes.d.ts.map +1 -1
- package/dist/custom-auth-path/error/NativeAuthErrorCodes.mjs +2 -3
- package/dist/custom-auth-path/error/NativeAuthErrorCodes.mjs.map +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 -85
- 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 -13
- package/dist/error/NativeAuthError.mjs.map +1 -1
- package/dist/error/NativeAuthErrorCodes.d.ts +1 -1
- package/dist/error/NativeAuthErrorCodes.d.ts.map +1 -1
- package/dist/error/NativeAuthErrorCodes.mjs +4 -4
- 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 -85
- 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 -3596
- 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 -1
- 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 -4758
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +2923 -4758
- 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 -1
- 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 -519
- 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 -14
- package/src/error/NativeAuthErrorCodes.ts +1 -1
- 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 -109
- 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,7 +1,9 @@
|
|
|
1
|
-
/*! @azure/msal-browser
|
|
1
|
+
/*! @azure/msal-browser v5.0.0-alpha.0 2025-10-02 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { CryptoOps } from '../crypto/CryptoOps.mjs';
|
|
4
|
-
import { DEFAULT_CRYPTO_IMPLEMENTATION, buildStaticAuthorityOptions,
|
|
4
|
+
import { DEFAULT_CRYPTO_IMPLEMENTATION, buildStaticAuthorityOptions, invokeAsync, InteractionRequiredAuthError, createClientAuthError, ClientAuthErrorCodes, AccountEntityUtils, Constants, AuthError, getRequestThumbprint, InteractionRequiredAuthErrorCodes } from '@azure/msal-common/browser';
|
|
5
|
+
import { InitializeCache, HandleNativeRedirectPromiseMeasurement, HandleRedirectPromiseMeasurement, AcquireTokenByCodeAsync, SilentCacheClientAcquireToken, SilentRefreshClientAcquireToken, SilentIframeClientAcquireToken, AcquireTokenSilentAsync, InitializeSilentRequest, AcquireTokenBySilentIframe, AwaitConcurrentIframe, AcquireTokenFromCache, AcquireTokenByRefreshToken, GeneratePkceCodes } from '../telemetry/BrowserPerformanceEvents.mjs';
|
|
6
|
+
import { InitializeClientApplication, AcquireTokenRedirect, AcquireTokenPreRedirect, AcquireTokenPopup, SsoSilent, AcquireTokenByCode, AcquireTokenSilent } from '../telemetry/BrowserRootPerformanceEvents.mjs';
|
|
5
7
|
import { BrowserCacheManager, DEFAULT_BROWSER_CACHE_MANAGER } from '../cache/BrowserCacheManager.mjs';
|
|
6
8
|
import { getAllAccounts, getAccount, getAccountByUsername, getAccountByHomeId, getAccountByLocalId, setActiveAccount, getActiveAccount } from '../cache/AccountManager.mjs';
|
|
7
9
|
import { BrowserCacheLocation, INTERACTION_TYPE, InteractionType, ApiId, CacheLookupPolicy, DEFAULT_REQUEST, iFrameRenewalPolicies, BrowserConstants } from '../utils/BrowserConstants.mjs';
|
|
@@ -12,7 +14,6 @@ import { PopupClient } from '../interaction_client/PopupClient.mjs';
|
|
|
12
14
|
import { RedirectClient } from '../interaction_client/RedirectClient.mjs';
|
|
13
15
|
import { SilentIframeClient } from '../interaction_client/SilentIframeClient.mjs';
|
|
14
16
|
import { SilentRefreshClient } from '../interaction_client/SilentRefreshClient.mjs';
|
|
15
|
-
import { TokenCache } from '../cache/TokenCache.mjs';
|
|
16
17
|
import { PlatformAuthInteractionClient } from '../interaction_client/PlatformAuthInteractionClient.mjs';
|
|
17
18
|
import { NativeAuthError, isFatalNativeAuthError } from '../error/NativeAuthError.mjs';
|
|
18
19
|
import { SilentCacheClient } from '../interaction_client/SilentCacheClient.mjs';
|
|
@@ -29,12 +30,25 @@ import { spaCodeAndNativeAccountIdPresent, unableToAcquireTokenFromNativePlatfor
|
|
|
29
30
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
30
31
|
* Licensed under the MIT License.
|
|
31
32
|
*/
|
|
32
|
-
function
|
|
33
|
+
function getAccountType(account) {
|
|
34
|
+
const idTokenClaims = account?.idTokenClaims;
|
|
35
|
+
if (idTokenClaims?.tfp || idTokenClaims?.acr) {
|
|
36
|
+
return "B2C";
|
|
37
|
+
}
|
|
38
|
+
if (!idTokenClaims?.tid) {
|
|
39
|
+
return undefined;
|
|
40
|
+
}
|
|
41
|
+
else if (idTokenClaims?.tid === "9188040d-6c67-4c5b-b112-36a304b66dad") {
|
|
42
|
+
return "MSA";
|
|
43
|
+
}
|
|
44
|
+
return "AAD";
|
|
45
|
+
}
|
|
46
|
+
function preflightCheck(initialized, performanceEvent) {
|
|
33
47
|
try {
|
|
34
48
|
preflightCheck$1(initialized);
|
|
35
49
|
}
|
|
36
50
|
catch (e) {
|
|
37
|
-
performanceEvent.end({ success: false }, e
|
|
51
|
+
performanceEvent.end({ success: false }, e);
|
|
38
52
|
throw e;
|
|
39
53
|
}
|
|
40
54
|
}
|
|
@@ -92,15 +106,8 @@ class StandardController {
|
|
|
92
106
|
const nativeCacheOptions = {
|
|
93
107
|
cacheLocation: BrowserCacheLocation.MemoryStorage,
|
|
94
108
|
cacheRetentionDays: 5,
|
|
95
|
-
temporaryCacheLocation: BrowserCacheLocation.MemoryStorage,
|
|
96
|
-
storeAuthStateInCookie: false,
|
|
97
|
-
secureCookies: false,
|
|
98
|
-
cacheMigrationEnabled: false,
|
|
99
|
-
claimsBasedCachingEnabled: false,
|
|
100
109
|
};
|
|
101
110
|
this.nativeInternalStorage = new BrowserCacheManager(this.config.auth.clientId, nativeCacheOptions, this.browserCrypto, this.logger, this.performanceClient, this.eventHandler);
|
|
102
|
-
// Initialize the token cache
|
|
103
|
-
this.tokenCache = new TokenCache(this.config, this.browserStorage, this.logger, this.browserCrypto);
|
|
104
111
|
this.activeSilentTokenRequests = new Map();
|
|
105
112
|
// Register listener functions
|
|
106
113
|
this.trackPageVisibility = this.trackPageVisibility.bind(this);
|
|
@@ -117,7 +124,7 @@ class StandardController {
|
|
|
117
124
|
if (!correlationId) {
|
|
118
125
|
return;
|
|
119
126
|
}
|
|
120
|
-
this.logger.info("Perf: Visibility change detected");
|
|
127
|
+
this.logger.info("Perf: Visibility change detected", correlationId);
|
|
121
128
|
this.performanceClient.incrementFields({ visibilityChangeCount: 1 }, correlationId);
|
|
122
129
|
}
|
|
123
130
|
/**
|
|
@@ -125,43 +132,44 @@ class StandardController {
|
|
|
125
132
|
* @param request {?InitializeApplicationRequest} correlation id
|
|
126
133
|
*/
|
|
127
134
|
async initialize(request, isBroker) {
|
|
128
|
-
this.
|
|
135
|
+
const correlationId = this.getRequestCorrelationId(request);
|
|
136
|
+
this.logger.trace("initialize called", correlationId);
|
|
129
137
|
if (this.initialized) {
|
|
130
|
-
this.logger.info("initialize has already been called, exiting early.");
|
|
138
|
+
this.logger.info("initialize has already been called, exiting early.", correlationId);
|
|
131
139
|
return;
|
|
132
140
|
}
|
|
133
141
|
if (!this.isBrowserEnvironment) {
|
|
134
|
-
this.logger.info("in non-browser environment, exiting early.");
|
|
142
|
+
this.logger.info("in non-browser environment, exiting early.", correlationId);
|
|
135
143
|
this.initialized = true;
|
|
136
144
|
this.eventHandler.emitEvent(EventType.INITIALIZE_END);
|
|
137
145
|
return;
|
|
138
146
|
}
|
|
139
147
|
const initCorrelationId = request?.correlationId || this.getRequestCorrelationId();
|
|
140
148
|
const allowPlatformBroker = this.config.system.allowPlatformBroker;
|
|
141
|
-
const initMeasurement = this.performanceClient.startMeasurement(
|
|
149
|
+
const initMeasurement = this.performanceClient.startMeasurement(InitializeClientApplication, initCorrelationId);
|
|
142
150
|
this.eventHandler.emitEvent(EventType.INITIALIZE_START);
|
|
143
151
|
// Broker applications are initialized twice, so we avoid double-counting it
|
|
144
152
|
if (!isBroker) {
|
|
145
153
|
try {
|
|
146
|
-
this.logMultipleInstances(initMeasurement);
|
|
154
|
+
this.logMultipleInstances(initMeasurement, initCorrelationId);
|
|
147
155
|
}
|
|
148
156
|
catch { }
|
|
149
157
|
}
|
|
150
|
-
await invokeAsync(this.browserStorage.initialize.bind(this.browserStorage),
|
|
158
|
+
await invokeAsync(this.browserStorage.initialize.bind(this.browserStorage), InitializeCache, this.logger, this.performanceClient, initCorrelationId)(initCorrelationId);
|
|
151
159
|
if (allowPlatformBroker) {
|
|
152
160
|
try {
|
|
153
161
|
// check if platform authentication is available via DOM or browser extension and create relevant handlers
|
|
154
162
|
this.platformAuthProvider = await getPlatformAuthProvider(this.logger, this.performanceClient, initCorrelationId, this.config.system.nativeBrokerHandshakeTimeout);
|
|
155
163
|
}
|
|
156
164
|
catch (e) {
|
|
157
|
-
this.logger.verbose(e);
|
|
165
|
+
this.logger.verbose(e, initCorrelationId);
|
|
158
166
|
}
|
|
159
167
|
}
|
|
160
|
-
if (
|
|
161
|
-
|
|
162
|
-
|
|
168
|
+
if (this.config.cache.cacheLocation ===
|
|
169
|
+
BrowserCacheLocation.LocalStorage) {
|
|
170
|
+
this.eventHandler.subscribeCrossTab();
|
|
163
171
|
}
|
|
164
|
-
this.config.system.
|
|
172
|
+
!this.config.system.navigatePopups &&
|
|
165
173
|
(await this.preGeneratePkceCodes(initCorrelationId));
|
|
166
174
|
this.initialized = true;
|
|
167
175
|
this.eventHandler.emitEvent(EventType.INITIALIZE_END);
|
|
@@ -176,10 +184,11 @@ class StandardController {
|
|
|
176
184
|
* has loaded during redirect flows. This should be invoked on all page loads involved in redirect
|
|
177
185
|
* auth flows.
|
|
178
186
|
* @param hash Hash to process. Defaults to the current value of window.location.hash. Only needs to be provided explicitly if the response to be handled is not contained in the current value.
|
|
187
|
+
* @param options Object containing optional configuration for redirect promise handling.
|
|
179
188
|
* @returns Token response or null. If the return value is null, then no auth redirect was detected.
|
|
180
189
|
*/
|
|
181
|
-
async handleRedirectPromise(
|
|
182
|
-
this.logger.verbose("handleRedirectPromise called");
|
|
190
|
+
async handleRedirectPromise(options) {
|
|
191
|
+
this.logger.verbose("handleRedirectPromise called", "");
|
|
183
192
|
// Block token acquisition before initialize has been called
|
|
184
193
|
blockAPICallsBeforeInitialize(this.initialized);
|
|
185
194
|
if (this.isBrowserEnvironment) {
|
|
@@ -188,19 +197,19 @@ class StandardController {
|
|
|
188
197
|
* otherwise return the promise from the first invocation. Prevents race conditions when handleRedirectPromise is called
|
|
189
198
|
* several times concurrently.
|
|
190
199
|
*/
|
|
191
|
-
const redirectResponseKey = hash || "";
|
|
200
|
+
const redirectResponseKey = options?.hash || "";
|
|
192
201
|
let response = this.redirectResponse.get(redirectResponseKey);
|
|
193
202
|
if (typeof response === "undefined") {
|
|
194
|
-
response = this.handleRedirectPromiseInternal(
|
|
203
|
+
response = this.handleRedirectPromiseInternal(options);
|
|
195
204
|
this.redirectResponse.set(redirectResponseKey, response);
|
|
196
|
-
this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise");
|
|
205
|
+
this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise", "");
|
|
197
206
|
}
|
|
198
207
|
else {
|
|
199
|
-
this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call");
|
|
208
|
+
this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call", "");
|
|
200
209
|
}
|
|
201
210
|
return response;
|
|
202
211
|
}
|
|
203
|
-
this.logger.verbose("handleRedirectPromise returns null, not browser environment");
|
|
212
|
+
this.logger.verbose("handleRedirectPromise returns null, not browser environment", "");
|
|
204
213
|
return null;
|
|
205
214
|
}
|
|
206
215
|
/**
|
|
@@ -208,64 +217,63 @@ class StandardController {
|
|
|
208
217
|
* @param hash
|
|
209
218
|
* @returns
|
|
210
219
|
*/
|
|
211
|
-
async handleRedirectPromiseInternal(
|
|
220
|
+
async handleRedirectPromiseInternal(options) {
|
|
212
221
|
if (!this.browserStorage.isInteractionInProgress(true)) {
|
|
213
|
-
this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null.");
|
|
222
|
+
this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null.", "");
|
|
214
223
|
return null;
|
|
215
224
|
}
|
|
216
225
|
const interactionType = this.browserStorage.getInteractionInProgress()?.type;
|
|
217
226
|
if (interactionType === INTERACTION_TYPE.SIGNOUT) {
|
|
218
|
-
this.logger.verbose("handleRedirectPromise removing interaction_in_progress flag and returning null after sign-out");
|
|
227
|
+
this.logger.verbose("handleRedirectPromise removing interaction_in_progress flag and returning null after sign-out", "");
|
|
219
228
|
this.browserStorage.setInteractionInProgress(false);
|
|
220
229
|
return Promise.resolve(null);
|
|
221
230
|
}
|
|
222
231
|
const loggedInAccounts = this.getAllAccounts();
|
|
223
232
|
const platformBrokerRequest = this.browserStorage.getCachedNativeRequest();
|
|
224
|
-
const useNative = platformBrokerRequest &&
|
|
233
|
+
const useNative = platformBrokerRequest &&
|
|
234
|
+
this.platformAuthProvider &&
|
|
235
|
+
!options?.hash;
|
|
225
236
|
let rootMeasurement;
|
|
226
237
|
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_START, InteractionType.Redirect);
|
|
227
238
|
let redirectResponse;
|
|
228
239
|
try {
|
|
229
240
|
if (useNative && this.platformAuthProvider) {
|
|
230
|
-
|
|
231
|
-
this.
|
|
232
|
-
|
|
233
|
-
isPlatformBrokerRequest: true,
|
|
234
|
-
});
|
|
241
|
+
const correlationId = platformBrokerRequest?.correlationId || "";
|
|
242
|
+
rootMeasurement = this.performanceClient.startMeasurement(AcquireTokenRedirect, correlationId);
|
|
243
|
+
this.logger.trace("handleRedirectPromise - acquiring token from native platform", correlationId);
|
|
235
244
|
const nativeClient = new PlatformAuthInteractionClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, ApiId.handleRedirectPromise, this.performanceClient, this.platformAuthProvider, platformBrokerRequest.accountId, this.nativeInternalStorage, platformBrokerRequest.correlationId);
|
|
236
|
-
redirectResponse = invokeAsync(nativeClient.handleRedirectPromise.bind(nativeClient),
|
|
245
|
+
redirectResponse = invokeAsync(nativeClient.handleRedirectPromise.bind(nativeClient), HandleNativeRedirectPromiseMeasurement, this.logger, this.performanceClient, rootMeasurement.event.correlationId)(this.performanceClient, rootMeasurement.event.correlationId);
|
|
237
246
|
}
|
|
238
247
|
else {
|
|
239
|
-
const [standardRequest, codeVerifier] = this.browserStorage.getCachedRequest();
|
|
248
|
+
const [standardRequest, codeVerifier] = this.browserStorage.getCachedRequest("");
|
|
240
249
|
const correlationId = standardRequest.correlationId;
|
|
241
250
|
// Reset rootMeasurement now that we have correlationId
|
|
242
|
-
rootMeasurement = this.performanceClient.startMeasurement(
|
|
243
|
-
this.logger.trace("handleRedirectPromise - acquiring token from web flow");
|
|
251
|
+
rootMeasurement = this.performanceClient.startMeasurement(AcquireTokenRedirect, correlationId);
|
|
252
|
+
this.logger.trace("handleRedirectPromise - acquiring token from web flow", correlationId);
|
|
244
253
|
const redirectClient = this.createRedirectClient(correlationId);
|
|
245
|
-
redirectResponse = invokeAsync(redirectClient.handleRedirectPromise.bind(redirectClient),
|
|
254
|
+
redirectResponse = invokeAsync(redirectClient.handleRedirectPromise.bind(redirectClient), HandleRedirectPromiseMeasurement, this.logger, this.performanceClient, rootMeasurement.event.correlationId)(standardRequest, codeVerifier, rootMeasurement, options);
|
|
246
255
|
}
|
|
247
256
|
}
|
|
248
257
|
catch (e) {
|
|
249
|
-
this.browserStorage.resetRequestCache();
|
|
258
|
+
this.browserStorage.resetRequestCache("");
|
|
250
259
|
throw e;
|
|
251
260
|
}
|
|
252
261
|
return redirectResponse
|
|
253
262
|
.then((result) => {
|
|
254
263
|
if (result) {
|
|
255
|
-
this.browserStorage.resetRequestCache();
|
|
264
|
+
this.browserStorage.resetRequestCache(result.correlationId);
|
|
265
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, InteractionType.Redirect, result);
|
|
266
|
+
this.logger.verbose("handleRedirectResponse returned result, acquire token success", result.correlationId);
|
|
256
267
|
// Emit login event if number of accounts change
|
|
257
268
|
const isLoggingIn = loggedInAccounts.length < this.getAllAccounts().length;
|
|
258
269
|
if (isLoggingIn) {
|
|
259
|
-
this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, InteractionType.Redirect, result);
|
|
260
|
-
this.logger.verbose("handleRedirectResponse returned result, login success");
|
|
261
|
-
}
|
|
262
|
-
else {
|
|
263
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, InteractionType.Redirect, result);
|
|
264
|
-
this.logger.verbose("handleRedirectResponse returned result, acquire token success");
|
|
270
|
+
this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, InteractionType.Redirect, result.account);
|
|
271
|
+
this.logger.verbose("handleRedirectResponse returned result, login success", result.correlationId);
|
|
265
272
|
}
|
|
266
273
|
rootMeasurement.end({
|
|
267
274
|
success: true,
|
|
268
|
-
|
|
275
|
+
accountType: getAccountType(result.account),
|
|
276
|
+
});
|
|
269
277
|
}
|
|
270
278
|
else {
|
|
271
279
|
/*
|
|
@@ -273,7 +281,7 @@ class StandardController {
|
|
|
273
281
|
* is empty and the error code is missing.
|
|
274
282
|
*/
|
|
275
283
|
if (rootMeasurement.event.errorCode) {
|
|
276
|
-
rootMeasurement.end({ success: false }
|
|
284
|
+
rootMeasurement.end({ success: false });
|
|
277
285
|
}
|
|
278
286
|
else {
|
|
279
287
|
rootMeasurement.discard();
|
|
@@ -283,15 +291,9 @@ class StandardController {
|
|
|
283
291
|
return result;
|
|
284
292
|
})
|
|
285
293
|
.catch((e) => {
|
|
286
|
-
this.browserStorage.resetRequestCache();
|
|
294
|
+
this.browserStorage.resetRequestCache(rootMeasurement.event.correlationId);
|
|
287
295
|
const eventError = e;
|
|
288
|
-
|
|
289
|
-
if (loggedInAccounts.length > 0) {
|
|
290
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, InteractionType.Redirect, null, eventError);
|
|
291
|
-
}
|
|
292
|
-
else {
|
|
293
|
-
this.eventHandler.emitEvent(EventType.LOGIN_FAILURE, InteractionType.Redirect, null, eventError);
|
|
294
|
-
}
|
|
296
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, InteractionType.Redirect, null, eventError);
|
|
295
297
|
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_END, InteractionType.Redirect);
|
|
296
298
|
rootMeasurement.end({
|
|
297
299
|
success: false,
|
|
@@ -312,50 +314,27 @@ class StandardController {
|
|
|
312
314
|
// Preflight request
|
|
313
315
|
const correlationId = this.getRequestCorrelationId(request);
|
|
314
316
|
this.logger.verbose("acquireTokenRedirect called", correlationId);
|
|
315
|
-
const atrMeasurement = this.performanceClient.startMeasurement(
|
|
317
|
+
const atrMeasurement = this.performanceClient.startMeasurement(AcquireTokenPreRedirect, correlationId);
|
|
316
318
|
atrMeasurement.add({
|
|
319
|
+
accountType: getAccountType(request.account),
|
|
317
320
|
scenarioId: request.scenarioId,
|
|
318
321
|
});
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
});
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
return navigate;
|
|
332
|
-
};
|
|
333
|
-
}
|
|
334
|
-
else {
|
|
335
|
-
const configOnRedirectNavigateCb = this.config.auth.onRedirectNavigate;
|
|
336
|
-
this.config.auth.onRedirectNavigate = (url) => {
|
|
337
|
-
const navigate = typeof configOnRedirectNavigateCb === "function"
|
|
338
|
-
? configOnRedirectNavigateCb(url)
|
|
339
|
-
: undefined;
|
|
340
|
-
atrMeasurement.add({
|
|
341
|
-
navigateCallbackResult: navigate !== false,
|
|
342
|
-
});
|
|
343
|
-
atrMeasurement.event =
|
|
344
|
-
atrMeasurement.end({ success: true }, undefined, request.account) || atrMeasurement.event;
|
|
345
|
-
return navigate;
|
|
346
|
-
};
|
|
347
|
-
}
|
|
348
|
-
// If logged in, emit acquire token events
|
|
349
|
-
const isLoggedIn = this.getAllAccounts().length > 0;
|
|
322
|
+
const configOnRedirectNavigateCb = this.config.auth.onRedirectNavigate;
|
|
323
|
+
this.config.auth.onRedirectNavigate = (url) => {
|
|
324
|
+
const navigate = typeof configOnRedirectNavigateCb === "function"
|
|
325
|
+
? configOnRedirectNavigateCb(url)
|
|
326
|
+
: undefined;
|
|
327
|
+
atrMeasurement.add({
|
|
328
|
+
navigateCallbackResult: navigate !== false,
|
|
329
|
+
});
|
|
330
|
+
atrMeasurement.event =
|
|
331
|
+
atrMeasurement.end({ success: true }) || atrMeasurement.event;
|
|
332
|
+
return navigate;
|
|
333
|
+
};
|
|
350
334
|
try {
|
|
351
335
|
redirectPreflightCheck(this.initialized, this.config);
|
|
352
336
|
this.browserStorage.setInteractionInProgress(true, INTERACTION_TYPE.SIGNIN);
|
|
353
|
-
|
|
354
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, InteractionType.Redirect, request);
|
|
355
|
-
}
|
|
356
|
-
else {
|
|
357
|
-
this.eventHandler.emitEvent(EventType.LOGIN_START, InteractionType.Redirect, request);
|
|
358
|
-
}
|
|
337
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, InteractionType.Redirect, request);
|
|
359
338
|
let result;
|
|
360
339
|
if (this.platformAuthProvider &&
|
|
361
340
|
this.canUsePlatformBroker(request)) {
|
|
@@ -363,18 +342,14 @@ class StandardController {
|
|
|
363
342
|
result = nativeClient
|
|
364
343
|
.acquireTokenRedirect(request, atrMeasurement)
|
|
365
344
|
.catch((e) => {
|
|
366
|
-
atrMeasurement.add({
|
|
367
|
-
brokerErrorName: e.name,
|
|
368
|
-
brokerErrorCode: e.errorCode,
|
|
369
|
-
});
|
|
370
345
|
if (e instanceof NativeAuthError &&
|
|
371
346
|
isFatalNativeAuthError(e)) {
|
|
372
|
-
this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt
|
|
347
|
+
this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt
|
|
373
348
|
const redirectClient = this.createRedirectClient(correlationId);
|
|
374
349
|
return redirectClient.acquireToken(request);
|
|
375
350
|
}
|
|
376
351
|
else if (e instanceof InteractionRequiredAuthError) {
|
|
377
|
-
this.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow");
|
|
352
|
+
this.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow", correlationId);
|
|
378
353
|
const redirectClient = this.createRedirectClient(correlationId);
|
|
379
354
|
return redirectClient.acquireToken(request);
|
|
380
355
|
}
|
|
@@ -388,25 +363,20 @@ class StandardController {
|
|
|
388
363
|
return await result;
|
|
389
364
|
}
|
|
390
365
|
catch (e) {
|
|
391
|
-
this.browserStorage.resetRequestCache();
|
|
366
|
+
this.browserStorage.resetRequestCache(correlationId);
|
|
392
367
|
/*
|
|
393
368
|
* Pre-redirect event completes before navigation occurs.
|
|
394
369
|
* Timed out navigation needs to be instrumented separately as a post-redirect event.
|
|
395
370
|
*/
|
|
396
371
|
if (atrMeasurement.event.status === 2) {
|
|
397
372
|
this.performanceClient
|
|
398
|
-
.startMeasurement(
|
|
399
|
-
.end({ success: false }, e
|
|
373
|
+
.startMeasurement(AcquireTokenRedirect, correlationId)
|
|
374
|
+
.end({ success: false }, e);
|
|
400
375
|
}
|
|
401
376
|
else {
|
|
402
|
-
atrMeasurement.end({ success: false }, e
|
|
403
|
-
}
|
|
404
|
-
if (isLoggedIn) {
|
|
405
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, InteractionType.Redirect, null, e);
|
|
406
|
-
}
|
|
407
|
-
else {
|
|
408
|
-
this.eventHandler.emitEvent(EventType.LOGIN_FAILURE, InteractionType.Redirect, null, e);
|
|
377
|
+
atrMeasurement.end({ success: false }, e);
|
|
409
378
|
}
|
|
379
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, InteractionType.Redirect, null, e);
|
|
410
380
|
throw e;
|
|
411
381
|
}
|
|
412
382
|
}
|
|
@@ -421,13 +391,14 @@ class StandardController {
|
|
|
421
391
|
*/
|
|
422
392
|
acquireTokenPopup(request) {
|
|
423
393
|
const correlationId = this.getRequestCorrelationId(request);
|
|
424
|
-
const atPopupMeasurement = this.performanceClient.startMeasurement(
|
|
394
|
+
const atPopupMeasurement = this.performanceClient.startMeasurement(AcquireTokenPopup, correlationId);
|
|
425
395
|
atPopupMeasurement.add({
|
|
426
396
|
scenarioId: request.scenarioId,
|
|
397
|
+
accountType: getAccountType(request.account),
|
|
427
398
|
});
|
|
428
399
|
try {
|
|
429
400
|
this.logger.verbose("acquireTokenPopup called", correlationId);
|
|
430
|
-
preflightCheck(this.initialized, atPopupMeasurement
|
|
401
|
+
preflightCheck(this.initialized, atPopupMeasurement);
|
|
431
402
|
this.browserStorage.setInteractionInProgress(true, INTERACTION_TYPE.SIGNIN);
|
|
432
403
|
}
|
|
433
404
|
catch (e) {
|
|
@@ -436,18 +407,10 @@ class StandardController {
|
|
|
436
407
|
}
|
|
437
408
|
// If logged in, emit acquire token events
|
|
438
409
|
const loggedInAccounts = this.getAllAccounts();
|
|
439
|
-
|
|
440
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, InteractionType.Popup, request);
|
|
441
|
-
}
|
|
442
|
-
else {
|
|
443
|
-
this.eventHandler.emitEvent(EventType.LOGIN_START, InteractionType.Popup, request);
|
|
444
|
-
}
|
|
410
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, InteractionType.Popup, request);
|
|
445
411
|
let result;
|
|
446
412
|
const pkce = this.getPreGeneratedPkceCodes(correlationId);
|
|
447
413
|
if (this.canUsePlatformBroker(request)) {
|
|
448
|
-
atPopupMeasurement.add({
|
|
449
|
-
isPlatformBrokerRequest: true,
|
|
450
|
-
});
|
|
451
414
|
result = this.acquireTokenNative({
|
|
452
415
|
...request,
|
|
453
416
|
correlationId,
|
|
@@ -455,22 +418,20 @@ class StandardController {
|
|
|
455
418
|
.then((response) => {
|
|
456
419
|
atPopupMeasurement.end({
|
|
457
420
|
success: true,
|
|
458
|
-
|
|
421
|
+
isNativeBroker: true,
|
|
422
|
+
accountType: getAccountType(response.account),
|
|
423
|
+
});
|
|
459
424
|
return response;
|
|
460
425
|
})
|
|
461
426
|
.catch((e) => {
|
|
462
|
-
atPopupMeasurement.add({
|
|
463
|
-
brokerErrorName: e.name,
|
|
464
|
-
brokerErrorCode: e.errorCode,
|
|
465
|
-
});
|
|
466
427
|
if (e instanceof NativeAuthError &&
|
|
467
428
|
isFatalNativeAuthError(e)) {
|
|
468
|
-
this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to
|
|
429
|
+
this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt
|
|
469
430
|
const popupClient = this.createPopupClient(correlationId);
|
|
470
431
|
return popupClient.acquireToken(request, pkce);
|
|
471
432
|
}
|
|
472
433
|
else if (e instanceof InteractionRequiredAuthError) {
|
|
473
|
-
this.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow");
|
|
434
|
+
this.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow", correlationId);
|
|
474
435
|
const popupClient = this.createPopupClient(correlationId);
|
|
475
436
|
return popupClient.acquireToken(request, pkce);
|
|
476
437
|
}
|
|
@@ -487,35 +448,29 @@ class StandardController {
|
|
|
487
448
|
* If logged in, emit acquire token events
|
|
488
449
|
*/
|
|
489
450
|
const isLoggingIn = loggedInAccounts.length < this.getAllAccounts().length;
|
|
451
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, InteractionType.Popup, result);
|
|
490
452
|
if (isLoggingIn) {
|
|
491
|
-
this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, InteractionType.Popup, result);
|
|
492
|
-
}
|
|
493
|
-
else {
|
|
494
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, InteractionType.Popup, result);
|
|
453
|
+
this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, InteractionType.Popup, result.account);
|
|
495
454
|
}
|
|
496
455
|
atPopupMeasurement.end({
|
|
497
456
|
success: true,
|
|
498
457
|
accessTokenSize: result.accessToken.length,
|
|
499
458
|
idTokenSize: result.idToken.length,
|
|
500
|
-
|
|
459
|
+
accountType: getAccountType(result.account),
|
|
460
|
+
});
|
|
501
461
|
return result;
|
|
502
462
|
})
|
|
503
463
|
.catch((e) => {
|
|
504
|
-
|
|
505
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, InteractionType.Popup, null, e);
|
|
506
|
-
}
|
|
507
|
-
else {
|
|
508
|
-
this.eventHandler.emitEvent(EventType.LOGIN_FAILURE, InteractionType.Popup, null, e);
|
|
509
|
-
}
|
|
464
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, InteractionType.Popup, null, e);
|
|
510
465
|
atPopupMeasurement.end({
|
|
511
466
|
success: false,
|
|
512
|
-
}, e
|
|
467
|
+
}, e);
|
|
513
468
|
// Since this function is syncronous we need to reject
|
|
514
469
|
return Promise.reject(e);
|
|
515
470
|
})
|
|
516
471
|
.finally(async () => {
|
|
517
472
|
this.browserStorage.setInteractionInProgress(false);
|
|
518
|
-
if (this.config.system.
|
|
473
|
+
if (!this.config.system.navigatePopups) {
|
|
519
474
|
await this.preGeneratePkceCodes(correlationId);
|
|
520
475
|
}
|
|
521
476
|
});
|
|
@@ -526,7 +481,6 @@ class StandardController {
|
|
|
526
481
|
if (!measurement) {
|
|
527
482
|
return;
|
|
528
483
|
}
|
|
529
|
-
this.logger.info("Perf: Visibility change detected in ", measurement.event.name);
|
|
530
484
|
measurement.increment({
|
|
531
485
|
visibilityChangeCount: 1,
|
|
532
486
|
});
|
|
@@ -556,27 +510,22 @@ class StandardController {
|
|
|
556
510
|
prompt: request.prompt,
|
|
557
511
|
correlationId: correlationId,
|
|
558
512
|
};
|
|
559
|
-
this.ssoSilentMeasurement = this.performanceClient.startMeasurement(
|
|
513
|
+
this.ssoSilentMeasurement = this.performanceClient.startMeasurement(SsoSilent, correlationId);
|
|
560
514
|
this.ssoSilentMeasurement?.add({
|
|
561
515
|
scenarioId: request.scenarioId,
|
|
516
|
+
accountType: getAccountType(request.account),
|
|
562
517
|
});
|
|
563
|
-
preflightCheck(this.initialized, this.ssoSilentMeasurement
|
|
518
|
+
preflightCheck(this.initialized, this.ssoSilentMeasurement);
|
|
564
519
|
this.ssoSilentMeasurement?.increment({
|
|
565
520
|
visibilityChangeCount: 0,
|
|
566
521
|
});
|
|
567
522
|
document.addEventListener("visibilitychange", this.trackPageVisibilityWithMeasurement);
|
|
523
|
+
const loggedInAccounts = this.getAllAccounts();
|
|
568
524
|
this.logger.verbose("ssoSilent called", correlationId);
|
|
569
|
-
this.eventHandler.emitEvent(EventType.
|
|
525
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, InteractionType.Silent, validRequest);
|
|
570
526
|
let result;
|
|
571
527
|
if (this.canUsePlatformBroker(validRequest)) {
|
|
572
|
-
this.ssoSilentMeasurement?.add({
|
|
573
|
-
isPlatformBrokerRequest: true,
|
|
574
|
-
});
|
|
575
528
|
result = this.acquireTokenNative(validRequest, ApiId.ssoSilent).catch((e) => {
|
|
576
|
-
this.ssoSilentMeasurement?.add({
|
|
577
|
-
brokerErrorName: e.name,
|
|
578
|
-
brokerErrorCode: e.errorCode,
|
|
579
|
-
});
|
|
580
529
|
// If native token acquisition fails for availability reasons fallback to standard flow
|
|
581
530
|
if (e instanceof NativeAuthError && isFatalNativeAuthError(e)) {
|
|
582
531
|
this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt
|
|
@@ -592,19 +541,25 @@ class StandardController {
|
|
|
592
541
|
}
|
|
593
542
|
return result
|
|
594
543
|
.then((response) => {
|
|
595
|
-
this.
|
|
544
|
+
const isLoggingIn = loggedInAccounts.length < this.getAllAccounts().length;
|
|
545
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, InteractionType.Silent, response);
|
|
546
|
+
if (isLoggingIn) {
|
|
547
|
+
this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, InteractionType.Silent, response.account);
|
|
548
|
+
}
|
|
596
549
|
this.ssoSilentMeasurement?.end({
|
|
597
550
|
success: true,
|
|
551
|
+
isNativeBroker: response.fromPlatformBroker,
|
|
598
552
|
accessTokenSize: response.accessToken.length,
|
|
599
553
|
idTokenSize: response.idToken.length,
|
|
600
|
-
|
|
554
|
+
accountType: getAccountType(response.account),
|
|
555
|
+
});
|
|
601
556
|
return response;
|
|
602
557
|
})
|
|
603
558
|
.catch((e) => {
|
|
604
|
-
this.eventHandler.emitEvent(EventType.
|
|
559
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, InteractionType.Silent, null, e);
|
|
605
560
|
this.ssoSilentMeasurement?.end({
|
|
606
561
|
success: false,
|
|
607
|
-
}, e
|
|
562
|
+
}, e);
|
|
608
563
|
throw e;
|
|
609
564
|
})
|
|
610
565
|
.finally(() => {
|
|
@@ -624,9 +579,9 @@ class StandardController {
|
|
|
624
579
|
async acquireTokenByCode(request) {
|
|
625
580
|
const correlationId = this.getRequestCorrelationId(request);
|
|
626
581
|
this.logger.trace("acquireTokenByCode called", correlationId);
|
|
627
|
-
const atbcMeasurement = this.performanceClient.startMeasurement(
|
|
582
|
+
const atbcMeasurement = this.performanceClient.startMeasurement(AcquireTokenByCode, correlationId);
|
|
628
583
|
preflightCheck(this.initialized, atbcMeasurement);
|
|
629
|
-
this.eventHandler.emitEvent(EventType.
|
|
584
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, InteractionType.Silent, request);
|
|
630
585
|
atbcMeasurement.add({ scenarioId: request.scenarioId });
|
|
631
586
|
try {
|
|
632
587
|
if (request.code && request.nativeAccountId) {
|
|
@@ -643,18 +598,20 @@ class StandardController {
|
|
|
643
598
|
correlationId,
|
|
644
599
|
})
|
|
645
600
|
.then((result) => {
|
|
646
|
-
this.eventHandler.emitEvent(EventType.
|
|
601
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, InteractionType.Silent, result);
|
|
647
602
|
this.hybridAuthCodeResponses.delete(hybridAuthCode);
|
|
648
603
|
atbcMeasurement.end({
|
|
649
604
|
success: true,
|
|
605
|
+
isNativeBroker: result.fromPlatformBroker,
|
|
650
606
|
accessTokenSize: result.accessToken.length,
|
|
651
607
|
idTokenSize: result.idToken.length,
|
|
652
|
-
|
|
608
|
+
accountType: getAccountType(result.account),
|
|
609
|
+
});
|
|
653
610
|
return result;
|
|
654
611
|
})
|
|
655
612
|
.catch((error) => {
|
|
656
613
|
this.hybridAuthCodeResponses.delete(hybridAuthCode);
|
|
657
|
-
this.eventHandler.emitEvent(EventType.
|
|
614
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, InteractionType.Silent, null, error);
|
|
658
615
|
atbcMeasurement.end({
|
|
659
616
|
success: false,
|
|
660
617
|
}, error);
|
|
@@ -670,9 +627,6 @@ class StandardController {
|
|
|
670
627
|
}
|
|
671
628
|
else if (request.nativeAccountId) {
|
|
672
629
|
if (this.canUsePlatformBroker(request, request.nativeAccountId)) {
|
|
673
|
-
atbcMeasurement.add({
|
|
674
|
-
isPlatformBrokerRequest: true,
|
|
675
|
-
});
|
|
676
630
|
const result = await this.acquireTokenNative({
|
|
677
631
|
...request,
|
|
678
632
|
correlationId,
|
|
@@ -682,15 +636,12 @@ class StandardController {
|
|
|
682
636
|
isFatalNativeAuthError(e)) {
|
|
683
637
|
this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt
|
|
684
638
|
}
|
|
685
|
-
atbcMeasurement.add({
|
|
686
|
-
brokerErrorName: e.name,
|
|
687
|
-
brokerErrorCode: e.errorCode,
|
|
688
|
-
});
|
|
689
639
|
throw e;
|
|
690
640
|
});
|
|
691
641
|
atbcMeasurement.end({
|
|
642
|
+
accountType: getAccountType(result.account),
|
|
692
643
|
success: true,
|
|
693
|
-
}
|
|
644
|
+
});
|
|
694
645
|
return result;
|
|
695
646
|
}
|
|
696
647
|
else {
|
|
@@ -702,7 +653,7 @@ class StandardController {
|
|
|
702
653
|
}
|
|
703
654
|
}
|
|
704
655
|
catch (e) {
|
|
705
|
-
this.eventHandler.emitEvent(EventType.
|
|
656
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, InteractionType.Silent, null, e);
|
|
706
657
|
atbcMeasurement.end({
|
|
707
658
|
success: false,
|
|
708
659
|
}, e);
|
|
@@ -715,20 +666,22 @@ class StandardController {
|
|
|
715
666
|
* @returns Result of the operation to redeem the authorization code
|
|
716
667
|
*/
|
|
717
668
|
async acquireTokenByCodeAsync(request) {
|
|
718
|
-
this.
|
|
669
|
+
const correlationId = this.getRequestCorrelationId(request);
|
|
670
|
+
this.logger.trace("acquireTokenByCodeAsync called", correlationId);
|
|
719
671
|
this.acquireTokenByCodeAsyncMeasurement =
|
|
720
|
-
this.performanceClient.startMeasurement(
|
|
672
|
+
this.performanceClient.startMeasurement(AcquireTokenByCodeAsync, correlationId);
|
|
721
673
|
this.acquireTokenByCodeAsyncMeasurement?.increment({
|
|
722
674
|
visibilityChangeCount: 0,
|
|
723
675
|
});
|
|
724
676
|
document.addEventListener("visibilitychange", this.trackPageVisibilityWithMeasurement);
|
|
725
|
-
const silentAuthCodeClient = this.createSilentAuthCodeClient(
|
|
677
|
+
const silentAuthCodeClient = this.createSilentAuthCodeClient(correlationId);
|
|
726
678
|
const silentTokenResult = await silentAuthCodeClient
|
|
727
679
|
.acquireToken(request)
|
|
728
680
|
.then((response) => {
|
|
729
681
|
this.acquireTokenByCodeAsyncMeasurement?.end({
|
|
730
682
|
success: true,
|
|
731
683
|
fromCache: response.fromCache,
|
|
684
|
+
isNativeBroker: response.fromPlatformBroker,
|
|
732
685
|
});
|
|
733
686
|
return response;
|
|
734
687
|
})
|
|
@@ -751,13 +704,12 @@ class StandardController {
|
|
|
751
704
|
* @returns A promise that, when resolved, returns the access token
|
|
752
705
|
*/
|
|
753
706
|
async acquireTokenFromCache(commonRequest, cacheLookupPolicy) {
|
|
754
|
-
this.performanceClient.addQueueMeasurement(PerformanceEvents.AcquireTokenFromCache, commonRequest.correlationId);
|
|
755
707
|
switch (cacheLookupPolicy) {
|
|
756
708
|
case CacheLookupPolicy.Default:
|
|
757
709
|
case CacheLookupPolicy.AccessToken:
|
|
758
710
|
case CacheLookupPolicy.AccessTokenAndRefreshToken:
|
|
759
711
|
const silentCacheClient = this.createSilentCacheClient(commonRequest.correlationId);
|
|
760
|
-
return invokeAsync(silentCacheClient.acquireToken.bind(silentCacheClient),
|
|
712
|
+
return invokeAsync(silentCacheClient.acquireToken.bind(silentCacheClient), SilentCacheClientAcquireToken, this.logger, this.performanceClient, commonRequest.correlationId)(commonRequest);
|
|
761
713
|
default:
|
|
762
714
|
throw createClientAuthError(ClientAuthErrorCodes.tokenRefreshRequired);
|
|
763
715
|
}
|
|
@@ -769,14 +721,13 @@ class StandardController {
|
|
|
769
721
|
* @returns A promise that, when resolved, returns the access token
|
|
770
722
|
*/
|
|
771
723
|
async acquireTokenByRefreshToken(commonRequest, cacheLookupPolicy) {
|
|
772
|
-
this.performanceClient.addQueueMeasurement(PerformanceEvents.AcquireTokenByRefreshToken, commonRequest.correlationId);
|
|
773
724
|
switch (cacheLookupPolicy) {
|
|
774
725
|
case CacheLookupPolicy.Default:
|
|
775
726
|
case CacheLookupPolicy.AccessTokenAndRefreshToken:
|
|
776
727
|
case CacheLookupPolicy.RefreshToken:
|
|
777
728
|
case CacheLookupPolicy.RefreshTokenAndNetwork:
|
|
778
729
|
const silentRefreshClient = this.createSilentRefreshClient(commonRequest.correlationId);
|
|
779
|
-
return invokeAsync(silentRefreshClient.acquireToken.bind(silentRefreshClient),
|
|
730
|
+
return invokeAsync(silentRefreshClient.acquireToken.bind(silentRefreshClient), SilentRefreshClientAcquireToken, this.logger, this.performanceClient, commonRequest.correlationId)(commonRequest);
|
|
780
731
|
default:
|
|
781
732
|
throw createClientAuthError(ClientAuthErrorCodes.tokenRefreshRequired);
|
|
782
733
|
}
|
|
@@ -787,25 +738,11 @@ class StandardController {
|
|
|
787
738
|
* @returns A promise that, when resolved, returns the access token
|
|
788
739
|
*/
|
|
789
740
|
async acquireTokenBySilentIframe(request) {
|
|
790
|
-
this.performanceClient.addQueueMeasurement(PerformanceEvents.AcquireTokenBySilentIframe, request.correlationId);
|
|
791
741
|
const silentIframeClient = this.createSilentIframeClient(request.correlationId);
|
|
792
|
-
return invokeAsync(silentIframeClient.acquireToken.bind(silentIframeClient),
|
|
742
|
+
return invokeAsync(silentIframeClient.acquireToken.bind(silentIframeClient), SilentIframeClientAcquireToken, this.logger, this.performanceClient, request.correlationId)(request);
|
|
793
743
|
}
|
|
794
744
|
// #endregion
|
|
795
745
|
// #region Logout
|
|
796
|
-
/**
|
|
797
|
-
* Deprecated logout function. Use logoutRedirect or logoutPopup instead
|
|
798
|
-
* @param logoutRequest
|
|
799
|
-
* @deprecated
|
|
800
|
-
*/
|
|
801
|
-
async logout(logoutRequest) {
|
|
802
|
-
const correlationId = this.getRequestCorrelationId(logoutRequest);
|
|
803
|
-
this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.", correlationId);
|
|
804
|
-
return this.logoutRedirect({
|
|
805
|
-
correlationId,
|
|
806
|
-
...logoutRequest,
|
|
807
|
-
});
|
|
808
|
-
}
|
|
809
746
|
/**
|
|
810
747
|
* Use to log out the current user, and redirect the user to the postLogoutRedirectUri.
|
|
811
748
|
* Default behaviour is to redirect the user to `window.location.href`.
|
|
@@ -843,7 +780,6 @@ class StandardController {
|
|
|
843
780
|
*/
|
|
844
781
|
async clearCache(logoutRequest) {
|
|
845
782
|
if (!this.isBrowserEnvironment) {
|
|
846
|
-
this.logger.info("in non-browser environment, returning early.");
|
|
847
783
|
return;
|
|
848
784
|
}
|
|
849
785
|
const correlationId = this.getRequestCorrelationId(logoutRequest);
|
|
@@ -858,8 +794,7 @@ class StandardController {
|
|
|
858
794
|
* @returns Array of AccountInfo objects in cache
|
|
859
795
|
*/
|
|
860
796
|
getAllAccounts(accountFilter) {
|
|
861
|
-
|
|
862
|
-
return getAllAccounts(this.logger, this.browserStorage, this.isBrowserEnvironment, correlationId, accountFilter);
|
|
797
|
+
return getAllAccounts(this.logger, this.browserStorage, this.isBrowserEnvironment, this.getRequestCorrelationId(), accountFilter);
|
|
863
798
|
}
|
|
864
799
|
/**
|
|
865
800
|
* Returns the first account found in the cache that matches the account filter passed in.
|
|
@@ -867,8 +802,7 @@ class StandardController {
|
|
|
867
802
|
* @returns The first account found in the cache matching the provided filter or null if no account could be found.
|
|
868
803
|
*/
|
|
869
804
|
getAccount(accountFilter) {
|
|
870
|
-
|
|
871
|
-
return getAccount(accountFilter, this.logger, this.browserStorage, correlationId);
|
|
805
|
+
return getAccount(accountFilter, this.logger, this.browserStorage, this.getRequestCorrelationId());
|
|
872
806
|
}
|
|
873
807
|
/**
|
|
874
808
|
* Returns the signed in account matching username.
|
|
@@ -879,8 +813,7 @@ class StandardController {
|
|
|
879
813
|
* @returns The account object stored in MSAL
|
|
880
814
|
*/
|
|
881
815
|
getAccountByUsername(username) {
|
|
882
|
-
|
|
883
|
-
return getAccountByUsername(username, this.logger, this.browserStorage, correlationId);
|
|
816
|
+
return getAccountByUsername(username, this.logger, this.browserStorage, this.getRequestCorrelationId());
|
|
884
817
|
}
|
|
885
818
|
/**
|
|
886
819
|
* Returns the signed in account matching homeAccountId.
|
|
@@ -890,8 +823,7 @@ class StandardController {
|
|
|
890
823
|
* @returns The account object stored in MSAL
|
|
891
824
|
*/
|
|
892
825
|
getAccountByHomeId(homeAccountId) {
|
|
893
|
-
|
|
894
|
-
return getAccountByHomeId(homeAccountId, this.logger, this.browserStorage, correlationId);
|
|
826
|
+
return getAccountByHomeId(homeAccountId, this.logger, this.browserStorage, this.getRequestCorrelationId());
|
|
895
827
|
}
|
|
896
828
|
/**
|
|
897
829
|
* Returns the signed in account matching localAccountId.
|
|
@@ -901,23 +833,20 @@ class StandardController {
|
|
|
901
833
|
* @returns The account object stored in MSAL
|
|
902
834
|
*/
|
|
903
835
|
getAccountByLocalId(localAccountId) {
|
|
904
|
-
|
|
905
|
-
return getAccountByLocalId(localAccountId, this.logger, this.browserStorage, correlationId);
|
|
836
|
+
return getAccountByLocalId(localAccountId, this.logger, this.browserStorage, this.getRequestCorrelationId());
|
|
906
837
|
}
|
|
907
838
|
/**
|
|
908
839
|
* Sets the account to use as the active account. If no account is passed to the acquireToken APIs, then MSAL will use this active account.
|
|
909
840
|
* @param account
|
|
910
841
|
*/
|
|
911
842
|
setActiveAccount(account) {
|
|
912
|
-
|
|
913
|
-
setActiveAccount(account, this.browserStorage, correlationId);
|
|
843
|
+
setActiveAccount(account, this.browserStorage, this.getRequestCorrelationId());
|
|
914
844
|
}
|
|
915
845
|
/**
|
|
916
846
|
* Gets the currently active account
|
|
917
847
|
*/
|
|
918
848
|
getActiveAccount() {
|
|
919
|
-
|
|
920
|
-
return getActiveAccount(this.browserStorage, correlationId);
|
|
849
|
+
return getActiveAccount(this.browserStorage, this.getRequestCorrelationId());
|
|
921
850
|
}
|
|
922
851
|
// #endregion
|
|
923
852
|
/**
|
|
@@ -927,12 +856,12 @@ class StandardController {
|
|
|
927
856
|
* @returns
|
|
928
857
|
*/
|
|
929
858
|
async hydrateCache(result, request) {
|
|
930
|
-
this.logger.verbose("hydrateCache called");
|
|
859
|
+
this.logger.verbose("hydrateCache called", result.correlationId);
|
|
931
860
|
// Account gets saved to browser storage regardless of native or not
|
|
932
|
-
const accountEntity =
|
|
861
|
+
const accountEntity = AccountEntityUtils.createAccountEntityFromAccountInfo(result.account, result.cloudGraphHostName, result.msGraphHost);
|
|
933
862
|
await this.browserStorage.setAccount(accountEntity, result.correlationId);
|
|
934
|
-
if (result.
|
|
935
|
-
this.logger.verbose("Response was from native broker, storing in-memory");
|
|
863
|
+
if (result.fromPlatformBroker) {
|
|
864
|
+
this.logger.verbose("Response was from native broker, storing in-memory", result.correlationId);
|
|
936
865
|
// Tokens from native broker are stored in-memory
|
|
937
866
|
return this.nativeInternalStorage.hydrateCache(result, request);
|
|
938
867
|
}
|
|
@@ -946,11 +875,12 @@ class StandardController {
|
|
|
946
875
|
* @param request
|
|
947
876
|
*/
|
|
948
877
|
async acquireTokenNative(request, apiId, accountId, cacheLookupPolicy) {
|
|
949
|
-
this.
|
|
878
|
+
const correlationId = this.getRequestCorrelationId(request);
|
|
879
|
+
this.logger.trace("acquireTokenNative called", correlationId);
|
|
950
880
|
if (!this.platformAuthProvider) {
|
|
951
881
|
throw createBrowserAuthError(nativeConnectionNotEstablished);
|
|
952
882
|
}
|
|
953
|
-
const nativeClient = new PlatformAuthInteractionClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, apiId, this.performanceClient, this.platformAuthProvider, accountId || this.getNativeAccountId(request), this.nativeInternalStorage,
|
|
883
|
+
const nativeClient = new PlatformAuthInteractionClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, apiId, this.performanceClient, this.platformAuthProvider, accountId || this.getNativeAccountId(request), this.nativeInternalStorage, correlationId);
|
|
954
884
|
return nativeClient.acquireToken(request, cacheLookupPolicy);
|
|
955
885
|
}
|
|
956
886
|
/**
|
|
@@ -958,30 +888,30 @@ class StandardController {
|
|
|
958
888
|
* @param request
|
|
959
889
|
*/
|
|
960
890
|
canUsePlatformBroker(request, accountId) {
|
|
961
|
-
this.
|
|
891
|
+
const correlationId = this.getRequestCorrelationId(request);
|
|
892
|
+
this.logger.trace("canUsePlatformBroker called", correlationId);
|
|
962
893
|
if (!this.platformAuthProvider) {
|
|
963
|
-
this.logger.trace("canUsePlatformBroker: platform broker unavilable, returning false");
|
|
894
|
+
this.logger.trace("canUsePlatformBroker: platform broker unavilable, returning false", correlationId);
|
|
964
895
|
return false;
|
|
965
896
|
}
|
|
966
|
-
if (!isPlatformAuthAllowed(this.config, this.logger, this.platformAuthProvider, request.authenticationScheme)) {
|
|
967
|
-
this.logger.trace("canUsePlatformBroker: isBrokerAvailable returned false, returning false");
|
|
897
|
+
if (!isPlatformAuthAllowed(this.config, this.logger, correlationId, this.platformAuthProvider, request.authenticationScheme)) {
|
|
898
|
+
this.logger.trace("canUsePlatformBroker: isBrokerAvailable returned false, returning false", correlationId);
|
|
968
899
|
return false;
|
|
969
900
|
}
|
|
970
901
|
if (request.prompt) {
|
|
971
902
|
switch (request.prompt) {
|
|
972
|
-
case PromptValue.NONE:
|
|
973
|
-
case PromptValue.CONSENT:
|
|
974
|
-
case PromptValue.LOGIN:
|
|
975
|
-
|
|
976
|
-
this.logger.trace("canUsePlatformBroker: prompt is compatible with platform broker flow");
|
|
903
|
+
case Constants.PromptValue.NONE:
|
|
904
|
+
case Constants.PromptValue.CONSENT:
|
|
905
|
+
case Constants.PromptValue.LOGIN:
|
|
906
|
+
this.logger.trace("canUsePlatformBroker: prompt is compatible with platform broker flow", correlationId);
|
|
977
907
|
break;
|
|
978
908
|
default:
|
|
979
|
-
this.logger.trace(`canUsePlatformBroker: prompt = ${request.prompt} is not compatible with platform broker flow, returning false
|
|
909
|
+
this.logger.trace(`canUsePlatformBroker: prompt = '${request.prompt}' is not compatible with platform broker flow, returning false`, correlationId);
|
|
980
910
|
return false;
|
|
981
911
|
}
|
|
982
912
|
}
|
|
983
913
|
if (!accountId && !this.getNativeAccountId(request)) {
|
|
984
|
-
this.logger.trace("canUsePlatformBroker: nativeAccountId is not available, returning false");
|
|
914
|
+
this.logger.trace("canUsePlatformBroker: nativeAccountId is not available, returning false", correlationId);
|
|
985
915
|
return false;
|
|
986
916
|
}
|
|
987
917
|
return true;
|
|
@@ -1005,39 +935,39 @@ class StandardController {
|
|
|
1005
935
|
* @param correlationId
|
|
1006
936
|
*/
|
|
1007
937
|
createPopupClient(correlationId) {
|
|
1008
|
-
return new PopupClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.performanceClient, this.nativeInternalStorage, this.platformAuthProvider
|
|
938
|
+
return new PopupClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.performanceClient, this.nativeInternalStorage, correlationId, this.platformAuthProvider);
|
|
1009
939
|
}
|
|
1010
940
|
/**
|
|
1011
941
|
* Returns new instance of the Redirect Interaction Client
|
|
1012
942
|
* @param correlationId
|
|
1013
943
|
*/
|
|
1014
944
|
createRedirectClient(correlationId) {
|
|
1015
|
-
return new RedirectClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.performanceClient, this.nativeInternalStorage, this.platformAuthProvider
|
|
945
|
+
return new RedirectClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.performanceClient, this.nativeInternalStorage, correlationId, this.platformAuthProvider);
|
|
1016
946
|
}
|
|
1017
947
|
/**
|
|
1018
948
|
* Returns new instance of the Silent Iframe Interaction Client
|
|
1019
949
|
* @param correlationId
|
|
1020
950
|
*/
|
|
1021
951
|
createSilentIframeClient(correlationId) {
|
|
1022
|
-
return new SilentIframeClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, ApiId.ssoSilent, this.performanceClient, this.nativeInternalStorage, this.platformAuthProvider
|
|
952
|
+
return new SilentIframeClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, ApiId.ssoSilent, this.performanceClient, this.nativeInternalStorage, correlationId, this.platformAuthProvider);
|
|
1023
953
|
}
|
|
1024
954
|
/**
|
|
1025
955
|
* Returns new instance of the Silent Cache Interaction Client
|
|
1026
956
|
*/
|
|
1027
957
|
createSilentCacheClient(correlationId) {
|
|
1028
|
-
return new SilentCacheClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.performanceClient, this.platformAuthProvider
|
|
958
|
+
return new SilentCacheClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.performanceClient, correlationId, this.platformAuthProvider);
|
|
1029
959
|
}
|
|
1030
960
|
/**
|
|
1031
961
|
* Returns new instance of the Silent Refresh Interaction Client
|
|
1032
962
|
*/
|
|
1033
963
|
createSilentRefreshClient(correlationId) {
|
|
1034
|
-
return new SilentRefreshClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.performanceClient, this.platformAuthProvider
|
|
964
|
+
return new SilentRefreshClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.performanceClient, correlationId, this.platformAuthProvider);
|
|
1035
965
|
}
|
|
1036
966
|
/**
|
|
1037
967
|
* Returns new instance of the Silent AuthCode Interaction Client
|
|
1038
968
|
*/
|
|
1039
969
|
createSilentAuthCodeClient(correlationId) {
|
|
1040
|
-
return new SilentAuthCodeClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, ApiId.acquireTokenByCode, this.performanceClient, this.platformAuthProvider
|
|
970
|
+
return new SilentAuthCodeClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, ApiId.acquireTokenByCode, this.performanceClient, correlationId, this.platformAuthProvider);
|
|
1041
971
|
}
|
|
1042
972
|
/**
|
|
1043
973
|
* Adds event callbacks to array
|
|
@@ -1072,36 +1002,6 @@ class StandardController {
|
|
|
1072
1002
|
removePerformanceCallback(callbackId) {
|
|
1073
1003
|
return this.performanceClient.removePerformanceCallback(callbackId);
|
|
1074
1004
|
}
|
|
1075
|
-
/**
|
|
1076
|
-
* Adds event listener that emits an event when a user account is added or removed from localstorage in a different browser tab or window
|
|
1077
|
-
* @deprecated These events will be raised by default and this method will be removed in a future major version.
|
|
1078
|
-
*/
|
|
1079
|
-
enableAccountStorageEvents() {
|
|
1080
|
-
if (this.config.cache.cacheLocation !==
|
|
1081
|
-
BrowserCacheLocation.LocalStorage) {
|
|
1082
|
-
this.logger.info("Account storage events are only available when cacheLocation is set to localStorage");
|
|
1083
|
-
return;
|
|
1084
|
-
}
|
|
1085
|
-
this.eventHandler.subscribeCrossTab();
|
|
1086
|
-
}
|
|
1087
|
-
/**
|
|
1088
|
-
* Removes event listener that emits an event when a user account is added or removed from localstorage in a different browser tab or window
|
|
1089
|
-
* @deprecated These events will be raised by default and this method will be removed in a future major version.
|
|
1090
|
-
*/
|
|
1091
|
-
disableAccountStorageEvents() {
|
|
1092
|
-
if (this.config.cache.cacheLocation !==
|
|
1093
|
-
BrowserCacheLocation.LocalStorage) {
|
|
1094
|
-
this.logger.info("Account storage events are only available when cacheLocation is set to localStorage");
|
|
1095
|
-
return;
|
|
1096
|
-
}
|
|
1097
|
-
this.eventHandler.unsubscribeCrossTab();
|
|
1098
|
-
}
|
|
1099
|
-
/**
|
|
1100
|
-
* Gets the token cache for the application.
|
|
1101
|
-
*/
|
|
1102
|
-
getTokenCache() {
|
|
1103
|
-
return this.tokenCache;
|
|
1104
|
-
}
|
|
1105
1005
|
/**
|
|
1106
1006
|
* Returns the logger instance
|
|
1107
1007
|
*/
|
|
@@ -1167,7 +1067,7 @@ class StandardController {
|
|
|
1167
1067
|
* Included for fallback for non-browser environments,
|
|
1168
1068
|
* and to ensure this method always returns a string.
|
|
1169
1069
|
*/
|
|
1170
|
-
return
|
|
1070
|
+
return "";
|
|
1171
1071
|
}
|
|
1172
1072
|
// #endregion
|
|
1173
1073
|
/**
|
|
@@ -1210,25 +1110,27 @@ class StandardController {
|
|
|
1210
1110
|
*/
|
|
1211
1111
|
async acquireTokenSilent(request) {
|
|
1212
1112
|
const correlationId = this.getRequestCorrelationId(request);
|
|
1213
|
-
const atsMeasurement = this.performanceClient.startMeasurement(
|
|
1113
|
+
const atsMeasurement = this.performanceClient.startMeasurement(AcquireTokenSilent, correlationId);
|
|
1214
1114
|
atsMeasurement.add({
|
|
1215
1115
|
cacheLookupPolicy: request.cacheLookupPolicy,
|
|
1216
1116
|
scenarioId: request.scenarioId,
|
|
1217
1117
|
});
|
|
1218
|
-
preflightCheck(this.initialized, atsMeasurement
|
|
1118
|
+
preflightCheck(this.initialized, atsMeasurement);
|
|
1219
1119
|
this.logger.verbose("acquireTokenSilent called", correlationId);
|
|
1220
1120
|
const account = request.account || this.getActiveAccount();
|
|
1221
1121
|
if (!account) {
|
|
1222
1122
|
throw createBrowserAuthError(noAccountError);
|
|
1223
1123
|
}
|
|
1124
|
+
atsMeasurement.add({ accountType: getAccountType(account) });
|
|
1224
1125
|
return this.acquireTokenSilentDeduped(request, account, correlationId)
|
|
1225
1126
|
.then((result) => {
|
|
1226
1127
|
atsMeasurement.end({
|
|
1227
1128
|
success: true,
|
|
1228
1129
|
fromCache: result.fromCache,
|
|
1130
|
+
isNativeBroker: result.fromPlatformBroker,
|
|
1229
1131
|
accessTokenSize: result.accessToken.length,
|
|
1230
1132
|
idTokenSize: result.idToken.length,
|
|
1231
|
-
}
|
|
1133
|
+
});
|
|
1232
1134
|
return {
|
|
1233
1135
|
...result,
|
|
1234
1136
|
state: request.state,
|
|
@@ -1242,7 +1144,7 @@ class StandardController {
|
|
|
1242
1144
|
}
|
|
1243
1145
|
atsMeasurement.end({
|
|
1244
1146
|
success: false,
|
|
1245
|
-
}, error
|
|
1147
|
+
}, error);
|
|
1246
1148
|
throw error;
|
|
1247
1149
|
});
|
|
1248
1150
|
}
|
|
@@ -1264,7 +1166,7 @@ class StandardController {
|
|
|
1264
1166
|
if (typeof inProgressRequest === "undefined") {
|
|
1265
1167
|
this.logger.verbose("acquireTokenSilent called for the first time, storing active request", correlationId);
|
|
1266
1168
|
this.performanceClient.addFields({ deduped: false }, correlationId);
|
|
1267
|
-
const activeRequest = invokeAsync(this.acquireTokenSilentAsync.bind(this),
|
|
1169
|
+
const activeRequest = invokeAsync(this.acquireTokenSilentAsync.bind(this), AcquireTokenSilentAsync, this.logger, this.performanceClient, correlationId)({
|
|
1268
1170
|
...request,
|
|
1269
1171
|
correlationId,
|
|
1270
1172
|
}, account);
|
|
@@ -1287,13 +1189,12 @@ class StandardController {
|
|
|
1287
1189
|
*/
|
|
1288
1190
|
async acquireTokenSilentAsync(request, account) {
|
|
1289
1191
|
const trackPageVisibility = () => this.trackPageVisibility(request.correlationId);
|
|
1290
|
-
this.performanceClient.addQueueMeasurement(PerformanceEvents.AcquireTokenSilentAsync, request.correlationId);
|
|
1291
1192
|
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, InteractionType.Silent, request);
|
|
1292
1193
|
if (request.correlationId) {
|
|
1293
1194
|
this.performanceClient.incrementFields({ visibilityChangeCount: 0 }, request.correlationId);
|
|
1294
1195
|
}
|
|
1295
1196
|
document.addEventListener("visibilitychange", trackPageVisibility);
|
|
1296
|
-
const silentRequest = await invokeAsync(initializeSilentRequest,
|
|
1197
|
+
const silentRequest = await invokeAsync(initializeSilentRequest, InitializeSilentRequest, this.logger, this.performanceClient, request.correlationId)(request, account, this.config, this.performanceClient, this.logger);
|
|
1297
1198
|
const cacheLookupPolicy = request.cacheLookupPolicy || CacheLookupPolicy.Default;
|
|
1298
1199
|
const result = this.acquireTokenSilentNoIframe(silentRequest, cacheLookupPolicy).catch(async (refreshTokenError) => {
|
|
1299
1200
|
const shouldTryToResolveSilently = checkIfRefreshTokenErrorCanBeResolvedSilently(refreshTokenError, cacheLookupPolicy);
|
|
@@ -1308,7 +1209,7 @@ class StandardController {
|
|
|
1308
1209
|
silentRequest.correlationId,
|
|
1309
1210
|
];
|
|
1310
1211
|
this.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.", silentRequest.correlationId);
|
|
1311
|
-
return invokeAsync(this.acquireTokenBySilentIframe.bind(this),
|
|
1212
|
+
return invokeAsync(this.acquireTokenBySilentIframe.bind(this), AcquireTokenBySilentIframe, this.logger, this.performanceClient, silentRequest.correlationId)(silentRequest)
|
|
1312
1213
|
.then((iframeResult) => {
|
|
1313
1214
|
_resolve(true);
|
|
1314
1215
|
return iframeResult;
|
|
@@ -1323,8 +1224,8 @@ class StandardController {
|
|
|
1323
1224
|
}
|
|
1324
1225
|
else if (cacheLookupPolicy !== CacheLookupPolicy.Skip) {
|
|
1325
1226
|
const [activePromise, activeCorrelationId] = this.activeIframeRequest;
|
|
1326
|
-
this.logger.verbose(`Iframe request is already in progress, awaiting resolution for request with correlationId: ${activeCorrelationId}`, silentRequest.correlationId);
|
|
1327
|
-
const awaitConcurrentIframeMeasure = this.performanceClient.startMeasurement(
|
|
1227
|
+
this.logger.verbose(`Iframe request is already in progress, awaiting resolution for request with correlationId: '${activeCorrelationId}'`, silentRequest.correlationId);
|
|
1228
|
+
const awaitConcurrentIframeMeasure = this.performanceClient.startMeasurement(AwaitConcurrentIframe, silentRequest.correlationId);
|
|
1328
1229
|
awaitConcurrentIframeMeasure.add({
|
|
1329
1230
|
awaitIframeCorrelationId: activeCorrelationId,
|
|
1330
1231
|
});
|
|
@@ -1333,12 +1234,12 @@ class StandardController {
|
|
|
1333
1234
|
success: activePromiseResult,
|
|
1334
1235
|
});
|
|
1335
1236
|
if (activePromiseResult) {
|
|
1336
|
-
this.logger.verbose(`Parallel iframe request with correlationId: ${activeCorrelationId} succeeded. Retrying cache and/or RT redemption`, silentRequest.correlationId);
|
|
1237
|
+
this.logger.verbose(`Parallel iframe request with correlationId: '${activeCorrelationId}' succeeded. Retrying cache and/or RT redemption`, silentRequest.correlationId);
|
|
1337
1238
|
// Retry cache lookup and/or RT exchange after iframe completes
|
|
1338
1239
|
return this.acquireTokenSilentNoIframe(silentRequest, cacheLookupPolicy);
|
|
1339
1240
|
}
|
|
1340
1241
|
else {
|
|
1341
|
-
this.logger.info(`Iframe request with correlationId: ${activeCorrelationId} failed. Interaction is required
|
|
1242
|
+
this.logger.info(`Iframe request with correlationId: '${activeCorrelationId}' failed. Interaction is required.`, silentRequest.correlationId);
|
|
1342
1243
|
// If previous iframe request failed, it's unlikely to succeed this time. Throw original error.
|
|
1343
1244
|
throw refreshTokenError;
|
|
1344
1245
|
}
|
|
@@ -1346,7 +1247,7 @@ class StandardController {
|
|
|
1346
1247
|
else {
|
|
1347
1248
|
// Cache policy set to skip and another iframe request is already in progress
|
|
1348
1249
|
this.logger.warning("Another iframe request is currently in progress and CacheLookupPolicy is set to Skip. This may result in degraded performance and/or reliability for both calls. Please consider changing the CacheLookupPolicy to take advantage of request queuing and token cache.", silentRequest.correlationId);
|
|
1349
|
-
return invokeAsync(this.acquireTokenBySilentIframe.bind(this),
|
|
1250
|
+
return invokeAsync(this.acquireTokenBySilentIframe.bind(this), AcquireTokenBySilentIframe, this.logger, this.performanceClient, silentRequest.correlationId)(silentRequest);
|
|
1350
1251
|
}
|
|
1351
1252
|
}
|
|
1352
1253
|
else {
|
|
@@ -1357,9 +1258,12 @@ class StandardController {
|
|
|
1357
1258
|
return result
|
|
1358
1259
|
.then((response) => {
|
|
1359
1260
|
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, InteractionType.Silent, response);
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1261
|
+
if (request.correlationId) {
|
|
1262
|
+
this.performanceClient.addFields({
|
|
1263
|
+
fromCache: response.fromCache,
|
|
1264
|
+
isNativeBroker: response.fromPlatformBroker,
|
|
1265
|
+
}, request.correlationId);
|
|
1266
|
+
}
|
|
1363
1267
|
return response;
|
|
1364
1268
|
})
|
|
1365
1269
|
.catch((tokenRenewalError) => {
|
|
@@ -1378,18 +1282,13 @@ class StandardController {
|
|
|
1378
1282
|
*/
|
|
1379
1283
|
async acquireTokenSilentNoIframe(silentRequest, cacheLookupPolicy) {
|
|
1380
1284
|
// if the cache policy is set to access_token only, we should not be hitting the native layer yet
|
|
1381
|
-
if (isPlatformAuthAllowed(this.config, this.logger, this.platformAuthProvider, silentRequest.authenticationScheme) &&
|
|
1285
|
+
if (isPlatformAuthAllowed(this.config, this.logger, silentRequest.correlationId, this.platformAuthProvider, silentRequest.authenticationScheme) &&
|
|
1382
1286
|
silentRequest.account.nativeAccountId) {
|
|
1383
|
-
this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform");
|
|
1384
|
-
this.performanceClient.addFields({ isPlatformBrokerRequest: true }, silentRequest.correlationId);
|
|
1287
|
+
this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform", silentRequest.correlationId);
|
|
1385
1288
|
return this.acquireTokenNative(silentRequest, ApiId.acquireTokenSilent_silentFlow, silentRequest.account.nativeAccountId, cacheLookupPolicy).catch(async (e) => {
|
|
1386
|
-
this.performanceClient.addFields({
|
|
1387
|
-
brokerErrorName: e.name,
|
|
1388
|
-
brokerErrorCode: e.errorCode,
|
|
1389
|
-
}, silentRequest.correlationId);
|
|
1390
1289
|
// If native token acquisition fails for availability reasons fallback to web flow
|
|
1391
1290
|
if (e instanceof NativeAuthError && isFatalNativeAuthError(e)) {
|
|
1392
|
-
this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow");
|
|
1291
|
+
this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow", silentRequest.correlationId);
|
|
1393
1292
|
this.platformAuthProvider = undefined; // Prevent future requests from continuing to attempt
|
|
1394
1293
|
// Cache will not contain tokens, given that previous WAM requests succeeded. Skip cache and RT renewal and go straight to iframe renewal
|
|
1395
1294
|
throw createClientAuthError(ClientAuthErrorCodes.tokenRefreshRequired);
|
|
@@ -1398,17 +1297,17 @@ class StandardController {
|
|
|
1398
1297
|
});
|
|
1399
1298
|
}
|
|
1400
1299
|
else {
|
|
1401
|
-
this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow");
|
|
1300
|
+
this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow", silentRequest.correlationId);
|
|
1402
1301
|
// add logs to identify embedded cache retrieval
|
|
1403
1302
|
if (cacheLookupPolicy === CacheLookupPolicy.AccessToken) {
|
|
1404
|
-
this.logger.verbose("acquireTokenSilent - cache lookup policy set to AccessToken, attempting to acquire token from local cache");
|
|
1303
|
+
this.logger.verbose("acquireTokenSilent - cache lookup policy set to AccessToken, attempting to acquire token from local cache", silentRequest.correlationId);
|
|
1405
1304
|
}
|
|
1406
|
-
return invokeAsync(this.acquireTokenFromCache.bind(this),
|
|
1305
|
+
return invokeAsync(this.acquireTokenFromCache.bind(this), AcquireTokenFromCache, this.logger, this.performanceClient, silentRequest.correlationId)(silentRequest, cacheLookupPolicy).catch((cacheError) => {
|
|
1407
1306
|
if (cacheLookupPolicy === CacheLookupPolicy.AccessToken) {
|
|
1408
1307
|
throw cacheError;
|
|
1409
1308
|
}
|
|
1410
1309
|
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_NETWORK_START, InteractionType.Silent, silentRequest);
|
|
1411
|
-
return invokeAsync(this.acquireTokenByRefreshToken.bind(this),
|
|
1310
|
+
return invokeAsync(this.acquireTokenByRefreshToken.bind(this), AcquireTokenByRefreshToken, this.logger, this.performanceClient, silentRequest.correlationId)(silentRequest, cacheLookupPolicy);
|
|
1412
1311
|
});
|
|
1413
1312
|
}
|
|
1414
1313
|
}
|
|
@@ -1417,8 +1316,8 @@ class StandardController {
|
|
|
1417
1316
|
* @param correlationId
|
|
1418
1317
|
*/
|
|
1419
1318
|
async preGeneratePkceCodes(correlationId) {
|
|
1420
|
-
this.logger.verbose("Generating new PKCE codes");
|
|
1421
|
-
this.pkceCode = await invokeAsync(generatePkceCodes,
|
|
1319
|
+
this.logger.verbose("Generating new PKCE codes", correlationId);
|
|
1320
|
+
this.pkceCode = await invokeAsync(generatePkceCodes, GeneratePkceCodes, this.logger, this.performanceClient, correlationId)(this.performanceClient, this.logger, correlationId);
|
|
1422
1321
|
return Promise.resolve();
|
|
1423
1322
|
}
|
|
1424
1323
|
/**
|
|
@@ -1426,14 +1325,14 @@ class StandardController {
|
|
|
1426
1325
|
* @param correlationId
|
|
1427
1326
|
*/
|
|
1428
1327
|
getPreGeneratedPkceCodes(correlationId) {
|
|
1429
|
-
this.logger.verbose("Attempting to pick up pre-generated PKCE codes");
|
|
1328
|
+
this.logger.verbose("Attempting to pick up pre-generated PKCE codes", correlationId);
|
|
1430
1329
|
const res = this.pkceCode ? { ...this.pkceCode } : undefined;
|
|
1431
1330
|
this.pkceCode = undefined;
|
|
1432
|
-
this.logger.verbose(
|
|
1331
|
+
this.logger.verbose(`'${res ? "Found" : "Did not find"}' pre-generated PKCE codes`, correlationId);
|
|
1433
1332
|
this.performanceClient.addFields({ usePreGeneratedPkce: !!res }, correlationId);
|
|
1434
1333
|
return res;
|
|
1435
1334
|
}
|
|
1436
|
-
logMultipleInstances(performanceEvent) {
|
|
1335
|
+
logMultipleInstances(performanceEvent, correlationId) {
|
|
1437
1336
|
const clientId = this.config.auth.clientId;
|
|
1438
1337
|
if (!window)
|
|
1439
1338
|
return;
|
|
@@ -1444,11 +1343,11 @@ class StandardController {
|
|
|
1444
1343
|
// @ts-ignore
|
|
1445
1344
|
const clientIds = window.msal.clientIds;
|
|
1446
1345
|
if (clientIds.length > 0) {
|
|
1447
|
-
this.logger.verbose("There is already an instance of MSAL.js in the window.");
|
|
1346
|
+
this.logger.verbose("There is already an instance of MSAL.js in the window.", correlationId);
|
|
1448
1347
|
}
|
|
1449
1348
|
// @ts-ignore
|
|
1450
1349
|
window.msal.clientIds.push(clientId);
|
|
1451
|
-
collectInstanceStats(clientId, performanceEvent, this.logger);
|
|
1350
|
+
collectInstanceStats(clientId, performanceEvent, this.logger, correlationId);
|
|
1452
1351
|
}
|
|
1453
1352
|
}
|
|
1454
1353
|
/**
|