@azure/msal-browser 4.13.1 → 4.14.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.mjs +1 -1
- package/dist/app/PublicClientApplication.mjs +1 -1
- package/dist/app/PublicClientNext.mjs +1 -1
- package/dist/broker/nativeBroker/NativeStatusCodes.d.ts +1 -0
- package/dist/broker/nativeBroker/NativeStatusCodes.d.ts.map +1 -1
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs +4 -3
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +6 -6
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs.map +1 -1
- package/dist/cache/AccountManager.d.ts +7 -7
- package/dist/cache/AccountManager.d.ts.map +1 -1
- package/dist/cache/AccountManager.mjs +17 -15
- package/dist/cache/AccountManager.mjs.map +1 -1
- package/dist/cache/AsyncMemoryStorage.mjs +1 -1
- package/dist/cache/BrowserCacheManager.d.ts +44 -30
- package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
- package/dist/cache/BrowserCacheManager.mjs +230 -140
- package/dist/cache/BrowserCacheManager.mjs.map +1 -1
- package/dist/cache/CacheHelpers.mjs +1 -1
- package/dist/cache/CookieStorage.mjs +1 -1
- package/dist/cache/DatabaseStorage.mjs +1 -1
- package/dist/cache/IWindowStorage.d.ts +1 -1
- package/dist/cache/IWindowStorage.d.ts.map +1 -1
- package/dist/cache/LocalStorage.d.ts +1 -1
- package/dist/cache/LocalStorage.d.ts.map +1 -1
- package/dist/cache/LocalStorage.mjs +4 -3
- package/dist/cache/LocalStorage.mjs.map +1 -1
- package/dist/cache/MemoryStorage.mjs +1 -1
- package/dist/cache/SessionStorage.mjs +1 -1
- package/dist/cache/TokenCache.d.ts.map +1 -1
- package/dist/cache/TokenCache.mjs +2 -2
- package/dist/cache/TokenCache.mjs.map +1 -1
- package/dist/config/Configuration.mjs +3 -3
- package/dist/controllers/ControllerFactory.mjs +1 -1
- package/dist/controllers/NestedAppAuthController.d.ts.map +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +19 -11
- package/dist/controllers/NestedAppAuthController.mjs.map +1 -1
- package/dist/controllers/StandardController.d.ts.map +1 -1
- package/dist/controllers/StandardController.mjs +18 -11
- package/dist/controllers/StandardController.mjs.map +1 -1
- package/dist/controllers/UnknownOperatingContextController.mjs +1 -1
- package/dist/crypto/BrowserCrypto.mjs +1 -1
- package/dist/crypto/CryptoOps.d.ts +1 -1
- package/dist/crypto/CryptoOps.d.ts.map +1 -1
- package/dist/crypto/CryptoOps.mjs +5 -3
- package/dist/crypto/CryptoOps.mjs.map +1 -1
- package/dist/crypto/PkceGenerator.mjs +1 -1
- package/dist/crypto/SignedHttpRequest.d.ts.map +1 -1
- package/dist/crypto/SignedHttpRequest.mjs +16 -3
- package/dist/crypto/SignedHttpRequest.mjs.map +1 -1
- package/dist/custom-auth-path/app/IPublicClientApplication.d.ts +55 -0
- package/dist/custom-auth-path/app/IPublicClientApplication.d.ts.map +1 -0
- package/dist/custom-auth-path/app/PublicClientApplication.d.ts +297 -0
- package/dist/custom-auth-path/app/PublicClientApplication.d.ts.map +1 -0
- package/dist/custom-auth-path/app/PublicClientApplication.mjs +346 -0
- package/dist/custom-auth-path/app/PublicClientApplication.mjs.map +1 -0
- package/dist/custom-auth-path/app/PublicClientNext.d.ts +278 -0
- package/dist/custom-auth-path/app/PublicClientNext.d.ts.map +1 -0
- package/dist/custom-auth-path/broker/nativeBroker/IPlatformAuthHandler.d.ts +12 -0
- package/dist/custom-auth-path/broker/nativeBroker/IPlatformAuthHandler.d.ts.map +1 -0
- package/dist/custom-auth-path/broker/nativeBroker/NativeStatusCodes.d.ts +9 -0
- package/dist/custom-auth-path/broker/nativeBroker/NativeStatusCodes.d.ts.map +1 -0
- package/dist/custom-auth-path/broker/nativeBroker/NativeStatusCodes.mjs +17 -0
- package/dist/custom-auth-path/broker/nativeBroker/NativeStatusCodes.mjs.map +1 -0
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthDOMHandler.d.ts +30 -0
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthDOMHandler.d.ts.map +1 -0
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthDOMHandler.mjs +143 -0
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthDOMHandler.mjs.map +1 -0
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthExtensionHandler.d.ts +63 -0
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthExtensionHandler.d.ts.map +1 -0
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +274 -0
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthExtensionHandler.mjs.map +1 -0
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthProvider.d.ts +26 -0
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthProvider.d.ts.map +1 -0
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthProvider.mjs +90 -0
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthProvider.mjs.map +1 -0
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthRequest.d.ts +78 -0
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthRequest.d.ts.map +1 -0
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthResponse.d.ts +71 -0
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthResponse.d.ts.map +1 -0
- package/dist/custom-auth-path/cache/AccountManager.d.ts +49 -0
- package/dist/custom-auth-path/cache/AccountManager.d.ts.map +1 -0
- package/dist/custom-auth-path/cache/AccountManager.mjs +133 -0
- package/dist/custom-auth-path/cache/AccountManager.mjs.map +1 -0
- package/dist/custom-auth-path/cache/AsyncMemoryStorage.d.ts +51 -0
- package/dist/custom-auth-path/cache/AsyncMemoryStorage.d.ts.map +1 -0
- package/dist/custom-auth-path/cache/AsyncMemoryStorage.mjs +141 -0
- package/dist/custom-auth-path/cache/AsyncMemoryStorage.mjs.map +1 -0
- package/dist/custom-auth-path/cache/BrowserCacheManager.d.ts +297 -0
- package/dist/custom-auth-path/cache/BrowserCacheManager.d.ts.map +1 -0
- package/dist/custom-auth-path/cache/BrowserCacheManager.mjs +989 -0
- package/dist/custom-auth-path/cache/BrowserCacheManager.mjs.map +1 -0
- package/dist/custom-auth-path/cache/CacheHelpers.d.ts +16 -0
- package/dist/custom-auth-path/cache/CacheHelpers.d.ts.map +1 -0
- package/dist/custom-auth-path/cache/CacheHelpers.mjs +46 -0
- package/dist/custom-auth-path/cache/CacheHelpers.mjs.map +1 -0
- package/dist/custom-auth-path/cache/CookieStorage.d.ts +22 -0
- package/dist/custom-auth-path/cache/CookieStorage.d.ts.map +1 -0
- package/dist/custom-auth-path/cache/CookieStorage.mjs +78 -0
- package/dist/custom-auth-path/cache/CookieStorage.mjs.map +1 -0
- package/dist/custom-auth-path/cache/DatabaseStorage.d.ts +57 -0
- package/dist/custom-auth-path/cache/DatabaseStorage.d.ts.map +1 -0
- package/dist/custom-auth-path/cache/DatabaseStorage.mjs +209 -0
- package/dist/custom-auth-path/cache/DatabaseStorage.mjs.map +1 -0
- package/dist/custom-auth-path/cache/IAsyncStorage.d.ts +28 -0
- package/dist/custom-auth-path/cache/IAsyncStorage.d.ts.map +1 -0
- package/dist/custom-auth-path/cache/ITokenCache.d.ts +12 -0
- package/dist/custom-auth-path/cache/ITokenCache.d.ts.map +1 -0
- package/dist/custom-auth-path/cache/IWindowStorage.d.ts +40 -0
- package/dist/custom-auth-path/cache/IWindowStorage.d.ts.map +1 -0
- package/dist/custom-auth-path/cache/LocalStorage.d.ts +49 -0
- package/dist/custom-auth-path/cache/LocalStorage.d.ts.map +1 -0
- package/dist/custom-auth-path/cache/LocalStorage.mjs +264 -0
- package/dist/custom-auth-path/cache/LocalStorage.mjs.map +1 -0
- package/dist/custom-auth-path/cache/MemoryStorage.d.ts +15 -0
- package/dist/custom-auth-path/cache/MemoryStorage.d.ts.map +1 -0
- package/dist/custom-auth-path/cache/MemoryStorage.mjs +45 -0
- package/dist/custom-auth-path/cache/MemoryStorage.mjs.map +1 -0
- package/dist/custom-auth-path/cache/SessionStorage.d.ts +13 -0
- package/dist/custom-auth-path/cache/SessionStorage.d.ts.map +1 -0
- package/dist/custom-auth-path/cache/SessionStorage.mjs +43 -0
- package/dist/custom-auth-path/cache/SessionStorage.mjs.map +1 -0
- package/dist/custom-auth-path/cache/TokenCache.d.ts +78 -0
- package/dist/custom-auth-path/cache/TokenCache.d.ts.map +1 -0
- package/dist/custom-auth-path/cache/TokenCache.mjs +207 -0
- package/dist/custom-auth-path/cache/TokenCache.mjs.map +1 -0
- package/dist/custom-auth-path/config/Configuration.d.ts +228 -0
- package/dist/custom-auth-path/config/Configuration.d.ts.map +1 -0
- package/dist/custom-auth-path/config/Configuration.mjs +141 -0
- package/dist/custom-auth-path/config/Configuration.mjs.map +1 -0
- package/dist/custom-auth-path/controllers/ControllerFactory.d.ts +6 -0
- package/dist/custom-auth-path/controllers/ControllerFactory.d.ts.map +1 -0
- package/dist/custom-auth-path/controllers/ControllerFactory.mjs +17 -0
- package/dist/custom-auth-path/controllers/ControllerFactory.mjs.map +1 -0
- package/dist/custom-auth-path/controllers/IController.d.ts +59 -0
- package/dist/custom-auth-path/controllers/IController.d.ts.map +1 -0
- package/dist/custom-auth-path/controllers/NestedAppAuthController.d.ts +203 -0
- package/dist/custom-auth-path/controllers/NestedAppAuthController.d.ts.map +1 -0
- package/dist/custom-auth-path/controllers/StandardController.d.ts +425 -0
- package/dist/custom-auth-path/controllers/StandardController.d.ts.map +1 -0
- package/dist/custom-auth-path/controllers/StandardController.mjs +1469 -0
- package/dist/custom-auth-path/controllers/StandardController.mjs.map +1 -0
- package/dist/custom-auth-path/controllers/UnknownOperatingContextController.d.ts +86 -0
- package/dist/custom-auth-path/controllers/UnknownOperatingContextController.d.ts.map +1 -0
- package/dist/custom-auth-path/crypto/BrowserCrypto.d.ts +97 -0
- package/dist/custom-auth-path/crypto/BrowserCrypto.d.ts.map +1 -0
- package/dist/custom-auth-path/crypto/BrowserCrypto.mjs +308 -0
- package/dist/custom-auth-path/crypto/BrowserCrypto.mjs.map +1 -0
- package/dist/custom-auth-path/crypto/CryptoOps.d.ts +75 -0
- package/dist/custom-auth-path/crypto/CryptoOps.d.ts.map +1 -0
- package/dist/custom-auth-path/crypto/CryptoOps.mjs +191 -0
- package/dist/custom-auth-path/crypto/CryptoOps.mjs.map +1 -0
- package/dist/custom-auth-path/crypto/PkceGenerator.d.ts +9 -0
- package/dist/custom-auth-path/crypto/PkceGenerator.d.ts.map +1 -0
- package/dist/custom-auth-path/crypto/PkceGenerator.mjs +65 -0
- package/dist/custom-auth-path/crypto/PkceGenerator.mjs.map +1 -0
- package/dist/custom-auth-path/crypto/SignedHttpRequest.d.ts +31 -0
- package/dist/custom-auth-path/crypto/SignedHttpRequest.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/CustomAuthActionInputs.d.ts +26 -0
- package/dist/custom-auth-path/custom_auth/CustomAuthActionInputs.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/CustomAuthConstants.d.ts +33 -0
- package/dist/custom-auth-path/custom_auth/CustomAuthConstants.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/CustomAuthConstants.mjs +47 -0
- package/dist/custom-auth-path/custom_auth/CustomAuthConstants.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/CustomAuthPublicClientApplication.d.ts +55 -0
- package/dist/custom-auth-path/custom_auth/CustomAuthPublicClientApplication.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/CustomAuthPublicClientApplication.mjs +97 -0
- package/dist/custom-auth-path/custom_auth/CustomAuthPublicClientApplication.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/ICustomAuthPublicClientApplication.d.ts +33 -0
- package/dist/custom-auth-path/custom_auth/ICustomAuthPublicClientApplication.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/UserAccountAttributes.d.ts +12 -0
- package/dist/custom-auth-path/custom_auth/UserAccountAttributes.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/configuration/CustomAuthConfiguration.d.ts +12 -0
- package/dist/custom-auth-path/custom_auth/configuration/CustomAuthConfiguration.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.d.ts +25 -0
- package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.mjs +274 -0
- package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/controller/ICustomAuthStandardController.d.ts +13 -0
- package/dist/custom-auth-path/custom_auth/controller/ICustomAuthStandardController.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/CustomAuthAuthority.d.ts +29 -0
- package/dist/custom-auth-path/custom_auth/core/CustomAuthAuthority.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/CustomAuthAuthority.mjs +83 -0
- package/dist/custom-auth-path/custom_auth/core/CustomAuthAuthority.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +28 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +105 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowResultBase.d.ts +11 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowResultBase.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +47 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowResultBase.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowState.d.ts +27 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowState.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowState.mjs +45 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowState.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/error/CustomAuthApiError.d.ts +19 -0
- package/dist/custom-auth-path/custom_auth/core/error/CustomAuthApiError.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/error/CustomAuthApiError.mjs +33 -0
- package/dist/custom-auth-path/custom_auth/core/error/CustomAuthApiError.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/error/CustomAuthError.d.ts +9 -0
- package/dist/custom-auth-path/custom_auth/core/error/CustomAuthError.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/error/CustomAuthError.mjs +22 -0
- package/dist/custom-auth-path/custom_auth/core/error/CustomAuthError.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/error/HttpError.d.ts +5 -0
- package/dist/custom-auth-path/custom_auth/core/error/HttpError.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/error/HttpError.mjs +17 -0
- package/dist/custom-auth-path/custom_auth/core/error/HttpError.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/error/HttpErrorCodes.d.ts +3 -0
- package/dist/custom-auth-path/custom_auth/core/error/HttpErrorCodes.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/error/HttpErrorCodes.mjs +11 -0
- package/dist/custom-auth-path/custom_auth/core/error/HttpErrorCodes.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/error/InvalidArgumentError.d.ts +5 -0
- package/dist/custom-auth-path/custom_auth/core/error/InvalidArgumentError.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/error/InvalidArgumentError.mjs +18 -0
- package/dist/custom-auth-path/custom_auth/core/error/InvalidArgumentError.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationError.d.ts +5 -0
- package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationError.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationError.mjs +17 -0
- package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationError.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationErrorCodes.d.ts +4 -0
- package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationErrorCodes.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +12 -0
- package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/error/MethodNotImplementedError.d.ts +5 -0
- package/dist/custom-auth-path/custom_auth/core/error/MethodNotImplementedError.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/error/MethodNotImplementedError.mjs +18 -0
- package/dist/custom-auth-path/custom_auth/core/error/MethodNotImplementedError.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/error/MsalCustomAuthError.d.ts +6 -0
- package/dist/custom-auth-path/custom_auth/core/error/MsalCustomAuthError.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/error/MsalCustomAuthError.mjs +18 -0
- package/dist/custom-auth-path/custom_auth/core/error/MsalCustomAuthError.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/error/NoCachedAccountFoundError.d.ts +5 -0
- package/dist/custom-auth-path/custom_auth/core/error/NoCachedAccountFoundError.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/error/NoCachedAccountFoundError.mjs +17 -0
- package/dist/custom-auth-path/custom_auth/core/error/NoCachedAccountFoundError.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlError.d.ts +5 -0
- package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlError.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlError.mjs +17 -0
- package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlError.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlErrorCodes.d.ts +2 -0
- package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlErrorCodes.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlErrorCodes.mjs +10 -0
- package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlErrorCodes.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/error/UnexpectedError.d.ts +5 -0
- package/dist/custom-auth-path/custom_auth/core/error/UnexpectedError.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/error/UnexpectedError.mjs +30 -0
- package/dist/custom-auth-path/custom_auth/core/error/UnexpectedError.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/error/UnsupportedEnvironmentError.d.ts +5 -0
- package/dist/custom-auth-path/custom_auth/core/error/UnsupportedEnvironmentError.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/error/UnsupportedEnvironmentError.mjs +17 -0
- package/dist/custom-auth-path/custom_auth/core/error/UnsupportedEnvironmentError.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/error/UserAccountAttributeError.d.ts +5 -0
- package/dist/custom-auth-path/custom_auth/core/error/UserAccountAttributeError.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/error/UserAccountAttributeError.mjs +18 -0
- package/dist/custom-auth-path/custom_auth/core/error/UserAccountAttributeError.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/error/UserAccountAttributeErrorCodes.d.ts +2 -0
- package/dist/custom-auth-path/custom_auth/core/error/UserAccountAttributeErrorCodes.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/error/UserAlreadySignedInError.d.ts +5 -0
- package/dist/custom-auth-path/custom_auth/core/error/UserAlreadySignedInError.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/error/UserAlreadySignedInError.mjs +17 -0
- package/dist/custom-auth-path/custom_auth/core/error/UserAlreadySignedInError.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts +24 -0
- package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +47 -0
- package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.d.ts +22 -0
- package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +25 -0
- package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/BaseApiClient.d.ts +14 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/BaseApiClient.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +86 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts +12 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +20 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts +12 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +20 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts +9 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.d.ts +31 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +87 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts +29 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +113 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignupApiClient.d.ts +20 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignupApiClient.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +71 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.d.ts +22 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +29 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiErrorResponseTypes.d.ts +29 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiErrorResponseTypes.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts +65 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts +45 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts +10 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +17 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiTypesBase.d.ts +9 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiTypesBase.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/http_client/FetchHttpClient.d.ts +13 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/http_client/FetchHttpClient.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +54 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/http_client/FetchHttpClient.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/http_client/IHttpClient.d.ts +35 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/http_client/IHttpClient.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/http_client/IHttpClient.mjs +15 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/http_client/IHttpClient.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/telemetry/PublicApiId.d.ts +21 -0
- package/dist/custom-auth-path/custom_auth/core/telemetry/PublicApiId.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/telemetry/PublicApiId.mjs +34 -0
- package/dist/custom-auth-path/custom_auth/core/telemetry/PublicApiId.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/utils/ArgumentValidator.d.ts +3 -0
- package/dist/custom-auth-path/custom_auth/core/utils/ArgumentValidator.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/utils/ArgumentValidator.mjs +21 -0
- package/dist/custom-auth-path/custom_auth/core/utils/ArgumentValidator.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/utils/UrlUtils.d.ts +3 -0
- package/dist/custom-auth-path/custom_auth/core/utils/UrlUtils.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/utils/UrlUtils.mjs +26 -0
- package/dist/custom-auth-path/custom_auth/core/utils/UrlUtils.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/CustomAuthAccountData.d.ts +47 -0
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/CustomAuthAccountData.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +122 -0
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/error_type/GetAccountError.d.ts +32 -0
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/error_type/GetAccountError.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +47 -0
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.d.ts +37 -0
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +48 -0
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/GetAccountResult.d.ts +36 -0
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/GetAccountResult.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +47 -0
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/SignOutResult.d.ts +35 -0
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/SignOutResult.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +47 -0
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/SignOutResult.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/GetAccessTokenState.d.ts +12 -0
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/GetAccessTokenState.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +21 -0
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/GetAccountState.d.ts +12 -0
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/GetAccountState.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +21 -0
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/GetAccountState.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/SignOutState.d.ts +12 -0
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/SignOutState.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/SignOutState.mjs +21 -0
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/SignOutState.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.d.ts +21 -0
- package/dist/custom-auth-path/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +122 -0
- package/dist/custom-auth-path/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/index.d.ts +69 -0
- package/dist/custom-auth-path/custom_auth/index.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/index.mjs +57 -0
- package/dist/custom-auth-path/custom_auth/index.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/operating_context/CustomAuthOperatingContext.d.ts +13 -0
- package/dist/custom-auth-path/custom_auth/operating_context/CustomAuthOperatingContext.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/operating_context/CustomAuthOperatingContext.mjs +35 -0
- package/dist/custom-auth-path/custom_auth/operating_context/CustomAuthOperatingContext.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.d.ts +55 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +88 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.d.ts +37 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +51 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.d.ts +37 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +48 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.d.ts +37 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +48 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.d.ts +32 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +43 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.d.ts +23 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +94 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.d.ts +7 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +16 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.d.ts +7 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +16 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.d.ts +12 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +54 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordState.d.ts +6 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordState.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +25 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts +15 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/reset_password/interaction_client/ResetPasswordClient.d.ts +33 -0
- package/dist/custom-auth-path/custom_auth/reset_password/interaction_client/ResetPasswordClient.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +155 -0
- package/dist/custom-auth-path/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/reset_password/interaction_client/parameter/ResetPasswordParams.d.ts +19 -0
- package/dist/custom-auth-path/custom_auth/reset_password/interaction_client/parameter/ResetPasswordParams.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/reset_password/interaction_client/result/ResetPasswordActionResult.d.ts +14 -0
- package/dist/custom-auth-path/custom_auth/reset_password/interaction_client/result/ResetPasswordActionResult.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/SignInScenario.d.ts +6 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/SignInScenario.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/SignInScenario.mjs +13 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/SignInScenario.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/error_type/SignInError.d.ts +50 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/error_type/SignInError.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +76 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.d.ts +37 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +48 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts +54 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +62 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts +25 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +41 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts +21 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.mjs +24 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts +20 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +36 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts +29 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +95 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCompletedState.d.ts +8 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCompletedState.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +17 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts +13 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +46 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInFailedState.d.ts +7 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInFailedState.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +16 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.d.ts +17 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +54 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInState.d.ts +6 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInState.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInState.mjs +26 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInState.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts +20 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.d.ts +48 -0
- package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.mjs +191 -0
- package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/parameter/SignInParams.d.ts +29 -0
- package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/parameter/SignInParams.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts +30 -0
- package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +30 -0
- package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/error_type/SignUpError.d.ts +87 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/error_type/SignUpError.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +126 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.d.ts +37 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +51 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResult.d.ts +53 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResult.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +62 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.d.ts +37 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +48 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.d.ts +53 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +62 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.d.ts +45 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +55 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.d.ts +21 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +74 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.d.ts +28 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +139 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.d.ts +7 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +16 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpFailedState.d.ts +7 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpFailedState.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +16 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.d.ts +12 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +77 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpState.d.ts +6 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpState.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +26 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpState.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts +20 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/SignUpClient.d.ts +41 -0
- package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/SignUpClient.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/SignUpClient.mjs +241 -0
- package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/SignUpClient.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/parameter/SignUpParams.d.ts +26 -0
- package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/parameter/SignUpParams.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/result/SignUpActionResult.d.ts +34 -0
- package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/result/SignUpActionResult.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +37 -0
- package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs.map +1 -0
- package/dist/custom-auth-path/encode/Base64Decode.d.ts +15 -0
- package/dist/custom-auth-path/encode/Base64Decode.d.ts.map +1 -0
- package/dist/custom-auth-path/encode/Base64Decode.mjs +44 -0
- package/dist/custom-auth-path/encode/Base64Decode.mjs.map +1 -0
- package/dist/custom-auth-path/encode/Base64Encode.d.ts +20 -0
- package/dist/custom-auth-path/encode/Base64Encode.d.ts.map +1 -0
- package/dist/custom-auth-path/encode/Base64Encode.mjs +48 -0
- package/dist/custom-auth-path/encode/Base64Encode.mjs.map +1 -0
- package/dist/custom-auth-path/error/BrowserAuthError.d.ts +257 -0
- package/dist/custom-auth-path/error/BrowserAuthError.d.ts.map +1 -0
- package/dist/custom-auth-path/error/BrowserAuthError.mjs +82 -0
- package/dist/custom-auth-path/error/BrowserAuthError.mjs.map +1 -0
- package/dist/custom-auth-path/error/BrowserAuthErrorCodes.d.ts +52 -0
- package/dist/custom-auth-path/error/BrowserAuthErrorCodes.d.ts.map +1 -0
- package/dist/custom-auth-path/error/BrowserAuthErrorCodes.mjs +60 -0
- package/dist/custom-auth-path/error/BrowserAuthErrorCodes.mjs.map +1 -0
- package/dist/custom-auth-path/error/BrowserConfigurationAuthError.d.ts +34 -0
- package/dist/custom-auth-path/error/BrowserConfigurationAuthError.d.ts.map +1 -0
- package/dist/custom-auth-path/error/BrowserConfigurationAuthError.mjs +30 -0
- package/dist/custom-auth-path/error/BrowserConfigurationAuthError.mjs.map +1 -0
- package/dist/custom-auth-path/error/BrowserConfigurationAuthErrorCodes.d.ts +4 -0
- package/dist/custom-auth-path/error/BrowserConfigurationAuthErrorCodes.d.ts.map +1 -0
- package/dist/custom-auth-path/error/BrowserConfigurationAuthErrorCodes.mjs +12 -0
- package/dist/custom-auth-path/error/BrowserConfigurationAuthErrorCodes.mjs.map +1 -0
- package/dist/custom-auth-path/error/NativeAuthError.d.ts +30 -0
- package/dist/custom-auth-path/error/NativeAuthError.d.ts.map +1 -0
- package/dist/custom-auth-path/error/NativeAuthError.mjs +73 -0
- package/dist/custom-auth-path/error/NativeAuthError.mjs.map +1 -0
- package/dist/custom-auth-path/error/NativeAuthErrorCodes.d.ts +3 -0
- package/dist/custom-auth-path/error/NativeAuthErrorCodes.d.ts.map +1 -0
- package/dist/custom-auth-path/error/NativeAuthErrorCodes.mjs +11 -0
- package/dist/custom-auth-path/error/NativeAuthErrorCodes.mjs.map +1 -0
- package/dist/custom-auth-path/error/NestedAppAuthError.d.ts +15 -0
- package/dist/custom-auth-path/error/NestedAppAuthError.d.ts.map +1 -0
- package/dist/custom-auth-path/event/EventHandler.d.ts +49 -0
- package/dist/custom-auth-path/event/EventHandler.d.ts.map +1 -0
- package/dist/custom-auth-path/event/EventHandler.mjs +112 -0
- package/dist/custom-auth-path/event/EventHandler.mjs.map +1 -0
- package/dist/custom-auth-path/event/EventMessage.d.ts +40 -0
- package/dist/custom-auth-path/event/EventMessage.d.ts.map +1 -0
- package/dist/custom-auth-path/event/EventType.d.ts +31 -0
- package/dist/custom-auth-path/event/EventType.d.ts.map +1 -0
- package/dist/custom-auth-path/event/EventType.mjs +38 -0
- package/dist/custom-auth-path/event/EventType.mjs.map +1 -0
- package/dist/custom-auth-path/index.d.ts +45 -0
- package/dist/custom-auth-path/index.d.ts.map +1 -0
- package/dist/custom-auth-path/interaction_client/BaseInteractionClient.d.ts +59 -0
- package/dist/custom-auth-path/interaction_client/BaseInteractionClient.d.ts.map +1 -0
- package/dist/custom-auth-path/interaction_client/BaseInteractionClient.mjs +128 -0
- package/dist/custom-auth-path/interaction_client/BaseInteractionClient.mjs.map +1 -0
- package/dist/custom-auth-path/interaction_client/HybridSpaAuthorizationCodeClient.d.ts +5 -0
- package/dist/custom-auth-path/interaction_client/HybridSpaAuthorizationCodeClient.d.ts.map +1 -0
- package/dist/custom-auth-path/interaction_client/HybridSpaAuthorizationCodeClient.mjs +17 -0
- package/dist/custom-auth-path/interaction_client/HybridSpaAuthorizationCodeClient.mjs.map +1 -0
- package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.d.ts +149 -0
- package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -0
- package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.mjs +630 -0
- package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -0
- package/dist/custom-auth-path/interaction_client/PopupClient.d.ts +120 -0
- package/dist/custom-auth-path/interaction_client/PopupClient.d.ts.map +1 -0
- package/dist/custom-auth-path/interaction_client/PopupClient.mjs +469 -0
- package/dist/custom-auth-path/interaction_client/PopupClient.mjs.map +1 -0
- package/dist/custom-auth-path/interaction_client/RedirectClient.d.ts +68 -0
- package/dist/custom-auth-path/interaction_client/RedirectClient.d.ts.map +1 -0
- package/dist/custom-auth-path/interaction_client/RedirectClient.mjs +427 -0
- package/dist/custom-auth-path/interaction_client/RedirectClient.mjs.map +1 -0
- package/dist/custom-auth-path/interaction_client/SilentAuthCodeClient.d.ts +24 -0
- package/dist/custom-auth-path/interaction_client/SilentAuthCodeClient.d.ts.map +1 -0
- package/dist/custom-auth-path/interaction_client/SilentAuthCodeClient.mjs +76 -0
- package/dist/custom-auth-path/interaction_client/SilentAuthCodeClient.mjs.map +1 -0
- package/dist/custom-auth-path/interaction_client/SilentCacheClient.d.ts +17 -0
- package/dist/custom-auth-path/interaction_client/SilentCacheClient.d.ts.map +1 -0
- package/dist/custom-auth-path/interaction_client/SilentCacheClient.mjs +58 -0
- package/dist/custom-auth-path/interaction_client/SilentCacheClient.mjs.map +1 -0
- package/dist/custom-auth-path/interaction_client/SilentIframeClient.d.ts +43 -0
- package/dist/custom-auth-path/interaction_client/SilentIframeClient.d.ts.map +1 -0
- package/dist/custom-auth-path/interaction_client/SilentIframeClient.mjs +154 -0
- package/dist/custom-auth-path/interaction_client/SilentIframeClient.mjs.map +1 -0
- package/dist/custom-auth-path/interaction_client/SilentRefreshClient.d.ts +32 -0
- package/dist/custom-auth-path/interaction_client/SilentRefreshClient.d.ts.map +1 -0
- package/dist/custom-auth-path/interaction_client/SilentRefreshClient.mjs +75 -0
- package/dist/custom-auth-path/interaction_client/SilentRefreshClient.mjs.map +1 -0
- package/dist/custom-auth-path/interaction_client/StandardInteractionClient.d.ts +64 -0
- package/dist/custom-auth-path/interaction_client/StandardInteractionClient.d.ts.map +1 -0
- package/dist/custom-auth-path/interaction_client/StandardInteractionClient.mjs +209 -0
- package/dist/custom-auth-path/interaction_client/StandardInteractionClient.mjs.map +1 -0
- package/dist/custom-auth-path/interaction_handler/InteractionHandler.d.ts +33 -0
- package/dist/custom-auth-path/interaction_handler/InteractionHandler.d.ts.map +1 -0
- package/dist/custom-auth-path/interaction_handler/InteractionHandler.mjs +102 -0
- package/dist/custom-auth-path/interaction_handler/InteractionHandler.mjs.map +1 -0
- package/dist/custom-auth-path/interaction_handler/SilentHandler.d.ts +16 -0
- package/dist/custom-auth-path/interaction_handler/SilentHandler.d.ts.map +1 -0
- package/dist/custom-auth-path/interaction_handler/SilentHandler.mjs +154 -0
- package/dist/custom-auth-path/interaction_handler/SilentHandler.mjs.map +1 -0
- package/dist/custom-auth-path/naa/AccountInfo.d.ts +12 -0
- package/dist/custom-auth-path/naa/AccountInfo.d.ts.map +1 -0
- package/dist/custom-auth-path/naa/AuthBridge.d.ts +9 -0
- package/dist/custom-auth-path/naa/AuthBridge.d.ts.map +1 -0
- package/dist/custom-auth-path/naa/AuthResult.d.ts +7 -0
- package/dist/custom-auth-path/naa/AuthResult.d.ts.map +1 -0
- package/dist/custom-auth-path/naa/BridgeAccountContext.d.ts +13 -0
- package/dist/custom-auth-path/naa/BridgeAccountContext.d.ts.map +1 -0
- package/dist/custom-auth-path/naa/BridgeCapabilities.d.ts +4 -0
- package/dist/custom-auth-path/naa/BridgeCapabilities.d.ts.map +1 -0
- package/dist/custom-auth-path/naa/BridgeError.d.ts +10 -0
- package/dist/custom-auth-path/naa/BridgeError.d.ts.map +1 -0
- package/dist/custom-auth-path/naa/BridgeProxy.d.ts +69 -0
- package/dist/custom-auth-path/naa/BridgeProxy.d.ts.map +1 -0
- package/dist/custom-auth-path/naa/BridgeRequest.d.ts +8 -0
- package/dist/custom-auth-path/naa/BridgeRequest.d.ts.map +1 -0
- package/dist/custom-auth-path/naa/BridgeRequestEnvelope.d.ts +13 -0
- package/dist/custom-auth-path/naa/BridgeRequestEnvelope.d.ts.map +1 -0
- package/dist/custom-auth-path/naa/BridgeResponseEnvelope.d.ts +14 -0
- package/dist/custom-auth-path/naa/BridgeResponseEnvelope.d.ts.map +1 -0
- package/dist/custom-auth-path/naa/BridgeStatusCode.d.ts +12 -0
- package/dist/custom-auth-path/naa/BridgeStatusCode.d.ts.map +1 -0
- package/dist/custom-auth-path/naa/IBridgeProxy.d.ts +11 -0
- package/dist/custom-auth-path/naa/IBridgeProxy.d.ts.map +1 -0
- package/dist/custom-auth-path/naa/InitContext.d.ts +9 -0
- package/dist/custom-auth-path/naa/InitContext.d.ts.map +1 -0
- package/dist/custom-auth-path/naa/TokenRequest.d.ts +19 -0
- package/dist/custom-auth-path/naa/TokenRequest.d.ts.map +1 -0
- package/dist/custom-auth-path/naa/TokenResponse.d.ts +14 -0
- package/dist/custom-auth-path/naa/TokenResponse.d.ts.map +1 -0
- package/dist/custom-auth-path/naa/mapping/NestedAppAuthAdapter.d.ts +36 -0
- package/dist/custom-auth-path/naa/mapping/NestedAppAuthAdapter.d.ts.map +1 -0
- package/dist/custom-auth-path/navigation/INavigationClient.d.ts +17 -0
- package/dist/custom-auth-path/navigation/INavigationClient.d.ts.map +1 -0
- package/dist/custom-auth-path/navigation/NavigationClient.d.ts +23 -0
- package/dist/custom-auth-path/navigation/NavigationClient.d.ts.map +1 -0
- package/dist/custom-auth-path/navigation/NavigationClient.mjs +48 -0
- package/dist/custom-auth-path/navigation/NavigationClient.mjs.map +1 -0
- package/dist/custom-auth-path/navigation/NavigationOptions.d.ts +13 -0
- package/dist/custom-auth-path/navigation/NavigationOptions.d.ts.map +1 -0
- package/dist/custom-auth-path/network/FetchClient.d.ts +21 -0
- package/dist/custom-auth-path/network/FetchClient.d.ts.map +1 -0
- package/dist/custom-auth-path/network/FetchClient.mjs +128 -0
- package/dist/custom-auth-path/network/FetchClient.mjs.map +1 -0
- package/dist/custom-auth-path/operatingcontext/BaseOperatingContext.d.ts +42 -0
- package/dist/custom-auth-path/operatingcontext/BaseOperatingContext.d.ts.map +1 -0
- package/dist/custom-auth-path/operatingcontext/BaseOperatingContext.mjs +104 -0
- package/dist/custom-auth-path/operatingcontext/BaseOperatingContext.mjs.map +1 -0
- package/dist/custom-auth-path/operatingcontext/NestedAppOperatingContext.d.ts +40 -0
- package/dist/custom-auth-path/operatingcontext/NestedAppOperatingContext.d.ts.map +1 -0
- package/dist/custom-auth-path/operatingcontext/StandardOperatingContext.d.ts +26 -0
- package/dist/custom-auth-path/operatingcontext/StandardOperatingContext.d.ts.map +1 -0
- package/dist/custom-auth-path/operatingcontext/StandardOperatingContext.mjs +50 -0
- package/dist/custom-auth-path/operatingcontext/StandardOperatingContext.mjs.map +1 -0
- package/dist/custom-auth-path/operatingcontext/UnknownOperatingContext.d.ts +26 -0
- package/dist/custom-auth-path/operatingcontext/UnknownOperatingContext.d.ts.map +1 -0
- package/dist/custom-auth-path/packageMetadata.d.ts +3 -0
- package/dist/custom-auth-path/packageMetadata.d.ts.map +1 -0
- package/dist/custom-auth-path/packageMetadata.mjs +8 -0
- package/dist/custom-auth-path/packageMetadata.mjs.map +1 -0
- package/dist/custom-auth-path/protocol/Authorize.d.ts +65 -0
- package/dist/custom-auth-path/protocol/Authorize.d.ts.map +1 -0
- package/dist/custom-auth-path/protocol/Authorize.mjs +218 -0
- package/dist/custom-auth-path/protocol/Authorize.mjs.map +1 -0
- package/dist/custom-auth-path/request/AuthorizationCodeRequest.d.ts +9 -0
- package/dist/custom-auth-path/request/AuthorizationCodeRequest.d.ts.map +1 -0
- package/dist/custom-auth-path/request/AuthorizationUrlRequest.d.ts +7 -0
- package/dist/custom-auth-path/request/AuthorizationUrlRequest.d.ts.map +1 -0
- package/dist/custom-auth-path/request/ClearCacheRequest.d.ts +11 -0
- package/dist/custom-auth-path/request/ClearCacheRequest.d.ts.map +1 -0
- package/dist/custom-auth-path/request/EndSessionPopupRequest.d.ts +21 -0
- package/dist/custom-auth-path/request/EndSessionPopupRequest.d.ts.map +1 -0
- package/dist/custom-auth-path/request/EndSessionRequest.d.ts +16 -0
- package/dist/custom-auth-path/request/EndSessionRequest.d.ts.map +1 -0
- package/dist/custom-auth-path/request/InitializeApplicationRequest.d.ts +9 -0
- package/dist/custom-auth-path/request/InitializeApplicationRequest.d.ts.map +1 -0
- package/dist/custom-auth-path/request/PopupRequest.d.ts +36 -0
- package/dist/custom-auth-path/request/PopupRequest.d.ts.map +1 -0
- package/dist/custom-auth-path/request/PopupWindowAttributes.d.ts +16 -0
- package/dist/custom-auth-path/request/PopupWindowAttributes.d.ts.map +1 -0
- package/dist/custom-auth-path/request/RedirectRequest.d.ts +40 -0
- package/dist/custom-auth-path/request/RedirectRequest.d.ts.map +1 -0
- package/dist/custom-auth-path/request/RequestHelpers.d.ts +14 -0
- package/dist/custom-auth-path/request/RequestHelpers.d.ts.map +1 -0
- package/dist/custom-auth-path/request/RequestHelpers.mjs +61 -0
- package/dist/custom-auth-path/request/RequestHelpers.mjs.map +1 -0
- package/dist/custom-auth-path/request/SilentRequest.d.ts +33 -0
- package/dist/custom-auth-path/request/SilentRequest.d.ts.map +1 -0
- package/dist/custom-auth-path/request/SsoSilentRequest.d.ts +28 -0
- package/dist/custom-auth-path/request/SsoSilentRequest.d.ts.map +1 -0
- package/dist/custom-auth-path/response/AuthenticationResult.d.ts +5 -0
- package/dist/custom-auth-path/response/AuthenticationResult.d.ts.map +1 -0
- package/dist/custom-auth-path/response/ResponseHandler.d.ts +8 -0
- package/dist/custom-auth-path/response/ResponseHandler.d.ts.map +1 -0
- package/dist/custom-auth-path/response/ResponseHandler.mjs +46 -0
- package/dist/custom-auth-path/response/ResponseHandler.mjs.map +1 -0
- package/dist/custom-auth-path/telemetry/BrowserPerformanceClient.d.ts +35 -0
- package/dist/custom-auth-path/telemetry/BrowserPerformanceClient.d.ts.map +1 -0
- package/dist/custom-auth-path/telemetry/BrowserPerformanceMeasurement.d.ts +22 -0
- package/dist/custom-auth-path/telemetry/BrowserPerformanceMeasurement.d.ts.map +1 -0
- package/dist/custom-auth-path/utils/BrowserConstants.d.ts +184 -0
- package/dist/custom-auth-path/utils/BrowserConstants.d.ts.map +1 -0
- package/dist/custom-auth-path/utils/BrowserConstants.mjs +177 -0
- package/dist/custom-auth-path/utils/BrowserConstants.mjs.map +1 -0
- package/dist/custom-auth-path/utils/BrowserProtocolUtils.d.ts +12 -0
- package/dist/custom-auth-path/utils/BrowserProtocolUtils.d.ts.map +1 -0
- package/dist/custom-auth-path/utils/BrowserProtocolUtils.mjs +28 -0
- package/dist/custom-auth-path/utils/BrowserProtocolUtils.mjs.map +1 -0
- package/dist/custom-auth-path/utils/BrowserUtils.d.ts +76 -0
- package/dist/custom-auth-path/utils/BrowserUtils.d.ts.map +1 -0
- package/dist/custom-auth-path/utils/BrowserUtils.mjs +173 -0
- package/dist/custom-auth-path/utils/BrowserUtils.mjs.map +1 -0
- package/dist/custom-auth-path/utils/MsalFrameStatsUtils.d.ts +3 -0
- package/dist/custom-auth-path/utils/MsalFrameStatsUtils.d.ts.map +1 -0
- package/dist/custom-auth-path/utils/MsalFrameStatsUtils.mjs +23 -0
- package/dist/custom-auth-path/utils/MsalFrameStatsUtils.mjs.map +1 -0
- package/dist/custom_auth/CustomAuthActionInputs.d.ts +26 -0
- package/dist/custom_auth/CustomAuthActionInputs.d.ts.map +1 -0
- package/dist/custom_auth/CustomAuthConstants.d.ts +33 -0
- package/dist/custom_auth/CustomAuthConstants.d.ts.map +1 -0
- package/dist/custom_auth/CustomAuthPublicClientApplication.d.ts +55 -0
- package/dist/custom_auth/CustomAuthPublicClientApplication.d.ts.map +1 -0
- package/dist/custom_auth/ICustomAuthPublicClientApplication.d.ts +33 -0
- package/dist/custom_auth/ICustomAuthPublicClientApplication.d.ts.map +1 -0
- package/dist/custom_auth/UserAccountAttributes.d.ts +12 -0
- package/dist/custom_auth/UserAccountAttributes.d.ts.map +1 -0
- package/dist/custom_auth/configuration/CustomAuthConfiguration.d.ts +12 -0
- package/dist/custom_auth/configuration/CustomAuthConfiguration.d.ts.map +1 -0
- package/dist/custom_auth/controller/CustomAuthStandardController.d.ts +25 -0
- package/dist/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -0
- package/dist/custom_auth/controller/ICustomAuthStandardController.d.ts +13 -0
- package/dist/custom_auth/controller/ICustomAuthStandardController.d.ts.map +1 -0
- package/dist/custom_auth/core/CustomAuthAuthority.d.ts +29 -0
- package/dist/custom_auth/core/CustomAuthAuthority.d.ts.map +1 -0
- package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +28 -0
- package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -0
- package/dist/custom_auth/core/auth_flow/AuthFlowResultBase.d.ts +11 -0
- package/dist/custom_auth/core/auth_flow/AuthFlowResultBase.d.ts.map +1 -0
- package/dist/custom_auth/core/auth_flow/AuthFlowState.d.ts +27 -0
- package/dist/custom_auth/core/auth_flow/AuthFlowState.d.ts.map +1 -0
- package/dist/custom_auth/core/error/CustomAuthApiError.d.ts +19 -0
- package/dist/custom_auth/core/error/CustomAuthApiError.d.ts.map +1 -0
- package/dist/custom_auth/core/error/CustomAuthError.d.ts +9 -0
- package/dist/custom_auth/core/error/CustomAuthError.d.ts.map +1 -0
- package/dist/custom_auth/core/error/HttpError.d.ts +5 -0
- package/dist/custom_auth/core/error/HttpError.d.ts.map +1 -0
- package/dist/custom_auth/core/error/HttpErrorCodes.d.ts +3 -0
- package/dist/custom_auth/core/error/HttpErrorCodes.d.ts.map +1 -0
- package/dist/custom_auth/core/error/InvalidArgumentError.d.ts +5 -0
- package/dist/custom_auth/core/error/InvalidArgumentError.d.ts.map +1 -0
- package/dist/custom_auth/core/error/InvalidConfigurationError.d.ts +5 -0
- package/dist/custom_auth/core/error/InvalidConfigurationError.d.ts.map +1 -0
- package/dist/custom_auth/core/error/InvalidConfigurationErrorCodes.d.ts +4 -0
- package/dist/custom_auth/core/error/InvalidConfigurationErrorCodes.d.ts.map +1 -0
- package/dist/custom_auth/core/error/MethodNotImplementedError.d.ts +5 -0
- package/dist/custom_auth/core/error/MethodNotImplementedError.d.ts.map +1 -0
- package/dist/custom_auth/core/error/MsalCustomAuthError.d.ts +6 -0
- package/dist/custom_auth/core/error/MsalCustomAuthError.d.ts.map +1 -0
- package/dist/custom_auth/core/error/NoCachedAccountFoundError.d.ts +5 -0
- package/dist/custom_auth/core/error/NoCachedAccountFoundError.d.ts.map +1 -0
- package/dist/custom_auth/core/error/ParsedUrlError.d.ts +5 -0
- package/dist/custom_auth/core/error/ParsedUrlError.d.ts.map +1 -0
- package/dist/custom_auth/core/error/ParsedUrlErrorCodes.d.ts +2 -0
- package/dist/custom_auth/core/error/ParsedUrlErrorCodes.d.ts.map +1 -0
- package/dist/custom_auth/core/error/UnexpectedError.d.ts +5 -0
- package/dist/custom_auth/core/error/UnexpectedError.d.ts.map +1 -0
- package/dist/custom_auth/core/error/UnsupportedEnvironmentError.d.ts +5 -0
- package/dist/custom_auth/core/error/UnsupportedEnvironmentError.d.ts.map +1 -0
- package/dist/custom_auth/core/error/UserAccountAttributeError.d.ts +5 -0
- package/dist/custom_auth/core/error/UserAccountAttributeError.d.ts.map +1 -0
- package/dist/custom_auth/core/error/UserAccountAttributeErrorCodes.d.ts +2 -0
- package/dist/custom_auth/core/error/UserAccountAttributeErrorCodes.d.ts.map +1 -0
- package/dist/custom_auth/core/error/UserAlreadySignedInError.d.ts +5 -0
- package/dist/custom_auth/core/error/UserAlreadySignedInError.d.ts.map +1 -0
- package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts +24 -0
- package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts.map +1 -0
- package/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.d.ts +22 -0
- package/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.d.ts.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.d.ts +14 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.d.ts.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts +12 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts +12 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts +9 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.d.ts +31 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.d.ts.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts +29 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.d.ts +20 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.d.ts.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.d.ts +22 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.d.ts.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorResponseTypes.d.ts +29 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorResponseTypes.d.ts.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts +65 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts +45 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts +10 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiTypesBase.d.ts +9 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiTypesBase.d.ts.map +1 -0
- package/dist/custom_auth/core/network_client/http_client/FetchHttpClient.d.ts +13 -0
- package/dist/custom_auth/core/network_client/http_client/FetchHttpClient.d.ts.map +1 -0
- package/dist/custom_auth/core/network_client/http_client/IHttpClient.d.ts +35 -0
- package/dist/custom_auth/core/network_client/http_client/IHttpClient.d.ts.map +1 -0
- package/dist/custom_auth/core/telemetry/PublicApiId.d.ts +21 -0
- package/dist/custom_auth/core/telemetry/PublicApiId.d.ts.map +1 -0
- package/dist/custom_auth/core/utils/ArgumentValidator.d.ts +3 -0
- package/dist/custom_auth/core/utils/ArgumentValidator.d.ts.map +1 -0
- package/dist/custom_auth/core/utils/UrlUtils.d.ts +3 -0
- package/dist/custom_auth/core/utils/UrlUtils.d.ts.map +1 -0
- package/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.d.ts +47 -0
- package/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.d.ts.map +1 -0
- package/dist/custom_auth/get_account/auth_flow/error_type/GetAccountError.d.ts +32 -0
- package/dist/custom_auth/get_account/auth_flow/error_type/GetAccountError.d.ts.map +1 -0
- package/dist/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.d.ts +37 -0
- package/dist/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.d.ts.map +1 -0
- package/dist/custom_auth/get_account/auth_flow/result/GetAccountResult.d.ts +36 -0
- package/dist/custom_auth/get_account/auth_flow/result/GetAccountResult.d.ts.map +1 -0
- package/dist/custom_auth/get_account/auth_flow/result/SignOutResult.d.ts +35 -0
- package/dist/custom_auth/get_account/auth_flow/result/SignOutResult.d.ts.map +1 -0
- package/dist/custom_auth/get_account/auth_flow/state/GetAccessTokenState.d.ts +12 -0
- package/dist/custom_auth/get_account/auth_flow/state/GetAccessTokenState.d.ts.map +1 -0
- package/dist/custom_auth/get_account/auth_flow/state/GetAccountState.d.ts +12 -0
- package/dist/custom_auth/get_account/auth_flow/state/GetAccountState.d.ts.map +1 -0
- package/dist/custom_auth/get_account/auth_flow/state/SignOutState.d.ts +12 -0
- package/dist/custom_auth/get_account/auth_flow/state/SignOutState.d.ts.map +1 -0
- package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.d.ts +21 -0
- package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.d.ts.map +1 -0
- package/dist/custom_auth/index.d.ts +69 -0
- package/dist/custom_auth/index.d.ts.map +1 -0
- package/dist/custom_auth/operating_context/CustomAuthOperatingContext.d.ts +13 -0
- package/dist/custom_auth/operating_context/CustomAuthOperatingContext.d.ts.map +1 -0
- package/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.d.ts +55 -0
- package/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.d.ts.map +1 -0
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.d.ts +37 -0
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.d.ts.map +1 -0
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.d.ts +37 -0
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.d.ts.map +1 -0
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.d.ts +37 -0
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.d.ts.map +1 -0
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.d.ts +32 -0
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.d.ts.map +1 -0
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.d.ts +23 -0
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.d.ts.map +1 -0
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.d.ts +7 -0
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.d.ts.map +1 -0
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.d.ts +7 -0
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.d.ts.map +1 -0
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.d.ts +12 -0
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.d.ts.map +1 -0
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordState.d.ts +6 -0
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordState.d.ts.map +1 -0
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts +15 -0
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts.map +1 -0
- package/dist/custom_auth/reset_password/interaction_client/ResetPasswordClient.d.ts +33 -0
- package/dist/custom_auth/reset_password/interaction_client/ResetPasswordClient.d.ts.map +1 -0
- package/dist/custom_auth/reset_password/interaction_client/parameter/ResetPasswordParams.d.ts +19 -0
- package/dist/custom_auth/reset_password/interaction_client/parameter/ResetPasswordParams.d.ts.map +1 -0
- package/dist/custom_auth/reset_password/interaction_client/result/ResetPasswordActionResult.d.ts +14 -0
- package/dist/custom_auth/reset_password/interaction_client/result/ResetPasswordActionResult.d.ts.map +1 -0
- package/dist/custom_auth/sign_in/auth_flow/SignInScenario.d.ts +6 -0
- package/dist/custom_auth/sign_in/auth_flow/SignInScenario.d.ts.map +1 -0
- package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.d.ts +50 -0
- package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.d.ts.map +1 -0
- package/dist/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.d.ts +37 -0
- package/dist/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.d.ts.map +1 -0
- package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts +54 -0
- package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts.map +1 -0
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts +25 -0
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts.map +1 -0
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts +21 -0
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts.map +1 -0
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts +20 -0
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts.map +1 -0
- package/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts +29 -0
- package/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts.map +1 -0
- package/dist/custom_auth/sign_in/auth_flow/state/SignInCompletedState.d.ts +8 -0
- package/dist/custom_auth/sign_in/auth_flow/state/SignInCompletedState.d.ts.map +1 -0
- package/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts +13 -0
- package/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts.map +1 -0
- package/dist/custom_auth/sign_in/auth_flow/state/SignInFailedState.d.ts +7 -0
- package/dist/custom_auth/sign_in/auth_flow/state/SignInFailedState.d.ts.map +1 -0
- package/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.d.ts +17 -0
- package/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.d.ts.map +1 -0
- package/dist/custom_auth/sign_in/auth_flow/state/SignInState.d.ts +6 -0
- package/dist/custom_auth/sign_in/auth_flow/state/SignInState.d.ts.map +1 -0
- package/dist/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts +20 -0
- package/dist/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts.map +1 -0
- package/dist/custom_auth/sign_in/interaction_client/SignInClient.d.ts +48 -0
- package/dist/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -0
- package/dist/custom_auth/sign_in/interaction_client/parameter/SignInParams.d.ts +29 -0
- package/dist/custom_auth/sign_in/interaction_client/parameter/SignInParams.d.ts.map +1 -0
- package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts +30 -0
- package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts.map +1 -0
- package/dist/custom_auth/sign_up/auth_flow/error_type/SignUpError.d.ts +87 -0
- package/dist/custom_auth/sign_up/auth_flow/error_type/SignUpError.d.ts.map +1 -0
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.d.ts +37 -0
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.d.ts.map +1 -0
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpResult.d.ts +53 -0
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpResult.d.ts.map +1 -0
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.d.ts +37 -0
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.d.ts.map +1 -0
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.d.ts +53 -0
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.d.ts.map +1 -0
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.d.ts +45 -0
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.d.ts.map +1 -0
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.d.ts +21 -0
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.d.ts.map +1 -0
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.d.ts +28 -0
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.d.ts.map +1 -0
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.d.ts +7 -0
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.d.ts.map +1 -0
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpFailedState.d.ts +7 -0
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpFailedState.d.ts.map +1 -0
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.d.ts +12 -0
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.d.ts.map +1 -0
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpState.d.ts +6 -0
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpState.d.ts.map +1 -0
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts +20 -0
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts.map +1 -0
- package/dist/custom_auth/sign_up/interaction_client/SignUpClient.d.ts +41 -0
- package/dist/custom_auth/sign_up/interaction_client/SignUpClient.d.ts.map +1 -0
- package/dist/custom_auth/sign_up/interaction_client/parameter/SignUpParams.d.ts +26 -0
- package/dist/custom_auth/sign_up/interaction_client/parameter/SignUpParams.d.ts.map +1 -0
- package/dist/custom_auth/sign_up/interaction_client/result/SignUpActionResult.d.ts +34 -0
- package/dist/custom_auth/sign_up/interaction_client/result/SignUpActionResult.d.ts.map +1 -0
- package/dist/encode/Base64Decode.mjs +1 -1
- package/dist/encode/Base64Encode.mjs +1 -1
- package/dist/error/BrowserAuthError.d.ts +1 -0
- package/dist/error/BrowserAuthError.d.ts.map +1 -1
- package/dist/error/BrowserAuthError.mjs +3 -2
- package/dist/error/BrowserAuthError.mjs.map +1 -1
- package/dist/error/BrowserAuthErrorCodes.d.ts +1 -0
- package/dist/error/BrowserAuthErrorCodes.d.ts.map +1 -1
- package/dist/error/BrowserAuthErrorCodes.mjs +4 -3
- package/dist/error/BrowserAuthErrorCodes.mjs.map +1 -1
- package/dist/error/BrowserConfigurationAuthError.mjs +2 -2
- package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
- package/dist/error/NativeAuthError.d.ts.map +1 -1
- package/dist/error/NativeAuthError.mjs +5 -3
- package/dist/error/NativeAuthError.mjs.map +1 -1
- package/dist/error/NativeAuthErrorCodes.mjs +1 -1
- package/dist/error/NestedAppAuthError.mjs +1 -1
- package/dist/event/EventHandler.mjs +1 -1
- package/dist/event/EventMessage.mjs +1 -1
- package/dist/event/EventType.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/interaction_client/BaseInteractionClient.d.ts +1 -1
- package/dist/interaction_client/BaseInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/BaseInteractionClient.mjs +6 -6
- package/dist/interaction_client/BaseInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
- package/dist/interaction_client/PlatformAuthInteractionClient.d.ts +1 -1
- package/dist/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs +9 -11
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/PopupClient.d.ts.map +1 -1
- package/dist/interaction_client/PopupClient.mjs +3 -3
- package/dist/interaction_client/PopupClient.mjs.map +1 -1
- package/dist/interaction_client/RedirectClient.d.ts.map +1 -1
- package/dist/interaction_client/RedirectClient.mjs +9 -4
- package/dist/interaction_client/RedirectClient.mjs.map +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
- package/dist/interaction_client/SilentCacheClient.d.ts.map +1 -1
- package/dist/interaction_client/SilentCacheClient.mjs +2 -2
- package/dist/interaction_client/SilentCacheClient.mjs.map +1 -1
- package/dist/interaction_client/SilentIframeClient.mjs +1 -1
- package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
- package/dist/interaction_client/StandardInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/StandardInteractionClient.mjs +3 -2
- package/dist/interaction_client/StandardInteractionClient.mjs.map +1 -1
- package/dist/interaction_handler/InteractionHandler.mjs +1 -1
- package/dist/interaction_handler/SilentHandler.mjs +3 -3
- package/dist/naa/BridgeError.mjs +1 -1
- package/dist/naa/BridgeProxy.mjs +1 -1
- package/dist/naa/BridgeStatusCode.mjs +1 -1
- package/dist/naa/mapping/NestedAppAuthAdapter.mjs +2 -2
- package/dist/navigation/NavigationClient.d.ts.map +1 -1
- package/dist/navigation/NavigationClient.mjs +6 -3
- package/dist/navigation/NavigationClient.mjs.map +1 -1
- package/dist/network/FetchClient.mjs +1 -1
- package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
- package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
- package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
- package/dist/operatingcontext/UnknownOperatingContext.mjs +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/protocol/Authorize.mjs +1 -1
- package/dist/request/RequestHelpers.mjs +1 -1
- package/dist/response/ResponseHandler.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
- package/dist/utils/BrowserConstants.mjs +1 -5
- package/dist/utils/BrowserConstants.mjs.map +1 -1
- package/dist/utils/BrowserProtocolUtils.mjs +1 -1
- package/dist/utils/BrowserUtils.mjs +1 -1
- package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
- package/lib/custom-auth-path/msal-custom-auth.cjs +20624 -0
- package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -0
- package/lib/custom-auth-path/types/app/IPublicClientApplication.d.ts +55 -0
- package/lib/custom-auth-path/types/app/IPublicClientApplication.d.ts.map +1 -0
- package/lib/custom-auth-path/types/app/PublicClientApplication.d.ts +297 -0
- package/lib/custom-auth-path/types/app/PublicClientApplication.d.ts.map +1 -0
- package/lib/custom-auth-path/types/app/PublicClientNext.d.ts +278 -0
- package/lib/custom-auth-path/types/app/PublicClientNext.d.ts.map +1 -0
- package/lib/custom-auth-path/types/broker/nativeBroker/IPlatformAuthHandler.d.ts +12 -0
- package/lib/custom-auth-path/types/broker/nativeBroker/IPlatformAuthHandler.d.ts.map +1 -0
- package/lib/custom-auth-path/types/broker/nativeBroker/NativeStatusCodes.d.ts +9 -0
- package/lib/custom-auth-path/types/broker/nativeBroker/NativeStatusCodes.d.ts.map +1 -0
- package/lib/custom-auth-path/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts +30 -0
- package/lib/custom-auth-path/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts.map +1 -0
- package/lib/custom-auth-path/types/broker/nativeBroker/PlatformAuthExtensionHandler.d.ts +63 -0
- package/lib/custom-auth-path/types/broker/nativeBroker/PlatformAuthExtensionHandler.d.ts.map +1 -0
- package/lib/custom-auth-path/types/broker/nativeBroker/PlatformAuthProvider.d.ts +26 -0
- package/lib/custom-auth-path/types/broker/nativeBroker/PlatformAuthProvider.d.ts.map +1 -0
- package/lib/custom-auth-path/types/broker/nativeBroker/PlatformAuthRequest.d.ts +78 -0
- package/lib/custom-auth-path/types/broker/nativeBroker/PlatformAuthRequest.d.ts.map +1 -0
- package/lib/custom-auth-path/types/broker/nativeBroker/PlatformAuthResponse.d.ts +71 -0
- package/lib/custom-auth-path/types/broker/nativeBroker/PlatformAuthResponse.d.ts.map +1 -0
- package/lib/custom-auth-path/types/cache/AccountManager.d.ts +49 -0
- package/lib/custom-auth-path/types/cache/AccountManager.d.ts.map +1 -0
- package/lib/custom-auth-path/types/cache/AsyncMemoryStorage.d.ts +51 -0
- package/lib/custom-auth-path/types/cache/AsyncMemoryStorage.d.ts.map +1 -0
- package/lib/custom-auth-path/types/cache/BrowserCacheManager.d.ts +297 -0
- package/lib/custom-auth-path/types/cache/BrowserCacheManager.d.ts.map +1 -0
- package/lib/custom-auth-path/types/cache/CacheHelpers.d.ts +16 -0
- package/lib/custom-auth-path/types/cache/CacheHelpers.d.ts.map +1 -0
- package/lib/custom-auth-path/types/cache/CookieStorage.d.ts +22 -0
- package/lib/custom-auth-path/types/cache/CookieStorage.d.ts.map +1 -0
- package/lib/custom-auth-path/types/cache/DatabaseStorage.d.ts +57 -0
- package/lib/custom-auth-path/types/cache/DatabaseStorage.d.ts.map +1 -0
- package/lib/custom-auth-path/types/cache/IAsyncStorage.d.ts +28 -0
- package/lib/custom-auth-path/types/cache/IAsyncStorage.d.ts.map +1 -0
- package/lib/custom-auth-path/types/cache/ITokenCache.d.ts +12 -0
- package/lib/custom-auth-path/types/cache/ITokenCache.d.ts.map +1 -0
- package/lib/custom-auth-path/types/cache/IWindowStorage.d.ts +40 -0
- package/lib/custom-auth-path/types/cache/IWindowStorage.d.ts.map +1 -0
- package/lib/custom-auth-path/types/cache/LocalStorage.d.ts +49 -0
- package/lib/custom-auth-path/types/cache/LocalStorage.d.ts.map +1 -0
- package/lib/custom-auth-path/types/cache/MemoryStorage.d.ts +15 -0
- package/lib/custom-auth-path/types/cache/MemoryStorage.d.ts.map +1 -0
- package/lib/custom-auth-path/types/cache/SessionStorage.d.ts +13 -0
- package/lib/custom-auth-path/types/cache/SessionStorage.d.ts.map +1 -0
- package/lib/custom-auth-path/types/cache/TokenCache.d.ts +78 -0
- package/lib/custom-auth-path/types/cache/TokenCache.d.ts.map +1 -0
- package/lib/custom-auth-path/types/config/Configuration.d.ts +228 -0
- package/lib/custom-auth-path/types/config/Configuration.d.ts.map +1 -0
- package/lib/custom-auth-path/types/controllers/ControllerFactory.d.ts +6 -0
- package/lib/custom-auth-path/types/controllers/ControllerFactory.d.ts.map +1 -0
- package/lib/custom-auth-path/types/controllers/IController.d.ts +59 -0
- package/lib/custom-auth-path/types/controllers/IController.d.ts.map +1 -0
- package/lib/custom-auth-path/types/controllers/NestedAppAuthController.d.ts +203 -0
- package/lib/custom-auth-path/types/controllers/NestedAppAuthController.d.ts.map +1 -0
- package/lib/custom-auth-path/types/controllers/StandardController.d.ts +425 -0
- package/lib/custom-auth-path/types/controllers/StandardController.d.ts.map +1 -0
- package/lib/custom-auth-path/types/controllers/UnknownOperatingContextController.d.ts +86 -0
- package/lib/custom-auth-path/types/controllers/UnknownOperatingContextController.d.ts.map +1 -0
- package/lib/custom-auth-path/types/crypto/BrowserCrypto.d.ts +97 -0
- package/lib/custom-auth-path/types/crypto/BrowserCrypto.d.ts.map +1 -0
- package/lib/custom-auth-path/types/crypto/CryptoOps.d.ts +75 -0
- package/lib/custom-auth-path/types/crypto/CryptoOps.d.ts.map +1 -0
- package/lib/custom-auth-path/types/crypto/PkceGenerator.d.ts +9 -0
- package/lib/custom-auth-path/types/crypto/PkceGenerator.d.ts.map +1 -0
- package/lib/custom-auth-path/types/crypto/SignedHttpRequest.d.ts +31 -0
- package/lib/custom-auth-path/types/crypto/SignedHttpRequest.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/CustomAuthActionInputs.d.ts +26 -0
- package/lib/custom-auth-path/types/custom_auth/CustomAuthActionInputs.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/CustomAuthConstants.d.ts +33 -0
- package/lib/custom-auth-path/types/custom_auth/CustomAuthConstants.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/CustomAuthPublicClientApplication.d.ts +55 -0
- package/lib/custom-auth-path/types/custom_auth/CustomAuthPublicClientApplication.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/ICustomAuthPublicClientApplication.d.ts +33 -0
- package/lib/custom-auth-path/types/custom_auth/ICustomAuthPublicClientApplication.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/UserAccountAttributes.d.ts +12 -0
- package/lib/custom-auth-path/types/custom_auth/UserAccountAttributes.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/configuration/CustomAuthConfiguration.d.ts +12 -0
- package/lib/custom-auth-path/types/custom_auth/configuration/CustomAuthConfiguration.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/controller/CustomAuthStandardController.d.ts +25 -0
- package/lib/custom-auth-path/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/controller/ICustomAuthStandardController.d.ts +13 -0
- package/lib/custom-auth-path/types/custom_auth/controller/ICustomAuthStandardController.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/CustomAuthAuthority.d.ts +29 -0
- package/lib/custom-auth-path/types/custom_auth/core/CustomAuthAuthority.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +28 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowResultBase.d.ts +11 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowResultBase.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowState.d.ts +27 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowState.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/error/CustomAuthApiError.d.ts +19 -0
- package/lib/custom-auth-path/types/custom_auth/core/error/CustomAuthApiError.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/error/CustomAuthError.d.ts +9 -0
- package/lib/custom-auth-path/types/custom_auth/core/error/CustomAuthError.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/error/HttpError.d.ts +5 -0
- package/lib/custom-auth-path/types/custom_auth/core/error/HttpError.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/error/HttpErrorCodes.d.ts +3 -0
- package/lib/custom-auth-path/types/custom_auth/core/error/HttpErrorCodes.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/error/InvalidArgumentError.d.ts +5 -0
- package/lib/custom-auth-path/types/custom_auth/core/error/InvalidArgumentError.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/error/InvalidConfigurationError.d.ts +5 -0
- package/lib/custom-auth-path/types/custom_auth/core/error/InvalidConfigurationError.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/error/InvalidConfigurationErrorCodes.d.ts +4 -0
- package/lib/custom-auth-path/types/custom_auth/core/error/InvalidConfigurationErrorCodes.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/error/MethodNotImplementedError.d.ts +5 -0
- package/lib/custom-auth-path/types/custom_auth/core/error/MethodNotImplementedError.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/error/MsalCustomAuthError.d.ts +6 -0
- package/lib/custom-auth-path/types/custom_auth/core/error/MsalCustomAuthError.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/error/NoCachedAccountFoundError.d.ts +5 -0
- package/lib/custom-auth-path/types/custom_auth/core/error/NoCachedAccountFoundError.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/error/ParsedUrlError.d.ts +5 -0
- package/lib/custom-auth-path/types/custom_auth/core/error/ParsedUrlError.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/error/ParsedUrlErrorCodes.d.ts +2 -0
- package/lib/custom-auth-path/types/custom_auth/core/error/ParsedUrlErrorCodes.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/error/UnexpectedError.d.ts +5 -0
- package/lib/custom-auth-path/types/custom_auth/core/error/UnexpectedError.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/error/UnsupportedEnvironmentError.d.ts +5 -0
- package/lib/custom-auth-path/types/custom_auth/core/error/UnsupportedEnvironmentError.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/error/UserAccountAttributeError.d.ts +5 -0
- package/lib/custom-auth-path/types/custom_auth/core/error/UserAccountAttributeError.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/error/UserAccountAttributeErrorCodes.d.ts +2 -0
- package/lib/custom-auth-path/types/custom_auth/core/error/UserAccountAttributeErrorCodes.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/error/UserAlreadySignedInError.d.ts +5 -0
- package/lib/custom-auth-path/types/custom_auth/core/error/UserAlreadySignedInError.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts +24 -0
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.d.ts +22 -0
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/BaseApiClient.d.ts +14 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/BaseApiClient.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts +12 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts +12 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts +9 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.d.ts +31 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts +29 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/SignupApiClient.d.ts +20 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/SignupApiClient.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.d.ts +22 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiErrorResponseTypes.d.ts +29 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiErrorResponseTypes.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts +65 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts +45 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts +10 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiTypesBase.d.ts +9 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiTypesBase.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/http_client/FetchHttpClient.d.ts +13 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/http_client/FetchHttpClient.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/http_client/IHttpClient.d.ts +35 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/http_client/IHttpClient.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/telemetry/PublicApiId.d.ts +21 -0
- package/lib/custom-auth-path/types/custom_auth/core/telemetry/PublicApiId.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/utils/ArgumentValidator.d.ts +3 -0
- package/lib/custom-auth-path/types/custom_auth/core/utils/ArgumentValidator.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/utils/UrlUtils.d.ts +3 -0
- package/lib/custom-auth-path/types/custom_auth/core/utils/UrlUtils.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/get_account/auth_flow/CustomAuthAccountData.d.ts +47 -0
- package/lib/custom-auth-path/types/custom_auth/get_account/auth_flow/CustomAuthAccountData.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/get_account/auth_flow/error_type/GetAccountError.d.ts +32 -0
- package/lib/custom-auth-path/types/custom_auth/get_account/auth_flow/error_type/GetAccountError.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.d.ts +37 -0
- package/lib/custom-auth-path/types/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/get_account/auth_flow/result/GetAccountResult.d.ts +36 -0
- package/lib/custom-auth-path/types/custom_auth/get_account/auth_flow/result/GetAccountResult.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/get_account/auth_flow/result/SignOutResult.d.ts +35 -0
- package/lib/custom-auth-path/types/custom_auth/get_account/auth_flow/result/SignOutResult.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/get_account/auth_flow/state/GetAccessTokenState.d.ts +12 -0
- package/lib/custom-auth-path/types/custom_auth/get_account/auth_flow/state/GetAccessTokenState.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/get_account/auth_flow/state/GetAccountState.d.ts +12 -0
- package/lib/custom-auth-path/types/custom_auth/get_account/auth_flow/state/GetAccountState.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/get_account/auth_flow/state/SignOutState.d.ts +12 -0
- package/lib/custom-auth-path/types/custom_auth/get_account/auth_flow/state/SignOutState.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.d.ts +21 -0
- package/lib/custom-auth-path/types/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/index.d.ts +69 -0
- package/lib/custom-auth-path/types/custom_auth/index.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/operating_context/CustomAuthOperatingContext.d.ts +13 -0
- package/lib/custom-auth-path/types/custom_auth/operating_context/CustomAuthOperatingContext.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.d.ts +55 -0
- package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.d.ts +37 -0
- package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.d.ts +37 -0
- package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.d.ts +37 -0
- package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.d.ts +32 -0
- package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.d.ts +23 -0
- package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.d.ts +7 -0
- package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.d.ts +7 -0
- package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.d.ts +12 -0
- package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/state/ResetPasswordState.d.ts +6 -0
- package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/state/ResetPasswordState.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts +15 -0
- package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/reset_password/interaction_client/ResetPasswordClient.d.ts +33 -0
- package/lib/custom-auth-path/types/custom_auth/reset_password/interaction_client/ResetPasswordClient.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/reset_password/interaction_client/parameter/ResetPasswordParams.d.ts +19 -0
- package/lib/custom-auth-path/types/custom_auth/reset_password/interaction_client/parameter/ResetPasswordParams.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/reset_password/interaction_client/result/ResetPasswordActionResult.d.ts +14 -0
- package/lib/custom-auth-path/types/custom_auth/reset_password/interaction_client/result/ResetPasswordActionResult.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/SignInScenario.d.ts +6 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/SignInScenario.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/error_type/SignInError.d.ts +50 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/error_type/SignInError.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.d.ts +37 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts +54 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts +25 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts +21 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts +20 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts +29 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInCompletedState.d.ts +8 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInCompletedState.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts +13 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInFailedState.d.ts +7 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInFailedState.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.d.ts +17 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInState.d.ts +6 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInState.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts +20 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/interaction_client/SignInClient.d.ts +48 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/interaction_client/parameter/SignInParams.d.ts +29 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/interaction_client/parameter/SignInParams.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts +30 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/error_type/SignUpError.d.ts +87 -0
- package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/error_type/SignUpError.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.d.ts +37 -0
- package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/result/SignUpResult.d.ts +53 -0
- package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/result/SignUpResult.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.d.ts +37 -0
- package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.d.ts +53 -0
- package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.d.ts +45 -0
- package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.d.ts +21 -0
- package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.d.ts +28 -0
- package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.d.ts +7 -0
- package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpFailedState.d.ts +7 -0
- package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpFailedState.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.d.ts +12 -0
- package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpState.d.ts +6 -0
- package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpState.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts +20 -0
- package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/sign_up/interaction_client/SignUpClient.d.ts +41 -0
- package/lib/custom-auth-path/types/custom_auth/sign_up/interaction_client/SignUpClient.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/sign_up/interaction_client/parameter/SignUpParams.d.ts +26 -0
- package/lib/custom-auth-path/types/custom_auth/sign_up/interaction_client/parameter/SignUpParams.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/sign_up/interaction_client/result/SignUpActionResult.d.ts +34 -0
- package/lib/custom-auth-path/types/custom_auth/sign_up/interaction_client/result/SignUpActionResult.d.ts.map +1 -0
- package/lib/custom-auth-path/types/encode/Base64Decode.d.ts +15 -0
- package/lib/custom-auth-path/types/encode/Base64Decode.d.ts.map +1 -0
- package/lib/custom-auth-path/types/encode/Base64Encode.d.ts +20 -0
- package/lib/custom-auth-path/types/encode/Base64Encode.d.ts.map +1 -0
- package/lib/custom-auth-path/types/error/BrowserAuthError.d.ts +257 -0
- package/lib/custom-auth-path/types/error/BrowserAuthError.d.ts.map +1 -0
- package/lib/custom-auth-path/types/error/BrowserAuthErrorCodes.d.ts +52 -0
- package/lib/custom-auth-path/types/error/BrowserAuthErrorCodes.d.ts.map +1 -0
- package/lib/custom-auth-path/types/error/BrowserConfigurationAuthError.d.ts +34 -0
- package/lib/custom-auth-path/types/error/BrowserConfigurationAuthError.d.ts.map +1 -0
- package/lib/custom-auth-path/types/error/BrowserConfigurationAuthErrorCodes.d.ts +4 -0
- package/lib/custom-auth-path/types/error/BrowserConfigurationAuthErrorCodes.d.ts.map +1 -0
- package/lib/custom-auth-path/types/error/NativeAuthError.d.ts +30 -0
- package/lib/custom-auth-path/types/error/NativeAuthError.d.ts.map +1 -0
- package/lib/custom-auth-path/types/error/NativeAuthErrorCodes.d.ts +3 -0
- package/lib/custom-auth-path/types/error/NativeAuthErrorCodes.d.ts.map +1 -0
- package/lib/custom-auth-path/types/error/NestedAppAuthError.d.ts +15 -0
- package/lib/custom-auth-path/types/error/NestedAppAuthError.d.ts.map +1 -0
- package/lib/custom-auth-path/types/event/EventHandler.d.ts +49 -0
- package/lib/custom-auth-path/types/event/EventHandler.d.ts.map +1 -0
- package/lib/custom-auth-path/types/event/EventMessage.d.ts +40 -0
- package/lib/custom-auth-path/types/event/EventMessage.d.ts.map +1 -0
- package/lib/custom-auth-path/types/event/EventType.d.ts +31 -0
- package/lib/custom-auth-path/types/event/EventType.d.ts.map +1 -0
- package/lib/custom-auth-path/types/index.d.ts +45 -0
- package/lib/custom-auth-path/types/index.d.ts.map +1 -0
- package/lib/custom-auth-path/types/interaction_client/BaseInteractionClient.d.ts +59 -0
- package/lib/custom-auth-path/types/interaction_client/BaseInteractionClient.d.ts.map +1 -0
- package/lib/custom-auth-path/types/interaction_client/HybridSpaAuthorizationCodeClient.d.ts +5 -0
- package/lib/custom-auth-path/types/interaction_client/HybridSpaAuthorizationCodeClient.d.ts.map +1 -0
- package/lib/custom-auth-path/types/interaction_client/PlatformAuthInteractionClient.d.ts +149 -0
- package/lib/custom-auth-path/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -0
- package/lib/custom-auth-path/types/interaction_client/PopupClient.d.ts +120 -0
- package/lib/custom-auth-path/types/interaction_client/PopupClient.d.ts.map +1 -0
- package/lib/custom-auth-path/types/interaction_client/RedirectClient.d.ts +68 -0
- package/lib/custom-auth-path/types/interaction_client/RedirectClient.d.ts.map +1 -0
- package/lib/custom-auth-path/types/interaction_client/SilentAuthCodeClient.d.ts +24 -0
- package/lib/custom-auth-path/types/interaction_client/SilentAuthCodeClient.d.ts.map +1 -0
- package/lib/custom-auth-path/types/interaction_client/SilentCacheClient.d.ts +17 -0
- package/lib/custom-auth-path/types/interaction_client/SilentCacheClient.d.ts.map +1 -0
- package/lib/custom-auth-path/types/interaction_client/SilentIframeClient.d.ts +43 -0
- package/lib/custom-auth-path/types/interaction_client/SilentIframeClient.d.ts.map +1 -0
- package/lib/custom-auth-path/types/interaction_client/SilentRefreshClient.d.ts +32 -0
- package/lib/custom-auth-path/types/interaction_client/SilentRefreshClient.d.ts.map +1 -0
- package/lib/custom-auth-path/types/interaction_client/StandardInteractionClient.d.ts +64 -0
- package/lib/custom-auth-path/types/interaction_client/StandardInteractionClient.d.ts.map +1 -0
- package/lib/custom-auth-path/types/interaction_handler/InteractionHandler.d.ts +33 -0
- package/lib/custom-auth-path/types/interaction_handler/InteractionHandler.d.ts.map +1 -0
- package/lib/custom-auth-path/types/interaction_handler/SilentHandler.d.ts +16 -0
- package/lib/custom-auth-path/types/interaction_handler/SilentHandler.d.ts.map +1 -0
- package/lib/custom-auth-path/types/naa/AccountInfo.d.ts +12 -0
- package/lib/custom-auth-path/types/naa/AccountInfo.d.ts.map +1 -0
- package/lib/custom-auth-path/types/naa/AuthBridge.d.ts +9 -0
- package/lib/custom-auth-path/types/naa/AuthBridge.d.ts.map +1 -0
- package/lib/custom-auth-path/types/naa/AuthResult.d.ts +7 -0
- package/lib/custom-auth-path/types/naa/AuthResult.d.ts.map +1 -0
- package/lib/custom-auth-path/types/naa/BridgeAccountContext.d.ts +13 -0
- package/lib/custom-auth-path/types/naa/BridgeAccountContext.d.ts.map +1 -0
- package/lib/custom-auth-path/types/naa/BridgeCapabilities.d.ts +4 -0
- package/lib/custom-auth-path/types/naa/BridgeCapabilities.d.ts.map +1 -0
- package/lib/custom-auth-path/types/naa/BridgeError.d.ts +10 -0
- package/lib/custom-auth-path/types/naa/BridgeError.d.ts.map +1 -0
- package/lib/custom-auth-path/types/naa/BridgeProxy.d.ts +69 -0
- package/lib/custom-auth-path/types/naa/BridgeProxy.d.ts.map +1 -0
- package/lib/custom-auth-path/types/naa/BridgeRequest.d.ts +8 -0
- package/lib/custom-auth-path/types/naa/BridgeRequest.d.ts.map +1 -0
- package/lib/custom-auth-path/types/naa/BridgeRequestEnvelope.d.ts +13 -0
- package/lib/custom-auth-path/types/naa/BridgeRequestEnvelope.d.ts.map +1 -0
- package/lib/custom-auth-path/types/naa/BridgeResponseEnvelope.d.ts +14 -0
- package/lib/custom-auth-path/types/naa/BridgeResponseEnvelope.d.ts.map +1 -0
- package/lib/custom-auth-path/types/naa/BridgeStatusCode.d.ts +12 -0
- package/lib/custom-auth-path/types/naa/BridgeStatusCode.d.ts.map +1 -0
- package/lib/custom-auth-path/types/naa/IBridgeProxy.d.ts +11 -0
- package/lib/custom-auth-path/types/naa/IBridgeProxy.d.ts.map +1 -0
- package/lib/custom-auth-path/types/naa/InitContext.d.ts +9 -0
- package/lib/custom-auth-path/types/naa/InitContext.d.ts.map +1 -0
- package/lib/custom-auth-path/types/naa/TokenRequest.d.ts +19 -0
- package/lib/custom-auth-path/types/naa/TokenRequest.d.ts.map +1 -0
- package/lib/custom-auth-path/types/naa/TokenResponse.d.ts +14 -0
- package/lib/custom-auth-path/types/naa/TokenResponse.d.ts.map +1 -0
- package/lib/custom-auth-path/types/naa/mapping/NestedAppAuthAdapter.d.ts +36 -0
- package/lib/custom-auth-path/types/naa/mapping/NestedAppAuthAdapter.d.ts.map +1 -0
- package/lib/custom-auth-path/types/navigation/INavigationClient.d.ts +17 -0
- package/lib/custom-auth-path/types/navigation/INavigationClient.d.ts.map +1 -0
- package/lib/custom-auth-path/types/navigation/NavigationClient.d.ts +23 -0
- package/lib/custom-auth-path/types/navigation/NavigationClient.d.ts.map +1 -0
- package/lib/custom-auth-path/types/navigation/NavigationOptions.d.ts +13 -0
- package/lib/custom-auth-path/types/navigation/NavigationOptions.d.ts.map +1 -0
- package/lib/custom-auth-path/types/network/FetchClient.d.ts +21 -0
- package/lib/custom-auth-path/types/network/FetchClient.d.ts.map +1 -0
- package/lib/custom-auth-path/types/operatingcontext/BaseOperatingContext.d.ts +42 -0
- package/lib/custom-auth-path/types/operatingcontext/BaseOperatingContext.d.ts.map +1 -0
- package/lib/custom-auth-path/types/operatingcontext/NestedAppOperatingContext.d.ts +40 -0
- package/lib/custom-auth-path/types/operatingcontext/NestedAppOperatingContext.d.ts.map +1 -0
- package/lib/custom-auth-path/types/operatingcontext/StandardOperatingContext.d.ts +26 -0
- package/lib/custom-auth-path/types/operatingcontext/StandardOperatingContext.d.ts.map +1 -0
- package/lib/custom-auth-path/types/operatingcontext/UnknownOperatingContext.d.ts +26 -0
- package/lib/custom-auth-path/types/operatingcontext/UnknownOperatingContext.d.ts.map +1 -0
- package/lib/custom-auth-path/types/packageMetadata.d.ts +3 -0
- package/lib/custom-auth-path/types/packageMetadata.d.ts.map +1 -0
- package/lib/custom-auth-path/types/protocol/Authorize.d.ts +65 -0
- package/lib/custom-auth-path/types/protocol/Authorize.d.ts.map +1 -0
- package/lib/custom-auth-path/types/request/AuthorizationCodeRequest.d.ts +9 -0
- package/lib/custom-auth-path/types/request/AuthorizationCodeRequest.d.ts.map +1 -0
- package/lib/custom-auth-path/types/request/AuthorizationUrlRequest.d.ts +7 -0
- package/lib/custom-auth-path/types/request/AuthorizationUrlRequest.d.ts.map +1 -0
- package/lib/custom-auth-path/types/request/ClearCacheRequest.d.ts +11 -0
- package/lib/custom-auth-path/types/request/ClearCacheRequest.d.ts.map +1 -0
- package/lib/custom-auth-path/types/request/EndSessionPopupRequest.d.ts +21 -0
- package/lib/custom-auth-path/types/request/EndSessionPopupRequest.d.ts.map +1 -0
- package/lib/custom-auth-path/types/request/EndSessionRequest.d.ts +16 -0
- package/lib/custom-auth-path/types/request/EndSessionRequest.d.ts.map +1 -0
- package/lib/custom-auth-path/types/request/InitializeApplicationRequest.d.ts +9 -0
- package/lib/custom-auth-path/types/request/InitializeApplicationRequest.d.ts.map +1 -0
- package/lib/custom-auth-path/types/request/PopupRequest.d.ts +36 -0
- package/lib/custom-auth-path/types/request/PopupRequest.d.ts.map +1 -0
- package/lib/custom-auth-path/types/request/PopupWindowAttributes.d.ts +16 -0
- package/lib/custom-auth-path/types/request/PopupWindowAttributes.d.ts.map +1 -0
- package/lib/custom-auth-path/types/request/RedirectRequest.d.ts +40 -0
- package/lib/custom-auth-path/types/request/RedirectRequest.d.ts.map +1 -0
- package/lib/custom-auth-path/types/request/RequestHelpers.d.ts +14 -0
- package/lib/custom-auth-path/types/request/RequestHelpers.d.ts.map +1 -0
- package/lib/custom-auth-path/types/request/SilentRequest.d.ts +33 -0
- package/lib/custom-auth-path/types/request/SilentRequest.d.ts.map +1 -0
- package/lib/custom-auth-path/types/request/SsoSilentRequest.d.ts +28 -0
- package/lib/custom-auth-path/types/request/SsoSilentRequest.d.ts.map +1 -0
- package/lib/custom-auth-path/types/response/AuthenticationResult.d.ts +5 -0
- package/lib/custom-auth-path/types/response/AuthenticationResult.d.ts.map +1 -0
- package/lib/custom-auth-path/types/response/ResponseHandler.d.ts +8 -0
- package/lib/custom-auth-path/types/response/ResponseHandler.d.ts.map +1 -0
- package/lib/custom-auth-path/types/telemetry/BrowserPerformanceClient.d.ts +35 -0
- package/lib/custom-auth-path/types/telemetry/BrowserPerformanceClient.d.ts.map +1 -0
- package/lib/custom-auth-path/types/telemetry/BrowserPerformanceMeasurement.d.ts +22 -0
- package/lib/custom-auth-path/types/telemetry/BrowserPerformanceMeasurement.d.ts.map +1 -0
- package/lib/custom-auth-path/types/utils/BrowserConstants.d.ts +184 -0
- package/lib/custom-auth-path/types/utils/BrowserConstants.d.ts.map +1 -0
- package/lib/custom-auth-path/types/utils/BrowserProtocolUtils.d.ts +12 -0
- package/lib/custom-auth-path/types/utils/BrowserProtocolUtils.d.ts.map +1 -0
- package/lib/custom-auth-path/types/utils/BrowserUtils.d.ts +76 -0
- package/lib/custom-auth-path/types/utils/BrowserUtils.d.ts.map +1 -0
- package/lib/custom-auth-path/types/utils/MsalFrameStatsUtils.d.ts +3 -0
- package/lib/custom-auth-path/types/utils/MsalFrameStatsUtils.d.ts.map +1 -0
- package/lib/msal-browser.cjs +1193 -1080
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +1193 -1080
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +68 -66
- package/lib/types/broker/nativeBroker/NativeStatusCodes.d.ts +1 -0
- package/lib/types/broker/nativeBroker/NativeStatusCodes.d.ts.map +1 -1
- package/lib/types/cache/AccountManager.d.ts +7 -7
- package/lib/types/cache/AccountManager.d.ts.map +1 -1
- package/lib/types/cache/BrowserCacheManager.d.ts +44 -30
- package/lib/types/cache/BrowserCacheManager.d.ts.map +1 -1
- package/lib/types/cache/IWindowStorage.d.ts +1 -1
- package/lib/types/cache/IWindowStorage.d.ts.map +1 -1
- package/lib/types/cache/LocalStorage.d.ts +1 -1
- package/lib/types/cache/LocalStorage.d.ts.map +1 -1
- package/lib/types/cache/TokenCache.d.ts.map +1 -1
- package/lib/types/controllers/NestedAppAuthController.d.ts.map +1 -1
- package/lib/types/controllers/StandardController.d.ts.map +1 -1
- package/lib/types/crypto/CryptoOps.d.ts +1 -1
- package/lib/types/crypto/CryptoOps.d.ts.map +1 -1
- package/lib/types/crypto/SignedHttpRequest.d.ts.map +1 -1
- package/lib/types/custom_auth/CustomAuthActionInputs.d.ts +26 -0
- package/lib/types/custom_auth/CustomAuthActionInputs.d.ts.map +1 -0
- package/lib/types/custom_auth/CustomAuthConstants.d.ts +33 -0
- package/lib/types/custom_auth/CustomAuthConstants.d.ts.map +1 -0
- package/lib/types/custom_auth/CustomAuthPublicClientApplication.d.ts +55 -0
- package/lib/types/custom_auth/CustomAuthPublicClientApplication.d.ts.map +1 -0
- package/lib/types/custom_auth/ICustomAuthPublicClientApplication.d.ts +33 -0
- package/lib/types/custom_auth/ICustomAuthPublicClientApplication.d.ts.map +1 -0
- package/lib/types/custom_auth/UserAccountAttributes.d.ts +12 -0
- package/lib/types/custom_auth/UserAccountAttributes.d.ts.map +1 -0
- package/lib/types/custom_auth/configuration/CustomAuthConfiguration.d.ts +12 -0
- package/lib/types/custom_auth/configuration/CustomAuthConfiguration.d.ts.map +1 -0
- package/lib/types/custom_auth/controller/CustomAuthStandardController.d.ts +25 -0
- package/lib/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -0
- package/lib/types/custom_auth/controller/ICustomAuthStandardController.d.ts +13 -0
- package/lib/types/custom_auth/controller/ICustomAuthStandardController.d.ts.map +1 -0
- package/lib/types/custom_auth/core/CustomAuthAuthority.d.ts +29 -0
- package/lib/types/custom_auth/core/CustomAuthAuthority.d.ts.map +1 -0
- package/lib/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +28 -0
- package/lib/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -0
- package/lib/types/custom_auth/core/auth_flow/AuthFlowResultBase.d.ts +11 -0
- package/lib/types/custom_auth/core/auth_flow/AuthFlowResultBase.d.ts.map +1 -0
- package/lib/types/custom_auth/core/auth_flow/AuthFlowState.d.ts +27 -0
- package/lib/types/custom_auth/core/auth_flow/AuthFlowState.d.ts.map +1 -0
- package/lib/types/custom_auth/core/error/CustomAuthApiError.d.ts +19 -0
- package/lib/types/custom_auth/core/error/CustomAuthApiError.d.ts.map +1 -0
- package/lib/types/custom_auth/core/error/CustomAuthError.d.ts +9 -0
- package/lib/types/custom_auth/core/error/CustomAuthError.d.ts.map +1 -0
- package/lib/types/custom_auth/core/error/HttpError.d.ts +5 -0
- package/lib/types/custom_auth/core/error/HttpError.d.ts.map +1 -0
- package/lib/types/custom_auth/core/error/HttpErrorCodes.d.ts +3 -0
- package/lib/types/custom_auth/core/error/HttpErrorCodes.d.ts.map +1 -0
- package/lib/types/custom_auth/core/error/InvalidArgumentError.d.ts +5 -0
- package/lib/types/custom_auth/core/error/InvalidArgumentError.d.ts.map +1 -0
- package/lib/types/custom_auth/core/error/InvalidConfigurationError.d.ts +5 -0
- package/lib/types/custom_auth/core/error/InvalidConfigurationError.d.ts.map +1 -0
- package/lib/types/custom_auth/core/error/InvalidConfigurationErrorCodes.d.ts +4 -0
- package/lib/types/custom_auth/core/error/InvalidConfigurationErrorCodes.d.ts.map +1 -0
- package/lib/types/custom_auth/core/error/MethodNotImplementedError.d.ts +5 -0
- package/lib/types/custom_auth/core/error/MethodNotImplementedError.d.ts.map +1 -0
- package/lib/types/custom_auth/core/error/MsalCustomAuthError.d.ts +6 -0
- package/lib/types/custom_auth/core/error/MsalCustomAuthError.d.ts.map +1 -0
- package/lib/types/custom_auth/core/error/NoCachedAccountFoundError.d.ts +5 -0
- package/lib/types/custom_auth/core/error/NoCachedAccountFoundError.d.ts.map +1 -0
- package/lib/types/custom_auth/core/error/ParsedUrlError.d.ts +5 -0
- package/lib/types/custom_auth/core/error/ParsedUrlError.d.ts.map +1 -0
- package/lib/types/custom_auth/core/error/ParsedUrlErrorCodes.d.ts +2 -0
- package/lib/types/custom_auth/core/error/ParsedUrlErrorCodes.d.ts.map +1 -0
- package/lib/types/custom_auth/core/error/UnexpectedError.d.ts +5 -0
- package/lib/types/custom_auth/core/error/UnexpectedError.d.ts.map +1 -0
- package/lib/types/custom_auth/core/error/UnsupportedEnvironmentError.d.ts +5 -0
- package/lib/types/custom_auth/core/error/UnsupportedEnvironmentError.d.ts.map +1 -0
- package/lib/types/custom_auth/core/error/UserAccountAttributeError.d.ts +5 -0
- package/lib/types/custom_auth/core/error/UserAccountAttributeError.d.ts.map +1 -0
- package/lib/types/custom_auth/core/error/UserAccountAttributeErrorCodes.d.ts +2 -0
- package/lib/types/custom_auth/core/error/UserAccountAttributeErrorCodes.d.ts.map +1 -0
- package/lib/types/custom_auth/core/error/UserAlreadySignedInError.d.ts +5 -0
- package/lib/types/custom_auth/core/error/UserAlreadySignedInError.d.ts.map +1 -0
- package/lib/types/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts +24 -0
- package/lib/types/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts.map +1 -0
- package/lib/types/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.d.ts +22 -0
- package/lib/types/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.d.ts.map +1 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/BaseApiClient.d.ts +14 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/BaseApiClient.d.ts.map +1 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts +12 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts +12 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts.map +1 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts +9 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts.map +1 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.d.ts +31 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.d.ts.map +1 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts +29 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/SignupApiClient.d.ts +20 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/SignupApiClient.d.ts.map +1 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.d.ts +22 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.d.ts.map +1 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiErrorResponseTypes.d.ts +29 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiErrorResponseTypes.d.ts.map +1 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts +65 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts.map +1 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts +45 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts.map +1 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts +10 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts.map +1 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiTypesBase.d.ts +9 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiTypesBase.d.ts.map +1 -0
- package/lib/types/custom_auth/core/network_client/http_client/FetchHttpClient.d.ts +13 -0
- package/lib/types/custom_auth/core/network_client/http_client/FetchHttpClient.d.ts.map +1 -0
- package/lib/types/custom_auth/core/network_client/http_client/IHttpClient.d.ts +35 -0
- package/lib/types/custom_auth/core/network_client/http_client/IHttpClient.d.ts.map +1 -0
- package/lib/types/custom_auth/core/telemetry/PublicApiId.d.ts +21 -0
- package/lib/types/custom_auth/core/telemetry/PublicApiId.d.ts.map +1 -0
- package/lib/types/custom_auth/core/utils/ArgumentValidator.d.ts +3 -0
- package/lib/types/custom_auth/core/utils/ArgumentValidator.d.ts.map +1 -0
- package/lib/types/custom_auth/core/utils/UrlUtils.d.ts +3 -0
- package/lib/types/custom_auth/core/utils/UrlUtils.d.ts.map +1 -0
- package/lib/types/custom_auth/get_account/auth_flow/CustomAuthAccountData.d.ts +47 -0
- package/lib/types/custom_auth/get_account/auth_flow/CustomAuthAccountData.d.ts.map +1 -0
- package/lib/types/custom_auth/get_account/auth_flow/error_type/GetAccountError.d.ts +32 -0
- package/lib/types/custom_auth/get_account/auth_flow/error_type/GetAccountError.d.ts.map +1 -0
- package/lib/types/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.d.ts +37 -0
- package/lib/types/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.d.ts.map +1 -0
- package/lib/types/custom_auth/get_account/auth_flow/result/GetAccountResult.d.ts +36 -0
- package/lib/types/custom_auth/get_account/auth_flow/result/GetAccountResult.d.ts.map +1 -0
- package/lib/types/custom_auth/get_account/auth_flow/result/SignOutResult.d.ts +35 -0
- package/lib/types/custom_auth/get_account/auth_flow/result/SignOutResult.d.ts.map +1 -0
- package/lib/types/custom_auth/get_account/auth_flow/state/GetAccessTokenState.d.ts +12 -0
- package/lib/types/custom_auth/get_account/auth_flow/state/GetAccessTokenState.d.ts.map +1 -0
- package/lib/types/custom_auth/get_account/auth_flow/state/GetAccountState.d.ts +12 -0
- package/lib/types/custom_auth/get_account/auth_flow/state/GetAccountState.d.ts.map +1 -0
- package/lib/types/custom_auth/get_account/auth_flow/state/SignOutState.d.ts +12 -0
- package/lib/types/custom_auth/get_account/auth_flow/state/SignOutState.d.ts.map +1 -0
- package/lib/types/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.d.ts +21 -0
- package/lib/types/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.d.ts.map +1 -0
- package/lib/types/custom_auth/index.d.ts +69 -0
- package/lib/types/custom_auth/index.d.ts.map +1 -0
- package/lib/types/custom_auth/operating_context/CustomAuthOperatingContext.d.ts +13 -0
- package/lib/types/custom_auth/operating_context/CustomAuthOperatingContext.d.ts.map +1 -0
- package/lib/types/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.d.ts +55 -0
- package/lib/types/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.d.ts.map +1 -0
- package/lib/types/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.d.ts +37 -0
- package/lib/types/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.d.ts.map +1 -0
- package/lib/types/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.d.ts +37 -0
- package/lib/types/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.d.ts.map +1 -0
- package/lib/types/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.d.ts +37 -0
- package/lib/types/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.d.ts.map +1 -0
- package/lib/types/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.d.ts +32 -0
- package/lib/types/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.d.ts.map +1 -0
- package/lib/types/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.d.ts +23 -0
- package/lib/types/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.d.ts.map +1 -0
- package/lib/types/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.d.ts +7 -0
- package/lib/types/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.d.ts.map +1 -0
- package/lib/types/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.d.ts +7 -0
- package/lib/types/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.d.ts.map +1 -0
- package/lib/types/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.d.ts +12 -0
- package/lib/types/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.d.ts.map +1 -0
- package/lib/types/custom_auth/reset_password/auth_flow/state/ResetPasswordState.d.ts +6 -0
- package/lib/types/custom_auth/reset_password/auth_flow/state/ResetPasswordState.d.ts.map +1 -0
- package/lib/types/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts +15 -0
- package/lib/types/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts.map +1 -0
- package/lib/types/custom_auth/reset_password/interaction_client/ResetPasswordClient.d.ts +33 -0
- package/lib/types/custom_auth/reset_password/interaction_client/ResetPasswordClient.d.ts.map +1 -0
- package/lib/types/custom_auth/reset_password/interaction_client/parameter/ResetPasswordParams.d.ts +19 -0
- package/lib/types/custom_auth/reset_password/interaction_client/parameter/ResetPasswordParams.d.ts.map +1 -0
- package/lib/types/custom_auth/reset_password/interaction_client/result/ResetPasswordActionResult.d.ts +14 -0
- package/lib/types/custom_auth/reset_password/interaction_client/result/ResetPasswordActionResult.d.ts.map +1 -0
- package/lib/types/custom_auth/sign_in/auth_flow/SignInScenario.d.ts +6 -0
- package/lib/types/custom_auth/sign_in/auth_flow/SignInScenario.d.ts.map +1 -0
- package/lib/types/custom_auth/sign_in/auth_flow/error_type/SignInError.d.ts +50 -0
- package/lib/types/custom_auth/sign_in/auth_flow/error_type/SignInError.d.ts.map +1 -0
- package/lib/types/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.d.ts +37 -0
- package/lib/types/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.d.ts.map +1 -0
- package/lib/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts +54 -0
- package/lib/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts.map +1 -0
- package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts +25 -0
- package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts.map +1 -0
- package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts +21 -0
- package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts.map +1 -0
- package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts +20 -0
- package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts.map +1 -0
- package/lib/types/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts +29 -0
- package/lib/types/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts.map +1 -0
- package/lib/types/custom_auth/sign_in/auth_flow/state/SignInCompletedState.d.ts +8 -0
- package/lib/types/custom_auth/sign_in/auth_flow/state/SignInCompletedState.d.ts.map +1 -0
- package/lib/types/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts +13 -0
- package/lib/types/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts.map +1 -0
- package/lib/types/custom_auth/sign_in/auth_flow/state/SignInFailedState.d.ts +7 -0
- package/lib/types/custom_auth/sign_in/auth_flow/state/SignInFailedState.d.ts.map +1 -0
- package/lib/types/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.d.ts +17 -0
- package/lib/types/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.d.ts.map +1 -0
- package/lib/types/custom_auth/sign_in/auth_flow/state/SignInState.d.ts +6 -0
- package/lib/types/custom_auth/sign_in/auth_flow/state/SignInState.d.ts.map +1 -0
- package/lib/types/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts +20 -0
- package/lib/types/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts.map +1 -0
- package/lib/types/custom_auth/sign_in/interaction_client/SignInClient.d.ts +48 -0
- package/lib/types/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -0
- package/lib/types/custom_auth/sign_in/interaction_client/parameter/SignInParams.d.ts +29 -0
- package/lib/types/custom_auth/sign_in/interaction_client/parameter/SignInParams.d.ts.map +1 -0
- package/lib/types/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts +30 -0
- package/lib/types/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts.map +1 -0
- package/lib/types/custom_auth/sign_up/auth_flow/error_type/SignUpError.d.ts +87 -0
- package/lib/types/custom_auth/sign_up/auth_flow/error_type/SignUpError.d.ts.map +1 -0
- package/lib/types/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.d.ts +37 -0
- package/lib/types/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.d.ts.map +1 -0
- package/lib/types/custom_auth/sign_up/auth_flow/result/SignUpResult.d.ts +53 -0
- package/lib/types/custom_auth/sign_up/auth_flow/result/SignUpResult.d.ts.map +1 -0
- package/lib/types/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.d.ts +37 -0
- package/lib/types/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.d.ts.map +1 -0
- package/lib/types/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.d.ts +53 -0
- package/lib/types/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.d.ts.map +1 -0
- package/lib/types/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.d.ts +45 -0
- package/lib/types/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.d.ts.map +1 -0
- package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.d.ts +21 -0
- package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.d.ts.map +1 -0
- package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.d.ts +28 -0
- package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.d.ts.map +1 -0
- package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.d.ts +7 -0
- package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.d.ts.map +1 -0
- package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpFailedState.d.ts +7 -0
- package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpFailedState.d.ts.map +1 -0
- package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.d.ts +12 -0
- package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.d.ts.map +1 -0
- package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpState.d.ts +6 -0
- package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpState.d.ts.map +1 -0
- package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts +20 -0
- package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts.map +1 -0
- package/lib/types/custom_auth/sign_up/interaction_client/SignUpClient.d.ts +41 -0
- package/lib/types/custom_auth/sign_up/interaction_client/SignUpClient.d.ts.map +1 -0
- package/lib/types/custom_auth/sign_up/interaction_client/parameter/SignUpParams.d.ts +26 -0
- package/lib/types/custom_auth/sign_up/interaction_client/parameter/SignUpParams.d.ts.map +1 -0
- package/lib/types/custom_auth/sign_up/interaction_client/result/SignUpActionResult.d.ts +34 -0
- package/lib/types/custom_auth/sign_up/interaction_client/result/SignUpActionResult.d.ts.map +1 -0
- package/lib/types/error/BrowserAuthError.d.ts +1 -0
- package/lib/types/error/BrowserAuthError.d.ts.map +1 -1
- package/lib/types/error/BrowserAuthErrorCodes.d.ts +1 -0
- package/lib/types/error/BrowserAuthErrorCodes.d.ts.map +1 -1
- package/lib/types/error/NativeAuthError.d.ts.map +1 -1
- package/lib/types/interaction_client/BaseInteractionClient.d.ts +1 -1
- package/lib/types/interaction_client/BaseInteractionClient.d.ts.map +1 -1
- package/lib/types/interaction_client/PlatformAuthInteractionClient.d.ts +1 -1
- package/lib/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/lib/types/interaction_client/PopupClient.d.ts.map +1 -1
- package/lib/types/interaction_client/RedirectClient.d.ts.map +1 -1
- package/lib/types/interaction_client/SilentCacheClient.d.ts.map +1 -1
- package/lib/types/interaction_client/StandardInteractionClient.d.ts.map +1 -1
- package/lib/types/navigation/NavigationClient.d.ts.map +1 -1
- package/lib/types/packageMetadata.d.ts +1 -1
- package/package.json +12 -2
- package/src/broker/nativeBroker/NativeStatusCodes.ts +1 -0
- package/src/broker/nativeBroker/PlatformAuthProvider.ts +5 -5
- package/src/cache/AccountManager.ts +40 -20
- package/src/cache/BrowserCacheManager.ts +344 -224
- package/src/cache/IWindowStorage.ts +6 -1
- package/src/cache/LocalStorage.ts +4 -1
- package/src/cache/TokenCache.ts +1 -0
- package/src/controllers/NestedAppAuthController.ts +32 -12
- package/src/controllers/StandardController.ts +28 -8
- package/src/crypto/CryptoOps.ts +8 -2
- package/src/crypto/SignedHttpRequest.ts +19 -1
- package/src/custom_auth/CustomAuthActionInputs.ts +37 -0
- package/src/custom_auth/CustomAuthConstants.ts +50 -0
- package/src/custom_auth/CustomAuthPublicClientApplication.ts +158 -0
- package/src/custom_auth/ICustomAuthPublicClientApplication.ts +51 -0
- package/src/custom_auth/UserAccountAttributes.ts +16 -0
- package/src/custom_auth/configuration/CustomAuthConfiguration.ts +22 -0
- package/src/custom_auth/controller/CustomAuthStandardController.ts +509 -0
- package/src/custom_auth/controller/ICustomAuthStandardController.ts +53 -0
- package/src/custom_auth/core/CustomAuthAuthority.ts +112 -0
- package/src/custom_auth/core/auth_flow/AuthFlowErrorBase.ts +140 -0
- package/src/custom_auth/core/auth_flow/AuthFlowResultBase.ts +55 -0
- package/src/custom_auth/core/auth_flow/AuthFlowState.ts +73 -0
- package/src/custom_auth/core/error/CustomAuthApiError.ts +41 -0
- package/src/custom_auth/core/error/CustomAuthError.ts +20 -0
- package/src/custom_auth/core/error/HttpError.ts +13 -0
- package/src/custom_auth/core/error/HttpErrorCodes.ts +7 -0
- package/src/custom_auth/core/error/InvalidArgumentError.ts +15 -0
- package/src/custom_auth/core/error/InvalidConfigurationError.ts +13 -0
- package/src/custom_auth/core/error/InvalidConfigurationErrorCodes.ts +8 -0
- package/src/custom_auth/core/error/MethodNotImplementedError.ts +15 -0
- package/src/custom_auth/core/error/MsalCustomAuthError.ts +22 -0
- package/src/custom_auth/core/error/NoCachedAccountFoundError.ts +17 -0
- package/src/custom_auth/core/error/ParsedUrlError.ts +13 -0
- package/src/custom_auth/core/error/ParsedUrlErrorCodes.ts +6 -0
- package/src/custom_auth/core/error/UnexpectedError.ts +25 -0
- package/src/custom_auth/core/error/UnsupportedEnvironmentError.ts +17 -0
- package/src/custom_auth/core/error/UserAccountAttributeError.ts +15 -0
- package/src/custom_auth/core/error/UserAccountAttributeErrorCodes.ts +6 -0
- package/src/custom_auth/core/error/UserAlreadySignedInError.ts +17 -0
- package/src/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.ts +92 -0
- package/src/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.ts +57 -0
- package/src/custom_auth/core/network_client/custom_auth_api/BaseApiClient.ts +168 -0
- package/src/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.ts +38 -0
- package/src/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.ts +18 -0
- package/src/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.ts +13 -0
- package/src/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.ts +172 -0
- package/src/custom_auth/core/network_client/custom_auth_api/SignInApiClient.ts +186 -0
- package/src/custom_auth/core/network_client/custom_auth_api/SignupApiClient.ts +141 -0
- package/src/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.ts +26 -0
- package/src/custom_auth/core/network_client/custom_auth_api/types/ApiErrorResponseTypes.ts +36 -0
- package/src/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.ts +91 -0
- package/src/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.ts +66 -0
- package/src/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.ts +14 -0
- package/src/custom_auth/core/network_client/custom_auth_api/types/ApiTypesBase.ts +15 -0
- package/src/custom_auth/core/network_client/http_client/FetchHttpClient.ts +86 -0
- package/src/custom_auth/core/network_client/http_client/IHttpClient.ts +54 -0
- package/src/custom_auth/core/telemetry/PublicApiId.ts +37 -0
- package/src/custom_auth/core/utils/ArgumentValidator.ts +26 -0
- package/src/custom_auth/core/utils/UrlUtils.ts +25 -0
- package/src/custom_auth/get_account/auth_flow/CustomAuthAccountData.ts +185 -0
- package/src/custom_auth/get_account/auth_flow/error_type/GetAccountError.ts +45 -0
- package/src/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.ts +72 -0
- package/src/custom_auth/get_account/auth_flow/result/GetAccountResult.ts +69 -0
- package/src/custom_auth/get_account/auth_flow/result/SignOutResult.ts +62 -0
- package/src/custom_auth/get_account/auth_flow/state/GetAccessTokenState.ts +16 -0
- package/src/custom_auth/get_account/auth_flow/state/GetAccountState.ts +16 -0
- package/src/custom_auth/get_account/auth_flow/state/SignOutState.ts +16 -0
- package/src/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.ts +215 -0
- package/src/custom_auth/index.ts +185 -0
- package/src/custom_auth/operating_context/CustomAuthOperatingContext.ts +43 -0
- package/src/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.ts +96 -0
- package/src/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.ts +76 -0
- package/src/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.ts +70 -0
- package/src/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.ts +70 -0
- package/src/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.ts +65 -0
- package/src/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.ts +130 -0
- package/src/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.ts +11 -0
- package/src/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.ts +11 -0
- package/src/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.ts +73 -0
- package/src/custom_auth/reset_password/auth_flow/state/ResetPasswordState.ts +29 -0
- package/src/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.ts +25 -0
- package/src/custom_auth/reset_password/interaction_client/ResetPasswordClient.ts +311 -0
- package/src/custom_auth/reset_password/interaction_client/parameter/ResetPasswordParams.ts +28 -0
- package/src/custom_auth/reset_password/interaction_client/result/ResetPasswordActionResult.ts +21 -0
- package/src/custom_auth/sign_in/auth_flow/SignInScenario.ts +12 -0
- package/src/custom_auth/sign_in/auth_flow/error_type/SignInError.ts +79 -0
- package/src/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.ts +67 -0
- package/src/custom_auth/sign_in/auth_flow/result/SignInResult.ts +87 -0
- package/src/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.ts +44 -0
- package/src/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.ts +43 -0
- package/src/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.ts +41 -0
- package/src/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.ts +141 -0
- package/src/custom_auth/sign_in/auth_flow/state/SignInCompletedState.ts +12 -0
- package/src/custom_auth/sign_in/auth_flow/state/SignInContinuationState.ts +71 -0
- package/src/custom_auth/sign_in/auth_flow/state/SignInFailedState.ts +11 -0
- package/src/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.ts +83 -0
- package/src/custom_auth/sign_in/auth_flow/state/SignInState.ts +34 -0
- package/src/custom_auth/sign_in/auth_flow/state/SignInStateParameters.ts +32 -0
- package/src/custom_auth/sign_in/interaction_client/SignInClient.ts +396 -0
- package/src/custom_auth/sign_in/interaction_client/parameter/SignInParams.ts +39 -0
- package/src/custom_auth/sign_in/interaction_client/result/SignInActionResult.ts +65 -0
- package/src/custom_auth/sign_up/auth_flow/error_type/SignUpError.ts +138 -0
- package/src/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.ts +70 -0
- package/src/custom_auth/sign_up/auth_flow/result/SignUpResult.ts +88 -0
- package/src/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.ts +70 -0
- package/src/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.ts +90 -0
- package/src/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.ts +80 -0
- package/src/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.ts +115 -0
- package/src/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.ts +196 -0
- package/src/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.ts +11 -0
- package/src/custom_auth/sign_up/auth_flow/state/SignUpFailedState.ts +11 -0
- package/src/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.ts +112 -0
- package/src/custom_auth/sign_up/auth_flow/state/SignUpState.ts +34 -0
- package/src/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.ts +31 -0
- package/src/custom_auth/sign_up/interaction_client/SignUpClient.ts +496 -0
- package/src/custom_auth/sign_up/interaction_client/parameter/SignUpParams.ts +36 -0
- package/src/custom_auth/sign_up/interaction_client/result/SignUpActionResult.ts +77 -0
- package/src/error/BrowserAuthError.ts +1 -0
- package/src/error/BrowserAuthErrorCodes.ts +1 -0
- package/src/error/NativeAuthError.ts +4 -0
- package/src/interaction_client/BaseInteractionClient.ts +7 -5
- package/src/interaction_client/PlatformAuthInteractionClient.ts +19 -13
- package/src/interaction_client/PopupClient.ts +7 -3
- package/src/interaction_client/RedirectClient.ts +17 -3
- package/src/interaction_client/SilentCacheClient.ts +4 -1
- package/src/interaction_client/StandardInteractionClient.ts +2 -1
- package/src/navigation/NavigationClient.ts +11 -2
- package/src/packageMetadata.ts +1 -1
package/lib/msal-browser.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @azure/msal-browser v4.
|
|
1
|
+
/*! @azure/msal-browser v4.14.0 2025-07-01 */
|
|
2
2
|
'use strict';
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
|
-
/*! @azure/msal-common v15.
|
|
5
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
6
6
|
/*
|
|
7
7
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8
8
|
* Licensed under the MIT License.
|
|
@@ -147,7 +147,6 @@ const CodeChallengeMethodValues = {
|
|
|
147
147
|
*/
|
|
148
148
|
const OAuthResponseType = {
|
|
149
149
|
CODE: "code",
|
|
150
|
-
IDTOKEN_TOKEN: "id_token token",
|
|
151
150
|
IDTOKEN_TOKEN_REFRESHTOKEN: "id_token token refresh_token",
|
|
152
151
|
};
|
|
153
152
|
/**
|
|
@@ -162,29 +161,19 @@ const ServerResponseType = {
|
|
|
162
161
|
* allowed values for response_mode
|
|
163
162
|
*/
|
|
164
163
|
const ResponseMode = {
|
|
165
|
-
QUERY: "query"
|
|
166
|
-
FRAGMENT: "fragment",
|
|
167
|
-
FORM_POST: "form_post",
|
|
168
|
-
};
|
|
164
|
+
QUERY: "query"};
|
|
169
165
|
/**
|
|
170
166
|
* allowed grant_type
|
|
171
167
|
*/
|
|
172
168
|
const GrantType = {
|
|
173
|
-
IMPLICIT_GRANT: "implicit",
|
|
174
169
|
AUTHORIZATION_CODE_GRANT: "authorization_code",
|
|
175
|
-
|
|
176
|
-
RESOURCE_OWNER_PASSWORD_GRANT: "password",
|
|
177
|
-
REFRESH_TOKEN_GRANT: "refresh_token",
|
|
178
|
-
DEVICE_CODE_GRANT: "device_code",
|
|
179
|
-
JWT_BEARER: "urn:ietf:params:oauth:grant-type:jwt-bearer",
|
|
180
|
-
};
|
|
170
|
+
REFRESH_TOKEN_GRANT: "refresh_token"};
|
|
181
171
|
/**
|
|
182
172
|
* Account types in Cache
|
|
183
173
|
*/
|
|
184
174
|
const CacheAccountType = {
|
|
185
175
|
MSSTS_ACCOUNT_TYPE: "MSSTS",
|
|
186
176
|
ADFS_ACCOUNT_TYPE: "ADFS",
|
|
187
|
-
MSAV1_ACCOUNT_TYPE: "MSA",
|
|
188
177
|
GENERIC_ACCOUNT_TYPE: "Generic", // NTLM, Kerberos, FBA, Basic etc
|
|
189
178
|
};
|
|
190
179
|
/**
|
|
@@ -221,7 +210,6 @@ const AuthorityMetadataSource = {
|
|
|
221
210
|
};
|
|
222
211
|
const SERVER_TELEM_CONSTANTS = {
|
|
223
212
|
SCHEMA_VERSION: 5,
|
|
224
|
-
MAX_CUR_HEADER_BYTES: 80,
|
|
225
213
|
MAX_LAST_HEADER_BYTES: 330,
|
|
226
214
|
MAX_CACHED_ERRORS: 50,
|
|
227
215
|
CACHE_KEY: "server-telemetry",
|
|
@@ -269,9 +257,7 @@ const RegionDiscoverySources = {
|
|
|
269
257
|
* Region Discovery Outcomes
|
|
270
258
|
*/
|
|
271
259
|
const RegionDiscoveryOutcomes = {
|
|
272
|
-
CONFIGURED_MATCHES_DETECTED: "1",
|
|
273
260
|
CONFIGURED_NO_AUTO_DETECTION: "2",
|
|
274
|
-
CONFIGURED_NOT_DETECTED: "3",
|
|
275
261
|
AUTO_DETECTION_REQUESTED_SUCCESSFUL: "4",
|
|
276
262
|
AUTO_DETECTION_REQUESTED_FAILED: "5",
|
|
277
263
|
};
|
|
@@ -298,7 +284,7 @@ const JsonWebTokenTypes = {
|
|
|
298
284
|
// Token renewal offset default in seconds
|
|
299
285
|
const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
|
|
300
286
|
|
|
301
|
-
/*! @azure/msal-common v15.
|
|
287
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
302
288
|
/*
|
|
303
289
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
304
290
|
* Licensed under the MIT License.
|
|
@@ -315,7 +301,7 @@ var AuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
315
301
|
unexpectedError: unexpectedError
|
|
316
302
|
});
|
|
317
303
|
|
|
318
|
-
/*! @azure/msal-common v15.
|
|
304
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
319
305
|
|
|
320
306
|
/*
|
|
321
307
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -364,7 +350,7 @@ function createAuthError(code, additionalMessage) {
|
|
|
364
350
|
: AuthErrorMessages[code]);
|
|
365
351
|
}
|
|
366
352
|
|
|
367
|
-
/*! @azure/msal-common v15.
|
|
353
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
368
354
|
/*
|
|
369
355
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
370
356
|
* Licensed under the MIT License.
|
|
@@ -462,7 +448,7 @@ var ClientAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
462
448
|
userTimeoutReached: userTimeoutReached
|
|
463
449
|
});
|
|
464
450
|
|
|
465
|
-
/*! @azure/msal-common v15.
|
|
451
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
466
452
|
|
|
467
453
|
/*
|
|
468
454
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -714,7 +700,7 @@ function createClientAuthError(errorCode, additionalMessage) {
|
|
|
714
700
|
return new ClientAuthError(errorCode, additionalMessage);
|
|
715
701
|
}
|
|
716
702
|
|
|
717
|
-
/*! @azure/msal-common v15.
|
|
703
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
718
704
|
|
|
719
705
|
/*
|
|
720
706
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -753,7 +739,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
|
|
|
753
739
|
},
|
|
754
740
|
};
|
|
755
741
|
|
|
756
|
-
/*! @azure/msal-common v15.
|
|
742
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
757
743
|
|
|
758
744
|
/*
|
|
759
745
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -944,12 +930,12 @@ class Logger {
|
|
|
944
930
|
}
|
|
945
931
|
}
|
|
946
932
|
|
|
947
|
-
/*! @azure/msal-common v15.
|
|
933
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
948
934
|
/* eslint-disable header/header */
|
|
949
935
|
const name$1 = "@azure/msal-common";
|
|
950
|
-
const version$1 = "15.
|
|
936
|
+
const version$1 = "15.8.0";
|
|
951
937
|
|
|
952
|
-
/*! @azure/msal-common v15.
|
|
938
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
953
939
|
/*
|
|
954
940
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
955
941
|
* Licensed under the MIT License.
|
|
@@ -969,7 +955,7 @@ const AzureCloudInstance = {
|
|
|
969
955
|
AzureUsGovernment: "https://login.microsoftonline.us",
|
|
970
956
|
};
|
|
971
957
|
|
|
972
|
-
/*! @azure/msal-common v15.
|
|
958
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
973
959
|
|
|
974
960
|
/*
|
|
975
961
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1030,7 +1016,7 @@ function checkMaxAge(authTime, maxAge) {
|
|
|
1030
1016
|
}
|
|
1031
1017
|
}
|
|
1032
1018
|
|
|
1033
|
-
/*! @azure/msal-common v15.
|
|
1019
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
1034
1020
|
/*
|
|
1035
1021
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1036
1022
|
* Licensed under the MIT License.
|
|
@@ -1085,7 +1071,7 @@ function wasClockTurnedBack(cachedAt) {
|
|
|
1085
1071
|
return cachedAtSec > nowSeconds();
|
|
1086
1072
|
}
|
|
1087
1073
|
|
|
1088
|
-
/*! @azure/msal-common v15.
|
|
1074
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
1089
1075
|
|
|
1090
1076
|
/*
|
|
1091
1077
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1412,7 +1398,7 @@ function isAuthorityMetadataExpired(metadata) {
|
|
|
1412
1398
|
return metadata.expiresAt <= nowSeconds();
|
|
1413
1399
|
}
|
|
1414
1400
|
|
|
1415
|
-
/*! @azure/msal-common v15.
|
|
1401
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
1416
1402
|
/*
|
|
1417
1403
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1418
1404
|
* Licensed under the MIT License.
|
|
@@ -1466,7 +1452,7 @@ var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
1466
1452
|
urlParseError: urlParseError
|
|
1467
1453
|
});
|
|
1468
1454
|
|
|
1469
|
-
/*! @azure/msal-common v15.
|
|
1455
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
1470
1456
|
|
|
1471
1457
|
/*
|
|
1472
1458
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1604,7 +1590,7 @@ function createClientConfigurationError(errorCode) {
|
|
|
1604
1590
|
return new ClientConfigurationError(errorCode);
|
|
1605
1591
|
}
|
|
1606
1592
|
|
|
1607
|
-
/*! @azure/msal-common v15.
|
|
1593
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
1608
1594
|
/*
|
|
1609
1595
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1610
1596
|
* Licensed under the MIT License.
|
|
@@ -1701,7 +1687,7 @@ class StringUtils {
|
|
|
1701
1687
|
}
|
|
1702
1688
|
}
|
|
1703
1689
|
|
|
1704
|
-
/*! @azure/msal-common v15.
|
|
1690
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
1705
1691
|
|
|
1706
1692
|
/*
|
|
1707
1693
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1892,7 +1878,7 @@ class ScopeSet {
|
|
|
1892
1878
|
}
|
|
1893
1879
|
}
|
|
1894
1880
|
|
|
1895
|
-
/*! @azure/msal-common v15.
|
|
1881
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
1896
1882
|
|
|
1897
1883
|
/*
|
|
1898
1884
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1932,7 +1918,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
|
|
|
1932
1918
|
};
|
|
1933
1919
|
}
|
|
1934
1920
|
|
|
1935
|
-
/*! @azure/msal-common v15.
|
|
1921
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
1936
1922
|
/*
|
|
1937
1923
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1938
1924
|
* Licensed under the MIT License.
|
|
@@ -2011,7 +1997,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
|
|
|
2011
1997
|
return updatedAccountInfo;
|
|
2012
1998
|
}
|
|
2013
1999
|
|
|
2014
|
-
/*! @azure/msal-common v15.
|
|
2000
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
2015
2001
|
/*
|
|
2016
2002
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2017
2003
|
* Licensed under the MIT License.
|
|
@@ -2026,7 +2012,7 @@ const AuthorityType = {
|
|
|
2026
2012
|
Ciam: 3,
|
|
2027
2013
|
};
|
|
2028
2014
|
|
|
2029
|
-
/*! @azure/msal-common v15.
|
|
2015
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
2030
2016
|
/*
|
|
2031
2017
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2032
2018
|
* Licensed under the MIT License.
|
|
@@ -2048,7 +2034,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
|
|
|
2048
2034
|
return null;
|
|
2049
2035
|
}
|
|
2050
2036
|
|
|
2051
|
-
/*! @azure/msal-common v15.
|
|
2037
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
2052
2038
|
/*
|
|
2053
2039
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2054
2040
|
* Licensed under the MIT License.
|
|
@@ -2072,7 +2058,7 @@ const ProtocolMode = {
|
|
|
2072
2058
|
EAR: "EAR",
|
|
2073
2059
|
};
|
|
2074
2060
|
|
|
2075
|
-
/*! @azure/msal-common v15.
|
|
2061
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
2076
2062
|
|
|
2077
2063
|
/*
|
|
2078
2064
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2315,7 +2301,7 @@ class AccountEntity {
|
|
|
2315
2301
|
}
|
|
2316
2302
|
}
|
|
2317
2303
|
|
|
2318
|
-
/*! @azure/msal-common v15.
|
|
2304
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
2319
2305
|
|
|
2320
2306
|
/*
|
|
2321
2307
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2380,7 +2366,7 @@ function mapToQueryString(parameters, encodeExtraParams = true, extraQueryParame
|
|
|
2380
2366
|
return queryParameterArray.join("&");
|
|
2381
2367
|
}
|
|
2382
2368
|
|
|
2383
|
-
/*! @azure/msal-common v15.
|
|
2369
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
2384
2370
|
|
|
2385
2371
|
/*
|
|
2386
2372
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2544,7 +2530,7 @@ class UrlString {
|
|
|
2544
2530
|
}
|
|
2545
2531
|
}
|
|
2546
2532
|
|
|
2547
|
-
/*! @azure/msal-common v15.
|
|
2533
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
2548
2534
|
|
|
2549
2535
|
/*
|
|
2550
2536
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2575,7 +2561,6 @@ const rawMetdataJSON = {
|
|
|
2575
2561
|
},
|
|
2576
2562
|
},
|
|
2577
2563
|
instanceDiscoveryMetadata: {
|
|
2578
|
-
tenant_discovery_endpoint: "https://{canonicalAuthority}/v2.0/.well-known/openid-configuration",
|
|
2579
2564
|
metadata: [
|
|
2580
2565
|
{
|
|
2581
2566
|
preferred_network: "login.microsoftonline.com",
|
|
@@ -2684,42 +2669,60 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
2684
2669
|
return null;
|
|
2685
2670
|
}
|
|
2686
2671
|
|
|
2687
|
-
/*! @azure/msal-common v15.
|
|
2672
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
2688
2673
|
/*
|
|
2689
2674
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2690
2675
|
* Licensed under the MIT License.
|
|
2691
2676
|
*/
|
|
2692
|
-
const
|
|
2693
|
-
const
|
|
2677
|
+
const cacheQuotaExceeded = "cache_quota_exceeded";
|
|
2678
|
+
const cacheErrorUnknown = "cache_error_unknown";
|
|
2694
2679
|
|
|
2695
|
-
/*! @azure/msal-common v15.
|
|
2680
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
2696
2681
|
|
|
2697
2682
|
/*
|
|
2698
2683
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2699
2684
|
* Licensed under the MIT License.
|
|
2700
2685
|
*/
|
|
2701
2686
|
const CacheErrorMessages = {
|
|
2702
|
-
[
|
|
2703
|
-
[
|
|
2687
|
+
[cacheQuotaExceeded]: "Exceeded cache storage capacity.",
|
|
2688
|
+
[cacheErrorUnknown]: "Unexpected error occurred when using cache storage.",
|
|
2704
2689
|
};
|
|
2705
2690
|
/**
|
|
2706
2691
|
* Error thrown when there is an error with the cache
|
|
2707
2692
|
*/
|
|
2708
|
-
class CacheError extends
|
|
2693
|
+
class CacheError extends AuthError {
|
|
2709
2694
|
constructor(errorCode, errorMessage) {
|
|
2710
2695
|
const message = errorMessage ||
|
|
2711
2696
|
(CacheErrorMessages[errorCode]
|
|
2712
2697
|
? CacheErrorMessages[errorCode]
|
|
2713
|
-
: CacheErrorMessages[
|
|
2698
|
+
: CacheErrorMessages[cacheErrorUnknown]);
|
|
2714
2699
|
super(`${errorCode}: ${message}`);
|
|
2715
2700
|
Object.setPrototypeOf(this, CacheError.prototype);
|
|
2716
2701
|
this.name = "CacheError";
|
|
2717
2702
|
this.errorCode = errorCode;
|
|
2718
2703
|
this.errorMessage = message;
|
|
2719
2704
|
}
|
|
2705
|
+
}
|
|
2706
|
+
/**
|
|
2707
|
+
* Helper function to wrap browser errors in a CacheError object
|
|
2708
|
+
* @param e
|
|
2709
|
+
* @returns
|
|
2710
|
+
*/
|
|
2711
|
+
function createCacheError(e) {
|
|
2712
|
+
if (!(e instanceof Error)) {
|
|
2713
|
+
return new CacheError(cacheErrorUnknown);
|
|
2714
|
+
}
|
|
2715
|
+
if (e.name === "QuotaExceededError" ||
|
|
2716
|
+
e.name === "NS_ERROR_DOM_QUOTA_REACHED" ||
|
|
2717
|
+
e.message.includes("exceeded the quota")) {
|
|
2718
|
+
return new CacheError(cacheQuotaExceeded);
|
|
2719
|
+
}
|
|
2720
|
+
else {
|
|
2721
|
+
return new CacheError(e.name, e.message);
|
|
2722
|
+
}
|
|
2720
2723
|
}
|
|
2721
2724
|
|
|
2722
|
-
/*! @azure/msal-common v15.
|
|
2725
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
2723
2726
|
|
|
2724
2727
|
/*
|
|
2725
2728
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2730,25 +2733,26 @@ class CacheError extends Error {
|
|
|
2730
2733
|
* @internal
|
|
2731
2734
|
*/
|
|
2732
2735
|
class CacheManager {
|
|
2733
|
-
constructor(clientId, cryptoImpl, logger, staticAuthorityOptions) {
|
|
2736
|
+
constructor(clientId, cryptoImpl, logger, performanceClient, staticAuthorityOptions) {
|
|
2734
2737
|
this.clientId = clientId;
|
|
2735
2738
|
this.cryptoImpl = cryptoImpl;
|
|
2736
2739
|
this.commonLogger = logger.clone(name$1, version$1);
|
|
2737
2740
|
this.staticAuthorityOptions = staticAuthorityOptions;
|
|
2741
|
+
this.performanceClient = performanceClient;
|
|
2738
2742
|
}
|
|
2739
2743
|
/**
|
|
2740
2744
|
* Returns all the accounts in the cache that match the optional filter. If no filter is provided, all accounts are returned.
|
|
2741
2745
|
* @param accountFilter - (Optional) filter to narrow down the accounts returned
|
|
2742
2746
|
* @returns Array of AccountInfo objects in cache
|
|
2743
2747
|
*/
|
|
2744
|
-
getAllAccounts(accountFilter) {
|
|
2745
|
-
return this.buildTenantProfiles(this.getAccountsFilteredBy(accountFilter
|
|
2748
|
+
getAllAccounts(accountFilter, correlationId) {
|
|
2749
|
+
return this.buildTenantProfiles(this.getAccountsFilteredBy(accountFilter, correlationId), correlationId, accountFilter);
|
|
2746
2750
|
}
|
|
2747
2751
|
/**
|
|
2748
2752
|
* Gets first tenanted AccountInfo object found based on provided filters
|
|
2749
2753
|
*/
|
|
2750
|
-
getAccountInfoFilteredBy(accountFilter) {
|
|
2751
|
-
const allAccounts = this.getAllAccounts(accountFilter);
|
|
2754
|
+
getAccountInfoFilteredBy(accountFilter, correlationId) {
|
|
2755
|
+
const allAccounts = this.getAllAccounts(accountFilter, correlationId);
|
|
2752
2756
|
if (allAccounts.length > 1) {
|
|
2753
2757
|
// If one or more accounts are found, prioritize accounts that have an ID token
|
|
2754
2758
|
const sortedAccounts = allAccounts.sort((account) => {
|
|
@@ -2769,8 +2773,8 @@ class CacheManager {
|
|
|
2769
2773
|
* @param accountFilter
|
|
2770
2774
|
* @returns
|
|
2771
2775
|
*/
|
|
2772
|
-
getBaseAccountInfo(accountFilter) {
|
|
2773
|
-
const accountEntities = this.getAccountsFilteredBy(accountFilter);
|
|
2776
|
+
getBaseAccountInfo(accountFilter, correlationId) {
|
|
2777
|
+
const accountEntities = this.getAccountsFilteredBy(accountFilter, correlationId);
|
|
2774
2778
|
if (accountEntities.length > 0) {
|
|
2775
2779
|
return accountEntities[0].getAccountInfo();
|
|
2776
2780
|
}
|
|
@@ -2785,12 +2789,12 @@ class CacheManager {
|
|
|
2785
2789
|
* @param accountFilter
|
|
2786
2790
|
* @returns Array of AccountInfo objects that match account and tenant profile filters
|
|
2787
2791
|
*/
|
|
2788
|
-
buildTenantProfiles(cachedAccounts, accountFilter) {
|
|
2792
|
+
buildTenantProfiles(cachedAccounts, correlationId, accountFilter) {
|
|
2789
2793
|
return cachedAccounts.flatMap((accountEntity) => {
|
|
2790
|
-
return this.getTenantProfilesFromAccountEntity(accountEntity, accountFilter?.tenantId, accountFilter);
|
|
2794
|
+
return this.getTenantProfilesFromAccountEntity(accountEntity, correlationId, accountFilter?.tenantId, accountFilter);
|
|
2791
2795
|
});
|
|
2792
2796
|
}
|
|
2793
|
-
getTenantedAccountInfoByFilter(accountInfo, tokenKeys, tenantProfile, tenantProfileFilter) {
|
|
2797
|
+
getTenantedAccountInfoByFilter(accountInfo, tokenKeys, tenantProfile, correlationId, tenantProfileFilter) {
|
|
2794
2798
|
let tenantedAccountInfo = null;
|
|
2795
2799
|
let idTokenClaims;
|
|
2796
2800
|
if (tenantProfileFilter) {
|
|
@@ -2798,7 +2802,7 @@ class CacheManager {
|
|
|
2798
2802
|
return null;
|
|
2799
2803
|
}
|
|
2800
2804
|
}
|
|
2801
|
-
const idToken = this.getIdToken(accountInfo, tokenKeys, tenantProfile.tenantId);
|
|
2805
|
+
const idToken = this.getIdToken(accountInfo, correlationId, tokenKeys, tenantProfile.tenantId);
|
|
2802
2806
|
if (idToken) {
|
|
2803
2807
|
idTokenClaims = extractTokenClaims(idToken.secret, this.cryptoImpl.base64Decode);
|
|
2804
2808
|
if (!this.idTokenClaimsMatchTenantProfileFilter(idTokenClaims, tenantProfileFilter)) {
|
|
@@ -2810,7 +2814,7 @@ class CacheManager {
|
|
|
2810
2814
|
tenantedAccountInfo = updateAccountTenantProfileData(accountInfo, tenantProfile, idTokenClaims, idToken?.secret);
|
|
2811
2815
|
return tenantedAccountInfo;
|
|
2812
2816
|
}
|
|
2813
|
-
getTenantProfilesFromAccountEntity(accountEntity, targetTenantId, tenantProfileFilter) {
|
|
2817
|
+
getTenantProfilesFromAccountEntity(accountEntity, correlationId, targetTenantId, tenantProfileFilter) {
|
|
2814
2818
|
const accountInfo = accountEntity.getAccountInfo();
|
|
2815
2819
|
let searchTenantProfiles = accountInfo.tenantProfiles || new Map();
|
|
2816
2820
|
const tokenKeys = this.getTokenKeys();
|
|
@@ -2830,7 +2834,7 @@ class CacheManager {
|
|
|
2830
2834
|
}
|
|
2831
2835
|
const matchingTenantProfiles = [];
|
|
2832
2836
|
searchTenantProfiles.forEach((tenantProfile) => {
|
|
2833
|
-
const tenantedAccountInfo = this.getTenantedAccountInfoByFilter(accountInfo, tokenKeys, tenantProfile, tenantProfileFilter);
|
|
2837
|
+
const tenantedAccountInfo = this.getTenantedAccountInfoByFilter(accountInfo, tokenKeys, tenantProfile, correlationId, tenantProfileFilter);
|
|
2834
2838
|
if (tenantedAccountInfo) {
|
|
2835
2839
|
matchingTenantProfiles.push(tenantedAccountInfo);
|
|
2836
2840
|
}
|
|
@@ -2904,26 +2908,16 @@ class CacheManager {
|
|
|
2904
2908
|
await this.setRefreshTokenCredential(cacheRecord.refreshToken, correlationId);
|
|
2905
2909
|
}
|
|
2906
2910
|
if (!!cacheRecord.appMetadata) {
|
|
2907
|
-
this.setAppMetadata(cacheRecord.appMetadata);
|
|
2911
|
+
this.setAppMetadata(cacheRecord.appMetadata, correlationId);
|
|
2908
2912
|
}
|
|
2909
2913
|
}
|
|
2910
2914
|
catch (e) {
|
|
2911
2915
|
this.commonLogger?.error(`CacheManager.saveCacheRecord: failed`);
|
|
2912
|
-
if (e instanceof
|
|
2913
|
-
|
|
2914
|
-
if (e.name === "QuotaExceededError" ||
|
|
2915
|
-
e.name === "NS_ERROR_DOM_QUOTA_REACHED" ||
|
|
2916
|
-
e.message.includes("exceeded the quota")) {
|
|
2917
|
-
this.commonLogger?.error(`CacheManager.saveCacheRecord: exceeded storage quota`, correlationId);
|
|
2918
|
-
throw new CacheError(cacheQuotaExceededErrorCode);
|
|
2919
|
-
}
|
|
2920
|
-
else {
|
|
2921
|
-
throw new CacheError(e.name, e.message);
|
|
2922
|
-
}
|
|
2916
|
+
if (e instanceof AuthError) {
|
|
2917
|
+
throw e;
|
|
2923
2918
|
}
|
|
2924
2919
|
else {
|
|
2925
|
-
|
|
2926
|
-
throw new CacheError(cacheUnknownErrorCode);
|
|
2920
|
+
throw createCacheError(e);
|
|
2927
2921
|
}
|
|
2928
2922
|
}
|
|
2929
2923
|
}
|
|
@@ -2943,21 +2937,19 @@ class CacheManager {
|
|
|
2943
2937
|
};
|
|
2944
2938
|
const tokenKeys = this.getTokenKeys();
|
|
2945
2939
|
const currentScopes = ScopeSet.fromString(credential.target);
|
|
2946
|
-
const removedAccessTokens = [];
|
|
2947
2940
|
tokenKeys.accessToken.forEach((key) => {
|
|
2948
2941
|
if (!this.accessTokenKeyMatchesFilter(key, accessTokenFilter, false)) {
|
|
2949
2942
|
return;
|
|
2950
2943
|
}
|
|
2951
|
-
const tokenEntity = this.getAccessTokenCredential(key);
|
|
2944
|
+
const tokenEntity = this.getAccessTokenCredential(key, correlationId);
|
|
2952
2945
|
if (tokenEntity &&
|
|
2953
2946
|
this.credentialMatchesFilter(tokenEntity, accessTokenFilter)) {
|
|
2954
2947
|
const tokenScopeSet = ScopeSet.fromString(tokenEntity.target);
|
|
2955
2948
|
if (tokenScopeSet.intersectingScopeSets(currentScopes)) {
|
|
2956
|
-
|
|
2949
|
+
this.removeAccessToken(key, correlationId);
|
|
2957
2950
|
}
|
|
2958
2951
|
}
|
|
2959
2952
|
});
|
|
2960
|
-
await Promise.all(removedAccessTokens);
|
|
2961
2953
|
await this.setAccessTokenCredential(credential, correlationId);
|
|
2962
2954
|
}
|
|
2963
2955
|
/**
|
|
@@ -2965,7 +2957,7 @@ class CacheManager {
|
|
|
2965
2957
|
* Not checking for casing as keys are all generated in lower case, remember to convert to lower case if object properties are compared
|
|
2966
2958
|
* @param accountFilter - An object containing Account properties to filter by
|
|
2967
2959
|
*/
|
|
2968
|
-
getAccountsFilteredBy(accountFilter) {
|
|
2960
|
+
getAccountsFilteredBy(accountFilter, correlationId) {
|
|
2969
2961
|
const allAccountKeys = this.getAccountKeys();
|
|
2970
2962
|
const matchingAccounts = [];
|
|
2971
2963
|
allAccountKeys.forEach((cacheKey) => {
|
|
@@ -2973,7 +2965,7 @@ class CacheManager {
|
|
|
2973
2965
|
// Don't parse value if the key doesn't match the account filters
|
|
2974
2966
|
return;
|
|
2975
2967
|
}
|
|
2976
|
-
const entity = this.getAccount(cacheKey,
|
|
2968
|
+
const entity = this.getAccount(cacheKey, correlationId);
|
|
2977
2969
|
// Match base account fields
|
|
2978
2970
|
if (!entity) {
|
|
2979
2971
|
return;
|
|
@@ -3199,86 +3191,80 @@ class CacheManager {
|
|
|
3199
3191
|
/**
|
|
3200
3192
|
* Removes all accounts and related tokens from cache.
|
|
3201
3193
|
*/
|
|
3202
|
-
|
|
3194
|
+
removeAllAccounts(correlationId) {
|
|
3203
3195
|
const allAccountKeys = this.getAccountKeys();
|
|
3204
|
-
const removedAccounts = [];
|
|
3205
3196
|
allAccountKeys.forEach((cacheKey) => {
|
|
3206
|
-
|
|
3197
|
+
this.removeAccount(cacheKey, correlationId);
|
|
3207
3198
|
});
|
|
3208
|
-
await Promise.all(removedAccounts);
|
|
3209
3199
|
}
|
|
3210
3200
|
/**
|
|
3211
3201
|
* Removes the account and related tokens for a given account key
|
|
3212
3202
|
* @param account
|
|
3213
3203
|
*/
|
|
3214
|
-
|
|
3215
|
-
const account = this.getAccount(accountKey,
|
|
3204
|
+
removeAccount(accountKey, correlationId) {
|
|
3205
|
+
const account = this.getAccount(accountKey, correlationId);
|
|
3216
3206
|
if (!account) {
|
|
3217
3207
|
return;
|
|
3218
3208
|
}
|
|
3219
|
-
|
|
3220
|
-
this.removeItem(accountKey);
|
|
3209
|
+
this.removeAccountContext(account, correlationId);
|
|
3210
|
+
this.removeItem(accountKey, correlationId);
|
|
3221
3211
|
}
|
|
3222
3212
|
/**
|
|
3223
3213
|
* Removes credentials associated with the provided account
|
|
3224
3214
|
* @param account
|
|
3225
3215
|
*/
|
|
3226
|
-
|
|
3216
|
+
removeAccountContext(account, correlationId) {
|
|
3227
3217
|
const allTokenKeys = this.getTokenKeys();
|
|
3228
3218
|
const accountId = account.generateAccountId();
|
|
3229
|
-
const removedCredentials = [];
|
|
3230
3219
|
allTokenKeys.idToken.forEach((key) => {
|
|
3231
3220
|
if (key.indexOf(accountId) === 0) {
|
|
3232
|
-
this.removeIdToken(key);
|
|
3221
|
+
this.removeIdToken(key, correlationId);
|
|
3233
3222
|
}
|
|
3234
3223
|
});
|
|
3235
3224
|
allTokenKeys.accessToken.forEach((key) => {
|
|
3236
3225
|
if (key.indexOf(accountId) === 0) {
|
|
3237
|
-
|
|
3226
|
+
this.removeAccessToken(key, correlationId);
|
|
3238
3227
|
}
|
|
3239
3228
|
});
|
|
3240
3229
|
allTokenKeys.refreshToken.forEach((key) => {
|
|
3241
3230
|
if (key.indexOf(accountId) === 0) {
|
|
3242
|
-
this.removeRefreshToken(key);
|
|
3231
|
+
this.removeRefreshToken(key, correlationId);
|
|
3243
3232
|
}
|
|
3244
3233
|
});
|
|
3245
|
-
await Promise.all(removedCredentials);
|
|
3246
3234
|
}
|
|
3247
3235
|
/**
|
|
3248
|
-
*
|
|
3249
|
-
* @param
|
|
3236
|
+
* Removes accessToken from the cache
|
|
3237
|
+
* @param key
|
|
3238
|
+
* @param correlationId
|
|
3250
3239
|
*/
|
|
3251
|
-
|
|
3252
|
-
const credential = this.getAccessTokenCredential(key);
|
|
3253
|
-
|
|
3240
|
+
removeAccessToken(key, correlationId) {
|
|
3241
|
+
const credential = this.getAccessTokenCredential(key, correlationId);
|
|
3242
|
+
this.removeItem(key, correlationId);
|
|
3243
|
+
this.performanceClient.incrementFields({ accessTokensRemoved: 1 }, correlationId);
|
|
3244
|
+
if (!credential ||
|
|
3245
|
+
credential.credentialType.toLowerCase() !==
|
|
3246
|
+
CredentialType.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase() ||
|
|
3247
|
+
credential.tokenType !== AuthenticationScheme.POP) {
|
|
3248
|
+
// If the credential is not a PoP token, we can return
|
|
3254
3249
|
return;
|
|
3255
3250
|
}
|
|
3256
3251
|
// Remove Token Binding Key from key store for PoP Tokens Credentials
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
try {
|
|
3264
|
-
await this.cryptoImpl.removeTokenBindingKey(kid);
|
|
3265
|
-
}
|
|
3266
|
-
catch (error) {
|
|
3267
|
-
throw createClientAuthError(bindingKeyNotRemoved);
|
|
3268
|
-
}
|
|
3269
|
-
}
|
|
3270
|
-
}
|
|
3252
|
+
const kid = credential.keyId;
|
|
3253
|
+
if (kid) {
|
|
3254
|
+
void this.cryptoImpl.removeTokenBindingKey(kid).catch(() => {
|
|
3255
|
+
this.commonLogger.error(`Failed to remove token binding key ${kid}`, correlationId);
|
|
3256
|
+
this.performanceClient?.incrementFields({ removeTokenBindingKeyFailure: 1 }, correlationId);
|
|
3257
|
+
});
|
|
3271
3258
|
}
|
|
3272
|
-
return this.removeItem(key);
|
|
3273
3259
|
}
|
|
3274
3260
|
/**
|
|
3275
3261
|
* Removes all app metadata objects from cache.
|
|
3276
3262
|
*/
|
|
3277
|
-
removeAppMetadata() {
|
|
3263
|
+
removeAppMetadata(correlationId) {
|
|
3278
3264
|
const allCacheKeys = this.getKeys();
|
|
3279
3265
|
allCacheKeys.forEach((cacheKey) => {
|
|
3280
3266
|
if (this.isAppMetadata(cacheKey)) {
|
|
3281
|
-
this.removeItem(cacheKey);
|
|
3267
|
+
this.removeItem(cacheKey, correlationId);
|
|
3282
3268
|
}
|
|
3283
3269
|
});
|
|
3284
3270
|
return true;
|
|
@@ -3287,9 +3273,9 @@ class CacheManager {
|
|
|
3287
3273
|
* Retrieve AccountEntity from cache
|
|
3288
3274
|
* @param account
|
|
3289
3275
|
*/
|
|
3290
|
-
readAccountFromCache(account) {
|
|
3276
|
+
readAccountFromCache(account, correlationId) {
|
|
3291
3277
|
const accountKey = AccountEntity.generateAccountCacheKey(account);
|
|
3292
|
-
return this.getAccount(accountKey,
|
|
3278
|
+
return this.getAccount(accountKey, correlationId);
|
|
3293
3279
|
}
|
|
3294
3280
|
/**
|
|
3295
3281
|
* Retrieve IdTokenEntity from cache
|
|
@@ -3299,7 +3285,7 @@ class CacheManager {
|
|
|
3299
3285
|
* @param performanceClient {?IPerformanceClient}
|
|
3300
3286
|
* @param correlationId {?string}
|
|
3301
3287
|
*/
|
|
3302
|
-
getIdToken(account, tokenKeys, targetRealm, performanceClient
|
|
3288
|
+
getIdToken(account, correlationId, tokenKeys, targetRealm, performanceClient) {
|
|
3303
3289
|
this.commonLogger.trace("CacheManager - getIdToken called");
|
|
3304
3290
|
const idTokenFilter = {
|
|
3305
3291
|
homeAccountId: account.homeAccountId,
|
|
@@ -3308,7 +3294,7 @@ class CacheManager {
|
|
|
3308
3294
|
clientId: this.clientId,
|
|
3309
3295
|
realm: targetRealm,
|
|
3310
3296
|
};
|
|
3311
|
-
const idTokenMap = this.getIdTokensByFilter(idTokenFilter, tokenKeys);
|
|
3297
|
+
const idTokenMap = this.getIdTokensByFilter(idTokenFilter, correlationId, tokenKeys);
|
|
3312
3298
|
const numIdTokens = idTokenMap.size;
|
|
3313
3299
|
if (numIdTokens < 1) {
|
|
3314
3300
|
this.commonLogger.info("CacheManager:getIdToken - No token found");
|
|
@@ -3341,7 +3327,7 @@ class CacheManager {
|
|
|
3341
3327
|
// Multiple tokens for a single tenant profile, remove all and return null
|
|
3342
3328
|
this.commonLogger.info("CacheManager:getIdToken - Multiple matching ID tokens found, clearing them");
|
|
3343
3329
|
tokensToBeRemoved.forEach((idToken, key) => {
|
|
3344
|
-
this.removeIdToken(key);
|
|
3330
|
+
this.removeIdToken(key, correlationId);
|
|
3345
3331
|
});
|
|
3346
3332
|
if (performanceClient && correlationId) {
|
|
3347
3333
|
performanceClient.addFields({ multiMatchedID: idTokenMap.size }, correlationId);
|
|
@@ -3356,7 +3342,7 @@ class CacheManager {
|
|
|
3356
3342
|
* @param filter
|
|
3357
3343
|
* @returns
|
|
3358
3344
|
*/
|
|
3359
|
-
getIdTokensByFilter(filter, tokenKeys) {
|
|
3345
|
+
getIdTokensByFilter(filter, correlationId, tokenKeys) {
|
|
3360
3346
|
const idTokenKeys = (tokenKeys && tokenKeys.idToken) || this.getTokenKeys().idToken;
|
|
3361
3347
|
const idTokens = new Map();
|
|
3362
3348
|
idTokenKeys.forEach((key) => {
|
|
@@ -3366,7 +3352,7 @@ class CacheManager {
|
|
|
3366
3352
|
})) {
|
|
3367
3353
|
return;
|
|
3368
3354
|
}
|
|
3369
|
-
const idToken = this.getIdTokenCredential(key);
|
|
3355
|
+
const idToken = this.getIdTokenCredential(key, correlationId);
|
|
3370
3356
|
if (idToken && this.credentialMatchesFilter(idToken, filter)) {
|
|
3371
3357
|
idTokens.set(key, idToken);
|
|
3372
3358
|
}
|
|
@@ -3395,26 +3381,27 @@ class CacheManager {
|
|
|
3395
3381
|
* Removes idToken from the cache
|
|
3396
3382
|
* @param key
|
|
3397
3383
|
*/
|
|
3398
|
-
removeIdToken(key) {
|
|
3399
|
-
this.removeItem(key);
|
|
3384
|
+
removeIdToken(key, correlationId) {
|
|
3385
|
+
this.removeItem(key, correlationId);
|
|
3400
3386
|
}
|
|
3401
3387
|
/**
|
|
3402
3388
|
* Removes refresh token from the cache
|
|
3403
3389
|
* @param key
|
|
3404
3390
|
*/
|
|
3405
|
-
removeRefreshToken(key) {
|
|
3406
|
-
this.removeItem(key);
|
|
3391
|
+
removeRefreshToken(key, correlationId) {
|
|
3392
|
+
this.removeItem(key, correlationId);
|
|
3407
3393
|
}
|
|
3408
3394
|
/**
|
|
3409
3395
|
* Retrieve AccessTokenEntity from cache
|
|
3410
3396
|
* @param account {AccountInfo}
|
|
3411
3397
|
* @param request {BaseAuthRequest}
|
|
3398
|
+
* @param correlationId {?string}
|
|
3412
3399
|
* @param tokenKeys {?TokenKeys}
|
|
3413
3400
|
* @param performanceClient {?IPerformanceClient}
|
|
3414
|
-
* @param correlationId {?string}
|
|
3415
3401
|
*/
|
|
3416
|
-
getAccessToken(account, request, tokenKeys, targetRealm
|
|
3417
|
-
|
|
3402
|
+
getAccessToken(account, request, tokenKeys, targetRealm) {
|
|
3403
|
+
const correlationId = request.correlationId;
|
|
3404
|
+
this.commonLogger.trace("CacheManager - getAccessToken called", correlationId);
|
|
3418
3405
|
const scopes = ScopeSet.createSearchScopes(request.scopes);
|
|
3419
3406
|
const authScheme = request.authenticationScheme || AuthenticationScheme.BEARER;
|
|
3420
3407
|
/*
|
|
@@ -3443,7 +3430,7 @@ class CacheManager {
|
|
|
3443
3430
|
accessTokenKeys.forEach((key) => {
|
|
3444
3431
|
// Validate key
|
|
3445
3432
|
if (this.accessTokenKeyMatchesFilter(key, accessTokenFilter, true)) {
|
|
3446
|
-
const accessToken = this.getAccessTokenCredential(key);
|
|
3433
|
+
const accessToken = this.getAccessTokenCredential(key, correlationId);
|
|
3447
3434
|
// Validate value
|
|
3448
3435
|
if (accessToken &&
|
|
3449
3436
|
this.credentialMatchesFilter(accessToken, accessTokenFilter)) {
|
|
@@ -3453,20 +3440,18 @@ class CacheManager {
|
|
|
3453
3440
|
});
|
|
3454
3441
|
const numAccessTokens = accessTokens.length;
|
|
3455
3442
|
if (numAccessTokens < 1) {
|
|
3456
|
-
this.commonLogger.info("CacheManager:getAccessToken - No token found");
|
|
3443
|
+
this.commonLogger.info("CacheManager:getAccessToken - No token found", correlationId);
|
|
3457
3444
|
return null;
|
|
3458
3445
|
}
|
|
3459
3446
|
else if (numAccessTokens > 1) {
|
|
3460
|
-
this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them");
|
|
3447
|
+
this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them", correlationId);
|
|
3461
3448
|
accessTokens.forEach((accessToken) => {
|
|
3462
|
-
|
|
3449
|
+
this.removeAccessToken(generateCredentialKey(accessToken), correlationId);
|
|
3463
3450
|
});
|
|
3464
|
-
|
|
3465
|
-
performanceClient.addFields({ multiMatchedAT: accessTokens.length }, correlationId);
|
|
3466
|
-
}
|
|
3451
|
+
this.performanceClient.addFields({ multiMatchedAT: accessTokens.length }, correlationId);
|
|
3467
3452
|
return null;
|
|
3468
3453
|
}
|
|
3469
|
-
this.commonLogger.info("CacheManager:getAccessToken - Returning access token");
|
|
3454
|
+
this.commonLogger.info("CacheManager:getAccessToken - Returning access token", correlationId);
|
|
3470
3455
|
return accessTokens[0];
|
|
3471
3456
|
}
|
|
3472
3457
|
/**
|
|
@@ -3515,14 +3500,14 @@ class CacheManager {
|
|
|
3515
3500
|
* @param filter
|
|
3516
3501
|
* @returns
|
|
3517
3502
|
*/
|
|
3518
|
-
getAccessTokensByFilter(filter) {
|
|
3503
|
+
getAccessTokensByFilter(filter, correlationId) {
|
|
3519
3504
|
const tokenKeys = this.getTokenKeys();
|
|
3520
3505
|
const accessTokens = [];
|
|
3521
3506
|
tokenKeys.accessToken.forEach((key) => {
|
|
3522
3507
|
if (!this.accessTokenKeyMatchesFilter(key, filter, true)) {
|
|
3523
3508
|
return;
|
|
3524
3509
|
}
|
|
3525
|
-
const accessToken = this.getAccessTokenCredential(key);
|
|
3510
|
+
const accessToken = this.getAccessTokenCredential(key, correlationId);
|
|
3526
3511
|
if (accessToken &&
|
|
3527
3512
|
this.credentialMatchesFilter(accessToken, filter)) {
|
|
3528
3513
|
accessTokens.push(accessToken);
|
|
@@ -3534,11 +3519,11 @@ class CacheManager {
|
|
|
3534
3519
|
* Helper to retrieve the appropriate refresh token from cache
|
|
3535
3520
|
* @param account {AccountInfo}
|
|
3536
3521
|
* @param familyRT {boolean}
|
|
3522
|
+
* @param correlationId {?string}
|
|
3537
3523
|
* @param tokenKeys {?TokenKeys}
|
|
3538
3524
|
* @param performanceClient {?IPerformanceClient}
|
|
3539
|
-
* @param correlationId {?string}
|
|
3540
3525
|
*/
|
|
3541
|
-
getRefreshToken(account, familyRT, tokenKeys, performanceClient
|
|
3526
|
+
getRefreshToken(account, familyRT, correlationId, tokenKeys, performanceClient) {
|
|
3542
3527
|
this.commonLogger.trace("CacheManager - getRefreshToken called");
|
|
3543
3528
|
const id = familyRT ? THE_FAMILY_ID : undefined;
|
|
3544
3529
|
const refreshTokenFilter = {
|
|
@@ -3554,7 +3539,7 @@ class CacheManager {
|
|
|
3554
3539
|
refreshTokenKeys.forEach((key) => {
|
|
3555
3540
|
// Validate key
|
|
3556
3541
|
if (this.refreshTokenKeyMatchesFilter(key, refreshTokenFilter)) {
|
|
3557
|
-
const refreshToken = this.getRefreshTokenCredential(key);
|
|
3542
|
+
const refreshToken = this.getRefreshTokenCredential(key, correlationId);
|
|
3558
3543
|
// Validate value
|
|
3559
3544
|
if (refreshToken &&
|
|
3560
3545
|
this.credentialMatchesFilter(refreshToken, refreshTokenFilter)) {
|
|
@@ -3904,576 +3889,16 @@ class DefaultStorageClass extends CacheManager {
|
|
|
3904
3889
|
}
|
|
3905
3890
|
}
|
|
3906
3891
|
|
|
3907
|
-
/*! @azure/msal-common v15.
|
|
3908
|
-
|
|
3892
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
3909
3893
|
/*
|
|
3910
3894
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3911
3895
|
* Licensed under the MIT License.
|
|
3912
3896
|
*/
|
|
3913
|
-
const DEFAULT_SYSTEM_OPTIONS = {
|
|
3914
|
-
tokenRenewalOffsetSeconds: DEFAULT_TOKEN_RENEWAL_OFFSET_SEC,
|
|
3915
|
-
preventCorsPreflight: false,
|
|
3916
|
-
};
|
|
3917
|
-
const DEFAULT_LOGGER_IMPLEMENTATION = {
|
|
3918
|
-
loggerCallback: () => {
|
|
3919
|
-
// allow users to not set loggerCallback
|
|
3920
|
-
},
|
|
3921
|
-
piiLoggingEnabled: false,
|
|
3922
|
-
logLevel: exports.LogLevel.Info,
|
|
3923
|
-
correlationId: Constants.EMPTY_STRING,
|
|
3924
|
-
};
|
|
3925
|
-
const DEFAULT_CACHE_OPTIONS = {
|
|
3926
|
-
claimsBasedCachingEnabled: false,
|
|
3927
|
-
};
|
|
3928
|
-
const DEFAULT_NETWORK_IMPLEMENTATION = {
|
|
3929
|
-
async sendGetRequestAsync() {
|
|
3930
|
-
throw createClientAuthError(methodNotImplemented);
|
|
3931
|
-
},
|
|
3932
|
-
async sendPostRequestAsync() {
|
|
3933
|
-
throw createClientAuthError(methodNotImplemented);
|
|
3934
|
-
},
|
|
3935
|
-
};
|
|
3936
|
-
const DEFAULT_LIBRARY_INFO = {
|
|
3937
|
-
sku: Constants.SKU,
|
|
3938
|
-
version: version$1,
|
|
3939
|
-
cpu: Constants.EMPTY_STRING,
|
|
3940
|
-
os: Constants.EMPTY_STRING,
|
|
3941
|
-
};
|
|
3942
|
-
const DEFAULT_CLIENT_CREDENTIALS = {
|
|
3943
|
-
clientSecret: Constants.EMPTY_STRING,
|
|
3944
|
-
clientAssertion: undefined,
|
|
3945
|
-
};
|
|
3946
|
-
const DEFAULT_AZURE_CLOUD_OPTIONS = {
|
|
3947
|
-
azureCloudInstance: AzureCloudInstance.None,
|
|
3948
|
-
tenant: `${Constants.DEFAULT_COMMON_TENANT}`,
|
|
3949
|
-
};
|
|
3950
|
-
const DEFAULT_TELEMETRY_OPTIONS = {
|
|
3951
|
-
application: {
|
|
3952
|
-
appName: "",
|
|
3953
|
-
appVersion: "",
|
|
3954
|
-
},
|
|
3955
|
-
};
|
|
3956
3897
|
/**
|
|
3957
|
-
*
|
|
3958
|
-
*
|
|
3959
|
-
* @param Configuration
|
|
3898
|
+
* Enumeration of operations that are instrumented by have their performance measured by the PerformanceClient.
|
|
3960
3899
|
*
|
|
3961
|
-
* @
|
|
3962
|
-
|
|
3963
|
-
function buildClientConfiguration({ authOptions: userAuthOptions, systemOptions: userSystemOptions, loggerOptions: userLoggerOption, cacheOptions: userCacheOptions, storageInterface: storageImplementation, networkInterface: networkImplementation, cryptoInterface: cryptoImplementation, clientCredentials: clientCredentials, libraryInfo: libraryInfo, telemetry: telemetry, serverTelemetryManager: serverTelemetryManager, persistencePlugin: persistencePlugin, serializableCache: serializableCache, }) {
|
|
3964
|
-
const loggerOptions = {
|
|
3965
|
-
...DEFAULT_LOGGER_IMPLEMENTATION,
|
|
3966
|
-
...userLoggerOption,
|
|
3967
|
-
};
|
|
3968
|
-
return {
|
|
3969
|
-
authOptions: buildAuthOptions(userAuthOptions),
|
|
3970
|
-
systemOptions: { ...DEFAULT_SYSTEM_OPTIONS, ...userSystemOptions },
|
|
3971
|
-
loggerOptions: loggerOptions,
|
|
3972
|
-
cacheOptions: { ...DEFAULT_CACHE_OPTIONS, ...userCacheOptions },
|
|
3973
|
-
storageInterface: storageImplementation ||
|
|
3974
|
-
new DefaultStorageClass(userAuthOptions.clientId, DEFAULT_CRYPTO_IMPLEMENTATION, new Logger(loggerOptions)),
|
|
3975
|
-
networkInterface: networkImplementation || DEFAULT_NETWORK_IMPLEMENTATION,
|
|
3976
|
-
cryptoInterface: cryptoImplementation || DEFAULT_CRYPTO_IMPLEMENTATION,
|
|
3977
|
-
clientCredentials: clientCredentials || DEFAULT_CLIENT_CREDENTIALS,
|
|
3978
|
-
libraryInfo: { ...DEFAULT_LIBRARY_INFO, ...libraryInfo },
|
|
3979
|
-
telemetry: { ...DEFAULT_TELEMETRY_OPTIONS, ...telemetry },
|
|
3980
|
-
serverTelemetryManager: serverTelemetryManager || null,
|
|
3981
|
-
persistencePlugin: persistencePlugin || null,
|
|
3982
|
-
serializableCache: serializableCache || null,
|
|
3983
|
-
};
|
|
3984
|
-
}
|
|
3985
|
-
/**
|
|
3986
|
-
* Construct authoptions from the client and platform passed values
|
|
3987
|
-
* @param authOptions
|
|
3988
|
-
*/
|
|
3989
|
-
function buildAuthOptions(authOptions) {
|
|
3990
|
-
return {
|
|
3991
|
-
clientCapabilities: [],
|
|
3992
|
-
azureCloudOptions: DEFAULT_AZURE_CLOUD_OPTIONS,
|
|
3993
|
-
skipAuthorityMetadataCache: false,
|
|
3994
|
-
instanceAware: false,
|
|
3995
|
-
encodeExtraQueryParams: false,
|
|
3996
|
-
...authOptions,
|
|
3997
|
-
};
|
|
3998
|
-
}
|
|
3999
|
-
/**
|
|
4000
|
-
* Returns true if config has protocolMode set to ProtocolMode.OIDC, false otherwise
|
|
4001
|
-
* @param ClientConfiguration
|
|
4002
|
-
*/
|
|
4003
|
-
function isOidcProtocolMode(config) {
|
|
4004
|
-
return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
|
|
4005
|
-
}
|
|
4006
|
-
|
|
4007
|
-
/*! @azure/msal-common v15.7.0 2025-06-10 */
|
|
4008
|
-
/*
|
|
4009
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4010
|
-
* Licensed under the MIT License.
|
|
4011
|
-
*/
|
|
4012
|
-
const CcsCredentialType = {
|
|
4013
|
-
HOME_ACCOUNT_ID: "home_account_id",
|
|
4014
|
-
UPN: "UPN",
|
|
4015
|
-
};
|
|
4016
|
-
|
|
4017
|
-
/*! @azure/msal-common v15.7.0 2025-06-10 */
|
|
4018
|
-
/*
|
|
4019
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4020
|
-
* Licensed under the MIT License.
|
|
4021
|
-
*/
|
|
4022
|
-
const CLIENT_ID = "client_id";
|
|
4023
|
-
const REDIRECT_URI = "redirect_uri";
|
|
4024
|
-
const RESPONSE_TYPE = "response_type";
|
|
4025
|
-
const RESPONSE_MODE = "response_mode";
|
|
4026
|
-
const GRANT_TYPE = "grant_type";
|
|
4027
|
-
const CLAIMS = "claims";
|
|
4028
|
-
const SCOPE = "scope";
|
|
4029
|
-
const REFRESH_TOKEN = "refresh_token";
|
|
4030
|
-
const STATE = "state";
|
|
4031
|
-
const NONCE = "nonce";
|
|
4032
|
-
const PROMPT = "prompt";
|
|
4033
|
-
const CODE = "code";
|
|
4034
|
-
const CODE_CHALLENGE = "code_challenge";
|
|
4035
|
-
const CODE_CHALLENGE_METHOD = "code_challenge_method";
|
|
4036
|
-
const CODE_VERIFIER = "code_verifier";
|
|
4037
|
-
const CLIENT_REQUEST_ID = "client-request-id";
|
|
4038
|
-
const X_CLIENT_SKU = "x-client-SKU";
|
|
4039
|
-
const X_CLIENT_VER = "x-client-VER";
|
|
4040
|
-
const X_CLIENT_OS = "x-client-OS";
|
|
4041
|
-
const X_CLIENT_CPU = "x-client-CPU";
|
|
4042
|
-
const X_CLIENT_CURR_TELEM = "x-client-current-telemetry";
|
|
4043
|
-
const X_CLIENT_LAST_TELEM = "x-client-last-telemetry";
|
|
4044
|
-
const X_MS_LIB_CAPABILITY = "x-ms-lib-capability";
|
|
4045
|
-
const X_APP_NAME = "x-app-name";
|
|
4046
|
-
const X_APP_VER = "x-app-ver";
|
|
4047
|
-
const POST_LOGOUT_URI = "post_logout_redirect_uri";
|
|
4048
|
-
const ID_TOKEN_HINT = "id_token_hint";
|
|
4049
|
-
const CLIENT_SECRET = "client_secret";
|
|
4050
|
-
const CLIENT_ASSERTION = "client_assertion";
|
|
4051
|
-
const CLIENT_ASSERTION_TYPE = "client_assertion_type";
|
|
4052
|
-
const TOKEN_TYPE = "token_type";
|
|
4053
|
-
const REQ_CNF = "req_cnf";
|
|
4054
|
-
const RETURN_SPA_CODE = "return_spa_code";
|
|
4055
|
-
const NATIVE_BROKER = "nativebroker";
|
|
4056
|
-
const LOGOUT_HINT = "logout_hint";
|
|
4057
|
-
const SID = "sid";
|
|
4058
|
-
const LOGIN_HINT = "login_hint";
|
|
4059
|
-
const DOMAIN_HINT = "domain_hint";
|
|
4060
|
-
const X_CLIENT_EXTRA_SKU = "x-client-xtra-sku";
|
|
4061
|
-
const BROKER_CLIENT_ID = "brk_client_id";
|
|
4062
|
-
const BROKER_REDIRECT_URI = "brk_redirect_uri";
|
|
4063
|
-
const INSTANCE_AWARE = "instance_aware";
|
|
4064
|
-
const EAR_JWK = "ear_jwk";
|
|
4065
|
-
const EAR_JWE_CRYPTO = "ear_jwe_crypto";
|
|
4066
|
-
|
|
4067
|
-
/*! @azure/msal-common v15.7.0 2025-06-10 */
|
|
4068
|
-
|
|
4069
|
-
/*
|
|
4070
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4071
|
-
* Licensed under the MIT License.
|
|
4072
|
-
*/
|
|
4073
|
-
function instrumentBrokerParams(parameters, correlationId, performanceClient) {
|
|
4074
|
-
if (!correlationId) {
|
|
4075
|
-
return;
|
|
4076
|
-
}
|
|
4077
|
-
const clientId = parameters.get(CLIENT_ID);
|
|
4078
|
-
if (clientId && parameters.has(BROKER_CLIENT_ID)) {
|
|
4079
|
-
performanceClient?.addFields({
|
|
4080
|
-
embeddedClientId: clientId,
|
|
4081
|
-
embeddedRedirectUri: parameters.get(REDIRECT_URI),
|
|
4082
|
-
}, correlationId);
|
|
4083
|
-
}
|
|
4084
|
-
}
|
|
4085
|
-
/**
|
|
4086
|
-
* Add the given response_type
|
|
4087
|
-
* @param parameters
|
|
4088
|
-
* @param responseType
|
|
4089
|
-
*/
|
|
4090
|
-
function addResponseType(parameters, responseType) {
|
|
4091
|
-
parameters.set(RESPONSE_TYPE, responseType);
|
|
4092
|
-
}
|
|
4093
|
-
/**
|
|
4094
|
-
* add response_mode. defaults to query.
|
|
4095
|
-
* @param responseMode
|
|
4096
|
-
*/
|
|
4097
|
-
function addResponseMode(parameters, responseMode) {
|
|
4098
|
-
parameters.set(RESPONSE_MODE, responseMode ? responseMode : ResponseMode.QUERY);
|
|
4099
|
-
}
|
|
4100
|
-
/**
|
|
4101
|
-
* Add flag to indicate STS should attempt to use WAM if available
|
|
4102
|
-
*/
|
|
4103
|
-
function addNativeBroker(parameters) {
|
|
4104
|
-
parameters.set(NATIVE_BROKER, "1");
|
|
4105
|
-
}
|
|
4106
|
-
/**
|
|
4107
|
-
* add scopes. set addOidcScopes to false to prevent default scopes in non-user scenarios
|
|
4108
|
-
* @param scopeSet
|
|
4109
|
-
* @param addOidcScopes
|
|
4110
|
-
*/
|
|
4111
|
-
function addScopes(parameters, scopes, addOidcScopes = true, defaultScopes = OIDC_DEFAULT_SCOPES) {
|
|
4112
|
-
// Always add openid to the scopes when adding OIDC scopes
|
|
4113
|
-
if (addOidcScopes &&
|
|
4114
|
-
!defaultScopes.includes("openid") &&
|
|
4115
|
-
!scopes.includes("openid")) {
|
|
4116
|
-
defaultScopes.push("openid");
|
|
4117
|
-
}
|
|
4118
|
-
const requestScopes = addOidcScopes
|
|
4119
|
-
? [...(scopes || []), ...defaultScopes]
|
|
4120
|
-
: scopes || [];
|
|
4121
|
-
const scopeSet = new ScopeSet(requestScopes);
|
|
4122
|
-
parameters.set(SCOPE, scopeSet.printScopes());
|
|
4123
|
-
}
|
|
4124
|
-
/**
|
|
4125
|
-
* add clientId
|
|
4126
|
-
* @param clientId
|
|
4127
|
-
*/
|
|
4128
|
-
function addClientId(parameters, clientId) {
|
|
4129
|
-
parameters.set(CLIENT_ID, clientId);
|
|
4130
|
-
}
|
|
4131
|
-
/**
|
|
4132
|
-
* add redirect_uri
|
|
4133
|
-
* @param redirectUri
|
|
4134
|
-
*/
|
|
4135
|
-
function addRedirectUri(parameters, redirectUri) {
|
|
4136
|
-
parameters.set(REDIRECT_URI, redirectUri);
|
|
4137
|
-
}
|
|
4138
|
-
/**
|
|
4139
|
-
* add post logout redirectUri
|
|
4140
|
-
* @param redirectUri
|
|
4141
|
-
*/
|
|
4142
|
-
function addPostLogoutRedirectUri(parameters, redirectUri) {
|
|
4143
|
-
parameters.set(POST_LOGOUT_URI, redirectUri);
|
|
4144
|
-
}
|
|
4145
|
-
/**
|
|
4146
|
-
* add id_token_hint to logout request
|
|
4147
|
-
* @param idTokenHint
|
|
4148
|
-
*/
|
|
4149
|
-
function addIdTokenHint(parameters, idTokenHint) {
|
|
4150
|
-
parameters.set(ID_TOKEN_HINT, idTokenHint);
|
|
4151
|
-
}
|
|
4152
|
-
/**
|
|
4153
|
-
* add domain_hint
|
|
4154
|
-
* @param domainHint
|
|
4155
|
-
*/
|
|
4156
|
-
function addDomainHint(parameters, domainHint) {
|
|
4157
|
-
parameters.set(DOMAIN_HINT, domainHint);
|
|
4158
|
-
}
|
|
4159
|
-
/**
|
|
4160
|
-
* add login_hint
|
|
4161
|
-
* @param loginHint
|
|
4162
|
-
*/
|
|
4163
|
-
function addLoginHint(parameters, loginHint) {
|
|
4164
|
-
parameters.set(LOGIN_HINT, loginHint);
|
|
4165
|
-
}
|
|
4166
|
-
/**
|
|
4167
|
-
* Adds the CCS (Cache Credential Service) query parameter for login_hint
|
|
4168
|
-
* @param loginHint
|
|
4169
|
-
*/
|
|
4170
|
-
function addCcsUpn(parameters, loginHint) {
|
|
4171
|
-
parameters.set(HeaderNames.CCS_HEADER, `UPN:${loginHint}`);
|
|
4172
|
-
}
|
|
4173
|
-
/**
|
|
4174
|
-
* Adds the CCS (Cache Credential Service) query parameter for account object
|
|
4175
|
-
* @param loginHint
|
|
4176
|
-
*/
|
|
4177
|
-
function addCcsOid(parameters, clientInfo) {
|
|
4178
|
-
parameters.set(HeaderNames.CCS_HEADER, `Oid:${clientInfo.uid}@${clientInfo.utid}`);
|
|
4179
|
-
}
|
|
4180
|
-
/**
|
|
4181
|
-
* add sid
|
|
4182
|
-
* @param sid
|
|
4183
|
-
*/
|
|
4184
|
-
function addSid(parameters, sid) {
|
|
4185
|
-
parameters.set(SID, sid);
|
|
4186
|
-
}
|
|
4187
|
-
/**
|
|
4188
|
-
* add claims
|
|
4189
|
-
* @param claims
|
|
4190
|
-
*/
|
|
4191
|
-
function addClaims(parameters, claims, clientCapabilities) {
|
|
4192
|
-
const mergedClaims = addClientCapabilitiesToClaims(claims, clientCapabilities);
|
|
4193
|
-
try {
|
|
4194
|
-
JSON.parse(mergedClaims);
|
|
4195
|
-
}
|
|
4196
|
-
catch (e) {
|
|
4197
|
-
throw createClientConfigurationError(invalidClaims);
|
|
4198
|
-
}
|
|
4199
|
-
parameters.set(CLAIMS, mergedClaims);
|
|
4200
|
-
}
|
|
4201
|
-
/**
|
|
4202
|
-
* add correlationId
|
|
4203
|
-
* @param correlationId
|
|
4204
|
-
*/
|
|
4205
|
-
function addCorrelationId(parameters, correlationId) {
|
|
4206
|
-
parameters.set(CLIENT_REQUEST_ID, correlationId);
|
|
4207
|
-
}
|
|
4208
|
-
/**
|
|
4209
|
-
* add library info query params
|
|
4210
|
-
* @param libraryInfo
|
|
4211
|
-
*/
|
|
4212
|
-
function addLibraryInfo(parameters, libraryInfo) {
|
|
4213
|
-
// Telemetry Info
|
|
4214
|
-
parameters.set(X_CLIENT_SKU, libraryInfo.sku);
|
|
4215
|
-
parameters.set(X_CLIENT_VER, libraryInfo.version);
|
|
4216
|
-
if (libraryInfo.os) {
|
|
4217
|
-
parameters.set(X_CLIENT_OS, libraryInfo.os);
|
|
4218
|
-
}
|
|
4219
|
-
if (libraryInfo.cpu) {
|
|
4220
|
-
parameters.set(X_CLIENT_CPU, libraryInfo.cpu);
|
|
4221
|
-
}
|
|
4222
|
-
}
|
|
4223
|
-
/**
|
|
4224
|
-
* Add client telemetry parameters
|
|
4225
|
-
* @param appTelemetry
|
|
4226
|
-
*/
|
|
4227
|
-
function addApplicationTelemetry(parameters, appTelemetry) {
|
|
4228
|
-
if (appTelemetry?.appName) {
|
|
4229
|
-
parameters.set(X_APP_NAME, appTelemetry.appName);
|
|
4230
|
-
}
|
|
4231
|
-
if (appTelemetry?.appVersion) {
|
|
4232
|
-
parameters.set(X_APP_VER, appTelemetry.appVersion);
|
|
4233
|
-
}
|
|
4234
|
-
}
|
|
4235
|
-
/**
|
|
4236
|
-
* add prompt
|
|
4237
|
-
* @param prompt
|
|
4238
|
-
*/
|
|
4239
|
-
function addPrompt(parameters, prompt) {
|
|
4240
|
-
parameters.set(PROMPT, prompt);
|
|
4241
|
-
}
|
|
4242
|
-
/**
|
|
4243
|
-
* add state
|
|
4244
|
-
* @param state
|
|
4245
|
-
*/
|
|
4246
|
-
function addState(parameters, state) {
|
|
4247
|
-
if (state) {
|
|
4248
|
-
parameters.set(STATE, state);
|
|
4249
|
-
}
|
|
4250
|
-
}
|
|
4251
|
-
/**
|
|
4252
|
-
* add nonce
|
|
4253
|
-
* @param nonce
|
|
4254
|
-
*/
|
|
4255
|
-
function addNonce(parameters, nonce) {
|
|
4256
|
-
parameters.set(NONCE, nonce);
|
|
4257
|
-
}
|
|
4258
|
-
/**
|
|
4259
|
-
* add code_challenge and code_challenge_method
|
|
4260
|
-
* - throw if either of them are not passed
|
|
4261
|
-
* @param codeChallenge
|
|
4262
|
-
* @param codeChallengeMethod
|
|
4263
|
-
*/
|
|
4264
|
-
function addCodeChallengeParams(parameters, codeChallenge, codeChallengeMethod) {
|
|
4265
|
-
if (codeChallenge && codeChallengeMethod) {
|
|
4266
|
-
parameters.set(CODE_CHALLENGE, codeChallenge);
|
|
4267
|
-
parameters.set(CODE_CHALLENGE_METHOD, codeChallengeMethod);
|
|
4268
|
-
}
|
|
4269
|
-
else {
|
|
4270
|
-
throw createClientConfigurationError(pkceParamsMissing);
|
|
4271
|
-
}
|
|
4272
|
-
}
|
|
4273
|
-
/**
|
|
4274
|
-
* add the `authorization_code` passed by the user to exchange for a token
|
|
4275
|
-
* @param code
|
|
4276
|
-
*/
|
|
4277
|
-
function addAuthorizationCode(parameters, code) {
|
|
4278
|
-
parameters.set(CODE, code);
|
|
4279
|
-
}
|
|
4280
|
-
/**
|
|
4281
|
-
* add the `refreshToken` passed by the user
|
|
4282
|
-
* @param refreshToken
|
|
4283
|
-
*/
|
|
4284
|
-
function addRefreshToken(parameters, refreshToken) {
|
|
4285
|
-
parameters.set(REFRESH_TOKEN, refreshToken);
|
|
4286
|
-
}
|
|
4287
|
-
/**
|
|
4288
|
-
* add the `code_verifier` passed by the user to exchange for a token
|
|
4289
|
-
* @param codeVerifier
|
|
4290
|
-
*/
|
|
4291
|
-
function addCodeVerifier(parameters, codeVerifier) {
|
|
4292
|
-
parameters.set(CODE_VERIFIER, codeVerifier);
|
|
4293
|
-
}
|
|
4294
|
-
/**
|
|
4295
|
-
* add client_secret
|
|
4296
|
-
* @param clientSecret
|
|
4297
|
-
*/
|
|
4298
|
-
function addClientSecret(parameters, clientSecret) {
|
|
4299
|
-
parameters.set(CLIENT_SECRET, clientSecret);
|
|
4300
|
-
}
|
|
4301
|
-
/**
|
|
4302
|
-
* add clientAssertion for confidential client flows
|
|
4303
|
-
* @param clientAssertion
|
|
4304
|
-
*/
|
|
4305
|
-
function addClientAssertion(parameters, clientAssertion) {
|
|
4306
|
-
if (clientAssertion) {
|
|
4307
|
-
parameters.set(CLIENT_ASSERTION, clientAssertion);
|
|
4308
|
-
}
|
|
4309
|
-
}
|
|
4310
|
-
/**
|
|
4311
|
-
* add clientAssertionType for confidential client flows
|
|
4312
|
-
* @param clientAssertionType
|
|
4313
|
-
*/
|
|
4314
|
-
function addClientAssertionType(parameters, clientAssertionType) {
|
|
4315
|
-
if (clientAssertionType) {
|
|
4316
|
-
parameters.set(CLIENT_ASSERTION_TYPE, clientAssertionType);
|
|
4317
|
-
}
|
|
4318
|
-
}
|
|
4319
|
-
/**
|
|
4320
|
-
* add grant type
|
|
4321
|
-
* @param grantType
|
|
4322
|
-
*/
|
|
4323
|
-
function addGrantType(parameters, grantType) {
|
|
4324
|
-
parameters.set(GRANT_TYPE, grantType);
|
|
4325
|
-
}
|
|
4326
|
-
/**
|
|
4327
|
-
* add client info
|
|
4328
|
-
*
|
|
4329
|
-
*/
|
|
4330
|
-
function addClientInfo(parameters) {
|
|
4331
|
-
parameters.set(CLIENT_INFO, "1");
|
|
4332
|
-
}
|
|
4333
|
-
function addInstanceAware(parameters) {
|
|
4334
|
-
if (!parameters.has(INSTANCE_AWARE)) {
|
|
4335
|
-
parameters.set(INSTANCE_AWARE, "true");
|
|
4336
|
-
}
|
|
4337
|
-
}
|
|
4338
|
-
/**
|
|
4339
|
-
* add extraQueryParams
|
|
4340
|
-
* @param eQParams
|
|
4341
|
-
*/
|
|
4342
|
-
function addExtraQueryParameters(parameters, eQParams) {
|
|
4343
|
-
Object.entries(eQParams).forEach(([key, value]) => {
|
|
4344
|
-
if (!parameters.has(key) && value) {
|
|
4345
|
-
parameters.set(key, value);
|
|
4346
|
-
}
|
|
4347
|
-
});
|
|
4348
|
-
}
|
|
4349
|
-
function addClientCapabilitiesToClaims(claims, clientCapabilities) {
|
|
4350
|
-
let mergedClaims;
|
|
4351
|
-
// Parse provided claims into JSON object or initialize empty object
|
|
4352
|
-
if (!claims) {
|
|
4353
|
-
mergedClaims = {};
|
|
4354
|
-
}
|
|
4355
|
-
else {
|
|
4356
|
-
try {
|
|
4357
|
-
mergedClaims = JSON.parse(claims);
|
|
4358
|
-
}
|
|
4359
|
-
catch (e) {
|
|
4360
|
-
throw createClientConfigurationError(invalidClaims);
|
|
4361
|
-
}
|
|
4362
|
-
}
|
|
4363
|
-
if (clientCapabilities && clientCapabilities.length > 0) {
|
|
4364
|
-
if (!mergedClaims.hasOwnProperty(ClaimsRequestKeys.ACCESS_TOKEN)) {
|
|
4365
|
-
// Add access_token key to claims object
|
|
4366
|
-
mergedClaims[ClaimsRequestKeys.ACCESS_TOKEN] = {};
|
|
4367
|
-
}
|
|
4368
|
-
// Add xms_cc claim with provided clientCapabilities to access_token key
|
|
4369
|
-
mergedClaims[ClaimsRequestKeys.ACCESS_TOKEN][ClaimsRequestKeys.XMS_CC] =
|
|
4370
|
-
{
|
|
4371
|
-
values: clientCapabilities,
|
|
4372
|
-
};
|
|
4373
|
-
}
|
|
4374
|
-
return JSON.stringify(mergedClaims);
|
|
4375
|
-
}
|
|
4376
|
-
/**
|
|
4377
|
-
* add pop_jwk to query params
|
|
4378
|
-
* @param cnfString
|
|
4379
|
-
*/
|
|
4380
|
-
function addPopToken(parameters, cnfString) {
|
|
4381
|
-
if (cnfString) {
|
|
4382
|
-
parameters.set(TOKEN_TYPE, AuthenticationScheme.POP);
|
|
4383
|
-
parameters.set(REQ_CNF, cnfString);
|
|
4384
|
-
}
|
|
4385
|
-
}
|
|
4386
|
-
/**
|
|
4387
|
-
* add SSH JWK and key ID to query params
|
|
4388
|
-
*/
|
|
4389
|
-
function addSshJwk(parameters, sshJwkString) {
|
|
4390
|
-
if (sshJwkString) {
|
|
4391
|
-
parameters.set(TOKEN_TYPE, AuthenticationScheme.SSH);
|
|
4392
|
-
parameters.set(REQ_CNF, sshJwkString);
|
|
4393
|
-
}
|
|
4394
|
-
}
|
|
4395
|
-
/**
|
|
4396
|
-
* add server telemetry fields
|
|
4397
|
-
* @param serverTelemetryManager
|
|
4398
|
-
*/
|
|
4399
|
-
function addServerTelemetry(parameters, serverTelemetryManager) {
|
|
4400
|
-
parameters.set(X_CLIENT_CURR_TELEM, serverTelemetryManager.generateCurrentRequestHeaderValue());
|
|
4401
|
-
parameters.set(X_CLIENT_LAST_TELEM, serverTelemetryManager.generateLastRequestHeaderValue());
|
|
4402
|
-
}
|
|
4403
|
-
/**
|
|
4404
|
-
* Adds parameter that indicates to the server that throttling is supported
|
|
4405
|
-
*/
|
|
4406
|
-
function addThrottling(parameters) {
|
|
4407
|
-
parameters.set(X_MS_LIB_CAPABILITY, ThrottlingConstants.X_MS_LIB_CAPABILITY_VALUE);
|
|
4408
|
-
}
|
|
4409
|
-
/**
|
|
4410
|
-
* Adds logout_hint parameter for "silent" logout which prevent server account picker
|
|
4411
|
-
*/
|
|
4412
|
-
function addLogoutHint(parameters, logoutHint) {
|
|
4413
|
-
parameters.set(LOGOUT_HINT, logoutHint);
|
|
4414
|
-
}
|
|
4415
|
-
function addBrokerParameters(parameters, brokerClientId, brokerRedirectUri) {
|
|
4416
|
-
if (!parameters.has(BROKER_CLIENT_ID)) {
|
|
4417
|
-
parameters.set(BROKER_CLIENT_ID, brokerClientId);
|
|
4418
|
-
}
|
|
4419
|
-
if (!parameters.has(BROKER_REDIRECT_URI)) {
|
|
4420
|
-
parameters.set(BROKER_REDIRECT_URI, brokerRedirectUri);
|
|
4421
|
-
}
|
|
4422
|
-
}
|
|
4423
|
-
/**
|
|
4424
|
-
* Add EAR (Encrypted Authorize Response) request parameters
|
|
4425
|
-
* @param parameters
|
|
4426
|
-
* @param jwk
|
|
4427
|
-
*/
|
|
4428
|
-
function addEARParameters(parameters, jwk) {
|
|
4429
|
-
parameters.set(EAR_JWK, encodeURIComponent(jwk));
|
|
4430
|
-
// ear_jwe_crypto will always have value: {"alg":"dir","enc":"A256GCM"} so we can hardcode this
|
|
4431
|
-
const jweCryptoB64Encoded = "eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIn0";
|
|
4432
|
-
parameters.set(EAR_JWE_CRYPTO, jweCryptoB64Encoded);
|
|
4433
|
-
}
|
|
4434
|
-
|
|
4435
|
-
/*! @azure/msal-common v15.7.0 2025-06-10 */
|
|
4436
|
-
/*
|
|
4437
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4438
|
-
* Licensed under the MIT License.
|
|
4439
|
-
*/
|
|
4440
|
-
function isOpenIdConfigResponse(response) {
|
|
4441
|
-
return (response.hasOwnProperty("authorization_endpoint") &&
|
|
4442
|
-
response.hasOwnProperty("token_endpoint") &&
|
|
4443
|
-
response.hasOwnProperty("issuer") &&
|
|
4444
|
-
response.hasOwnProperty("jwks_uri"));
|
|
4445
|
-
}
|
|
4446
|
-
|
|
4447
|
-
/*! @azure/msal-common v15.7.0 2025-06-10 */
|
|
4448
|
-
/*
|
|
4449
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4450
|
-
* Licensed under the MIT License.
|
|
4451
|
-
*/
|
|
4452
|
-
function isCloudInstanceDiscoveryResponse(response) {
|
|
4453
|
-
return (response.hasOwnProperty("tenant_discovery_endpoint") &&
|
|
4454
|
-
response.hasOwnProperty("metadata"));
|
|
4455
|
-
}
|
|
4456
|
-
|
|
4457
|
-
/*! @azure/msal-common v15.7.0 2025-06-10 */
|
|
4458
|
-
/*
|
|
4459
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4460
|
-
* Licensed under the MIT License.
|
|
4461
|
-
*/
|
|
4462
|
-
function isCloudInstanceDiscoveryErrorResponse(response) {
|
|
4463
|
-
return (response.hasOwnProperty("error") &&
|
|
4464
|
-
response.hasOwnProperty("error_description"));
|
|
4465
|
-
}
|
|
4466
|
-
|
|
4467
|
-
/*! @azure/msal-common v15.7.0 2025-06-10 */
|
|
4468
|
-
/*
|
|
4469
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4470
|
-
* Licensed under the MIT License.
|
|
4471
|
-
*/
|
|
4472
|
-
/**
|
|
4473
|
-
* Enumeration of operations that are instrumented by have their performance measured by the PerformanceClient.
|
|
4474
|
-
*
|
|
4475
|
-
* @export
|
|
4476
|
-
* @enum {number}
|
|
3900
|
+
* @export
|
|
3901
|
+
* @enum {number}
|
|
4477
3902
|
*/
|
|
4478
3903
|
const PerformanceEvents = {
|
|
4479
3904
|
/**
|
|
@@ -4950,34 +4375,672 @@ const PerformanceEventAbbreviations = new Map([
|
|
|
4950
4375
|
[PerformanceEvents.DecryptEarResponse, "decryptEarResp"],
|
|
4951
4376
|
]);
|
|
4952
4377
|
/**
|
|
4953
|
-
* State of the performance event.
|
|
4378
|
+
* State of the performance event.
|
|
4379
|
+
*
|
|
4380
|
+
* @export
|
|
4381
|
+
* @enum {number}
|
|
4382
|
+
*/
|
|
4383
|
+
const PerformanceEventStatus = {
|
|
4384
|
+
InProgress: 1,
|
|
4385
|
+
Completed: 2,
|
|
4386
|
+
};
|
|
4387
|
+
const IntFields = new Set([
|
|
4388
|
+
"accessTokenSize",
|
|
4389
|
+
"durationMs",
|
|
4390
|
+
"idTokenSize",
|
|
4391
|
+
"matsSilentStatus",
|
|
4392
|
+
"matsHttpStatus",
|
|
4393
|
+
"refreshTokenSize",
|
|
4394
|
+
"queuedTimeMs",
|
|
4395
|
+
"startTimeMs",
|
|
4396
|
+
"status",
|
|
4397
|
+
"multiMatchedAT",
|
|
4398
|
+
"multiMatchedID",
|
|
4399
|
+
"multiMatchedRT",
|
|
4400
|
+
"unencryptedCacheCount",
|
|
4401
|
+
"encryptedCacheExpiredCount",
|
|
4402
|
+
]);
|
|
4403
|
+
|
|
4404
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
4405
|
+
|
|
4406
|
+
/*
|
|
4407
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4408
|
+
* Licensed under the MIT License.
|
|
4409
|
+
*/
|
|
4410
|
+
class StubPerformanceMeasurement {
|
|
4411
|
+
startMeasurement() {
|
|
4412
|
+
return;
|
|
4413
|
+
}
|
|
4414
|
+
endMeasurement() {
|
|
4415
|
+
return;
|
|
4416
|
+
}
|
|
4417
|
+
flushMeasurement() {
|
|
4418
|
+
return null;
|
|
4419
|
+
}
|
|
4420
|
+
}
|
|
4421
|
+
class StubPerformanceClient {
|
|
4422
|
+
generateId() {
|
|
4423
|
+
return "callback-id";
|
|
4424
|
+
}
|
|
4425
|
+
startMeasurement(measureName, correlationId) {
|
|
4426
|
+
return {
|
|
4427
|
+
end: () => null,
|
|
4428
|
+
discard: () => { },
|
|
4429
|
+
add: () => { },
|
|
4430
|
+
increment: () => { },
|
|
4431
|
+
event: {
|
|
4432
|
+
eventId: this.generateId(),
|
|
4433
|
+
status: PerformanceEventStatus.InProgress,
|
|
4434
|
+
authority: "",
|
|
4435
|
+
libraryName: "",
|
|
4436
|
+
libraryVersion: "",
|
|
4437
|
+
clientId: "",
|
|
4438
|
+
name: measureName,
|
|
4439
|
+
startTimeMs: Date.now(),
|
|
4440
|
+
correlationId: correlationId || "",
|
|
4441
|
+
},
|
|
4442
|
+
measurement: new StubPerformanceMeasurement(),
|
|
4443
|
+
};
|
|
4444
|
+
}
|
|
4445
|
+
startPerformanceMeasurement() {
|
|
4446
|
+
return new StubPerformanceMeasurement();
|
|
4447
|
+
}
|
|
4448
|
+
calculateQueuedTime() {
|
|
4449
|
+
return 0;
|
|
4450
|
+
}
|
|
4451
|
+
addQueueMeasurement() {
|
|
4452
|
+
return;
|
|
4453
|
+
}
|
|
4454
|
+
setPreQueueTime() {
|
|
4455
|
+
return;
|
|
4456
|
+
}
|
|
4457
|
+
endMeasurement() {
|
|
4458
|
+
return null;
|
|
4459
|
+
}
|
|
4460
|
+
discardMeasurements() {
|
|
4461
|
+
return;
|
|
4462
|
+
}
|
|
4463
|
+
removePerformanceCallback() {
|
|
4464
|
+
return true;
|
|
4465
|
+
}
|
|
4466
|
+
addPerformanceCallback() {
|
|
4467
|
+
return "";
|
|
4468
|
+
}
|
|
4469
|
+
emitEvents() {
|
|
4470
|
+
return;
|
|
4471
|
+
}
|
|
4472
|
+
addFields() {
|
|
4473
|
+
return;
|
|
4474
|
+
}
|
|
4475
|
+
incrementFields() {
|
|
4476
|
+
return;
|
|
4477
|
+
}
|
|
4478
|
+
cacheEventByCorrelationId() {
|
|
4479
|
+
return;
|
|
4480
|
+
}
|
|
4481
|
+
}
|
|
4482
|
+
|
|
4483
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
4484
|
+
|
|
4485
|
+
/*
|
|
4486
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4487
|
+
* Licensed under the MIT License.
|
|
4488
|
+
*/
|
|
4489
|
+
const DEFAULT_SYSTEM_OPTIONS = {
|
|
4490
|
+
tokenRenewalOffsetSeconds: DEFAULT_TOKEN_RENEWAL_OFFSET_SEC,
|
|
4491
|
+
preventCorsPreflight: false,
|
|
4492
|
+
};
|
|
4493
|
+
const DEFAULT_LOGGER_IMPLEMENTATION = {
|
|
4494
|
+
loggerCallback: () => {
|
|
4495
|
+
// allow users to not set loggerCallback
|
|
4496
|
+
},
|
|
4497
|
+
piiLoggingEnabled: false,
|
|
4498
|
+
logLevel: exports.LogLevel.Info,
|
|
4499
|
+
correlationId: Constants.EMPTY_STRING,
|
|
4500
|
+
};
|
|
4501
|
+
const DEFAULT_CACHE_OPTIONS = {
|
|
4502
|
+
claimsBasedCachingEnabled: false,
|
|
4503
|
+
};
|
|
4504
|
+
const DEFAULT_NETWORK_IMPLEMENTATION = {
|
|
4505
|
+
async sendGetRequestAsync() {
|
|
4506
|
+
throw createClientAuthError(methodNotImplemented);
|
|
4507
|
+
},
|
|
4508
|
+
async sendPostRequestAsync() {
|
|
4509
|
+
throw createClientAuthError(methodNotImplemented);
|
|
4510
|
+
},
|
|
4511
|
+
};
|
|
4512
|
+
const DEFAULT_LIBRARY_INFO = {
|
|
4513
|
+
sku: Constants.SKU,
|
|
4514
|
+
version: version$1,
|
|
4515
|
+
cpu: Constants.EMPTY_STRING,
|
|
4516
|
+
os: Constants.EMPTY_STRING,
|
|
4517
|
+
};
|
|
4518
|
+
const DEFAULT_CLIENT_CREDENTIALS = {
|
|
4519
|
+
clientSecret: Constants.EMPTY_STRING,
|
|
4520
|
+
clientAssertion: undefined,
|
|
4521
|
+
};
|
|
4522
|
+
const DEFAULT_AZURE_CLOUD_OPTIONS = {
|
|
4523
|
+
azureCloudInstance: AzureCloudInstance.None,
|
|
4524
|
+
tenant: `${Constants.DEFAULT_COMMON_TENANT}`,
|
|
4525
|
+
};
|
|
4526
|
+
const DEFAULT_TELEMETRY_OPTIONS = {
|
|
4527
|
+
application: {
|
|
4528
|
+
appName: "",
|
|
4529
|
+
appVersion: "",
|
|
4530
|
+
},
|
|
4531
|
+
};
|
|
4532
|
+
/**
|
|
4533
|
+
* Function that sets the default options when not explicitly configured from app developer
|
|
4534
|
+
*
|
|
4535
|
+
* @param Configuration
|
|
4536
|
+
*
|
|
4537
|
+
* @returns Configuration
|
|
4538
|
+
*/
|
|
4539
|
+
function buildClientConfiguration({ authOptions: userAuthOptions, systemOptions: userSystemOptions, loggerOptions: userLoggerOption, cacheOptions: userCacheOptions, storageInterface: storageImplementation, networkInterface: networkImplementation, cryptoInterface: cryptoImplementation, clientCredentials: clientCredentials, libraryInfo: libraryInfo, telemetry: telemetry, serverTelemetryManager: serverTelemetryManager, persistencePlugin: persistencePlugin, serializableCache: serializableCache, }) {
|
|
4540
|
+
const loggerOptions = {
|
|
4541
|
+
...DEFAULT_LOGGER_IMPLEMENTATION,
|
|
4542
|
+
...userLoggerOption,
|
|
4543
|
+
};
|
|
4544
|
+
return {
|
|
4545
|
+
authOptions: buildAuthOptions(userAuthOptions),
|
|
4546
|
+
systemOptions: { ...DEFAULT_SYSTEM_OPTIONS, ...userSystemOptions },
|
|
4547
|
+
loggerOptions: loggerOptions,
|
|
4548
|
+
cacheOptions: { ...DEFAULT_CACHE_OPTIONS, ...userCacheOptions },
|
|
4549
|
+
storageInterface: storageImplementation ||
|
|
4550
|
+
new DefaultStorageClass(userAuthOptions.clientId, DEFAULT_CRYPTO_IMPLEMENTATION, new Logger(loggerOptions), new StubPerformanceClient()),
|
|
4551
|
+
networkInterface: networkImplementation || DEFAULT_NETWORK_IMPLEMENTATION,
|
|
4552
|
+
cryptoInterface: cryptoImplementation || DEFAULT_CRYPTO_IMPLEMENTATION,
|
|
4553
|
+
clientCredentials: clientCredentials || DEFAULT_CLIENT_CREDENTIALS,
|
|
4554
|
+
libraryInfo: { ...DEFAULT_LIBRARY_INFO, ...libraryInfo },
|
|
4555
|
+
telemetry: { ...DEFAULT_TELEMETRY_OPTIONS, ...telemetry },
|
|
4556
|
+
serverTelemetryManager: serverTelemetryManager || null,
|
|
4557
|
+
persistencePlugin: persistencePlugin || null,
|
|
4558
|
+
serializableCache: serializableCache || null,
|
|
4559
|
+
};
|
|
4560
|
+
}
|
|
4561
|
+
/**
|
|
4562
|
+
* Construct authoptions from the client and platform passed values
|
|
4563
|
+
* @param authOptions
|
|
4564
|
+
*/
|
|
4565
|
+
function buildAuthOptions(authOptions) {
|
|
4566
|
+
return {
|
|
4567
|
+
clientCapabilities: [],
|
|
4568
|
+
azureCloudOptions: DEFAULT_AZURE_CLOUD_OPTIONS,
|
|
4569
|
+
skipAuthorityMetadataCache: false,
|
|
4570
|
+
instanceAware: false,
|
|
4571
|
+
encodeExtraQueryParams: false,
|
|
4572
|
+
...authOptions,
|
|
4573
|
+
};
|
|
4574
|
+
}
|
|
4575
|
+
/**
|
|
4576
|
+
* Returns true if config has protocolMode set to ProtocolMode.OIDC, false otherwise
|
|
4577
|
+
* @param ClientConfiguration
|
|
4578
|
+
*/
|
|
4579
|
+
function isOidcProtocolMode(config) {
|
|
4580
|
+
return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
|
|
4581
|
+
}
|
|
4582
|
+
|
|
4583
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
4584
|
+
/*
|
|
4585
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4586
|
+
* Licensed under the MIT License.
|
|
4587
|
+
*/
|
|
4588
|
+
const CcsCredentialType = {
|
|
4589
|
+
HOME_ACCOUNT_ID: "home_account_id",
|
|
4590
|
+
UPN: "UPN",
|
|
4591
|
+
};
|
|
4592
|
+
|
|
4593
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
4594
|
+
/*
|
|
4595
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4596
|
+
* Licensed under the MIT License.
|
|
4597
|
+
*/
|
|
4598
|
+
const CLIENT_ID = "client_id";
|
|
4599
|
+
const REDIRECT_URI = "redirect_uri";
|
|
4600
|
+
const RESPONSE_TYPE = "response_type";
|
|
4601
|
+
const RESPONSE_MODE = "response_mode";
|
|
4602
|
+
const GRANT_TYPE = "grant_type";
|
|
4603
|
+
const CLAIMS = "claims";
|
|
4604
|
+
const SCOPE = "scope";
|
|
4605
|
+
const REFRESH_TOKEN = "refresh_token";
|
|
4606
|
+
const STATE = "state";
|
|
4607
|
+
const NONCE = "nonce";
|
|
4608
|
+
const PROMPT = "prompt";
|
|
4609
|
+
const CODE = "code";
|
|
4610
|
+
const CODE_CHALLENGE = "code_challenge";
|
|
4611
|
+
const CODE_CHALLENGE_METHOD = "code_challenge_method";
|
|
4612
|
+
const CODE_VERIFIER = "code_verifier";
|
|
4613
|
+
const CLIENT_REQUEST_ID = "client-request-id";
|
|
4614
|
+
const X_CLIENT_SKU = "x-client-SKU";
|
|
4615
|
+
const X_CLIENT_VER = "x-client-VER";
|
|
4616
|
+
const X_CLIENT_OS = "x-client-OS";
|
|
4617
|
+
const X_CLIENT_CPU = "x-client-CPU";
|
|
4618
|
+
const X_CLIENT_CURR_TELEM = "x-client-current-telemetry";
|
|
4619
|
+
const X_CLIENT_LAST_TELEM = "x-client-last-telemetry";
|
|
4620
|
+
const X_MS_LIB_CAPABILITY = "x-ms-lib-capability";
|
|
4621
|
+
const X_APP_NAME = "x-app-name";
|
|
4622
|
+
const X_APP_VER = "x-app-ver";
|
|
4623
|
+
const POST_LOGOUT_URI = "post_logout_redirect_uri";
|
|
4624
|
+
const ID_TOKEN_HINT = "id_token_hint";
|
|
4625
|
+
const CLIENT_SECRET = "client_secret";
|
|
4626
|
+
const CLIENT_ASSERTION = "client_assertion";
|
|
4627
|
+
const CLIENT_ASSERTION_TYPE = "client_assertion_type";
|
|
4628
|
+
const TOKEN_TYPE = "token_type";
|
|
4629
|
+
const REQ_CNF = "req_cnf";
|
|
4630
|
+
const RETURN_SPA_CODE = "return_spa_code";
|
|
4631
|
+
const NATIVE_BROKER = "nativebroker";
|
|
4632
|
+
const LOGOUT_HINT = "logout_hint";
|
|
4633
|
+
const SID = "sid";
|
|
4634
|
+
const LOGIN_HINT = "login_hint";
|
|
4635
|
+
const DOMAIN_HINT = "domain_hint";
|
|
4636
|
+
const X_CLIENT_EXTRA_SKU = "x-client-xtra-sku";
|
|
4637
|
+
const BROKER_CLIENT_ID = "brk_client_id";
|
|
4638
|
+
const BROKER_REDIRECT_URI = "brk_redirect_uri";
|
|
4639
|
+
const INSTANCE_AWARE = "instance_aware";
|
|
4640
|
+
const EAR_JWK = "ear_jwk";
|
|
4641
|
+
const EAR_JWE_CRYPTO = "ear_jwe_crypto";
|
|
4642
|
+
|
|
4643
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
4644
|
+
|
|
4645
|
+
/*
|
|
4646
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4647
|
+
* Licensed under the MIT License.
|
|
4648
|
+
*/
|
|
4649
|
+
function instrumentBrokerParams(parameters, correlationId, performanceClient) {
|
|
4650
|
+
if (!correlationId) {
|
|
4651
|
+
return;
|
|
4652
|
+
}
|
|
4653
|
+
const clientId = parameters.get(CLIENT_ID);
|
|
4654
|
+
if (clientId && parameters.has(BROKER_CLIENT_ID)) {
|
|
4655
|
+
performanceClient?.addFields({
|
|
4656
|
+
embeddedClientId: clientId,
|
|
4657
|
+
embeddedRedirectUri: parameters.get(REDIRECT_URI),
|
|
4658
|
+
}, correlationId);
|
|
4659
|
+
}
|
|
4660
|
+
}
|
|
4661
|
+
/**
|
|
4662
|
+
* Add the given response_type
|
|
4663
|
+
* @param parameters
|
|
4664
|
+
* @param responseType
|
|
4665
|
+
*/
|
|
4666
|
+
function addResponseType(parameters, responseType) {
|
|
4667
|
+
parameters.set(RESPONSE_TYPE, responseType);
|
|
4668
|
+
}
|
|
4669
|
+
/**
|
|
4670
|
+
* add response_mode. defaults to query.
|
|
4671
|
+
* @param responseMode
|
|
4672
|
+
*/
|
|
4673
|
+
function addResponseMode(parameters, responseMode) {
|
|
4674
|
+
parameters.set(RESPONSE_MODE, responseMode ? responseMode : ResponseMode.QUERY);
|
|
4675
|
+
}
|
|
4676
|
+
/**
|
|
4677
|
+
* Add flag to indicate STS should attempt to use WAM if available
|
|
4678
|
+
*/
|
|
4679
|
+
function addNativeBroker(parameters) {
|
|
4680
|
+
parameters.set(NATIVE_BROKER, "1");
|
|
4681
|
+
}
|
|
4682
|
+
/**
|
|
4683
|
+
* add scopes. set addOidcScopes to false to prevent default scopes in non-user scenarios
|
|
4684
|
+
* @param scopeSet
|
|
4685
|
+
* @param addOidcScopes
|
|
4686
|
+
*/
|
|
4687
|
+
function addScopes(parameters, scopes, addOidcScopes = true, defaultScopes = OIDC_DEFAULT_SCOPES) {
|
|
4688
|
+
// Always add openid to the scopes when adding OIDC scopes
|
|
4689
|
+
if (addOidcScopes &&
|
|
4690
|
+
!defaultScopes.includes("openid") &&
|
|
4691
|
+
!scopes.includes("openid")) {
|
|
4692
|
+
defaultScopes.push("openid");
|
|
4693
|
+
}
|
|
4694
|
+
const requestScopes = addOidcScopes
|
|
4695
|
+
? [...(scopes || []), ...defaultScopes]
|
|
4696
|
+
: scopes || [];
|
|
4697
|
+
const scopeSet = new ScopeSet(requestScopes);
|
|
4698
|
+
parameters.set(SCOPE, scopeSet.printScopes());
|
|
4699
|
+
}
|
|
4700
|
+
/**
|
|
4701
|
+
* add clientId
|
|
4702
|
+
* @param clientId
|
|
4703
|
+
*/
|
|
4704
|
+
function addClientId(parameters, clientId) {
|
|
4705
|
+
parameters.set(CLIENT_ID, clientId);
|
|
4706
|
+
}
|
|
4707
|
+
/**
|
|
4708
|
+
* add redirect_uri
|
|
4709
|
+
* @param redirectUri
|
|
4710
|
+
*/
|
|
4711
|
+
function addRedirectUri(parameters, redirectUri) {
|
|
4712
|
+
parameters.set(REDIRECT_URI, redirectUri);
|
|
4713
|
+
}
|
|
4714
|
+
/**
|
|
4715
|
+
* add post logout redirectUri
|
|
4716
|
+
* @param redirectUri
|
|
4717
|
+
*/
|
|
4718
|
+
function addPostLogoutRedirectUri(parameters, redirectUri) {
|
|
4719
|
+
parameters.set(POST_LOGOUT_URI, redirectUri);
|
|
4720
|
+
}
|
|
4721
|
+
/**
|
|
4722
|
+
* add id_token_hint to logout request
|
|
4723
|
+
* @param idTokenHint
|
|
4724
|
+
*/
|
|
4725
|
+
function addIdTokenHint(parameters, idTokenHint) {
|
|
4726
|
+
parameters.set(ID_TOKEN_HINT, idTokenHint);
|
|
4727
|
+
}
|
|
4728
|
+
/**
|
|
4729
|
+
* add domain_hint
|
|
4730
|
+
* @param domainHint
|
|
4731
|
+
*/
|
|
4732
|
+
function addDomainHint(parameters, domainHint) {
|
|
4733
|
+
parameters.set(DOMAIN_HINT, domainHint);
|
|
4734
|
+
}
|
|
4735
|
+
/**
|
|
4736
|
+
* add login_hint
|
|
4737
|
+
* @param loginHint
|
|
4738
|
+
*/
|
|
4739
|
+
function addLoginHint(parameters, loginHint) {
|
|
4740
|
+
parameters.set(LOGIN_HINT, loginHint);
|
|
4741
|
+
}
|
|
4742
|
+
/**
|
|
4743
|
+
* Adds the CCS (Cache Credential Service) query parameter for login_hint
|
|
4744
|
+
* @param loginHint
|
|
4745
|
+
*/
|
|
4746
|
+
function addCcsUpn(parameters, loginHint) {
|
|
4747
|
+
parameters.set(HeaderNames.CCS_HEADER, `UPN:${loginHint}`);
|
|
4748
|
+
}
|
|
4749
|
+
/**
|
|
4750
|
+
* Adds the CCS (Cache Credential Service) query parameter for account object
|
|
4751
|
+
* @param loginHint
|
|
4752
|
+
*/
|
|
4753
|
+
function addCcsOid(parameters, clientInfo) {
|
|
4754
|
+
parameters.set(HeaderNames.CCS_HEADER, `Oid:${clientInfo.uid}@${clientInfo.utid}`);
|
|
4755
|
+
}
|
|
4756
|
+
/**
|
|
4757
|
+
* add sid
|
|
4758
|
+
* @param sid
|
|
4759
|
+
*/
|
|
4760
|
+
function addSid(parameters, sid) {
|
|
4761
|
+
parameters.set(SID, sid);
|
|
4762
|
+
}
|
|
4763
|
+
/**
|
|
4764
|
+
* add claims
|
|
4765
|
+
* @param claims
|
|
4766
|
+
*/
|
|
4767
|
+
function addClaims(parameters, claims, clientCapabilities) {
|
|
4768
|
+
const mergedClaims = addClientCapabilitiesToClaims(claims, clientCapabilities);
|
|
4769
|
+
try {
|
|
4770
|
+
JSON.parse(mergedClaims);
|
|
4771
|
+
}
|
|
4772
|
+
catch (e) {
|
|
4773
|
+
throw createClientConfigurationError(invalidClaims);
|
|
4774
|
+
}
|
|
4775
|
+
parameters.set(CLAIMS, mergedClaims);
|
|
4776
|
+
}
|
|
4777
|
+
/**
|
|
4778
|
+
* add correlationId
|
|
4779
|
+
* @param correlationId
|
|
4780
|
+
*/
|
|
4781
|
+
function addCorrelationId(parameters, correlationId) {
|
|
4782
|
+
parameters.set(CLIENT_REQUEST_ID, correlationId);
|
|
4783
|
+
}
|
|
4784
|
+
/**
|
|
4785
|
+
* add library info query params
|
|
4786
|
+
* @param libraryInfo
|
|
4787
|
+
*/
|
|
4788
|
+
function addLibraryInfo(parameters, libraryInfo) {
|
|
4789
|
+
// Telemetry Info
|
|
4790
|
+
parameters.set(X_CLIENT_SKU, libraryInfo.sku);
|
|
4791
|
+
parameters.set(X_CLIENT_VER, libraryInfo.version);
|
|
4792
|
+
if (libraryInfo.os) {
|
|
4793
|
+
parameters.set(X_CLIENT_OS, libraryInfo.os);
|
|
4794
|
+
}
|
|
4795
|
+
if (libraryInfo.cpu) {
|
|
4796
|
+
parameters.set(X_CLIENT_CPU, libraryInfo.cpu);
|
|
4797
|
+
}
|
|
4798
|
+
}
|
|
4799
|
+
/**
|
|
4800
|
+
* Add client telemetry parameters
|
|
4801
|
+
* @param appTelemetry
|
|
4802
|
+
*/
|
|
4803
|
+
function addApplicationTelemetry(parameters, appTelemetry) {
|
|
4804
|
+
if (appTelemetry?.appName) {
|
|
4805
|
+
parameters.set(X_APP_NAME, appTelemetry.appName);
|
|
4806
|
+
}
|
|
4807
|
+
if (appTelemetry?.appVersion) {
|
|
4808
|
+
parameters.set(X_APP_VER, appTelemetry.appVersion);
|
|
4809
|
+
}
|
|
4810
|
+
}
|
|
4811
|
+
/**
|
|
4812
|
+
* add prompt
|
|
4813
|
+
* @param prompt
|
|
4814
|
+
*/
|
|
4815
|
+
function addPrompt(parameters, prompt) {
|
|
4816
|
+
parameters.set(PROMPT, prompt);
|
|
4817
|
+
}
|
|
4818
|
+
/**
|
|
4819
|
+
* add state
|
|
4820
|
+
* @param state
|
|
4821
|
+
*/
|
|
4822
|
+
function addState(parameters, state) {
|
|
4823
|
+
if (state) {
|
|
4824
|
+
parameters.set(STATE, state);
|
|
4825
|
+
}
|
|
4826
|
+
}
|
|
4827
|
+
/**
|
|
4828
|
+
* add nonce
|
|
4829
|
+
* @param nonce
|
|
4830
|
+
*/
|
|
4831
|
+
function addNonce(parameters, nonce) {
|
|
4832
|
+
parameters.set(NONCE, nonce);
|
|
4833
|
+
}
|
|
4834
|
+
/**
|
|
4835
|
+
* add code_challenge and code_challenge_method
|
|
4836
|
+
* - throw if either of them are not passed
|
|
4837
|
+
* @param codeChallenge
|
|
4838
|
+
* @param codeChallengeMethod
|
|
4839
|
+
*/
|
|
4840
|
+
function addCodeChallengeParams(parameters, codeChallenge, codeChallengeMethod) {
|
|
4841
|
+
if (codeChallenge && codeChallengeMethod) {
|
|
4842
|
+
parameters.set(CODE_CHALLENGE, codeChallenge);
|
|
4843
|
+
parameters.set(CODE_CHALLENGE_METHOD, codeChallengeMethod);
|
|
4844
|
+
}
|
|
4845
|
+
else {
|
|
4846
|
+
throw createClientConfigurationError(pkceParamsMissing);
|
|
4847
|
+
}
|
|
4848
|
+
}
|
|
4849
|
+
/**
|
|
4850
|
+
* add the `authorization_code` passed by the user to exchange for a token
|
|
4851
|
+
* @param code
|
|
4852
|
+
*/
|
|
4853
|
+
function addAuthorizationCode(parameters, code) {
|
|
4854
|
+
parameters.set(CODE, code);
|
|
4855
|
+
}
|
|
4856
|
+
/**
|
|
4857
|
+
* add the `refreshToken` passed by the user
|
|
4858
|
+
* @param refreshToken
|
|
4859
|
+
*/
|
|
4860
|
+
function addRefreshToken(parameters, refreshToken) {
|
|
4861
|
+
parameters.set(REFRESH_TOKEN, refreshToken);
|
|
4862
|
+
}
|
|
4863
|
+
/**
|
|
4864
|
+
* add the `code_verifier` passed by the user to exchange for a token
|
|
4865
|
+
* @param codeVerifier
|
|
4866
|
+
*/
|
|
4867
|
+
function addCodeVerifier(parameters, codeVerifier) {
|
|
4868
|
+
parameters.set(CODE_VERIFIER, codeVerifier);
|
|
4869
|
+
}
|
|
4870
|
+
/**
|
|
4871
|
+
* add client_secret
|
|
4872
|
+
* @param clientSecret
|
|
4873
|
+
*/
|
|
4874
|
+
function addClientSecret(parameters, clientSecret) {
|
|
4875
|
+
parameters.set(CLIENT_SECRET, clientSecret);
|
|
4876
|
+
}
|
|
4877
|
+
/**
|
|
4878
|
+
* add clientAssertion for confidential client flows
|
|
4879
|
+
* @param clientAssertion
|
|
4880
|
+
*/
|
|
4881
|
+
function addClientAssertion(parameters, clientAssertion) {
|
|
4882
|
+
if (clientAssertion) {
|
|
4883
|
+
parameters.set(CLIENT_ASSERTION, clientAssertion);
|
|
4884
|
+
}
|
|
4885
|
+
}
|
|
4886
|
+
/**
|
|
4887
|
+
* add clientAssertionType for confidential client flows
|
|
4888
|
+
* @param clientAssertionType
|
|
4889
|
+
*/
|
|
4890
|
+
function addClientAssertionType(parameters, clientAssertionType) {
|
|
4891
|
+
if (clientAssertionType) {
|
|
4892
|
+
parameters.set(CLIENT_ASSERTION_TYPE, clientAssertionType);
|
|
4893
|
+
}
|
|
4894
|
+
}
|
|
4895
|
+
/**
|
|
4896
|
+
* add grant type
|
|
4897
|
+
* @param grantType
|
|
4898
|
+
*/
|
|
4899
|
+
function addGrantType(parameters, grantType) {
|
|
4900
|
+
parameters.set(GRANT_TYPE, grantType);
|
|
4901
|
+
}
|
|
4902
|
+
/**
|
|
4903
|
+
* add client info
|
|
4954
4904
|
*
|
|
4955
|
-
* @export
|
|
4956
|
-
* @enum {number}
|
|
4957
4905
|
*/
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4906
|
+
function addClientInfo(parameters) {
|
|
4907
|
+
parameters.set(CLIENT_INFO, "1");
|
|
4908
|
+
}
|
|
4909
|
+
function addInstanceAware(parameters) {
|
|
4910
|
+
if (!parameters.has(INSTANCE_AWARE)) {
|
|
4911
|
+
parameters.set(INSTANCE_AWARE, "true");
|
|
4912
|
+
}
|
|
4913
|
+
}
|
|
4914
|
+
/**
|
|
4915
|
+
* add extraQueryParams
|
|
4916
|
+
* @param eQParams
|
|
4917
|
+
*/
|
|
4918
|
+
function addExtraQueryParameters(parameters, eQParams) {
|
|
4919
|
+
Object.entries(eQParams).forEach(([key, value]) => {
|
|
4920
|
+
if (!parameters.has(key) && value) {
|
|
4921
|
+
parameters.set(key, value);
|
|
4922
|
+
}
|
|
4923
|
+
});
|
|
4924
|
+
}
|
|
4925
|
+
function addClientCapabilitiesToClaims(claims, clientCapabilities) {
|
|
4926
|
+
let mergedClaims;
|
|
4927
|
+
// Parse provided claims into JSON object or initialize empty object
|
|
4928
|
+
if (!claims) {
|
|
4929
|
+
mergedClaims = {};
|
|
4930
|
+
}
|
|
4931
|
+
else {
|
|
4932
|
+
try {
|
|
4933
|
+
mergedClaims = JSON.parse(claims);
|
|
4934
|
+
}
|
|
4935
|
+
catch (e) {
|
|
4936
|
+
throw createClientConfigurationError(invalidClaims);
|
|
4937
|
+
}
|
|
4938
|
+
}
|
|
4939
|
+
if (clientCapabilities && clientCapabilities.length > 0) {
|
|
4940
|
+
if (!mergedClaims.hasOwnProperty(ClaimsRequestKeys.ACCESS_TOKEN)) {
|
|
4941
|
+
// Add access_token key to claims object
|
|
4942
|
+
mergedClaims[ClaimsRequestKeys.ACCESS_TOKEN] = {};
|
|
4943
|
+
}
|
|
4944
|
+
// Add xms_cc claim with provided clientCapabilities to access_token key
|
|
4945
|
+
mergedClaims[ClaimsRequestKeys.ACCESS_TOKEN][ClaimsRequestKeys.XMS_CC] =
|
|
4946
|
+
{
|
|
4947
|
+
values: clientCapabilities,
|
|
4948
|
+
};
|
|
4949
|
+
}
|
|
4950
|
+
return JSON.stringify(mergedClaims);
|
|
4951
|
+
}
|
|
4952
|
+
/**
|
|
4953
|
+
* add pop_jwk to query params
|
|
4954
|
+
* @param cnfString
|
|
4955
|
+
*/
|
|
4956
|
+
function addPopToken(parameters, cnfString) {
|
|
4957
|
+
if (cnfString) {
|
|
4958
|
+
parameters.set(TOKEN_TYPE, AuthenticationScheme.POP);
|
|
4959
|
+
parameters.set(REQ_CNF, cnfString);
|
|
4960
|
+
}
|
|
4961
|
+
}
|
|
4962
|
+
/**
|
|
4963
|
+
* add SSH JWK and key ID to query params
|
|
4964
|
+
*/
|
|
4965
|
+
function addSshJwk(parameters, sshJwkString) {
|
|
4966
|
+
if (sshJwkString) {
|
|
4967
|
+
parameters.set(TOKEN_TYPE, AuthenticationScheme.SSH);
|
|
4968
|
+
parameters.set(REQ_CNF, sshJwkString);
|
|
4969
|
+
}
|
|
4970
|
+
}
|
|
4971
|
+
/**
|
|
4972
|
+
* add server telemetry fields
|
|
4973
|
+
* @param serverTelemetryManager
|
|
4974
|
+
*/
|
|
4975
|
+
function addServerTelemetry(parameters, serverTelemetryManager) {
|
|
4976
|
+
parameters.set(X_CLIENT_CURR_TELEM, serverTelemetryManager.generateCurrentRequestHeaderValue());
|
|
4977
|
+
parameters.set(X_CLIENT_LAST_TELEM, serverTelemetryManager.generateLastRequestHeaderValue());
|
|
4978
|
+
}
|
|
4979
|
+
/**
|
|
4980
|
+
* Adds parameter that indicates to the server that throttling is supported
|
|
4981
|
+
*/
|
|
4982
|
+
function addThrottling(parameters) {
|
|
4983
|
+
parameters.set(X_MS_LIB_CAPABILITY, ThrottlingConstants.X_MS_LIB_CAPABILITY_VALUE);
|
|
4984
|
+
}
|
|
4985
|
+
/**
|
|
4986
|
+
* Adds logout_hint parameter for "silent" logout which prevent server account picker
|
|
4987
|
+
*/
|
|
4988
|
+
function addLogoutHint(parameters, logoutHint) {
|
|
4989
|
+
parameters.set(LOGOUT_HINT, logoutHint);
|
|
4990
|
+
}
|
|
4991
|
+
function addBrokerParameters(parameters, brokerClientId, brokerRedirectUri) {
|
|
4992
|
+
if (!parameters.has(BROKER_CLIENT_ID)) {
|
|
4993
|
+
parameters.set(BROKER_CLIENT_ID, brokerClientId);
|
|
4994
|
+
}
|
|
4995
|
+
if (!parameters.has(BROKER_REDIRECT_URI)) {
|
|
4996
|
+
parameters.set(BROKER_REDIRECT_URI, brokerRedirectUri);
|
|
4997
|
+
}
|
|
4998
|
+
}
|
|
4999
|
+
/**
|
|
5000
|
+
* Add EAR (Encrypted Authorize Response) request parameters
|
|
5001
|
+
* @param parameters
|
|
5002
|
+
* @param jwk
|
|
5003
|
+
*/
|
|
5004
|
+
function addEARParameters(parameters, jwk) {
|
|
5005
|
+
parameters.set(EAR_JWK, encodeURIComponent(jwk));
|
|
5006
|
+
// ear_jwe_crypto will always have value: {"alg":"dir","enc":"A256GCM"} so we can hardcode this
|
|
5007
|
+
const jweCryptoB64Encoded = "eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIn0";
|
|
5008
|
+
parameters.set(EAR_JWE_CRYPTO, jweCryptoB64Encoded);
|
|
5009
|
+
}
|
|
5010
|
+
|
|
5011
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
5012
|
+
/*
|
|
5013
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5014
|
+
* Licensed under the MIT License.
|
|
5015
|
+
*/
|
|
5016
|
+
function isOpenIdConfigResponse(response) {
|
|
5017
|
+
return (response.hasOwnProperty("authorization_endpoint") &&
|
|
5018
|
+
response.hasOwnProperty("token_endpoint") &&
|
|
5019
|
+
response.hasOwnProperty("issuer") &&
|
|
5020
|
+
response.hasOwnProperty("jwks_uri"));
|
|
5021
|
+
}
|
|
5022
|
+
|
|
5023
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
5024
|
+
/*
|
|
5025
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5026
|
+
* Licensed under the MIT License.
|
|
5027
|
+
*/
|
|
5028
|
+
function isCloudInstanceDiscoveryResponse(response) {
|
|
5029
|
+
return (response.hasOwnProperty("tenant_discovery_endpoint") &&
|
|
5030
|
+
response.hasOwnProperty("metadata"));
|
|
5031
|
+
}
|
|
5032
|
+
|
|
5033
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
5034
|
+
/*
|
|
5035
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5036
|
+
* Licensed under the MIT License.
|
|
5037
|
+
*/
|
|
5038
|
+
function isCloudInstanceDiscoveryErrorResponse(response) {
|
|
5039
|
+
return (response.hasOwnProperty("error") &&
|
|
5040
|
+
response.hasOwnProperty("error_description"));
|
|
5041
|
+
}
|
|
4979
5042
|
|
|
4980
|
-
/*! @azure/msal-common v15.
|
|
5043
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
4981
5044
|
/*
|
|
4982
5045
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4983
5046
|
* Licensed under the MIT License.
|
|
@@ -5073,7 +5136,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
|
|
|
5073
5136
|
};
|
|
5074
5137
|
};
|
|
5075
5138
|
|
|
5076
|
-
/*! @azure/msal-common v15.
|
|
5139
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
5077
5140
|
|
|
5078
5141
|
/*
|
|
5079
5142
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5179,7 +5242,7 @@ RegionDiscovery.IMDS_OPTIONS = {
|
|
|
5179
5242
|
},
|
|
5180
5243
|
};
|
|
5181
5244
|
|
|
5182
|
-
/*! @azure/msal-common v15.
|
|
5245
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
5183
5246
|
|
|
5184
5247
|
/*
|
|
5185
5248
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6018,7 +6081,7 @@ function buildStaticAuthorityOptions(authOptions) {
|
|
|
6018
6081
|
};
|
|
6019
6082
|
}
|
|
6020
6083
|
|
|
6021
|
-
/*! @azure/msal-common v15.
|
|
6084
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
6022
6085
|
|
|
6023
6086
|
/*
|
|
6024
6087
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6049,7 +6112,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
|
|
|
6049
6112
|
}
|
|
6050
6113
|
}
|
|
6051
6114
|
|
|
6052
|
-
/*! @azure/msal-common v15.
|
|
6115
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
6053
6116
|
|
|
6054
6117
|
/*
|
|
6055
6118
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6068,7 +6131,7 @@ class ServerError extends AuthError {
|
|
|
6068
6131
|
}
|
|
6069
6132
|
}
|
|
6070
6133
|
|
|
6071
|
-
/*! @azure/msal-common v15.
|
|
6134
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
6072
6135
|
/*
|
|
6073
6136
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6074
6137
|
* Licensed under the MIT License.
|
|
@@ -6089,7 +6152,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
|
|
|
6089
6152
|
};
|
|
6090
6153
|
}
|
|
6091
6154
|
|
|
6092
|
-
/*! @azure/msal-common v15.
|
|
6155
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
6093
6156
|
|
|
6094
6157
|
/*
|
|
6095
6158
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6109,12 +6172,12 @@ class ThrottlingUtils {
|
|
|
6109
6172
|
* @param cacheManager
|
|
6110
6173
|
* @param thumbprint
|
|
6111
6174
|
*/
|
|
6112
|
-
static preProcess(cacheManager, thumbprint) {
|
|
6175
|
+
static preProcess(cacheManager, thumbprint, correlationId) {
|
|
6113
6176
|
const key = ThrottlingUtils.generateThrottlingStorageKey(thumbprint);
|
|
6114
6177
|
const value = cacheManager.getThrottlingCache(key);
|
|
6115
6178
|
if (value) {
|
|
6116
6179
|
if (value.throttleTime < Date.now()) {
|
|
6117
|
-
cacheManager.removeItem(key);
|
|
6180
|
+
cacheManager.removeItem(key, correlationId);
|
|
6118
6181
|
return;
|
|
6119
6182
|
}
|
|
6120
6183
|
throw new ServerError(value.errorCodes?.join(" ") || Constants.EMPTY_STRING, value.errorMessage, value.subError);
|
|
@@ -6126,7 +6189,7 @@ class ThrottlingUtils {
|
|
|
6126
6189
|
* @param thumbprint
|
|
6127
6190
|
* @param response
|
|
6128
6191
|
*/
|
|
6129
|
-
static postProcess(cacheManager, thumbprint, response) {
|
|
6192
|
+
static postProcess(cacheManager, thumbprint, response, correlationId) {
|
|
6130
6193
|
if (ThrottlingUtils.checkResponseStatus(response) ||
|
|
6131
6194
|
ThrottlingUtils.checkResponseForRetryAfter(response)) {
|
|
6132
6195
|
const thumbprintValue = {
|
|
@@ -6136,7 +6199,7 @@ class ThrottlingUtils {
|
|
|
6136
6199
|
errorMessage: response.body.error_description,
|
|
6137
6200
|
subError: response.body.suberror,
|
|
6138
6201
|
};
|
|
6139
|
-
cacheManager.setThrottlingCache(ThrottlingUtils.generateThrottlingStorageKey(thumbprint), thumbprintValue);
|
|
6202
|
+
cacheManager.setThrottlingCache(ThrottlingUtils.generateThrottlingStorageKey(thumbprint), thumbprintValue, correlationId);
|
|
6140
6203
|
}
|
|
6141
6204
|
}
|
|
6142
6205
|
/**
|
|
@@ -6172,11 +6235,11 @@ class ThrottlingUtils {
|
|
|
6172
6235
|
static removeThrottle(cacheManager, clientId, request, homeAccountIdentifier) {
|
|
6173
6236
|
const thumbprint = getRequestThumbprint(clientId, request, homeAccountIdentifier);
|
|
6174
6237
|
const key = this.generateThrottlingStorageKey(thumbprint);
|
|
6175
|
-
cacheManager.removeItem(key);
|
|
6238
|
+
cacheManager.removeItem(key, request.correlationId);
|
|
6176
6239
|
}
|
|
6177
6240
|
}
|
|
6178
6241
|
|
|
6179
|
-
/*! @azure/msal-common v15.
|
|
6242
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
6180
6243
|
|
|
6181
6244
|
/*
|
|
6182
6245
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6207,7 +6270,7 @@ function createNetworkError(error, httpStatus, responseHeaders, additionalError)
|
|
|
6207
6270
|
return new NetworkError(error, httpStatus, responseHeaders);
|
|
6208
6271
|
}
|
|
6209
6272
|
|
|
6210
|
-
/*! @azure/msal-common v15.
|
|
6273
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
6211
6274
|
|
|
6212
6275
|
/*
|
|
6213
6276
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6289,7 +6352,7 @@ class BaseClient {
|
|
|
6289
6352
|
* @param correlationId - CorrelationId for telemetry
|
|
6290
6353
|
*/
|
|
6291
6354
|
async sendPostRequest(thumbprint, tokenEndpoint, options, correlationId) {
|
|
6292
|
-
ThrottlingUtils.preProcess(this.cacheManager, thumbprint);
|
|
6355
|
+
ThrottlingUtils.preProcess(this.cacheManager, thumbprint, correlationId);
|
|
6293
6356
|
let response;
|
|
6294
6357
|
try {
|
|
6295
6358
|
response = await invokeAsync((this.networkClient.sendPostRequestAsync.bind(this.networkClient)), PerformanceEvents.NetworkClientSendPostRequestAsync, this.logger, this.performanceClient, correlationId)(tokenEndpoint, options);
|
|
@@ -6324,7 +6387,7 @@ class BaseClient {
|
|
|
6324
6387
|
throw createClientAuthError(networkError);
|
|
6325
6388
|
}
|
|
6326
6389
|
}
|
|
6327
|
-
ThrottlingUtils.postProcess(this.cacheManager, thumbprint, response);
|
|
6390
|
+
ThrottlingUtils.postProcess(this.cacheManager, thumbprint, response, correlationId);
|
|
6328
6391
|
return response;
|
|
6329
6392
|
}
|
|
6330
6393
|
/**
|
|
@@ -6355,7 +6418,7 @@ class BaseClient {
|
|
|
6355
6418
|
}
|
|
6356
6419
|
}
|
|
6357
6420
|
|
|
6358
|
-
/*! @azure/msal-common v15.
|
|
6421
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
6359
6422
|
/*
|
|
6360
6423
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6361
6424
|
* Licensed under the MIT License.
|
|
@@ -6364,6 +6427,7 @@ class BaseClient {
|
|
|
6364
6427
|
const noTokensFound = "no_tokens_found";
|
|
6365
6428
|
const nativeAccountUnavailable = "native_account_unavailable";
|
|
6366
6429
|
const refreshTokenExpired = "refresh_token_expired";
|
|
6430
|
+
const uxNotAllowed = "ux_not_allowed";
|
|
6367
6431
|
// Codes potentially returned by server
|
|
6368
6432
|
const interactionRequired = "interaction_required";
|
|
6369
6433
|
const consentRequired = "consent_required";
|
|
@@ -6378,10 +6442,11 @@ var InteractionRequiredAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
6378
6442
|
loginRequired: loginRequired,
|
|
6379
6443
|
nativeAccountUnavailable: nativeAccountUnavailable,
|
|
6380
6444
|
noTokensFound: noTokensFound,
|
|
6381
|
-
refreshTokenExpired: refreshTokenExpired
|
|
6445
|
+
refreshTokenExpired: refreshTokenExpired,
|
|
6446
|
+
uxNotAllowed: uxNotAllowed
|
|
6382
6447
|
});
|
|
6383
6448
|
|
|
6384
|
-
/*! @azure/msal-common v15.
|
|
6449
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
6385
6450
|
|
|
6386
6451
|
/*
|
|
6387
6452
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6395,6 +6460,7 @@ const InteractionRequiredServerErrorMessage = [
|
|
|
6395
6460
|
consentRequired,
|
|
6396
6461
|
loginRequired,
|
|
6397
6462
|
badToken,
|
|
6463
|
+
uxNotAllowed,
|
|
6398
6464
|
];
|
|
6399
6465
|
const InteractionRequiredAuthSubErrorMessage = [
|
|
6400
6466
|
"message_only",
|
|
@@ -6409,6 +6475,7 @@ const InteractionRequiredAuthErrorMessages = {
|
|
|
6409
6475
|
[nativeAccountUnavailable]: "The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API.",
|
|
6410
6476
|
[refreshTokenExpired]: "Refresh token has expired.",
|
|
6411
6477
|
[badToken]: "Identity provider returned bad_token due to an expired or invalid refresh token. Please invoke an interactive API to resolve.",
|
|
6478
|
+
[uxNotAllowed]: "`canShowUI` flag in Edge was set to false. User interaction required on web page. Please invoke an interactive API to resolve.",
|
|
6412
6479
|
};
|
|
6413
6480
|
/**
|
|
6414
6481
|
* Interaction required errors defined by the SDK
|
|
@@ -6469,7 +6536,7 @@ function createInteractionRequiredAuthError(errorCode) {
|
|
|
6469
6536
|
return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
|
|
6470
6537
|
}
|
|
6471
6538
|
|
|
6472
|
-
/*! @azure/msal-common v15.
|
|
6539
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
6473
6540
|
|
|
6474
6541
|
/*
|
|
6475
6542
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6541,16 +6608,14 @@ class ProtocolUtils {
|
|
|
6541
6608
|
}
|
|
6542
6609
|
}
|
|
6543
6610
|
|
|
6544
|
-
/*! @azure/msal-common v15.
|
|
6611
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
6545
6612
|
|
|
6546
6613
|
/*
|
|
6547
6614
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6548
6615
|
* Licensed under the MIT License.
|
|
6549
6616
|
*/
|
|
6550
6617
|
const KeyLocation = {
|
|
6551
|
-
SW: "sw"
|
|
6552
|
-
UHW: "uhw",
|
|
6553
|
-
};
|
|
6618
|
+
SW: "sw"};
|
|
6554
6619
|
/** @internal */
|
|
6555
6620
|
class PopTokenGenerator {
|
|
6556
6621
|
constructor(cryptoUtils, performanceClient) {
|
|
@@ -6625,7 +6690,7 @@ class PopTokenGenerator {
|
|
|
6625
6690
|
}
|
|
6626
6691
|
}
|
|
6627
6692
|
|
|
6628
|
-
/*! @azure/msal-common v15.
|
|
6693
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
6629
6694
|
/*
|
|
6630
6695
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6631
6696
|
* Licensed under the MIT License.
|
|
@@ -6652,7 +6717,7 @@ class PopTokenGenerator {
|
|
|
6652
6717
|
}
|
|
6653
6718
|
}
|
|
6654
6719
|
|
|
6655
|
-
/*! @azure/msal-common v15.
|
|
6720
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
6656
6721
|
|
|
6657
6722
|
/*
|
|
6658
6723
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6765,7 +6830,7 @@ class ResponseHandler {
|
|
|
6765
6830
|
!forceCacheRefreshTokenResponse &&
|
|
6766
6831
|
cacheRecord.account) {
|
|
6767
6832
|
const key = cacheRecord.account.generateAccountKey();
|
|
6768
|
-
const account = this.cacheStorage.getAccount(key);
|
|
6833
|
+
const account = this.cacheStorage.getAccount(key, request.correlationId);
|
|
6769
6834
|
if (!account) {
|
|
6770
6835
|
this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache");
|
|
6771
6836
|
return await ResponseHandler.generateAuthenticationResult(this.cryptoObj, authority, cacheRecord, false, request, idTokenClaims, requestStateObj, undefined, serverRequestId);
|
|
@@ -6800,7 +6865,7 @@ class ResponseHandler {
|
|
|
6800
6865
|
let cachedAccount;
|
|
6801
6866
|
if (serverTokenResponse.id_token && !!idTokenClaims) {
|
|
6802
6867
|
cachedIdToken = createIdTokenEntity(this.homeAccountIdentifier, env, serverTokenResponse.id_token, this.clientId, claimsTenantId || "");
|
|
6803
|
-
cachedAccount = buildAccountToCache(this.cacheStorage, authority, this.homeAccountIdentifier, this.cryptoObj.base64Decode, idTokenClaims, serverTokenResponse.client_info, env, claimsTenantId, authCodePayload, undefined, // nativeAccountId
|
|
6868
|
+
cachedAccount = buildAccountToCache(this.cacheStorage, authority, this.homeAccountIdentifier, this.cryptoObj.base64Decode, request.correlationId, idTokenClaims, serverTokenResponse.client_info, env, claimsTenantId, authCodePayload, undefined, // nativeAccountId
|
|
6804
6869
|
this.logger);
|
|
6805
6870
|
}
|
|
6806
6871
|
// AccessToken
|
|
@@ -6949,7 +7014,7 @@ class ResponseHandler {
|
|
|
6949
7014
|
};
|
|
6950
7015
|
}
|
|
6951
7016
|
}
|
|
6952
|
-
function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decode, idTokenClaims, clientInfo, environment, claimsTenantId, authCodePayload, nativeAccountId, logger) {
|
|
7017
|
+
function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decode, correlationId, idTokenClaims, clientInfo, environment, claimsTenantId, authCodePayload, nativeAccountId, logger) {
|
|
6953
7018
|
logger?.verbose("setCachedAccount called");
|
|
6954
7019
|
// Check if base account is already cached
|
|
6955
7020
|
const accountKeys = cacheStorage.getAccountKeys();
|
|
@@ -6958,7 +7023,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
|
|
|
6958
7023
|
});
|
|
6959
7024
|
let cachedAccount = null;
|
|
6960
7025
|
if (baseAccountKey) {
|
|
6961
|
-
cachedAccount = cacheStorage.getAccount(baseAccountKey);
|
|
7026
|
+
cachedAccount = cacheStorage.getAccount(baseAccountKey, correlationId);
|
|
6962
7027
|
}
|
|
6963
7028
|
const baseAccount = cachedAccount ||
|
|
6964
7029
|
AccountEntity.createAccount({
|
|
@@ -6983,7 +7048,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
|
|
|
6983
7048
|
return baseAccount;
|
|
6984
7049
|
}
|
|
6985
7050
|
|
|
6986
|
-
/*! @azure/msal-common v15.
|
|
7051
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
6987
7052
|
|
|
6988
7053
|
/*
|
|
6989
7054
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7050,7 +7115,7 @@ class RequestValidator {
|
|
|
7050
7115
|
}
|
|
7051
7116
|
}
|
|
7052
7117
|
|
|
7053
|
-
/*! @azure/msal-common v15.
|
|
7118
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
7054
7119
|
/*
|
|
7055
7120
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7056
7121
|
* Licensed under the MIT License.
|
|
@@ -7068,7 +7133,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint) {
|
|
|
7068
7133
|
}
|
|
7069
7134
|
}
|
|
7070
7135
|
|
|
7071
|
-
/*! @azure/msal-common v15.
|
|
7136
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
7072
7137
|
|
|
7073
7138
|
/*
|
|
7074
7139
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7301,7 +7366,7 @@ class AuthorizationCodeClient extends BaseClient {
|
|
|
7301
7366
|
}
|
|
7302
7367
|
}
|
|
7303
7368
|
|
|
7304
|
-
/*! @azure/msal-common v15.
|
|
7369
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
7305
7370
|
|
|
7306
7371
|
/*
|
|
7307
7372
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7374,7 +7439,7 @@ class RefreshTokenClient extends BaseClient {
|
|
|
7374
7439
|
async acquireTokenWithCachedRefreshToken(request, foci) {
|
|
7375
7440
|
this.performanceClient?.addQueueMeasurement(PerformanceEvents.RefreshTokenClientAcquireTokenWithCachedRefreshToken, request.correlationId);
|
|
7376
7441
|
// fetches family RT or application RT based on FOCI value
|
|
7377
|
-
const refreshToken = invoke(this.cacheManager.getRefreshToken.bind(this.cacheManager), PerformanceEvents.CacheManagerGetRefreshToken, this.logger, this.performanceClient, request.correlationId)(request.account, foci, undefined, this.performanceClient
|
|
7442
|
+
const refreshToken = invoke(this.cacheManager.getRefreshToken.bind(this.cacheManager), PerformanceEvents.CacheManagerGetRefreshToken, this.logger, this.performanceClient, request.correlationId)(request.account, foci, request.correlationId, undefined, this.performanceClient);
|
|
7378
7443
|
if (!refreshToken) {
|
|
7379
7444
|
throw createInteractionRequiredAuthError(noTokensFound);
|
|
7380
7445
|
}
|
|
@@ -7404,7 +7469,7 @@ class RefreshTokenClient extends BaseClient {
|
|
|
7404
7469
|
// Remove bad refresh token from cache
|
|
7405
7470
|
this.logger.verbose("acquireTokenWithRefreshToken: bad refresh token, removing from cache");
|
|
7406
7471
|
const badRefreshTokenKey = generateCredentialKey(refreshToken);
|
|
7407
|
-
this.cacheManager.removeRefreshToken(badRefreshTokenKey);
|
|
7472
|
+
this.cacheManager.removeRefreshToken(badRefreshTokenKey, request.correlationId);
|
|
7408
7473
|
}
|
|
7409
7474
|
}
|
|
7410
7475
|
throw e;
|
|
@@ -7510,7 +7575,7 @@ class RefreshTokenClient extends BaseClient {
|
|
|
7510
7575
|
}
|
|
7511
7576
|
}
|
|
7512
7577
|
|
|
7513
|
-
/*! @azure/msal-common v15.
|
|
7578
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
7514
7579
|
|
|
7515
7580
|
/*
|
|
7516
7581
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7542,7 +7607,7 @@ class SilentFlowClient extends BaseClient {
|
|
|
7542
7607
|
const requestTenantId = request.account.tenantId ||
|
|
7543
7608
|
getTenantFromAuthorityString(request.authority);
|
|
7544
7609
|
const tokenKeys = this.cacheManager.getTokenKeys();
|
|
7545
|
-
const cachedAccessToken = this.cacheManager.getAccessToken(request.account, request, tokenKeys, requestTenantId
|
|
7610
|
+
const cachedAccessToken = this.cacheManager.getAccessToken(request.account, request, tokenKeys, requestTenantId);
|
|
7546
7611
|
if (!cachedAccessToken) {
|
|
7547
7612
|
// must refresh due to non-existent access_token
|
|
7548
7613
|
this.setCacheOutcome(CacheOutcome.NO_CACHED_ACCESS_TOKEN, request.correlationId);
|
|
@@ -7562,9 +7627,9 @@ class SilentFlowClient extends BaseClient {
|
|
|
7562
7627
|
}
|
|
7563
7628
|
const environment = request.authority || this.authority.getPreferredCache();
|
|
7564
7629
|
const cacheRecord = {
|
|
7565
|
-
account: this.cacheManager.readAccountFromCache(request.account),
|
|
7630
|
+
account: this.cacheManager.readAccountFromCache(request.account, request.correlationId),
|
|
7566
7631
|
accessToken: cachedAccessToken,
|
|
7567
|
-
idToken: this.cacheManager.getIdToken(request.account, tokenKeys, requestTenantId, this.performanceClient
|
|
7632
|
+
idToken: this.cacheManager.getIdToken(request.account, request.correlationId, tokenKeys, requestTenantId, this.performanceClient),
|
|
7568
7633
|
refreshToken: null,
|
|
7569
7634
|
appMetadata: this.cacheManager.readAppMetadataFromCache(environment),
|
|
7570
7635
|
};
|
|
@@ -7608,7 +7673,7 @@ class SilentFlowClient extends BaseClient {
|
|
|
7608
7673
|
}
|
|
7609
7674
|
}
|
|
7610
7675
|
|
|
7611
|
-
/*! @azure/msal-common v15.
|
|
7676
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
7612
7677
|
|
|
7613
7678
|
/*
|
|
7614
7679
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7623,7 +7688,7 @@ const StubbedNetworkModule = {
|
|
|
7623
7688
|
},
|
|
7624
7689
|
};
|
|
7625
7690
|
|
|
7626
|
-
/*! @azure/msal-common v15.
|
|
7691
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
7627
7692
|
|
|
7628
7693
|
/*
|
|
7629
7694
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7847,7 +7912,7 @@ function extractLoginHint(account) {
|
|
|
7847
7912
|
return account.idTokenClaims?.login_hint || null;
|
|
7848
7913
|
}
|
|
7849
7914
|
|
|
7850
|
-
/*! @azure/msal-common v15.
|
|
7915
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
7851
7916
|
|
|
7852
7917
|
/*
|
|
7853
7918
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7905,7 +7970,7 @@ class AuthenticationHeaderParser {
|
|
|
7905
7970
|
}
|
|
7906
7971
|
}
|
|
7907
7972
|
|
|
7908
|
-
/*! @azure/msal-common v15.
|
|
7973
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
7909
7974
|
|
|
7910
7975
|
/*
|
|
7911
7976
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8044,7 +8109,7 @@ class ServerTelemetryManager {
|
|
|
8044
8109
|
else {
|
|
8045
8110
|
lastRequests.errors.push(SERVER_TELEM_CONSTANTS.UNKNOWN_ERROR);
|
|
8046
8111
|
}
|
|
8047
|
-
this.cacheManager.setServerTelemetry(this.telemetryCacheKey, lastRequests);
|
|
8112
|
+
this.cacheManager.setServerTelemetry(this.telemetryCacheKey, lastRequests, this.correlationId);
|
|
8048
8113
|
return;
|
|
8049
8114
|
}
|
|
8050
8115
|
/**
|
|
@@ -8053,7 +8118,7 @@ class ServerTelemetryManager {
|
|
|
8053
8118
|
incrementCacheHits() {
|
|
8054
8119
|
const lastRequests = this.getLastRequests();
|
|
8055
8120
|
lastRequests.cacheHits += 1;
|
|
8056
|
-
this.cacheManager.setServerTelemetry(this.telemetryCacheKey, lastRequests);
|
|
8121
|
+
this.cacheManager.setServerTelemetry(this.telemetryCacheKey, lastRequests, this.correlationId);
|
|
8057
8122
|
return lastRequests.cacheHits;
|
|
8058
8123
|
}
|
|
8059
8124
|
/**
|
|
@@ -8077,7 +8142,7 @@ class ServerTelemetryManager {
|
|
|
8077
8142
|
const errorCount = lastRequests.errors.length;
|
|
8078
8143
|
if (numErrorsFlushed === errorCount) {
|
|
8079
8144
|
// All errors were sent on last request, clear Telemetry cache
|
|
8080
|
-
this.cacheManager.removeItem(this.telemetryCacheKey);
|
|
8145
|
+
this.cacheManager.removeItem(this.telemetryCacheKey, this.correlationId);
|
|
8081
8146
|
}
|
|
8082
8147
|
else {
|
|
8083
8148
|
// Partial data was flushed to server, construct a new telemetry cache item with errors that were not flushed
|
|
@@ -8086,7 +8151,7 @@ class ServerTelemetryManager {
|
|
|
8086
8151
|
errors: lastRequests.errors.slice(numErrorsFlushed),
|
|
8087
8152
|
cacheHits: 0,
|
|
8088
8153
|
};
|
|
8089
|
-
this.cacheManager.setServerTelemetry(this.telemetryCacheKey, serverTelemEntity);
|
|
8154
|
+
this.cacheManager.setServerTelemetry(this.telemetryCacheKey, serverTelemEntity, this.correlationId);
|
|
8090
8155
|
}
|
|
8091
8156
|
}
|
|
8092
8157
|
/**
|
|
@@ -8153,7 +8218,7 @@ class ServerTelemetryManager {
|
|
|
8153
8218
|
setNativeBrokerErrorCode(errorCode) {
|
|
8154
8219
|
const lastRequests = this.getLastRequests();
|
|
8155
8220
|
lastRequests.nativeBrokerErrorCode = errorCode;
|
|
8156
|
-
this.cacheManager.setServerTelemetry(this.telemetryCacheKey, lastRequests);
|
|
8221
|
+
this.cacheManager.setServerTelemetry(this.telemetryCacheKey, lastRequests, this.correlationId);
|
|
8157
8222
|
}
|
|
8158
8223
|
getNativeBrokerErrorCode() {
|
|
8159
8224
|
return this.getLastRequests().nativeBrokerErrorCode;
|
|
@@ -8161,14 +8226,14 @@ class ServerTelemetryManager {
|
|
|
8161
8226
|
clearNativeBrokerErrorCode() {
|
|
8162
8227
|
const lastRequests = this.getLastRequests();
|
|
8163
8228
|
delete lastRequests.nativeBrokerErrorCode;
|
|
8164
|
-
this.cacheManager.setServerTelemetry(this.telemetryCacheKey, lastRequests);
|
|
8229
|
+
this.cacheManager.setServerTelemetry(this.telemetryCacheKey, lastRequests, this.correlationId);
|
|
8165
8230
|
}
|
|
8166
8231
|
static makeExtraSkuString(params) {
|
|
8167
8232
|
return makeExtraSkuString(params);
|
|
8168
8233
|
}
|
|
8169
8234
|
}
|
|
8170
8235
|
|
|
8171
|
-
/*! @azure/msal-common v15.
|
|
8236
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
8172
8237
|
/*
|
|
8173
8238
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8174
8239
|
* Licensed under the MIT License.
|
|
@@ -8176,7 +8241,7 @@ class ServerTelemetryManager {
|
|
|
8176
8241
|
const missingKidError = "missing_kid_error";
|
|
8177
8242
|
const missingAlgError = "missing_alg_error";
|
|
8178
8243
|
|
|
8179
|
-
/*! @azure/msal-common v15.
|
|
8244
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
8180
8245
|
|
|
8181
8246
|
/*
|
|
8182
8247
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8201,7 +8266,7 @@ function createJoseHeaderError(code) {
|
|
|
8201
8266
|
return new JoseHeaderError(code, JoseHeaderErrorMessages[code]);
|
|
8202
8267
|
}
|
|
8203
8268
|
|
|
8204
|
-
/*! @azure/msal-common v15.
|
|
8269
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
8205
8270
|
|
|
8206
8271
|
/*
|
|
8207
8272
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8241,86 +8306,7 @@ class JoseHeader {
|
|
|
8241
8306
|
}
|
|
8242
8307
|
}
|
|
8243
8308
|
|
|
8244
|
-
/*! @azure/msal-common v15.
|
|
8245
|
-
|
|
8246
|
-
/*
|
|
8247
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8248
|
-
* Licensed under the MIT License.
|
|
8249
|
-
*/
|
|
8250
|
-
class StubPerformanceMeasurement {
|
|
8251
|
-
startMeasurement() {
|
|
8252
|
-
return;
|
|
8253
|
-
}
|
|
8254
|
-
endMeasurement() {
|
|
8255
|
-
return;
|
|
8256
|
-
}
|
|
8257
|
-
flushMeasurement() {
|
|
8258
|
-
return null;
|
|
8259
|
-
}
|
|
8260
|
-
}
|
|
8261
|
-
class StubPerformanceClient {
|
|
8262
|
-
generateId() {
|
|
8263
|
-
return "callback-id";
|
|
8264
|
-
}
|
|
8265
|
-
startMeasurement(measureName, correlationId) {
|
|
8266
|
-
return {
|
|
8267
|
-
end: () => null,
|
|
8268
|
-
discard: () => { },
|
|
8269
|
-
add: () => { },
|
|
8270
|
-
increment: () => { },
|
|
8271
|
-
event: {
|
|
8272
|
-
eventId: this.generateId(),
|
|
8273
|
-
status: PerformanceEventStatus.InProgress,
|
|
8274
|
-
authority: "",
|
|
8275
|
-
libraryName: "",
|
|
8276
|
-
libraryVersion: "",
|
|
8277
|
-
clientId: "",
|
|
8278
|
-
name: measureName,
|
|
8279
|
-
startTimeMs: Date.now(),
|
|
8280
|
-
correlationId: correlationId || "",
|
|
8281
|
-
},
|
|
8282
|
-
measurement: new StubPerformanceMeasurement(),
|
|
8283
|
-
};
|
|
8284
|
-
}
|
|
8285
|
-
startPerformanceMeasurement() {
|
|
8286
|
-
return new StubPerformanceMeasurement();
|
|
8287
|
-
}
|
|
8288
|
-
calculateQueuedTime() {
|
|
8289
|
-
return 0;
|
|
8290
|
-
}
|
|
8291
|
-
addQueueMeasurement() {
|
|
8292
|
-
return;
|
|
8293
|
-
}
|
|
8294
|
-
setPreQueueTime() {
|
|
8295
|
-
return;
|
|
8296
|
-
}
|
|
8297
|
-
endMeasurement() {
|
|
8298
|
-
return null;
|
|
8299
|
-
}
|
|
8300
|
-
discardMeasurements() {
|
|
8301
|
-
return;
|
|
8302
|
-
}
|
|
8303
|
-
removePerformanceCallback() {
|
|
8304
|
-
return true;
|
|
8305
|
-
}
|
|
8306
|
-
addPerformanceCallback() {
|
|
8307
|
-
return "";
|
|
8308
|
-
}
|
|
8309
|
-
emitEvents() {
|
|
8310
|
-
return;
|
|
8311
|
-
}
|
|
8312
|
-
addFields() {
|
|
8313
|
-
return;
|
|
8314
|
-
}
|
|
8315
|
-
incrementFields() {
|
|
8316
|
-
return;
|
|
8317
|
-
}
|
|
8318
|
-
cacheEventByCorrelationId() {
|
|
8319
|
-
return;
|
|
8320
|
-
}
|
|
8321
|
-
}
|
|
8322
|
-
|
|
8323
|
-
/*! @azure/msal-common v15.7.0 2025-06-10 */
|
|
8309
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
8324
8310
|
|
|
8325
8311
|
/*
|
|
8326
8312
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8982,7 +8968,8 @@ const invalidBase64String = "invalid_base64_string";
|
|
|
8982
8968
|
const invalidPopTokenRequest = "invalid_pop_token_request";
|
|
8983
8969
|
const failedToBuildHeaders = "failed_to_build_headers";
|
|
8984
8970
|
const failedToParseHeaders = "failed_to_parse_headers";
|
|
8985
|
-
const failedToDecryptEarResponse = "failed_to_decrypt_ear_response";
|
|
8971
|
+
const failedToDecryptEarResponse = "failed_to_decrypt_ear_response";
|
|
8972
|
+
const timedOut = "timed_out";
|
|
8986
8973
|
|
|
8987
8974
|
var BrowserAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
8988
8975
|
__proto__: null,
|
|
@@ -9030,6 +9017,7 @@ var BrowserAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
9030
9017
|
silentPromptValueError: silentPromptValueError,
|
|
9031
9018
|
spaCodeAndNativeAccountIdPresent: spaCodeAndNativeAccountIdPresent,
|
|
9032
9019
|
stateInteractionTypeMismatch: stateInteractionTypeMismatch,
|
|
9020
|
+
timedOut: timedOut,
|
|
9033
9021
|
unableToAcquireTokenFromNativePlatform: unableToAcquireTokenFromNativePlatform,
|
|
9034
9022
|
unableToLoadToken: unableToLoadToken,
|
|
9035
9023
|
unableToParseState: unableToParseState,
|
|
@@ -9097,6 +9085,7 @@ const BrowserAuthErrorMessages = {
|
|
|
9097
9085
|
[failedToBuildHeaders]: "Failed to build request headers object.",
|
|
9098
9086
|
[failedToParseHeaders]: "Failed to parse response headers",
|
|
9099
9087
|
[failedToDecryptEarResponse]: "Failed to decrypt ear response",
|
|
9088
|
+
[timedOut]: "The request timed out.",
|
|
9100
9089
|
};
|
|
9101
9090
|
/**
|
|
9102
9091
|
* BrowserAuthErrorMessage class containing string constants used by error codes and messages.
|
|
@@ -9310,10 +9299,6 @@ function createBrowserAuthError(errorCode, subError) {
|
|
|
9310
9299
|
* Constants
|
|
9311
9300
|
*/
|
|
9312
9301
|
const BrowserConstants = {
|
|
9313
|
-
/**
|
|
9314
|
-
* Interaction in progress cache value
|
|
9315
|
-
*/
|
|
9316
|
-
INTERACTION_IN_PROGRESS_VALUE: "interaction_in_progress",
|
|
9317
9302
|
/**
|
|
9318
9303
|
* Invalid grant error code
|
|
9319
9304
|
*/
|
|
@@ -10165,9 +10150,9 @@ class NavigationClient {
|
|
|
10165
10150
|
else {
|
|
10166
10151
|
window.location.assign(url); // CodeQL [SM03712] Application owner controls the URL. User can't change it.
|
|
10167
10152
|
}
|
|
10168
|
-
return new Promise((resolve) => {
|
|
10153
|
+
return new Promise((resolve, reject) => {
|
|
10169
10154
|
setTimeout(() => {
|
|
10170
|
-
|
|
10155
|
+
reject(createBrowserAuthError(timedOut, "failed_to_redirect"));
|
|
10171
10156
|
}, options.timeout);
|
|
10172
10157
|
});
|
|
10173
10158
|
}
|
|
@@ -10425,7 +10410,7 @@ function buildConfiguration({ auth: userInputAuth, cache: userInputCache, system
|
|
|
10425
10410
|
|
|
10426
10411
|
/* eslint-disable header/header */
|
|
10427
10412
|
const name = "@azure/msal-browser";
|
|
10428
|
-
const version = "4.
|
|
10413
|
+
const version = "4.14.0";
|
|
10429
10414
|
|
|
10430
10415
|
/*
|
|
10431
10416
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -11269,7 +11254,9 @@ class CryptoOps {
|
|
|
11269
11254
|
async removeTokenBindingKey(kid) {
|
|
11270
11255
|
await this.cache.removeItem(kid);
|
|
11271
11256
|
const keyFound = await this.cache.containsKey(kid);
|
|
11272
|
-
|
|
11257
|
+
if (keyFound) {
|
|
11258
|
+
throw createClientAuthError(bindingKeyNotRemoved);
|
|
11259
|
+
}
|
|
11273
11260
|
}
|
|
11274
11261
|
/**
|
|
11275
11262
|
* Removes all cryptographic keys from IndexedDB storage
|
|
@@ -11536,7 +11523,7 @@ class LocalStorage {
|
|
|
11536
11523
|
setItem(key, value) {
|
|
11537
11524
|
window.localStorage.setItem(key, value);
|
|
11538
11525
|
}
|
|
11539
|
-
async setUserData(key, value, correlationId) {
|
|
11526
|
+
async setUserData(key, value, correlationId, timestamp) {
|
|
11540
11527
|
if (!this.initialized || !this.encryptionCookie) {
|
|
11541
11528
|
throw createBrowserAuthError(uninitializedPublicClientApplication);
|
|
11542
11529
|
}
|
|
@@ -11545,6 +11532,7 @@ class LocalStorage {
|
|
|
11545
11532
|
id: this.encryptionCookie.id,
|
|
11546
11533
|
nonce: nonce,
|
|
11547
11534
|
data: data,
|
|
11535
|
+
lastUpdatedAt: timestamp,
|
|
11548
11536
|
};
|
|
11549
11537
|
this.memoryStorage.setItem(key, value);
|
|
11550
11538
|
this.setItem(key, JSON.stringify(encryptedData));
|
|
@@ -11791,14 +11779,13 @@ const EventType = {
|
|
|
11791
11779
|
*/
|
|
11792
11780
|
class BrowserCacheManager extends CacheManager {
|
|
11793
11781
|
constructor(clientId, cacheConfig, cryptoImpl, logger, performanceClient, eventHandler, staticAuthorityOptions) {
|
|
11794
|
-
super(clientId, cryptoImpl, logger, staticAuthorityOptions);
|
|
11782
|
+
super(clientId, cryptoImpl, logger, performanceClient, staticAuthorityOptions);
|
|
11795
11783
|
this.cacheConfig = cacheConfig;
|
|
11796
11784
|
this.logger = logger;
|
|
11797
11785
|
this.internalStorage = new MemoryStorage();
|
|
11798
11786
|
this.browserStorage = getStorageImplementation(clientId, cacheConfig.cacheLocation, logger, performanceClient);
|
|
11799
11787
|
this.temporaryCacheStorage = getStorageImplementation(clientId, cacheConfig.temporaryCacheLocation, logger, performanceClient);
|
|
11800
11788
|
this.cookieStorage = new CookieStorage();
|
|
11801
|
-
this.performanceClient = performanceClient;
|
|
11802
11789
|
this.eventHandler = eventHandler;
|
|
11803
11790
|
}
|
|
11804
11791
|
async initialize(correlationId) {
|
|
@@ -11815,7 +11802,7 @@ class BrowserCacheManager extends CacheManager {
|
|
|
11815
11802
|
this.performanceClient.addFields({ previousLibraryVersion: previousVersion }, correlationId);
|
|
11816
11803
|
}
|
|
11817
11804
|
if (previousVersion !== version) {
|
|
11818
|
-
this.
|
|
11805
|
+
this.setItem(StaticCacheKeys.VERSION, version, correlationId);
|
|
11819
11806
|
}
|
|
11820
11807
|
}
|
|
11821
11808
|
/**
|
|
@@ -11839,22 +11826,111 @@ class BrowserCacheManager extends CacheManager {
|
|
|
11839
11826
|
return null;
|
|
11840
11827
|
}
|
|
11841
11828
|
}
|
|
11829
|
+
/**
|
|
11830
|
+
* Helper to setItem in browser storage, with cleanup in case of quota errors
|
|
11831
|
+
* @param key
|
|
11832
|
+
* @param value
|
|
11833
|
+
*/
|
|
11834
|
+
setItem(key, value, correlationId) {
|
|
11835
|
+
let accessTokenKeys = [];
|
|
11836
|
+
const maxRetries = 20;
|
|
11837
|
+
for (let i = 0; i <= maxRetries; i++) {
|
|
11838
|
+
try {
|
|
11839
|
+
this.browserStorage.setItem(key, value);
|
|
11840
|
+
if (i > 0) {
|
|
11841
|
+
// Finally update the token keys array with the tokens removed
|
|
11842
|
+
this.removeAccessTokenKeys(accessTokenKeys.slice(0, i), correlationId);
|
|
11843
|
+
}
|
|
11844
|
+
break; // If setItem succeeds, exit the loop
|
|
11845
|
+
}
|
|
11846
|
+
catch (e) {
|
|
11847
|
+
const cacheError = createCacheError(e);
|
|
11848
|
+
if (cacheError.errorCode ===
|
|
11849
|
+
cacheQuotaExceeded &&
|
|
11850
|
+
i < maxRetries) {
|
|
11851
|
+
if (!accessTokenKeys.length) {
|
|
11852
|
+
if (key ===
|
|
11853
|
+
`${StaticCacheKeys.TOKEN_KEYS}.${this.clientId}`) {
|
|
11854
|
+
// If we are currently trying to set the token keys, use the value we're trying to set
|
|
11855
|
+
accessTokenKeys = JSON.parse(value)
|
|
11856
|
+
.accessToken;
|
|
11857
|
+
}
|
|
11858
|
+
else {
|
|
11859
|
+
// If token keys have not been initialized, get them
|
|
11860
|
+
accessTokenKeys = this.getTokenKeys().accessToken;
|
|
11861
|
+
}
|
|
11862
|
+
}
|
|
11863
|
+
if (accessTokenKeys.length <= i) {
|
|
11864
|
+
// Nothing to remove, rethrow the error
|
|
11865
|
+
throw cacheError;
|
|
11866
|
+
}
|
|
11867
|
+
// When cache quota is exceeded, start removing access tokens until we can successfully set the item
|
|
11868
|
+
this.removeAccessToken(accessTokenKeys[i], correlationId, false // Don't save token keys yet, do it at the end
|
|
11869
|
+
);
|
|
11870
|
+
}
|
|
11871
|
+
else {
|
|
11872
|
+
// If the error is not a quota exceeded error, rethrow it
|
|
11873
|
+
throw cacheError;
|
|
11874
|
+
}
|
|
11875
|
+
}
|
|
11876
|
+
}
|
|
11877
|
+
}
|
|
11878
|
+
/**
|
|
11879
|
+
* Helper to setUserData in browser storage, with cleanup in case of quota errors
|
|
11880
|
+
* @param key
|
|
11881
|
+
* @param value
|
|
11882
|
+
* @param correlationId
|
|
11883
|
+
*/
|
|
11884
|
+
async setUserData(key, value, correlationId, timestamp) {
|
|
11885
|
+
let accessTokenKeys = [];
|
|
11886
|
+
const maxRetries = 20;
|
|
11887
|
+
for (let i = 0; i <= maxRetries; i++) {
|
|
11888
|
+
try {
|
|
11889
|
+
await invokeAsync(this.browserStorage.setUserData.bind(this.browserStorage), PerformanceEvents.SetUserData, this.logger, this.performanceClient)(key, value, correlationId, timestamp);
|
|
11890
|
+
if (i > 0) {
|
|
11891
|
+
// Finally update the token keys array with the tokens removed
|
|
11892
|
+
this.removeAccessTokenKeys(accessTokenKeys.slice(0, i), correlationId);
|
|
11893
|
+
}
|
|
11894
|
+
break; // If setItem succeeds, exit the loop
|
|
11895
|
+
}
|
|
11896
|
+
catch (e) {
|
|
11897
|
+
const cacheError = createCacheError(e);
|
|
11898
|
+
if (cacheError.errorCode ===
|
|
11899
|
+
cacheQuotaExceeded &&
|
|
11900
|
+
i < maxRetries) {
|
|
11901
|
+
if (!accessTokenKeys.length) {
|
|
11902
|
+
accessTokenKeys = this.getTokenKeys().accessToken;
|
|
11903
|
+
}
|
|
11904
|
+
if (accessTokenKeys.length <= i) {
|
|
11905
|
+
// Nothing left to remove, rethrow the error
|
|
11906
|
+
throw cacheError;
|
|
11907
|
+
}
|
|
11908
|
+
// When cache quota is exceeded, start removing access tokens until we can successfully set the item
|
|
11909
|
+
this.removeAccessToken(accessTokenKeys[i], correlationId, false // Don't save token keys yet, do it at the end
|
|
11910
|
+
);
|
|
11911
|
+
}
|
|
11912
|
+
else {
|
|
11913
|
+
// If the error is not a quota exceeded error, rethrow it
|
|
11914
|
+
throw cacheError;
|
|
11915
|
+
}
|
|
11916
|
+
}
|
|
11917
|
+
}
|
|
11918
|
+
}
|
|
11842
11919
|
/**
|
|
11843
11920
|
* Reads account from cache, deserializes it into an account entity and returns it.
|
|
11844
11921
|
* If account is not found from the key, returns null and removes key from map.
|
|
11845
11922
|
* @param accountKey
|
|
11846
11923
|
* @returns
|
|
11847
11924
|
*/
|
|
11848
|
-
getAccount(accountKey) {
|
|
11925
|
+
getAccount(accountKey, correlationId) {
|
|
11849
11926
|
this.logger.trace("BrowserCacheManager.getAccount called");
|
|
11850
11927
|
const serializedAccount = this.browserStorage.getUserData(accountKey);
|
|
11851
11928
|
if (!serializedAccount) {
|
|
11852
|
-
this.removeAccountKeyFromMap(accountKey);
|
|
11929
|
+
this.removeAccountKeyFromMap(accountKey, correlationId);
|
|
11853
11930
|
return null;
|
|
11854
11931
|
}
|
|
11855
11932
|
const parsedAccount = this.validateAndParseJson(serializedAccount);
|
|
11856
11933
|
if (!parsedAccount || !AccountEntity.isAccountEntity(parsedAccount)) {
|
|
11857
|
-
this.removeAccountKeyFromMap(accountKey);
|
|
11858
11934
|
return null;
|
|
11859
11935
|
}
|
|
11860
11936
|
return CacheManager.toObject(new AccountEntity(), parsedAccount);
|
|
@@ -11866,8 +11942,10 @@ class BrowserCacheManager extends CacheManager {
|
|
|
11866
11942
|
async setAccount(account, correlationId) {
|
|
11867
11943
|
this.logger.trace("BrowserCacheManager.setAccount called");
|
|
11868
11944
|
const key = account.generateAccountKey();
|
|
11869
|
-
|
|
11870
|
-
|
|
11945
|
+
const timestamp = Date.now().toString();
|
|
11946
|
+
account.lastUpdatedAt = timestamp;
|
|
11947
|
+
await this.setUserData(key, JSON.stringify(account), correlationId, timestamp);
|
|
11948
|
+
const wasAdded = this.addAccountKeyToMap(key, correlationId);
|
|
11871
11949
|
/**
|
|
11872
11950
|
* @deprecated - Remove this in next major version in favor of more consistent LOGIN event
|
|
11873
11951
|
*/
|
|
@@ -11888,14 +11966,14 @@ class BrowserCacheManager extends CacheManager {
|
|
|
11888
11966
|
* Add a new account to the key map
|
|
11889
11967
|
* @param key
|
|
11890
11968
|
*/
|
|
11891
|
-
addAccountKeyToMap(key) {
|
|
11969
|
+
addAccountKeyToMap(key, correlationId) {
|
|
11892
11970
|
this.logger.trace("BrowserCacheManager.addAccountKeyToMap called");
|
|
11893
11971
|
this.logger.tracePii(`BrowserCacheManager.addAccountKeyToMap called with key: ${key}`);
|
|
11894
11972
|
const accountKeys = this.getAccountKeys();
|
|
11895
11973
|
if (accountKeys.indexOf(key) === -1) {
|
|
11896
11974
|
// Only add key if it does not already exist in the map
|
|
11897
11975
|
accountKeys.push(key);
|
|
11898
|
-
this.
|
|
11976
|
+
this.setItem(StaticCacheKeys.ACCOUNT_KEYS, JSON.stringify(accountKeys), correlationId);
|
|
11899
11977
|
this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added");
|
|
11900
11978
|
return true;
|
|
11901
11979
|
}
|
|
@@ -11908,14 +11986,21 @@ class BrowserCacheManager extends CacheManager {
|
|
|
11908
11986
|
* Remove an account from the key map
|
|
11909
11987
|
* @param key
|
|
11910
11988
|
*/
|
|
11911
|
-
removeAccountKeyFromMap(key) {
|
|
11989
|
+
removeAccountKeyFromMap(key, correlationId) {
|
|
11912
11990
|
this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called");
|
|
11913
11991
|
this.logger.tracePii(`BrowserCacheManager.removeAccountKeyFromMap called with key: ${key}`);
|
|
11914
11992
|
const accountKeys = this.getAccountKeys();
|
|
11915
11993
|
const removalIndex = accountKeys.indexOf(key);
|
|
11916
11994
|
if (removalIndex > -1) {
|
|
11917
11995
|
accountKeys.splice(removalIndex, 1);
|
|
11918
|
-
|
|
11996
|
+
if (accountKeys.length === 0) {
|
|
11997
|
+
// If no keys left, remove the map
|
|
11998
|
+
this.removeItem(StaticCacheKeys.ACCOUNT_KEYS);
|
|
11999
|
+
return;
|
|
12000
|
+
}
|
|
12001
|
+
else {
|
|
12002
|
+
this.setItem(StaticCacheKeys.ACCOUNT_KEYS, JSON.stringify(accountKeys), correlationId);
|
|
12003
|
+
}
|
|
11919
12004
|
this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed");
|
|
11920
12005
|
}
|
|
11921
12006
|
else {
|
|
@@ -11926,16 +12011,16 @@ class BrowserCacheManager extends CacheManager {
|
|
|
11926
12011
|
* Extends inherited removeAccount function to include removal of the account key from the map
|
|
11927
12012
|
* @param key
|
|
11928
12013
|
*/
|
|
11929
|
-
|
|
11930
|
-
|
|
11931
|
-
this.removeAccountKeyFromMap(key);
|
|
12014
|
+
removeAccount(key, correlationId) {
|
|
12015
|
+
super.removeAccount(key, correlationId);
|
|
12016
|
+
this.removeAccountKeyFromMap(key, correlationId);
|
|
11932
12017
|
}
|
|
11933
12018
|
/**
|
|
11934
12019
|
* Removes credentials associated with the provided account
|
|
11935
12020
|
* @param account
|
|
11936
12021
|
*/
|
|
11937
|
-
|
|
11938
|
-
|
|
12022
|
+
removeAccountContext(account, correlationId) {
|
|
12023
|
+
super.removeAccountContext(account, correlationId);
|
|
11939
12024
|
/**
|
|
11940
12025
|
* @deprecated - Remove this in next major version in favor of more consistent LOGOUT event
|
|
11941
12026
|
*/
|
|
@@ -11947,25 +12032,60 @@ class BrowserCacheManager extends CacheManager {
|
|
|
11947
12032
|
* Removes given idToken from the cache and from the key map
|
|
11948
12033
|
* @param key
|
|
11949
12034
|
*/
|
|
11950
|
-
removeIdToken(key) {
|
|
11951
|
-
super.removeIdToken(key);
|
|
11952
|
-
this.
|
|
12035
|
+
removeIdToken(key, correlationId) {
|
|
12036
|
+
super.removeIdToken(key, correlationId);
|
|
12037
|
+
const tokenKeys = this.getTokenKeys();
|
|
12038
|
+
const idRemoval = tokenKeys.idToken.indexOf(key);
|
|
12039
|
+
if (idRemoval > -1) {
|
|
12040
|
+
this.logger.info("idToken removed from tokenKeys map");
|
|
12041
|
+
tokenKeys.idToken.splice(idRemoval, 1);
|
|
12042
|
+
this.setTokenKeys(tokenKeys, correlationId);
|
|
12043
|
+
}
|
|
11953
12044
|
}
|
|
11954
12045
|
/**
|
|
11955
12046
|
* Removes given accessToken from the cache and from the key map
|
|
11956
12047
|
* @param key
|
|
11957
12048
|
*/
|
|
11958
|
-
|
|
11959
|
-
|
|
11960
|
-
this.
|
|
12049
|
+
removeAccessToken(key, correlationId, updateTokenKeys = true) {
|
|
12050
|
+
super.removeAccessToken(key, correlationId);
|
|
12051
|
+
updateTokenKeys && this.removeAccessTokenKeys([key], correlationId);
|
|
12052
|
+
}
|
|
12053
|
+
/**
|
|
12054
|
+
* Remove access token key from the key map
|
|
12055
|
+
* @param key
|
|
12056
|
+
* @param correlationId
|
|
12057
|
+
* @param tokenKeys
|
|
12058
|
+
*/
|
|
12059
|
+
removeAccessTokenKeys(keys, correlationId) {
|
|
12060
|
+
this.logger.trace("removeAccessTokenKey called");
|
|
12061
|
+
const tokenKeys = this.getTokenKeys();
|
|
12062
|
+
let keysRemoved = 0;
|
|
12063
|
+
keys.forEach((key) => {
|
|
12064
|
+
const accessRemoval = tokenKeys.accessToken.indexOf(key);
|
|
12065
|
+
if (accessRemoval > -1) {
|
|
12066
|
+
tokenKeys.accessToken.splice(accessRemoval, 1);
|
|
12067
|
+
keysRemoved++;
|
|
12068
|
+
}
|
|
12069
|
+
});
|
|
12070
|
+
if (keysRemoved > 0) {
|
|
12071
|
+
this.logger.info(`removed ${keysRemoved} accessToken keys from tokenKeys map`);
|
|
12072
|
+
this.setTokenKeys(tokenKeys, correlationId);
|
|
12073
|
+
return;
|
|
12074
|
+
}
|
|
11961
12075
|
}
|
|
11962
12076
|
/**
|
|
11963
12077
|
* Removes given refreshToken from the cache and from the key map
|
|
11964
12078
|
* @param key
|
|
11965
12079
|
*/
|
|
11966
|
-
removeRefreshToken(key) {
|
|
11967
|
-
super.removeRefreshToken(key);
|
|
11968
|
-
this.
|
|
12080
|
+
removeRefreshToken(key, correlationId) {
|
|
12081
|
+
super.removeRefreshToken(key, correlationId);
|
|
12082
|
+
const tokenKeys = this.getTokenKeys();
|
|
12083
|
+
const refreshRemoval = tokenKeys.refreshToken.indexOf(key);
|
|
12084
|
+
if (refreshRemoval > -1) {
|
|
12085
|
+
this.logger.info("refreshToken removed from tokenKeys map");
|
|
12086
|
+
tokenKeys.refreshToken.splice(refreshRemoval, 1);
|
|
12087
|
+
this.setTokenKeys(tokenKeys, correlationId);
|
|
12088
|
+
}
|
|
11969
12089
|
}
|
|
11970
12090
|
/**
|
|
11971
12091
|
* Gets the keys for the cached tokens associated with this clientId
|
|
@@ -11975,101 +12095,37 @@ class BrowserCacheManager extends CacheManager {
|
|
|
11975
12095
|
return getTokenKeys(this.clientId, this.browserStorage);
|
|
11976
12096
|
}
|
|
11977
12097
|
/**
|
|
11978
|
-
*
|
|
11979
|
-
* @param
|
|
11980
|
-
* @param
|
|
12098
|
+
* Stores the token keys in the cache
|
|
12099
|
+
* @param tokenKeys
|
|
12100
|
+
* @param correlationId
|
|
12101
|
+
* @returns
|
|
11981
12102
|
*/
|
|
11982
|
-
|
|
11983
|
-
|
|
11984
|
-
|
|
11985
|
-
|
|
11986
|
-
|
|
11987
|
-
|
|
11988
|
-
|
|
11989
|
-
tokenKeys.idToken.push(key);
|
|
11990
|
-
}
|
|
11991
|
-
break;
|
|
11992
|
-
case CredentialType.ACCESS_TOKEN:
|
|
11993
|
-
if (tokenKeys.accessToken.indexOf(key) === -1) {
|
|
11994
|
-
this.logger.info("BrowserCacheManager: addTokenKey - accessToken added to map");
|
|
11995
|
-
tokenKeys.accessToken.push(key);
|
|
11996
|
-
}
|
|
11997
|
-
break;
|
|
11998
|
-
case CredentialType.REFRESH_TOKEN:
|
|
11999
|
-
if (tokenKeys.refreshToken.indexOf(key) === -1) {
|
|
12000
|
-
this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map");
|
|
12001
|
-
tokenKeys.refreshToken.push(key);
|
|
12002
|
-
}
|
|
12003
|
-
break;
|
|
12004
|
-
default:
|
|
12005
|
-
this.logger.error(`BrowserCacheManager:addTokenKey - CredentialType provided invalid. CredentialType: ${type}`);
|
|
12006
|
-
throw createClientAuthError(unexpectedCredentialType);
|
|
12103
|
+
setTokenKeys(tokenKeys, correlationId) {
|
|
12104
|
+
if (tokenKeys.idToken.length === 0 &&
|
|
12105
|
+
tokenKeys.accessToken.length === 0 &&
|
|
12106
|
+
tokenKeys.refreshToken.length === 0) {
|
|
12107
|
+
// If no keys left, remove the map
|
|
12108
|
+
this.removeItem(`${StaticCacheKeys.TOKEN_KEYS}.${this.clientId}`);
|
|
12109
|
+
return;
|
|
12007
12110
|
}
|
|
12008
|
-
|
|
12009
|
-
|
|
12010
|
-
/**
|
|
12011
|
-
* Removes the given key from the token key map
|
|
12012
|
-
* @param key
|
|
12013
|
-
* @param type
|
|
12014
|
-
*/
|
|
12015
|
-
removeTokenKey(key, type) {
|
|
12016
|
-
this.logger.trace("BrowserCacheManager removeTokenKey called");
|
|
12017
|
-
const tokenKeys = this.getTokenKeys();
|
|
12018
|
-
switch (type) {
|
|
12019
|
-
case CredentialType.ID_TOKEN:
|
|
12020
|
-
this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove idToken with key: ${key} from map`);
|
|
12021
|
-
const idRemoval = tokenKeys.idToken.indexOf(key);
|
|
12022
|
-
if (idRemoval > -1) {
|
|
12023
|
-
this.logger.info("BrowserCacheManager: removeTokenKey - idToken removed from map");
|
|
12024
|
-
tokenKeys.idToken.splice(idRemoval, 1);
|
|
12025
|
-
}
|
|
12026
|
-
else {
|
|
12027
|
-
this.logger.info("BrowserCacheManager: removeTokenKey - idToken does not exist in map. Either it was previously removed or it was never added.");
|
|
12028
|
-
}
|
|
12029
|
-
break;
|
|
12030
|
-
case CredentialType.ACCESS_TOKEN:
|
|
12031
|
-
this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: ${key} from map`);
|
|
12032
|
-
const accessRemoval = tokenKeys.accessToken.indexOf(key);
|
|
12033
|
-
if (accessRemoval > -1) {
|
|
12034
|
-
this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map");
|
|
12035
|
-
tokenKeys.accessToken.splice(accessRemoval, 1);
|
|
12036
|
-
}
|
|
12037
|
-
else {
|
|
12038
|
-
this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");
|
|
12039
|
-
}
|
|
12040
|
-
break;
|
|
12041
|
-
case CredentialType.REFRESH_TOKEN:
|
|
12042
|
-
this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove refreshToken with key: ${key} from map`);
|
|
12043
|
-
const refreshRemoval = tokenKeys.refreshToken.indexOf(key);
|
|
12044
|
-
if (refreshRemoval > -1) {
|
|
12045
|
-
this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map");
|
|
12046
|
-
tokenKeys.refreshToken.splice(refreshRemoval, 1);
|
|
12047
|
-
}
|
|
12048
|
-
else {
|
|
12049
|
-
this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken does not exist in map. Either it was previously removed or it was never added.");
|
|
12050
|
-
}
|
|
12051
|
-
break;
|
|
12052
|
-
default:
|
|
12053
|
-
this.logger.error(`BrowserCacheManager:removeTokenKey - CredentialType provided invalid. CredentialType: ${type}`);
|
|
12054
|
-
throw createClientAuthError(unexpectedCredentialType);
|
|
12111
|
+
else {
|
|
12112
|
+
this.setItem(`${StaticCacheKeys.TOKEN_KEYS}.${this.clientId}`, JSON.stringify(tokenKeys), correlationId);
|
|
12055
12113
|
}
|
|
12056
|
-
this.browserStorage.setItem(`${StaticCacheKeys.TOKEN_KEYS}.${this.clientId}`, JSON.stringify(tokenKeys));
|
|
12057
12114
|
}
|
|
12058
12115
|
/**
|
|
12059
12116
|
* generates idToken entity from a string
|
|
12060
12117
|
* @param idTokenKey
|
|
12061
12118
|
*/
|
|
12062
|
-
getIdTokenCredential(idTokenKey) {
|
|
12119
|
+
getIdTokenCredential(idTokenKey, correlationId) {
|
|
12063
12120
|
const value = this.browserStorage.getUserData(idTokenKey);
|
|
12064
12121
|
if (!value) {
|
|
12065
12122
|
this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit");
|
|
12066
|
-
this.
|
|
12123
|
+
this.removeIdToken(idTokenKey, correlationId);
|
|
12067
12124
|
return null;
|
|
12068
12125
|
}
|
|
12069
12126
|
const parsedIdToken = this.validateAndParseJson(value);
|
|
12070
12127
|
if (!parsedIdToken || !isIdTokenEntity(parsedIdToken)) {
|
|
12071
12128
|
this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit");
|
|
12072
|
-
this.removeTokenKey(idTokenKey, CredentialType.ID_TOKEN);
|
|
12073
12129
|
return null;
|
|
12074
12130
|
}
|
|
12075
12131
|
this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit");
|
|
@@ -12082,25 +12138,31 @@ class BrowserCacheManager extends CacheManager {
|
|
|
12082
12138
|
async setIdTokenCredential(idToken, correlationId) {
|
|
12083
12139
|
this.logger.trace("BrowserCacheManager.setIdTokenCredential called");
|
|
12084
12140
|
const idTokenKey = generateCredentialKey(idToken);
|
|
12085
|
-
|
|
12086
|
-
|
|
12141
|
+
const timestamp = Date.now().toString();
|
|
12142
|
+
idToken.lastUpdatedAt = timestamp;
|
|
12143
|
+
await this.setUserData(idTokenKey, JSON.stringify(idToken), correlationId, timestamp);
|
|
12144
|
+
const tokenKeys = this.getTokenKeys();
|
|
12145
|
+
if (tokenKeys.idToken.indexOf(idTokenKey) === -1) {
|
|
12146
|
+
this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map");
|
|
12147
|
+
tokenKeys.idToken.push(idTokenKey);
|
|
12148
|
+
this.setTokenKeys(tokenKeys, correlationId);
|
|
12149
|
+
}
|
|
12087
12150
|
}
|
|
12088
12151
|
/**
|
|
12089
12152
|
* generates accessToken entity from a string
|
|
12090
12153
|
* @param key
|
|
12091
12154
|
*/
|
|
12092
|
-
getAccessTokenCredential(accessTokenKey) {
|
|
12155
|
+
getAccessTokenCredential(accessTokenKey, correlationId) {
|
|
12093
12156
|
const value = this.browserStorage.getUserData(accessTokenKey);
|
|
12094
12157
|
if (!value) {
|
|
12095
12158
|
this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit");
|
|
12096
|
-
this.
|
|
12159
|
+
this.removeAccessTokenKeys([accessTokenKey], correlationId);
|
|
12097
12160
|
return null;
|
|
12098
12161
|
}
|
|
12099
12162
|
const parsedAccessToken = this.validateAndParseJson(value);
|
|
12100
12163
|
if (!parsedAccessToken ||
|
|
12101
12164
|
!isAccessTokenEntity(parsedAccessToken)) {
|
|
12102
12165
|
this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit");
|
|
12103
|
-
this.removeTokenKey(accessTokenKey, CredentialType.ACCESS_TOKEN);
|
|
12104
12166
|
return null;
|
|
12105
12167
|
}
|
|
12106
12168
|
this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit");
|
|
@@ -12113,25 +12175,33 @@ class BrowserCacheManager extends CacheManager {
|
|
|
12113
12175
|
async setAccessTokenCredential(accessToken, correlationId) {
|
|
12114
12176
|
this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");
|
|
12115
12177
|
const accessTokenKey = generateCredentialKey(accessToken);
|
|
12116
|
-
|
|
12117
|
-
|
|
12178
|
+
const timestamp = Date.now().toString();
|
|
12179
|
+
accessToken.lastUpdatedAt = timestamp;
|
|
12180
|
+
await this.setUserData(accessTokenKey, JSON.stringify(accessToken), correlationId, timestamp);
|
|
12181
|
+
const tokenKeys = this.getTokenKeys();
|
|
12182
|
+
const index = tokenKeys.accessToken.indexOf(accessTokenKey);
|
|
12183
|
+
if (index !== -1) {
|
|
12184
|
+
tokenKeys.accessToken.splice(index, 1); // Remove existing key before pushing to the end
|
|
12185
|
+
}
|
|
12186
|
+
this.logger.trace(`access token ${index === -1 ? "added to" : "updated in"} map`);
|
|
12187
|
+
tokenKeys.accessToken.push(accessTokenKey);
|
|
12188
|
+
this.setTokenKeys(tokenKeys, correlationId);
|
|
12118
12189
|
}
|
|
12119
12190
|
/**
|
|
12120
12191
|
* generates refreshToken entity from a string
|
|
12121
12192
|
* @param refreshTokenKey
|
|
12122
12193
|
*/
|
|
12123
|
-
getRefreshTokenCredential(refreshTokenKey) {
|
|
12194
|
+
getRefreshTokenCredential(refreshTokenKey, correlationId) {
|
|
12124
12195
|
const value = this.browserStorage.getUserData(refreshTokenKey);
|
|
12125
12196
|
if (!value) {
|
|
12126
12197
|
this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit");
|
|
12127
|
-
this.
|
|
12198
|
+
this.removeRefreshToken(refreshTokenKey, correlationId);
|
|
12128
12199
|
return null;
|
|
12129
12200
|
}
|
|
12130
12201
|
const parsedRefreshToken = this.validateAndParseJson(value);
|
|
12131
12202
|
if (!parsedRefreshToken ||
|
|
12132
12203
|
!isRefreshTokenEntity(parsedRefreshToken)) {
|
|
12133
12204
|
this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit");
|
|
12134
|
-
this.removeTokenKey(refreshTokenKey, CredentialType.REFRESH_TOKEN);
|
|
12135
12205
|
return null;
|
|
12136
12206
|
}
|
|
12137
12207
|
this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit");
|
|
@@ -12144,8 +12214,15 @@ class BrowserCacheManager extends CacheManager {
|
|
|
12144
12214
|
async setRefreshTokenCredential(refreshToken, correlationId) {
|
|
12145
12215
|
this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");
|
|
12146
12216
|
const refreshTokenKey = generateCredentialKey(refreshToken);
|
|
12147
|
-
|
|
12148
|
-
|
|
12217
|
+
const timestamp = Date.now().toString();
|
|
12218
|
+
refreshToken.lastUpdatedAt = timestamp;
|
|
12219
|
+
await this.setUserData(refreshTokenKey, JSON.stringify(refreshToken), correlationId, timestamp);
|
|
12220
|
+
const tokenKeys = this.getTokenKeys();
|
|
12221
|
+
if (tokenKeys.refreshToken.indexOf(refreshTokenKey) === -1) {
|
|
12222
|
+
this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map");
|
|
12223
|
+
tokenKeys.refreshToken.push(refreshTokenKey);
|
|
12224
|
+
this.setTokenKeys(tokenKeys, correlationId);
|
|
12225
|
+
}
|
|
12149
12226
|
}
|
|
12150
12227
|
/**
|
|
12151
12228
|
* fetch appMetadata entity from the platform cache
|
|
@@ -12170,10 +12247,10 @@ class BrowserCacheManager extends CacheManager {
|
|
|
12170
12247
|
* set appMetadata entity to the platform cache
|
|
12171
12248
|
* @param appMetadata
|
|
12172
12249
|
*/
|
|
12173
|
-
setAppMetadata(appMetadata) {
|
|
12250
|
+
setAppMetadata(appMetadata, correlationId) {
|
|
12174
12251
|
this.logger.trace("BrowserCacheManager.setAppMetadata called");
|
|
12175
12252
|
const appMetadataKey = generateAppMetadataKey(appMetadata);
|
|
12176
|
-
this.
|
|
12253
|
+
this.setItem(appMetadataKey, JSON.stringify(appMetadata), correlationId);
|
|
12177
12254
|
}
|
|
12178
12255
|
/**
|
|
12179
12256
|
* fetch server telemetry entity from the platform cache
|
|
@@ -12199,9 +12276,9 @@ class BrowserCacheManager extends CacheManager {
|
|
|
12199
12276
|
* @param serverTelemetryKey
|
|
12200
12277
|
* @param serverTelemetry
|
|
12201
12278
|
*/
|
|
12202
|
-
setServerTelemetry(serverTelemetryKey, serverTelemetry) {
|
|
12279
|
+
setServerTelemetry(serverTelemetryKey, serverTelemetry, correlationId) {
|
|
12203
12280
|
this.logger.trace("BrowserCacheManager.setServerTelemetry called");
|
|
12204
|
-
this.
|
|
12281
|
+
this.setItem(serverTelemetryKey, JSON.stringify(serverTelemetry), correlationId);
|
|
12205
12282
|
}
|
|
12206
12283
|
/**
|
|
12207
12284
|
*
|
|
@@ -12259,7 +12336,7 @@ class BrowserCacheManager extends CacheManager {
|
|
|
12259
12336
|
/**
|
|
12260
12337
|
* Gets the active account
|
|
12261
12338
|
*/
|
|
12262
|
-
getActiveAccount() {
|
|
12339
|
+
getActiveAccount(correlationId) {
|
|
12263
12340
|
const activeAccountKeyFilters = this.generateCacheKey(PersistentCacheKeys.ACTIVE_ACCOUNT_FILTERS);
|
|
12264
12341
|
const activeAccountValueFilters = this.browserStorage.getItem(activeAccountKeyFilters);
|
|
12265
12342
|
if (!activeAccountValueFilters) {
|
|
@@ -12273,7 +12350,7 @@ class BrowserCacheManager extends CacheManager {
|
|
|
12273
12350
|
homeAccountId: activeAccountValueObj.homeAccountId,
|
|
12274
12351
|
localAccountId: activeAccountValueObj.localAccountId,
|
|
12275
12352
|
tenantId: activeAccountValueObj.tenantId,
|
|
12276
|
-
});
|
|
12353
|
+
}, correlationId);
|
|
12277
12354
|
}
|
|
12278
12355
|
this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found");
|
|
12279
12356
|
return null;
|
|
@@ -12282,7 +12359,7 @@ class BrowserCacheManager extends CacheManager {
|
|
|
12282
12359
|
* Sets the active account's localAccountId in cache
|
|
12283
12360
|
* @param account
|
|
12284
12361
|
*/
|
|
12285
|
-
setActiveAccount(account) {
|
|
12362
|
+
setActiveAccount(account, correlationId) {
|
|
12286
12363
|
const activeAccountKey = this.generateCacheKey(PersistentCacheKeys.ACTIVE_ACCOUNT_FILTERS);
|
|
12287
12364
|
if (account) {
|
|
12288
12365
|
this.logger.verbose("setActiveAccount: Active account set");
|
|
@@ -12290,8 +12367,9 @@ class BrowserCacheManager extends CacheManager {
|
|
|
12290
12367
|
homeAccountId: account.homeAccountId,
|
|
12291
12368
|
localAccountId: account.localAccountId,
|
|
12292
12369
|
tenantId: account.tenantId,
|
|
12370
|
+
lastUpdatedAt: nowSeconds().toString(),
|
|
12293
12371
|
};
|
|
12294
|
-
this.
|
|
12372
|
+
this.setItem(activeAccountKey, JSON.stringify(activeAccountValue), correlationId);
|
|
12295
12373
|
}
|
|
12296
12374
|
else {
|
|
12297
12375
|
this.logger.verbose("setActiveAccount: No account passed, active account not set");
|
|
@@ -12323,9 +12401,9 @@ class BrowserCacheManager extends CacheManager {
|
|
|
12323
12401
|
* @param throttlingCacheKey
|
|
12324
12402
|
* @param throttlingCache
|
|
12325
12403
|
*/
|
|
12326
|
-
setThrottlingCache(throttlingCacheKey, throttlingCache) {
|
|
12404
|
+
setThrottlingCache(throttlingCacheKey, throttlingCache, correlationId) {
|
|
12327
12405
|
this.logger.trace("BrowserCacheManager.setThrottlingCache called");
|
|
12328
|
-
this.
|
|
12406
|
+
this.setItem(throttlingCacheKey, JSON.stringify(throttlingCache), correlationId);
|
|
12329
12407
|
}
|
|
12330
12408
|
/**
|
|
12331
12409
|
* Gets cache item with given key.
|
|
@@ -12401,10 +12479,10 @@ class BrowserCacheManager extends CacheManager {
|
|
|
12401
12479
|
/**
|
|
12402
12480
|
* Clears all cache entries created by MSAL.
|
|
12403
12481
|
*/
|
|
12404
|
-
|
|
12482
|
+
clear(correlationId) {
|
|
12405
12483
|
// Removes all accounts and their credentials
|
|
12406
|
-
|
|
12407
|
-
this.removeAppMetadata();
|
|
12484
|
+
this.removeAllAccounts(correlationId);
|
|
12485
|
+
this.removeAppMetadata(correlationId);
|
|
12408
12486
|
// Remove temp storage first to make sure any cookies are cleared
|
|
12409
12487
|
this.temporaryCacheStorage.getKeys().forEach((cacheKey) => {
|
|
12410
12488
|
if (cacheKey.indexOf(Constants.CACHE_PREFIX) !== -1 ||
|
|
@@ -12427,22 +12505,22 @@ class BrowserCacheManager extends CacheManager {
|
|
|
12427
12505
|
* @param correlationId {string} correlation id
|
|
12428
12506
|
* @returns
|
|
12429
12507
|
*/
|
|
12430
|
-
|
|
12431
|
-
performanceClient.addQueueMeasurement(PerformanceEvents.ClearTokensAndKeysWithClaims, correlationId);
|
|
12508
|
+
clearTokensAndKeysWithClaims(correlationId) {
|
|
12509
|
+
this.performanceClient.addQueueMeasurement(PerformanceEvents.ClearTokensAndKeysWithClaims, correlationId);
|
|
12432
12510
|
const tokenKeys = this.getTokenKeys();
|
|
12433
|
-
|
|
12511
|
+
let removedAccessTokens = 0;
|
|
12434
12512
|
tokenKeys.accessToken.forEach((key) => {
|
|
12435
12513
|
// if the access token has claims in its key, remove the token key and the token
|
|
12436
|
-
const credential = this.getAccessTokenCredential(key);
|
|
12514
|
+
const credential = this.getAccessTokenCredential(key, correlationId);
|
|
12437
12515
|
if (credential?.requestedClaimsHash &&
|
|
12438
12516
|
key.includes(credential.requestedClaimsHash.toLowerCase())) {
|
|
12439
|
-
|
|
12517
|
+
this.removeAccessToken(key, correlationId);
|
|
12518
|
+
removedAccessTokens++;
|
|
12440
12519
|
}
|
|
12441
12520
|
});
|
|
12442
|
-
await Promise.all(removedAccessTokens);
|
|
12443
12521
|
// warn if any access tokens are removed
|
|
12444
|
-
if (removedAccessTokens
|
|
12445
|
-
this.logger.warning(`${removedAccessTokens
|
|
12522
|
+
if (removedAccessTokens > 0) {
|
|
12523
|
+
this.logger.warning(`${removedAccessTokens} access tokens with claims in the cache keys have been removed from the cache.`);
|
|
12446
12524
|
}
|
|
12447
12525
|
}
|
|
12448
12526
|
/**
|
|
@@ -12669,22 +12747,24 @@ const DEFAULT_BROWSER_CACHE_MANAGER = (clientId, logger, performanceClient, even
|
|
|
12669
12747
|
* @param accountFilter - (Optional) filter to narrow down the accounts returned
|
|
12670
12748
|
* @returns Array of AccountInfo objects in cache
|
|
12671
12749
|
*/
|
|
12672
|
-
function getAllAccounts(logger, browserStorage, isInBrowser, accountFilter) {
|
|
12750
|
+
function getAllAccounts(logger, browserStorage, isInBrowser, correlationId, accountFilter) {
|
|
12673
12751
|
logger.verbose("getAllAccounts called");
|
|
12674
|
-
return isInBrowser
|
|
12752
|
+
return isInBrowser
|
|
12753
|
+
? browserStorage.getAllAccounts(accountFilter || {}, correlationId)
|
|
12754
|
+
: [];
|
|
12675
12755
|
}
|
|
12676
12756
|
/**
|
|
12677
12757
|
* Returns the first account found in the cache that matches the account filter passed in.
|
|
12678
12758
|
* @param accountFilter
|
|
12679
12759
|
* @returns The first account found in the cache matching the provided filter or null if no account could be found.
|
|
12680
12760
|
*/
|
|
12681
|
-
function getAccount(accountFilter, logger, browserStorage) {
|
|
12761
|
+
function getAccount(accountFilter, logger, browserStorage, correlationId) {
|
|
12682
12762
|
logger.trace("getAccount called");
|
|
12683
12763
|
if (Object.keys(accountFilter).length === 0) {
|
|
12684
12764
|
logger.warning("getAccount: No accountFilter provided");
|
|
12685
12765
|
return null;
|
|
12686
12766
|
}
|
|
12687
|
-
const account = browserStorage.getAccountInfoFilteredBy(accountFilter);
|
|
12767
|
+
const account = browserStorage.getAccountInfoFilteredBy(accountFilter, correlationId);
|
|
12688
12768
|
if (account) {
|
|
12689
12769
|
logger.verbose("getAccount: Account matching provided filter found, returning");
|
|
12690
12770
|
return account;
|
|
@@ -12702,7 +12782,7 @@ function getAccount(accountFilter, logger, browserStorage) {
|
|
|
12702
12782
|
* @param username
|
|
12703
12783
|
* @returns The account object stored in MSAL
|
|
12704
12784
|
*/
|
|
12705
|
-
function getAccountByUsername(username, logger, browserStorage) {
|
|
12785
|
+
function getAccountByUsername(username, logger, browserStorage, correlationId) {
|
|
12706
12786
|
logger.trace("getAccountByUsername called");
|
|
12707
12787
|
if (!username) {
|
|
12708
12788
|
logger.warning("getAccountByUsername: No username provided");
|
|
@@ -12710,7 +12790,7 @@ function getAccountByUsername(username, logger, browserStorage) {
|
|
|
12710
12790
|
}
|
|
12711
12791
|
const account = browserStorage.getAccountInfoFilteredBy({
|
|
12712
12792
|
username,
|
|
12713
|
-
});
|
|
12793
|
+
}, correlationId);
|
|
12714
12794
|
if (account) {
|
|
12715
12795
|
logger.verbose("getAccountByUsername: Account matching username found, returning");
|
|
12716
12796
|
logger.verbosePii(`getAccountByUsername: Returning signed-in accounts matching username: ${username}`);
|
|
@@ -12728,7 +12808,7 @@ function getAccountByUsername(username, logger, browserStorage) {
|
|
|
12728
12808
|
* @param homeAccountId
|
|
12729
12809
|
* @returns The account object stored in MSAL
|
|
12730
12810
|
*/
|
|
12731
|
-
function getAccountByHomeId(homeAccountId, logger, browserStorage) {
|
|
12811
|
+
function getAccountByHomeId(homeAccountId, logger, browserStorage, correlationId) {
|
|
12732
12812
|
logger.trace("getAccountByHomeId called");
|
|
12733
12813
|
if (!homeAccountId) {
|
|
12734
12814
|
logger.warning("getAccountByHomeId: No homeAccountId provided");
|
|
@@ -12736,7 +12816,7 @@ function getAccountByHomeId(homeAccountId, logger, browserStorage) {
|
|
|
12736
12816
|
}
|
|
12737
12817
|
const account = browserStorage.getAccountInfoFilteredBy({
|
|
12738
12818
|
homeAccountId,
|
|
12739
|
-
});
|
|
12819
|
+
}, correlationId);
|
|
12740
12820
|
if (account) {
|
|
12741
12821
|
logger.verbose("getAccountByHomeId: Account matching homeAccountId found, returning");
|
|
12742
12822
|
logger.verbosePii(`getAccountByHomeId: Returning signed-in accounts matching homeAccountId: ${homeAccountId}`);
|
|
@@ -12754,7 +12834,7 @@ function getAccountByHomeId(homeAccountId, logger, browserStorage) {
|
|
|
12754
12834
|
* @param localAccountId
|
|
12755
12835
|
* @returns The account object stored in MSAL
|
|
12756
12836
|
*/
|
|
12757
|
-
function getAccountByLocalId(localAccountId, logger, browserStorage) {
|
|
12837
|
+
function getAccountByLocalId(localAccountId, logger, browserStorage, correlationId) {
|
|
12758
12838
|
logger.trace("getAccountByLocalId called");
|
|
12759
12839
|
if (!localAccountId) {
|
|
12760
12840
|
logger.warning("getAccountByLocalId: No localAccountId provided");
|
|
@@ -12762,7 +12842,7 @@ function getAccountByLocalId(localAccountId, logger, browserStorage) {
|
|
|
12762
12842
|
}
|
|
12763
12843
|
const account = browserStorage.getAccountInfoFilteredBy({
|
|
12764
12844
|
localAccountId,
|
|
12765
|
-
});
|
|
12845
|
+
}, correlationId);
|
|
12766
12846
|
if (account) {
|
|
12767
12847
|
logger.verbose("getAccountByLocalId: Account matching localAccountId found, returning");
|
|
12768
12848
|
logger.verbosePii(`getAccountByLocalId: Returning signed-in accounts matching localAccountId: ${localAccountId}`);
|
|
@@ -12777,14 +12857,14 @@ function getAccountByLocalId(localAccountId, logger, browserStorage) {
|
|
|
12777
12857
|
* Sets the account to use as the active account. If no account is passed to the acquireToken APIs, then MSAL will use this active account.
|
|
12778
12858
|
* @param account
|
|
12779
12859
|
*/
|
|
12780
|
-
function setActiveAccount(account, browserStorage) {
|
|
12781
|
-
browserStorage.setActiveAccount(account);
|
|
12860
|
+
function setActiveAccount(account, browserStorage, correlationId) {
|
|
12861
|
+
browserStorage.setActiveAccount(account, correlationId);
|
|
12782
12862
|
}
|
|
12783
12863
|
/**
|
|
12784
12864
|
* Gets the currently active account
|
|
12785
12865
|
*/
|
|
12786
|
-
function getActiveAccount(browserStorage) {
|
|
12787
|
-
return browserStorage.getActiveAccount();
|
|
12866
|
+
function getActiveAccount(browserStorage, correlationId) {
|
|
12867
|
+
return browserStorage.getActiveAccount(correlationId);
|
|
12788
12868
|
}
|
|
12789
12869
|
|
|
12790
12870
|
/*
|
|
@@ -12908,15 +12988,15 @@ class BaseInteractionClient {
|
|
|
12908
12988
|
this.logger = logger.clone(BrowserConstants.MSAL_SKU, version, this.correlationId);
|
|
12909
12989
|
this.performanceClient = performanceClient;
|
|
12910
12990
|
}
|
|
12911
|
-
async clearCacheOnLogout(account) {
|
|
12991
|
+
async clearCacheOnLogout(correlationId, account) {
|
|
12912
12992
|
if (account) {
|
|
12913
|
-
if (AccountEntity.accountInfoIsEqual(account, this.browserStorage.getActiveAccount(), false)) {
|
|
12993
|
+
if (AccountEntity.accountInfoIsEqual(account, this.browserStorage.getActiveAccount(correlationId), false)) {
|
|
12914
12994
|
this.logger.verbose("Setting active account to null");
|
|
12915
|
-
this.browserStorage.setActiveAccount(null);
|
|
12995
|
+
this.browserStorage.setActiveAccount(null, correlationId);
|
|
12916
12996
|
}
|
|
12917
12997
|
// Clear given account.
|
|
12918
12998
|
try {
|
|
12919
|
-
|
|
12999
|
+
this.browserStorage.removeAccount(AccountEntity.generateAccountCacheKey(account), correlationId);
|
|
12920
13000
|
this.logger.verbose("Cleared cache items belonging to the account provided in the logout request.");
|
|
12921
13001
|
}
|
|
12922
13002
|
catch (error) {
|
|
@@ -12927,7 +13007,7 @@ class BaseInteractionClient {
|
|
|
12927
13007
|
try {
|
|
12928
13008
|
this.logger.verbose("No account provided in logout request, clearing all cache items.", this.correlationId);
|
|
12929
13009
|
// Clear all accounts and tokens
|
|
12930
|
-
|
|
13010
|
+
this.browserStorage.clear(correlationId);
|
|
12931
13011
|
// Clear any stray keys from IndexedDB
|
|
12932
13012
|
await this.browserCrypto.clearKeystore();
|
|
12933
13013
|
}
|
|
@@ -13249,7 +13329,8 @@ class StandardInteractionClient extends BaseInteractionClient {
|
|
|
13249
13329
|
if (request.loginHint || request.sid) {
|
|
13250
13330
|
return validatedRequest;
|
|
13251
13331
|
}
|
|
13252
|
-
const account = request.account ||
|
|
13332
|
+
const account = request.account ||
|
|
13333
|
+
this.browserStorage.getActiveAccount(this.correlationId);
|
|
13253
13334
|
if (account) {
|
|
13254
13335
|
this.logger.verbose("Setting validated request account", this.correlationId);
|
|
13255
13336
|
this.logger.verbosePii(`Setting validated request account: ${account.homeAccountId}`, this.correlationId);
|
|
@@ -13429,7 +13510,8 @@ const USER_CANCEL = "USER_CANCEL";
|
|
|
13429
13510
|
const NO_NETWORK = "NO_NETWORK";
|
|
13430
13511
|
const PERSISTENT_ERROR = "PERSISTENT_ERROR";
|
|
13431
13512
|
const DISABLED = "DISABLED";
|
|
13432
|
-
const ACCOUNT_UNAVAILABLE = "ACCOUNT_UNAVAILABLE";
|
|
13513
|
+
const ACCOUNT_UNAVAILABLE = "ACCOUNT_UNAVAILABLE";
|
|
13514
|
+
const UX_NOT_ALLOWED = "UX_NOT_ALLOWED";
|
|
13433
13515
|
|
|
13434
13516
|
/*
|
|
13435
13517
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -13487,6 +13569,8 @@ function createNativeAuthError(code, description, ext) {
|
|
|
13487
13569
|
return createBrowserAuthError(userCancelled);
|
|
13488
13570
|
case NO_NETWORK:
|
|
13489
13571
|
return createBrowserAuthError(noNetworkConnectivity);
|
|
13572
|
+
case UX_NOT_ALLOWED:
|
|
13573
|
+
return createInteractionRequiredAuthError(uxNotAllowed);
|
|
13490
13574
|
}
|
|
13491
13575
|
}
|
|
13492
13576
|
return new NativeAuthError(code, NativeAuthErrorMessages[code] || description, ext);
|
|
@@ -13536,7 +13620,7 @@ class SilentCacheClient extends StandardInteractionClient {
|
|
|
13536
13620
|
logout(logoutRequest) {
|
|
13537
13621
|
this.logger.verbose("logoutRedirect called");
|
|
13538
13622
|
const validLogoutRequest = this.initializeLogoutRequest(logoutRequest);
|
|
13539
|
-
return this.clearCacheOnLogout(validLogoutRequest?.account);
|
|
13623
|
+
return this.clearCacheOnLogout(validLogoutRequest.correlationId, validLogoutRequest?.account);
|
|
13540
13624
|
}
|
|
13541
13625
|
}
|
|
13542
13626
|
|
|
@@ -13660,7 +13744,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
13660
13744
|
// fetch the account from browser cache
|
|
13661
13745
|
const account = this.browserStorage.getBaseAccountInfo({
|
|
13662
13746
|
nativeAccountId,
|
|
13663
|
-
});
|
|
13747
|
+
}, this.correlationId);
|
|
13664
13748
|
if (!account) {
|
|
13665
13749
|
throw createClientAuthError(noAccountFound);
|
|
13666
13750
|
}
|
|
@@ -13776,7 +13860,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
13776
13860
|
const homeAccountIdentifier = this.createHomeAccountIdentifier(response, idTokenClaims);
|
|
13777
13861
|
const cachedhomeAccountId = this.browserStorage.getAccountInfoFilteredBy({
|
|
13778
13862
|
nativeAccountId: request.accountId,
|
|
13779
|
-
})?.homeAccountId;
|
|
13863
|
+
}, this.correlationId)?.homeAccountId;
|
|
13780
13864
|
// add exception for double brokering, please note this is temporary and will be fortified in future
|
|
13781
13865
|
if (request.extraParameters?.child_client_id &&
|
|
13782
13866
|
response.account.id !== request.accountId) {
|
|
@@ -13791,7 +13875,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
13791
13875
|
const authority = await this.getDiscoveredAuthority({
|
|
13792
13876
|
requestAuthority: request.authority,
|
|
13793
13877
|
});
|
|
13794
|
-
const baseAccount = buildAccountToCache(this.browserStorage, authority, homeAccountIdentifier, base64Decode, idTokenClaims, response.client_info, undefined, // environment
|
|
13878
|
+
const baseAccount = buildAccountToCache(this.browserStorage, authority, homeAccountIdentifier, base64Decode, this.correlationId, idTokenClaims, response.client_info, undefined, // environment
|
|
13795
13879
|
idTokenClaims.tid, undefined, // auth code payload
|
|
13796
13880
|
response.account.id, this.logger);
|
|
13797
13881
|
// Ensure expires_in is in number format
|
|
@@ -13799,7 +13883,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
13799
13883
|
// generate authenticationResult
|
|
13800
13884
|
const result = await this.generateAuthenticationResult(response, request, idTokenClaims, baseAccount, authority.canonicalAuthority, reqTimestamp);
|
|
13801
13885
|
// cache accounts and tokens in the appropriate storage
|
|
13802
|
-
await this.cacheAccount(baseAccount);
|
|
13886
|
+
await this.cacheAccount(baseAccount, this.correlationId);
|
|
13803
13887
|
await this.cacheNativeTokens(response, request, homeAccountIdentifier, idTokenClaims, response.access_token, result.tenantId, reqTimestamp);
|
|
13804
13888
|
return result;
|
|
13805
13889
|
}
|
|
@@ -13923,13 +14007,11 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
13923
14007
|
* cache the account entity in browser storage
|
|
13924
14008
|
* @param accountEntity
|
|
13925
14009
|
*/
|
|
13926
|
-
async cacheAccount(accountEntity) {
|
|
14010
|
+
async cacheAccount(accountEntity, correlationId) {
|
|
13927
14011
|
// Store the account info and hence `nativeAccountId` in browser cache
|
|
13928
14012
|
await this.browserStorage.setAccount(accountEntity, this.correlationId);
|
|
13929
14013
|
// Remove any existing cached tokens for this account in browser storage
|
|
13930
|
-
this.browserStorage.removeAccountContext(accountEntity)
|
|
13931
|
-
this.logger.error(`Error occurred while removing account context from browser storage. ${e}`);
|
|
13932
|
-
});
|
|
14014
|
+
this.browserStorage.removeAccountContext(accountEntity, correlationId);
|
|
13933
14015
|
}
|
|
13934
14016
|
/**
|
|
13935
14017
|
* Stores the access_token and id_token in inmemory storage
|
|
@@ -14885,14 +14967,14 @@ function isDomEnabledForPlatformAuth() {
|
|
|
14885
14967
|
* @param authenticationScheme
|
|
14886
14968
|
*/
|
|
14887
14969
|
function isPlatformAuthAllowed(config, logger, platformAuthProvider, authenticationScheme) {
|
|
14888
|
-
logger.trace("
|
|
14970
|
+
logger.trace("isPlatformAuthAllowed called");
|
|
14889
14971
|
if (!config.system.allowPlatformBroker) {
|
|
14890
|
-
logger.trace("
|
|
14972
|
+
logger.trace("isPlatformAuthAllowed: allowPlatformBroker is not enabled, returning false");
|
|
14891
14973
|
// Developer disabled WAM
|
|
14892
14974
|
return false;
|
|
14893
14975
|
}
|
|
14894
14976
|
if (!platformAuthProvider) {
|
|
14895
|
-
logger.trace("
|
|
14977
|
+
logger.trace("isPlatformAuthAllowed: Platform auth provider is not initialized, returning false");
|
|
14896
14978
|
// Platform broker auth providers are not available
|
|
14897
14979
|
return false;
|
|
14898
14980
|
}
|
|
@@ -14900,10 +14982,10 @@ function isPlatformAuthAllowed(config, logger, platformAuthProvider, authenticat
|
|
|
14900
14982
|
switch (authenticationScheme) {
|
|
14901
14983
|
case AuthenticationScheme.BEARER:
|
|
14902
14984
|
case AuthenticationScheme.POP:
|
|
14903
|
-
logger.trace("
|
|
14985
|
+
logger.trace("isPlatformAuthAllowed: authenticationScheme is supported, returning true");
|
|
14904
14986
|
return true;
|
|
14905
14987
|
default:
|
|
14906
|
-
logger.trace("
|
|
14988
|
+
logger.trace("isPlatformAuthAllowed: authenticationScheme is not supported, returning false");
|
|
14907
14989
|
return false;
|
|
14908
14990
|
}
|
|
14909
14991
|
}
|
|
@@ -15099,7 +15181,7 @@ class PopupClient extends StandardInteractionClient {
|
|
|
15099
15181
|
const serverTelemetryManager = this.initializeServerTelemetryManager(ApiId.logoutPopup);
|
|
15100
15182
|
try {
|
|
15101
15183
|
// Clear cache on logout
|
|
15102
|
-
await this.clearCacheOnLogout(validRequest.account);
|
|
15184
|
+
await this.clearCacheOnLogout(this.correlationId, validRequest.account);
|
|
15103
15185
|
// Initialize the client
|
|
15104
15186
|
const authClient = await invokeAsync(this.createAuthCodeClient.bind(this), PerformanceEvents.StandardInteractionClientCreateAuthCodeClient, this.logger, this.performanceClient, this.correlationId)({
|
|
15105
15187
|
serverTelemetryManager,
|
|
@@ -15113,7 +15195,7 @@ class PopupClient extends StandardInteractionClient {
|
|
|
15113
15195
|
if (validRequest.account?.homeAccountId &&
|
|
15114
15196
|
validRequest.postLogoutRedirectUri &&
|
|
15115
15197
|
authClient.authority.protocolMode === ProtocolMode.OIDC) {
|
|
15116
|
-
|
|
15198
|
+
this.browserStorage.removeAccount(validRequest.account?.homeAccountId, this.correlationId);
|
|
15117
15199
|
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, exports.InteractionType.Popup, validRequest);
|
|
15118
15200
|
if (mainWindowRedirectUri) {
|
|
15119
15201
|
const navigationOptions = {
|
|
@@ -15477,6 +15559,11 @@ class RedirectClient extends StandardInteractionClient {
|
|
|
15477
15559
|
this.browserStorage.cacheAuthorizeRequest(redirectRequest);
|
|
15478
15560
|
const form = await getEARForm(document, this.config, discoveredAuthority, redirectRequest, this.logger, this.performanceClient);
|
|
15479
15561
|
form.submit();
|
|
15562
|
+
return new Promise((resolve, reject) => {
|
|
15563
|
+
setTimeout(() => {
|
|
15564
|
+
reject(createBrowserAuthError(timedOut, "failed_to_redirect"));
|
|
15565
|
+
}, this.config.system.redirectNavigationTimeout);
|
|
15566
|
+
});
|
|
15480
15567
|
}
|
|
15481
15568
|
/**
|
|
15482
15569
|
* Checks if navigateToLoginRequestUrl is set, and:
|
|
@@ -15691,7 +15778,7 @@ class RedirectClient extends StandardInteractionClient {
|
|
|
15691
15778
|
try {
|
|
15692
15779
|
this.eventHandler.emitEvent(EventType.LOGOUT_START, exports.InteractionType.Redirect, logoutRequest);
|
|
15693
15780
|
// Clear cache on logout
|
|
15694
|
-
await this.clearCacheOnLogout(validLogoutRequest.account);
|
|
15781
|
+
await this.clearCacheOnLogout(this.correlationId, validLogoutRequest.account);
|
|
15695
15782
|
const navigationOptions = {
|
|
15696
15783
|
apiId: ApiId.logout,
|
|
15697
15784
|
timeout: this.config.system.redirectNavigationTimeout,
|
|
@@ -15709,7 +15796,7 @@ class RedirectClient extends StandardInteractionClient {
|
|
|
15709
15796
|
}
|
|
15710
15797
|
catch {
|
|
15711
15798
|
if (validLogoutRequest.account?.homeAccountId) {
|
|
15712
|
-
|
|
15799
|
+
this.browserStorage.removeAccount(validLogoutRequest.account?.homeAccountId, this.correlationId);
|
|
15713
15800
|
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, exports.InteractionType.Redirect, validLogoutRequest);
|
|
15714
15801
|
return;
|
|
15715
15802
|
}
|
|
@@ -16186,7 +16273,7 @@ class TokenCache {
|
|
|
16186
16273
|
}
|
|
16187
16274
|
const homeAccountId = AccountEntity.generateHomeAccountId(clientInfo, authority.authorityType, this.logger, this.cryptoObj, idTokenClaims);
|
|
16188
16275
|
const claimsTenantId = idTokenClaims?.tid;
|
|
16189
|
-
const cachedAccount = buildAccountToCache(this.storage, authority, homeAccountId, base64Decode, idTokenClaims, clientInfo, authority.hostnameAndPort, claimsTenantId, undefined, // authCodePayload
|
|
16276
|
+
const cachedAccount = buildAccountToCache(this.storage, authority, homeAccountId, base64Decode, correlationId, idTokenClaims, clientInfo, authority.hostnameAndPort, claimsTenantId, undefined, // authCodePayload
|
|
16190
16277
|
undefined, // nativeAccountId
|
|
16191
16278
|
this.logger);
|
|
16192
16279
|
await this.storage.setAccount(cachedAccount, correlationId);
|
|
@@ -16549,7 +16636,7 @@ class StandardController {
|
|
|
16549
16636
|
}
|
|
16550
16637
|
if (!this.config.cache.claimsBasedCachingEnabled) {
|
|
16551
16638
|
this.logger.verbose("Claims-based caching is disabled. Clearing the previous cache with claims");
|
|
16552
|
-
|
|
16639
|
+
invoke(this.browserStorage.clearTokensAndKeysWithClaims.bind(this.browserStorage), PerformanceEvents.ClearTokensAndKeysWithClaims, this.logger, this.performanceClient, initCorrelationId)(initCorrelationId);
|
|
16553
16640
|
}
|
|
16554
16641
|
this.config.system.asyncPopups &&
|
|
16555
16642
|
(await this.preGeneratePkceCodes(initCorrelationId));
|
|
@@ -17224,7 +17311,8 @@ class StandardController {
|
|
|
17224
17311
|
* @returns Array of AccountInfo objects in cache
|
|
17225
17312
|
*/
|
|
17226
17313
|
getAllAccounts(accountFilter) {
|
|
17227
|
-
|
|
17314
|
+
const correlationId = this.getRequestCorrelationId();
|
|
17315
|
+
return getAllAccounts(this.logger, this.browserStorage, this.isBrowserEnvironment, correlationId, accountFilter);
|
|
17228
17316
|
}
|
|
17229
17317
|
/**
|
|
17230
17318
|
* Returns the first account found in the cache that matches the account filter passed in.
|
|
@@ -17232,7 +17320,8 @@ class StandardController {
|
|
|
17232
17320
|
* @returns The first account found in the cache matching the provided filter or null if no account could be found.
|
|
17233
17321
|
*/
|
|
17234
17322
|
getAccount(accountFilter) {
|
|
17235
|
-
|
|
17323
|
+
const correlationId = this.getRequestCorrelationId();
|
|
17324
|
+
return getAccount(accountFilter, this.logger, this.browserStorage, correlationId);
|
|
17236
17325
|
}
|
|
17237
17326
|
/**
|
|
17238
17327
|
* Returns the signed in account matching username.
|
|
@@ -17243,7 +17332,8 @@ class StandardController {
|
|
|
17243
17332
|
* @returns The account object stored in MSAL
|
|
17244
17333
|
*/
|
|
17245
17334
|
getAccountByUsername(username) {
|
|
17246
|
-
|
|
17335
|
+
const correlationId = this.getRequestCorrelationId();
|
|
17336
|
+
return getAccountByUsername(username, this.logger, this.browserStorage, correlationId);
|
|
17247
17337
|
}
|
|
17248
17338
|
/**
|
|
17249
17339
|
* Returns the signed in account matching homeAccountId.
|
|
@@ -17253,7 +17343,8 @@ class StandardController {
|
|
|
17253
17343
|
* @returns The account object stored in MSAL
|
|
17254
17344
|
*/
|
|
17255
17345
|
getAccountByHomeId(homeAccountId) {
|
|
17256
|
-
|
|
17346
|
+
const correlationId = this.getRequestCorrelationId();
|
|
17347
|
+
return getAccountByHomeId(homeAccountId, this.logger, this.browserStorage, correlationId);
|
|
17257
17348
|
}
|
|
17258
17349
|
/**
|
|
17259
17350
|
* Returns the signed in account matching localAccountId.
|
|
@@ -17263,20 +17354,23 @@ class StandardController {
|
|
|
17263
17354
|
* @returns The account object stored in MSAL
|
|
17264
17355
|
*/
|
|
17265
17356
|
getAccountByLocalId(localAccountId) {
|
|
17266
|
-
|
|
17357
|
+
const correlationId = this.getRequestCorrelationId();
|
|
17358
|
+
return getAccountByLocalId(localAccountId, this.logger, this.browserStorage, correlationId);
|
|
17267
17359
|
}
|
|
17268
17360
|
/**
|
|
17269
17361
|
* Sets the account to use as the active account. If no account is passed to the acquireToken APIs, then MSAL will use this active account.
|
|
17270
17362
|
* @param account
|
|
17271
17363
|
*/
|
|
17272
17364
|
setActiveAccount(account) {
|
|
17273
|
-
|
|
17365
|
+
const correlationId = this.getRequestCorrelationId();
|
|
17366
|
+
setActiveAccount(account, this.browserStorage, correlationId);
|
|
17274
17367
|
}
|
|
17275
17368
|
/**
|
|
17276
17369
|
* Gets the currently active account
|
|
17277
17370
|
*/
|
|
17278
17371
|
getActiveAccount() {
|
|
17279
|
-
|
|
17372
|
+
const correlationId = this.getRequestCorrelationId();
|
|
17373
|
+
return getActiveAccount(this.browserStorage, correlationId);
|
|
17280
17374
|
}
|
|
17281
17375
|
// #endregion
|
|
17282
17376
|
/**
|
|
@@ -17616,9 +17710,7 @@ class StandardController {
|
|
|
17616
17710
|
async acquireTokenSilentDeduped(request, account, correlationId) {
|
|
17617
17711
|
const thumbprint = getRequestThumbprint(this.config.auth.clientId, {
|
|
17618
17712
|
...request,
|
|
17619
|
-
authority: request.authority || this.config.auth.authority,
|
|
17620
|
-
correlationId: correlationId,
|
|
17621
|
-
}, account.homeAccountId);
|
|
17713
|
+
authority: request.authority || this.config.auth.authority}, account.homeAccountId);
|
|
17622
17714
|
const silentRequestKey = JSON.stringify(thumbprint);
|
|
17623
17715
|
const inProgressRequest = this.activeSilentTokenRequests.get(silentRequestKey);
|
|
17624
17716
|
if (typeof inProgressRequest === "undefined") {
|
|
@@ -18280,8 +18372,9 @@ class NestedAppAuthController {
|
|
|
18280
18372
|
// always prioritize the account context from the bridge
|
|
18281
18373
|
const accountContext = this.bridgeProxy.getAccountContext() || this.currentAccountContext;
|
|
18282
18374
|
let currentAccount = null;
|
|
18375
|
+
const correlationId = request.correlationId || this.browserCrypto.createNewGuid();
|
|
18283
18376
|
if (accountContext) {
|
|
18284
|
-
currentAccount = getAccount(accountContext, this.logger, this.browserStorage);
|
|
18377
|
+
currentAccount = getAccount(accountContext, this.logger, this.browserStorage, correlationId);
|
|
18285
18378
|
}
|
|
18286
18379
|
// fall back to brokering if no cached account is found
|
|
18287
18380
|
if (!currentAccount) {
|
|
@@ -18299,7 +18392,7 @@ class NestedAppAuthController {
|
|
|
18299
18392
|
};
|
|
18300
18393
|
// fetch access token and check for expiry
|
|
18301
18394
|
const tokenKeys = this.browserStorage.getTokenKeys();
|
|
18302
|
-
const cachedAccessToken = this.browserStorage.getAccessToken(currentAccount, authRequest, tokenKeys, currentAccount.tenantId
|
|
18395
|
+
const cachedAccessToken = this.browserStorage.getAccessToken(currentAccount, authRequest, tokenKeys, currentAccount.tenantId);
|
|
18303
18396
|
// If there is no access token, log it and return null
|
|
18304
18397
|
if (!cachedAccessToken) {
|
|
18305
18398
|
this.logger.verbose("No cached access token found");
|
|
@@ -18310,7 +18403,7 @@ class NestedAppAuthController {
|
|
|
18310
18403
|
this.logger.verbose("Cached access token has expired");
|
|
18311
18404
|
return Promise.resolve(null);
|
|
18312
18405
|
}
|
|
18313
|
-
const cachedIdToken = this.browserStorage.getIdToken(currentAccount, tokenKeys, currentAccount.tenantId, this.performanceClient
|
|
18406
|
+
const cachedIdToken = this.browserStorage.getIdToken(currentAccount, authRequest.correlationId, tokenKeys, currentAccount.tenantId, this.performanceClient);
|
|
18314
18407
|
if (!cachedIdToken) {
|
|
18315
18408
|
this.logger.verbose("No cached id token found");
|
|
18316
18409
|
return Promise.resolve(null);
|
|
@@ -18407,7 +18500,8 @@ class NestedAppAuthController {
|
|
|
18407
18500
|
* @returns Array of AccountInfo objects in cache
|
|
18408
18501
|
*/
|
|
18409
18502
|
getAllAccounts(accountFilter) {
|
|
18410
|
-
|
|
18503
|
+
const correlationId = this.browserCrypto.createNewGuid();
|
|
18504
|
+
return getAllAccounts(this.logger, this.browserStorage, this.isBrowserEnv(), correlationId, accountFilter);
|
|
18411
18505
|
}
|
|
18412
18506
|
/**
|
|
18413
18507
|
* Returns the first account found in the cache that matches the account filter passed in.
|
|
@@ -18415,7 +18509,8 @@ class NestedAppAuthController {
|
|
|
18415
18509
|
* @returns The first account found in the cache matching the provided filter or null if no account could be found.
|
|
18416
18510
|
*/
|
|
18417
18511
|
getAccount(accountFilter) {
|
|
18418
|
-
|
|
18512
|
+
const correlationId = this.browserCrypto.createNewGuid();
|
|
18513
|
+
return getAccount(accountFilter, this.logger, this.browserStorage, correlationId);
|
|
18419
18514
|
}
|
|
18420
18515
|
/**
|
|
18421
18516
|
* Returns the signed in account matching username.
|
|
@@ -18426,7 +18521,8 @@ class NestedAppAuthController {
|
|
|
18426
18521
|
* @returns The account object stored in MSAL
|
|
18427
18522
|
*/
|
|
18428
18523
|
getAccountByUsername(username) {
|
|
18429
|
-
|
|
18524
|
+
const correlationId = this.browserCrypto.createNewGuid();
|
|
18525
|
+
return getAccountByUsername(username, this.logger, this.browserStorage, correlationId);
|
|
18430
18526
|
}
|
|
18431
18527
|
/**
|
|
18432
18528
|
* Returns the signed in account matching homeAccountId.
|
|
@@ -18436,7 +18532,8 @@ class NestedAppAuthController {
|
|
|
18436
18532
|
* @returns The account object stored in MSAL
|
|
18437
18533
|
*/
|
|
18438
18534
|
getAccountByHomeId(homeAccountId) {
|
|
18439
|
-
|
|
18535
|
+
const correlationId = this.browserCrypto.createNewGuid();
|
|
18536
|
+
return getAccountByHomeId(homeAccountId, this.logger, this.browserStorage, correlationId);
|
|
18440
18537
|
}
|
|
18441
18538
|
/**
|
|
18442
18539
|
* Returns the signed in account matching localAccountId.
|
|
@@ -18446,7 +18543,8 @@ class NestedAppAuthController {
|
|
|
18446
18543
|
* @returns The account object stored in MSAL
|
|
18447
18544
|
*/
|
|
18448
18545
|
getAccountByLocalId(localAccountId) {
|
|
18449
|
-
|
|
18546
|
+
const correlationId = this.browserCrypto.createNewGuid();
|
|
18547
|
+
return getAccountByLocalId(localAccountId, this.logger, this.browserStorage, correlationId);
|
|
18450
18548
|
}
|
|
18451
18549
|
/**
|
|
18452
18550
|
* Sets the account to use as the active account. If no account is passed to the acquireToken APIs, then MSAL will use this active account.
|
|
@@ -18457,13 +18555,15 @@ class NestedAppAuthController {
|
|
|
18457
18555
|
* StandardController uses this to allow the developer to set the active account
|
|
18458
18556
|
* in the nested app auth scenario the active account is controlled by the app hosting the nested app
|
|
18459
18557
|
*/
|
|
18460
|
-
|
|
18558
|
+
const correlationId = this.browserCrypto.createNewGuid();
|
|
18559
|
+
return setActiveAccount(account, this.browserStorage, correlationId);
|
|
18461
18560
|
}
|
|
18462
18561
|
/**
|
|
18463
18562
|
* Gets the currently active account
|
|
18464
18563
|
*/
|
|
18465
18564
|
getActiveAccount() {
|
|
18466
|
-
|
|
18565
|
+
const correlationId = this.browserCrypto.createNewGuid();
|
|
18566
|
+
return getActiveAccount(this.browserStorage, correlationId);
|
|
18467
18567
|
}
|
|
18468
18568
|
// #endregion
|
|
18469
18569
|
handleRedirectPromise(hash // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
@@ -19812,7 +19912,20 @@ class SignedHttpRequest {
|
|
|
19812
19912
|
* @returns If keys are properly deleted
|
|
19813
19913
|
*/
|
|
19814
19914
|
async removeKeys(publicKeyThumbprint) {
|
|
19815
|
-
return this.cryptoOps
|
|
19915
|
+
return this.cryptoOps
|
|
19916
|
+
.removeTokenBindingKey(publicKeyThumbprint)
|
|
19917
|
+
.then(() => true)
|
|
19918
|
+
.catch((error) => {
|
|
19919
|
+
/*
|
|
19920
|
+
* @deprecated - To maintain public API signature, we return false if the error is due to the key still being present in indexedDB.
|
|
19921
|
+
*/
|
|
19922
|
+
if (error instanceof ClientAuthError &&
|
|
19923
|
+
error.errorCode ===
|
|
19924
|
+
bindingKeyNotRemoved) {
|
|
19925
|
+
return false;
|
|
19926
|
+
}
|
|
19927
|
+
throw error;
|
|
19928
|
+
});
|
|
19816
19929
|
}
|
|
19817
19930
|
}
|
|
19818
19931
|
|