@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
|
@@ -7,30 +7,29 @@ import { CryptoOps } from "../crypto/CryptoOps.js";
|
|
|
7
7
|
import {
|
|
8
8
|
InteractionRequiredAuthError,
|
|
9
9
|
AccountInfo,
|
|
10
|
-
Constants,
|
|
11
10
|
INetworkModule,
|
|
12
11
|
Logger,
|
|
13
12
|
CommonSilentFlowRequest,
|
|
14
13
|
ICrypto,
|
|
15
14
|
DEFAULT_CRYPTO_IMPLEMENTATION,
|
|
16
15
|
AuthError,
|
|
17
|
-
PerformanceEvents,
|
|
18
16
|
PerformanceCallbackFunction,
|
|
19
17
|
IPerformanceClient,
|
|
20
18
|
BaseAuthRequest,
|
|
21
|
-
PromptValue,
|
|
22
19
|
InProgressPerformanceEvent,
|
|
23
20
|
getRequestThumbprint,
|
|
24
|
-
AccountEntity,
|
|
25
21
|
invokeAsync,
|
|
26
|
-
invoke,
|
|
27
22
|
createClientAuthError,
|
|
28
23
|
ClientAuthErrorCodes,
|
|
29
24
|
AccountFilter,
|
|
30
25
|
buildStaticAuthorityOptions,
|
|
31
26
|
InteractionRequiredAuthErrorCodes,
|
|
32
27
|
PkceCodes,
|
|
28
|
+
AccountEntityUtils,
|
|
29
|
+
Constants,
|
|
33
30
|
} from "@azure/msal-common/browser";
|
|
31
|
+
import * as BrowserPerformanceEvents from "../telemetry/BrowserPerformanceEvents.js";
|
|
32
|
+
import * as BrowserRootPerformanceEvents from "../telemetry/BrowserRootPerformanceEvents.js";
|
|
34
33
|
import {
|
|
35
34
|
BrowserCacheManager,
|
|
36
35
|
DEFAULT_BROWSER_CACHE_MANAGER,
|
|
@@ -62,8 +61,6 @@ import { PopupClient } from "../interaction_client/PopupClient.js";
|
|
|
62
61
|
import { RedirectClient } from "../interaction_client/RedirectClient.js";
|
|
63
62
|
import { SilentIframeClient } from "../interaction_client/SilentIframeClient.js";
|
|
64
63
|
import { SilentRefreshClient } from "../interaction_client/SilentRefreshClient.js";
|
|
65
|
-
import { TokenCache } from "../cache/TokenCache.js";
|
|
66
|
-
import { ITokenCache } from "../cache/ITokenCache.js";
|
|
67
64
|
import { PlatformAuthInteractionClient } from "../interaction_client/PlatformAuthInteractionClient.js";
|
|
68
65
|
import { SilentRequest } from "../request/SilentRequest.js";
|
|
69
66
|
import {
|
|
@@ -80,7 +77,7 @@ import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest.js
|
|
|
80
77
|
import { PlatformAuthRequest } from "../broker/nativeBroker/PlatformAuthRequest.js";
|
|
81
78
|
import { StandardOperatingContext } from "../operatingcontext/StandardOperatingContext.js";
|
|
82
79
|
import { BaseOperatingContext } from "../operatingcontext/BaseOperatingContext.js";
|
|
83
|
-
import { IController } from "./IController.js";
|
|
80
|
+
import { HandleRedirectPromiseOptions, IController } from "./IController.js";
|
|
84
81
|
import { AuthenticationResult } from "../response/AuthenticationResult.js";
|
|
85
82
|
import { ClearCacheRequest } from "../request/ClearCacheRequest.js";
|
|
86
83
|
import { createNewGuid } from "../crypto/BrowserCrypto.js";
|
|
@@ -94,15 +91,30 @@ import {
|
|
|
94
91
|
import { IPlatformAuthHandler } from "../broker/nativeBroker/IPlatformAuthHandler.js";
|
|
95
92
|
import { collectInstanceStats } from "../utils/MsalFrameStatsUtils.js";
|
|
96
93
|
|
|
94
|
+
function getAccountType(
|
|
95
|
+
account?: AccountInfo
|
|
96
|
+
): "AAD" | "MSA" | "B2C" | undefined {
|
|
97
|
+
const idTokenClaims = account?.idTokenClaims;
|
|
98
|
+
if (idTokenClaims?.tfp || idTokenClaims?.acr) {
|
|
99
|
+
return "B2C";
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
if (!idTokenClaims?.tid) {
|
|
103
|
+
return undefined;
|
|
104
|
+
} else if (idTokenClaims?.tid === "9188040d-6c67-4c5b-b112-36a304b66dad") {
|
|
105
|
+
return "MSA";
|
|
106
|
+
}
|
|
107
|
+
return "AAD";
|
|
108
|
+
}
|
|
109
|
+
|
|
97
110
|
function preflightCheck(
|
|
98
111
|
initialized: boolean,
|
|
99
|
-
performanceEvent: InProgressPerformanceEvent
|
|
100
|
-
account?: AccountInfo
|
|
112
|
+
performanceEvent: InProgressPerformanceEvent
|
|
101
113
|
) {
|
|
102
114
|
try {
|
|
103
115
|
BrowserUtils.preflightCheck(initialized);
|
|
104
116
|
} catch (e) {
|
|
105
|
-
performanceEvent.end({ success: false }, e
|
|
117
|
+
performanceEvent.end({ success: false }, e);
|
|
106
118
|
throw e;
|
|
107
119
|
}
|
|
108
120
|
}
|
|
@@ -129,9 +141,6 @@ export class StandardController implements IController {
|
|
|
129
141
|
// Input configuration by developer/user
|
|
130
142
|
protected readonly config: BrowserConfiguration;
|
|
131
143
|
|
|
132
|
-
// Token cache implementation
|
|
133
|
-
private tokenCache: TokenCache;
|
|
134
|
-
|
|
135
144
|
// Logger
|
|
136
145
|
protected logger: Logger;
|
|
137
146
|
|
|
@@ -248,11 +257,6 @@ export class StandardController implements IController {
|
|
|
248
257
|
const nativeCacheOptions: Required<CacheOptions> = {
|
|
249
258
|
cacheLocation: BrowserCacheLocation.MemoryStorage,
|
|
250
259
|
cacheRetentionDays: 5,
|
|
251
|
-
temporaryCacheLocation: BrowserCacheLocation.MemoryStorage,
|
|
252
|
-
storeAuthStateInCookie: false,
|
|
253
|
-
secureCookies: false,
|
|
254
|
-
cacheMigrationEnabled: false,
|
|
255
|
-
claimsBasedCachingEnabled: false,
|
|
256
260
|
};
|
|
257
261
|
this.nativeInternalStorage = new BrowserCacheManager(
|
|
258
262
|
this.config.auth.clientId,
|
|
@@ -263,14 +267,6 @@ export class StandardController implements IController {
|
|
|
263
267
|
this.eventHandler
|
|
264
268
|
);
|
|
265
269
|
|
|
266
|
-
// Initialize the token cache
|
|
267
|
-
this.tokenCache = new TokenCache(
|
|
268
|
-
this.config,
|
|
269
|
-
this.browserStorage,
|
|
270
|
-
this.logger,
|
|
271
|
-
this.browserCrypto
|
|
272
|
-
);
|
|
273
|
-
|
|
274
270
|
this.activeSilentTokenRequests = new Map();
|
|
275
271
|
|
|
276
272
|
// Register listener functions
|
|
@@ -294,7 +290,7 @@ export class StandardController implements IController {
|
|
|
294
290
|
if (!correlationId) {
|
|
295
291
|
return;
|
|
296
292
|
}
|
|
297
|
-
this.logger.info("Perf: Visibility change detected");
|
|
293
|
+
this.logger.info("Perf: Visibility change detected", correlationId);
|
|
298
294
|
this.performanceClient.incrementFields(
|
|
299
295
|
{ visibilityChangeCount: 1 },
|
|
300
296
|
correlationId
|
|
@@ -309,16 +305,21 @@ export class StandardController implements IController {
|
|
|
309
305
|
request?: InitializeApplicationRequest,
|
|
310
306
|
isBroker?: boolean
|
|
311
307
|
): Promise<void> {
|
|
312
|
-
this.
|
|
308
|
+
const correlationId = this.getRequestCorrelationId(request);
|
|
309
|
+
this.logger.trace("initialize called", correlationId);
|
|
313
310
|
if (this.initialized) {
|
|
314
311
|
this.logger.info(
|
|
315
|
-
"initialize has already been called, exiting early."
|
|
312
|
+
"initialize has already been called, exiting early.",
|
|
313
|
+
correlationId
|
|
316
314
|
);
|
|
317
315
|
return;
|
|
318
316
|
}
|
|
319
317
|
|
|
320
318
|
if (!this.isBrowserEnvironment) {
|
|
321
|
-
this.logger.info(
|
|
319
|
+
this.logger.info(
|
|
320
|
+
"in non-browser environment, exiting early.",
|
|
321
|
+
correlationId
|
|
322
|
+
);
|
|
322
323
|
this.initialized = true;
|
|
323
324
|
this.eventHandler.emitEvent(EventType.INITIALIZE_END);
|
|
324
325
|
return;
|
|
@@ -328,7 +329,7 @@ export class StandardController implements IController {
|
|
|
328
329
|
request?.correlationId || this.getRequestCorrelationId();
|
|
329
330
|
const allowPlatformBroker = this.config.system.allowPlatformBroker;
|
|
330
331
|
const initMeasurement = this.performanceClient.startMeasurement(
|
|
331
|
-
|
|
332
|
+
BrowserRootPerformanceEvents.InitializeClientApplication,
|
|
332
333
|
initCorrelationId
|
|
333
334
|
);
|
|
334
335
|
this.eventHandler.emitEvent(EventType.INITIALIZE_START);
|
|
@@ -336,13 +337,13 @@ export class StandardController implements IController {
|
|
|
336
337
|
// Broker applications are initialized twice, so we avoid double-counting it
|
|
337
338
|
if (!isBroker) {
|
|
338
339
|
try {
|
|
339
|
-
this.logMultipleInstances(initMeasurement);
|
|
340
|
+
this.logMultipleInstances(initMeasurement, initCorrelationId);
|
|
340
341
|
} catch {}
|
|
341
342
|
}
|
|
342
343
|
|
|
343
344
|
await invokeAsync(
|
|
344
345
|
this.browserStorage.initialize.bind(this.browserStorage),
|
|
345
|
-
|
|
346
|
+
BrowserPerformanceEvents.InitializeCache,
|
|
346
347
|
this.logger,
|
|
347
348
|
this.performanceClient,
|
|
348
349
|
initCorrelationId
|
|
@@ -358,27 +359,18 @@ export class StandardController implements IController {
|
|
|
358
359
|
this.config.system.nativeBrokerHandshakeTimeout
|
|
359
360
|
);
|
|
360
361
|
} catch (e) {
|
|
361
|
-
this.logger.verbose(e as string);
|
|
362
|
+
this.logger.verbose(e as string, initCorrelationId);
|
|
362
363
|
}
|
|
363
364
|
}
|
|
364
365
|
|
|
365
|
-
if (
|
|
366
|
-
this.
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
invoke(
|
|
371
|
-
this.browserStorage.clearTokensAndKeysWithClaims.bind(
|
|
372
|
-
this.browserStorage
|
|
373
|
-
),
|
|
374
|
-
PerformanceEvents.ClearTokensAndKeysWithClaims,
|
|
375
|
-
this.logger,
|
|
376
|
-
this.performanceClient,
|
|
377
|
-
initCorrelationId
|
|
378
|
-
)(initCorrelationId);
|
|
366
|
+
if (
|
|
367
|
+
this.config.cache.cacheLocation ===
|
|
368
|
+
BrowserCacheLocation.LocalStorage
|
|
369
|
+
) {
|
|
370
|
+
this.eventHandler.subscribeCrossTab();
|
|
379
371
|
}
|
|
380
372
|
|
|
381
|
-
this.config.system.
|
|
373
|
+
!this.config.system.navigatePopups &&
|
|
382
374
|
(await this.preGeneratePkceCodes(initCorrelationId));
|
|
383
375
|
this.initialized = true;
|
|
384
376
|
this.eventHandler.emitEvent(EventType.INITIALIZE_END);
|
|
@@ -395,39 +387,42 @@ export class StandardController implements IController {
|
|
|
395
387
|
* has loaded during redirect flows. This should be invoked on all page loads involved in redirect
|
|
396
388
|
* auth flows.
|
|
397
389
|
* @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.
|
|
390
|
+
* @param options Object containing optional configuration for redirect promise handling.
|
|
398
391
|
* @returns Token response or null. If the return value is null, then no auth redirect was detected.
|
|
399
392
|
*/
|
|
400
393
|
async handleRedirectPromise(
|
|
401
|
-
|
|
394
|
+
options?: HandleRedirectPromiseOptions
|
|
402
395
|
): Promise<AuthenticationResult | null> {
|
|
403
|
-
this.logger.verbose("handleRedirectPromise called");
|
|
396
|
+
this.logger.verbose("handleRedirectPromise called", "");
|
|
404
397
|
// Block token acquisition before initialize has been called
|
|
405
398
|
BrowserUtils.blockAPICallsBeforeInitialize(this.initialized);
|
|
406
|
-
|
|
407
399
|
if (this.isBrowserEnvironment) {
|
|
408
400
|
/**
|
|
409
401
|
* Store the promise on the PublicClientApplication instance if this is the first invocation of handleRedirectPromise,
|
|
410
402
|
* otherwise return the promise from the first invocation. Prevents race conditions when handleRedirectPromise is called
|
|
411
403
|
* several times concurrently.
|
|
412
404
|
*/
|
|
413
|
-
const redirectResponseKey = hash || "";
|
|
405
|
+
const redirectResponseKey = options?.hash || "";
|
|
414
406
|
let response = this.redirectResponse.get(redirectResponseKey);
|
|
415
407
|
if (typeof response === "undefined") {
|
|
416
|
-
response = this.handleRedirectPromiseInternal(
|
|
408
|
+
response = this.handleRedirectPromiseInternal(options);
|
|
417
409
|
this.redirectResponse.set(redirectResponseKey, response);
|
|
418
410
|
this.logger.verbose(
|
|
419
|
-
"handleRedirectPromise has been called for the first time, storing the promise"
|
|
411
|
+
"handleRedirectPromise has been called for the first time, storing the promise",
|
|
412
|
+
""
|
|
420
413
|
);
|
|
421
414
|
} else {
|
|
422
415
|
this.logger.verbose(
|
|
423
|
-
"handleRedirectPromise has been called previously, returning the result from the first call"
|
|
416
|
+
"handleRedirectPromise has been called previously, returning the result from the first call",
|
|
417
|
+
""
|
|
424
418
|
);
|
|
425
419
|
}
|
|
426
420
|
|
|
427
421
|
return response;
|
|
428
422
|
}
|
|
429
423
|
this.logger.verbose(
|
|
430
|
-
"handleRedirectPromise returns null, not browser environment"
|
|
424
|
+
"handleRedirectPromise returns null, not browser environment",
|
|
425
|
+
""
|
|
431
426
|
);
|
|
432
427
|
return null;
|
|
433
428
|
}
|
|
@@ -438,11 +433,12 @@ export class StandardController implements IController {
|
|
|
438
433
|
* @returns
|
|
439
434
|
*/
|
|
440
435
|
private async handleRedirectPromiseInternal(
|
|
441
|
-
|
|
436
|
+
options?: HandleRedirectPromiseOptions
|
|
442
437
|
): Promise<AuthenticationResult | null> {
|
|
443
438
|
if (!this.browserStorage.isInteractionInProgress(true)) {
|
|
444
439
|
this.logger.info(
|
|
445
|
-
"handleRedirectPromise called but there is no interaction in progress, returning null."
|
|
440
|
+
"handleRedirectPromise called but there is no interaction in progress, returning null.",
|
|
441
|
+
""
|
|
446
442
|
);
|
|
447
443
|
return null;
|
|
448
444
|
}
|
|
@@ -451,7 +447,8 @@ export class StandardController implements IController {
|
|
|
451
447
|
this.browserStorage.getInteractionInProgress()?.type;
|
|
452
448
|
if (interactionType === INTERACTION_TYPE.SIGNOUT) {
|
|
453
449
|
this.logger.verbose(
|
|
454
|
-
"handleRedirectPromise removing interaction_in_progress flag and returning null after sign-out"
|
|
450
|
+
"handleRedirectPromise removing interaction_in_progress flag and returning null after sign-out",
|
|
451
|
+
""
|
|
455
452
|
);
|
|
456
453
|
this.browserStorage.setInteractionInProgress(false);
|
|
457
454
|
return Promise.resolve(null);
|
|
@@ -461,7 +458,9 @@ export class StandardController implements IController {
|
|
|
461
458
|
const platformBrokerRequest: PlatformAuthRequest | null =
|
|
462
459
|
this.browserStorage.getCachedNativeRequest();
|
|
463
460
|
const useNative =
|
|
464
|
-
platformBrokerRequest &&
|
|
461
|
+
platformBrokerRequest &&
|
|
462
|
+
this.platformAuthProvider &&
|
|
463
|
+
!options?.hash;
|
|
465
464
|
|
|
466
465
|
let rootMeasurement: InProgressPerformanceEvent;
|
|
467
466
|
|
|
@@ -473,16 +472,16 @@ export class StandardController implements IController {
|
|
|
473
472
|
let redirectResponse: Promise<AuthenticationResult | null>;
|
|
474
473
|
try {
|
|
475
474
|
if (useNative && this.platformAuthProvider) {
|
|
475
|
+
const correlationId =
|
|
476
|
+
platformBrokerRequest?.correlationId || "";
|
|
476
477
|
rootMeasurement = this.performanceClient.startMeasurement(
|
|
477
|
-
|
|
478
|
-
|
|
478
|
+
BrowserRootPerformanceEvents.AcquireTokenRedirect,
|
|
479
|
+
correlationId
|
|
479
480
|
);
|
|
480
481
|
this.logger.trace(
|
|
481
|
-
"handleRedirectPromise - acquiring token from native platform"
|
|
482
|
+
"handleRedirectPromise - acquiring token from native platform",
|
|
483
|
+
correlationId
|
|
482
484
|
);
|
|
483
|
-
rootMeasurement.add({
|
|
484
|
-
isPlatformBrokerRequest: true,
|
|
485
|
-
});
|
|
486
485
|
const nativeClient = new PlatformAuthInteractionClient(
|
|
487
486
|
this.config,
|
|
488
487
|
this.browserStorage,
|
|
@@ -500,41 +499,51 @@ export class StandardController implements IController {
|
|
|
500
499
|
|
|
501
500
|
redirectResponse = invokeAsync(
|
|
502
501
|
nativeClient.handleRedirectPromise.bind(nativeClient),
|
|
503
|
-
|
|
502
|
+
BrowserPerformanceEvents.HandleNativeRedirectPromiseMeasurement,
|
|
504
503
|
this.logger,
|
|
505
504
|
this.performanceClient,
|
|
506
505
|
rootMeasurement.event.correlationId
|
|
507
506
|
)(this.performanceClient, rootMeasurement.event.correlationId);
|
|
508
507
|
} else {
|
|
509
508
|
const [standardRequest, codeVerifier] =
|
|
510
|
-
this.browserStorage.getCachedRequest();
|
|
509
|
+
this.browserStorage.getCachedRequest("");
|
|
511
510
|
const correlationId = standardRequest.correlationId;
|
|
512
511
|
// Reset rootMeasurement now that we have correlationId
|
|
513
512
|
rootMeasurement = this.performanceClient.startMeasurement(
|
|
514
|
-
|
|
513
|
+
BrowserRootPerformanceEvents.AcquireTokenRedirect,
|
|
515
514
|
correlationId
|
|
516
515
|
);
|
|
517
516
|
this.logger.trace(
|
|
518
|
-
"handleRedirectPromise - acquiring token from web flow"
|
|
517
|
+
"handleRedirectPromise - acquiring token from web flow",
|
|
518
|
+
correlationId
|
|
519
519
|
);
|
|
520
520
|
const redirectClient = this.createRedirectClient(correlationId);
|
|
521
521
|
redirectResponse = invokeAsync(
|
|
522
522
|
redirectClient.handleRedirectPromise.bind(redirectClient),
|
|
523
|
-
|
|
523
|
+
BrowserPerformanceEvents.HandleRedirectPromiseMeasurement,
|
|
524
524
|
this.logger,
|
|
525
525
|
this.performanceClient,
|
|
526
526
|
rootMeasurement.event.correlationId
|
|
527
|
-
)(
|
|
527
|
+
)(standardRequest, codeVerifier, rootMeasurement, options);
|
|
528
528
|
}
|
|
529
529
|
} catch (e) {
|
|
530
|
-
this.browserStorage.resetRequestCache();
|
|
530
|
+
this.browserStorage.resetRequestCache("");
|
|
531
531
|
throw e;
|
|
532
532
|
}
|
|
533
533
|
|
|
534
534
|
return redirectResponse
|
|
535
535
|
.then((result: AuthenticationResult | null) => {
|
|
536
536
|
if (result) {
|
|
537
|
-
this.browserStorage.resetRequestCache();
|
|
537
|
+
this.browserStorage.resetRequestCache(result.correlationId);
|
|
538
|
+
this.eventHandler.emitEvent(
|
|
539
|
+
EventType.ACQUIRE_TOKEN_SUCCESS,
|
|
540
|
+
InteractionType.Redirect,
|
|
541
|
+
result
|
|
542
|
+
);
|
|
543
|
+
this.logger.verbose(
|
|
544
|
+
"handleRedirectResponse returned result, acquire token success",
|
|
545
|
+
result.correlationId
|
|
546
|
+
);
|
|
538
547
|
// Emit login event if number of accounts change
|
|
539
548
|
const isLoggingIn =
|
|
540
549
|
loggedInAccounts.length < this.getAllAccounts().length;
|
|
@@ -542,35 +551,24 @@ export class StandardController implements IController {
|
|
|
542
551
|
this.eventHandler.emitEvent(
|
|
543
552
|
EventType.LOGIN_SUCCESS,
|
|
544
553
|
InteractionType.Redirect,
|
|
545
|
-
result
|
|
554
|
+
result.account
|
|
546
555
|
);
|
|
547
556
|
this.logger.verbose(
|
|
548
|
-
"handleRedirectResponse returned result, login success"
|
|
549
|
-
|
|
550
|
-
} else {
|
|
551
|
-
this.eventHandler.emitEvent(
|
|
552
|
-
EventType.ACQUIRE_TOKEN_SUCCESS,
|
|
553
|
-
InteractionType.Redirect,
|
|
554
|
-
result
|
|
555
|
-
);
|
|
556
|
-
this.logger.verbose(
|
|
557
|
-
"handleRedirectResponse returned result, acquire token success"
|
|
557
|
+
"handleRedirectResponse returned result, login success",
|
|
558
|
+
result.correlationId
|
|
558
559
|
);
|
|
559
560
|
}
|
|
560
|
-
rootMeasurement.end(
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
undefined,
|
|
565
|
-
result.account
|
|
566
|
-
);
|
|
561
|
+
rootMeasurement.end({
|
|
562
|
+
success: true,
|
|
563
|
+
accountType: getAccountType(result.account),
|
|
564
|
+
});
|
|
567
565
|
} else {
|
|
568
566
|
/*
|
|
569
567
|
* Instrument an event only if an error code is set. Otherwise, discard it when the redirect response
|
|
570
568
|
* is empty and the error code is missing.
|
|
571
569
|
*/
|
|
572
570
|
if (rootMeasurement.event.errorCode) {
|
|
573
|
-
rootMeasurement.end({ success: false }
|
|
571
|
+
rootMeasurement.end({ success: false });
|
|
574
572
|
} else {
|
|
575
573
|
rootMeasurement.discard();
|
|
576
574
|
}
|
|
@@ -584,24 +582,16 @@ export class StandardController implements IController {
|
|
|
584
582
|
return result;
|
|
585
583
|
})
|
|
586
584
|
.catch((e) => {
|
|
587
|
-
this.browserStorage.resetRequestCache(
|
|
585
|
+
this.browserStorage.resetRequestCache(
|
|
586
|
+
rootMeasurement.event.correlationId
|
|
587
|
+
);
|
|
588
588
|
const eventError = e as EventError;
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
eventError
|
|
596
|
-
);
|
|
597
|
-
} else {
|
|
598
|
-
this.eventHandler.emitEvent(
|
|
599
|
-
EventType.LOGIN_FAILURE,
|
|
600
|
-
InteractionType.Redirect,
|
|
601
|
-
null,
|
|
602
|
-
eventError
|
|
603
|
-
);
|
|
604
|
-
}
|
|
589
|
+
this.eventHandler.emitEvent(
|
|
590
|
+
EventType.ACQUIRE_TOKEN_FAILURE,
|
|
591
|
+
InteractionType.Redirect,
|
|
592
|
+
null,
|
|
593
|
+
eventError
|
|
594
|
+
);
|
|
605
595
|
this.eventHandler.emitEvent(
|
|
606
596
|
EventType.HANDLE_REDIRECT_END,
|
|
607
597
|
InteractionType.Redirect
|
|
@@ -633,55 +623,28 @@ export class StandardController implements IController {
|
|
|
633
623
|
this.logger.verbose("acquireTokenRedirect called", correlationId);
|
|
634
624
|
|
|
635
625
|
const atrMeasurement = this.performanceClient.startMeasurement(
|
|
636
|
-
|
|
626
|
+
BrowserRootPerformanceEvents.AcquireTokenPreRedirect,
|
|
637
627
|
correlationId
|
|
638
628
|
);
|
|
639
629
|
atrMeasurement.add({
|
|
630
|
+
accountType: getAccountType(request.account),
|
|
640
631
|
scenarioId: request.scenarioId,
|
|
641
632
|
});
|
|
642
633
|
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
});
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
{ success: true },
|
|
657
|
-
undefined,
|
|
658
|
-
request.account
|
|
659
|
-
) || atrMeasurement.event;
|
|
660
|
-
return navigate;
|
|
661
|
-
};
|
|
662
|
-
} else {
|
|
663
|
-
const configOnRedirectNavigateCb =
|
|
664
|
-
this.config.auth.onRedirectNavigate;
|
|
665
|
-
this.config.auth.onRedirectNavigate = (url: string) => {
|
|
666
|
-
const navigate =
|
|
667
|
-
typeof configOnRedirectNavigateCb === "function"
|
|
668
|
-
? configOnRedirectNavigateCb(url)
|
|
669
|
-
: undefined;
|
|
670
|
-
atrMeasurement.add({
|
|
671
|
-
navigateCallbackResult: navigate !== false,
|
|
672
|
-
});
|
|
673
|
-
atrMeasurement.event =
|
|
674
|
-
atrMeasurement.end(
|
|
675
|
-
{ success: true },
|
|
676
|
-
undefined,
|
|
677
|
-
request.account
|
|
678
|
-
) || atrMeasurement.event;
|
|
679
|
-
return navigate;
|
|
680
|
-
};
|
|
681
|
-
}
|
|
634
|
+
const configOnRedirectNavigateCb = this.config.auth.onRedirectNavigate;
|
|
635
|
+
this.config.auth.onRedirectNavigate = (url: string) => {
|
|
636
|
+
const navigate =
|
|
637
|
+
typeof configOnRedirectNavigateCb === "function"
|
|
638
|
+
? configOnRedirectNavigateCb(url)
|
|
639
|
+
: undefined;
|
|
640
|
+
atrMeasurement.add({
|
|
641
|
+
navigateCallbackResult: navigate !== false,
|
|
642
|
+
});
|
|
643
|
+
atrMeasurement.event =
|
|
644
|
+
atrMeasurement.end({ success: true }) || atrMeasurement.event;
|
|
645
|
+
return navigate;
|
|
646
|
+
};
|
|
682
647
|
|
|
683
|
-
// If logged in, emit acquire token events
|
|
684
|
-
const isLoggedIn = this.getAllAccounts().length > 0;
|
|
685
648
|
try {
|
|
686
649
|
BrowserUtils.redirectPreflightCheck(this.initialized, this.config);
|
|
687
650
|
this.browserStorage.setInteractionInProgress(
|
|
@@ -689,19 +652,11 @@ export class StandardController implements IController {
|
|
|
689
652
|
INTERACTION_TYPE.SIGNIN
|
|
690
653
|
);
|
|
691
654
|
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
);
|
|
698
|
-
} else {
|
|
699
|
-
this.eventHandler.emitEvent(
|
|
700
|
-
EventType.LOGIN_START,
|
|
701
|
-
InteractionType.Redirect,
|
|
702
|
-
request
|
|
703
|
-
);
|
|
704
|
-
}
|
|
655
|
+
this.eventHandler.emitEvent(
|
|
656
|
+
EventType.ACQUIRE_TOKEN_START,
|
|
657
|
+
InteractionType.Redirect,
|
|
658
|
+
request
|
|
659
|
+
);
|
|
705
660
|
|
|
706
661
|
let result: Promise<void>;
|
|
707
662
|
|
|
@@ -723,25 +678,21 @@ export class StandardController implements IController {
|
|
|
723
678
|
this.nativeInternalStorage,
|
|
724
679
|
correlationId
|
|
725
680
|
);
|
|
726
|
-
|
|
727
681
|
result = nativeClient
|
|
728
682
|
.acquireTokenRedirect(request, atrMeasurement)
|
|
729
683
|
.catch((e: AuthError) => {
|
|
730
|
-
atrMeasurement.add({
|
|
731
|
-
brokerErrorName: e.name,
|
|
732
|
-
brokerErrorCode: e.errorCode,
|
|
733
|
-
});
|
|
734
684
|
if (
|
|
735
685
|
e instanceof NativeAuthError &&
|
|
736
686
|
isFatalNativeAuthError(e)
|
|
737
687
|
) {
|
|
738
|
-
this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt
|
|
688
|
+
this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt
|
|
739
689
|
const redirectClient =
|
|
740
690
|
this.createRedirectClient(correlationId);
|
|
741
691
|
return redirectClient.acquireToken(request);
|
|
742
692
|
} else if (e instanceof InteractionRequiredAuthError) {
|
|
743
693
|
this.logger.verbose(
|
|
744
|
-
"acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow"
|
|
694
|
+
"acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow",
|
|
695
|
+
correlationId
|
|
745
696
|
);
|
|
746
697
|
const redirectClient =
|
|
747
698
|
this.createRedirectClient(correlationId);
|
|
@@ -756,7 +707,7 @@ export class StandardController implements IController {
|
|
|
756
707
|
|
|
757
708
|
return await result;
|
|
758
709
|
} catch (e) {
|
|
759
|
-
this.browserStorage.resetRequestCache();
|
|
710
|
+
this.browserStorage.resetRequestCache(correlationId);
|
|
760
711
|
/*
|
|
761
712
|
* Pre-redirect event completes before navigation occurs.
|
|
762
713
|
* Timed out navigation needs to be instrumented separately as a post-redirect event.
|
|
@@ -764,29 +715,20 @@ export class StandardController implements IController {
|
|
|
764
715
|
if (atrMeasurement.event.status === 2) {
|
|
765
716
|
this.performanceClient
|
|
766
717
|
.startMeasurement(
|
|
767
|
-
|
|
718
|
+
BrowserRootPerformanceEvents.AcquireTokenRedirect,
|
|
768
719
|
correlationId
|
|
769
720
|
)
|
|
770
|
-
.end({ success: false }, e
|
|
721
|
+
.end({ success: false }, e);
|
|
771
722
|
} else {
|
|
772
|
-
atrMeasurement.end({ success: false }, e
|
|
723
|
+
atrMeasurement.end({ success: false }, e);
|
|
773
724
|
}
|
|
774
725
|
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
);
|
|
782
|
-
} else {
|
|
783
|
-
this.eventHandler.emitEvent(
|
|
784
|
-
EventType.LOGIN_FAILURE,
|
|
785
|
-
InteractionType.Redirect,
|
|
786
|
-
null,
|
|
787
|
-
e as EventError
|
|
788
|
-
);
|
|
789
|
-
}
|
|
726
|
+
this.eventHandler.emitEvent(
|
|
727
|
+
EventType.ACQUIRE_TOKEN_FAILURE,
|
|
728
|
+
InteractionType.Redirect,
|
|
729
|
+
null,
|
|
730
|
+
e as EventError
|
|
731
|
+
);
|
|
790
732
|
throw e;
|
|
791
733
|
}
|
|
792
734
|
}
|
|
@@ -805,21 +747,18 @@ export class StandardController implements IController {
|
|
|
805
747
|
acquireTokenPopup(request: PopupRequest): Promise<AuthenticationResult> {
|
|
806
748
|
const correlationId = this.getRequestCorrelationId(request);
|
|
807
749
|
const atPopupMeasurement = this.performanceClient.startMeasurement(
|
|
808
|
-
|
|
750
|
+
BrowserRootPerformanceEvents.AcquireTokenPopup,
|
|
809
751
|
correlationId
|
|
810
752
|
);
|
|
811
753
|
|
|
812
754
|
atPopupMeasurement.add({
|
|
813
755
|
scenarioId: request.scenarioId,
|
|
756
|
+
accountType: getAccountType(request.account),
|
|
814
757
|
});
|
|
815
758
|
|
|
816
759
|
try {
|
|
817
760
|
this.logger.verbose("acquireTokenPopup called", correlationId);
|
|
818
|
-
preflightCheck(
|
|
819
|
-
this.initialized,
|
|
820
|
-
atPopupMeasurement,
|
|
821
|
-
request.account
|
|
822
|
-
);
|
|
761
|
+
preflightCheck(this.initialized, atPopupMeasurement);
|
|
823
762
|
this.browserStorage.setInteractionInProgress(
|
|
824
763
|
true,
|
|
825
764
|
INTERACTION_TYPE.SIGNIN
|
|
@@ -831,27 +770,16 @@ export class StandardController implements IController {
|
|
|
831
770
|
|
|
832
771
|
// If logged in, emit acquire token events
|
|
833
772
|
const loggedInAccounts = this.getAllAccounts();
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
);
|
|
840
|
-
} else {
|
|
841
|
-
this.eventHandler.emitEvent(
|
|
842
|
-
EventType.LOGIN_START,
|
|
843
|
-
InteractionType.Popup,
|
|
844
|
-
request
|
|
845
|
-
);
|
|
846
|
-
}
|
|
773
|
+
this.eventHandler.emitEvent(
|
|
774
|
+
EventType.ACQUIRE_TOKEN_START,
|
|
775
|
+
InteractionType.Popup,
|
|
776
|
+
request
|
|
777
|
+
);
|
|
847
778
|
|
|
848
779
|
let result: Promise<AuthenticationResult>;
|
|
849
780
|
const pkce = this.getPreGeneratedPkceCodes(correlationId);
|
|
850
781
|
|
|
851
782
|
if (this.canUsePlatformBroker(request)) {
|
|
852
|
-
atPopupMeasurement.add({
|
|
853
|
-
isPlatformBrokerRequest: true,
|
|
854
|
-
});
|
|
855
783
|
result = this.acquireTokenNative(
|
|
856
784
|
{
|
|
857
785
|
...request,
|
|
@@ -860,31 +788,26 @@ export class StandardController implements IController {
|
|
|
860
788
|
ApiId.acquireTokenPopup
|
|
861
789
|
)
|
|
862
790
|
.then((response) => {
|
|
863
|
-
atPopupMeasurement.end(
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
response.account
|
|
869
|
-
);
|
|
791
|
+
atPopupMeasurement.end({
|
|
792
|
+
success: true,
|
|
793
|
+
isNativeBroker: true,
|
|
794
|
+
accountType: getAccountType(response.account),
|
|
795
|
+
});
|
|
870
796
|
return response;
|
|
871
797
|
})
|
|
872
798
|
.catch((e: AuthError) => {
|
|
873
|
-
atPopupMeasurement.add({
|
|
874
|
-
brokerErrorName: e.name,
|
|
875
|
-
brokerErrorCode: e.errorCode,
|
|
876
|
-
});
|
|
877
799
|
if (
|
|
878
800
|
e instanceof NativeAuthError &&
|
|
879
801
|
isFatalNativeAuthError(e)
|
|
880
802
|
) {
|
|
881
|
-
this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to
|
|
803
|
+
this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt
|
|
882
804
|
const popupClient =
|
|
883
805
|
this.createPopupClient(correlationId);
|
|
884
806
|
return popupClient.acquireToken(request, pkce);
|
|
885
807
|
} else if (e instanceof InteractionRequiredAuthError) {
|
|
886
808
|
this.logger.verbose(
|
|
887
|
-
"acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow"
|
|
809
|
+
"acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow",
|
|
810
|
+
correlationId
|
|
888
811
|
);
|
|
889
812
|
const popupClient =
|
|
890
813
|
this.createPopupClient(correlationId);
|
|
@@ -904,54 +827,39 @@ export class StandardController implements IController {
|
|
|
904
827
|
*/
|
|
905
828
|
const isLoggingIn =
|
|
906
829
|
loggedInAccounts.length < this.getAllAccounts().length;
|
|
830
|
+
this.eventHandler.emitEvent(
|
|
831
|
+
EventType.ACQUIRE_TOKEN_SUCCESS,
|
|
832
|
+
InteractionType.Popup,
|
|
833
|
+
result
|
|
834
|
+
);
|
|
907
835
|
if (isLoggingIn) {
|
|
908
836
|
this.eventHandler.emitEvent(
|
|
909
837
|
EventType.LOGIN_SUCCESS,
|
|
910
838
|
InteractionType.Popup,
|
|
911
|
-
result
|
|
912
|
-
);
|
|
913
|
-
} else {
|
|
914
|
-
this.eventHandler.emitEvent(
|
|
915
|
-
EventType.ACQUIRE_TOKEN_SUCCESS,
|
|
916
|
-
InteractionType.Popup,
|
|
917
|
-
result
|
|
839
|
+
result.account
|
|
918
840
|
);
|
|
919
841
|
}
|
|
920
842
|
|
|
921
|
-
atPopupMeasurement.end(
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
undefined,
|
|
928
|
-
result.account
|
|
929
|
-
);
|
|
843
|
+
atPopupMeasurement.end({
|
|
844
|
+
success: true,
|
|
845
|
+
accessTokenSize: result.accessToken.length,
|
|
846
|
+
idTokenSize: result.idToken.length,
|
|
847
|
+
accountType: getAccountType(result.account),
|
|
848
|
+
});
|
|
930
849
|
return result;
|
|
931
850
|
})
|
|
932
851
|
.catch((e: Error) => {
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
);
|
|
940
|
-
} else {
|
|
941
|
-
this.eventHandler.emitEvent(
|
|
942
|
-
EventType.LOGIN_FAILURE,
|
|
943
|
-
InteractionType.Popup,
|
|
944
|
-
null,
|
|
945
|
-
e
|
|
946
|
-
);
|
|
947
|
-
}
|
|
948
|
-
|
|
852
|
+
this.eventHandler.emitEvent(
|
|
853
|
+
EventType.ACQUIRE_TOKEN_FAILURE,
|
|
854
|
+
InteractionType.Popup,
|
|
855
|
+
null,
|
|
856
|
+
e
|
|
857
|
+
);
|
|
949
858
|
atPopupMeasurement.end(
|
|
950
859
|
{
|
|
951
860
|
success: false,
|
|
952
861
|
},
|
|
953
|
-
e
|
|
954
|
-
request.account
|
|
862
|
+
e
|
|
955
863
|
);
|
|
956
864
|
|
|
957
865
|
// Since this function is syncronous we need to reject
|
|
@@ -959,7 +867,7 @@ export class StandardController implements IController {
|
|
|
959
867
|
})
|
|
960
868
|
.finally(async () => {
|
|
961
869
|
this.browserStorage.setInteractionInProgress(false);
|
|
962
|
-
if (this.config.system.
|
|
870
|
+
if (!this.config.system.navigatePopups) {
|
|
963
871
|
await this.preGeneratePkceCodes(correlationId);
|
|
964
872
|
}
|
|
965
873
|
});
|
|
@@ -973,10 +881,6 @@ export class StandardController implements IController {
|
|
|
973
881
|
return;
|
|
974
882
|
}
|
|
975
883
|
|
|
976
|
-
this.logger.info(
|
|
977
|
-
"Perf: Visibility change detected in ",
|
|
978
|
-
measurement.event.name
|
|
979
|
-
);
|
|
980
884
|
measurement.increment({
|
|
981
885
|
visibilityChangeCount: 1,
|
|
982
886
|
});
|
|
@@ -1009,17 +913,14 @@ export class StandardController implements IController {
|
|
|
1009
913
|
correlationId: correlationId,
|
|
1010
914
|
};
|
|
1011
915
|
this.ssoSilentMeasurement = this.performanceClient.startMeasurement(
|
|
1012
|
-
|
|
916
|
+
BrowserRootPerformanceEvents.SsoSilent,
|
|
1013
917
|
correlationId
|
|
1014
918
|
);
|
|
1015
919
|
this.ssoSilentMeasurement?.add({
|
|
1016
920
|
scenarioId: request.scenarioId,
|
|
921
|
+
accountType: getAccountType(request.account),
|
|
1017
922
|
});
|
|
1018
|
-
preflightCheck(
|
|
1019
|
-
this.initialized,
|
|
1020
|
-
this.ssoSilentMeasurement,
|
|
1021
|
-
request.account
|
|
1022
|
-
);
|
|
923
|
+
preflightCheck(this.initialized, this.ssoSilentMeasurement);
|
|
1023
924
|
this.ssoSilentMeasurement?.increment({
|
|
1024
925
|
visibilityChangeCount: 0,
|
|
1025
926
|
});
|
|
@@ -1028,9 +929,11 @@ export class StandardController implements IController {
|
|
|
1028
929
|
"visibilitychange",
|
|
1029
930
|
this.trackPageVisibilityWithMeasurement
|
|
1030
931
|
);
|
|
932
|
+
|
|
933
|
+
const loggedInAccounts = this.getAllAccounts();
|
|
1031
934
|
this.logger.verbose("ssoSilent called", correlationId);
|
|
1032
935
|
this.eventHandler.emitEvent(
|
|
1033
|
-
EventType.
|
|
936
|
+
EventType.ACQUIRE_TOKEN_START,
|
|
1034
937
|
InteractionType.Silent,
|
|
1035
938
|
validRequest
|
|
1036
939
|
);
|
|
@@ -1038,17 +941,10 @@ export class StandardController implements IController {
|
|
|
1038
941
|
let result: Promise<AuthenticationResult>;
|
|
1039
942
|
|
|
1040
943
|
if (this.canUsePlatformBroker(validRequest)) {
|
|
1041
|
-
this.ssoSilentMeasurement?.add({
|
|
1042
|
-
isPlatformBrokerRequest: true,
|
|
1043
|
-
});
|
|
1044
944
|
result = this.acquireTokenNative(
|
|
1045
945
|
validRequest,
|
|
1046
946
|
ApiId.ssoSilent
|
|
1047
947
|
).catch((e: AuthError) => {
|
|
1048
|
-
this.ssoSilentMeasurement?.add({
|
|
1049
|
-
brokerErrorName: e.name,
|
|
1050
|
-
brokerErrorCode: e.errorCode,
|
|
1051
|
-
});
|
|
1052
948
|
// If native token acquisition fails for availability reasons fallback to standard flow
|
|
1053
949
|
if (e instanceof NativeAuthError && isFatalNativeAuthError(e)) {
|
|
1054
950
|
this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt
|
|
@@ -1068,25 +964,32 @@ export class StandardController implements IController {
|
|
|
1068
964
|
|
|
1069
965
|
return result
|
|
1070
966
|
.then((response) => {
|
|
967
|
+
const isLoggingIn =
|
|
968
|
+
loggedInAccounts.length < this.getAllAccounts().length;
|
|
1071
969
|
this.eventHandler.emitEvent(
|
|
1072
|
-
EventType.
|
|
970
|
+
EventType.ACQUIRE_TOKEN_SUCCESS,
|
|
1073
971
|
InteractionType.Silent,
|
|
1074
972
|
response
|
|
1075
973
|
);
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
974
|
+
if (isLoggingIn) {
|
|
975
|
+
this.eventHandler.emitEvent(
|
|
976
|
+
EventType.LOGIN_SUCCESS,
|
|
977
|
+
InteractionType.Silent,
|
|
978
|
+
response.account
|
|
979
|
+
);
|
|
980
|
+
}
|
|
981
|
+
this.ssoSilentMeasurement?.end({
|
|
982
|
+
success: true,
|
|
983
|
+
isNativeBroker: response.fromPlatformBroker,
|
|
984
|
+
accessTokenSize: response.accessToken.length,
|
|
985
|
+
idTokenSize: response.idToken.length,
|
|
986
|
+
accountType: getAccountType(response.account),
|
|
987
|
+
});
|
|
1085
988
|
return response;
|
|
1086
989
|
})
|
|
1087
990
|
.catch((e: Error) => {
|
|
1088
991
|
this.eventHandler.emitEvent(
|
|
1089
|
-
EventType.
|
|
992
|
+
EventType.ACQUIRE_TOKEN_FAILURE,
|
|
1090
993
|
InteractionType.Silent,
|
|
1091
994
|
null,
|
|
1092
995
|
e
|
|
@@ -1095,8 +998,7 @@ export class StandardController implements IController {
|
|
|
1095
998
|
{
|
|
1096
999
|
success: false,
|
|
1097
1000
|
},
|
|
1098
|
-
e
|
|
1099
|
-
request.account
|
|
1001
|
+
e
|
|
1100
1002
|
);
|
|
1101
1003
|
throw e;
|
|
1102
1004
|
})
|
|
@@ -1124,12 +1026,12 @@ export class StandardController implements IController {
|
|
|
1124
1026
|
const correlationId = this.getRequestCorrelationId(request);
|
|
1125
1027
|
this.logger.trace("acquireTokenByCode called", correlationId);
|
|
1126
1028
|
const atbcMeasurement = this.performanceClient.startMeasurement(
|
|
1127
|
-
|
|
1029
|
+
BrowserRootPerformanceEvents.AcquireTokenByCode,
|
|
1128
1030
|
correlationId
|
|
1129
1031
|
);
|
|
1130
1032
|
preflightCheck(this.initialized, atbcMeasurement);
|
|
1131
1033
|
this.eventHandler.emitEvent(
|
|
1132
|
-
EventType.
|
|
1034
|
+
EventType.ACQUIRE_TOKEN_START,
|
|
1133
1035
|
InteractionType.Silent,
|
|
1134
1036
|
request
|
|
1135
1037
|
);
|
|
@@ -1155,26 +1057,24 @@ export class StandardController implements IController {
|
|
|
1155
1057
|
})
|
|
1156
1058
|
.then((result: AuthenticationResult) => {
|
|
1157
1059
|
this.eventHandler.emitEvent(
|
|
1158
|
-
EventType.
|
|
1060
|
+
EventType.ACQUIRE_TOKEN_SUCCESS,
|
|
1159
1061
|
InteractionType.Silent,
|
|
1160
1062
|
result
|
|
1161
1063
|
);
|
|
1162
1064
|
this.hybridAuthCodeResponses.delete(hybridAuthCode);
|
|
1163
|
-
atbcMeasurement.end(
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
result.account
|
|
1171
|
-
);
|
|
1065
|
+
atbcMeasurement.end({
|
|
1066
|
+
success: true,
|
|
1067
|
+
isNativeBroker: result.fromPlatformBroker,
|
|
1068
|
+
accessTokenSize: result.accessToken.length,
|
|
1069
|
+
idTokenSize: result.idToken.length,
|
|
1070
|
+
accountType: getAccountType(result.account),
|
|
1071
|
+
});
|
|
1172
1072
|
return result;
|
|
1173
1073
|
})
|
|
1174
1074
|
.catch((error: Error) => {
|
|
1175
1075
|
this.hybridAuthCodeResponses.delete(hybridAuthCode);
|
|
1176
1076
|
this.eventHandler.emitEvent(
|
|
1177
|
-
EventType.
|
|
1077
|
+
EventType.ACQUIRE_TOKEN_FAILURE,
|
|
1178
1078
|
InteractionType.Silent,
|
|
1179
1079
|
null,
|
|
1180
1080
|
error
|
|
@@ -1200,9 +1100,6 @@ export class StandardController implements IController {
|
|
|
1200
1100
|
if (
|
|
1201
1101
|
this.canUsePlatformBroker(request, request.nativeAccountId)
|
|
1202
1102
|
) {
|
|
1203
|
-
atbcMeasurement.add({
|
|
1204
|
-
isPlatformBrokerRequest: true,
|
|
1205
|
-
});
|
|
1206
1103
|
const result = await this.acquireTokenNative(
|
|
1207
1104
|
{
|
|
1208
1105
|
...request,
|
|
@@ -1218,19 +1115,12 @@ export class StandardController implements IController {
|
|
|
1218
1115
|
) {
|
|
1219
1116
|
this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt
|
|
1220
1117
|
}
|
|
1221
|
-
atbcMeasurement.add({
|
|
1222
|
-
brokerErrorName: e.name,
|
|
1223
|
-
brokerErrorCode: e.errorCode,
|
|
1224
|
-
});
|
|
1225
1118
|
throw e;
|
|
1226
1119
|
});
|
|
1227
|
-
atbcMeasurement.end(
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
undefined,
|
|
1232
|
-
result.account
|
|
1233
|
-
);
|
|
1120
|
+
atbcMeasurement.end({
|
|
1121
|
+
accountType: getAccountType(result.account),
|
|
1122
|
+
success: true,
|
|
1123
|
+
});
|
|
1234
1124
|
return result;
|
|
1235
1125
|
} else {
|
|
1236
1126
|
throw createBrowserAuthError(
|
|
@@ -1244,7 +1134,7 @@ export class StandardController implements IController {
|
|
|
1244
1134
|
}
|
|
1245
1135
|
} catch (e) {
|
|
1246
1136
|
this.eventHandler.emitEvent(
|
|
1247
|
-
EventType.
|
|
1137
|
+
EventType.ACQUIRE_TOKEN_FAILURE,
|
|
1248
1138
|
InteractionType.Silent,
|
|
1249
1139
|
null,
|
|
1250
1140
|
e as EventError
|
|
@@ -1267,14 +1157,12 @@ export class StandardController implements IController {
|
|
|
1267
1157
|
private async acquireTokenByCodeAsync(
|
|
1268
1158
|
request: AuthorizationCodeRequest
|
|
1269
1159
|
): Promise<AuthenticationResult> {
|
|
1270
|
-
this.
|
|
1271
|
-
|
|
1272
|
-
request.correlationId
|
|
1273
|
-
);
|
|
1160
|
+
const correlationId = this.getRequestCorrelationId(request);
|
|
1161
|
+
this.logger.trace("acquireTokenByCodeAsync called", correlationId);
|
|
1274
1162
|
this.acquireTokenByCodeAsyncMeasurement =
|
|
1275
1163
|
this.performanceClient.startMeasurement(
|
|
1276
|
-
|
|
1277
|
-
|
|
1164
|
+
BrowserPerformanceEvents.AcquireTokenByCodeAsync,
|
|
1165
|
+
correlationId
|
|
1278
1166
|
);
|
|
1279
1167
|
this.acquireTokenByCodeAsyncMeasurement?.increment({
|
|
1280
1168
|
visibilityChangeCount: 0,
|
|
@@ -1283,15 +1171,15 @@ export class StandardController implements IController {
|
|
|
1283
1171
|
"visibilitychange",
|
|
1284
1172
|
this.trackPageVisibilityWithMeasurement
|
|
1285
1173
|
);
|
|
1286
|
-
const silentAuthCodeClient =
|
|
1287
|
-
|
|
1288
|
-
);
|
|
1174
|
+
const silentAuthCodeClient =
|
|
1175
|
+
this.createSilentAuthCodeClient(correlationId);
|
|
1289
1176
|
const silentTokenResult = await silentAuthCodeClient
|
|
1290
1177
|
.acquireToken(request)
|
|
1291
1178
|
.then((response) => {
|
|
1292
1179
|
this.acquireTokenByCodeAsyncMeasurement?.end({
|
|
1293
1180
|
success: true,
|
|
1294
1181
|
fromCache: response.fromCache,
|
|
1182
|
+
isNativeBroker: response.fromPlatformBroker,
|
|
1295
1183
|
});
|
|
1296
1184
|
return response;
|
|
1297
1185
|
})
|
|
@@ -1324,10 +1212,6 @@ export class StandardController implements IController {
|
|
|
1324
1212
|
commonRequest: CommonSilentFlowRequest,
|
|
1325
1213
|
cacheLookupPolicy: CacheLookupPolicy
|
|
1326
1214
|
): Promise<AuthenticationResult> {
|
|
1327
|
-
this.performanceClient.addQueueMeasurement(
|
|
1328
|
-
PerformanceEvents.AcquireTokenFromCache,
|
|
1329
|
-
commonRequest.correlationId
|
|
1330
|
-
);
|
|
1331
1215
|
switch (cacheLookupPolicy) {
|
|
1332
1216
|
case CacheLookupPolicy.Default:
|
|
1333
1217
|
case CacheLookupPolicy.AccessToken:
|
|
@@ -1337,7 +1221,7 @@ export class StandardController implements IController {
|
|
|
1337
1221
|
);
|
|
1338
1222
|
return invokeAsync(
|
|
1339
1223
|
silentCacheClient.acquireToken.bind(silentCacheClient),
|
|
1340
|
-
|
|
1224
|
+
BrowserPerformanceEvents.SilentCacheClientAcquireToken,
|
|
1341
1225
|
this.logger,
|
|
1342
1226
|
this.performanceClient,
|
|
1343
1227
|
commonRequest.correlationId
|
|
@@ -1359,10 +1243,6 @@ export class StandardController implements IController {
|
|
|
1359
1243
|
commonRequest: CommonSilentFlowRequest,
|
|
1360
1244
|
cacheLookupPolicy: CacheLookupPolicy
|
|
1361
1245
|
): Promise<AuthenticationResult> {
|
|
1362
|
-
this.performanceClient.addQueueMeasurement(
|
|
1363
|
-
PerformanceEvents.AcquireTokenByRefreshToken,
|
|
1364
|
-
commonRequest.correlationId
|
|
1365
|
-
);
|
|
1366
1246
|
switch (cacheLookupPolicy) {
|
|
1367
1247
|
case CacheLookupPolicy.Default:
|
|
1368
1248
|
case CacheLookupPolicy.AccessTokenAndRefreshToken:
|
|
@@ -1374,7 +1254,7 @@ export class StandardController implements IController {
|
|
|
1374
1254
|
|
|
1375
1255
|
return invokeAsync(
|
|
1376
1256
|
silentRefreshClient.acquireToken.bind(silentRefreshClient),
|
|
1377
|
-
|
|
1257
|
+
BrowserPerformanceEvents.SilentRefreshClientAcquireToken,
|
|
1378
1258
|
this.logger,
|
|
1379
1259
|
this.performanceClient,
|
|
1380
1260
|
commonRequest.correlationId
|
|
@@ -1394,18 +1274,13 @@ export class StandardController implements IController {
|
|
|
1394
1274
|
protected async acquireTokenBySilentIframe(
|
|
1395
1275
|
request: CommonSilentFlowRequest
|
|
1396
1276
|
): Promise<AuthenticationResult> {
|
|
1397
|
-
this.performanceClient.addQueueMeasurement(
|
|
1398
|
-
PerformanceEvents.AcquireTokenBySilentIframe,
|
|
1399
|
-
request.correlationId
|
|
1400
|
-
);
|
|
1401
|
-
|
|
1402
1277
|
const silentIframeClient = this.createSilentIframeClient(
|
|
1403
1278
|
request.correlationId
|
|
1404
1279
|
);
|
|
1405
1280
|
|
|
1406
1281
|
return invokeAsync(
|
|
1407
1282
|
silentIframeClient.acquireToken.bind(silentIframeClient),
|
|
1408
|
-
|
|
1283
|
+
BrowserPerformanceEvents.SilentIframeClientAcquireToken,
|
|
1409
1284
|
this.logger,
|
|
1410
1285
|
this.performanceClient,
|
|
1411
1286
|
request.correlationId
|
|
@@ -1416,23 +1291,6 @@ export class StandardController implements IController {
|
|
|
1416
1291
|
|
|
1417
1292
|
// #region Logout
|
|
1418
1293
|
|
|
1419
|
-
/**
|
|
1420
|
-
* Deprecated logout function. Use logoutRedirect or logoutPopup instead
|
|
1421
|
-
* @param logoutRequest
|
|
1422
|
-
* @deprecated
|
|
1423
|
-
*/
|
|
1424
|
-
async logout(logoutRequest?: EndSessionRequest): Promise<void> {
|
|
1425
|
-
const correlationId = this.getRequestCorrelationId(logoutRequest);
|
|
1426
|
-
this.logger.warning(
|
|
1427
|
-
"logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",
|
|
1428
|
-
correlationId
|
|
1429
|
-
);
|
|
1430
|
-
return this.logoutRedirect({
|
|
1431
|
-
correlationId,
|
|
1432
|
-
...logoutRequest,
|
|
1433
|
-
});
|
|
1434
|
-
}
|
|
1435
|
-
|
|
1436
1294
|
/**
|
|
1437
1295
|
* Use to log out the current user, and redirect the user to the postLogoutRedirectUri.
|
|
1438
1296
|
* Default behaviour is to redirect the user to `window.location.href`.
|
|
@@ -1479,7 +1337,6 @@ export class StandardController implements IController {
|
|
|
1479
1337
|
*/
|
|
1480
1338
|
async clearCache(logoutRequest?: ClearCacheRequest): Promise<void> {
|
|
1481
1339
|
if (!this.isBrowserEnvironment) {
|
|
1482
|
-
this.logger.info("in non-browser environment, returning early.");
|
|
1483
1340
|
return;
|
|
1484
1341
|
}
|
|
1485
1342
|
const correlationId = this.getRequestCorrelationId(logoutRequest);
|
|
@@ -1497,12 +1354,11 @@ export class StandardController implements IController {
|
|
|
1497
1354
|
* @returns Array of AccountInfo objects in cache
|
|
1498
1355
|
*/
|
|
1499
1356
|
getAllAccounts(accountFilter?: AccountFilter): AccountInfo[] {
|
|
1500
|
-
const correlationId = this.getRequestCorrelationId();
|
|
1501
1357
|
return AccountManager.getAllAccounts(
|
|
1502
1358
|
this.logger,
|
|
1503
1359
|
this.browserStorage,
|
|
1504
1360
|
this.isBrowserEnvironment,
|
|
1505
|
-
|
|
1361
|
+
this.getRequestCorrelationId(),
|
|
1506
1362
|
accountFilter
|
|
1507
1363
|
);
|
|
1508
1364
|
}
|
|
@@ -1513,12 +1369,11 @@ export class StandardController implements IController {
|
|
|
1513
1369
|
* @returns The first account found in the cache matching the provided filter or null if no account could be found.
|
|
1514
1370
|
*/
|
|
1515
1371
|
getAccount(accountFilter: AccountFilter): AccountInfo | null {
|
|
1516
|
-
const correlationId = this.getRequestCorrelationId();
|
|
1517
1372
|
return AccountManager.getAccount(
|
|
1518
1373
|
accountFilter,
|
|
1519
1374
|
this.logger,
|
|
1520
1375
|
this.browserStorage,
|
|
1521
|
-
|
|
1376
|
+
this.getRequestCorrelationId()
|
|
1522
1377
|
);
|
|
1523
1378
|
}
|
|
1524
1379
|
|
|
@@ -1531,12 +1386,11 @@ export class StandardController implements IController {
|
|
|
1531
1386
|
* @returns The account object stored in MSAL
|
|
1532
1387
|
*/
|
|
1533
1388
|
getAccountByUsername(username: string): AccountInfo | null {
|
|
1534
|
-
const correlationId = this.getRequestCorrelationId();
|
|
1535
1389
|
return AccountManager.getAccountByUsername(
|
|
1536
1390
|
username,
|
|
1537
1391
|
this.logger,
|
|
1538
1392
|
this.browserStorage,
|
|
1539
|
-
|
|
1393
|
+
this.getRequestCorrelationId()
|
|
1540
1394
|
);
|
|
1541
1395
|
}
|
|
1542
1396
|
|
|
@@ -1548,12 +1402,11 @@ export class StandardController implements IController {
|
|
|
1548
1402
|
* @returns The account object stored in MSAL
|
|
1549
1403
|
*/
|
|
1550
1404
|
getAccountByHomeId(homeAccountId: string): AccountInfo | null {
|
|
1551
|
-
const correlationId = this.getRequestCorrelationId();
|
|
1552
1405
|
return AccountManager.getAccountByHomeId(
|
|
1553
1406
|
homeAccountId,
|
|
1554
1407
|
this.logger,
|
|
1555
1408
|
this.browserStorage,
|
|
1556
|
-
|
|
1409
|
+
this.getRequestCorrelationId()
|
|
1557
1410
|
);
|
|
1558
1411
|
}
|
|
1559
1412
|
|
|
@@ -1565,12 +1418,11 @@ export class StandardController implements IController {
|
|
|
1565
1418
|
* @returns The account object stored in MSAL
|
|
1566
1419
|
*/
|
|
1567
1420
|
getAccountByLocalId(localAccountId: string): AccountInfo | null {
|
|
1568
|
-
const correlationId = this.getRequestCorrelationId();
|
|
1569
1421
|
return AccountManager.getAccountByLocalId(
|
|
1570
1422
|
localAccountId,
|
|
1571
1423
|
this.logger,
|
|
1572
1424
|
this.browserStorage,
|
|
1573
|
-
|
|
1425
|
+
this.getRequestCorrelationId()
|
|
1574
1426
|
);
|
|
1575
1427
|
}
|
|
1576
1428
|
|
|
@@ -1579,11 +1431,10 @@ export class StandardController implements IController {
|
|
|
1579
1431
|
* @param account
|
|
1580
1432
|
*/
|
|
1581
1433
|
setActiveAccount(account: AccountInfo | null): void {
|
|
1582
|
-
const correlationId = this.getRequestCorrelationId();
|
|
1583
1434
|
AccountManager.setActiveAccount(
|
|
1584
1435
|
account,
|
|
1585
1436
|
this.browserStorage,
|
|
1586
|
-
|
|
1437
|
+
this.getRequestCorrelationId()
|
|
1587
1438
|
);
|
|
1588
1439
|
}
|
|
1589
1440
|
|
|
@@ -1591,10 +1442,9 @@ export class StandardController implements IController {
|
|
|
1591
1442
|
* Gets the currently active account
|
|
1592
1443
|
*/
|
|
1593
1444
|
getActiveAccount(): AccountInfo | null {
|
|
1594
|
-
const correlationId = this.getRequestCorrelationId();
|
|
1595
1445
|
return AccountManager.getActiveAccount(
|
|
1596
1446
|
this.browserStorage,
|
|
1597
|
-
|
|
1447
|
+
this.getRequestCorrelationId()
|
|
1598
1448
|
);
|
|
1599
1449
|
}
|
|
1600
1450
|
|
|
@@ -1614,22 +1464,24 @@ export class StandardController implements IController {
|
|
|
1614
1464
|
| RedirectRequest
|
|
1615
1465
|
| PopupRequest
|
|
1616
1466
|
): Promise<void> {
|
|
1617
|
-
this.logger.verbose("hydrateCache called");
|
|
1467
|
+
this.logger.verbose("hydrateCache called", result.correlationId);
|
|
1618
1468
|
|
|
1619
1469
|
// Account gets saved to browser storage regardless of native or not
|
|
1620
|
-
const accountEntity =
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1470
|
+
const accountEntity =
|
|
1471
|
+
AccountEntityUtils.createAccountEntityFromAccountInfo(
|
|
1472
|
+
result.account,
|
|
1473
|
+
result.cloudGraphHostName,
|
|
1474
|
+
result.msGraphHost
|
|
1475
|
+
);
|
|
1625
1476
|
await this.browserStorage.setAccount(
|
|
1626
1477
|
accountEntity,
|
|
1627
1478
|
result.correlationId
|
|
1628
1479
|
);
|
|
1629
1480
|
|
|
1630
|
-
if (result.
|
|
1481
|
+
if (result.fromPlatformBroker) {
|
|
1631
1482
|
this.logger.verbose(
|
|
1632
|
-
"Response was from native broker, storing in-memory"
|
|
1483
|
+
"Response was from native broker, storing in-memory",
|
|
1484
|
+
result.correlationId
|
|
1633
1485
|
);
|
|
1634
1486
|
// Tokens from native broker are stored in-memory
|
|
1635
1487
|
return this.nativeInternalStorage.hydrateCache(result, request);
|
|
@@ -1650,12 +1502,14 @@ export class StandardController implements IController {
|
|
|
1650
1502
|
accountId?: string,
|
|
1651
1503
|
cacheLookupPolicy?: CacheLookupPolicy
|
|
1652
1504
|
): Promise<AuthenticationResult> {
|
|
1653
|
-
this.
|
|
1505
|
+
const correlationId = this.getRequestCorrelationId(request);
|
|
1506
|
+
this.logger.trace("acquireTokenNative called", correlationId);
|
|
1654
1507
|
if (!this.platformAuthProvider) {
|
|
1655
1508
|
throw createBrowserAuthError(
|
|
1656
1509
|
BrowserAuthErrorCodes.nativeConnectionNotEstablished
|
|
1657
1510
|
);
|
|
1658
1511
|
}
|
|
1512
|
+
|
|
1659
1513
|
const nativeClient = new PlatformAuthInteractionClient(
|
|
1660
1514
|
this.config,
|
|
1661
1515
|
this.browserStorage,
|
|
@@ -1668,7 +1522,7 @@ export class StandardController implements IController {
|
|
|
1668
1522
|
this.platformAuthProvider,
|
|
1669
1523
|
accountId || this.getNativeAccountId(request),
|
|
1670
1524
|
this.nativeInternalStorage,
|
|
1671
|
-
|
|
1525
|
+
correlationId
|
|
1672
1526
|
);
|
|
1673
1527
|
|
|
1674
1528
|
return nativeClient.acquireToken(request, cacheLookupPolicy);
|
|
@@ -1682,10 +1536,12 @@ export class StandardController implements IController {
|
|
|
1682
1536
|
request: RedirectRequest | PopupRequest | SsoSilentRequest,
|
|
1683
1537
|
accountId?: string
|
|
1684
1538
|
): boolean {
|
|
1685
|
-
this.
|
|
1539
|
+
const correlationId = this.getRequestCorrelationId(request);
|
|
1540
|
+
this.logger.trace("canUsePlatformBroker called", correlationId);
|
|
1686
1541
|
if (!this.platformAuthProvider) {
|
|
1687
1542
|
this.logger.trace(
|
|
1688
|
-
"canUsePlatformBroker: platform broker unavilable, returning false"
|
|
1543
|
+
"canUsePlatformBroker: platform broker unavilable, returning false",
|
|
1544
|
+
correlationId
|
|
1689
1545
|
);
|
|
1690
1546
|
return false;
|
|
1691
1547
|
}
|
|
@@ -1694,29 +1550,32 @@ export class StandardController implements IController {
|
|
|
1694
1550
|
!isPlatformAuthAllowed(
|
|
1695
1551
|
this.config,
|
|
1696
1552
|
this.logger,
|
|
1553
|
+
correlationId,
|
|
1697
1554
|
this.platformAuthProvider,
|
|
1698
1555
|
request.authenticationScheme
|
|
1699
1556
|
)
|
|
1700
1557
|
) {
|
|
1701
1558
|
this.logger.trace(
|
|
1702
|
-
"canUsePlatformBroker: isBrokerAvailable returned false, returning false"
|
|
1559
|
+
"canUsePlatformBroker: isBrokerAvailable returned false, returning false",
|
|
1560
|
+
correlationId
|
|
1703
1561
|
);
|
|
1704
1562
|
return false;
|
|
1705
1563
|
}
|
|
1706
1564
|
|
|
1707
1565
|
if (request.prompt) {
|
|
1708
1566
|
switch (request.prompt) {
|
|
1709
|
-
case PromptValue.NONE:
|
|
1710
|
-
case PromptValue.CONSENT:
|
|
1711
|
-
case PromptValue.LOGIN:
|
|
1712
|
-
case PromptValue.SELECT_ACCOUNT:
|
|
1567
|
+
case Constants.PromptValue.NONE:
|
|
1568
|
+
case Constants.PromptValue.CONSENT:
|
|
1569
|
+
case Constants.PromptValue.LOGIN:
|
|
1713
1570
|
this.logger.trace(
|
|
1714
|
-
"canUsePlatformBroker: prompt is compatible with platform broker flow"
|
|
1571
|
+
"canUsePlatformBroker: prompt is compatible with platform broker flow",
|
|
1572
|
+
correlationId
|
|
1715
1573
|
);
|
|
1716
1574
|
break;
|
|
1717
1575
|
default:
|
|
1718
1576
|
this.logger.trace(
|
|
1719
|
-
`canUsePlatformBroker: prompt = ${request.prompt} is not compatible with platform broker flow, returning false
|
|
1577
|
+
`canUsePlatformBroker: prompt = '${request.prompt}' is not compatible with platform broker flow, returning false`,
|
|
1578
|
+
correlationId
|
|
1720
1579
|
);
|
|
1721
1580
|
return false;
|
|
1722
1581
|
}
|
|
@@ -1724,7 +1583,8 @@ export class StandardController implements IController {
|
|
|
1724
1583
|
|
|
1725
1584
|
if (!accountId && !this.getNativeAccountId(request)) {
|
|
1726
1585
|
this.logger.trace(
|
|
1727
|
-
"canUsePlatformBroker: nativeAccountId is not available, returning false"
|
|
1586
|
+
"canUsePlatformBroker: nativeAccountId is not available, returning false",
|
|
1587
|
+
correlationId
|
|
1728
1588
|
);
|
|
1729
1589
|
return false;
|
|
1730
1590
|
}
|
|
@@ -1755,7 +1615,7 @@ export class StandardController implements IController {
|
|
|
1755
1615
|
* Returns new instance of the Popup Interaction Client
|
|
1756
1616
|
* @param correlationId
|
|
1757
1617
|
*/
|
|
1758
|
-
public createPopupClient(correlationId
|
|
1618
|
+
public createPopupClient(correlationId: string): PopupClient {
|
|
1759
1619
|
return new PopupClient(
|
|
1760
1620
|
this.config,
|
|
1761
1621
|
this.browserStorage,
|
|
@@ -1765,8 +1625,8 @@ export class StandardController implements IController {
|
|
|
1765
1625
|
this.navigationClient,
|
|
1766
1626
|
this.performanceClient,
|
|
1767
1627
|
this.nativeInternalStorage,
|
|
1768
|
-
|
|
1769
|
-
|
|
1628
|
+
correlationId,
|
|
1629
|
+
this.platformAuthProvider
|
|
1770
1630
|
);
|
|
1771
1631
|
}
|
|
1772
1632
|
|
|
@@ -1774,7 +1634,7 @@ export class StandardController implements IController {
|
|
|
1774
1634
|
* Returns new instance of the Redirect Interaction Client
|
|
1775
1635
|
* @param correlationId
|
|
1776
1636
|
*/
|
|
1777
|
-
protected createRedirectClient(correlationId
|
|
1637
|
+
protected createRedirectClient(correlationId: string): RedirectClient {
|
|
1778
1638
|
return new RedirectClient(
|
|
1779
1639
|
this.config,
|
|
1780
1640
|
this.browserStorage,
|
|
@@ -1784,8 +1644,8 @@ export class StandardController implements IController {
|
|
|
1784
1644
|
this.navigationClient,
|
|
1785
1645
|
this.performanceClient,
|
|
1786
1646
|
this.nativeInternalStorage,
|
|
1787
|
-
|
|
1788
|
-
|
|
1647
|
+
correlationId,
|
|
1648
|
+
this.platformAuthProvider
|
|
1789
1649
|
);
|
|
1790
1650
|
}
|
|
1791
1651
|
|
|
@@ -1793,9 +1653,7 @@ export class StandardController implements IController {
|
|
|
1793
1653
|
* Returns new instance of the Silent Iframe Interaction Client
|
|
1794
1654
|
* @param correlationId
|
|
1795
1655
|
*/
|
|
1796
|
-
public createSilentIframeClient(
|
|
1797
|
-
correlationId?: string
|
|
1798
|
-
): SilentIframeClient {
|
|
1656
|
+
public createSilentIframeClient(correlationId: string): SilentIframeClient {
|
|
1799
1657
|
return new SilentIframeClient(
|
|
1800
1658
|
this.config,
|
|
1801
1659
|
this.browserStorage,
|
|
@@ -1806,8 +1664,8 @@ export class StandardController implements IController {
|
|
|
1806
1664
|
ApiId.ssoSilent,
|
|
1807
1665
|
this.performanceClient,
|
|
1808
1666
|
this.nativeInternalStorage,
|
|
1809
|
-
|
|
1810
|
-
|
|
1667
|
+
correlationId,
|
|
1668
|
+
this.platformAuthProvider
|
|
1811
1669
|
);
|
|
1812
1670
|
}
|
|
1813
1671
|
|
|
@@ -1815,7 +1673,7 @@ export class StandardController implements IController {
|
|
|
1815
1673
|
* Returns new instance of the Silent Cache Interaction Client
|
|
1816
1674
|
*/
|
|
1817
1675
|
protected createSilentCacheClient(
|
|
1818
|
-
correlationId
|
|
1676
|
+
correlationId: string
|
|
1819
1677
|
): SilentCacheClient {
|
|
1820
1678
|
return new SilentCacheClient(
|
|
1821
1679
|
this.config,
|
|
@@ -1825,8 +1683,8 @@ export class StandardController implements IController {
|
|
|
1825
1683
|
this.eventHandler,
|
|
1826
1684
|
this.navigationClient,
|
|
1827
1685
|
this.performanceClient,
|
|
1828
|
-
|
|
1829
|
-
|
|
1686
|
+
correlationId,
|
|
1687
|
+
this.platformAuthProvider
|
|
1830
1688
|
);
|
|
1831
1689
|
}
|
|
1832
1690
|
|
|
@@ -1834,7 +1692,7 @@ export class StandardController implements IController {
|
|
|
1834
1692
|
* Returns new instance of the Silent Refresh Interaction Client
|
|
1835
1693
|
*/
|
|
1836
1694
|
protected createSilentRefreshClient(
|
|
1837
|
-
correlationId
|
|
1695
|
+
correlationId: string
|
|
1838
1696
|
): SilentRefreshClient {
|
|
1839
1697
|
return new SilentRefreshClient(
|
|
1840
1698
|
this.config,
|
|
@@ -1844,8 +1702,8 @@ export class StandardController implements IController {
|
|
|
1844
1702
|
this.eventHandler,
|
|
1845
1703
|
this.navigationClient,
|
|
1846
1704
|
this.performanceClient,
|
|
1847
|
-
|
|
1848
|
-
|
|
1705
|
+
correlationId,
|
|
1706
|
+
this.platformAuthProvider
|
|
1849
1707
|
);
|
|
1850
1708
|
}
|
|
1851
1709
|
|
|
@@ -1853,7 +1711,7 @@ export class StandardController implements IController {
|
|
|
1853
1711
|
* Returns new instance of the Silent AuthCode Interaction Client
|
|
1854
1712
|
*/
|
|
1855
1713
|
protected createSilentAuthCodeClient(
|
|
1856
|
-
correlationId
|
|
1714
|
+
correlationId: string
|
|
1857
1715
|
): SilentAuthCodeClient {
|
|
1858
1716
|
return new SilentAuthCodeClient(
|
|
1859
1717
|
this.config,
|
|
@@ -1864,8 +1722,8 @@ export class StandardController implements IController {
|
|
|
1864
1722
|
this.navigationClient,
|
|
1865
1723
|
ApiId.acquireTokenByCode,
|
|
1866
1724
|
this.performanceClient,
|
|
1867
|
-
|
|
1868
|
-
|
|
1725
|
+
correlationId,
|
|
1726
|
+
this.platformAuthProvider
|
|
1869
1727
|
);
|
|
1870
1728
|
}
|
|
1871
1729
|
|
|
@@ -1909,49 +1767,6 @@ export class StandardController implements IController {
|
|
|
1909
1767
|
return this.performanceClient.removePerformanceCallback(callbackId);
|
|
1910
1768
|
}
|
|
1911
1769
|
|
|
1912
|
-
/**
|
|
1913
|
-
* Adds event listener that emits an event when a user account is added or removed from localstorage in a different browser tab or window
|
|
1914
|
-
* @deprecated These events will be raised by default and this method will be removed in a future major version.
|
|
1915
|
-
*/
|
|
1916
|
-
enableAccountStorageEvents(): void {
|
|
1917
|
-
if (
|
|
1918
|
-
this.config.cache.cacheLocation !==
|
|
1919
|
-
BrowserCacheLocation.LocalStorage
|
|
1920
|
-
) {
|
|
1921
|
-
this.logger.info(
|
|
1922
|
-
"Account storage events are only available when cacheLocation is set to localStorage"
|
|
1923
|
-
);
|
|
1924
|
-
return;
|
|
1925
|
-
}
|
|
1926
|
-
|
|
1927
|
-
this.eventHandler.subscribeCrossTab();
|
|
1928
|
-
}
|
|
1929
|
-
|
|
1930
|
-
/**
|
|
1931
|
-
* Removes event listener that emits an event when a user account is added or removed from localstorage in a different browser tab or window
|
|
1932
|
-
* @deprecated These events will be raised by default and this method will be removed in a future major version.
|
|
1933
|
-
*/
|
|
1934
|
-
disableAccountStorageEvents(): void {
|
|
1935
|
-
if (
|
|
1936
|
-
this.config.cache.cacheLocation !==
|
|
1937
|
-
BrowserCacheLocation.LocalStorage
|
|
1938
|
-
) {
|
|
1939
|
-
this.logger.info(
|
|
1940
|
-
"Account storage events are only available when cacheLocation is set to localStorage"
|
|
1941
|
-
);
|
|
1942
|
-
return;
|
|
1943
|
-
}
|
|
1944
|
-
|
|
1945
|
-
this.eventHandler.unsubscribeCrossTab();
|
|
1946
|
-
}
|
|
1947
|
-
|
|
1948
|
-
/**
|
|
1949
|
-
* Gets the token cache for the application.
|
|
1950
|
-
*/
|
|
1951
|
-
getTokenCache(): ITokenCache {
|
|
1952
|
-
return this.tokenCache;
|
|
1953
|
-
}
|
|
1954
|
-
|
|
1955
1770
|
/**
|
|
1956
1771
|
* Returns the logger instance
|
|
1957
1772
|
*/
|
|
@@ -2028,7 +1843,7 @@ export class StandardController implements IController {
|
|
|
2028
1843
|
* Included for fallback for non-browser environments,
|
|
2029
1844
|
* and to ensure this method always returns a string.
|
|
2030
1845
|
*/
|
|
2031
|
-
return
|
|
1846
|
+
return "";
|
|
2032
1847
|
}
|
|
2033
1848
|
|
|
2034
1849
|
// #endregion
|
|
@@ -2078,7 +1893,7 @@ export class StandardController implements IController {
|
|
|
2078
1893
|
): Promise<AuthenticationResult> {
|
|
2079
1894
|
const correlationId = this.getRequestCorrelationId(request);
|
|
2080
1895
|
const atsMeasurement = this.performanceClient.startMeasurement(
|
|
2081
|
-
|
|
1896
|
+
BrowserRootPerformanceEvents.AcquireTokenSilent,
|
|
2082
1897
|
correlationId
|
|
2083
1898
|
);
|
|
2084
1899
|
atsMeasurement.add({
|
|
@@ -2086,26 +1901,24 @@ export class StandardController implements IController {
|
|
|
2086
1901
|
scenarioId: request.scenarioId,
|
|
2087
1902
|
});
|
|
2088
1903
|
|
|
2089
|
-
preflightCheck(this.initialized, atsMeasurement
|
|
1904
|
+
preflightCheck(this.initialized, atsMeasurement);
|
|
2090
1905
|
this.logger.verbose("acquireTokenSilent called", correlationId);
|
|
2091
1906
|
|
|
2092
1907
|
const account = request.account || this.getActiveAccount();
|
|
2093
1908
|
if (!account) {
|
|
2094
1909
|
throw createBrowserAuthError(BrowserAuthErrorCodes.noAccountError);
|
|
2095
1910
|
}
|
|
1911
|
+
atsMeasurement.add({ accountType: getAccountType(account) });
|
|
2096
1912
|
|
|
2097
1913
|
return this.acquireTokenSilentDeduped(request, account, correlationId)
|
|
2098
1914
|
.then((result) => {
|
|
2099
|
-
atsMeasurement.end(
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
undefined,
|
|
2107
|
-
result.account
|
|
2108
|
-
);
|
|
1915
|
+
atsMeasurement.end({
|
|
1916
|
+
success: true,
|
|
1917
|
+
fromCache: result.fromCache,
|
|
1918
|
+
isNativeBroker: result.fromPlatformBroker,
|
|
1919
|
+
accessTokenSize: result.accessToken.length,
|
|
1920
|
+
idTokenSize: result.idToken.length,
|
|
1921
|
+
});
|
|
2109
1922
|
return {
|
|
2110
1923
|
...result,
|
|
2111
1924
|
state: request.state,
|
|
@@ -2122,8 +1935,7 @@ export class StandardController implements IController {
|
|
|
2122
1935
|
{
|
|
2123
1936
|
success: false,
|
|
2124
1937
|
},
|
|
2125
|
-
error
|
|
2126
|
-
account
|
|
1938
|
+
error
|
|
2127
1939
|
);
|
|
2128
1940
|
throw error;
|
|
2129
1941
|
});
|
|
@@ -2164,7 +1976,7 @@ export class StandardController implements IController {
|
|
|
2164
1976
|
|
|
2165
1977
|
const activeRequest = invokeAsync(
|
|
2166
1978
|
this.acquireTokenSilentAsync.bind(this),
|
|
2167
|
-
|
|
1979
|
+
BrowserPerformanceEvents.AcquireTokenSilentAsync,
|
|
2168
1980
|
this.logger,
|
|
2169
1981
|
this.performanceClient,
|
|
2170
1982
|
correlationId
|
|
@@ -2202,11 +2014,6 @@ export class StandardController implements IController {
|
|
|
2202
2014
|
): Promise<AuthenticationResult> {
|
|
2203
2015
|
const trackPageVisibility = () =>
|
|
2204
2016
|
this.trackPageVisibility(request.correlationId);
|
|
2205
|
-
this.performanceClient.addQueueMeasurement(
|
|
2206
|
-
PerformanceEvents.AcquireTokenSilentAsync,
|
|
2207
|
-
request.correlationId
|
|
2208
|
-
);
|
|
2209
|
-
|
|
2210
2017
|
this.eventHandler.emitEvent(
|
|
2211
2018
|
EventType.ACQUIRE_TOKEN_START,
|
|
2212
2019
|
InteractionType.Silent,
|
|
@@ -2224,7 +2031,7 @@ export class StandardController implements IController {
|
|
|
2224
2031
|
|
|
2225
2032
|
const silentRequest = await invokeAsync(
|
|
2226
2033
|
initializeSilentRequest,
|
|
2227
|
-
|
|
2034
|
+
BrowserPerformanceEvents.InitializeSilentRequest,
|
|
2228
2035
|
this.logger,
|
|
2229
2036
|
this.performanceClient,
|
|
2230
2037
|
request.correlationId
|
|
@@ -2258,7 +2065,7 @@ export class StandardController implements IController {
|
|
|
2258
2065
|
);
|
|
2259
2066
|
return invokeAsync(
|
|
2260
2067
|
this.acquireTokenBySilentIframe.bind(this),
|
|
2261
|
-
|
|
2068
|
+
BrowserPerformanceEvents.AcquireTokenBySilentIframe,
|
|
2262
2069
|
this.logger,
|
|
2263
2070
|
this.performanceClient,
|
|
2264
2071
|
silentRequest.correlationId
|
|
@@ -2278,12 +2085,12 @@ export class StandardController implements IController {
|
|
|
2278
2085
|
const [activePromise, activeCorrelationId] =
|
|
2279
2086
|
this.activeIframeRequest;
|
|
2280
2087
|
this.logger.verbose(
|
|
2281
|
-
`Iframe request is already in progress, awaiting resolution for request with correlationId: ${activeCorrelationId}`,
|
|
2088
|
+
`Iframe request is already in progress, awaiting resolution for request with correlationId: '${activeCorrelationId}'`,
|
|
2282
2089
|
silentRequest.correlationId
|
|
2283
2090
|
);
|
|
2284
2091
|
const awaitConcurrentIframeMeasure =
|
|
2285
2092
|
this.performanceClient.startMeasurement(
|
|
2286
|
-
|
|
2093
|
+
BrowserPerformanceEvents.AwaitConcurrentIframe,
|
|
2287
2094
|
silentRequest.correlationId
|
|
2288
2095
|
);
|
|
2289
2096
|
awaitConcurrentIframeMeasure.add({
|
|
@@ -2296,7 +2103,7 @@ export class StandardController implements IController {
|
|
|
2296
2103
|
});
|
|
2297
2104
|
if (activePromiseResult) {
|
|
2298
2105
|
this.logger.verbose(
|
|
2299
|
-
`Parallel iframe request with correlationId: ${activeCorrelationId} succeeded. Retrying cache and/or RT redemption`,
|
|
2106
|
+
`Parallel iframe request with correlationId: '${activeCorrelationId}' succeeded. Retrying cache and/or RT redemption`,
|
|
2300
2107
|
silentRequest.correlationId
|
|
2301
2108
|
);
|
|
2302
2109
|
// Retry cache lookup and/or RT exchange after iframe completes
|
|
@@ -2306,7 +2113,8 @@ export class StandardController implements IController {
|
|
|
2306
2113
|
);
|
|
2307
2114
|
} else {
|
|
2308
2115
|
this.logger.info(
|
|
2309
|
-
`Iframe request with correlationId: ${activeCorrelationId} failed. Interaction is required
|
|
2116
|
+
`Iframe request with correlationId: '${activeCorrelationId}' failed. Interaction is required.`,
|
|
2117
|
+
silentRequest.correlationId
|
|
2310
2118
|
);
|
|
2311
2119
|
// If previous iframe request failed, it's unlikely to succeed this time. Throw original error.
|
|
2312
2120
|
throw refreshTokenError;
|
|
@@ -2319,7 +2127,7 @@ export class StandardController implements IController {
|
|
|
2319
2127
|
);
|
|
2320
2128
|
return invokeAsync(
|
|
2321
2129
|
this.acquireTokenBySilentIframe.bind(this),
|
|
2322
|
-
|
|
2130
|
+
BrowserPerformanceEvents.AcquireTokenBySilentIframe,
|
|
2323
2131
|
this.logger,
|
|
2324
2132
|
this.performanceClient,
|
|
2325
2133
|
silentRequest.correlationId
|
|
@@ -2338,12 +2146,15 @@ export class StandardController implements IController {
|
|
|
2338
2146
|
InteractionType.Silent,
|
|
2339
2147
|
response
|
|
2340
2148
|
);
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2149
|
+
if (request.correlationId) {
|
|
2150
|
+
this.performanceClient.addFields(
|
|
2151
|
+
{
|
|
2152
|
+
fromCache: response.fromCache,
|
|
2153
|
+
isNativeBroker: response.fromPlatformBroker,
|
|
2154
|
+
},
|
|
2155
|
+
request.correlationId
|
|
2156
|
+
);
|
|
2157
|
+
}
|
|
2347
2158
|
|
|
2348
2159
|
return response;
|
|
2349
2160
|
})
|
|
@@ -2379,16 +2190,14 @@ export class StandardController implements IController {
|
|
|
2379
2190
|
isPlatformAuthAllowed(
|
|
2380
2191
|
this.config,
|
|
2381
2192
|
this.logger,
|
|
2193
|
+
silentRequest.correlationId,
|
|
2382
2194
|
this.platformAuthProvider,
|
|
2383
2195
|
silentRequest.authenticationScheme
|
|
2384
2196
|
) &&
|
|
2385
2197
|
silentRequest.account.nativeAccountId
|
|
2386
2198
|
) {
|
|
2387
2199
|
this.logger.verbose(
|
|
2388
|
-
"acquireTokenSilent - attempting to acquire token from native platform"
|
|
2389
|
-
);
|
|
2390
|
-
this.performanceClient.addFields(
|
|
2391
|
-
{ isPlatformBrokerRequest: true },
|
|
2200
|
+
"acquireTokenSilent - attempting to acquire token from native platform",
|
|
2392
2201
|
silentRequest.correlationId
|
|
2393
2202
|
);
|
|
2394
2203
|
return this.acquireTokenNative(
|
|
@@ -2397,17 +2206,11 @@ export class StandardController implements IController {
|
|
|
2397
2206
|
silentRequest.account.nativeAccountId,
|
|
2398
2207
|
cacheLookupPolicy
|
|
2399
2208
|
).catch(async (e: AuthError) => {
|
|
2400
|
-
this.performanceClient.addFields(
|
|
2401
|
-
{
|
|
2402
|
-
brokerErrorName: e.name,
|
|
2403
|
-
brokerErrorCode: e.errorCode,
|
|
2404
|
-
},
|
|
2405
|
-
silentRequest.correlationId
|
|
2406
|
-
);
|
|
2407
2209
|
// If native token acquisition fails for availability reasons fallback to web flow
|
|
2408
2210
|
if (e instanceof NativeAuthError && isFatalNativeAuthError(e)) {
|
|
2409
2211
|
this.logger.verbose(
|
|
2410
|
-
"acquireTokenSilent - native platform unavailable, falling back to web flow"
|
|
2212
|
+
"acquireTokenSilent - native platform unavailable, falling back to web flow",
|
|
2213
|
+
silentRequest.correlationId
|
|
2411
2214
|
);
|
|
2412
2215
|
this.platformAuthProvider = undefined; // Prevent future requests from continuing to attempt
|
|
2413
2216
|
// Cache will not contain tokens, given that previous WAM requests succeeded. Skip cache and RT renewal and go straight to iframe renewal
|
|
@@ -2419,17 +2222,19 @@ export class StandardController implements IController {
|
|
|
2419
2222
|
});
|
|
2420
2223
|
} else {
|
|
2421
2224
|
this.logger.verbose(
|
|
2422
|
-
"acquireTokenSilent - attempting to acquire token from web flow"
|
|
2225
|
+
"acquireTokenSilent - attempting to acquire token from web flow",
|
|
2226
|
+
silentRequest.correlationId
|
|
2423
2227
|
);
|
|
2424
2228
|
// add logs to identify embedded cache retrieval
|
|
2425
2229
|
if (cacheLookupPolicy === CacheLookupPolicy.AccessToken) {
|
|
2426
2230
|
this.logger.verbose(
|
|
2427
|
-
"acquireTokenSilent - cache lookup policy set to AccessToken, attempting to acquire token from local cache"
|
|
2231
|
+
"acquireTokenSilent - cache lookup policy set to AccessToken, attempting to acquire token from local cache",
|
|
2232
|
+
silentRequest.correlationId
|
|
2428
2233
|
);
|
|
2429
2234
|
}
|
|
2430
2235
|
return invokeAsync(
|
|
2431
2236
|
this.acquireTokenFromCache.bind(this),
|
|
2432
|
-
|
|
2237
|
+
BrowserPerformanceEvents.AcquireTokenFromCache,
|
|
2433
2238
|
this.logger,
|
|
2434
2239
|
this.performanceClient,
|
|
2435
2240
|
silentRequest.correlationId
|
|
@@ -2447,7 +2252,7 @@ export class StandardController implements IController {
|
|
|
2447
2252
|
|
|
2448
2253
|
return invokeAsync(
|
|
2449
2254
|
this.acquireTokenByRefreshToken.bind(this),
|
|
2450
|
-
|
|
2255
|
+
BrowserPerformanceEvents.AcquireTokenByRefreshToken,
|
|
2451
2256
|
this.logger,
|
|
2452
2257
|
this.performanceClient,
|
|
2453
2258
|
silentRequest.correlationId
|
|
@@ -2462,10 +2267,10 @@ export class StandardController implements IController {
|
|
|
2462
2267
|
* @param correlationId
|
|
2463
2268
|
*/
|
|
2464
2269
|
private async preGeneratePkceCodes(correlationId: string): Promise<void> {
|
|
2465
|
-
this.logger.verbose("Generating new PKCE codes");
|
|
2270
|
+
this.logger.verbose("Generating new PKCE codes", correlationId);
|
|
2466
2271
|
this.pkceCode = await invokeAsync(
|
|
2467
2272
|
generatePkceCodes,
|
|
2468
|
-
|
|
2273
|
+
BrowserPerformanceEvents.GeneratePkceCodes,
|
|
2469
2274
|
this.logger,
|
|
2470
2275
|
this.performanceClient,
|
|
2471
2276
|
correlationId
|
|
@@ -2480,11 +2285,15 @@ export class StandardController implements IController {
|
|
|
2480
2285
|
private getPreGeneratedPkceCodes(
|
|
2481
2286
|
correlationId: string
|
|
2482
2287
|
): PkceCodes | undefined {
|
|
2483
|
-
this.logger.verbose(
|
|
2288
|
+
this.logger.verbose(
|
|
2289
|
+
"Attempting to pick up pre-generated PKCE codes",
|
|
2290
|
+
correlationId
|
|
2291
|
+
);
|
|
2484
2292
|
const res = this.pkceCode ? { ...this.pkceCode } : undefined;
|
|
2485
2293
|
this.pkceCode = undefined;
|
|
2486
2294
|
this.logger.verbose(
|
|
2487
|
-
|
|
2295
|
+
`'${res ? "Found" : "Did not find"}' pre-generated PKCE codes`,
|
|
2296
|
+
correlationId
|
|
2488
2297
|
);
|
|
2489
2298
|
this.performanceClient.addFields(
|
|
2490
2299
|
{ usePreGeneratedPkce: !!res },
|
|
@@ -2494,7 +2303,8 @@ export class StandardController implements IController {
|
|
|
2494
2303
|
}
|
|
2495
2304
|
|
|
2496
2305
|
private logMultipleInstances(
|
|
2497
|
-
performanceEvent: InProgressPerformanceEvent
|
|
2306
|
+
performanceEvent: InProgressPerformanceEvent,
|
|
2307
|
+
correlationId: string
|
|
2498
2308
|
): void {
|
|
2499
2309
|
const clientId = this.config.auth.clientId;
|
|
2500
2310
|
|
|
@@ -2509,12 +2319,18 @@ export class StandardController implements IController {
|
|
|
2509
2319
|
|
|
2510
2320
|
if (clientIds.length > 0) {
|
|
2511
2321
|
this.logger.verbose(
|
|
2512
|
-
"There is already an instance of MSAL.js in the window."
|
|
2322
|
+
"There is already an instance of MSAL.js in the window.",
|
|
2323
|
+
correlationId
|
|
2513
2324
|
);
|
|
2514
2325
|
}
|
|
2515
2326
|
// @ts-ignore
|
|
2516
2327
|
window.msal.clientIds.push(clientId);
|
|
2517
|
-
collectInstanceStats(
|
|
2328
|
+
collectInstanceStats(
|
|
2329
|
+
clientId,
|
|
2330
|
+
performanceEvent,
|
|
2331
|
+
this.logger,
|
|
2332
|
+
correlationId
|
|
2333
|
+
);
|
|
2518
2334
|
}
|
|
2519
2335
|
}
|
|
2520
2336
|
|