@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.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v4.
|
|
1
|
+
/*! @azure/msal-browser v4.14.0 2025-07-01 */
|
|
2
2
|
'use strict';
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.msal = {}));
|
|
7
7
|
})(this, (function (exports) { 'use strict';
|
|
8
8
|
|
|
9
|
-
/*! @azure/msal-common v15.
|
|
9
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
10
10
|
/*
|
|
11
11
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
12
12
|
* Licensed under the MIT License.
|
|
@@ -151,7 +151,6 @@
|
|
|
151
151
|
*/
|
|
152
152
|
const OAuthResponseType = {
|
|
153
153
|
CODE: "code",
|
|
154
|
-
IDTOKEN_TOKEN: "id_token token",
|
|
155
154
|
IDTOKEN_TOKEN_REFRESHTOKEN: "id_token token refresh_token",
|
|
156
155
|
};
|
|
157
156
|
/**
|
|
@@ -166,29 +165,19 @@
|
|
|
166
165
|
* allowed values for response_mode
|
|
167
166
|
*/
|
|
168
167
|
const ResponseMode = {
|
|
169
|
-
QUERY: "query"
|
|
170
|
-
FRAGMENT: "fragment",
|
|
171
|
-
FORM_POST: "form_post",
|
|
172
|
-
};
|
|
168
|
+
QUERY: "query"};
|
|
173
169
|
/**
|
|
174
170
|
* allowed grant_type
|
|
175
171
|
*/
|
|
176
172
|
const GrantType = {
|
|
177
|
-
IMPLICIT_GRANT: "implicit",
|
|
178
173
|
AUTHORIZATION_CODE_GRANT: "authorization_code",
|
|
179
|
-
|
|
180
|
-
RESOURCE_OWNER_PASSWORD_GRANT: "password",
|
|
181
|
-
REFRESH_TOKEN_GRANT: "refresh_token",
|
|
182
|
-
DEVICE_CODE_GRANT: "device_code",
|
|
183
|
-
JWT_BEARER: "urn:ietf:params:oauth:grant-type:jwt-bearer",
|
|
184
|
-
};
|
|
174
|
+
REFRESH_TOKEN_GRANT: "refresh_token"};
|
|
185
175
|
/**
|
|
186
176
|
* Account types in Cache
|
|
187
177
|
*/
|
|
188
178
|
const CacheAccountType = {
|
|
189
179
|
MSSTS_ACCOUNT_TYPE: "MSSTS",
|
|
190
180
|
ADFS_ACCOUNT_TYPE: "ADFS",
|
|
191
|
-
MSAV1_ACCOUNT_TYPE: "MSA",
|
|
192
181
|
GENERIC_ACCOUNT_TYPE: "Generic", // NTLM, Kerberos, FBA, Basic etc
|
|
193
182
|
};
|
|
194
183
|
/**
|
|
@@ -225,7 +214,6 @@
|
|
|
225
214
|
};
|
|
226
215
|
const SERVER_TELEM_CONSTANTS = {
|
|
227
216
|
SCHEMA_VERSION: 5,
|
|
228
|
-
MAX_CUR_HEADER_BYTES: 80,
|
|
229
217
|
MAX_LAST_HEADER_BYTES: 330,
|
|
230
218
|
MAX_CACHED_ERRORS: 50,
|
|
231
219
|
CACHE_KEY: "server-telemetry",
|
|
@@ -273,9 +261,7 @@
|
|
|
273
261
|
* Region Discovery Outcomes
|
|
274
262
|
*/
|
|
275
263
|
const RegionDiscoveryOutcomes = {
|
|
276
|
-
CONFIGURED_MATCHES_DETECTED: "1",
|
|
277
264
|
CONFIGURED_NO_AUTO_DETECTION: "2",
|
|
278
|
-
CONFIGURED_NOT_DETECTED: "3",
|
|
279
265
|
AUTO_DETECTION_REQUESTED_SUCCESSFUL: "4",
|
|
280
266
|
AUTO_DETECTION_REQUESTED_FAILED: "5",
|
|
281
267
|
};
|
|
@@ -302,7 +288,7 @@
|
|
|
302
288
|
// Token renewal offset default in seconds
|
|
303
289
|
const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
|
|
304
290
|
|
|
305
|
-
/*! @azure/msal-common v15.
|
|
291
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
306
292
|
/*
|
|
307
293
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
308
294
|
* Licensed under the MIT License.
|
|
@@ -319,7 +305,7 @@
|
|
|
319
305
|
unexpectedError: unexpectedError
|
|
320
306
|
});
|
|
321
307
|
|
|
322
|
-
/*! @azure/msal-common v15.
|
|
308
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
323
309
|
|
|
324
310
|
/*
|
|
325
311
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -368,7 +354,7 @@
|
|
|
368
354
|
: AuthErrorMessages[code]);
|
|
369
355
|
}
|
|
370
356
|
|
|
371
|
-
/*! @azure/msal-common v15.
|
|
357
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
372
358
|
/*
|
|
373
359
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
374
360
|
* Licensed under the MIT License.
|
|
@@ -466,7 +452,7 @@
|
|
|
466
452
|
userTimeoutReached: userTimeoutReached
|
|
467
453
|
});
|
|
468
454
|
|
|
469
|
-
/*! @azure/msal-common v15.
|
|
455
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
470
456
|
|
|
471
457
|
/*
|
|
472
458
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -718,7 +704,7 @@
|
|
|
718
704
|
return new ClientAuthError(errorCode, additionalMessage);
|
|
719
705
|
}
|
|
720
706
|
|
|
721
|
-
/*! @azure/msal-common v15.
|
|
707
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
722
708
|
|
|
723
709
|
/*
|
|
724
710
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -757,7 +743,7 @@
|
|
|
757
743
|
},
|
|
758
744
|
};
|
|
759
745
|
|
|
760
|
-
/*! @azure/msal-common v15.
|
|
746
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
761
747
|
|
|
762
748
|
/*
|
|
763
749
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -948,12 +934,12 @@
|
|
|
948
934
|
}
|
|
949
935
|
}
|
|
950
936
|
|
|
951
|
-
/*! @azure/msal-common v15.
|
|
937
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
952
938
|
/* eslint-disable header/header */
|
|
953
939
|
const name$1 = "@azure/msal-common";
|
|
954
|
-
const version$1 = "15.
|
|
940
|
+
const version$1 = "15.8.0";
|
|
955
941
|
|
|
956
|
-
/*! @azure/msal-common v15.
|
|
942
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
957
943
|
/*
|
|
958
944
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
959
945
|
* Licensed under the MIT License.
|
|
@@ -973,7 +959,7 @@
|
|
|
973
959
|
AzureUsGovernment: "https://login.microsoftonline.us",
|
|
974
960
|
};
|
|
975
961
|
|
|
976
|
-
/*! @azure/msal-common v15.
|
|
962
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
977
963
|
|
|
978
964
|
/*
|
|
979
965
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1034,7 +1020,7 @@
|
|
|
1034
1020
|
}
|
|
1035
1021
|
}
|
|
1036
1022
|
|
|
1037
|
-
/*! @azure/msal-common v15.
|
|
1023
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
1038
1024
|
/*
|
|
1039
1025
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1040
1026
|
* Licensed under the MIT License.
|
|
@@ -1089,7 +1075,7 @@
|
|
|
1089
1075
|
return cachedAtSec > nowSeconds();
|
|
1090
1076
|
}
|
|
1091
1077
|
|
|
1092
|
-
/*! @azure/msal-common v15.
|
|
1078
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
1093
1079
|
|
|
1094
1080
|
/*
|
|
1095
1081
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1416,7 +1402,7 @@
|
|
|
1416
1402
|
return metadata.expiresAt <= nowSeconds();
|
|
1417
1403
|
}
|
|
1418
1404
|
|
|
1419
|
-
/*! @azure/msal-common v15.
|
|
1405
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
1420
1406
|
/*
|
|
1421
1407
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1422
1408
|
* Licensed under the MIT License.
|
|
@@ -1470,7 +1456,7 @@
|
|
|
1470
1456
|
urlParseError: urlParseError
|
|
1471
1457
|
});
|
|
1472
1458
|
|
|
1473
|
-
/*! @azure/msal-common v15.
|
|
1459
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
1474
1460
|
|
|
1475
1461
|
/*
|
|
1476
1462
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1608,7 +1594,7 @@
|
|
|
1608
1594
|
return new ClientConfigurationError(errorCode);
|
|
1609
1595
|
}
|
|
1610
1596
|
|
|
1611
|
-
/*! @azure/msal-common v15.
|
|
1597
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
1612
1598
|
/*
|
|
1613
1599
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1614
1600
|
* Licensed under the MIT License.
|
|
@@ -1705,7 +1691,7 @@
|
|
|
1705
1691
|
}
|
|
1706
1692
|
}
|
|
1707
1693
|
|
|
1708
|
-
/*! @azure/msal-common v15.
|
|
1694
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
1709
1695
|
|
|
1710
1696
|
/*
|
|
1711
1697
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1896,7 +1882,7 @@
|
|
|
1896
1882
|
}
|
|
1897
1883
|
}
|
|
1898
1884
|
|
|
1899
|
-
/*! @azure/msal-common v15.
|
|
1885
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
1900
1886
|
|
|
1901
1887
|
/*
|
|
1902
1888
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1936,7 +1922,7 @@
|
|
|
1936
1922
|
};
|
|
1937
1923
|
}
|
|
1938
1924
|
|
|
1939
|
-
/*! @azure/msal-common v15.
|
|
1925
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
1940
1926
|
/*
|
|
1941
1927
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1942
1928
|
* Licensed under the MIT License.
|
|
@@ -2015,7 +2001,7 @@
|
|
|
2015
2001
|
return updatedAccountInfo;
|
|
2016
2002
|
}
|
|
2017
2003
|
|
|
2018
|
-
/*! @azure/msal-common v15.
|
|
2004
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
2019
2005
|
/*
|
|
2020
2006
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2021
2007
|
* Licensed under the MIT License.
|
|
@@ -2030,7 +2016,7 @@
|
|
|
2030
2016
|
Ciam: 3,
|
|
2031
2017
|
};
|
|
2032
2018
|
|
|
2033
|
-
/*! @azure/msal-common v15.
|
|
2019
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
2034
2020
|
/*
|
|
2035
2021
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2036
2022
|
* Licensed under the MIT License.
|
|
@@ -2052,7 +2038,7 @@
|
|
|
2052
2038
|
return null;
|
|
2053
2039
|
}
|
|
2054
2040
|
|
|
2055
|
-
/*! @azure/msal-common v15.
|
|
2041
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
2056
2042
|
/*
|
|
2057
2043
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2058
2044
|
* Licensed under the MIT License.
|
|
@@ -2076,7 +2062,7 @@
|
|
|
2076
2062
|
EAR: "EAR",
|
|
2077
2063
|
};
|
|
2078
2064
|
|
|
2079
|
-
/*! @azure/msal-common v15.
|
|
2065
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
2080
2066
|
|
|
2081
2067
|
/*
|
|
2082
2068
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2319,7 +2305,7 @@
|
|
|
2319
2305
|
}
|
|
2320
2306
|
}
|
|
2321
2307
|
|
|
2322
|
-
/*! @azure/msal-common v15.
|
|
2308
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
2323
2309
|
|
|
2324
2310
|
/*
|
|
2325
2311
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2384,7 +2370,7 @@
|
|
|
2384
2370
|
return queryParameterArray.join("&");
|
|
2385
2371
|
}
|
|
2386
2372
|
|
|
2387
|
-
/*! @azure/msal-common v15.
|
|
2373
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
2388
2374
|
|
|
2389
2375
|
/*
|
|
2390
2376
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2548,7 +2534,7 @@
|
|
|
2548
2534
|
}
|
|
2549
2535
|
}
|
|
2550
2536
|
|
|
2551
|
-
/*! @azure/msal-common v15.
|
|
2537
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
2552
2538
|
|
|
2553
2539
|
/*
|
|
2554
2540
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2579,7 +2565,6 @@
|
|
|
2579
2565
|
},
|
|
2580
2566
|
},
|
|
2581
2567
|
instanceDiscoveryMetadata: {
|
|
2582
|
-
tenant_discovery_endpoint: "https://{canonicalAuthority}/v2.0/.well-known/openid-configuration",
|
|
2583
2568
|
metadata: [
|
|
2584
2569
|
{
|
|
2585
2570
|
preferred_network: "login.microsoftonline.com",
|
|
@@ -2688,42 +2673,60 @@
|
|
|
2688
2673
|
return null;
|
|
2689
2674
|
}
|
|
2690
2675
|
|
|
2691
|
-
/*! @azure/msal-common v15.
|
|
2676
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
2692
2677
|
/*
|
|
2693
2678
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2694
2679
|
* Licensed under the MIT License.
|
|
2695
2680
|
*/
|
|
2696
|
-
const
|
|
2697
|
-
const
|
|
2681
|
+
const cacheQuotaExceeded = "cache_quota_exceeded";
|
|
2682
|
+
const cacheErrorUnknown = "cache_error_unknown";
|
|
2698
2683
|
|
|
2699
|
-
/*! @azure/msal-common v15.
|
|
2684
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
2700
2685
|
|
|
2701
2686
|
/*
|
|
2702
2687
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2703
2688
|
* Licensed under the MIT License.
|
|
2704
2689
|
*/
|
|
2705
2690
|
const CacheErrorMessages = {
|
|
2706
|
-
[
|
|
2707
|
-
[
|
|
2691
|
+
[cacheQuotaExceeded]: "Exceeded cache storage capacity.",
|
|
2692
|
+
[cacheErrorUnknown]: "Unexpected error occurred when using cache storage.",
|
|
2708
2693
|
};
|
|
2709
2694
|
/**
|
|
2710
2695
|
* Error thrown when there is an error with the cache
|
|
2711
2696
|
*/
|
|
2712
|
-
class CacheError extends
|
|
2697
|
+
class CacheError extends AuthError {
|
|
2713
2698
|
constructor(errorCode, errorMessage) {
|
|
2714
2699
|
const message = errorMessage ||
|
|
2715
2700
|
(CacheErrorMessages[errorCode]
|
|
2716
2701
|
? CacheErrorMessages[errorCode]
|
|
2717
|
-
: CacheErrorMessages[
|
|
2702
|
+
: CacheErrorMessages[cacheErrorUnknown]);
|
|
2718
2703
|
super(`${errorCode}: ${message}`);
|
|
2719
2704
|
Object.setPrototypeOf(this, CacheError.prototype);
|
|
2720
2705
|
this.name = "CacheError";
|
|
2721
2706
|
this.errorCode = errorCode;
|
|
2722
2707
|
this.errorMessage = message;
|
|
2723
2708
|
}
|
|
2709
|
+
}
|
|
2710
|
+
/**
|
|
2711
|
+
* Helper function to wrap browser errors in a CacheError object
|
|
2712
|
+
* @param e
|
|
2713
|
+
* @returns
|
|
2714
|
+
*/
|
|
2715
|
+
function createCacheError(e) {
|
|
2716
|
+
if (!(e instanceof Error)) {
|
|
2717
|
+
return new CacheError(cacheErrorUnknown);
|
|
2718
|
+
}
|
|
2719
|
+
if (e.name === "QuotaExceededError" ||
|
|
2720
|
+
e.name === "NS_ERROR_DOM_QUOTA_REACHED" ||
|
|
2721
|
+
e.message.includes("exceeded the quota")) {
|
|
2722
|
+
return new CacheError(cacheQuotaExceeded);
|
|
2723
|
+
}
|
|
2724
|
+
else {
|
|
2725
|
+
return new CacheError(e.name, e.message);
|
|
2726
|
+
}
|
|
2724
2727
|
}
|
|
2725
2728
|
|
|
2726
|
-
/*! @azure/msal-common v15.
|
|
2729
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
2727
2730
|
|
|
2728
2731
|
/*
|
|
2729
2732
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2734,25 +2737,26 @@
|
|
|
2734
2737
|
* @internal
|
|
2735
2738
|
*/
|
|
2736
2739
|
class CacheManager {
|
|
2737
|
-
constructor(clientId, cryptoImpl, logger, staticAuthorityOptions) {
|
|
2740
|
+
constructor(clientId, cryptoImpl, logger, performanceClient, staticAuthorityOptions) {
|
|
2738
2741
|
this.clientId = clientId;
|
|
2739
2742
|
this.cryptoImpl = cryptoImpl;
|
|
2740
2743
|
this.commonLogger = logger.clone(name$1, version$1);
|
|
2741
2744
|
this.staticAuthorityOptions = staticAuthorityOptions;
|
|
2745
|
+
this.performanceClient = performanceClient;
|
|
2742
2746
|
}
|
|
2743
2747
|
/**
|
|
2744
2748
|
* Returns all the accounts in the cache that match the optional filter. If no filter is provided, all accounts are returned.
|
|
2745
2749
|
* @param accountFilter - (Optional) filter to narrow down the accounts returned
|
|
2746
2750
|
* @returns Array of AccountInfo objects in cache
|
|
2747
2751
|
*/
|
|
2748
|
-
getAllAccounts(accountFilter) {
|
|
2749
|
-
return this.buildTenantProfiles(this.getAccountsFilteredBy(accountFilter
|
|
2752
|
+
getAllAccounts(accountFilter, correlationId) {
|
|
2753
|
+
return this.buildTenantProfiles(this.getAccountsFilteredBy(accountFilter, correlationId), correlationId, accountFilter);
|
|
2750
2754
|
}
|
|
2751
2755
|
/**
|
|
2752
2756
|
* Gets first tenanted AccountInfo object found based on provided filters
|
|
2753
2757
|
*/
|
|
2754
|
-
getAccountInfoFilteredBy(accountFilter) {
|
|
2755
|
-
const allAccounts = this.getAllAccounts(accountFilter);
|
|
2758
|
+
getAccountInfoFilteredBy(accountFilter, correlationId) {
|
|
2759
|
+
const allAccounts = this.getAllAccounts(accountFilter, correlationId);
|
|
2756
2760
|
if (allAccounts.length > 1) {
|
|
2757
2761
|
// If one or more accounts are found, prioritize accounts that have an ID token
|
|
2758
2762
|
const sortedAccounts = allAccounts.sort((account) => {
|
|
@@ -2773,8 +2777,8 @@
|
|
|
2773
2777
|
* @param accountFilter
|
|
2774
2778
|
* @returns
|
|
2775
2779
|
*/
|
|
2776
|
-
getBaseAccountInfo(accountFilter) {
|
|
2777
|
-
const accountEntities = this.getAccountsFilteredBy(accountFilter);
|
|
2780
|
+
getBaseAccountInfo(accountFilter, correlationId) {
|
|
2781
|
+
const accountEntities = this.getAccountsFilteredBy(accountFilter, correlationId);
|
|
2778
2782
|
if (accountEntities.length > 0) {
|
|
2779
2783
|
return accountEntities[0].getAccountInfo();
|
|
2780
2784
|
}
|
|
@@ -2789,12 +2793,12 @@
|
|
|
2789
2793
|
* @param accountFilter
|
|
2790
2794
|
* @returns Array of AccountInfo objects that match account and tenant profile filters
|
|
2791
2795
|
*/
|
|
2792
|
-
buildTenantProfiles(cachedAccounts, accountFilter) {
|
|
2796
|
+
buildTenantProfiles(cachedAccounts, correlationId, accountFilter) {
|
|
2793
2797
|
return cachedAccounts.flatMap((accountEntity) => {
|
|
2794
|
-
return this.getTenantProfilesFromAccountEntity(accountEntity, accountFilter?.tenantId, accountFilter);
|
|
2798
|
+
return this.getTenantProfilesFromAccountEntity(accountEntity, correlationId, accountFilter?.tenantId, accountFilter);
|
|
2795
2799
|
});
|
|
2796
2800
|
}
|
|
2797
|
-
getTenantedAccountInfoByFilter(accountInfo, tokenKeys, tenantProfile, tenantProfileFilter) {
|
|
2801
|
+
getTenantedAccountInfoByFilter(accountInfo, tokenKeys, tenantProfile, correlationId, tenantProfileFilter) {
|
|
2798
2802
|
let tenantedAccountInfo = null;
|
|
2799
2803
|
let idTokenClaims;
|
|
2800
2804
|
if (tenantProfileFilter) {
|
|
@@ -2802,7 +2806,7 @@
|
|
|
2802
2806
|
return null;
|
|
2803
2807
|
}
|
|
2804
2808
|
}
|
|
2805
|
-
const idToken = this.getIdToken(accountInfo, tokenKeys, tenantProfile.tenantId);
|
|
2809
|
+
const idToken = this.getIdToken(accountInfo, correlationId, tokenKeys, tenantProfile.tenantId);
|
|
2806
2810
|
if (idToken) {
|
|
2807
2811
|
idTokenClaims = extractTokenClaims(idToken.secret, this.cryptoImpl.base64Decode);
|
|
2808
2812
|
if (!this.idTokenClaimsMatchTenantProfileFilter(idTokenClaims, tenantProfileFilter)) {
|
|
@@ -2814,7 +2818,7 @@
|
|
|
2814
2818
|
tenantedAccountInfo = updateAccountTenantProfileData(accountInfo, tenantProfile, idTokenClaims, idToken?.secret);
|
|
2815
2819
|
return tenantedAccountInfo;
|
|
2816
2820
|
}
|
|
2817
|
-
getTenantProfilesFromAccountEntity(accountEntity, targetTenantId, tenantProfileFilter) {
|
|
2821
|
+
getTenantProfilesFromAccountEntity(accountEntity, correlationId, targetTenantId, tenantProfileFilter) {
|
|
2818
2822
|
const accountInfo = accountEntity.getAccountInfo();
|
|
2819
2823
|
let searchTenantProfiles = accountInfo.tenantProfiles || new Map();
|
|
2820
2824
|
const tokenKeys = this.getTokenKeys();
|
|
@@ -2834,7 +2838,7 @@
|
|
|
2834
2838
|
}
|
|
2835
2839
|
const matchingTenantProfiles = [];
|
|
2836
2840
|
searchTenantProfiles.forEach((tenantProfile) => {
|
|
2837
|
-
const tenantedAccountInfo = this.getTenantedAccountInfoByFilter(accountInfo, tokenKeys, tenantProfile, tenantProfileFilter);
|
|
2841
|
+
const tenantedAccountInfo = this.getTenantedAccountInfoByFilter(accountInfo, tokenKeys, tenantProfile, correlationId, tenantProfileFilter);
|
|
2838
2842
|
if (tenantedAccountInfo) {
|
|
2839
2843
|
matchingTenantProfiles.push(tenantedAccountInfo);
|
|
2840
2844
|
}
|
|
@@ -2908,26 +2912,16 @@
|
|
|
2908
2912
|
await this.setRefreshTokenCredential(cacheRecord.refreshToken, correlationId);
|
|
2909
2913
|
}
|
|
2910
2914
|
if (!!cacheRecord.appMetadata) {
|
|
2911
|
-
this.setAppMetadata(cacheRecord.appMetadata);
|
|
2915
|
+
this.setAppMetadata(cacheRecord.appMetadata, correlationId);
|
|
2912
2916
|
}
|
|
2913
2917
|
}
|
|
2914
2918
|
catch (e) {
|
|
2915
2919
|
this.commonLogger?.error(`CacheManager.saveCacheRecord: failed`);
|
|
2916
|
-
if (e instanceof
|
|
2917
|
-
|
|
2918
|
-
if (e.name === "QuotaExceededError" ||
|
|
2919
|
-
e.name === "NS_ERROR_DOM_QUOTA_REACHED" ||
|
|
2920
|
-
e.message.includes("exceeded the quota")) {
|
|
2921
|
-
this.commonLogger?.error(`CacheManager.saveCacheRecord: exceeded storage quota`, correlationId);
|
|
2922
|
-
throw new CacheError(cacheQuotaExceededErrorCode);
|
|
2923
|
-
}
|
|
2924
|
-
else {
|
|
2925
|
-
throw new CacheError(e.name, e.message);
|
|
2926
|
-
}
|
|
2920
|
+
if (e instanceof AuthError) {
|
|
2921
|
+
throw e;
|
|
2927
2922
|
}
|
|
2928
2923
|
else {
|
|
2929
|
-
|
|
2930
|
-
throw new CacheError(cacheUnknownErrorCode);
|
|
2924
|
+
throw createCacheError(e);
|
|
2931
2925
|
}
|
|
2932
2926
|
}
|
|
2933
2927
|
}
|
|
@@ -2947,21 +2941,19 @@
|
|
|
2947
2941
|
};
|
|
2948
2942
|
const tokenKeys = this.getTokenKeys();
|
|
2949
2943
|
const currentScopes = ScopeSet.fromString(credential.target);
|
|
2950
|
-
const removedAccessTokens = [];
|
|
2951
2944
|
tokenKeys.accessToken.forEach((key) => {
|
|
2952
2945
|
if (!this.accessTokenKeyMatchesFilter(key, accessTokenFilter, false)) {
|
|
2953
2946
|
return;
|
|
2954
2947
|
}
|
|
2955
|
-
const tokenEntity = this.getAccessTokenCredential(key);
|
|
2948
|
+
const tokenEntity = this.getAccessTokenCredential(key, correlationId);
|
|
2956
2949
|
if (tokenEntity &&
|
|
2957
2950
|
this.credentialMatchesFilter(tokenEntity, accessTokenFilter)) {
|
|
2958
2951
|
const tokenScopeSet = ScopeSet.fromString(tokenEntity.target);
|
|
2959
2952
|
if (tokenScopeSet.intersectingScopeSets(currentScopes)) {
|
|
2960
|
-
|
|
2953
|
+
this.removeAccessToken(key, correlationId);
|
|
2961
2954
|
}
|
|
2962
2955
|
}
|
|
2963
2956
|
});
|
|
2964
|
-
await Promise.all(removedAccessTokens);
|
|
2965
2957
|
await this.setAccessTokenCredential(credential, correlationId);
|
|
2966
2958
|
}
|
|
2967
2959
|
/**
|
|
@@ -2969,7 +2961,7 @@
|
|
|
2969
2961
|
* Not checking for casing as keys are all generated in lower case, remember to convert to lower case if object properties are compared
|
|
2970
2962
|
* @param accountFilter - An object containing Account properties to filter by
|
|
2971
2963
|
*/
|
|
2972
|
-
getAccountsFilteredBy(accountFilter) {
|
|
2964
|
+
getAccountsFilteredBy(accountFilter, correlationId) {
|
|
2973
2965
|
const allAccountKeys = this.getAccountKeys();
|
|
2974
2966
|
const matchingAccounts = [];
|
|
2975
2967
|
allAccountKeys.forEach((cacheKey) => {
|
|
@@ -2977,7 +2969,7 @@
|
|
|
2977
2969
|
// Don't parse value if the key doesn't match the account filters
|
|
2978
2970
|
return;
|
|
2979
2971
|
}
|
|
2980
|
-
const entity = this.getAccount(cacheKey,
|
|
2972
|
+
const entity = this.getAccount(cacheKey, correlationId);
|
|
2981
2973
|
// Match base account fields
|
|
2982
2974
|
if (!entity) {
|
|
2983
2975
|
return;
|
|
@@ -3203,86 +3195,80 @@
|
|
|
3203
3195
|
/**
|
|
3204
3196
|
* Removes all accounts and related tokens from cache.
|
|
3205
3197
|
*/
|
|
3206
|
-
|
|
3198
|
+
removeAllAccounts(correlationId) {
|
|
3207
3199
|
const allAccountKeys = this.getAccountKeys();
|
|
3208
|
-
const removedAccounts = [];
|
|
3209
3200
|
allAccountKeys.forEach((cacheKey) => {
|
|
3210
|
-
|
|
3201
|
+
this.removeAccount(cacheKey, correlationId);
|
|
3211
3202
|
});
|
|
3212
|
-
await Promise.all(removedAccounts);
|
|
3213
3203
|
}
|
|
3214
3204
|
/**
|
|
3215
3205
|
* Removes the account and related tokens for a given account key
|
|
3216
3206
|
* @param account
|
|
3217
3207
|
*/
|
|
3218
|
-
|
|
3219
|
-
const account = this.getAccount(accountKey,
|
|
3208
|
+
removeAccount(accountKey, correlationId) {
|
|
3209
|
+
const account = this.getAccount(accountKey, correlationId);
|
|
3220
3210
|
if (!account) {
|
|
3221
3211
|
return;
|
|
3222
3212
|
}
|
|
3223
|
-
|
|
3224
|
-
this.removeItem(accountKey);
|
|
3213
|
+
this.removeAccountContext(account, correlationId);
|
|
3214
|
+
this.removeItem(accountKey, correlationId);
|
|
3225
3215
|
}
|
|
3226
3216
|
/**
|
|
3227
3217
|
* Removes credentials associated with the provided account
|
|
3228
3218
|
* @param account
|
|
3229
3219
|
*/
|
|
3230
|
-
|
|
3220
|
+
removeAccountContext(account, correlationId) {
|
|
3231
3221
|
const allTokenKeys = this.getTokenKeys();
|
|
3232
3222
|
const accountId = account.generateAccountId();
|
|
3233
|
-
const removedCredentials = [];
|
|
3234
3223
|
allTokenKeys.idToken.forEach((key) => {
|
|
3235
3224
|
if (key.indexOf(accountId) === 0) {
|
|
3236
|
-
this.removeIdToken(key);
|
|
3225
|
+
this.removeIdToken(key, correlationId);
|
|
3237
3226
|
}
|
|
3238
3227
|
});
|
|
3239
3228
|
allTokenKeys.accessToken.forEach((key) => {
|
|
3240
3229
|
if (key.indexOf(accountId) === 0) {
|
|
3241
|
-
|
|
3230
|
+
this.removeAccessToken(key, correlationId);
|
|
3242
3231
|
}
|
|
3243
3232
|
});
|
|
3244
3233
|
allTokenKeys.refreshToken.forEach((key) => {
|
|
3245
3234
|
if (key.indexOf(accountId) === 0) {
|
|
3246
|
-
this.removeRefreshToken(key);
|
|
3235
|
+
this.removeRefreshToken(key, correlationId);
|
|
3247
3236
|
}
|
|
3248
3237
|
});
|
|
3249
|
-
await Promise.all(removedCredentials);
|
|
3250
3238
|
}
|
|
3251
3239
|
/**
|
|
3252
|
-
*
|
|
3253
|
-
* @param
|
|
3240
|
+
* Removes accessToken from the cache
|
|
3241
|
+
* @param key
|
|
3242
|
+
* @param correlationId
|
|
3254
3243
|
*/
|
|
3255
|
-
|
|
3256
|
-
const credential = this.getAccessTokenCredential(key);
|
|
3257
|
-
|
|
3244
|
+
removeAccessToken(key, correlationId) {
|
|
3245
|
+
const credential = this.getAccessTokenCredential(key, correlationId);
|
|
3246
|
+
this.removeItem(key, correlationId);
|
|
3247
|
+
this.performanceClient.incrementFields({ accessTokensRemoved: 1 }, correlationId);
|
|
3248
|
+
if (!credential ||
|
|
3249
|
+
credential.credentialType.toLowerCase() !==
|
|
3250
|
+
CredentialType.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase() ||
|
|
3251
|
+
credential.tokenType !== AuthenticationScheme.POP) {
|
|
3252
|
+
// If the credential is not a PoP token, we can return
|
|
3258
3253
|
return;
|
|
3259
3254
|
}
|
|
3260
3255
|
// Remove Token Binding Key from key store for PoP Tokens Credentials
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
try {
|
|
3268
|
-
await this.cryptoImpl.removeTokenBindingKey(kid);
|
|
3269
|
-
}
|
|
3270
|
-
catch (error) {
|
|
3271
|
-
throw createClientAuthError(bindingKeyNotRemoved);
|
|
3272
|
-
}
|
|
3273
|
-
}
|
|
3274
|
-
}
|
|
3256
|
+
const kid = credential.keyId;
|
|
3257
|
+
if (kid) {
|
|
3258
|
+
void this.cryptoImpl.removeTokenBindingKey(kid).catch(() => {
|
|
3259
|
+
this.commonLogger.error(`Failed to remove token binding key ${kid}`, correlationId);
|
|
3260
|
+
this.performanceClient?.incrementFields({ removeTokenBindingKeyFailure: 1 }, correlationId);
|
|
3261
|
+
});
|
|
3275
3262
|
}
|
|
3276
|
-
return this.removeItem(key);
|
|
3277
3263
|
}
|
|
3278
3264
|
/**
|
|
3279
3265
|
* Removes all app metadata objects from cache.
|
|
3280
3266
|
*/
|
|
3281
|
-
removeAppMetadata() {
|
|
3267
|
+
removeAppMetadata(correlationId) {
|
|
3282
3268
|
const allCacheKeys = this.getKeys();
|
|
3283
3269
|
allCacheKeys.forEach((cacheKey) => {
|
|
3284
3270
|
if (this.isAppMetadata(cacheKey)) {
|
|
3285
|
-
this.removeItem(cacheKey);
|
|
3271
|
+
this.removeItem(cacheKey, correlationId);
|
|
3286
3272
|
}
|
|
3287
3273
|
});
|
|
3288
3274
|
return true;
|
|
@@ -3291,9 +3277,9 @@
|
|
|
3291
3277
|
* Retrieve AccountEntity from cache
|
|
3292
3278
|
* @param account
|
|
3293
3279
|
*/
|
|
3294
|
-
readAccountFromCache(account) {
|
|
3280
|
+
readAccountFromCache(account, correlationId) {
|
|
3295
3281
|
const accountKey = AccountEntity.generateAccountCacheKey(account);
|
|
3296
|
-
return this.getAccount(accountKey,
|
|
3282
|
+
return this.getAccount(accountKey, correlationId);
|
|
3297
3283
|
}
|
|
3298
3284
|
/**
|
|
3299
3285
|
* Retrieve IdTokenEntity from cache
|
|
@@ -3303,7 +3289,7 @@
|
|
|
3303
3289
|
* @param performanceClient {?IPerformanceClient}
|
|
3304
3290
|
* @param correlationId {?string}
|
|
3305
3291
|
*/
|
|
3306
|
-
getIdToken(account, tokenKeys, targetRealm, performanceClient
|
|
3292
|
+
getIdToken(account, correlationId, tokenKeys, targetRealm, performanceClient) {
|
|
3307
3293
|
this.commonLogger.trace("CacheManager - getIdToken called");
|
|
3308
3294
|
const idTokenFilter = {
|
|
3309
3295
|
homeAccountId: account.homeAccountId,
|
|
@@ -3312,7 +3298,7 @@
|
|
|
3312
3298
|
clientId: this.clientId,
|
|
3313
3299
|
realm: targetRealm,
|
|
3314
3300
|
};
|
|
3315
|
-
const idTokenMap = this.getIdTokensByFilter(idTokenFilter, tokenKeys);
|
|
3301
|
+
const idTokenMap = this.getIdTokensByFilter(idTokenFilter, correlationId, tokenKeys);
|
|
3316
3302
|
const numIdTokens = idTokenMap.size;
|
|
3317
3303
|
if (numIdTokens < 1) {
|
|
3318
3304
|
this.commonLogger.info("CacheManager:getIdToken - No token found");
|
|
@@ -3345,7 +3331,7 @@
|
|
|
3345
3331
|
// Multiple tokens for a single tenant profile, remove all and return null
|
|
3346
3332
|
this.commonLogger.info("CacheManager:getIdToken - Multiple matching ID tokens found, clearing them");
|
|
3347
3333
|
tokensToBeRemoved.forEach((idToken, key) => {
|
|
3348
|
-
this.removeIdToken(key);
|
|
3334
|
+
this.removeIdToken(key, correlationId);
|
|
3349
3335
|
});
|
|
3350
3336
|
if (performanceClient && correlationId) {
|
|
3351
3337
|
performanceClient.addFields({ multiMatchedID: idTokenMap.size }, correlationId);
|
|
@@ -3360,7 +3346,7 @@
|
|
|
3360
3346
|
* @param filter
|
|
3361
3347
|
* @returns
|
|
3362
3348
|
*/
|
|
3363
|
-
getIdTokensByFilter(filter, tokenKeys) {
|
|
3349
|
+
getIdTokensByFilter(filter, correlationId, tokenKeys) {
|
|
3364
3350
|
const idTokenKeys = (tokenKeys && tokenKeys.idToken) || this.getTokenKeys().idToken;
|
|
3365
3351
|
const idTokens = new Map();
|
|
3366
3352
|
idTokenKeys.forEach((key) => {
|
|
@@ -3370,7 +3356,7 @@
|
|
|
3370
3356
|
})) {
|
|
3371
3357
|
return;
|
|
3372
3358
|
}
|
|
3373
|
-
const idToken = this.getIdTokenCredential(key);
|
|
3359
|
+
const idToken = this.getIdTokenCredential(key, correlationId);
|
|
3374
3360
|
if (idToken && this.credentialMatchesFilter(idToken, filter)) {
|
|
3375
3361
|
idTokens.set(key, idToken);
|
|
3376
3362
|
}
|
|
@@ -3399,26 +3385,27 @@
|
|
|
3399
3385
|
* Removes idToken from the cache
|
|
3400
3386
|
* @param key
|
|
3401
3387
|
*/
|
|
3402
|
-
removeIdToken(key) {
|
|
3403
|
-
this.removeItem(key);
|
|
3388
|
+
removeIdToken(key, correlationId) {
|
|
3389
|
+
this.removeItem(key, correlationId);
|
|
3404
3390
|
}
|
|
3405
3391
|
/**
|
|
3406
3392
|
* Removes refresh token from the cache
|
|
3407
3393
|
* @param key
|
|
3408
3394
|
*/
|
|
3409
|
-
removeRefreshToken(key) {
|
|
3410
|
-
this.removeItem(key);
|
|
3395
|
+
removeRefreshToken(key, correlationId) {
|
|
3396
|
+
this.removeItem(key, correlationId);
|
|
3411
3397
|
}
|
|
3412
3398
|
/**
|
|
3413
3399
|
* Retrieve AccessTokenEntity from cache
|
|
3414
3400
|
* @param account {AccountInfo}
|
|
3415
3401
|
* @param request {BaseAuthRequest}
|
|
3402
|
+
* @param correlationId {?string}
|
|
3416
3403
|
* @param tokenKeys {?TokenKeys}
|
|
3417
3404
|
* @param performanceClient {?IPerformanceClient}
|
|
3418
|
-
* @param correlationId {?string}
|
|
3419
3405
|
*/
|
|
3420
|
-
getAccessToken(account, request, tokenKeys, targetRealm
|
|
3421
|
-
|
|
3406
|
+
getAccessToken(account, request, tokenKeys, targetRealm) {
|
|
3407
|
+
const correlationId = request.correlationId;
|
|
3408
|
+
this.commonLogger.trace("CacheManager - getAccessToken called", correlationId);
|
|
3422
3409
|
const scopes = ScopeSet.createSearchScopes(request.scopes);
|
|
3423
3410
|
const authScheme = request.authenticationScheme || AuthenticationScheme.BEARER;
|
|
3424
3411
|
/*
|
|
@@ -3447,7 +3434,7 @@
|
|
|
3447
3434
|
accessTokenKeys.forEach((key) => {
|
|
3448
3435
|
// Validate key
|
|
3449
3436
|
if (this.accessTokenKeyMatchesFilter(key, accessTokenFilter, true)) {
|
|
3450
|
-
const accessToken = this.getAccessTokenCredential(key);
|
|
3437
|
+
const accessToken = this.getAccessTokenCredential(key, correlationId);
|
|
3451
3438
|
// Validate value
|
|
3452
3439
|
if (accessToken &&
|
|
3453
3440
|
this.credentialMatchesFilter(accessToken, accessTokenFilter)) {
|
|
@@ -3457,20 +3444,18 @@
|
|
|
3457
3444
|
});
|
|
3458
3445
|
const numAccessTokens = accessTokens.length;
|
|
3459
3446
|
if (numAccessTokens < 1) {
|
|
3460
|
-
this.commonLogger.info("CacheManager:getAccessToken - No token found");
|
|
3447
|
+
this.commonLogger.info("CacheManager:getAccessToken - No token found", correlationId);
|
|
3461
3448
|
return null;
|
|
3462
3449
|
}
|
|
3463
3450
|
else if (numAccessTokens > 1) {
|
|
3464
|
-
this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them");
|
|
3451
|
+
this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them", correlationId);
|
|
3465
3452
|
accessTokens.forEach((accessToken) => {
|
|
3466
|
-
|
|
3453
|
+
this.removeAccessToken(generateCredentialKey(accessToken), correlationId);
|
|
3467
3454
|
});
|
|
3468
|
-
|
|
3469
|
-
performanceClient.addFields({ multiMatchedAT: accessTokens.length }, correlationId);
|
|
3470
|
-
}
|
|
3455
|
+
this.performanceClient.addFields({ multiMatchedAT: accessTokens.length }, correlationId);
|
|
3471
3456
|
return null;
|
|
3472
3457
|
}
|
|
3473
|
-
this.commonLogger.info("CacheManager:getAccessToken - Returning access token");
|
|
3458
|
+
this.commonLogger.info("CacheManager:getAccessToken - Returning access token", correlationId);
|
|
3474
3459
|
return accessTokens[0];
|
|
3475
3460
|
}
|
|
3476
3461
|
/**
|
|
@@ -3519,14 +3504,14 @@
|
|
|
3519
3504
|
* @param filter
|
|
3520
3505
|
* @returns
|
|
3521
3506
|
*/
|
|
3522
|
-
getAccessTokensByFilter(filter) {
|
|
3507
|
+
getAccessTokensByFilter(filter, correlationId) {
|
|
3523
3508
|
const tokenKeys = this.getTokenKeys();
|
|
3524
3509
|
const accessTokens = [];
|
|
3525
3510
|
tokenKeys.accessToken.forEach((key) => {
|
|
3526
3511
|
if (!this.accessTokenKeyMatchesFilter(key, filter, true)) {
|
|
3527
3512
|
return;
|
|
3528
3513
|
}
|
|
3529
|
-
const accessToken = this.getAccessTokenCredential(key);
|
|
3514
|
+
const accessToken = this.getAccessTokenCredential(key, correlationId);
|
|
3530
3515
|
if (accessToken &&
|
|
3531
3516
|
this.credentialMatchesFilter(accessToken, filter)) {
|
|
3532
3517
|
accessTokens.push(accessToken);
|
|
@@ -3538,11 +3523,11 @@
|
|
|
3538
3523
|
* Helper to retrieve the appropriate refresh token from cache
|
|
3539
3524
|
* @param account {AccountInfo}
|
|
3540
3525
|
* @param familyRT {boolean}
|
|
3526
|
+
* @param correlationId {?string}
|
|
3541
3527
|
* @param tokenKeys {?TokenKeys}
|
|
3542
3528
|
* @param performanceClient {?IPerformanceClient}
|
|
3543
|
-
* @param correlationId {?string}
|
|
3544
3529
|
*/
|
|
3545
|
-
getRefreshToken(account, familyRT, tokenKeys, performanceClient
|
|
3530
|
+
getRefreshToken(account, familyRT, correlationId, tokenKeys, performanceClient) {
|
|
3546
3531
|
this.commonLogger.trace("CacheManager - getRefreshToken called");
|
|
3547
3532
|
const id = familyRT ? THE_FAMILY_ID : undefined;
|
|
3548
3533
|
const refreshTokenFilter = {
|
|
@@ -3558,7 +3543,7 @@
|
|
|
3558
3543
|
refreshTokenKeys.forEach((key) => {
|
|
3559
3544
|
// Validate key
|
|
3560
3545
|
if (this.refreshTokenKeyMatchesFilter(key, refreshTokenFilter)) {
|
|
3561
|
-
const refreshToken = this.getRefreshTokenCredential(key);
|
|
3546
|
+
const refreshToken = this.getRefreshTokenCredential(key, correlationId);
|
|
3562
3547
|
// Validate value
|
|
3563
3548
|
if (refreshToken &&
|
|
3564
3549
|
this.credentialMatchesFilter(refreshToken, refreshTokenFilter)) {
|
|
@@ -3908,576 +3893,16 @@
|
|
|
3908
3893
|
}
|
|
3909
3894
|
}
|
|
3910
3895
|
|
|
3911
|
-
/*! @azure/msal-common v15.
|
|
3912
|
-
|
|
3896
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
3913
3897
|
/*
|
|
3914
3898
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3915
3899
|
* Licensed under the MIT License.
|
|
3916
3900
|
*/
|
|
3917
|
-
const DEFAULT_SYSTEM_OPTIONS = {
|
|
3918
|
-
tokenRenewalOffsetSeconds: DEFAULT_TOKEN_RENEWAL_OFFSET_SEC,
|
|
3919
|
-
preventCorsPreflight: false,
|
|
3920
|
-
};
|
|
3921
|
-
const DEFAULT_LOGGER_IMPLEMENTATION = {
|
|
3922
|
-
loggerCallback: () => {
|
|
3923
|
-
// allow users to not set loggerCallback
|
|
3924
|
-
},
|
|
3925
|
-
piiLoggingEnabled: false,
|
|
3926
|
-
logLevel: exports.LogLevel.Info,
|
|
3927
|
-
correlationId: Constants.EMPTY_STRING,
|
|
3928
|
-
};
|
|
3929
|
-
const DEFAULT_CACHE_OPTIONS = {
|
|
3930
|
-
claimsBasedCachingEnabled: false,
|
|
3931
|
-
};
|
|
3932
|
-
const DEFAULT_NETWORK_IMPLEMENTATION = {
|
|
3933
|
-
async sendGetRequestAsync() {
|
|
3934
|
-
throw createClientAuthError(methodNotImplemented);
|
|
3935
|
-
},
|
|
3936
|
-
async sendPostRequestAsync() {
|
|
3937
|
-
throw createClientAuthError(methodNotImplemented);
|
|
3938
|
-
},
|
|
3939
|
-
};
|
|
3940
|
-
const DEFAULT_LIBRARY_INFO = {
|
|
3941
|
-
sku: Constants.SKU,
|
|
3942
|
-
version: version$1,
|
|
3943
|
-
cpu: Constants.EMPTY_STRING,
|
|
3944
|
-
os: Constants.EMPTY_STRING,
|
|
3945
|
-
};
|
|
3946
|
-
const DEFAULT_CLIENT_CREDENTIALS = {
|
|
3947
|
-
clientSecret: Constants.EMPTY_STRING,
|
|
3948
|
-
clientAssertion: undefined,
|
|
3949
|
-
};
|
|
3950
|
-
const DEFAULT_AZURE_CLOUD_OPTIONS = {
|
|
3951
|
-
azureCloudInstance: AzureCloudInstance.None,
|
|
3952
|
-
tenant: `${Constants.DEFAULT_COMMON_TENANT}`,
|
|
3953
|
-
};
|
|
3954
|
-
const DEFAULT_TELEMETRY_OPTIONS = {
|
|
3955
|
-
application: {
|
|
3956
|
-
appName: "",
|
|
3957
|
-
appVersion: "",
|
|
3958
|
-
},
|
|
3959
|
-
};
|
|
3960
3901
|
/**
|
|
3961
|
-
*
|
|
3962
|
-
*
|
|
3963
|
-
* @param Configuration
|
|
3902
|
+
* Enumeration of operations that are instrumented by have their performance measured by the PerformanceClient.
|
|
3964
3903
|
*
|
|
3965
|
-
* @
|
|
3966
|
-
|
|
3967
|
-
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, }) {
|
|
3968
|
-
const loggerOptions = {
|
|
3969
|
-
...DEFAULT_LOGGER_IMPLEMENTATION,
|
|
3970
|
-
...userLoggerOption,
|
|
3971
|
-
};
|
|
3972
|
-
return {
|
|
3973
|
-
authOptions: buildAuthOptions(userAuthOptions),
|
|
3974
|
-
systemOptions: { ...DEFAULT_SYSTEM_OPTIONS, ...userSystemOptions },
|
|
3975
|
-
loggerOptions: loggerOptions,
|
|
3976
|
-
cacheOptions: { ...DEFAULT_CACHE_OPTIONS, ...userCacheOptions },
|
|
3977
|
-
storageInterface: storageImplementation ||
|
|
3978
|
-
new DefaultStorageClass(userAuthOptions.clientId, DEFAULT_CRYPTO_IMPLEMENTATION, new Logger(loggerOptions)),
|
|
3979
|
-
networkInterface: networkImplementation || DEFAULT_NETWORK_IMPLEMENTATION,
|
|
3980
|
-
cryptoInterface: cryptoImplementation || DEFAULT_CRYPTO_IMPLEMENTATION,
|
|
3981
|
-
clientCredentials: clientCredentials || DEFAULT_CLIENT_CREDENTIALS,
|
|
3982
|
-
libraryInfo: { ...DEFAULT_LIBRARY_INFO, ...libraryInfo },
|
|
3983
|
-
telemetry: { ...DEFAULT_TELEMETRY_OPTIONS, ...telemetry },
|
|
3984
|
-
serverTelemetryManager: serverTelemetryManager || null,
|
|
3985
|
-
persistencePlugin: persistencePlugin || null,
|
|
3986
|
-
serializableCache: serializableCache || null,
|
|
3987
|
-
};
|
|
3988
|
-
}
|
|
3989
|
-
/**
|
|
3990
|
-
* Construct authoptions from the client and platform passed values
|
|
3991
|
-
* @param authOptions
|
|
3992
|
-
*/
|
|
3993
|
-
function buildAuthOptions(authOptions) {
|
|
3994
|
-
return {
|
|
3995
|
-
clientCapabilities: [],
|
|
3996
|
-
azureCloudOptions: DEFAULT_AZURE_CLOUD_OPTIONS,
|
|
3997
|
-
skipAuthorityMetadataCache: false,
|
|
3998
|
-
instanceAware: false,
|
|
3999
|
-
encodeExtraQueryParams: false,
|
|
4000
|
-
...authOptions,
|
|
4001
|
-
};
|
|
4002
|
-
}
|
|
4003
|
-
/**
|
|
4004
|
-
* Returns true if config has protocolMode set to ProtocolMode.OIDC, false otherwise
|
|
4005
|
-
* @param ClientConfiguration
|
|
4006
|
-
*/
|
|
4007
|
-
function isOidcProtocolMode(config) {
|
|
4008
|
-
return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
|
|
4009
|
-
}
|
|
4010
|
-
|
|
4011
|
-
/*! @azure/msal-common v15.7.0 2025-06-10 */
|
|
4012
|
-
/*
|
|
4013
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4014
|
-
* Licensed under the MIT License.
|
|
4015
|
-
*/
|
|
4016
|
-
const CcsCredentialType = {
|
|
4017
|
-
HOME_ACCOUNT_ID: "home_account_id",
|
|
4018
|
-
UPN: "UPN",
|
|
4019
|
-
};
|
|
4020
|
-
|
|
4021
|
-
/*! @azure/msal-common v15.7.0 2025-06-10 */
|
|
4022
|
-
/*
|
|
4023
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4024
|
-
* Licensed under the MIT License.
|
|
4025
|
-
*/
|
|
4026
|
-
const CLIENT_ID = "client_id";
|
|
4027
|
-
const REDIRECT_URI = "redirect_uri";
|
|
4028
|
-
const RESPONSE_TYPE = "response_type";
|
|
4029
|
-
const RESPONSE_MODE = "response_mode";
|
|
4030
|
-
const GRANT_TYPE = "grant_type";
|
|
4031
|
-
const CLAIMS = "claims";
|
|
4032
|
-
const SCOPE = "scope";
|
|
4033
|
-
const REFRESH_TOKEN = "refresh_token";
|
|
4034
|
-
const STATE = "state";
|
|
4035
|
-
const NONCE = "nonce";
|
|
4036
|
-
const PROMPT = "prompt";
|
|
4037
|
-
const CODE = "code";
|
|
4038
|
-
const CODE_CHALLENGE = "code_challenge";
|
|
4039
|
-
const CODE_CHALLENGE_METHOD = "code_challenge_method";
|
|
4040
|
-
const CODE_VERIFIER = "code_verifier";
|
|
4041
|
-
const CLIENT_REQUEST_ID = "client-request-id";
|
|
4042
|
-
const X_CLIENT_SKU = "x-client-SKU";
|
|
4043
|
-
const X_CLIENT_VER = "x-client-VER";
|
|
4044
|
-
const X_CLIENT_OS = "x-client-OS";
|
|
4045
|
-
const X_CLIENT_CPU = "x-client-CPU";
|
|
4046
|
-
const X_CLIENT_CURR_TELEM = "x-client-current-telemetry";
|
|
4047
|
-
const X_CLIENT_LAST_TELEM = "x-client-last-telemetry";
|
|
4048
|
-
const X_MS_LIB_CAPABILITY = "x-ms-lib-capability";
|
|
4049
|
-
const X_APP_NAME = "x-app-name";
|
|
4050
|
-
const X_APP_VER = "x-app-ver";
|
|
4051
|
-
const POST_LOGOUT_URI = "post_logout_redirect_uri";
|
|
4052
|
-
const ID_TOKEN_HINT = "id_token_hint";
|
|
4053
|
-
const CLIENT_SECRET = "client_secret";
|
|
4054
|
-
const CLIENT_ASSERTION = "client_assertion";
|
|
4055
|
-
const CLIENT_ASSERTION_TYPE = "client_assertion_type";
|
|
4056
|
-
const TOKEN_TYPE = "token_type";
|
|
4057
|
-
const REQ_CNF = "req_cnf";
|
|
4058
|
-
const RETURN_SPA_CODE = "return_spa_code";
|
|
4059
|
-
const NATIVE_BROKER = "nativebroker";
|
|
4060
|
-
const LOGOUT_HINT = "logout_hint";
|
|
4061
|
-
const SID = "sid";
|
|
4062
|
-
const LOGIN_HINT = "login_hint";
|
|
4063
|
-
const DOMAIN_HINT = "domain_hint";
|
|
4064
|
-
const X_CLIENT_EXTRA_SKU = "x-client-xtra-sku";
|
|
4065
|
-
const BROKER_CLIENT_ID = "brk_client_id";
|
|
4066
|
-
const BROKER_REDIRECT_URI = "brk_redirect_uri";
|
|
4067
|
-
const INSTANCE_AWARE = "instance_aware";
|
|
4068
|
-
const EAR_JWK = "ear_jwk";
|
|
4069
|
-
const EAR_JWE_CRYPTO = "ear_jwe_crypto";
|
|
4070
|
-
|
|
4071
|
-
/*! @azure/msal-common v15.7.0 2025-06-10 */
|
|
4072
|
-
|
|
4073
|
-
/*
|
|
4074
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4075
|
-
* Licensed under the MIT License.
|
|
4076
|
-
*/
|
|
4077
|
-
function instrumentBrokerParams(parameters, correlationId, performanceClient) {
|
|
4078
|
-
if (!correlationId) {
|
|
4079
|
-
return;
|
|
4080
|
-
}
|
|
4081
|
-
const clientId = parameters.get(CLIENT_ID);
|
|
4082
|
-
if (clientId && parameters.has(BROKER_CLIENT_ID)) {
|
|
4083
|
-
performanceClient?.addFields({
|
|
4084
|
-
embeddedClientId: clientId,
|
|
4085
|
-
embeddedRedirectUri: parameters.get(REDIRECT_URI),
|
|
4086
|
-
}, correlationId);
|
|
4087
|
-
}
|
|
4088
|
-
}
|
|
4089
|
-
/**
|
|
4090
|
-
* Add the given response_type
|
|
4091
|
-
* @param parameters
|
|
4092
|
-
* @param responseType
|
|
4093
|
-
*/
|
|
4094
|
-
function addResponseType(parameters, responseType) {
|
|
4095
|
-
parameters.set(RESPONSE_TYPE, responseType);
|
|
4096
|
-
}
|
|
4097
|
-
/**
|
|
4098
|
-
* add response_mode. defaults to query.
|
|
4099
|
-
* @param responseMode
|
|
4100
|
-
*/
|
|
4101
|
-
function addResponseMode(parameters, responseMode) {
|
|
4102
|
-
parameters.set(RESPONSE_MODE, responseMode ? responseMode : ResponseMode.QUERY);
|
|
4103
|
-
}
|
|
4104
|
-
/**
|
|
4105
|
-
* Add flag to indicate STS should attempt to use WAM if available
|
|
4106
|
-
*/
|
|
4107
|
-
function addNativeBroker(parameters) {
|
|
4108
|
-
parameters.set(NATIVE_BROKER, "1");
|
|
4109
|
-
}
|
|
4110
|
-
/**
|
|
4111
|
-
* add scopes. set addOidcScopes to false to prevent default scopes in non-user scenarios
|
|
4112
|
-
* @param scopeSet
|
|
4113
|
-
* @param addOidcScopes
|
|
4114
|
-
*/
|
|
4115
|
-
function addScopes(parameters, scopes, addOidcScopes = true, defaultScopes = OIDC_DEFAULT_SCOPES) {
|
|
4116
|
-
// Always add openid to the scopes when adding OIDC scopes
|
|
4117
|
-
if (addOidcScopes &&
|
|
4118
|
-
!defaultScopes.includes("openid") &&
|
|
4119
|
-
!scopes.includes("openid")) {
|
|
4120
|
-
defaultScopes.push("openid");
|
|
4121
|
-
}
|
|
4122
|
-
const requestScopes = addOidcScopes
|
|
4123
|
-
? [...(scopes || []), ...defaultScopes]
|
|
4124
|
-
: scopes || [];
|
|
4125
|
-
const scopeSet = new ScopeSet(requestScopes);
|
|
4126
|
-
parameters.set(SCOPE, scopeSet.printScopes());
|
|
4127
|
-
}
|
|
4128
|
-
/**
|
|
4129
|
-
* add clientId
|
|
4130
|
-
* @param clientId
|
|
4131
|
-
*/
|
|
4132
|
-
function addClientId(parameters, clientId) {
|
|
4133
|
-
parameters.set(CLIENT_ID, clientId);
|
|
4134
|
-
}
|
|
4135
|
-
/**
|
|
4136
|
-
* add redirect_uri
|
|
4137
|
-
* @param redirectUri
|
|
4138
|
-
*/
|
|
4139
|
-
function addRedirectUri(parameters, redirectUri) {
|
|
4140
|
-
parameters.set(REDIRECT_URI, redirectUri);
|
|
4141
|
-
}
|
|
4142
|
-
/**
|
|
4143
|
-
* add post logout redirectUri
|
|
4144
|
-
* @param redirectUri
|
|
4145
|
-
*/
|
|
4146
|
-
function addPostLogoutRedirectUri(parameters, redirectUri) {
|
|
4147
|
-
parameters.set(POST_LOGOUT_URI, redirectUri);
|
|
4148
|
-
}
|
|
4149
|
-
/**
|
|
4150
|
-
* add id_token_hint to logout request
|
|
4151
|
-
* @param idTokenHint
|
|
4152
|
-
*/
|
|
4153
|
-
function addIdTokenHint(parameters, idTokenHint) {
|
|
4154
|
-
parameters.set(ID_TOKEN_HINT, idTokenHint);
|
|
4155
|
-
}
|
|
4156
|
-
/**
|
|
4157
|
-
* add domain_hint
|
|
4158
|
-
* @param domainHint
|
|
4159
|
-
*/
|
|
4160
|
-
function addDomainHint(parameters, domainHint) {
|
|
4161
|
-
parameters.set(DOMAIN_HINT, domainHint);
|
|
4162
|
-
}
|
|
4163
|
-
/**
|
|
4164
|
-
* add login_hint
|
|
4165
|
-
* @param loginHint
|
|
4166
|
-
*/
|
|
4167
|
-
function addLoginHint(parameters, loginHint) {
|
|
4168
|
-
parameters.set(LOGIN_HINT, loginHint);
|
|
4169
|
-
}
|
|
4170
|
-
/**
|
|
4171
|
-
* Adds the CCS (Cache Credential Service) query parameter for login_hint
|
|
4172
|
-
* @param loginHint
|
|
4173
|
-
*/
|
|
4174
|
-
function addCcsUpn(parameters, loginHint) {
|
|
4175
|
-
parameters.set(HeaderNames.CCS_HEADER, `UPN:${loginHint}`);
|
|
4176
|
-
}
|
|
4177
|
-
/**
|
|
4178
|
-
* Adds the CCS (Cache Credential Service) query parameter for account object
|
|
4179
|
-
* @param loginHint
|
|
4180
|
-
*/
|
|
4181
|
-
function addCcsOid(parameters, clientInfo) {
|
|
4182
|
-
parameters.set(HeaderNames.CCS_HEADER, `Oid:${clientInfo.uid}@${clientInfo.utid}`);
|
|
4183
|
-
}
|
|
4184
|
-
/**
|
|
4185
|
-
* add sid
|
|
4186
|
-
* @param sid
|
|
4187
|
-
*/
|
|
4188
|
-
function addSid(parameters, sid) {
|
|
4189
|
-
parameters.set(SID, sid);
|
|
4190
|
-
}
|
|
4191
|
-
/**
|
|
4192
|
-
* add claims
|
|
4193
|
-
* @param claims
|
|
4194
|
-
*/
|
|
4195
|
-
function addClaims(parameters, claims, clientCapabilities) {
|
|
4196
|
-
const mergedClaims = addClientCapabilitiesToClaims(claims, clientCapabilities);
|
|
4197
|
-
try {
|
|
4198
|
-
JSON.parse(mergedClaims);
|
|
4199
|
-
}
|
|
4200
|
-
catch (e) {
|
|
4201
|
-
throw createClientConfigurationError(invalidClaims);
|
|
4202
|
-
}
|
|
4203
|
-
parameters.set(CLAIMS, mergedClaims);
|
|
4204
|
-
}
|
|
4205
|
-
/**
|
|
4206
|
-
* add correlationId
|
|
4207
|
-
* @param correlationId
|
|
4208
|
-
*/
|
|
4209
|
-
function addCorrelationId(parameters, correlationId) {
|
|
4210
|
-
parameters.set(CLIENT_REQUEST_ID, correlationId);
|
|
4211
|
-
}
|
|
4212
|
-
/**
|
|
4213
|
-
* add library info query params
|
|
4214
|
-
* @param libraryInfo
|
|
4215
|
-
*/
|
|
4216
|
-
function addLibraryInfo(parameters, libraryInfo) {
|
|
4217
|
-
// Telemetry Info
|
|
4218
|
-
parameters.set(X_CLIENT_SKU, libraryInfo.sku);
|
|
4219
|
-
parameters.set(X_CLIENT_VER, libraryInfo.version);
|
|
4220
|
-
if (libraryInfo.os) {
|
|
4221
|
-
parameters.set(X_CLIENT_OS, libraryInfo.os);
|
|
4222
|
-
}
|
|
4223
|
-
if (libraryInfo.cpu) {
|
|
4224
|
-
parameters.set(X_CLIENT_CPU, libraryInfo.cpu);
|
|
4225
|
-
}
|
|
4226
|
-
}
|
|
4227
|
-
/**
|
|
4228
|
-
* Add client telemetry parameters
|
|
4229
|
-
* @param appTelemetry
|
|
4230
|
-
*/
|
|
4231
|
-
function addApplicationTelemetry(parameters, appTelemetry) {
|
|
4232
|
-
if (appTelemetry?.appName) {
|
|
4233
|
-
parameters.set(X_APP_NAME, appTelemetry.appName);
|
|
4234
|
-
}
|
|
4235
|
-
if (appTelemetry?.appVersion) {
|
|
4236
|
-
parameters.set(X_APP_VER, appTelemetry.appVersion);
|
|
4237
|
-
}
|
|
4238
|
-
}
|
|
4239
|
-
/**
|
|
4240
|
-
* add prompt
|
|
4241
|
-
* @param prompt
|
|
4242
|
-
*/
|
|
4243
|
-
function addPrompt(parameters, prompt) {
|
|
4244
|
-
parameters.set(PROMPT, prompt);
|
|
4245
|
-
}
|
|
4246
|
-
/**
|
|
4247
|
-
* add state
|
|
4248
|
-
* @param state
|
|
4249
|
-
*/
|
|
4250
|
-
function addState(parameters, state) {
|
|
4251
|
-
if (state) {
|
|
4252
|
-
parameters.set(STATE, state);
|
|
4253
|
-
}
|
|
4254
|
-
}
|
|
4255
|
-
/**
|
|
4256
|
-
* add nonce
|
|
4257
|
-
* @param nonce
|
|
4258
|
-
*/
|
|
4259
|
-
function addNonce(parameters, nonce) {
|
|
4260
|
-
parameters.set(NONCE, nonce);
|
|
4261
|
-
}
|
|
4262
|
-
/**
|
|
4263
|
-
* add code_challenge and code_challenge_method
|
|
4264
|
-
* - throw if either of them are not passed
|
|
4265
|
-
* @param codeChallenge
|
|
4266
|
-
* @param codeChallengeMethod
|
|
4267
|
-
*/
|
|
4268
|
-
function addCodeChallengeParams(parameters, codeChallenge, codeChallengeMethod) {
|
|
4269
|
-
if (codeChallenge && codeChallengeMethod) {
|
|
4270
|
-
parameters.set(CODE_CHALLENGE, codeChallenge);
|
|
4271
|
-
parameters.set(CODE_CHALLENGE_METHOD, codeChallengeMethod);
|
|
4272
|
-
}
|
|
4273
|
-
else {
|
|
4274
|
-
throw createClientConfigurationError(pkceParamsMissing);
|
|
4275
|
-
}
|
|
4276
|
-
}
|
|
4277
|
-
/**
|
|
4278
|
-
* add the `authorization_code` passed by the user to exchange for a token
|
|
4279
|
-
* @param code
|
|
4280
|
-
*/
|
|
4281
|
-
function addAuthorizationCode(parameters, code) {
|
|
4282
|
-
parameters.set(CODE, code);
|
|
4283
|
-
}
|
|
4284
|
-
/**
|
|
4285
|
-
* add the `refreshToken` passed by the user
|
|
4286
|
-
* @param refreshToken
|
|
4287
|
-
*/
|
|
4288
|
-
function addRefreshToken(parameters, refreshToken) {
|
|
4289
|
-
parameters.set(REFRESH_TOKEN, refreshToken);
|
|
4290
|
-
}
|
|
4291
|
-
/**
|
|
4292
|
-
* add the `code_verifier` passed by the user to exchange for a token
|
|
4293
|
-
* @param codeVerifier
|
|
4294
|
-
*/
|
|
4295
|
-
function addCodeVerifier(parameters, codeVerifier) {
|
|
4296
|
-
parameters.set(CODE_VERIFIER, codeVerifier);
|
|
4297
|
-
}
|
|
4298
|
-
/**
|
|
4299
|
-
* add client_secret
|
|
4300
|
-
* @param clientSecret
|
|
4301
|
-
*/
|
|
4302
|
-
function addClientSecret(parameters, clientSecret) {
|
|
4303
|
-
parameters.set(CLIENT_SECRET, clientSecret);
|
|
4304
|
-
}
|
|
4305
|
-
/**
|
|
4306
|
-
* add clientAssertion for confidential client flows
|
|
4307
|
-
* @param clientAssertion
|
|
4308
|
-
*/
|
|
4309
|
-
function addClientAssertion(parameters, clientAssertion) {
|
|
4310
|
-
if (clientAssertion) {
|
|
4311
|
-
parameters.set(CLIENT_ASSERTION, clientAssertion);
|
|
4312
|
-
}
|
|
4313
|
-
}
|
|
4314
|
-
/**
|
|
4315
|
-
* add clientAssertionType for confidential client flows
|
|
4316
|
-
* @param clientAssertionType
|
|
4317
|
-
*/
|
|
4318
|
-
function addClientAssertionType(parameters, clientAssertionType) {
|
|
4319
|
-
if (clientAssertionType) {
|
|
4320
|
-
parameters.set(CLIENT_ASSERTION_TYPE, clientAssertionType);
|
|
4321
|
-
}
|
|
4322
|
-
}
|
|
4323
|
-
/**
|
|
4324
|
-
* add grant type
|
|
4325
|
-
* @param grantType
|
|
4326
|
-
*/
|
|
4327
|
-
function addGrantType(parameters, grantType) {
|
|
4328
|
-
parameters.set(GRANT_TYPE, grantType);
|
|
4329
|
-
}
|
|
4330
|
-
/**
|
|
4331
|
-
* add client info
|
|
4332
|
-
*
|
|
4333
|
-
*/
|
|
4334
|
-
function addClientInfo(parameters) {
|
|
4335
|
-
parameters.set(CLIENT_INFO, "1");
|
|
4336
|
-
}
|
|
4337
|
-
function addInstanceAware(parameters) {
|
|
4338
|
-
if (!parameters.has(INSTANCE_AWARE)) {
|
|
4339
|
-
parameters.set(INSTANCE_AWARE, "true");
|
|
4340
|
-
}
|
|
4341
|
-
}
|
|
4342
|
-
/**
|
|
4343
|
-
* add extraQueryParams
|
|
4344
|
-
* @param eQParams
|
|
4345
|
-
*/
|
|
4346
|
-
function addExtraQueryParameters(parameters, eQParams) {
|
|
4347
|
-
Object.entries(eQParams).forEach(([key, value]) => {
|
|
4348
|
-
if (!parameters.has(key) && value) {
|
|
4349
|
-
parameters.set(key, value);
|
|
4350
|
-
}
|
|
4351
|
-
});
|
|
4352
|
-
}
|
|
4353
|
-
function addClientCapabilitiesToClaims(claims, clientCapabilities) {
|
|
4354
|
-
let mergedClaims;
|
|
4355
|
-
// Parse provided claims into JSON object or initialize empty object
|
|
4356
|
-
if (!claims) {
|
|
4357
|
-
mergedClaims = {};
|
|
4358
|
-
}
|
|
4359
|
-
else {
|
|
4360
|
-
try {
|
|
4361
|
-
mergedClaims = JSON.parse(claims);
|
|
4362
|
-
}
|
|
4363
|
-
catch (e) {
|
|
4364
|
-
throw createClientConfigurationError(invalidClaims);
|
|
4365
|
-
}
|
|
4366
|
-
}
|
|
4367
|
-
if (clientCapabilities && clientCapabilities.length > 0) {
|
|
4368
|
-
if (!mergedClaims.hasOwnProperty(ClaimsRequestKeys.ACCESS_TOKEN)) {
|
|
4369
|
-
// Add access_token key to claims object
|
|
4370
|
-
mergedClaims[ClaimsRequestKeys.ACCESS_TOKEN] = {};
|
|
4371
|
-
}
|
|
4372
|
-
// Add xms_cc claim with provided clientCapabilities to access_token key
|
|
4373
|
-
mergedClaims[ClaimsRequestKeys.ACCESS_TOKEN][ClaimsRequestKeys.XMS_CC] =
|
|
4374
|
-
{
|
|
4375
|
-
values: clientCapabilities,
|
|
4376
|
-
};
|
|
4377
|
-
}
|
|
4378
|
-
return JSON.stringify(mergedClaims);
|
|
4379
|
-
}
|
|
4380
|
-
/**
|
|
4381
|
-
* add pop_jwk to query params
|
|
4382
|
-
* @param cnfString
|
|
4383
|
-
*/
|
|
4384
|
-
function addPopToken(parameters, cnfString) {
|
|
4385
|
-
if (cnfString) {
|
|
4386
|
-
parameters.set(TOKEN_TYPE, AuthenticationScheme.POP);
|
|
4387
|
-
parameters.set(REQ_CNF, cnfString);
|
|
4388
|
-
}
|
|
4389
|
-
}
|
|
4390
|
-
/**
|
|
4391
|
-
* add SSH JWK and key ID to query params
|
|
4392
|
-
*/
|
|
4393
|
-
function addSshJwk(parameters, sshJwkString) {
|
|
4394
|
-
if (sshJwkString) {
|
|
4395
|
-
parameters.set(TOKEN_TYPE, AuthenticationScheme.SSH);
|
|
4396
|
-
parameters.set(REQ_CNF, sshJwkString);
|
|
4397
|
-
}
|
|
4398
|
-
}
|
|
4399
|
-
/**
|
|
4400
|
-
* add server telemetry fields
|
|
4401
|
-
* @param serverTelemetryManager
|
|
4402
|
-
*/
|
|
4403
|
-
function addServerTelemetry(parameters, serverTelemetryManager) {
|
|
4404
|
-
parameters.set(X_CLIENT_CURR_TELEM, serverTelemetryManager.generateCurrentRequestHeaderValue());
|
|
4405
|
-
parameters.set(X_CLIENT_LAST_TELEM, serverTelemetryManager.generateLastRequestHeaderValue());
|
|
4406
|
-
}
|
|
4407
|
-
/**
|
|
4408
|
-
* Adds parameter that indicates to the server that throttling is supported
|
|
4409
|
-
*/
|
|
4410
|
-
function addThrottling(parameters) {
|
|
4411
|
-
parameters.set(X_MS_LIB_CAPABILITY, ThrottlingConstants.X_MS_LIB_CAPABILITY_VALUE);
|
|
4412
|
-
}
|
|
4413
|
-
/**
|
|
4414
|
-
* Adds logout_hint parameter for "silent" logout which prevent server account picker
|
|
4415
|
-
*/
|
|
4416
|
-
function addLogoutHint(parameters, logoutHint) {
|
|
4417
|
-
parameters.set(LOGOUT_HINT, logoutHint);
|
|
4418
|
-
}
|
|
4419
|
-
function addBrokerParameters(parameters, brokerClientId, brokerRedirectUri) {
|
|
4420
|
-
if (!parameters.has(BROKER_CLIENT_ID)) {
|
|
4421
|
-
parameters.set(BROKER_CLIENT_ID, brokerClientId);
|
|
4422
|
-
}
|
|
4423
|
-
if (!parameters.has(BROKER_REDIRECT_URI)) {
|
|
4424
|
-
parameters.set(BROKER_REDIRECT_URI, brokerRedirectUri);
|
|
4425
|
-
}
|
|
4426
|
-
}
|
|
4427
|
-
/**
|
|
4428
|
-
* Add EAR (Encrypted Authorize Response) request parameters
|
|
4429
|
-
* @param parameters
|
|
4430
|
-
* @param jwk
|
|
4431
|
-
*/
|
|
4432
|
-
function addEARParameters(parameters, jwk) {
|
|
4433
|
-
parameters.set(EAR_JWK, encodeURIComponent(jwk));
|
|
4434
|
-
// ear_jwe_crypto will always have value: {"alg":"dir","enc":"A256GCM"} so we can hardcode this
|
|
4435
|
-
const jweCryptoB64Encoded = "eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIn0";
|
|
4436
|
-
parameters.set(EAR_JWE_CRYPTO, jweCryptoB64Encoded);
|
|
4437
|
-
}
|
|
4438
|
-
|
|
4439
|
-
/*! @azure/msal-common v15.7.0 2025-06-10 */
|
|
4440
|
-
/*
|
|
4441
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4442
|
-
* Licensed under the MIT License.
|
|
4443
|
-
*/
|
|
4444
|
-
function isOpenIdConfigResponse(response) {
|
|
4445
|
-
return (response.hasOwnProperty("authorization_endpoint") &&
|
|
4446
|
-
response.hasOwnProperty("token_endpoint") &&
|
|
4447
|
-
response.hasOwnProperty("issuer") &&
|
|
4448
|
-
response.hasOwnProperty("jwks_uri"));
|
|
4449
|
-
}
|
|
4450
|
-
|
|
4451
|
-
/*! @azure/msal-common v15.7.0 2025-06-10 */
|
|
4452
|
-
/*
|
|
4453
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4454
|
-
* Licensed under the MIT License.
|
|
4455
|
-
*/
|
|
4456
|
-
function isCloudInstanceDiscoveryResponse(response) {
|
|
4457
|
-
return (response.hasOwnProperty("tenant_discovery_endpoint") &&
|
|
4458
|
-
response.hasOwnProperty("metadata"));
|
|
4459
|
-
}
|
|
4460
|
-
|
|
4461
|
-
/*! @azure/msal-common v15.7.0 2025-06-10 */
|
|
4462
|
-
/*
|
|
4463
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4464
|
-
* Licensed under the MIT License.
|
|
4465
|
-
*/
|
|
4466
|
-
function isCloudInstanceDiscoveryErrorResponse(response) {
|
|
4467
|
-
return (response.hasOwnProperty("error") &&
|
|
4468
|
-
response.hasOwnProperty("error_description"));
|
|
4469
|
-
}
|
|
4470
|
-
|
|
4471
|
-
/*! @azure/msal-common v15.7.0 2025-06-10 */
|
|
4472
|
-
/*
|
|
4473
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4474
|
-
* Licensed under the MIT License.
|
|
4475
|
-
*/
|
|
4476
|
-
/**
|
|
4477
|
-
* Enumeration of operations that are instrumented by have their performance measured by the PerformanceClient.
|
|
4478
|
-
*
|
|
4479
|
-
* @export
|
|
4480
|
-
* @enum {number}
|
|
3904
|
+
* @export
|
|
3905
|
+
* @enum {number}
|
|
4481
3906
|
*/
|
|
4482
3907
|
const PerformanceEvents = {
|
|
4483
3908
|
/**
|
|
@@ -4954,34 +4379,672 @@
|
|
|
4954
4379
|
[PerformanceEvents.DecryptEarResponse, "decryptEarResp"],
|
|
4955
4380
|
]);
|
|
4956
4381
|
/**
|
|
4957
|
-
* State of the performance event.
|
|
4382
|
+
* State of the performance event.
|
|
4383
|
+
*
|
|
4384
|
+
* @export
|
|
4385
|
+
* @enum {number}
|
|
4386
|
+
*/
|
|
4387
|
+
const PerformanceEventStatus = {
|
|
4388
|
+
InProgress: 1,
|
|
4389
|
+
Completed: 2,
|
|
4390
|
+
};
|
|
4391
|
+
const IntFields = new Set([
|
|
4392
|
+
"accessTokenSize",
|
|
4393
|
+
"durationMs",
|
|
4394
|
+
"idTokenSize",
|
|
4395
|
+
"matsSilentStatus",
|
|
4396
|
+
"matsHttpStatus",
|
|
4397
|
+
"refreshTokenSize",
|
|
4398
|
+
"queuedTimeMs",
|
|
4399
|
+
"startTimeMs",
|
|
4400
|
+
"status",
|
|
4401
|
+
"multiMatchedAT",
|
|
4402
|
+
"multiMatchedID",
|
|
4403
|
+
"multiMatchedRT",
|
|
4404
|
+
"unencryptedCacheCount",
|
|
4405
|
+
"encryptedCacheExpiredCount",
|
|
4406
|
+
]);
|
|
4407
|
+
|
|
4408
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
4409
|
+
|
|
4410
|
+
/*
|
|
4411
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4412
|
+
* Licensed under the MIT License.
|
|
4413
|
+
*/
|
|
4414
|
+
class StubPerformanceMeasurement {
|
|
4415
|
+
startMeasurement() {
|
|
4416
|
+
return;
|
|
4417
|
+
}
|
|
4418
|
+
endMeasurement() {
|
|
4419
|
+
return;
|
|
4420
|
+
}
|
|
4421
|
+
flushMeasurement() {
|
|
4422
|
+
return null;
|
|
4423
|
+
}
|
|
4424
|
+
}
|
|
4425
|
+
class StubPerformanceClient {
|
|
4426
|
+
generateId() {
|
|
4427
|
+
return "callback-id";
|
|
4428
|
+
}
|
|
4429
|
+
startMeasurement(measureName, correlationId) {
|
|
4430
|
+
return {
|
|
4431
|
+
end: () => null,
|
|
4432
|
+
discard: () => { },
|
|
4433
|
+
add: () => { },
|
|
4434
|
+
increment: () => { },
|
|
4435
|
+
event: {
|
|
4436
|
+
eventId: this.generateId(),
|
|
4437
|
+
status: PerformanceEventStatus.InProgress,
|
|
4438
|
+
authority: "",
|
|
4439
|
+
libraryName: "",
|
|
4440
|
+
libraryVersion: "",
|
|
4441
|
+
clientId: "",
|
|
4442
|
+
name: measureName,
|
|
4443
|
+
startTimeMs: Date.now(),
|
|
4444
|
+
correlationId: correlationId || "",
|
|
4445
|
+
},
|
|
4446
|
+
measurement: new StubPerformanceMeasurement(),
|
|
4447
|
+
};
|
|
4448
|
+
}
|
|
4449
|
+
startPerformanceMeasurement() {
|
|
4450
|
+
return new StubPerformanceMeasurement();
|
|
4451
|
+
}
|
|
4452
|
+
calculateQueuedTime() {
|
|
4453
|
+
return 0;
|
|
4454
|
+
}
|
|
4455
|
+
addQueueMeasurement() {
|
|
4456
|
+
return;
|
|
4457
|
+
}
|
|
4458
|
+
setPreQueueTime() {
|
|
4459
|
+
return;
|
|
4460
|
+
}
|
|
4461
|
+
endMeasurement() {
|
|
4462
|
+
return null;
|
|
4463
|
+
}
|
|
4464
|
+
discardMeasurements() {
|
|
4465
|
+
return;
|
|
4466
|
+
}
|
|
4467
|
+
removePerformanceCallback() {
|
|
4468
|
+
return true;
|
|
4469
|
+
}
|
|
4470
|
+
addPerformanceCallback() {
|
|
4471
|
+
return "";
|
|
4472
|
+
}
|
|
4473
|
+
emitEvents() {
|
|
4474
|
+
return;
|
|
4475
|
+
}
|
|
4476
|
+
addFields() {
|
|
4477
|
+
return;
|
|
4478
|
+
}
|
|
4479
|
+
incrementFields() {
|
|
4480
|
+
return;
|
|
4481
|
+
}
|
|
4482
|
+
cacheEventByCorrelationId() {
|
|
4483
|
+
return;
|
|
4484
|
+
}
|
|
4485
|
+
}
|
|
4486
|
+
|
|
4487
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
4488
|
+
|
|
4489
|
+
/*
|
|
4490
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4491
|
+
* Licensed under the MIT License.
|
|
4492
|
+
*/
|
|
4493
|
+
const DEFAULT_SYSTEM_OPTIONS = {
|
|
4494
|
+
tokenRenewalOffsetSeconds: DEFAULT_TOKEN_RENEWAL_OFFSET_SEC,
|
|
4495
|
+
preventCorsPreflight: false,
|
|
4496
|
+
};
|
|
4497
|
+
const DEFAULT_LOGGER_IMPLEMENTATION = {
|
|
4498
|
+
loggerCallback: () => {
|
|
4499
|
+
// allow users to not set loggerCallback
|
|
4500
|
+
},
|
|
4501
|
+
piiLoggingEnabled: false,
|
|
4502
|
+
logLevel: exports.LogLevel.Info,
|
|
4503
|
+
correlationId: Constants.EMPTY_STRING,
|
|
4504
|
+
};
|
|
4505
|
+
const DEFAULT_CACHE_OPTIONS = {
|
|
4506
|
+
claimsBasedCachingEnabled: false,
|
|
4507
|
+
};
|
|
4508
|
+
const DEFAULT_NETWORK_IMPLEMENTATION = {
|
|
4509
|
+
async sendGetRequestAsync() {
|
|
4510
|
+
throw createClientAuthError(methodNotImplemented);
|
|
4511
|
+
},
|
|
4512
|
+
async sendPostRequestAsync() {
|
|
4513
|
+
throw createClientAuthError(methodNotImplemented);
|
|
4514
|
+
},
|
|
4515
|
+
};
|
|
4516
|
+
const DEFAULT_LIBRARY_INFO = {
|
|
4517
|
+
sku: Constants.SKU,
|
|
4518
|
+
version: version$1,
|
|
4519
|
+
cpu: Constants.EMPTY_STRING,
|
|
4520
|
+
os: Constants.EMPTY_STRING,
|
|
4521
|
+
};
|
|
4522
|
+
const DEFAULT_CLIENT_CREDENTIALS = {
|
|
4523
|
+
clientSecret: Constants.EMPTY_STRING,
|
|
4524
|
+
clientAssertion: undefined,
|
|
4525
|
+
};
|
|
4526
|
+
const DEFAULT_AZURE_CLOUD_OPTIONS = {
|
|
4527
|
+
azureCloudInstance: AzureCloudInstance.None,
|
|
4528
|
+
tenant: `${Constants.DEFAULT_COMMON_TENANT}`,
|
|
4529
|
+
};
|
|
4530
|
+
const DEFAULT_TELEMETRY_OPTIONS = {
|
|
4531
|
+
application: {
|
|
4532
|
+
appName: "",
|
|
4533
|
+
appVersion: "",
|
|
4534
|
+
},
|
|
4535
|
+
};
|
|
4536
|
+
/**
|
|
4537
|
+
* Function that sets the default options when not explicitly configured from app developer
|
|
4538
|
+
*
|
|
4539
|
+
* @param Configuration
|
|
4540
|
+
*
|
|
4541
|
+
* @returns Configuration
|
|
4542
|
+
*/
|
|
4543
|
+
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, }) {
|
|
4544
|
+
const loggerOptions = {
|
|
4545
|
+
...DEFAULT_LOGGER_IMPLEMENTATION,
|
|
4546
|
+
...userLoggerOption,
|
|
4547
|
+
};
|
|
4548
|
+
return {
|
|
4549
|
+
authOptions: buildAuthOptions(userAuthOptions),
|
|
4550
|
+
systemOptions: { ...DEFAULT_SYSTEM_OPTIONS, ...userSystemOptions },
|
|
4551
|
+
loggerOptions: loggerOptions,
|
|
4552
|
+
cacheOptions: { ...DEFAULT_CACHE_OPTIONS, ...userCacheOptions },
|
|
4553
|
+
storageInterface: storageImplementation ||
|
|
4554
|
+
new DefaultStorageClass(userAuthOptions.clientId, DEFAULT_CRYPTO_IMPLEMENTATION, new Logger(loggerOptions), new StubPerformanceClient()),
|
|
4555
|
+
networkInterface: networkImplementation || DEFAULT_NETWORK_IMPLEMENTATION,
|
|
4556
|
+
cryptoInterface: cryptoImplementation || DEFAULT_CRYPTO_IMPLEMENTATION,
|
|
4557
|
+
clientCredentials: clientCredentials || DEFAULT_CLIENT_CREDENTIALS,
|
|
4558
|
+
libraryInfo: { ...DEFAULT_LIBRARY_INFO, ...libraryInfo },
|
|
4559
|
+
telemetry: { ...DEFAULT_TELEMETRY_OPTIONS, ...telemetry },
|
|
4560
|
+
serverTelemetryManager: serverTelemetryManager || null,
|
|
4561
|
+
persistencePlugin: persistencePlugin || null,
|
|
4562
|
+
serializableCache: serializableCache || null,
|
|
4563
|
+
};
|
|
4564
|
+
}
|
|
4565
|
+
/**
|
|
4566
|
+
* Construct authoptions from the client and platform passed values
|
|
4567
|
+
* @param authOptions
|
|
4568
|
+
*/
|
|
4569
|
+
function buildAuthOptions(authOptions) {
|
|
4570
|
+
return {
|
|
4571
|
+
clientCapabilities: [],
|
|
4572
|
+
azureCloudOptions: DEFAULT_AZURE_CLOUD_OPTIONS,
|
|
4573
|
+
skipAuthorityMetadataCache: false,
|
|
4574
|
+
instanceAware: false,
|
|
4575
|
+
encodeExtraQueryParams: false,
|
|
4576
|
+
...authOptions,
|
|
4577
|
+
};
|
|
4578
|
+
}
|
|
4579
|
+
/**
|
|
4580
|
+
* Returns true if config has protocolMode set to ProtocolMode.OIDC, false otherwise
|
|
4581
|
+
* @param ClientConfiguration
|
|
4582
|
+
*/
|
|
4583
|
+
function isOidcProtocolMode(config) {
|
|
4584
|
+
return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
|
|
4585
|
+
}
|
|
4586
|
+
|
|
4587
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
4588
|
+
/*
|
|
4589
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4590
|
+
* Licensed under the MIT License.
|
|
4591
|
+
*/
|
|
4592
|
+
const CcsCredentialType = {
|
|
4593
|
+
HOME_ACCOUNT_ID: "home_account_id",
|
|
4594
|
+
UPN: "UPN",
|
|
4595
|
+
};
|
|
4596
|
+
|
|
4597
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
4598
|
+
/*
|
|
4599
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4600
|
+
* Licensed under the MIT License.
|
|
4601
|
+
*/
|
|
4602
|
+
const CLIENT_ID = "client_id";
|
|
4603
|
+
const REDIRECT_URI = "redirect_uri";
|
|
4604
|
+
const RESPONSE_TYPE = "response_type";
|
|
4605
|
+
const RESPONSE_MODE = "response_mode";
|
|
4606
|
+
const GRANT_TYPE = "grant_type";
|
|
4607
|
+
const CLAIMS = "claims";
|
|
4608
|
+
const SCOPE = "scope";
|
|
4609
|
+
const REFRESH_TOKEN = "refresh_token";
|
|
4610
|
+
const STATE = "state";
|
|
4611
|
+
const NONCE = "nonce";
|
|
4612
|
+
const PROMPT = "prompt";
|
|
4613
|
+
const CODE = "code";
|
|
4614
|
+
const CODE_CHALLENGE = "code_challenge";
|
|
4615
|
+
const CODE_CHALLENGE_METHOD = "code_challenge_method";
|
|
4616
|
+
const CODE_VERIFIER = "code_verifier";
|
|
4617
|
+
const CLIENT_REQUEST_ID = "client-request-id";
|
|
4618
|
+
const X_CLIENT_SKU = "x-client-SKU";
|
|
4619
|
+
const X_CLIENT_VER = "x-client-VER";
|
|
4620
|
+
const X_CLIENT_OS = "x-client-OS";
|
|
4621
|
+
const X_CLIENT_CPU = "x-client-CPU";
|
|
4622
|
+
const X_CLIENT_CURR_TELEM = "x-client-current-telemetry";
|
|
4623
|
+
const X_CLIENT_LAST_TELEM = "x-client-last-telemetry";
|
|
4624
|
+
const X_MS_LIB_CAPABILITY = "x-ms-lib-capability";
|
|
4625
|
+
const X_APP_NAME = "x-app-name";
|
|
4626
|
+
const X_APP_VER = "x-app-ver";
|
|
4627
|
+
const POST_LOGOUT_URI = "post_logout_redirect_uri";
|
|
4628
|
+
const ID_TOKEN_HINT = "id_token_hint";
|
|
4629
|
+
const CLIENT_SECRET = "client_secret";
|
|
4630
|
+
const CLIENT_ASSERTION = "client_assertion";
|
|
4631
|
+
const CLIENT_ASSERTION_TYPE = "client_assertion_type";
|
|
4632
|
+
const TOKEN_TYPE = "token_type";
|
|
4633
|
+
const REQ_CNF = "req_cnf";
|
|
4634
|
+
const RETURN_SPA_CODE = "return_spa_code";
|
|
4635
|
+
const NATIVE_BROKER = "nativebroker";
|
|
4636
|
+
const LOGOUT_HINT = "logout_hint";
|
|
4637
|
+
const SID = "sid";
|
|
4638
|
+
const LOGIN_HINT = "login_hint";
|
|
4639
|
+
const DOMAIN_HINT = "domain_hint";
|
|
4640
|
+
const X_CLIENT_EXTRA_SKU = "x-client-xtra-sku";
|
|
4641
|
+
const BROKER_CLIENT_ID = "brk_client_id";
|
|
4642
|
+
const BROKER_REDIRECT_URI = "brk_redirect_uri";
|
|
4643
|
+
const INSTANCE_AWARE = "instance_aware";
|
|
4644
|
+
const EAR_JWK = "ear_jwk";
|
|
4645
|
+
const EAR_JWE_CRYPTO = "ear_jwe_crypto";
|
|
4646
|
+
|
|
4647
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
4648
|
+
|
|
4649
|
+
/*
|
|
4650
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4651
|
+
* Licensed under the MIT License.
|
|
4652
|
+
*/
|
|
4653
|
+
function instrumentBrokerParams(parameters, correlationId, performanceClient) {
|
|
4654
|
+
if (!correlationId) {
|
|
4655
|
+
return;
|
|
4656
|
+
}
|
|
4657
|
+
const clientId = parameters.get(CLIENT_ID);
|
|
4658
|
+
if (clientId && parameters.has(BROKER_CLIENT_ID)) {
|
|
4659
|
+
performanceClient?.addFields({
|
|
4660
|
+
embeddedClientId: clientId,
|
|
4661
|
+
embeddedRedirectUri: parameters.get(REDIRECT_URI),
|
|
4662
|
+
}, correlationId);
|
|
4663
|
+
}
|
|
4664
|
+
}
|
|
4665
|
+
/**
|
|
4666
|
+
* Add the given response_type
|
|
4667
|
+
* @param parameters
|
|
4668
|
+
* @param responseType
|
|
4669
|
+
*/
|
|
4670
|
+
function addResponseType(parameters, responseType) {
|
|
4671
|
+
parameters.set(RESPONSE_TYPE, responseType);
|
|
4672
|
+
}
|
|
4673
|
+
/**
|
|
4674
|
+
* add response_mode. defaults to query.
|
|
4675
|
+
* @param responseMode
|
|
4676
|
+
*/
|
|
4677
|
+
function addResponseMode(parameters, responseMode) {
|
|
4678
|
+
parameters.set(RESPONSE_MODE, responseMode ? responseMode : ResponseMode.QUERY);
|
|
4679
|
+
}
|
|
4680
|
+
/**
|
|
4681
|
+
* Add flag to indicate STS should attempt to use WAM if available
|
|
4682
|
+
*/
|
|
4683
|
+
function addNativeBroker(parameters) {
|
|
4684
|
+
parameters.set(NATIVE_BROKER, "1");
|
|
4685
|
+
}
|
|
4686
|
+
/**
|
|
4687
|
+
* add scopes. set addOidcScopes to false to prevent default scopes in non-user scenarios
|
|
4688
|
+
* @param scopeSet
|
|
4689
|
+
* @param addOidcScopes
|
|
4690
|
+
*/
|
|
4691
|
+
function addScopes(parameters, scopes, addOidcScopes = true, defaultScopes = OIDC_DEFAULT_SCOPES) {
|
|
4692
|
+
// Always add openid to the scopes when adding OIDC scopes
|
|
4693
|
+
if (addOidcScopes &&
|
|
4694
|
+
!defaultScopes.includes("openid") &&
|
|
4695
|
+
!scopes.includes("openid")) {
|
|
4696
|
+
defaultScopes.push("openid");
|
|
4697
|
+
}
|
|
4698
|
+
const requestScopes = addOidcScopes
|
|
4699
|
+
? [...(scopes || []), ...defaultScopes]
|
|
4700
|
+
: scopes || [];
|
|
4701
|
+
const scopeSet = new ScopeSet(requestScopes);
|
|
4702
|
+
parameters.set(SCOPE, scopeSet.printScopes());
|
|
4703
|
+
}
|
|
4704
|
+
/**
|
|
4705
|
+
* add clientId
|
|
4706
|
+
* @param clientId
|
|
4707
|
+
*/
|
|
4708
|
+
function addClientId(parameters, clientId) {
|
|
4709
|
+
parameters.set(CLIENT_ID, clientId);
|
|
4710
|
+
}
|
|
4711
|
+
/**
|
|
4712
|
+
* add redirect_uri
|
|
4713
|
+
* @param redirectUri
|
|
4714
|
+
*/
|
|
4715
|
+
function addRedirectUri(parameters, redirectUri) {
|
|
4716
|
+
parameters.set(REDIRECT_URI, redirectUri);
|
|
4717
|
+
}
|
|
4718
|
+
/**
|
|
4719
|
+
* add post logout redirectUri
|
|
4720
|
+
* @param redirectUri
|
|
4721
|
+
*/
|
|
4722
|
+
function addPostLogoutRedirectUri(parameters, redirectUri) {
|
|
4723
|
+
parameters.set(POST_LOGOUT_URI, redirectUri);
|
|
4724
|
+
}
|
|
4725
|
+
/**
|
|
4726
|
+
* add id_token_hint to logout request
|
|
4727
|
+
* @param idTokenHint
|
|
4728
|
+
*/
|
|
4729
|
+
function addIdTokenHint(parameters, idTokenHint) {
|
|
4730
|
+
parameters.set(ID_TOKEN_HINT, idTokenHint);
|
|
4731
|
+
}
|
|
4732
|
+
/**
|
|
4733
|
+
* add domain_hint
|
|
4734
|
+
* @param domainHint
|
|
4735
|
+
*/
|
|
4736
|
+
function addDomainHint(parameters, domainHint) {
|
|
4737
|
+
parameters.set(DOMAIN_HINT, domainHint);
|
|
4738
|
+
}
|
|
4739
|
+
/**
|
|
4740
|
+
* add login_hint
|
|
4741
|
+
* @param loginHint
|
|
4742
|
+
*/
|
|
4743
|
+
function addLoginHint(parameters, loginHint) {
|
|
4744
|
+
parameters.set(LOGIN_HINT, loginHint);
|
|
4745
|
+
}
|
|
4746
|
+
/**
|
|
4747
|
+
* Adds the CCS (Cache Credential Service) query parameter for login_hint
|
|
4748
|
+
* @param loginHint
|
|
4749
|
+
*/
|
|
4750
|
+
function addCcsUpn(parameters, loginHint) {
|
|
4751
|
+
parameters.set(HeaderNames.CCS_HEADER, `UPN:${loginHint}`);
|
|
4752
|
+
}
|
|
4753
|
+
/**
|
|
4754
|
+
* Adds the CCS (Cache Credential Service) query parameter for account object
|
|
4755
|
+
* @param loginHint
|
|
4756
|
+
*/
|
|
4757
|
+
function addCcsOid(parameters, clientInfo) {
|
|
4758
|
+
parameters.set(HeaderNames.CCS_HEADER, `Oid:${clientInfo.uid}@${clientInfo.utid}`);
|
|
4759
|
+
}
|
|
4760
|
+
/**
|
|
4761
|
+
* add sid
|
|
4762
|
+
* @param sid
|
|
4763
|
+
*/
|
|
4764
|
+
function addSid(parameters, sid) {
|
|
4765
|
+
parameters.set(SID, sid);
|
|
4766
|
+
}
|
|
4767
|
+
/**
|
|
4768
|
+
* add claims
|
|
4769
|
+
* @param claims
|
|
4770
|
+
*/
|
|
4771
|
+
function addClaims(parameters, claims, clientCapabilities) {
|
|
4772
|
+
const mergedClaims = addClientCapabilitiesToClaims(claims, clientCapabilities);
|
|
4773
|
+
try {
|
|
4774
|
+
JSON.parse(mergedClaims);
|
|
4775
|
+
}
|
|
4776
|
+
catch (e) {
|
|
4777
|
+
throw createClientConfigurationError(invalidClaims);
|
|
4778
|
+
}
|
|
4779
|
+
parameters.set(CLAIMS, mergedClaims);
|
|
4780
|
+
}
|
|
4781
|
+
/**
|
|
4782
|
+
* add correlationId
|
|
4783
|
+
* @param correlationId
|
|
4784
|
+
*/
|
|
4785
|
+
function addCorrelationId(parameters, correlationId) {
|
|
4786
|
+
parameters.set(CLIENT_REQUEST_ID, correlationId);
|
|
4787
|
+
}
|
|
4788
|
+
/**
|
|
4789
|
+
* add library info query params
|
|
4790
|
+
* @param libraryInfo
|
|
4791
|
+
*/
|
|
4792
|
+
function addLibraryInfo(parameters, libraryInfo) {
|
|
4793
|
+
// Telemetry Info
|
|
4794
|
+
parameters.set(X_CLIENT_SKU, libraryInfo.sku);
|
|
4795
|
+
parameters.set(X_CLIENT_VER, libraryInfo.version);
|
|
4796
|
+
if (libraryInfo.os) {
|
|
4797
|
+
parameters.set(X_CLIENT_OS, libraryInfo.os);
|
|
4798
|
+
}
|
|
4799
|
+
if (libraryInfo.cpu) {
|
|
4800
|
+
parameters.set(X_CLIENT_CPU, libraryInfo.cpu);
|
|
4801
|
+
}
|
|
4802
|
+
}
|
|
4803
|
+
/**
|
|
4804
|
+
* Add client telemetry parameters
|
|
4805
|
+
* @param appTelemetry
|
|
4806
|
+
*/
|
|
4807
|
+
function addApplicationTelemetry(parameters, appTelemetry) {
|
|
4808
|
+
if (appTelemetry?.appName) {
|
|
4809
|
+
parameters.set(X_APP_NAME, appTelemetry.appName);
|
|
4810
|
+
}
|
|
4811
|
+
if (appTelemetry?.appVersion) {
|
|
4812
|
+
parameters.set(X_APP_VER, appTelemetry.appVersion);
|
|
4813
|
+
}
|
|
4814
|
+
}
|
|
4815
|
+
/**
|
|
4816
|
+
* add prompt
|
|
4817
|
+
* @param prompt
|
|
4818
|
+
*/
|
|
4819
|
+
function addPrompt(parameters, prompt) {
|
|
4820
|
+
parameters.set(PROMPT, prompt);
|
|
4821
|
+
}
|
|
4822
|
+
/**
|
|
4823
|
+
* add state
|
|
4824
|
+
* @param state
|
|
4825
|
+
*/
|
|
4826
|
+
function addState(parameters, state) {
|
|
4827
|
+
if (state) {
|
|
4828
|
+
parameters.set(STATE, state);
|
|
4829
|
+
}
|
|
4830
|
+
}
|
|
4831
|
+
/**
|
|
4832
|
+
* add nonce
|
|
4833
|
+
* @param nonce
|
|
4834
|
+
*/
|
|
4835
|
+
function addNonce(parameters, nonce) {
|
|
4836
|
+
parameters.set(NONCE, nonce);
|
|
4837
|
+
}
|
|
4838
|
+
/**
|
|
4839
|
+
* add code_challenge and code_challenge_method
|
|
4840
|
+
* - throw if either of them are not passed
|
|
4841
|
+
* @param codeChallenge
|
|
4842
|
+
* @param codeChallengeMethod
|
|
4843
|
+
*/
|
|
4844
|
+
function addCodeChallengeParams(parameters, codeChallenge, codeChallengeMethod) {
|
|
4845
|
+
if (codeChallenge && codeChallengeMethod) {
|
|
4846
|
+
parameters.set(CODE_CHALLENGE, codeChallenge);
|
|
4847
|
+
parameters.set(CODE_CHALLENGE_METHOD, codeChallengeMethod);
|
|
4848
|
+
}
|
|
4849
|
+
else {
|
|
4850
|
+
throw createClientConfigurationError(pkceParamsMissing);
|
|
4851
|
+
}
|
|
4852
|
+
}
|
|
4853
|
+
/**
|
|
4854
|
+
* add the `authorization_code` passed by the user to exchange for a token
|
|
4855
|
+
* @param code
|
|
4856
|
+
*/
|
|
4857
|
+
function addAuthorizationCode(parameters, code) {
|
|
4858
|
+
parameters.set(CODE, code);
|
|
4859
|
+
}
|
|
4860
|
+
/**
|
|
4861
|
+
* add the `refreshToken` passed by the user
|
|
4862
|
+
* @param refreshToken
|
|
4863
|
+
*/
|
|
4864
|
+
function addRefreshToken(parameters, refreshToken) {
|
|
4865
|
+
parameters.set(REFRESH_TOKEN, refreshToken);
|
|
4866
|
+
}
|
|
4867
|
+
/**
|
|
4868
|
+
* add the `code_verifier` passed by the user to exchange for a token
|
|
4869
|
+
* @param codeVerifier
|
|
4870
|
+
*/
|
|
4871
|
+
function addCodeVerifier(parameters, codeVerifier) {
|
|
4872
|
+
parameters.set(CODE_VERIFIER, codeVerifier);
|
|
4873
|
+
}
|
|
4874
|
+
/**
|
|
4875
|
+
* add client_secret
|
|
4876
|
+
* @param clientSecret
|
|
4877
|
+
*/
|
|
4878
|
+
function addClientSecret(parameters, clientSecret) {
|
|
4879
|
+
parameters.set(CLIENT_SECRET, clientSecret);
|
|
4880
|
+
}
|
|
4881
|
+
/**
|
|
4882
|
+
* add clientAssertion for confidential client flows
|
|
4883
|
+
* @param clientAssertion
|
|
4884
|
+
*/
|
|
4885
|
+
function addClientAssertion(parameters, clientAssertion) {
|
|
4886
|
+
if (clientAssertion) {
|
|
4887
|
+
parameters.set(CLIENT_ASSERTION, clientAssertion);
|
|
4888
|
+
}
|
|
4889
|
+
}
|
|
4890
|
+
/**
|
|
4891
|
+
* add clientAssertionType for confidential client flows
|
|
4892
|
+
* @param clientAssertionType
|
|
4893
|
+
*/
|
|
4894
|
+
function addClientAssertionType(parameters, clientAssertionType) {
|
|
4895
|
+
if (clientAssertionType) {
|
|
4896
|
+
parameters.set(CLIENT_ASSERTION_TYPE, clientAssertionType);
|
|
4897
|
+
}
|
|
4898
|
+
}
|
|
4899
|
+
/**
|
|
4900
|
+
* add grant type
|
|
4901
|
+
* @param grantType
|
|
4902
|
+
*/
|
|
4903
|
+
function addGrantType(parameters, grantType) {
|
|
4904
|
+
parameters.set(GRANT_TYPE, grantType);
|
|
4905
|
+
}
|
|
4906
|
+
/**
|
|
4907
|
+
* add client info
|
|
4958
4908
|
*
|
|
4959
|
-
* @export
|
|
4960
|
-
* @enum {number}
|
|
4961
4909
|
*/
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4910
|
+
function addClientInfo(parameters) {
|
|
4911
|
+
parameters.set(CLIENT_INFO, "1");
|
|
4912
|
+
}
|
|
4913
|
+
function addInstanceAware(parameters) {
|
|
4914
|
+
if (!parameters.has(INSTANCE_AWARE)) {
|
|
4915
|
+
parameters.set(INSTANCE_AWARE, "true");
|
|
4916
|
+
}
|
|
4917
|
+
}
|
|
4918
|
+
/**
|
|
4919
|
+
* add extraQueryParams
|
|
4920
|
+
* @param eQParams
|
|
4921
|
+
*/
|
|
4922
|
+
function addExtraQueryParameters(parameters, eQParams) {
|
|
4923
|
+
Object.entries(eQParams).forEach(([key, value]) => {
|
|
4924
|
+
if (!parameters.has(key) && value) {
|
|
4925
|
+
parameters.set(key, value);
|
|
4926
|
+
}
|
|
4927
|
+
});
|
|
4928
|
+
}
|
|
4929
|
+
function addClientCapabilitiesToClaims(claims, clientCapabilities) {
|
|
4930
|
+
let mergedClaims;
|
|
4931
|
+
// Parse provided claims into JSON object or initialize empty object
|
|
4932
|
+
if (!claims) {
|
|
4933
|
+
mergedClaims = {};
|
|
4934
|
+
}
|
|
4935
|
+
else {
|
|
4936
|
+
try {
|
|
4937
|
+
mergedClaims = JSON.parse(claims);
|
|
4938
|
+
}
|
|
4939
|
+
catch (e) {
|
|
4940
|
+
throw createClientConfigurationError(invalidClaims);
|
|
4941
|
+
}
|
|
4942
|
+
}
|
|
4943
|
+
if (clientCapabilities && clientCapabilities.length > 0) {
|
|
4944
|
+
if (!mergedClaims.hasOwnProperty(ClaimsRequestKeys.ACCESS_TOKEN)) {
|
|
4945
|
+
// Add access_token key to claims object
|
|
4946
|
+
mergedClaims[ClaimsRequestKeys.ACCESS_TOKEN] = {};
|
|
4947
|
+
}
|
|
4948
|
+
// Add xms_cc claim with provided clientCapabilities to access_token key
|
|
4949
|
+
mergedClaims[ClaimsRequestKeys.ACCESS_TOKEN][ClaimsRequestKeys.XMS_CC] =
|
|
4950
|
+
{
|
|
4951
|
+
values: clientCapabilities,
|
|
4952
|
+
};
|
|
4953
|
+
}
|
|
4954
|
+
return JSON.stringify(mergedClaims);
|
|
4955
|
+
}
|
|
4956
|
+
/**
|
|
4957
|
+
* add pop_jwk to query params
|
|
4958
|
+
* @param cnfString
|
|
4959
|
+
*/
|
|
4960
|
+
function addPopToken(parameters, cnfString) {
|
|
4961
|
+
if (cnfString) {
|
|
4962
|
+
parameters.set(TOKEN_TYPE, AuthenticationScheme.POP);
|
|
4963
|
+
parameters.set(REQ_CNF, cnfString);
|
|
4964
|
+
}
|
|
4965
|
+
}
|
|
4966
|
+
/**
|
|
4967
|
+
* add SSH JWK and key ID to query params
|
|
4968
|
+
*/
|
|
4969
|
+
function addSshJwk(parameters, sshJwkString) {
|
|
4970
|
+
if (sshJwkString) {
|
|
4971
|
+
parameters.set(TOKEN_TYPE, AuthenticationScheme.SSH);
|
|
4972
|
+
parameters.set(REQ_CNF, sshJwkString);
|
|
4973
|
+
}
|
|
4974
|
+
}
|
|
4975
|
+
/**
|
|
4976
|
+
* add server telemetry fields
|
|
4977
|
+
* @param serverTelemetryManager
|
|
4978
|
+
*/
|
|
4979
|
+
function addServerTelemetry(parameters, serverTelemetryManager) {
|
|
4980
|
+
parameters.set(X_CLIENT_CURR_TELEM, serverTelemetryManager.generateCurrentRequestHeaderValue());
|
|
4981
|
+
parameters.set(X_CLIENT_LAST_TELEM, serverTelemetryManager.generateLastRequestHeaderValue());
|
|
4982
|
+
}
|
|
4983
|
+
/**
|
|
4984
|
+
* Adds parameter that indicates to the server that throttling is supported
|
|
4985
|
+
*/
|
|
4986
|
+
function addThrottling(parameters) {
|
|
4987
|
+
parameters.set(X_MS_LIB_CAPABILITY, ThrottlingConstants.X_MS_LIB_CAPABILITY_VALUE);
|
|
4988
|
+
}
|
|
4989
|
+
/**
|
|
4990
|
+
* Adds logout_hint parameter for "silent" logout which prevent server account picker
|
|
4991
|
+
*/
|
|
4992
|
+
function addLogoutHint(parameters, logoutHint) {
|
|
4993
|
+
parameters.set(LOGOUT_HINT, logoutHint);
|
|
4994
|
+
}
|
|
4995
|
+
function addBrokerParameters(parameters, brokerClientId, brokerRedirectUri) {
|
|
4996
|
+
if (!parameters.has(BROKER_CLIENT_ID)) {
|
|
4997
|
+
parameters.set(BROKER_CLIENT_ID, brokerClientId);
|
|
4998
|
+
}
|
|
4999
|
+
if (!parameters.has(BROKER_REDIRECT_URI)) {
|
|
5000
|
+
parameters.set(BROKER_REDIRECT_URI, brokerRedirectUri);
|
|
5001
|
+
}
|
|
5002
|
+
}
|
|
5003
|
+
/**
|
|
5004
|
+
* Add EAR (Encrypted Authorize Response) request parameters
|
|
5005
|
+
* @param parameters
|
|
5006
|
+
* @param jwk
|
|
5007
|
+
*/
|
|
5008
|
+
function addEARParameters(parameters, jwk) {
|
|
5009
|
+
parameters.set(EAR_JWK, encodeURIComponent(jwk));
|
|
5010
|
+
// ear_jwe_crypto will always have value: {"alg":"dir","enc":"A256GCM"} so we can hardcode this
|
|
5011
|
+
const jweCryptoB64Encoded = "eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIn0";
|
|
5012
|
+
parameters.set(EAR_JWE_CRYPTO, jweCryptoB64Encoded);
|
|
5013
|
+
}
|
|
5014
|
+
|
|
5015
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
5016
|
+
/*
|
|
5017
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5018
|
+
* Licensed under the MIT License.
|
|
5019
|
+
*/
|
|
5020
|
+
function isOpenIdConfigResponse(response) {
|
|
5021
|
+
return (response.hasOwnProperty("authorization_endpoint") &&
|
|
5022
|
+
response.hasOwnProperty("token_endpoint") &&
|
|
5023
|
+
response.hasOwnProperty("issuer") &&
|
|
5024
|
+
response.hasOwnProperty("jwks_uri"));
|
|
5025
|
+
}
|
|
5026
|
+
|
|
5027
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
5028
|
+
/*
|
|
5029
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5030
|
+
* Licensed under the MIT License.
|
|
5031
|
+
*/
|
|
5032
|
+
function isCloudInstanceDiscoveryResponse(response) {
|
|
5033
|
+
return (response.hasOwnProperty("tenant_discovery_endpoint") &&
|
|
5034
|
+
response.hasOwnProperty("metadata"));
|
|
5035
|
+
}
|
|
5036
|
+
|
|
5037
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
5038
|
+
/*
|
|
5039
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5040
|
+
* Licensed under the MIT License.
|
|
5041
|
+
*/
|
|
5042
|
+
function isCloudInstanceDiscoveryErrorResponse(response) {
|
|
5043
|
+
return (response.hasOwnProperty("error") &&
|
|
5044
|
+
response.hasOwnProperty("error_description"));
|
|
5045
|
+
}
|
|
4983
5046
|
|
|
4984
|
-
/*! @azure/msal-common v15.
|
|
5047
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
4985
5048
|
/*
|
|
4986
5049
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4987
5050
|
* Licensed under the MIT License.
|
|
@@ -5077,7 +5140,7 @@
|
|
|
5077
5140
|
};
|
|
5078
5141
|
};
|
|
5079
5142
|
|
|
5080
|
-
/*! @azure/msal-common v15.
|
|
5143
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
5081
5144
|
|
|
5082
5145
|
/*
|
|
5083
5146
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5183,7 +5246,7 @@
|
|
|
5183
5246
|
},
|
|
5184
5247
|
};
|
|
5185
5248
|
|
|
5186
|
-
/*! @azure/msal-common v15.
|
|
5249
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
5187
5250
|
|
|
5188
5251
|
/*
|
|
5189
5252
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6022,7 +6085,7 @@
|
|
|
6022
6085
|
};
|
|
6023
6086
|
}
|
|
6024
6087
|
|
|
6025
|
-
/*! @azure/msal-common v15.
|
|
6088
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
6026
6089
|
|
|
6027
6090
|
/*
|
|
6028
6091
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6053,7 +6116,7 @@
|
|
|
6053
6116
|
}
|
|
6054
6117
|
}
|
|
6055
6118
|
|
|
6056
|
-
/*! @azure/msal-common v15.
|
|
6119
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
6057
6120
|
|
|
6058
6121
|
/*
|
|
6059
6122
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6072,7 +6135,7 @@
|
|
|
6072
6135
|
}
|
|
6073
6136
|
}
|
|
6074
6137
|
|
|
6075
|
-
/*! @azure/msal-common v15.
|
|
6138
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
6076
6139
|
/*
|
|
6077
6140
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6078
6141
|
* Licensed under the MIT License.
|
|
@@ -6093,7 +6156,7 @@
|
|
|
6093
6156
|
};
|
|
6094
6157
|
}
|
|
6095
6158
|
|
|
6096
|
-
/*! @azure/msal-common v15.
|
|
6159
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
6097
6160
|
|
|
6098
6161
|
/*
|
|
6099
6162
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6113,12 +6176,12 @@
|
|
|
6113
6176
|
* @param cacheManager
|
|
6114
6177
|
* @param thumbprint
|
|
6115
6178
|
*/
|
|
6116
|
-
static preProcess(cacheManager, thumbprint) {
|
|
6179
|
+
static preProcess(cacheManager, thumbprint, correlationId) {
|
|
6117
6180
|
const key = ThrottlingUtils.generateThrottlingStorageKey(thumbprint);
|
|
6118
6181
|
const value = cacheManager.getThrottlingCache(key);
|
|
6119
6182
|
if (value) {
|
|
6120
6183
|
if (value.throttleTime < Date.now()) {
|
|
6121
|
-
cacheManager.removeItem(key);
|
|
6184
|
+
cacheManager.removeItem(key, correlationId);
|
|
6122
6185
|
return;
|
|
6123
6186
|
}
|
|
6124
6187
|
throw new ServerError(value.errorCodes?.join(" ") || Constants.EMPTY_STRING, value.errorMessage, value.subError);
|
|
@@ -6130,7 +6193,7 @@
|
|
|
6130
6193
|
* @param thumbprint
|
|
6131
6194
|
* @param response
|
|
6132
6195
|
*/
|
|
6133
|
-
static postProcess(cacheManager, thumbprint, response) {
|
|
6196
|
+
static postProcess(cacheManager, thumbprint, response, correlationId) {
|
|
6134
6197
|
if (ThrottlingUtils.checkResponseStatus(response) ||
|
|
6135
6198
|
ThrottlingUtils.checkResponseForRetryAfter(response)) {
|
|
6136
6199
|
const thumbprintValue = {
|
|
@@ -6140,7 +6203,7 @@
|
|
|
6140
6203
|
errorMessage: response.body.error_description,
|
|
6141
6204
|
subError: response.body.suberror,
|
|
6142
6205
|
};
|
|
6143
|
-
cacheManager.setThrottlingCache(ThrottlingUtils.generateThrottlingStorageKey(thumbprint), thumbprintValue);
|
|
6206
|
+
cacheManager.setThrottlingCache(ThrottlingUtils.generateThrottlingStorageKey(thumbprint), thumbprintValue, correlationId);
|
|
6144
6207
|
}
|
|
6145
6208
|
}
|
|
6146
6209
|
/**
|
|
@@ -6176,11 +6239,11 @@
|
|
|
6176
6239
|
static removeThrottle(cacheManager, clientId, request, homeAccountIdentifier) {
|
|
6177
6240
|
const thumbprint = getRequestThumbprint(clientId, request, homeAccountIdentifier);
|
|
6178
6241
|
const key = this.generateThrottlingStorageKey(thumbprint);
|
|
6179
|
-
cacheManager.removeItem(key);
|
|
6242
|
+
cacheManager.removeItem(key, request.correlationId);
|
|
6180
6243
|
}
|
|
6181
6244
|
}
|
|
6182
6245
|
|
|
6183
|
-
/*! @azure/msal-common v15.
|
|
6246
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
6184
6247
|
|
|
6185
6248
|
/*
|
|
6186
6249
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6211,7 +6274,7 @@
|
|
|
6211
6274
|
return new NetworkError(error, httpStatus, responseHeaders);
|
|
6212
6275
|
}
|
|
6213
6276
|
|
|
6214
|
-
/*! @azure/msal-common v15.
|
|
6277
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
6215
6278
|
|
|
6216
6279
|
/*
|
|
6217
6280
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6293,7 +6356,7 @@
|
|
|
6293
6356
|
* @param correlationId - CorrelationId for telemetry
|
|
6294
6357
|
*/
|
|
6295
6358
|
async sendPostRequest(thumbprint, tokenEndpoint, options, correlationId) {
|
|
6296
|
-
ThrottlingUtils.preProcess(this.cacheManager, thumbprint);
|
|
6359
|
+
ThrottlingUtils.preProcess(this.cacheManager, thumbprint, correlationId);
|
|
6297
6360
|
let response;
|
|
6298
6361
|
try {
|
|
6299
6362
|
response = await invokeAsync((this.networkClient.sendPostRequestAsync.bind(this.networkClient)), PerformanceEvents.NetworkClientSendPostRequestAsync, this.logger, this.performanceClient, correlationId)(tokenEndpoint, options);
|
|
@@ -6328,7 +6391,7 @@
|
|
|
6328
6391
|
throw createClientAuthError(networkError);
|
|
6329
6392
|
}
|
|
6330
6393
|
}
|
|
6331
|
-
ThrottlingUtils.postProcess(this.cacheManager, thumbprint, response);
|
|
6394
|
+
ThrottlingUtils.postProcess(this.cacheManager, thumbprint, response, correlationId);
|
|
6332
6395
|
return response;
|
|
6333
6396
|
}
|
|
6334
6397
|
/**
|
|
@@ -6359,7 +6422,7 @@
|
|
|
6359
6422
|
}
|
|
6360
6423
|
}
|
|
6361
6424
|
|
|
6362
|
-
/*! @azure/msal-common v15.
|
|
6425
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
6363
6426
|
/*
|
|
6364
6427
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6365
6428
|
* Licensed under the MIT License.
|
|
@@ -6368,6 +6431,7 @@
|
|
|
6368
6431
|
const noTokensFound = "no_tokens_found";
|
|
6369
6432
|
const nativeAccountUnavailable = "native_account_unavailable";
|
|
6370
6433
|
const refreshTokenExpired = "refresh_token_expired";
|
|
6434
|
+
const uxNotAllowed = "ux_not_allowed";
|
|
6371
6435
|
// Codes potentially returned by server
|
|
6372
6436
|
const interactionRequired = "interaction_required";
|
|
6373
6437
|
const consentRequired = "consent_required";
|
|
@@ -6382,10 +6446,11 @@
|
|
|
6382
6446
|
loginRequired: loginRequired,
|
|
6383
6447
|
nativeAccountUnavailable: nativeAccountUnavailable,
|
|
6384
6448
|
noTokensFound: noTokensFound,
|
|
6385
|
-
refreshTokenExpired: refreshTokenExpired
|
|
6449
|
+
refreshTokenExpired: refreshTokenExpired,
|
|
6450
|
+
uxNotAllowed: uxNotAllowed
|
|
6386
6451
|
});
|
|
6387
6452
|
|
|
6388
|
-
/*! @azure/msal-common v15.
|
|
6453
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
6389
6454
|
|
|
6390
6455
|
/*
|
|
6391
6456
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6399,6 +6464,7 @@
|
|
|
6399
6464
|
consentRequired,
|
|
6400
6465
|
loginRequired,
|
|
6401
6466
|
badToken,
|
|
6467
|
+
uxNotAllowed,
|
|
6402
6468
|
];
|
|
6403
6469
|
const InteractionRequiredAuthSubErrorMessage = [
|
|
6404
6470
|
"message_only",
|
|
@@ -6413,6 +6479,7 @@
|
|
|
6413
6479
|
[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.",
|
|
6414
6480
|
[refreshTokenExpired]: "Refresh token has expired.",
|
|
6415
6481
|
[badToken]: "Identity provider returned bad_token due to an expired or invalid refresh token. Please invoke an interactive API to resolve.",
|
|
6482
|
+
[uxNotAllowed]: "`canShowUI` flag in Edge was set to false. User interaction required on web page. Please invoke an interactive API to resolve.",
|
|
6416
6483
|
};
|
|
6417
6484
|
/**
|
|
6418
6485
|
* Interaction required errors defined by the SDK
|
|
@@ -6473,7 +6540,7 @@
|
|
|
6473
6540
|
return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
|
|
6474
6541
|
}
|
|
6475
6542
|
|
|
6476
|
-
/*! @azure/msal-common v15.
|
|
6543
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
6477
6544
|
|
|
6478
6545
|
/*
|
|
6479
6546
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6545,16 +6612,14 @@
|
|
|
6545
6612
|
}
|
|
6546
6613
|
}
|
|
6547
6614
|
|
|
6548
|
-
/*! @azure/msal-common v15.
|
|
6615
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
6549
6616
|
|
|
6550
6617
|
/*
|
|
6551
6618
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6552
6619
|
* Licensed under the MIT License.
|
|
6553
6620
|
*/
|
|
6554
6621
|
const KeyLocation = {
|
|
6555
|
-
SW: "sw"
|
|
6556
|
-
UHW: "uhw",
|
|
6557
|
-
};
|
|
6622
|
+
SW: "sw"};
|
|
6558
6623
|
/** @internal */
|
|
6559
6624
|
class PopTokenGenerator {
|
|
6560
6625
|
constructor(cryptoUtils, performanceClient) {
|
|
@@ -6629,7 +6694,7 @@
|
|
|
6629
6694
|
}
|
|
6630
6695
|
}
|
|
6631
6696
|
|
|
6632
|
-
/*! @azure/msal-common v15.
|
|
6697
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
6633
6698
|
/*
|
|
6634
6699
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6635
6700
|
* Licensed under the MIT License.
|
|
@@ -6656,7 +6721,7 @@
|
|
|
6656
6721
|
}
|
|
6657
6722
|
}
|
|
6658
6723
|
|
|
6659
|
-
/*! @azure/msal-common v15.
|
|
6724
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
6660
6725
|
|
|
6661
6726
|
/*
|
|
6662
6727
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6769,7 +6834,7 @@
|
|
|
6769
6834
|
!forceCacheRefreshTokenResponse &&
|
|
6770
6835
|
cacheRecord.account) {
|
|
6771
6836
|
const key = cacheRecord.account.generateAccountKey();
|
|
6772
|
-
const account = this.cacheStorage.getAccount(key);
|
|
6837
|
+
const account = this.cacheStorage.getAccount(key, request.correlationId);
|
|
6773
6838
|
if (!account) {
|
|
6774
6839
|
this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache");
|
|
6775
6840
|
return await ResponseHandler.generateAuthenticationResult(this.cryptoObj, authority, cacheRecord, false, request, idTokenClaims, requestStateObj, undefined, serverRequestId);
|
|
@@ -6804,7 +6869,7 @@
|
|
|
6804
6869
|
let cachedAccount;
|
|
6805
6870
|
if (serverTokenResponse.id_token && !!idTokenClaims) {
|
|
6806
6871
|
cachedIdToken = createIdTokenEntity(this.homeAccountIdentifier, env, serverTokenResponse.id_token, this.clientId, claimsTenantId || "");
|
|
6807
|
-
cachedAccount = buildAccountToCache(this.cacheStorage, authority, this.homeAccountIdentifier, this.cryptoObj.base64Decode, idTokenClaims, serverTokenResponse.client_info, env, claimsTenantId, authCodePayload, undefined, // nativeAccountId
|
|
6872
|
+
cachedAccount = buildAccountToCache(this.cacheStorage, authority, this.homeAccountIdentifier, this.cryptoObj.base64Decode, request.correlationId, idTokenClaims, serverTokenResponse.client_info, env, claimsTenantId, authCodePayload, undefined, // nativeAccountId
|
|
6808
6873
|
this.logger);
|
|
6809
6874
|
}
|
|
6810
6875
|
// AccessToken
|
|
@@ -6953,7 +7018,7 @@
|
|
|
6953
7018
|
};
|
|
6954
7019
|
}
|
|
6955
7020
|
}
|
|
6956
|
-
function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decode, idTokenClaims, clientInfo, environment, claimsTenantId, authCodePayload, nativeAccountId, logger) {
|
|
7021
|
+
function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decode, correlationId, idTokenClaims, clientInfo, environment, claimsTenantId, authCodePayload, nativeAccountId, logger) {
|
|
6957
7022
|
logger?.verbose("setCachedAccount called");
|
|
6958
7023
|
// Check if base account is already cached
|
|
6959
7024
|
const accountKeys = cacheStorage.getAccountKeys();
|
|
@@ -6962,7 +7027,7 @@
|
|
|
6962
7027
|
});
|
|
6963
7028
|
let cachedAccount = null;
|
|
6964
7029
|
if (baseAccountKey) {
|
|
6965
|
-
cachedAccount = cacheStorage.getAccount(baseAccountKey);
|
|
7030
|
+
cachedAccount = cacheStorage.getAccount(baseAccountKey, correlationId);
|
|
6966
7031
|
}
|
|
6967
7032
|
const baseAccount = cachedAccount ||
|
|
6968
7033
|
AccountEntity.createAccount({
|
|
@@ -6987,7 +7052,7 @@
|
|
|
6987
7052
|
return baseAccount;
|
|
6988
7053
|
}
|
|
6989
7054
|
|
|
6990
|
-
/*! @azure/msal-common v15.
|
|
7055
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
6991
7056
|
|
|
6992
7057
|
/*
|
|
6993
7058
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7054,7 +7119,7 @@
|
|
|
7054
7119
|
}
|
|
7055
7120
|
}
|
|
7056
7121
|
|
|
7057
|
-
/*! @azure/msal-common v15.
|
|
7122
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
7058
7123
|
/*
|
|
7059
7124
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7060
7125
|
* Licensed under the MIT License.
|
|
@@ -7072,7 +7137,7 @@
|
|
|
7072
7137
|
}
|
|
7073
7138
|
}
|
|
7074
7139
|
|
|
7075
|
-
/*! @azure/msal-common v15.
|
|
7140
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
7076
7141
|
|
|
7077
7142
|
/*
|
|
7078
7143
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7305,7 +7370,7 @@
|
|
|
7305
7370
|
}
|
|
7306
7371
|
}
|
|
7307
7372
|
|
|
7308
|
-
/*! @azure/msal-common v15.
|
|
7373
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
7309
7374
|
|
|
7310
7375
|
/*
|
|
7311
7376
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7378,7 +7443,7 @@
|
|
|
7378
7443
|
async acquireTokenWithCachedRefreshToken(request, foci) {
|
|
7379
7444
|
this.performanceClient?.addQueueMeasurement(PerformanceEvents.RefreshTokenClientAcquireTokenWithCachedRefreshToken, request.correlationId);
|
|
7380
7445
|
// fetches family RT or application RT based on FOCI value
|
|
7381
|
-
const refreshToken = invoke(this.cacheManager.getRefreshToken.bind(this.cacheManager), PerformanceEvents.CacheManagerGetRefreshToken, this.logger, this.performanceClient, request.correlationId)(request.account, foci, undefined, this.performanceClient
|
|
7446
|
+
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);
|
|
7382
7447
|
if (!refreshToken) {
|
|
7383
7448
|
throw createInteractionRequiredAuthError(noTokensFound);
|
|
7384
7449
|
}
|
|
@@ -7408,7 +7473,7 @@
|
|
|
7408
7473
|
// Remove bad refresh token from cache
|
|
7409
7474
|
this.logger.verbose("acquireTokenWithRefreshToken: bad refresh token, removing from cache");
|
|
7410
7475
|
const badRefreshTokenKey = generateCredentialKey(refreshToken);
|
|
7411
|
-
this.cacheManager.removeRefreshToken(badRefreshTokenKey);
|
|
7476
|
+
this.cacheManager.removeRefreshToken(badRefreshTokenKey, request.correlationId);
|
|
7412
7477
|
}
|
|
7413
7478
|
}
|
|
7414
7479
|
throw e;
|
|
@@ -7514,7 +7579,7 @@
|
|
|
7514
7579
|
}
|
|
7515
7580
|
}
|
|
7516
7581
|
|
|
7517
|
-
/*! @azure/msal-common v15.
|
|
7582
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
7518
7583
|
|
|
7519
7584
|
/*
|
|
7520
7585
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7546,7 +7611,7 @@
|
|
|
7546
7611
|
const requestTenantId = request.account.tenantId ||
|
|
7547
7612
|
getTenantFromAuthorityString(request.authority);
|
|
7548
7613
|
const tokenKeys = this.cacheManager.getTokenKeys();
|
|
7549
|
-
const cachedAccessToken = this.cacheManager.getAccessToken(request.account, request, tokenKeys, requestTenantId
|
|
7614
|
+
const cachedAccessToken = this.cacheManager.getAccessToken(request.account, request, tokenKeys, requestTenantId);
|
|
7550
7615
|
if (!cachedAccessToken) {
|
|
7551
7616
|
// must refresh due to non-existent access_token
|
|
7552
7617
|
this.setCacheOutcome(CacheOutcome.NO_CACHED_ACCESS_TOKEN, request.correlationId);
|
|
@@ -7566,9 +7631,9 @@
|
|
|
7566
7631
|
}
|
|
7567
7632
|
const environment = request.authority || this.authority.getPreferredCache();
|
|
7568
7633
|
const cacheRecord = {
|
|
7569
|
-
account: this.cacheManager.readAccountFromCache(request.account),
|
|
7634
|
+
account: this.cacheManager.readAccountFromCache(request.account, request.correlationId),
|
|
7570
7635
|
accessToken: cachedAccessToken,
|
|
7571
|
-
idToken: this.cacheManager.getIdToken(request.account, tokenKeys, requestTenantId, this.performanceClient
|
|
7636
|
+
idToken: this.cacheManager.getIdToken(request.account, request.correlationId, tokenKeys, requestTenantId, this.performanceClient),
|
|
7572
7637
|
refreshToken: null,
|
|
7573
7638
|
appMetadata: this.cacheManager.readAppMetadataFromCache(environment),
|
|
7574
7639
|
};
|
|
@@ -7612,7 +7677,7 @@
|
|
|
7612
7677
|
}
|
|
7613
7678
|
}
|
|
7614
7679
|
|
|
7615
|
-
/*! @azure/msal-common v15.
|
|
7680
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
7616
7681
|
|
|
7617
7682
|
/*
|
|
7618
7683
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7627,7 +7692,7 @@
|
|
|
7627
7692
|
},
|
|
7628
7693
|
};
|
|
7629
7694
|
|
|
7630
|
-
/*! @azure/msal-common v15.
|
|
7695
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
7631
7696
|
|
|
7632
7697
|
/*
|
|
7633
7698
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7851,7 +7916,7 @@
|
|
|
7851
7916
|
return account.idTokenClaims?.login_hint || null;
|
|
7852
7917
|
}
|
|
7853
7918
|
|
|
7854
|
-
/*! @azure/msal-common v15.
|
|
7919
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
7855
7920
|
|
|
7856
7921
|
/*
|
|
7857
7922
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7909,7 +7974,7 @@
|
|
|
7909
7974
|
}
|
|
7910
7975
|
}
|
|
7911
7976
|
|
|
7912
|
-
/*! @azure/msal-common v15.
|
|
7977
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
7913
7978
|
|
|
7914
7979
|
/*
|
|
7915
7980
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8048,7 +8113,7 @@
|
|
|
8048
8113
|
else {
|
|
8049
8114
|
lastRequests.errors.push(SERVER_TELEM_CONSTANTS.UNKNOWN_ERROR);
|
|
8050
8115
|
}
|
|
8051
|
-
this.cacheManager.setServerTelemetry(this.telemetryCacheKey, lastRequests);
|
|
8116
|
+
this.cacheManager.setServerTelemetry(this.telemetryCacheKey, lastRequests, this.correlationId);
|
|
8052
8117
|
return;
|
|
8053
8118
|
}
|
|
8054
8119
|
/**
|
|
@@ -8057,7 +8122,7 @@
|
|
|
8057
8122
|
incrementCacheHits() {
|
|
8058
8123
|
const lastRequests = this.getLastRequests();
|
|
8059
8124
|
lastRequests.cacheHits += 1;
|
|
8060
|
-
this.cacheManager.setServerTelemetry(this.telemetryCacheKey, lastRequests);
|
|
8125
|
+
this.cacheManager.setServerTelemetry(this.telemetryCacheKey, lastRequests, this.correlationId);
|
|
8061
8126
|
return lastRequests.cacheHits;
|
|
8062
8127
|
}
|
|
8063
8128
|
/**
|
|
@@ -8081,7 +8146,7 @@
|
|
|
8081
8146
|
const errorCount = lastRequests.errors.length;
|
|
8082
8147
|
if (numErrorsFlushed === errorCount) {
|
|
8083
8148
|
// All errors were sent on last request, clear Telemetry cache
|
|
8084
|
-
this.cacheManager.removeItem(this.telemetryCacheKey);
|
|
8149
|
+
this.cacheManager.removeItem(this.telemetryCacheKey, this.correlationId);
|
|
8085
8150
|
}
|
|
8086
8151
|
else {
|
|
8087
8152
|
// Partial data was flushed to server, construct a new telemetry cache item with errors that were not flushed
|
|
@@ -8090,7 +8155,7 @@
|
|
|
8090
8155
|
errors: lastRequests.errors.slice(numErrorsFlushed),
|
|
8091
8156
|
cacheHits: 0,
|
|
8092
8157
|
};
|
|
8093
|
-
this.cacheManager.setServerTelemetry(this.telemetryCacheKey, serverTelemEntity);
|
|
8158
|
+
this.cacheManager.setServerTelemetry(this.telemetryCacheKey, serverTelemEntity, this.correlationId);
|
|
8094
8159
|
}
|
|
8095
8160
|
}
|
|
8096
8161
|
/**
|
|
@@ -8157,7 +8222,7 @@
|
|
|
8157
8222
|
setNativeBrokerErrorCode(errorCode) {
|
|
8158
8223
|
const lastRequests = this.getLastRequests();
|
|
8159
8224
|
lastRequests.nativeBrokerErrorCode = errorCode;
|
|
8160
|
-
this.cacheManager.setServerTelemetry(this.telemetryCacheKey, lastRequests);
|
|
8225
|
+
this.cacheManager.setServerTelemetry(this.telemetryCacheKey, lastRequests, this.correlationId);
|
|
8161
8226
|
}
|
|
8162
8227
|
getNativeBrokerErrorCode() {
|
|
8163
8228
|
return this.getLastRequests().nativeBrokerErrorCode;
|
|
@@ -8165,14 +8230,14 @@
|
|
|
8165
8230
|
clearNativeBrokerErrorCode() {
|
|
8166
8231
|
const lastRequests = this.getLastRequests();
|
|
8167
8232
|
delete lastRequests.nativeBrokerErrorCode;
|
|
8168
|
-
this.cacheManager.setServerTelemetry(this.telemetryCacheKey, lastRequests);
|
|
8233
|
+
this.cacheManager.setServerTelemetry(this.telemetryCacheKey, lastRequests, this.correlationId);
|
|
8169
8234
|
}
|
|
8170
8235
|
static makeExtraSkuString(params) {
|
|
8171
8236
|
return makeExtraSkuString(params);
|
|
8172
8237
|
}
|
|
8173
8238
|
}
|
|
8174
8239
|
|
|
8175
|
-
/*! @azure/msal-common v15.
|
|
8240
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
8176
8241
|
/*
|
|
8177
8242
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8178
8243
|
* Licensed under the MIT License.
|
|
@@ -8180,7 +8245,7 @@
|
|
|
8180
8245
|
const missingKidError = "missing_kid_error";
|
|
8181
8246
|
const missingAlgError = "missing_alg_error";
|
|
8182
8247
|
|
|
8183
|
-
/*! @azure/msal-common v15.
|
|
8248
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
8184
8249
|
|
|
8185
8250
|
/*
|
|
8186
8251
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8205,7 +8270,7 @@
|
|
|
8205
8270
|
return new JoseHeaderError(code, JoseHeaderErrorMessages[code]);
|
|
8206
8271
|
}
|
|
8207
8272
|
|
|
8208
|
-
/*! @azure/msal-common v15.
|
|
8273
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
8209
8274
|
|
|
8210
8275
|
/*
|
|
8211
8276
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8245,86 +8310,7 @@
|
|
|
8245
8310
|
}
|
|
8246
8311
|
}
|
|
8247
8312
|
|
|
8248
|
-
/*! @azure/msal-common v15.
|
|
8249
|
-
|
|
8250
|
-
/*
|
|
8251
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8252
|
-
* Licensed under the MIT License.
|
|
8253
|
-
*/
|
|
8254
|
-
class StubPerformanceMeasurement {
|
|
8255
|
-
startMeasurement() {
|
|
8256
|
-
return;
|
|
8257
|
-
}
|
|
8258
|
-
endMeasurement() {
|
|
8259
|
-
return;
|
|
8260
|
-
}
|
|
8261
|
-
flushMeasurement() {
|
|
8262
|
-
return null;
|
|
8263
|
-
}
|
|
8264
|
-
}
|
|
8265
|
-
class StubPerformanceClient {
|
|
8266
|
-
generateId() {
|
|
8267
|
-
return "callback-id";
|
|
8268
|
-
}
|
|
8269
|
-
startMeasurement(measureName, correlationId) {
|
|
8270
|
-
return {
|
|
8271
|
-
end: () => null,
|
|
8272
|
-
discard: () => { },
|
|
8273
|
-
add: () => { },
|
|
8274
|
-
increment: () => { },
|
|
8275
|
-
event: {
|
|
8276
|
-
eventId: this.generateId(),
|
|
8277
|
-
status: PerformanceEventStatus.InProgress,
|
|
8278
|
-
authority: "",
|
|
8279
|
-
libraryName: "",
|
|
8280
|
-
libraryVersion: "",
|
|
8281
|
-
clientId: "",
|
|
8282
|
-
name: measureName,
|
|
8283
|
-
startTimeMs: Date.now(),
|
|
8284
|
-
correlationId: correlationId || "",
|
|
8285
|
-
},
|
|
8286
|
-
measurement: new StubPerformanceMeasurement(),
|
|
8287
|
-
};
|
|
8288
|
-
}
|
|
8289
|
-
startPerformanceMeasurement() {
|
|
8290
|
-
return new StubPerformanceMeasurement();
|
|
8291
|
-
}
|
|
8292
|
-
calculateQueuedTime() {
|
|
8293
|
-
return 0;
|
|
8294
|
-
}
|
|
8295
|
-
addQueueMeasurement() {
|
|
8296
|
-
return;
|
|
8297
|
-
}
|
|
8298
|
-
setPreQueueTime() {
|
|
8299
|
-
return;
|
|
8300
|
-
}
|
|
8301
|
-
endMeasurement() {
|
|
8302
|
-
return null;
|
|
8303
|
-
}
|
|
8304
|
-
discardMeasurements() {
|
|
8305
|
-
return;
|
|
8306
|
-
}
|
|
8307
|
-
removePerformanceCallback() {
|
|
8308
|
-
return true;
|
|
8309
|
-
}
|
|
8310
|
-
addPerformanceCallback() {
|
|
8311
|
-
return "";
|
|
8312
|
-
}
|
|
8313
|
-
emitEvents() {
|
|
8314
|
-
return;
|
|
8315
|
-
}
|
|
8316
|
-
addFields() {
|
|
8317
|
-
return;
|
|
8318
|
-
}
|
|
8319
|
-
incrementFields() {
|
|
8320
|
-
return;
|
|
8321
|
-
}
|
|
8322
|
-
cacheEventByCorrelationId() {
|
|
8323
|
-
return;
|
|
8324
|
-
}
|
|
8325
|
-
}
|
|
8326
|
-
|
|
8327
|
-
/*! @azure/msal-common v15.7.0 2025-06-10 */
|
|
8313
|
+
/*! @azure/msal-common v15.8.0 2025-07-01 */
|
|
8328
8314
|
|
|
8329
8315
|
/*
|
|
8330
8316
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8986,7 +8972,8 @@
|
|
|
8986
8972
|
const invalidPopTokenRequest = "invalid_pop_token_request";
|
|
8987
8973
|
const failedToBuildHeaders = "failed_to_build_headers";
|
|
8988
8974
|
const failedToParseHeaders = "failed_to_parse_headers";
|
|
8989
|
-
const failedToDecryptEarResponse = "failed_to_decrypt_ear_response";
|
|
8975
|
+
const failedToDecryptEarResponse = "failed_to_decrypt_ear_response";
|
|
8976
|
+
const timedOut = "timed_out";
|
|
8990
8977
|
|
|
8991
8978
|
var BrowserAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
8992
8979
|
__proto__: null,
|
|
@@ -9034,6 +9021,7 @@
|
|
|
9034
9021
|
silentPromptValueError: silentPromptValueError,
|
|
9035
9022
|
spaCodeAndNativeAccountIdPresent: spaCodeAndNativeAccountIdPresent,
|
|
9036
9023
|
stateInteractionTypeMismatch: stateInteractionTypeMismatch,
|
|
9024
|
+
timedOut: timedOut,
|
|
9037
9025
|
unableToAcquireTokenFromNativePlatform: unableToAcquireTokenFromNativePlatform,
|
|
9038
9026
|
unableToLoadToken: unableToLoadToken,
|
|
9039
9027
|
unableToParseState: unableToParseState,
|
|
@@ -9101,6 +9089,7 @@
|
|
|
9101
9089
|
[failedToBuildHeaders]: "Failed to build request headers object.",
|
|
9102
9090
|
[failedToParseHeaders]: "Failed to parse response headers",
|
|
9103
9091
|
[failedToDecryptEarResponse]: "Failed to decrypt ear response",
|
|
9092
|
+
[timedOut]: "The request timed out.",
|
|
9104
9093
|
};
|
|
9105
9094
|
/**
|
|
9106
9095
|
* BrowserAuthErrorMessage class containing string constants used by error codes and messages.
|
|
@@ -9314,10 +9303,6 @@
|
|
|
9314
9303
|
* Constants
|
|
9315
9304
|
*/
|
|
9316
9305
|
const BrowserConstants = {
|
|
9317
|
-
/**
|
|
9318
|
-
* Interaction in progress cache value
|
|
9319
|
-
*/
|
|
9320
|
-
INTERACTION_IN_PROGRESS_VALUE: "interaction_in_progress",
|
|
9321
9306
|
/**
|
|
9322
9307
|
* Invalid grant error code
|
|
9323
9308
|
*/
|
|
@@ -10169,9 +10154,9 @@
|
|
|
10169
10154
|
else {
|
|
10170
10155
|
window.location.assign(url); // CodeQL [SM03712] Application owner controls the URL. User can't change it.
|
|
10171
10156
|
}
|
|
10172
|
-
return new Promise((resolve) => {
|
|
10157
|
+
return new Promise((resolve, reject) => {
|
|
10173
10158
|
setTimeout(() => {
|
|
10174
|
-
|
|
10159
|
+
reject(createBrowserAuthError(timedOut, "failed_to_redirect"));
|
|
10175
10160
|
}, options.timeout);
|
|
10176
10161
|
});
|
|
10177
10162
|
}
|
|
@@ -10429,7 +10414,7 @@
|
|
|
10429
10414
|
|
|
10430
10415
|
/* eslint-disable header/header */
|
|
10431
10416
|
const name = "@azure/msal-browser";
|
|
10432
|
-
const version = "4.
|
|
10417
|
+
const version = "4.14.0";
|
|
10433
10418
|
|
|
10434
10419
|
/*
|
|
10435
10420
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -11273,7 +11258,9 @@
|
|
|
11273
11258
|
async removeTokenBindingKey(kid) {
|
|
11274
11259
|
await this.cache.removeItem(kid);
|
|
11275
11260
|
const keyFound = await this.cache.containsKey(kid);
|
|
11276
|
-
|
|
11261
|
+
if (keyFound) {
|
|
11262
|
+
throw createClientAuthError(bindingKeyNotRemoved);
|
|
11263
|
+
}
|
|
11277
11264
|
}
|
|
11278
11265
|
/**
|
|
11279
11266
|
* Removes all cryptographic keys from IndexedDB storage
|
|
@@ -11540,7 +11527,7 @@
|
|
|
11540
11527
|
setItem(key, value) {
|
|
11541
11528
|
window.localStorage.setItem(key, value);
|
|
11542
11529
|
}
|
|
11543
|
-
async setUserData(key, value, correlationId) {
|
|
11530
|
+
async setUserData(key, value, correlationId, timestamp) {
|
|
11544
11531
|
if (!this.initialized || !this.encryptionCookie) {
|
|
11545
11532
|
throw createBrowserAuthError(uninitializedPublicClientApplication);
|
|
11546
11533
|
}
|
|
@@ -11549,6 +11536,7 @@
|
|
|
11549
11536
|
id: this.encryptionCookie.id,
|
|
11550
11537
|
nonce: nonce,
|
|
11551
11538
|
data: data,
|
|
11539
|
+
lastUpdatedAt: timestamp,
|
|
11552
11540
|
};
|
|
11553
11541
|
this.memoryStorage.setItem(key, value);
|
|
11554
11542
|
this.setItem(key, JSON.stringify(encryptedData));
|
|
@@ -11795,14 +11783,13 @@
|
|
|
11795
11783
|
*/
|
|
11796
11784
|
class BrowserCacheManager extends CacheManager {
|
|
11797
11785
|
constructor(clientId, cacheConfig, cryptoImpl, logger, performanceClient, eventHandler, staticAuthorityOptions) {
|
|
11798
|
-
super(clientId, cryptoImpl, logger, staticAuthorityOptions);
|
|
11786
|
+
super(clientId, cryptoImpl, logger, performanceClient, staticAuthorityOptions);
|
|
11799
11787
|
this.cacheConfig = cacheConfig;
|
|
11800
11788
|
this.logger = logger;
|
|
11801
11789
|
this.internalStorage = new MemoryStorage();
|
|
11802
11790
|
this.browserStorage = getStorageImplementation(clientId, cacheConfig.cacheLocation, logger, performanceClient);
|
|
11803
11791
|
this.temporaryCacheStorage = getStorageImplementation(clientId, cacheConfig.temporaryCacheLocation, logger, performanceClient);
|
|
11804
11792
|
this.cookieStorage = new CookieStorage();
|
|
11805
|
-
this.performanceClient = performanceClient;
|
|
11806
11793
|
this.eventHandler = eventHandler;
|
|
11807
11794
|
}
|
|
11808
11795
|
async initialize(correlationId) {
|
|
@@ -11819,7 +11806,7 @@
|
|
|
11819
11806
|
this.performanceClient.addFields({ previousLibraryVersion: previousVersion }, correlationId);
|
|
11820
11807
|
}
|
|
11821
11808
|
if (previousVersion !== version) {
|
|
11822
|
-
this.
|
|
11809
|
+
this.setItem(StaticCacheKeys.VERSION, version, correlationId);
|
|
11823
11810
|
}
|
|
11824
11811
|
}
|
|
11825
11812
|
/**
|
|
@@ -11843,22 +11830,111 @@
|
|
|
11843
11830
|
return null;
|
|
11844
11831
|
}
|
|
11845
11832
|
}
|
|
11833
|
+
/**
|
|
11834
|
+
* Helper to setItem in browser storage, with cleanup in case of quota errors
|
|
11835
|
+
* @param key
|
|
11836
|
+
* @param value
|
|
11837
|
+
*/
|
|
11838
|
+
setItem(key, value, correlationId) {
|
|
11839
|
+
let accessTokenKeys = [];
|
|
11840
|
+
const maxRetries = 20;
|
|
11841
|
+
for (let i = 0; i <= maxRetries; i++) {
|
|
11842
|
+
try {
|
|
11843
|
+
this.browserStorage.setItem(key, value);
|
|
11844
|
+
if (i > 0) {
|
|
11845
|
+
// Finally update the token keys array with the tokens removed
|
|
11846
|
+
this.removeAccessTokenKeys(accessTokenKeys.slice(0, i), correlationId);
|
|
11847
|
+
}
|
|
11848
|
+
break; // If setItem succeeds, exit the loop
|
|
11849
|
+
}
|
|
11850
|
+
catch (e) {
|
|
11851
|
+
const cacheError = createCacheError(e);
|
|
11852
|
+
if (cacheError.errorCode ===
|
|
11853
|
+
cacheQuotaExceeded &&
|
|
11854
|
+
i < maxRetries) {
|
|
11855
|
+
if (!accessTokenKeys.length) {
|
|
11856
|
+
if (key ===
|
|
11857
|
+
`${StaticCacheKeys.TOKEN_KEYS}.${this.clientId}`) {
|
|
11858
|
+
// If we are currently trying to set the token keys, use the value we're trying to set
|
|
11859
|
+
accessTokenKeys = JSON.parse(value)
|
|
11860
|
+
.accessToken;
|
|
11861
|
+
}
|
|
11862
|
+
else {
|
|
11863
|
+
// If token keys have not been initialized, get them
|
|
11864
|
+
accessTokenKeys = this.getTokenKeys().accessToken;
|
|
11865
|
+
}
|
|
11866
|
+
}
|
|
11867
|
+
if (accessTokenKeys.length <= i) {
|
|
11868
|
+
// Nothing to remove, rethrow the error
|
|
11869
|
+
throw cacheError;
|
|
11870
|
+
}
|
|
11871
|
+
// When cache quota is exceeded, start removing access tokens until we can successfully set the item
|
|
11872
|
+
this.removeAccessToken(accessTokenKeys[i], correlationId, false // Don't save token keys yet, do it at the end
|
|
11873
|
+
);
|
|
11874
|
+
}
|
|
11875
|
+
else {
|
|
11876
|
+
// If the error is not a quota exceeded error, rethrow it
|
|
11877
|
+
throw cacheError;
|
|
11878
|
+
}
|
|
11879
|
+
}
|
|
11880
|
+
}
|
|
11881
|
+
}
|
|
11882
|
+
/**
|
|
11883
|
+
* Helper to setUserData in browser storage, with cleanup in case of quota errors
|
|
11884
|
+
* @param key
|
|
11885
|
+
* @param value
|
|
11886
|
+
* @param correlationId
|
|
11887
|
+
*/
|
|
11888
|
+
async setUserData(key, value, correlationId, timestamp) {
|
|
11889
|
+
let accessTokenKeys = [];
|
|
11890
|
+
const maxRetries = 20;
|
|
11891
|
+
for (let i = 0; i <= maxRetries; i++) {
|
|
11892
|
+
try {
|
|
11893
|
+
await invokeAsync(this.browserStorage.setUserData.bind(this.browserStorage), PerformanceEvents.SetUserData, this.logger, this.performanceClient)(key, value, correlationId, timestamp);
|
|
11894
|
+
if (i > 0) {
|
|
11895
|
+
// Finally update the token keys array with the tokens removed
|
|
11896
|
+
this.removeAccessTokenKeys(accessTokenKeys.slice(0, i), correlationId);
|
|
11897
|
+
}
|
|
11898
|
+
break; // If setItem succeeds, exit the loop
|
|
11899
|
+
}
|
|
11900
|
+
catch (e) {
|
|
11901
|
+
const cacheError = createCacheError(e);
|
|
11902
|
+
if (cacheError.errorCode ===
|
|
11903
|
+
cacheQuotaExceeded &&
|
|
11904
|
+
i < maxRetries) {
|
|
11905
|
+
if (!accessTokenKeys.length) {
|
|
11906
|
+
accessTokenKeys = this.getTokenKeys().accessToken;
|
|
11907
|
+
}
|
|
11908
|
+
if (accessTokenKeys.length <= i) {
|
|
11909
|
+
// Nothing left to remove, rethrow the error
|
|
11910
|
+
throw cacheError;
|
|
11911
|
+
}
|
|
11912
|
+
// When cache quota is exceeded, start removing access tokens until we can successfully set the item
|
|
11913
|
+
this.removeAccessToken(accessTokenKeys[i], correlationId, false // Don't save token keys yet, do it at the end
|
|
11914
|
+
);
|
|
11915
|
+
}
|
|
11916
|
+
else {
|
|
11917
|
+
// If the error is not a quota exceeded error, rethrow it
|
|
11918
|
+
throw cacheError;
|
|
11919
|
+
}
|
|
11920
|
+
}
|
|
11921
|
+
}
|
|
11922
|
+
}
|
|
11846
11923
|
/**
|
|
11847
11924
|
* Reads account from cache, deserializes it into an account entity and returns it.
|
|
11848
11925
|
* If account is not found from the key, returns null and removes key from map.
|
|
11849
11926
|
* @param accountKey
|
|
11850
11927
|
* @returns
|
|
11851
11928
|
*/
|
|
11852
|
-
getAccount(accountKey) {
|
|
11929
|
+
getAccount(accountKey, correlationId) {
|
|
11853
11930
|
this.logger.trace("BrowserCacheManager.getAccount called");
|
|
11854
11931
|
const serializedAccount = this.browserStorage.getUserData(accountKey);
|
|
11855
11932
|
if (!serializedAccount) {
|
|
11856
|
-
this.removeAccountKeyFromMap(accountKey);
|
|
11933
|
+
this.removeAccountKeyFromMap(accountKey, correlationId);
|
|
11857
11934
|
return null;
|
|
11858
11935
|
}
|
|
11859
11936
|
const parsedAccount = this.validateAndParseJson(serializedAccount);
|
|
11860
11937
|
if (!parsedAccount || !AccountEntity.isAccountEntity(parsedAccount)) {
|
|
11861
|
-
this.removeAccountKeyFromMap(accountKey);
|
|
11862
11938
|
return null;
|
|
11863
11939
|
}
|
|
11864
11940
|
return CacheManager.toObject(new AccountEntity(), parsedAccount);
|
|
@@ -11870,8 +11946,10 @@
|
|
|
11870
11946
|
async setAccount(account, correlationId) {
|
|
11871
11947
|
this.logger.trace("BrowserCacheManager.setAccount called");
|
|
11872
11948
|
const key = account.generateAccountKey();
|
|
11873
|
-
|
|
11874
|
-
|
|
11949
|
+
const timestamp = Date.now().toString();
|
|
11950
|
+
account.lastUpdatedAt = timestamp;
|
|
11951
|
+
await this.setUserData(key, JSON.stringify(account), correlationId, timestamp);
|
|
11952
|
+
const wasAdded = this.addAccountKeyToMap(key, correlationId);
|
|
11875
11953
|
/**
|
|
11876
11954
|
* @deprecated - Remove this in next major version in favor of more consistent LOGIN event
|
|
11877
11955
|
*/
|
|
@@ -11892,14 +11970,14 @@
|
|
|
11892
11970
|
* Add a new account to the key map
|
|
11893
11971
|
* @param key
|
|
11894
11972
|
*/
|
|
11895
|
-
addAccountKeyToMap(key) {
|
|
11973
|
+
addAccountKeyToMap(key, correlationId) {
|
|
11896
11974
|
this.logger.trace("BrowserCacheManager.addAccountKeyToMap called");
|
|
11897
11975
|
this.logger.tracePii(`BrowserCacheManager.addAccountKeyToMap called with key: ${key}`);
|
|
11898
11976
|
const accountKeys = this.getAccountKeys();
|
|
11899
11977
|
if (accountKeys.indexOf(key) === -1) {
|
|
11900
11978
|
// Only add key if it does not already exist in the map
|
|
11901
11979
|
accountKeys.push(key);
|
|
11902
|
-
this.
|
|
11980
|
+
this.setItem(StaticCacheKeys.ACCOUNT_KEYS, JSON.stringify(accountKeys), correlationId);
|
|
11903
11981
|
this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added");
|
|
11904
11982
|
return true;
|
|
11905
11983
|
}
|
|
@@ -11912,14 +11990,21 @@
|
|
|
11912
11990
|
* Remove an account from the key map
|
|
11913
11991
|
* @param key
|
|
11914
11992
|
*/
|
|
11915
|
-
removeAccountKeyFromMap(key) {
|
|
11993
|
+
removeAccountKeyFromMap(key, correlationId) {
|
|
11916
11994
|
this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called");
|
|
11917
11995
|
this.logger.tracePii(`BrowserCacheManager.removeAccountKeyFromMap called with key: ${key}`);
|
|
11918
11996
|
const accountKeys = this.getAccountKeys();
|
|
11919
11997
|
const removalIndex = accountKeys.indexOf(key);
|
|
11920
11998
|
if (removalIndex > -1) {
|
|
11921
11999
|
accountKeys.splice(removalIndex, 1);
|
|
11922
|
-
|
|
12000
|
+
if (accountKeys.length === 0) {
|
|
12001
|
+
// If no keys left, remove the map
|
|
12002
|
+
this.removeItem(StaticCacheKeys.ACCOUNT_KEYS);
|
|
12003
|
+
return;
|
|
12004
|
+
}
|
|
12005
|
+
else {
|
|
12006
|
+
this.setItem(StaticCacheKeys.ACCOUNT_KEYS, JSON.stringify(accountKeys), correlationId);
|
|
12007
|
+
}
|
|
11923
12008
|
this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed");
|
|
11924
12009
|
}
|
|
11925
12010
|
else {
|
|
@@ -11930,16 +12015,16 @@
|
|
|
11930
12015
|
* Extends inherited removeAccount function to include removal of the account key from the map
|
|
11931
12016
|
* @param key
|
|
11932
12017
|
*/
|
|
11933
|
-
|
|
11934
|
-
|
|
11935
|
-
this.removeAccountKeyFromMap(key);
|
|
12018
|
+
removeAccount(key, correlationId) {
|
|
12019
|
+
super.removeAccount(key, correlationId);
|
|
12020
|
+
this.removeAccountKeyFromMap(key, correlationId);
|
|
11936
12021
|
}
|
|
11937
12022
|
/**
|
|
11938
12023
|
* Removes credentials associated with the provided account
|
|
11939
12024
|
* @param account
|
|
11940
12025
|
*/
|
|
11941
|
-
|
|
11942
|
-
|
|
12026
|
+
removeAccountContext(account, correlationId) {
|
|
12027
|
+
super.removeAccountContext(account, correlationId);
|
|
11943
12028
|
/**
|
|
11944
12029
|
* @deprecated - Remove this in next major version in favor of more consistent LOGOUT event
|
|
11945
12030
|
*/
|
|
@@ -11951,25 +12036,60 @@
|
|
|
11951
12036
|
* Removes given idToken from the cache and from the key map
|
|
11952
12037
|
* @param key
|
|
11953
12038
|
*/
|
|
11954
|
-
removeIdToken(key) {
|
|
11955
|
-
super.removeIdToken(key);
|
|
11956
|
-
this.
|
|
12039
|
+
removeIdToken(key, correlationId) {
|
|
12040
|
+
super.removeIdToken(key, correlationId);
|
|
12041
|
+
const tokenKeys = this.getTokenKeys();
|
|
12042
|
+
const idRemoval = tokenKeys.idToken.indexOf(key);
|
|
12043
|
+
if (idRemoval > -1) {
|
|
12044
|
+
this.logger.info("idToken removed from tokenKeys map");
|
|
12045
|
+
tokenKeys.idToken.splice(idRemoval, 1);
|
|
12046
|
+
this.setTokenKeys(tokenKeys, correlationId);
|
|
12047
|
+
}
|
|
11957
12048
|
}
|
|
11958
12049
|
/**
|
|
11959
12050
|
* Removes given accessToken from the cache and from the key map
|
|
11960
12051
|
* @param key
|
|
11961
12052
|
*/
|
|
11962
|
-
|
|
11963
|
-
|
|
11964
|
-
this.
|
|
12053
|
+
removeAccessToken(key, correlationId, updateTokenKeys = true) {
|
|
12054
|
+
super.removeAccessToken(key, correlationId);
|
|
12055
|
+
updateTokenKeys && this.removeAccessTokenKeys([key], correlationId);
|
|
12056
|
+
}
|
|
12057
|
+
/**
|
|
12058
|
+
* Remove access token key from the key map
|
|
12059
|
+
* @param key
|
|
12060
|
+
* @param correlationId
|
|
12061
|
+
* @param tokenKeys
|
|
12062
|
+
*/
|
|
12063
|
+
removeAccessTokenKeys(keys, correlationId) {
|
|
12064
|
+
this.logger.trace("removeAccessTokenKey called");
|
|
12065
|
+
const tokenKeys = this.getTokenKeys();
|
|
12066
|
+
let keysRemoved = 0;
|
|
12067
|
+
keys.forEach((key) => {
|
|
12068
|
+
const accessRemoval = tokenKeys.accessToken.indexOf(key);
|
|
12069
|
+
if (accessRemoval > -1) {
|
|
12070
|
+
tokenKeys.accessToken.splice(accessRemoval, 1);
|
|
12071
|
+
keysRemoved++;
|
|
12072
|
+
}
|
|
12073
|
+
});
|
|
12074
|
+
if (keysRemoved > 0) {
|
|
12075
|
+
this.logger.info(`removed ${keysRemoved} accessToken keys from tokenKeys map`);
|
|
12076
|
+
this.setTokenKeys(tokenKeys, correlationId);
|
|
12077
|
+
return;
|
|
12078
|
+
}
|
|
11965
12079
|
}
|
|
11966
12080
|
/**
|
|
11967
12081
|
* Removes given refreshToken from the cache and from the key map
|
|
11968
12082
|
* @param key
|
|
11969
12083
|
*/
|
|
11970
|
-
removeRefreshToken(key) {
|
|
11971
|
-
super.removeRefreshToken(key);
|
|
11972
|
-
this.
|
|
12084
|
+
removeRefreshToken(key, correlationId) {
|
|
12085
|
+
super.removeRefreshToken(key, correlationId);
|
|
12086
|
+
const tokenKeys = this.getTokenKeys();
|
|
12087
|
+
const refreshRemoval = tokenKeys.refreshToken.indexOf(key);
|
|
12088
|
+
if (refreshRemoval > -1) {
|
|
12089
|
+
this.logger.info("refreshToken removed from tokenKeys map");
|
|
12090
|
+
tokenKeys.refreshToken.splice(refreshRemoval, 1);
|
|
12091
|
+
this.setTokenKeys(tokenKeys, correlationId);
|
|
12092
|
+
}
|
|
11973
12093
|
}
|
|
11974
12094
|
/**
|
|
11975
12095
|
* Gets the keys for the cached tokens associated with this clientId
|
|
@@ -11979,101 +12099,37 @@
|
|
|
11979
12099
|
return getTokenKeys(this.clientId, this.browserStorage);
|
|
11980
12100
|
}
|
|
11981
12101
|
/**
|
|
11982
|
-
*
|
|
11983
|
-
* @param
|
|
11984
|
-
* @param
|
|
12102
|
+
* Stores the token keys in the cache
|
|
12103
|
+
* @param tokenKeys
|
|
12104
|
+
* @param correlationId
|
|
12105
|
+
* @returns
|
|
11985
12106
|
*/
|
|
11986
|
-
|
|
11987
|
-
|
|
11988
|
-
|
|
11989
|
-
|
|
11990
|
-
|
|
11991
|
-
|
|
11992
|
-
|
|
11993
|
-
tokenKeys.idToken.push(key);
|
|
11994
|
-
}
|
|
11995
|
-
break;
|
|
11996
|
-
case CredentialType.ACCESS_TOKEN:
|
|
11997
|
-
if (tokenKeys.accessToken.indexOf(key) === -1) {
|
|
11998
|
-
this.logger.info("BrowserCacheManager: addTokenKey - accessToken added to map");
|
|
11999
|
-
tokenKeys.accessToken.push(key);
|
|
12000
|
-
}
|
|
12001
|
-
break;
|
|
12002
|
-
case CredentialType.REFRESH_TOKEN:
|
|
12003
|
-
if (tokenKeys.refreshToken.indexOf(key) === -1) {
|
|
12004
|
-
this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map");
|
|
12005
|
-
tokenKeys.refreshToken.push(key);
|
|
12006
|
-
}
|
|
12007
|
-
break;
|
|
12008
|
-
default:
|
|
12009
|
-
this.logger.error(`BrowserCacheManager:addTokenKey - CredentialType provided invalid. CredentialType: ${type}`);
|
|
12010
|
-
throw createClientAuthError(unexpectedCredentialType);
|
|
12107
|
+
setTokenKeys(tokenKeys, correlationId) {
|
|
12108
|
+
if (tokenKeys.idToken.length === 0 &&
|
|
12109
|
+
tokenKeys.accessToken.length === 0 &&
|
|
12110
|
+
tokenKeys.refreshToken.length === 0) {
|
|
12111
|
+
// If no keys left, remove the map
|
|
12112
|
+
this.removeItem(`${StaticCacheKeys.TOKEN_KEYS}.${this.clientId}`);
|
|
12113
|
+
return;
|
|
12011
12114
|
}
|
|
12012
|
-
|
|
12013
|
-
|
|
12014
|
-
/**
|
|
12015
|
-
* Removes the given key from the token key map
|
|
12016
|
-
* @param key
|
|
12017
|
-
* @param type
|
|
12018
|
-
*/
|
|
12019
|
-
removeTokenKey(key, type) {
|
|
12020
|
-
this.logger.trace("BrowserCacheManager removeTokenKey called");
|
|
12021
|
-
const tokenKeys = this.getTokenKeys();
|
|
12022
|
-
switch (type) {
|
|
12023
|
-
case CredentialType.ID_TOKEN:
|
|
12024
|
-
this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove idToken with key: ${key} from map`);
|
|
12025
|
-
const idRemoval = tokenKeys.idToken.indexOf(key);
|
|
12026
|
-
if (idRemoval > -1) {
|
|
12027
|
-
this.logger.info("BrowserCacheManager: removeTokenKey - idToken removed from map");
|
|
12028
|
-
tokenKeys.idToken.splice(idRemoval, 1);
|
|
12029
|
-
}
|
|
12030
|
-
else {
|
|
12031
|
-
this.logger.info("BrowserCacheManager: removeTokenKey - idToken does not exist in map. Either it was previously removed or it was never added.");
|
|
12032
|
-
}
|
|
12033
|
-
break;
|
|
12034
|
-
case CredentialType.ACCESS_TOKEN:
|
|
12035
|
-
this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: ${key} from map`);
|
|
12036
|
-
const accessRemoval = tokenKeys.accessToken.indexOf(key);
|
|
12037
|
-
if (accessRemoval > -1) {
|
|
12038
|
-
this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map");
|
|
12039
|
-
tokenKeys.accessToken.splice(accessRemoval, 1);
|
|
12040
|
-
}
|
|
12041
|
-
else {
|
|
12042
|
-
this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");
|
|
12043
|
-
}
|
|
12044
|
-
break;
|
|
12045
|
-
case CredentialType.REFRESH_TOKEN:
|
|
12046
|
-
this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove refreshToken with key: ${key} from map`);
|
|
12047
|
-
const refreshRemoval = tokenKeys.refreshToken.indexOf(key);
|
|
12048
|
-
if (refreshRemoval > -1) {
|
|
12049
|
-
this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map");
|
|
12050
|
-
tokenKeys.refreshToken.splice(refreshRemoval, 1);
|
|
12051
|
-
}
|
|
12052
|
-
else {
|
|
12053
|
-
this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken does not exist in map. Either it was previously removed or it was never added.");
|
|
12054
|
-
}
|
|
12055
|
-
break;
|
|
12056
|
-
default:
|
|
12057
|
-
this.logger.error(`BrowserCacheManager:removeTokenKey - CredentialType provided invalid. CredentialType: ${type}`);
|
|
12058
|
-
throw createClientAuthError(unexpectedCredentialType);
|
|
12115
|
+
else {
|
|
12116
|
+
this.setItem(`${StaticCacheKeys.TOKEN_KEYS}.${this.clientId}`, JSON.stringify(tokenKeys), correlationId);
|
|
12059
12117
|
}
|
|
12060
|
-
this.browserStorage.setItem(`${StaticCacheKeys.TOKEN_KEYS}.${this.clientId}`, JSON.stringify(tokenKeys));
|
|
12061
12118
|
}
|
|
12062
12119
|
/**
|
|
12063
12120
|
* generates idToken entity from a string
|
|
12064
12121
|
* @param idTokenKey
|
|
12065
12122
|
*/
|
|
12066
|
-
getIdTokenCredential(idTokenKey) {
|
|
12123
|
+
getIdTokenCredential(idTokenKey, correlationId) {
|
|
12067
12124
|
const value = this.browserStorage.getUserData(idTokenKey);
|
|
12068
12125
|
if (!value) {
|
|
12069
12126
|
this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit");
|
|
12070
|
-
this.
|
|
12127
|
+
this.removeIdToken(idTokenKey, correlationId);
|
|
12071
12128
|
return null;
|
|
12072
12129
|
}
|
|
12073
12130
|
const parsedIdToken = this.validateAndParseJson(value);
|
|
12074
12131
|
if (!parsedIdToken || !isIdTokenEntity(parsedIdToken)) {
|
|
12075
12132
|
this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit");
|
|
12076
|
-
this.removeTokenKey(idTokenKey, CredentialType.ID_TOKEN);
|
|
12077
12133
|
return null;
|
|
12078
12134
|
}
|
|
12079
12135
|
this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit");
|
|
@@ -12086,25 +12142,31 @@
|
|
|
12086
12142
|
async setIdTokenCredential(idToken, correlationId) {
|
|
12087
12143
|
this.logger.trace("BrowserCacheManager.setIdTokenCredential called");
|
|
12088
12144
|
const idTokenKey = generateCredentialKey(idToken);
|
|
12089
|
-
|
|
12090
|
-
|
|
12145
|
+
const timestamp = Date.now().toString();
|
|
12146
|
+
idToken.lastUpdatedAt = timestamp;
|
|
12147
|
+
await this.setUserData(idTokenKey, JSON.stringify(idToken), correlationId, timestamp);
|
|
12148
|
+
const tokenKeys = this.getTokenKeys();
|
|
12149
|
+
if (tokenKeys.idToken.indexOf(idTokenKey) === -1) {
|
|
12150
|
+
this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map");
|
|
12151
|
+
tokenKeys.idToken.push(idTokenKey);
|
|
12152
|
+
this.setTokenKeys(tokenKeys, correlationId);
|
|
12153
|
+
}
|
|
12091
12154
|
}
|
|
12092
12155
|
/**
|
|
12093
12156
|
* generates accessToken entity from a string
|
|
12094
12157
|
* @param key
|
|
12095
12158
|
*/
|
|
12096
|
-
getAccessTokenCredential(accessTokenKey) {
|
|
12159
|
+
getAccessTokenCredential(accessTokenKey, correlationId) {
|
|
12097
12160
|
const value = this.browserStorage.getUserData(accessTokenKey);
|
|
12098
12161
|
if (!value) {
|
|
12099
12162
|
this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit");
|
|
12100
|
-
this.
|
|
12163
|
+
this.removeAccessTokenKeys([accessTokenKey], correlationId);
|
|
12101
12164
|
return null;
|
|
12102
12165
|
}
|
|
12103
12166
|
const parsedAccessToken = this.validateAndParseJson(value);
|
|
12104
12167
|
if (!parsedAccessToken ||
|
|
12105
12168
|
!isAccessTokenEntity(parsedAccessToken)) {
|
|
12106
12169
|
this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit");
|
|
12107
|
-
this.removeTokenKey(accessTokenKey, CredentialType.ACCESS_TOKEN);
|
|
12108
12170
|
return null;
|
|
12109
12171
|
}
|
|
12110
12172
|
this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit");
|
|
@@ -12117,25 +12179,33 @@
|
|
|
12117
12179
|
async setAccessTokenCredential(accessToken, correlationId) {
|
|
12118
12180
|
this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");
|
|
12119
12181
|
const accessTokenKey = generateCredentialKey(accessToken);
|
|
12120
|
-
|
|
12121
|
-
|
|
12182
|
+
const timestamp = Date.now().toString();
|
|
12183
|
+
accessToken.lastUpdatedAt = timestamp;
|
|
12184
|
+
await this.setUserData(accessTokenKey, JSON.stringify(accessToken), correlationId, timestamp);
|
|
12185
|
+
const tokenKeys = this.getTokenKeys();
|
|
12186
|
+
const index = tokenKeys.accessToken.indexOf(accessTokenKey);
|
|
12187
|
+
if (index !== -1) {
|
|
12188
|
+
tokenKeys.accessToken.splice(index, 1); // Remove existing key before pushing to the end
|
|
12189
|
+
}
|
|
12190
|
+
this.logger.trace(`access token ${index === -1 ? "added to" : "updated in"} map`);
|
|
12191
|
+
tokenKeys.accessToken.push(accessTokenKey);
|
|
12192
|
+
this.setTokenKeys(tokenKeys, correlationId);
|
|
12122
12193
|
}
|
|
12123
12194
|
/**
|
|
12124
12195
|
* generates refreshToken entity from a string
|
|
12125
12196
|
* @param refreshTokenKey
|
|
12126
12197
|
*/
|
|
12127
|
-
getRefreshTokenCredential(refreshTokenKey) {
|
|
12198
|
+
getRefreshTokenCredential(refreshTokenKey, correlationId) {
|
|
12128
12199
|
const value = this.browserStorage.getUserData(refreshTokenKey);
|
|
12129
12200
|
if (!value) {
|
|
12130
12201
|
this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit");
|
|
12131
|
-
this.
|
|
12202
|
+
this.removeRefreshToken(refreshTokenKey, correlationId);
|
|
12132
12203
|
return null;
|
|
12133
12204
|
}
|
|
12134
12205
|
const parsedRefreshToken = this.validateAndParseJson(value);
|
|
12135
12206
|
if (!parsedRefreshToken ||
|
|
12136
12207
|
!isRefreshTokenEntity(parsedRefreshToken)) {
|
|
12137
12208
|
this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit");
|
|
12138
|
-
this.removeTokenKey(refreshTokenKey, CredentialType.REFRESH_TOKEN);
|
|
12139
12209
|
return null;
|
|
12140
12210
|
}
|
|
12141
12211
|
this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit");
|
|
@@ -12148,8 +12218,15 @@
|
|
|
12148
12218
|
async setRefreshTokenCredential(refreshToken, correlationId) {
|
|
12149
12219
|
this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");
|
|
12150
12220
|
const refreshTokenKey = generateCredentialKey(refreshToken);
|
|
12151
|
-
|
|
12152
|
-
|
|
12221
|
+
const timestamp = Date.now().toString();
|
|
12222
|
+
refreshToken.lastUpdatedAt = timestamp;
|
|
12223
|
+
await this.setUserData(refreshTokenKey, JSON.stringify(refreshToken), correlationId, timestamp);
|
|
12224
|
+
const tokenKeys = this.getTokenKeys();
|
|
12225
|
+
if (tokenKeys.refreshToken.indexOf(refreshTokenKey) === -1) {
|
|
12226
|
+
this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map");
|
|
12227
|
+
tokenKeys.refreshToken.push(refreshTokenKey);
|
|
12228
|
+
this.setTokenKeys(tokenKeys, correlationId);
|
|
12229
|
+
}
|
|
12153
12230
|
}
|
|
12154
12231
|
/**
|
|
12155
12232
|
* fetch appMetadata entity from the platform cache
|
|
@@ -12174,10 +12251,10 @@
|
|
|
12174
12251
|
* set appMetadata entity to the platform cache
|
|
12175
12252
|
* @param appMetadata
|
|
12176
12253
|
*/
|
|
12177
|
-
setAppMetadata(appMetadata) {
|
|
12254
|
+
setAppMetadata(appMetadata, correlationId) {
|
|
12178
12255
|
this.logger.trace("BrowserCacheManager.setAppMetadata called");
|
|
12179
12256
|
const appMetadataKey = generateAppMetadataKey(appMetadata);
|
|
12180
|
-
this.
|
|
12257
|
+
this.setItem(appMetadataKey, JSON.stringify(appMetadata), correlationId);
|
|
12181
12258
|
}
|
|
12182
12259
|
/**
|
|
12183
12260
|
* fetch server telemetry entity from the platform cache
|
|
@@ -12203,9 +12280,9 @@
|
|
|
12203
12280
|
* @param serverTelemetryKey
|
|
12204
12281
|
* @param serverTelemetry
|
|
12205
12282
|
*/
|
|
12206
|
-
setServerTelemetry(serverTelemetryKey, serverTelemetry) {
|
|
12283
|
+
setServerTelemetry(serverTelemetryKey, serverTelemetry, correlationId) {
|
|
12207
12284
|
this.logger.trace("BrowserCacheManager.setServerTelemetry called");
|
|
12208
|
-
this.
|
|
12285
|
+
this.setItem(serverTelemetryKey, JSON.stringify(serverTelemetry), correlationId);
|
|
12209
12286
|
}
|
|
12210
12287
|
/**
|
|
12211
12288
|
*
|
|
@@ -12263,7 +12340,7 @@
|
|
|
12263
12340
|
/**
|
|
12264
12341
|
* Gets the active account
|
|
12265
12342
|
*/
|
|
12266
|
-
getActiveAccount() {
|
|
12343
|
+
getActiveAccount(correlationId) {
|
|
12267
12344
|
const activeAccountKeyFilters = this.generateCacheKey(PersistentCacheKeys.ACTIVE_ACCOUNT_FILTERS);
|
|
12268
12345
|
const activeAccountValueFilters = this.browserStorage.getItem(activeAccountKeyFilters);
|
|
12269
12346
|
if (!activeAccountValueFilters) {
|
|
@@ -12277,7 +12354,7 @@
|
|
|
12277
12354
|
homeAccountId: activeAccountValueObj.homeAccountId,
|
|
12278
12355
|
localAccountId: activeAccountValueObj.localAccountId,
|
|
12279
12356
|
tenantId: activeAccountValueObj.tenantId,
|
|
12280
|
-
});
|
|
12357
|
+
}, correlationId);
|
|
12281
12358
|
}
|
|
12282
12359
|
this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found");
|
|
12283
12360
|
return null;
|
|
@@ -12286,7 +12363,7 @@
|
|
|
12286
12363
|
* Sets the active account's localAccountId in cache
|
|
12287
12364
|
* @param account
|
|
12288
12365
|
*/
|
|
12289
|
-
setActiveAccount(account) {
|
|
12366
|
+
setActiveAccount(account, correlationId) {
|
|
12290
12367
|
const activeAccountKey = this.generateCacheKey(PersistentCacheKeys.ACTIVE_ACCOUNT_FILTERS);
|
|
12291
12368
|
if (account) {
|
|
12292
12369
|
this.logger.verbose("setActiveAccount: Active account set");
|
|
@@ -12294,8 +12371,9 @@
|
|
|
12294
12371
|
homeAccountId: account.homeAccountId,
|
|
12295
12372
|
localAccountId: account.localAccountId,
|
|
12296
12373
|
tenantId: account.tenantId,
|
|
12374
|
+
lastUpdatedAt: nowSeconds().toString(),
|
|
12297
12375
|
};
|
|
12298
|
-
this.
|
|
12376
|
+
this.setItem(activeAccountKey, JSON.stringify(activeAccountValue), correlationId);
|
|
12299
12377
|
}
|
|
12300
12378
|
else {
|
|
12301
12379
|
this.logger.verbose("setActiveAccount: No account passed, active account not set");
|
|
@@ -12327,9 +12405,9 @@
|
|
|
12327
12405
|
* @param throttlingCacheKey
|
|
12328
12406
|
* @param throttlingCache
|
|
12329
12407
|
*/
|
|
12330
|
-
setThrottlingCache(throttlingCacheKey, throttlingCache) {
|
|
12408
|
+
setThrottlingCache(throttlingCacheKey, throttlingCache, correlationId) {
|
|
12331
12409
|
this.logger.trace("BrowserCacheManager.setThrottlingCache called");
|
|
12332
|
-
this.
|
|
12410
|
+
this.setItem(throttlingCacheKey, JSON.stringify(throttlingCache), correlationId);
|
|
12333
12411
|
}
|
|
12334
12412
|
/**
|
|
12335
12413
|
* Gets cache item with given key.
|
|
@@ -12405,10 +12483,10 @@
|
|
|
12405
12483
|
/**
|
|
12406
12484
|
* Clears all cache entries created by MSAL.
|
|
12407
12485
|
*/
|
|
12408
|
-
|
|
12486
|
+
clear(correlationId) {
|
|
12409
12487
|
// Removes all accounts and their credentials
|
|
12410
|
-
|
|
12411
|
-
this.removeAppMetadata();
|
|
12488
|
+
this.removeAllAccounts(correlationId);
|
|
12489
|
+
this.removeAppMetadata(correlationId);
|
|
12412
12490
|
// Remove temp storage first to make sure any cookies are cleared
|
|
12413
12491
|
this.temporaryCacheStorage.getKeys().forEach((cacheKey) => {
|
|
12414
12492
|
if (cacheKey.indexOf(Constants.CACHE_PREFIX) !== -1 ||
|
|
@@ -12431,22 +12509,22 @@
|
|
|
12431
12509
|
* @param correlationId {string} correlation id
|
|
12432
12510
|
* @returns
|
|
12433
12511
|
*/
|
|
12434
|
-
|
|
12435
|
-
performanceClient.addQueueMeasurement(PerformanceEvents.ClearTokensAndKeysWithClaims, correlationId);
|
|
12512
|
+
clearTokensAndKeysWithClaims(correlationId) {
|
|
12513
|
+
this.performanceClient.addQueueMeasurement(PerformanceEvents.ClearTokensAndKeysWithClaims, correlationId);
|
|
12436
12514
|
const tokenKeys = this.getTokenKeys();
|
|
12437
|
-
|
|
12515
|
+
let removedAccessTokens = 0;
|
|
12438
12516
|
tokenKeys.accessToken.forEach((key) => {
|
|
12439
12517
|
// if the access token has claims in its key, remove the token key and the token
|
|
12440
|
-
const credential = this.getAccessTokenCredential(key);
|
|
12518
|
+
const credential = this.getAccessTokenCredential(key, correlationId);
|
|
12441
12519
|
if (credential?.requestedClaimsHash &&
|
|
12442
12520
|
key.includes(credential.requestedClaimsHash.toLowerCase())) {
|
|
12443
|
-
|
|
12521
|
+
this.removeAccessToken(key, correlationId);
|
|
12522
|
+
removedAccessTokens++;
|
|
12444
12523
|
}
|
|
12445
12524
|
});
|
|
12446
|
-
await Promise.all(removedAccessTokens);
|
|
12447
12525
|
// warn if any access tokens are removed
|
|
12448
|
-
if (removedAccessTokens
|
|
12449
|
-
this.logger.warning(`${removedAccessTokens
|
|
12526
|
+
if (removedAccessTokens > 0) {
|
|
12527
|
+
this.logger.warning(`${removedAccessTokens} access tokens with claims in the cache keys have been removed from the cache.`);
|
|
12450
12528
|
}
|
|
12451
12529
|
}
|
|
12452
12530
|
/**
|
|
@@ -12673,22 +12751,24 @@
|
|
|
12673
12751
|
* @param accountFilter - (Optional) filter to narrow down the accounts returned
|
|
12674
12752
|
* @returns Array of AccountInfo objects in cache
|
|
12675
12753
|
*/
|
|
12676
|
-
function getAllAccounts(logger, browserStorage, isInBrowser, accountFilter) {
|
|
12754
|
+
function getAllAccounts(logger, browserStorage, isInBrowser, correlationId, accountFilter) {
|
|
12677
12755
|
logger.verbose("getAllAccounts called");
|
|
12678
|
-
return isInBrowser
|
|
12756
|
+
return isInBrowser
|
|
12757
|
+
? browserStorage.getAllAccounts(accountFilter || {}, correlationId)
|
|
12758
|
+
: [];
|
|
12679
12759
|
}
|
|
12680
12760
|
/**
|
|
12681
12761
|
* Returns the first account found in the cache that matches the account filter passed in.
|
|
12682
12762
|
* @param accountFilter
|
|
12683
12763
|
* @returns The first account found in the cache matching the provided filter or null if no account could be found.
|
|
12684
12764
|
*/
|
|
12685
|
-
function getAccount(accountFilter, logger, browserStorage) {
|
|
12765
|
+
function getAccount(accountFilter, logger, browserStorage, correlationId) {
|
|
12686
12766
|
logger.trace("getAccount called");
|
|
12687
12767
|
if (Object.keys(accountFilter).length === 0) {
|
|
12688
12768
|
logger.warning("getAccount: No accountFilter provided");
|
|
12689
12769
|
return null;
|
|
12690
12770
|
}
|
|
12691
|
-
const account = browserStorage.getAccountInfoFilteredBy(accountFilter);
|
|
12771
|
+
const account = browserStorage.getAccountInfoFilteredBy(accountFilter, correlationId);
|
|
12692
12772
|
if (account) {
|
|
12693
12773
|
logger.verbose("getAccount: Account matching provided filter found, returning");
|
|
12694
12774
|
return account;
|
|
@@ -12706,7 +12786,7 @@
|
|
|
12706
12786
|
* @param username
|
|
12707
12787
|
* @returns The account object stored in MSAL
|
|
12708
12788
|
*/
|
|
12709
|
-
function getAccountByUsername(username, logger, browserStorage) {
|
|
12789
|
+
function getAccountByUsername(username, logger, browserStorage, correlationId) {
|
|
12710
12790
|
logger.trace("getAccountByUsername called");
|
|
12711
12791
|
if (!username) {
|
|
12712
12792
|
logger.warning("getAccountByUsername: No username provided");
|
|
@@ -12714,7 +12794,7 @@
|
|
|
12714
12794
|
}
|
|
12715
12795
|
const account = browserStorage.getAccountInfoFilteredBy({
|
|
12716
12796
|
username,
|
|
12717
|
-
});
|
|
12797
|
+
}, correlationId);
|
|
12718
12798
|
if (account) {
|
|
12719
12799
|
logger.verbose("getAccountByUsername: Account matching username found, returning");
|
|
12720
12800
|
logger.verbosePii(`getAccountByUsername: Returning signed-in accounts matching username: ${username}`);
|
|
@@ -12732,7 +12812,7 @@
|
|
|
12732
12812
|
* @param homeAccountId
|
|
12733
12813
|
* @returns The account object stored in MSAL
|
|
12734
12814
|
*/
|
|
12735
|
-
function getAccountByHomeId(homeAccountId, logger, browserStorage) {
|
|
12815
|
+
function getAccountByHomeId(homeAccountId, logger, browserStorage, correlationId) {
|
|
12736
12816
|
logger.trace("getAccountByHomeId called");
|
|
12737
12817
|
if (!homeAccountId) {
|
|
12738
12818
|
logger.warning("getAccountByHomeId: No homeAccountId provided");
|
|
@@ -12740,7 +12820,7 @@
|
|
|
12740
12820
|
}
|
|
12741
12821
|
const account = browserStorage.getAccountInfoFilteredBy({
|
|
12742
12822
|
homeAccountId,
|
|
12743
|
-
});
|
|
12823
|
+
}, correlationId);
|
|
12744
12824
|
if (account) {
|
|
12745
12825
|
logger.verbose("getAccountByHomeId: Account matching homeAccountId found, returning");
|
|
12746
12826
|
logger.verbosePii(`getAccountByHomeId: Returning signed-in accounts matching homeAccountId: ${homeAccountId}`);
|
|
@@ -12758,7 +12838,7 @@
|
|
|
12758
12838
|
* @param localAccountId
|
|
12759
12839
|
* @returns The account object stored in MSAL
|
|
12760
12840
|
*/
|
|
12761
|
-
function getAccountByLocalId(localAccountId, logger, browserStorage) {
|
|
12841
|
+
function getAccountByLocalId(localAccountId, logger, browserStorage, correlationId) {
|
|
12762
12842
|
logger.trace("getAccountByLocalId called");
|
|
12763
12843
|
if (!localAccountId) {
|
|
12764
12844
|
logger.warning("getAccountByLocalId: No localAccountId provided");
|
|
@@ -12766,7 +12846,7 @@
|
|
|
12766
12846
|
}
|
|
12767
12847
|
const account = browserStorage.getAccountInfoFilteredBy({
|
|
12768
12848
|
localAccountId,
|
|
12769
|
-
});
|
|
12849
|
+
}, correlationId);
|
|
12770
12850
|
if (account) {
|
|
12771
12851
|
logger.verbose("getAccountByLocalId: Account matching localAccountId found, returning");
|
|
12772
12852
|
logger.verbosePii(`getAccountByLocalId: Returning signed-in accounts matching localAccountId: ${localAccountId}`);
|
|
@@ -12781,14 +12861,14 @@
|
|
|
12781
12861
|
* 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.
|
|
12782
12862
|
* @param account
|
|
12783
12863
|
*/
|
|
12784
|
-
function setActiveAccount(account, browserStorage) {
|
|
12785
|
-
browserStorage.setActiveAccount(account);
|
|
12864
|
+
function setActiveAccount(account, browserStorage, correlationId) {
|
|
12865
|
+
browserStorage.setActiveAccount(account, correlationId);
|
|
12786
12866
|
}
|
|
12787
12867
|
/**
|
|
12788
12868
|
* Gets the currently active account
|
|
12789
12869
|
*/
|
|
12790
|
-
function getActiveAccount(browserStorage) {
|
|
12791
|
-
return browserStorage.getActiveAccount();
|
|
12870
|
+
function getActiveAccount(browserStorage, correlationId) {
|
|
12871
|
+
return browserStorage.getActiveAccount(correlationId);
|
|
12792
12872
|
}
|
|
12793
12873
|
|
|
12794
12874
|
/*
|
|
@@ -12912,15 +12992,15 @@
|
|
|
12912
12992
|
this.logger = logger.clone(BrowserConstants.MSAL_SKU, version, this.correlationId);
|
|
12913
12993
|
this.performanceClient = performanceClient;
|
|
12914
12994
|
}
|
|
12915
|
-
async clearCacheOnLogout(account) {
|
|
12995
|
+
async clearCacheOnLogout(correlationId, account) {
|
|
12916
12996
|
if (account) {
|
|
12917
|
-
if (AccountEntity.accountInfoIsEqual(account, this.browserStorage.getActiveAccount(), false)) {
|
|
12997
|
+
if (AccountEntity.accountInfoIsEqual(account, this.browserStorage.getActiveAccount(correlationId), false)) {
|
|
12918
12998
|
this.logger.verbose("Setting active account to null");
|
|
12919
|
-
this.browserStorage.setActiveAccount(null);
|
|
12999
|
+
this.browserStorage.setActiveAccount(null, correlationId);
|
|
12920
13000
|
}
|
|
12921
13001
|
// Clear given account.
|
|
12922
13002
|
try {
|
|
12923
|
-
|
|
13003
|
+
this.browserStorage.removeAccount(AccountEntity.generateAccountCacheKey(account), correlationId);
|
|
12924
13004
|
this.logger.verbose("Cleared cache items belonging to the account provided in the logout request.");
|
|
12925
13005
|
}
|
|
12926
13006
|
catch (error) {
|
|
@@ -12931,7 +13011,7 @@
|
|
|
12931
13011
|
try {
|
|
12932
13012
|
this.logger.verbose("No account provided in logout request, clearing all cache items.", this.correlationId);
|
|
12933
13013
|
// Clear all accounts and tokens
|
|
12934
|
-
|
|
13014
|
+
this.browserStorage.clear(correlationId);
|
|
12935
13015
|
// Clear any stray keys from IndexedDB
|
|
12936
13016
|
await this.browserCrypto.clearKeystore();
|
|
12937
13017
|
}
|
|
@@ -13253,7 +13333,8 @@
|
|
|
13253
13333
|
if (request.loginHint || request.sid) {
|
|
13254
13334
|
return validatedRequest;
|
|
13255
13335
|
}
|
|
13256
|
-
const account = request.account ||
|
|
13336
|
+
const account = request.account ||
|
|
13337
|
+
this.browserStorage.getActiveAccount(this.correlationId);
|
|
13257
13338
|
if (account) {
|
|
13258
13339
|
this.logger.verbose("Setting validated request account", this.correlationId);
|
|
13259
13340
|
this.logger.verbosePii(`Setting validated request account: ${account.homeAccountId}`, this.correlationId);
|
|
@@ -13433,7 +13514,8 @@
|
|
|
13433
13514
|
const NO_NETWORK = "NO_NETWORK";
|
|
13434
13515
|
const PERSISTENT_ERROR = "PERSISTENT_ERROR";
|
|
13435
13516
|
const DISABLED = "DISABLED";
|
|
13436
|
-
const ACCOUNT_UNAVAILABLE = "ACCOUNT_UNAVAILABLE";
|
|
13517
|
+
const ACCOUNT_UNAVAILABLE = "ACCOUNT_UNAVAILABLE";
|
|
13518
|
+
const UX_NOT_ALLOWED = "UX_NOT_ALLOWED";
|
|
13437
13519
|
|
|
13438
13520
|
/*
|
|
13439
13521
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -13491,6 +13573,8 @@
|
|
|
13491
13573
|
return createBrowserAuthError(userCancelled);
|
|
13492
13574
|
case NO_NETWORK:
|
|
13493
13575
|
return createBrowserAuthError(noNetworkConnectivity);
|
|
13576
|
+
case UX_NOT_ALLOWED:
|
|
13577
|
+
return createInteractionRequiredAuthError(uxNotAllowed);
|
|
13494
13578
|
}
|
|
13495
13579
|
}
|
|
13496
13580
|
return new NativeAuthError(code, NativeAuthErrorMessages[code] || description, ext);
|
|
@@ -13540,7 +13624,7 @@
|
|
|
13540
13624
|
logout(logoutRequest) {
|
|
13541
13625
|
this.logger.verbose("logoutRedirect called");
|
|
13542
13626
|
const validLogoutRequest = this.initializeLogoutRequest(logoutRequest);
|
|
13543
|
-
return this.clearCacheOnLogout(validLogoutRequest?.account);
|
|
13627
|
+
return this.clearCacheOnLogout(validLogoutRequest.correlationId, validLogoutRequest?.account);
|
|
13544
13628
|
}
|
|
13545
13629
|
}
|
|
13546
13630
|
|
|
@@ -13664,7 +13748,7 @@
|
|
|
13664
13748
|
// fetch the account from browser cache
|
|
13665
13749
|
const account = this.browserStorage.getBaseAccountInfo({
|
|
13666
13750
|
nativeAccountId,
|
|
13667
|
-
});
|
|
13751
|
+
}, this.correlationId);
|
|
13668
13752
|
if (!account) {
|
|
13669
13753
|
throw createClientAuthError(noAccountFound);
|
|
13670
13754
|
}
|
|
@@ -13780,7 +13864,7 @@
|
|
|
13780
13864
|
const homeAccountIdentifier = this.createHomeAccountIdentifier(response, idTokenClaims);
|
|
13781
13865
|
const cachedhomeAccountId = this.browserStorage.getAccountInfoFilteredBy({
|
|
13782
13866
|
nativeAccountId: request.accountId,
|
|
13783
|
-
})?.homeAccountId;
|
|
13867
|
+
}, this.correlationId)?.homeAccountId;
|
|
13784
13868
|
// add exception for double brokering, please note this is temporary and will be fortified in future
|
|
13785
13869
|
if (request.extraParameters?.child_client_id &&
|
|
13786
13870
|
response.account.id !== request.accountId) {
|
|
@@ -13795,7 +13879,7 @@
|
|
|
13795
13879
|
const authority = await this.getDiscoveredAuthority({
|
|
13796
13880
|
requestAuthority: request.authority,
|
|
13797
13881
|
});
|
|
13798
|
-
const baseAccount = buildAccountToCache(this.browserStorage, authority, homeAccountIdentifier, base64Decode, idTokenClaims, response.client_info, undefined, // environment
|
|
13882
|
+
const baseAccount = buildAccountToCache(this.browserStorage, authority, homeAccountIdentifier, base64Decode, this.correlationId, idTokenClaims, response.client_info, undefined, // environment
|
|
13799
13883
|
idTokenClaims.tid, undefined, // auth code payload
|
|
13800
13884
|
response.account.id, this.logger);
|
|
13801
13885
|
// Ensure expires_in is in number format
|
|
@@ -13803,7 +13887,7 @@
|
|
|
13803
13887
|
// generate authenticationResult
|
|
13804
13888
|
const result = await this.generateAuthenticationResult(response, request, idTokenClaims, baseAccount, authority.canonicalAuthority, reqTimestamp);
|
|
13805
13889
|
// cache accounts and tokens in the appropriate storage
|
|
13806
|
-
await this.cacheAccount(baseAccount);
|
|
13890
|
+
await this.cacheAccount(baseAccount, this.correlationId);
|
|
13807
13891
|
await this.cacheNativeTokens(response, request, homeAccountIdentifier, idTokenClaims, response.access_token, result.tenantId, reqTimestamp);
|
|
13808
13892
|
return result;
|
|
13809
13893
|
}
|
|
@@ -13927,13 +14011,11 @@
|
|
|
13927
14011
|
* cache the account entity in browser storage
|
|
13928
14012
|
* @param accountEntity
|
|
13929
14013
|
*/
|
|
13930
|
-
async cacheAccount(accountEntity) {
|
|
14014
|
+
async cacheAccount(accountEntity, correlationId) {
|
|
13931
14015
|
// Store the account info and hence `nativeAccountId` in browser cache
|
|
13932
14016
|
await this.browserStorage.setAccount(accountEntity, this.correlationId);
|
|
13933
14017
|
// Remove any existing cached tokens for this account in browser storage
|
|
13934
|
-
this.browserStorage.removeAccountContext(accountEntity)
|
|
13935
|
-
this.logger.error(`Error occurred while removing account context from browser storage. ${e}`);
|
|
13936
|
-
});
|
|
14018
|
+
this.browserStorage.removeAccountContext(accountEntity, correlationId);
|
|
13937
14019
|
}
|
|
13938
14020
|
/**
|
|
13939
14021
|
* Stores the access_token and id_token in inmemory storage
|
|
@@ -14889,14 +14971,14 @@
|
|
|
14889
14971
|
* @param authenticationScheme
|
|
14890
14972
|
*/
|
|
14891
14973
|
function isPlatformAuthAllowed(config, logger, platformAuthProvider, authenticationScheme) {
|
|
14892
|
-
logger.trace("
|
|
14974
|
+
logger.trace("isPlatformAuthAllowed called");
|
|
14893
14975
|
if (!config.system.allowPlatformBroker) {
|
|
14894
|
-
logger.trace("
|
|
14976
|
+
logger.trace("isPlatformAuthAllowed: allowPlatformBroker is not enabled, returning false");
|
|
14895
14977
|
// Developer disabled WAM
|
|
14896
14978
|
return false;
|
|
14897
14979
|
}
|
|
14898
14980
|
if (!platformAuthProvider) {
|
|
14899
|
-
logger.trace("
|
|
14981
|
+
logger.trace("isPlatformAuthAllowed: Platform auth provider is not initialized, returning false");
|
|
14900
14982
|
// Platform broker auth providers are not available
|
|
14901
14983
|
return false;
|
|
14902
14984
|
}
|
|
@@ -14904,10 +14986,10 @@
|
|
|
14904
14986
|
switch (authenticationScheme) {
|
|
14905
14987
|
case AuthenticationScheme.BEARER:
|
|
14906
14988
|
case AuthenticationScheme.POP:
|
|
14907
|
-
logger.trace("
|
|
14989
|
+
logger.trace("isPlatformAuthAllowed: authenticationScheme is supported, returning true");
|
|
14908
14990
|
return true;
|
|
14909
14991
|
default:
|
|
14910
|
-
logger.trace("
|
|
14992
|
+
logger.trace("isPlatformAuthAllowed: authenticationScheme is not supported, returning false");
|
|
14911
14993
|
return false;
|
|
14912
14994
|
}
|
|
14913
14995
|
}
|
|
@@ -15103,7 +15185,7 @@
|
|
|
15103
15185
|
const serverTelemetryManager = this.initializeServerTelemetryManager(ApiId.logoutPopup);
|
|
15104
15186
|
try {
|
|
15105
15187
|
// Clear cache on logout
|
|
15106
|
-
await this.clearCacheOnLogout(validRequest.account);
|
|
15188
|
+
await this.clearCacheOnLogout(this.correlationId, validRequest.account);
|
|
15107
15189
|
// Initialize the client
|
|
15108
15190
|
const authClient = await invokeAsync(this.createAuthCodeClient.bind(this), PerformanceEvents.StandardInteractionClientCreateAuthCodeClient, this.logger, this.performanceClient, this.correlationId)({
|
|
15109
15191
|
serverTelemetryManager,
|
|
@@ -15117,7 +15199,7 @@
|
|
|
15117
15199
|
if (validRequest.account?.homeAccountId &&
|
|
15118
15200
|
validRequest.postLogoutRedirectUri &&
|
|
15119
15201
|
authClient.authority.protocolMode === ProtocolMode.OIDC) {
|
|
15120
|
-
|
|
15202
|
+
this.browserStorage.removeAccount(validRequest.account?.homeAccountId, this.correlationId);
|
|
15121
15203
|
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, exports.InteractionType.Popup, validRequest);
|
|
15122
15204
|
if (mainWindowRedirectUri) {
|
|
15123
15205
|
const navigationOptions = {
|
|
@@ -15481,6 +15563,11 @@
|
|
|
15481
15563
|
this.browserStorage.cacheAuthorizeRequest(redirectRequest);
|
|
15482
15564
|
const form = await getEARForm(document, this.config, discoveredAuthority, redirectRequest, this.logger, this.performanceClient);
|
|
15483
15565
|
form.submit();
|
|
15566
|
+
return new Promise((resolve, reject) => {
|
|
15567
|
+
setTimeout(() => {
|
|
15568
|
+
reject(createBrowserAuthError(timedOut, "failed_to_redirect"));
|
|
15569
|
+
}, this.config.system.redirectNavigationTimeout);
|
|
15570
|
+
});
|
|
15484
15571
|
}
|
|
15485
15572
|
/**
|
|
15486
15573
|
* Checks if navigateToLoginRequestUrl is set, and:
|
|
@@ -15695,7 +15782,7 @@
|
|
|
15695
15782
|
try {
|
|
15696
15783
|
this.eventHandler.emitEvent(EventType.LOGOUT_START, exports.InteractionType.Redirect, logoutRequest);
|
|
15697
15784
|
// Clear cache on logout
|
|
15698
|
-
await this.clearCacheOnLogout(validLogoutRequest.account);
|
|
15785
|
+
await this.clearCacheOnLogout(this.correlationId, validLogoutRequest.account);
|
|
15699
15786
|
const navigationOptions = {
|
|
15700
15787
|
apiId: ApiId.logout,
|
|
15701
15788
|
timeout: this.config.system.redirectNavigationTimeout,
|
|
@@ -15713,7 +15800,7 @@
|
|
|
15713
15800
|
}
|
|
15714
15801
|
catch {
|
|
15715
15802
|
if (validLogoutRequest.account?.homeAccountId) {
|
|
15716
|
-
|
|
15803
|
+
this.browserStorage.removeAccount(validLogoutRequest.account?.homeAccountId, this.correlationId);
|
|
15717
15804
|
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, exports.InteractionType.Redirect, validLogoutRequest);
|
|
15718
15805
|
return;
|
|
15719
15806
|
}
|
|
@@ -16190,7 +16277,7 @@
|
|
|
16190
16277
|
}
|
|
16191
16278
|
const homeAccountId = AccountEntity.generateHomeAccountId(clientInfo, authority.authorityType, this.logger, this.cryptoObj, idTokenClaims);
|
|
16192
16279
|
const claimsTenantId = idTokenClaims?.tid;
|
|
16193
|
-
const cachedAccount = buildAccountToCache(this.storage, authority, homeAccountId, base64Decode, idTokenClaims, clientInfo, authority.hostnameAndPort, claimsTenantId, undefined, // authCodePayload
|
|
16280
|
+
const cachedAccount = buildAccountToCache(this.storage, authority, homeAccountId, base64Decode, correlationId, idTokenClaims, clientInfo, authority.hostnameAndPort, claimsTenantId, undefined, // authCodePayload
|
|
16194
16281
|
undefined, // nativeAccountId
|
|
16195
16282
|
this.logger);
|
|
16196
16283
|
await this.storage.setAccount(cachedAccount, correlationId);
|
|
@@ -16553,7 +16640,7 @@
|
|
|
16553
16640
|
}
|
|
16554
16641
|
if (!this.config.cache.claimsBasedCachingEnabled) {
|
|
16555
16642
|
this.logger.verbose("Claims-based caching is disabled. Clearing the previous cache with claims");
|
|
16556
|
-
|
|
16643
|
+
invoke(this.browserStorage.clearTokensAndKeysWithClaims.bind(this.browserStorage), PerformanceEvents.ClearTokensAndKeysWithClaims, this.logger, this.performanceClient, initCorrelationId)(initCorrelationId);
|
|
16557
16644
|
}
|
|
16558
16645
|
this.config.system.asyncPopups &&
|
|
16559
16646
|
(await this.preGeneratePkceCodes(initCorrelationId));
|
|
@@ -17228,7 +17315,8 @@
|
|
|
17228
17315
|
* @returns Array of AccountInfo objects in cache
|
|
17229
17316
|
*/
|
|
17230
17317
|
getAllAccounts(accountFilter) {
|
|
17231
|
-
|
|
17318
|
+
const correlationId = this.getRequestCorrelationId();
|
|
17319
|
+
return getAllAccounts(this.logger, this.browserStorage, this.isBrowserEnvironment, correlationId, accountFilter);
|
|
17232
17320
|
}
|
|
17233
17321
|
/**
|
|
17234
17322
|
* Returns the first account found in the cache that matches the account filter passed in.
|
|
@@ -17236,7 +17324,8 @@
|
|
|
17236
17324
|
* @returns The first account found in the cache matching the provided filter or null if no account could be found.
|
|
17237
17325
|
*/
|
|
17238
17326
|
getAccount(accountFilter) {
|
|
17239
|
-
|
|
17327
|
+
const correlationId = this.getRequestCorrelationId();
|
|
17328
|
+
return getAccount(accountFilter, this.logger, this.browserStorage, correlationId);
|
|
17240
17329
|
}
|
|
17241
17330
|
/**
|
|
17242
17331
|
* Returns the signed in account matching username.
|
|
@@ -17247,7 +17336,8 @@
|
|
|
17247
17336
|
* @returns The account object stored in MSAL
|
|
17248
17337
|
*/
|
|
17249
17338
|
getAccountByUsername(username) {
|
|
17250
|
-
|
|
17339
|
+
const correlationId = this.getRequestCorrelationId();
|
|
17340
|
+
return getAccountByUsername(username, this.logger, this.browserStorage, correlationId);
|
|
17251
17341
|
}
|
|
17252
17342
|
/**
|
|
17253
17343
|
* Returns the signed in account matching homeAccountId.
|
|
@@ -17257,7 +17347,8 @@
|
|
|
17257
17347
|
* @returns The account object stored in MSAL
|
|
17258
17348
|
*/
|
|
17259
17349
|
getAccountByHomeId(homeAccountId) {
|
|
17260
|
-
|
|
17350
|
+
const correlationId = this.getRequestCorrelationId();
|
|
17351
|
+
return getAccountByHomeId(homeAccountId, this.logger, this.browserStorage, correlationId);
|
|
17261
17352
|
}
|
|
17262
17353
|
/**
|
|
17263
17354
|
* Returns the signed in account matching localAccountId.
|
|
@@ -17267,20 +17358,23 @@
|
|
|
17267
17358
|
* @returns The account object stored in MSAL
|
|
17268
17359
|
*/
|
|
17269
17360
|
getAccountByLocalId(localAccountId) {
|
|
17270
|
-
|
|
17361
|
+
const correlationId = this.getRequestCorrelationId();
|
|
17362
|
+
return getAccountByLocalId(localAccountId, this.logger, this.browserStorage, correlationId);
|
|
17271
17363
|
}
|
|
17272
17364
|
/**
|
|
17273
17365
|
* 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.
|
|
17274
17366
|
* @param account
|
|
17275
17367
|
*/
|
|
17276
17368
|
setActiveAccount(account) {
|
|
17277
|
-
|
|
17369
|
+
const correlationId = this.getRequestCorrelationId();
|
|
17370
|
+
setActiveAccount(account, this.browserStorage, correlationId);
|
|
17278
17371
|
}
|
|
17279
17372
|
/**
|
|
17280
17373
|
* Gets the currently active account
|
|
17281
17374
|
*/
|
|
17282
17375
|
getActiveAccount() {
|
|
17283
|
-
|
|
17376
|
+
const correlationId = this.getRequestCorrelationId();
|
|
17377
|
+
return getActiveAccount(this.browserStorage, correlationId);
|
|
17284
17378
|
}
|
|
17285
17379
|
// #endregion
|
|
17286
17380
|
/**
|
|
@@ -17620,9 +17714,7 @@
|
|
|
17620
17714
|
async acquireTokenSilentDeduped(request, account, correlationId) {
|
|
17621
17715
|
const thumbprint = getRequestThumbprint(this.config.auth.clientId, {
|
|
17622
17716
|
...request,
|
|
17623
|
-
authority: request.authority || this.config.auth.authority,
|
|
17624
|
-
correlationId: correlationId,
|
|
17625
|
-
}, account.homeAccountId);
|
|
17717
|
+
authority: request.authority || this.config.auth.authority}, account.homeAccountId);
|
|
17626
17718
|
const silentRequestKey = JSON.stringify(thumbprint);
|
|
17627
17719
|
const inProgressRequest = this.activeSilentTokenRequests.get(silentRequestKey);
|
|
17628
17720
|
if (typeof inProgressRequest === "undefined") {
|
|
@@ -18284,8 +18376,9 @@
|
|
|
18284
18376
|
// always prioritize the account context from the bridge
|
|
18285
18377
|
const accountContext = this.bridgeProxy.getAccountContext() || this.currentAccountContext;
|
|
18286
18378
|
let currentAccount = null;
|
|
18379
|
+
const correlationId = request.correlationId || this.browserCrypto.createNewGuid();
|
|
18287
18380
|
if (accountContext) {
|
|
18288
|
-
currentAccount = getAccount(accountContext, this.logger, this.browserStorage);
|
|
18381
|
+
currentAccount = getAccount(accountContext, this.logger, this.browserStorage, correlationId);
|
|
18289
18382
|
}
|
|
18290
18383
|
// fall back to brokering if no cached account is found
|
|
18291
18384
|
if (!currentAccount) {
|
|
@@ -18303,7 +18396,7 @@
|
|
|
18303
18396
|
};
|
|
18304
18397
|
// fetch access token and check for expiry
|
|
18305
18398
|
const tokenKeys = this.browserStorage.getTokenKeys();
|
|
18306
|
-
const cachedAccessToken = this.browserStorage.getAccessToken(currentAccount, authRequest, tokenKeys, currentAccount.tenantId
|
|
18399
|
+
const cachedAccessToken = this.browserStorage.getAccessToken(currentAccount, authRequest, tokenKeys, currentAccount.tenantId);
|
|
18307
18400
|
// If there is no access token, log it and return null
|
|
18308
18401
|
if (!cachedAccessToken) {
|
|
18309
18402
|
this.logger.verbose("No cached access token found");
|
|
@@ -18314,7 +18407,7 @@
|
|
|
18314
18407
|
this.logger.verbose("Cached access token has expired");
|
|
18315
18408
|
return Promise.resolve(null);
|
|
18316
18409
|
}
|
|
18317
|
-
const cachedIdToken = this.browserStorage.getIdToken(currentAccount, tokenKeys, currentAccount.tenantId, this.performanceClient
|
|
18410
|
+
const cachedIdToken = this.browserStorage.getIdToken(currentAccount, authRequest.correlationId, tokenKeys, currentAccount.tenantId, this.performanceClient);
|
|
18318
18411
|
if (!cachedIdToken) {
|
|
18319
18412
|
this.logger.verbose("No cached id token found");
|
|
18320
18413
|
return Promise.resolve(null);
|
|
@@ -18411,7 +18504,8 @@
|
|
|
18411
18504
|
* @returns Array of AccountInfo objects in cache
|
|
18412
18505
|
*/
|
|
18413
18506
|
getAllAccounts(accountFilter) {
|
|
18414
|
-
|
|
18507
|
+
const correlationId = this.browserCrypto.createNewGuid();
|
|
18508
|
+
return getAllAccounts(this.logger, this.browserStorage, this.isBrowserEnv(), correlationId, accountFilter);
|
|
18415
18509
|
}
|
|
18416
18510
|
/**
|
|
18417
18511
|
* Returns the first account found in the cache that matches the account filter passed in.
|
|
@@ -18419,7 +18513,8 @@
|
|
|
18419
18513
|
* @returns The first account found in the cache matching the provided filter or null if no account could be found.
|
|
18420
18514
|
*/
|
|
18421
18515
|
getAccount(accountFilter) {
|
|
18422
|
-
|
|
18516
|
+
const correlationId = this.browserCrypto.createNewGuid();
|
|
18517
|
+
return getAccount(accountFilter, this.logger, this.browserStorage, correlationId);
|
|
18423
18518
|
}
|
|
18424
18519
|
/**
|
|
18425
18520
|
* Returns the signed in account matching username.
|
|
@@ -18430,7 +18525,8 @@
|
|
|
18430
18525
|
* @returns The account object stored in MSAL
|
|
18431
18526
|
*/
|
|
18432
18527
|
getAccountByUsername(username) {
|
|
18433
|
-
|
|
18528
|
+
const correlationId = this.browserCrypto.createNewGuid();
|
|
18529
|
+
return getAccountByUsername(username, this.logger, this.browserStorage, correlationId);
|
|
18434
18530
|
}
|
|
18435
18531
|
/**
|
|
18436
18532
|
* Returns the signed in account matching homeAccountId.
|
|
@@ -18440,7 +18536,8 @@
|
|
|
18440
18536
|
* @returns The account object stored in MSAL
|
|
18441
18537
|
*/
|
|
18442
18538
|
getAccountByHomeId(homeAccountId) {
|
|
18443
|
-
|
|
18539
|
+
const correlationId = this.browserCrypto.createNewGuid();
|
|
18540
|
+
return getAccountByHomeId(homeAccountId, this.logger, this.browserStorage, correlationId);
|
|
18444
18541
|
}
|
|
18445
18542
|
/**
|
|
18446
18543
|
* Returns the signed in account matching localAccountId.
|
|
@@ -18450,7 +18547,8 @@
|
|
|
18450
18547
|
* @returns The account object stored in MSAL
|
|
18451
18548
|
*/
|
|
18452
18549
|
getAccountByLocalId(localAccountId) {
|
|
18453
|
-
|
|
18550
|
+
const correlationId = this.browserCrypto.createNewGuid();
|
|
18551
|
+
return getAccountByLocalId(localAccountId, this.logger, this.browserStorage, correlationId);
|
|
18454
18552
|
}
|
|
18455
18553
|
/**
|
|
18456
18554
|
* 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.
|
|
@@ -18461,13 +18559,15 @@
|
|
|
18461
18559
|
* StandardController uses this to allow the developer to set the active account
|
|
18462
18560
|
* in the nested app auth scenario the active account is controlled by the app hosting the nested app
|
|
18463
18561
|
*/
|
|
18464
|
-
|
|
18562
|
+
const correlationId = this.browserCrypto.createNewGuid();
|
|
18563
|
+
return setActiveAccount(account, this.browserStorage, correlationId);
|
|
18465
18564
|
}
|
|
18466
18565
|
/**
|
|
18467
18566
|
* Gets the currently active account
|
|
18468
18567
|
*/
|
|
18469
18568
|
getActiveAccount() {
|
|
18470
|
-
|
|
18569
|
+
const correlationId = this.browserCrypto.createNewGuid();
|
|
18570
|
+
return getActiveAccount(this.browserStorage, correlationId);
|
|
18471
18571
|
}
|
|
18472
18572
|
// #endregion
|
|
18473
18573
|
handleRedirectPromise(hash // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
@@ -19816,7 +19916,20 @@
|
|
|
19816
19916
|
* @returns If keys are properly deleted
|
|
19817
19917
|
*/
|
|
19818
19918
|
async removeKeys(publicKeyThumbprint) {
|
|
19819
|
-
return this.cryptoOps
|
|
19919
|
+
return this.cryptoOps
|
|
19920
|
+
.removeTokenBindingKey(publicKeyThumbprint)
|
|
19921
|
+
.then(() => true)
|
|
19922
|
+
.catch((error) => {
|
|
19923
|
+
/*
|
|
19924
|
+
* @deprecated - To maintain public API signature, we return false if the error is due to the key still being present in indexedDB.
|
|
19925
|
+
*/
|
|
19926
|
+
if (error instanceof ClientAuthError &&
|
|
19927
|
+
error.errorCode ===
|
|
19928
|
+
bindingKeyNotRemoved) {
|
|
19929
|
+
return false;
|
|
19930
|
+
}
|
|
19931
|
+
throw error;
|
|
19932
|
+
});
|
|
19820
19933
|
}
|
|
19821
19934
|
}
|
|
19822
19935
|
|