@azure/msal-browser 3.23.0 → 3.25.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/README.md +1 -1
- package/dist/app/IPublicClientApplication.d.ts +16 -16
- package/dist/app/IPublicClientApplication.d.ts.map +1 -1
- package/dist/app/IPublicClientApplication.mjs +1 -1
- package/dist/app/PublicClientApplication.d.ts +18 -18
- package/dist/app/PublicClientApplication.d.ts.map +1 -1
- package/dist/app/PublicClientApplication.mjs +1 -1
- package/dist/app/PublicClientApplication.mjs.map +1 -1
- package/dist/app/PublicClientNext.d.ts +16 -16
- package/dist/app/PublicClientNext.d.ts.map +1 -1
- package/dist/app/PublicClientNext.mjs +1 -1
- package/dist/app/PublicClientNext.mjs.map +1 -1
- package/dist/broker/nativeBroker/NativeMessageHandler.d.ts +3 -3
- package/dist/broker/nativeBroker/NativeMessageHandler.d.ts.map +1 -1
- package/dist/broker/nativeBroker/NativeMessageHandler.mjs +2 -2
- package/dist/broker/nativeBroker/NativeRequest.d.ts +2 -2
- package/dist/broker/nativeBroker/NativeRequest.d.ts.map +1 -1
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
- package/dist/cache/AccountManager.d.ts +2 -2
- package/dist/cache/AccountManager.d.ts.map +1 -1
- package/dist/cache/AccountManager.mjs +1 -1
- package/dist/cache/AsyncMemoryStorage.d.ts +2 -2
- package/dist/cache/AsyncMemoryStorage.d.ts.map +1 -1
- package/dist/cache/AsyncMemoryStorage.mjs +1 -1
- package/dist/cache/BrowserCacheManager.d.ts +11 -11
- package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
- package/dist/cache/BrowserCacheManager.mjs +2 -2
- package/dist/cache/BrowserStorage.d.ts +1 -1
- package/dist/cache/BrowserStorage.d.ts.map +1 -1
- package/dist/cache/BrowserStorage.mjs +1 -1
- package/dist/cache/DatabaseStorage.d.ts +1 -1
- package/dist/cache/DatabaseStorage.d.ts.map +1 -1
- package/dist/cache/DatabaseStorage.mjs +1 -1
- package/dist/cache/DatabaseStorage.mjs.map +1 -1
- package/dist/cache/ITokenCache.d.ts +4 -4
- package/dist/cache/ITokenCache.d.ts.map +1 -1
- package/dist/cache/MemoryStorage.d.ts +1 -1
- package/dist/cache/MemoryStorage.d.ts.map +1 -1
- package/dist/cache/MemoryStorage.mjs +1 -1
- package/dist/cache/TokenCache.d.ts +6 -6
- package/dist/cache/TokenCache.d.ts.map +1 -1
- package/dist/cache/TokenCache.mjs +2 -2
- package/dist/config/Configuration.d.ts +7 -3
- package/dist/config/Configuration.d.ts.map +1 -1
- package/dist/config/Configuration.mjs +3 -2
- package/dist/config/Configuration.mjs.map +1 -1
- package/dist/controllers/ControllerFactory.d.ts +3 -3
- package/dist/controllers/ControllerFactory.d.ts.map +1 -1
- package/dist/controllers/ControllerFactory.mjs +1 -1
- package/dist/controllers/IController.d.ts +17 -17
- package/dist/controllers/IController.d.ts.map +1 -1
- package/dist/controllers/NestedAppAuthController.d.ts +21 -21
- package/dist/controllers/NestedAppAuthController.d.ts.map +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +2 -2
- package/dist/controllers/StandardController.d.ts +28 -28
- package/dist/controllers/StandardController.d.ts.map +1 -1
- package/dist/controllers/StandardController.mjs +2 -2
- package/dist/controllers/UnknownOperatingContextController.d.ts +19 -19
- package/dist/controllers/UnknownOperatingContextController.d.ts.map +1 -1
- package/dist/controllers/UnknownOperatingContextController.mjs +2 -2
- package/dist/crypto/BrowserCrypto.d.ts +1 -1
- package/dist/crypto/BrowserCrypto.d.ts.map +1 -1
- package/dist/crypto/BrowserCrypto.mjs +2 -2
- package/dist/crypto/CryptoOps.d.ts +1 -1
- package/dist/crypto/CryptoOps.d.ts.map +1 -1
- package/dist/crypto/CryptoOps.mjs +2 -2
- package/dist/crypto/CryptoOps.mjs.map +1 -1
- package/dist/crypto/PkceGenerator.d.ts +1 -1
- package/dist/crypto/PkceGenerator.d.ts.map +1 -1
- package/dist/crypto/PkceGenerator.mjs +2 -2
- package/dist/crypto/SignedHttpRequest.d.ts +1 -1
- package/dist/crypto/SignedHttpRequest.d.ts.map +1 -1
- package/dist/crypto/SignedHttpRequest.mjs +2 -2
- package/dist/encode/Base64Decode.mjs +1 -1
- package/dist/encode/Base64Encode.mjs +1 -1
- package/dist/error/BrowserAuthError.d.ts +2 -2
- package/dist/error/BrowserAuthError.d.ts.map +1 -1
- package/dist/error/BrowserAuthError.mjs +2 -2
- package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
- package/dist/error/BrowserConfigurationAuthError.d.ts +2 -2
- package/dist/error/BrowserConfigurationAuthError.d.ts.map +1 -1
- package/dist/error/BrowserConfigurationAuthError.mjs +2 -2
- package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
- package/dist/error/NativeAuthError.d.ts +2 -2
- package/dist/error/NativeAuthError.d.ts.map +1 -1
- package/dist/error/NativeAuthError.mjs +2 -2
- package/dist/error/NativeAuthErrorCodes.mjs +1 -1
- package/dist/error/NestedAppAuthError.d.ts +1 -1
- package/dist/error/NestedAppAuthError.d.ts.map +1 -1
- package/dist/error/NestedAppAuthError.mjs +2 -2
- package/dist/event/EventHandler.d.ts +4 -4
- package/dist/event/EventHandler.d.ts.map +1 -1
- package/dist/event/EventHandler.mjs +2 -2
- package/dist/event/EventMessage.d.ts +9 -4
- package/dist/event/EventMessage.d.ts.map +1 -1
- package/dist/event/EventMessage.mjs +1 -1
- package/dist/event/EventMessage.mjs.map +1 -1
- package/dist/event/EventType.mjs +1 -1
- package/dist/index.d.ts +35 -35
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/interaction_client/BaseInteractionClient.d.ts +24 -16
- package/dist/interaction_client/BaseInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/BaseInteractionClient.mjs +23 -10
- package/dist/interaction_client/BaseInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.d.ts +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.d.ts.map +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +2 -2
- package/dist/interaction_client/NativeInteractionClient.d.ts +16 -16
- package/dist/interaction_client/NativeInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/NativeInteractionClient.mjs +12 -6
- package/dist/interaction_client/NativeInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/PopupClient.d.ts +17 -16
- package/dist/interaction_client/PopupClient.d.ts.map +1 -1
- package/dist/interaction_client/PopupClient.mjs +59 -56
- package/dist/interaction_client/PopupClient.mjs.map +1 -1
- package/dist/interaction_client/RedirectClient.d.ts +10 -10
- package/dist/interaction_client/RedirectClient.d.ts.map +1 -1
- package/dist/interaction_client/RedirectClient.mjs +35 -7
- package/dist/interaction_client/RedirectClient.mjs.map +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.d.ts +10 -10
- package/dist/interaction_client/SilentAuthCodeClient.d.ts.map +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.mjs +9 -3
- package/dist/interaction_client/SilentAuthCodeClient.mjs.map +1 -1
- package/dist/interaction_client/SilentCacheClient.d.ts +4 -4
- package/dist/interaction_client/SilentCacheClient.d.ts.map +1 -1
- package/dist/interaction_client/SilentCacheClient.mjs +8 -3
- package/dist/interaction_client/SilentCacheClient.mjs.map +1 -1
- package/dist/interaction_client/SilentIframeClient.d.ts +11 -11
- package/dist/interaction_client/SilentIframeClient.d.ts.map +1 -1
- package/dist/interaction_client/SilentIframeClient.mjs +9 -3
- package/dist/interaction_client/SilentIframeClient.mjs.map +1 -1
- package/dist/interaction_client/SilentRefreshClient.d.ts +17 -6
- package/dist/interaction_client/SilentRefreshClient.d.ts.map +1 -1
- package/dist/interaction_client/SilentRefreshClient.mjs +23 -7
- package/dist/interaction_client/SilentRefreshClient.mjs.map +1 -1
- package/dist/interaction_client/StandardInteractionClient.d.ts +36 -15
- package/dist/interaction_client/StandardInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/StandardInteractionClient.mjs +26 -11
- package/dist/interaction_client/StandardInteractionClient.mjs.map +1 -1
- package/dist/interaction_handler/InteractionHandler.d.ts +4 -4
- package/dist/interaction_handler/InteractionHandler.d.ts.map +1 -1
- package/dist/interaction_handler/InteractionHandler.mjs +2 -2
- package/dist/interaction_handler/RedirectHandler.d.ts +4 -4
- package/dist/interaction_handler/RedirectHandler.d.ts.map +1 -1
- package/dist/interaction_handler/RedirectHandler.mjs +2 -2
- package/dist/interaction_handler/SilentHandler.d.ts +1 -1
- package/dist/interaction_handler/SilentHandler.d.ts.map +1 -1
- package/dist/interaction_handler/SilentHandler.mjs +2 -2
- package/dist/naa/AuthResult.d.ts +2 -2
- package/dist/naa/AuthResult.d.ts.map +1 -1
- package/dist/naa/BridgeError.d.ts +1 -1
- package/dist/naa/BridgeError.d.ts.map +1 -1
- package/dist/naa/BridgeError.mjs +1 -1
- package/dist/naa/BridgeProxy.d.ts +9 -8
- package/dist/naa/BridgeProxy.d.ts.map +1 -1
- package/dist/naa/BridgeProxy.mjs +16 -14
- package/dist/naa/BridgeProxy.mjs.map +1 -1
- package/dist/naa/BridgeRequest.d.ts +1 -1
- package/dist/naa/BridgeRequest.d.ts.map +1 -1
- package/dist/naa/BridgeRequestEnvelope.d.ts +1 -1
- package/dist/naa/BridgeRequestEnvelope.d.ts.map +1 -1
- package/dist/naa/BridgeResponseEnvelope.d.ts +4 -4
- package/dist/naa/BridgeResponseEnvelope.d.ts.map +1 -1
- package/dist/naa/BridgeStatusCode.mjs +1 -1
- package/dist/naa/IBridgeProxy.d.ts +4 -4
- package/dist/naa/IBridgeProxy.d.ts.map +1 -1
- package/dist/naa/InitContext.d.ts +2 -2
- package/dist/naa/InitContext.d.ts.map +1 -1
- package/dist/naa/mapping/NestedAppAuthAdapter.d.ts +9 -9
- package/dist/naa/mapping/NestedAppAuthAdapter.d.ts.map +1 -1
- package/dist/naa/mapping/NestedAppAuthAdapter.mjs +2 -2
- package/dist/navigation/INavigationClient.d.ts +1 -1
- package/dist/navigation/INavigationClient.d.ts.map +1 -1
- package/dist/navigation/NavigationClient.d.ts +2 -2
- package/dist/navigation/NavigationClient.d.ts.map +1 -1
- package/dist/navigation/NavigationClient.mjs +1 -1
- package/dist/navigation/NavigationOptions.d.ts +1 -1
- package/dist/navigation/NavigationOptions.d.ts.map +1 -1
- package/dist/network/FetchClient.d.ts +1 -1
- package/dist/network/FetchClient.d.ts.map +1 -1
- package/dist/network/FetchClient.mjs +2 -2
- package/dist/operatingcontext/BaseOperatingContext.d.ts +2 -2
- package/dist/operatingcontext/BaseOperatingContext.d.ts.map +1 -1
- package/dist/operatingcontext/BaseOperatingContext.mjs +2 -2
- package/dist/operatingcontext/NestedAppOperatingContext.d.ts +8 -3
- package/dist/operatingcontext/NestedAppOperatingContext.d.ts.map +1 -1
- package/dist/operatingcontext/NestedAppOperatingContext.mjs +4 -5
- package/dist/operatingcontext/NestedAppOperatingContext.mjs.map +1 -1
- package/dist/operatingcontext/StandardOperatingContext.d.ts +1 -1
- package/dist/operatingcontext/StandardOperatingContext.d.ts.map +1 -1
- package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
- package/dist/operatingcontext/UnknownOperatingContext.d.ts +1 -1
- package/dist/operatingcontext/UnknownOperatingContext.d.ts.map +1 -1
- package/dist/operatingcontext/UnknownOperatingContext.mjs +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/request/AuthorizationCodeRequest.d.ts +1 -1
- package/dist/request/AuthorizationCodeRequest.d.ts.map +1 -1
- package/dist/request/AuthorizationUrlRequest.d.ts +1 -1
- package/dist/request/AuthorizationUrlRequest.d.ts.map +1 -1
- package/dist/request/ClearCacheRequest.d.ts +1 -1
- package/dist/request/ClearCacheRequest.d.ts.map +1 -1
- package/dist/request/EndSessionPopupRequest.d.ts +4 -2
- package/dist/request/EndSessionPopupRequest.d.ts.map +1 -1
- package/dist/request/EndSessionRequest.d.ts +1 -1
- package/dist/request/EndSessionRequest.d.ts.map +1 -1
- package/dist/request/PopupRequest.d.ts +4 -2
- package/dist/request/PopupRequest.d.ts.map +1 -1
- package/dist/request/RedirectRequest.d.ts +1 -1
- package/dist/request/RedirectRequest.d.ts.map +1 -1
- package/dist/request/RequestHelpers.d.ts +3 -3
- package/dist/request/RequestHelpers.d.ts.map +1 -1
- package/dist/request/RequestHelpers.mjs +2 -2
- package/dist/request/SilentRequest.d.ts +2 -2
- package/dist/request/SilentRequest.d.ts.map +1 -1
- package/dist/request/SsoSilentRequest.d.ts +1 -1
- package/dist/request/SsoSilentRequest.d.ts.map +1 -1
- package/dist/response/AuthenticationResult.d.ts +1 -1
- package/dist/response/AuthenticationResult.d.ts.map +1 -1
- package/dist/response/ResponseHandler.d.ts +2 -2
- package/dist/response/ResponseHandler.d.ts.map +1 -1
- package/dist/response/ResponseHandler.mjs +2 -2
- package/dist/telemetry/BrowserPerformanceClient.d.ts +2 -2
- package/dist/telemetry/BrowserPerformanceClient.d.ts.map +1 -1
- package/dist/telemetry/BrowserPerformanceClient.mjs +2 -2
- package/dist/telemetry/BrowserPerformanceClient.mjs.map +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.d.ts +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.d.ts.map +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.mjs.map +1 -1
- package/dist/utils/BrowserConstants.d.ts +2 -2
- package/dist/utils/BrowserConstants.d.ts.map +1 -1
- package/dist/utils/BrowserConstants.mjs +2 -2
- package/dist/utils/BrowserProtocolUtils.d.ts +2 -2
- package/dist/utils/BrowserProtocolUtils.d.ts.map +1 -1
- package/dist/utils/BrowserProtocolUtils.mjs +2 -2
- package/dist/utils/BrowserUtils.d.ts +2 -2
- package/dist/utils/BrowserUtils.d.ts.map +1 -1
- package/dist/utils/BrowserUtils.mjs +3 -3
- package/lib/msal-browser.cjs +5060 -4953
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +5060 -4953
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +65 -67
- package/lib/package.json +1 -0
- package/lib/types/app/IPublicClientApplication.d.ts +54 -0
- package/lib/types/app/IPublicClientApplication.d.ts.map +1 -0
- package/lib/types/app/PublicClientApplication.d.ts +294 -0
- package/lib/types/app/PublicClientApplication.d.ts.map +1 -0
- package/lib/types/app/PublicClientNext.d.ts +277 -0
- package/lib/types/app/PublicClientNext.d.ts.map +1 -0
- package/lib/types/broker/nativeBroker/NativeMessageHandler.d.ts +63 -0
- package/lib/types/broker/nativeBroker/NativeMessageHandler.d.ts.map +1 -0
- package/lib/types/broker/nativeBroker/NativeRequest.d.ts +46 -0
- package/lib/types/broker/nativeBroker/NativeRequest.d.ts.map +1 -0
- package/lib/types/broker/nativeBroker/NativeResponse.d.ts +49 -0
- package/lib/types/broker/nativeBroker/NativeResponse.d.ts.map +1 -0
- package/lib/types/broker/nativeBroker/NativeStatusCodes.d.ts +8 -0
- package/lib/types/broker/nativeBroker/NativeStatusCodes.d.ts.map +1 -0
- package/lib/types/cache/AccountManager.d.ts +49 -0
- package/lib/types/cache/AccountManager.d.ts.map +1 -0
- package/lib/types/cache/AsyncMemoryStorage.d.ts +51 -0
- package/lib/types/cache/AsyncMemoryStorage.d.ts.map +1 -0
- package/lib/types/cache/BrowserCacheManager.d.ts +386 -0
- package/lib/types/cache/BrowserCacheManager.d.ts.map +1 -0
- package/lib/types/cache/BrowserStorage.d.ts +12 -0
- package/lib/types/cache/BrowserStorage.d.ts.map +1 -0
- package/lib/types/cache/DatabaseStorage.d.ts +57 -0
- package/lib/types/cache/DatabaseStorage.d.ts.map +1 -0
- package/lib/types/cache/IAsyncStorage.d.ts +28 -0
- package/lib/types/cache/IAsyncStorage.d.ts.map +1 -0
- package/lib/types/cache/ITokenCache.d.ts +12 -0
- package/lib/types/cache/ITokenCache.d.ts.map +1 -0
- package/lib/types/cache/IWindowStorage.d.ts +28 -0
- package/lib/types/cache/IWindowStorage.d.ts.map +1 -0
- package/lib/types/cache/MemoryStorage.d.ts +12 -0
- package/lib/types/cache/MemoryStorage.d.ts.map +1 -0
- package/lib/types/cache/TokenCache.d.ts +78 -0
- package/lib/types/cache/TokenCache.d.ts.map +1 -0
- package/lib/types/config/Configuration.d.ts +218 -0
- package/lib/types/config/Configuration.d.ts.map +1 -0
- package/lib/types/controllers/ControllerFactory.d.ts +6 -0
- package/lib/types/controllers/ControllerFactory.d.ts.map +1 -0
- package/lib/types/controllers/IController.d.ts +61 -0
- package/lib/types/controllers/IController.d.ts.map +1 -0
- package/lib/types/controllers/NestedAppAuthController.d.ts +203 -0
- package/lib/types/controllers/NestedAppAuthController.d.ts.map +1 -0
- package/lib/types/controllers/StandardController.d.ts +406 -0
- package/lib/types/controllers/StandardController.d.ts.map +1 -0
- package/lib/types/controllers/UnknownOperatingContextController.d.ts +87 -0
- package/lib/types/controllers/UnknownOperatingContextController.d.ts.map +1 -0
- package/lib/types/crypto/BrowserCrypto.d.ts +53 -0
- package/lib/types/crypto/BrowserCrypto.d.ts.map +1 -0
- package/lib/types/crypto/CryptoOps.d.ts +75 -0
- package/lib/types/crypto/CryptoOps.d.ts.map +1 -0
- package/lib/types/crypto/PkceGenerator.d.ts +9 -0
- package/lib/types/crypto/PkceGenerator.d.ts.map +1 -0
- package/lib/types/crypto/SignedHttpRequest.d.ts +31 -0
- package/lib/types/crypto/SignedHttpRequest.d.ts.map +1 -0
- package/lib/types/encode/Base64Decode.d.ts +10 -0
- package/lib/types/encode/Base64Decode.d.ts.map +1 -0
- package/lib/types/encode/Base64Encode.d.ts +20 -0
- package/lib/types/encode/Base64Encode.d.ts.map +1 -0
- package/lib/types/error/BrowserAuthError.d.ts +256 -0
- package/lib/types/error/BrowserAuthError.d.ts.map +1 -0
- package/lib/types/error/BrowserAuthErrorCodes.d.ts +47 -0
- package/lib/types/error/BrowserAuthErrorCodes.d.ts.map +1 -0
- package/lib/types/error/BrowserConfigurationAuthError.d.ts +34 -0
- package/lib/types/error/BrowserConfigurationAuthError.d.ts.map +1 -0
- package/lib/types/error/BrowserConfigurationAuthErrorCodes.d.ts +4 -0
- package/lib/types/error/BrowserConfigurationAuthErrorCodes.d.ts.map +1 -0
- package/lib/types/error/NativeAuthError.d.ts +30 -0
- package/lib/types/error/NativeAuthError.d.ts.map +1 -0
- package/lib/types/error/NativeAuthErrorCodes.d.ts +3 -0
- package/lib/types/error/NativeAuthErrorCodes.d.ts.map +1 -0
- package/lib/types/error/NestedAppAuthError.d.ts +15 -0
- package/lib/types/error/NestedAppAuthError.d.ts.map +1 -0
- package/lib/types/event/EventHandler.d.ts +42 -0
- package/lib/types/event/EventHandler.d.ts.map +1 -0
- package/lib/types/event/EventMessage.d.ts +31 -0
- package/lib/types/event/EventMessage.d.ts.map +1 -0
- package/lib/types/event/EventType.d.ts +30 -0
- package/lib/types/event/EventType.d.ts.map +1 -0
- package/lib/types/index.d.ts +41 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/interaction_client/BaseInteractionClient.d.ts +59 -0
- package/lib/types/interaction_client/BaseInteractionClient.d.ts.map +1 -0
- package/lib/types/interaction_client/HybridSpaAuthorizationCodeClient.d.ts +5 -0
- package/lib/types/interaction_client/HybridSpaAuthorizationCodeClient.d.ts.map +1 -0
- package/lib/types/interaction_client/NativeInteractionClient.d.ts +152 -0
- package/lib/types/interaction_client/NativeInteractionClient.d.ts.map +1 -0
- package/lib/types/interaction_client/PopupClient.d.ts +107 -0
- package/lib/types/interaction_client/PopupClient.d.ts.map +1 -0
- package/lib/types/interaction_client/RedirectClient.d.ts +51 -0
- package/lib/types/interaction_client/RedirectClient.d.ts.map +1 -0
- package/lib/types/interaction_client/SilentAuthCodeClient.d.ts +24 -0
- package/lib/types/interaction_client/SilentAuthCodeClient.d.ts.map +1 -0
- package/lib/types/interaction_client/SilentCacheClient.d.ts +17 -0
- package/lib/types/interaction_client/SilentCacheClient.d.ts.map +1 -0
- package/lib/types/interaction_client/SilentIframeClient.d.ts +33 -0
- package/lib/types/interaction_client/SilentIframeClient.d.ts.map +1 -0
- package/lib/types/interaction_client/SilentRefreshClient.d.ts +32 -0
- package/lib/types/interaction_client/SilentRefreshClient.d.ts.map +1 -0
- package/lib/types/interaction_client/StandardInteractionClient.d.ts +70 -0
- package/lib/types/interaction_client/StandardInteractionClient.d.ts.map +1 -0
- package/lib/types/interaction_handler/InteractionHandler.d.ts +34 -0
- package/lib/types/interaction_handler/InteractionHandler.d.ts.map +1 -0
- package/lib/types/interaction_handler/RedirectHandler.d.ts +33 -0
- package/lib/types/interaction_handler/RedirectHandler.d.ts.map +1 -0
- package/lib/types/interaction_handler/SilentHandler.d.ts +14 -0
- package/lib/types/interaction_handler/SilentHandler.d.ts.map +1 -0
- package/lib/types/naa/AccountInfo.d.ts +12 -0
- package/lib/types/naa/AccountInfo.d.ts.map +1 -0
- package/lib/types/naa/AuthBridge.d.ts +9 -0
- package/lib/types/naa/AuthBridge.d.ts.map +1 -0
- package/lib/types/naa/AuthResult.d.ts +7 -0
- package/lib/types/naa/AuthResult.d.ts.map +1 -0
- package/lib/types/naa/BridgeAccountContext.d.ts +13 -0
- package/lib/types/naa/BridgeAccountContext.d.ts.map +1 -0
- package/lib/types/naa/BridgeCapabilities.d.ts +4 -0
- package/lib/types/naa/BridgeCapabilities.d.ts.map +1 -0
- package/lib/types/naa/BridgeError.d.ts +10 -0
- package/lib/types/naa/BridgeError.d.ts.map +1 -0
- package/lib/types/naa/BridgeProxy.d.ts +69 -0
- package/lib/types/naa/BridgeProxy.d.ts.map +1 -0
- package/lib/types/naa/BridgeRequest.d.ts +8 -0
- package/lib/types/naa/BridgeRequest.d.ts.map +1 -0
- package/lib/types/naa/BridgeRequestEnvelope.d.ts +13 -0
- package/lib/types/naa/BridgeRequestEnvelope.d.ts.map +1 -0
- package/lib/types/naa/BridgeResponseEnvelope.d.ts +14 -0
- package/lib/types/naa/BridgeResponseEnvelope.d.ts.map +1 -0
- package/lib/types/naa/BridgeStatusCode.d.ts +12 -0
- package/lib/types/naa/BridgeStatusCode.d.ts.map +1 -0
- package/lib/types/naa/IBridgeProxy.d.ts +11 -0
- package/lib/types/naa/IBridgeProxy.d.ts.map +1 -0
- package/lib/types/naa/InitContext.d.ts +9 -0
- package/lib/types/naa/InitContext.d.ts.map +1 -0
- package/lib/types/naa/TokenRequest.d.ts +19 -0
- package/lib/types/naa/TokenRequest.d.ts.map +1 -0
- package/lib/types/naa/TokenResponse.d.ts +14 -0
- package/lib/types/naa/TokenResponse.d.ts.map +1 -0
- package/lib/types/naa/mapping/NestedAppAuthAdapter.d.ts +36 -0
- package/lib/types/naa/mapping/NestedAppAuthAdapter.d.ts.map +1 -0
- package/lib/types/navigation/INavigationClient.d.ts +17 -0
- package/lib/types/navigation/INavigationClient.d.ts.map +1 -0
- package/lib/types/navigation/NavigationClient.d.ts +23 -0
- package/lib/types/navigation/NavigationClient.d.ts.map +1 -0
- package/lib/types/navigation/NavigationOptions.d.ts +13 -0
- package/lib/types/navigation/NavigationOptions.d.ts.map +1 -0
- package/lib/types/network/FetchClient.d.ts +27 -0
- package/lib/types/network/FetchClient.d.ts.map +1 -0
- package/lib/types/operatingcontext/BaseOperatingContext.d.ts +42 -0
- package/lib/types/operatingcontext/BaseOperatingContext.d.ts.map +1 -0
- package/lib/types/operatingcontext/NestedAppOperatingContext.d.ts +40 -0
- package/lib/types/operatingcontext/NestedAppOperatingContext.d.ts.map +1 -0
- package/lib/types/operatingcontext/StandardOperatingContext.d.ts +26 -0
- package/lib/types/operatingcontext/StandardOperatingContext.d.ts.map +1 -0
- package/lib/types/operatingcontext/UnknownOperatingContext.d.ts +26 -0
- package/lib/types/operatingcontext/UnknownOperatingContext.d.ts.map +1 -0
- package/lib/types/packageMetadata.d.ts +3 -0
- package/lib/types/packageMetadata.d.ts.map +1 -0
- package/lib/types/request/AuthorizationCodeRequest.d.ts +9 -0
- package/lib/types/request/AuthorizationCodeRequest.d.ts.map +1 -0
- package/lib/types/request/AuthorizationUrlRequest.d.ts +9 -0
- package/lib/types/request/AuthorizationUrlRequest.d.ts.map +1 -0
- package/lib/types/request/ClearCacheRequest.d.ts +11 -0
- package/lib/types/request/ClearCacheRequest.d.ts.map +1 -0
- package/lib/types/request/EndSessionPopupRequest.d.ts +21 -0
- package/lib/types/request/EndSessionPopupRequest.d.ts.map +1 -0
- package/lib/types/request/EndSessionRequest.d.ts +16 -0
- package/lib/types/request/EndSessionRequest.d.ts.map +1 -0
- package/lib/types/request/InitializeApplicationRequest.d.ts +9 -0
- package/lib/types/request/InitializeApplicationRequest.d.ts.map +1 -0
- package/lib/types/request/PopupRequest.d.ts +37 -0
- package/lib/types/request/PopupRequest.d.ts.map +1 -0
- package/lib/types/request/PopupWindowAttributes.d.ts +16 -0
- package/lib/types/request/PopupWindowAttributes.d.ts.map +1 -0
- package/lib/types/request/RedirectRequest.d.ts +41 -0
- package/lib/types/request/RedirectRequest.d.ts.map +1 -0
- package/lib/types/request/RequestHelpers.d.ts +14 -0
- package/lib/types/request/RequestHelpers.d.ts.map +1 -0
- package/lib/types/request/SilentRequest.d.ts +34 -0
- package/lib/types/request/SilentRequest.d.ts.map +1 -0
- package/lib/types/request/SsoSilentRequest.d.ts +30 -0
- package/lib/types/request/SsoSilentRequest.d.ts.map +1 -0
- package/lib/types/response/AuthenticationResult.d.ts +5 -0
- package/lib/types/response/AuthenticationResult.d.ts.map +1 -0
- package/lib/types/response/ResponseHandler.d.ts +8 -0
- package/lib/types/response/ResponseHandler.d.ts.map +1 -0
- package/lib/types/telemetry/BrowserPerformanceClient.d.ts +35 -0
- package/lib/types/telemetry/BrowserPerformanceClient.d.ts.map +1 -0
- package/lib/types/telemetry/BrowserPerformanceMeasurement.d.ts +22 -0
- package/lib/types/telemetry/BrowserPerformanceMeasurement.d.ts.map +1 -0
- package/lib/types/utils/BrowserConstants.d.ts +181 -0
- package/lib/types/utils/BrowserConstants.d.ts.map +1 -0
- package/lib/types/utils/BrowserProtocolUtils.d.ts +12 -0
- package/lib/types/utils/BrowserProtocolUtils.d.ts.map +1 -0
- package/lib/types/utils/BrowserUtils.d.ts +76 -0
- package/lib/types/utils/BrowserUtils.d.ts.map +1 -0
- package/package.json +15 -16
- package/src/app/IPublicClientApplication.ts +17 -17
- package/src/app/PublicClientApplication.ts +26 -23
- package/src/app/PublicClientNext.ts +22 -19
- package/src/broker/nativeBroker/NativeMessageHandler.ts +7 -7
- package/src/broker/nativeBroker/NativeRequest.ts +2 -2
- package/src/cache/AccountManager.ts +2 -2
- package/src/cache/AsyncMemoryStorage.ts +5 -5
- package/src/cache/BrowserCacheManager.ts +16 -16
- package/src/cache/BrowserStorage.ts +3 -3
- package/src/cache/DatabaseStorage.ts +7 -3
- package/src/cache/ITokenCache.ts +4 -4
- package/src/cache/MemoryStorage.ts +1 -1
- package/src/cache/TokenCache.ts +9 -9
- package/src/config/Configuration.ts +10 -5
- package/src/controllers/ControllerFactory.ts +7 -7
- package/src/controllers/IController.ts +17 -17
- package/src/controllers/NestedAppAuthController.ts +25 -25
- package/src/controllers/StandardController.ts +39 -39
- package/src/controllers/UnknownOperatingContextController.ts +21 -21
- package/src/crypto/BrowserCrypto.ts +4 -4
- package/src/crypto/CryptoOps.ts +10 -6
- package/src/crypto/PkceGenerator.ts +4 -4
- package/src/crypto/SignedHttpRequest.ts +3 -3
- package/src/encode/Base64Decode.ts +1 -1
- package/src/error/BrowserAuthError.ts +2 -2
- package/src/error/BrowserConfigurationAuthError.ts +2 -2
- package/src/error/NativeAuthError.ts +4 -4
- package/src/error/NestedAppAuthError.ts +1 -1
- package/src/event/EventHandler.ts +5 -5
- package/src/event/EventMessage.ts +11 -10
- package/src/index.ts +35 -35
- package/src/interaction_client/BaseInteractionClient.ts +51 -28
- package/src/interaction_client/HybridSpaAuthorizationCodeClient.ts +1 -1
- package/src/interaction_client/NativeInteractionClient.ts +32 -29
- package/src/interaction_client/PopupClient.ts +95 -109
- package/src/interaction_client/RedirectClient.ts +57 -31
- package/src/interaction_client/SilentAuthCodeClient.ts +20 -19
- package/src/interaction_client/SilentCacheClient.ts +11 -11
- package/src/interaction_client/SilentIframeClient.ts +23 -22
- package/src/interaction_client/SilentRefreshClient.ts +33 -20
- package/src/interaction_client/StandardInteractionClient.ts +62 -38
- package/src/interaction_handler/InteractionHandler.ts +5 -5
- package/src/interaction_handler/RedirectHandler.ts +7 -7
- package/src/interaction_handler/SilentHandler.ts +3 -3
- package/src/naa/AuthResult.ts +2 -2
- package/src/naa/BridgeError.ts +1 -1
- package/src/naa/BridgeProxy.ts +36 -26
- package/src/naa/BridgeRequest.ts +1 -1
- package/src/naa/BridgeRequestEnvelope.ts +1 -1
- package/src/naa/BridgeResponseEnvelope.ts +4 -4
- package/src/naa/IBridgeProxy.ts +4 -4
- package/src/naa/InitContext.ts +2 -2
- package/src/naa/mapping/NestedAppAuthAdapter.ts +12 -12
- package/src/navigation/INavigationClient.ts +1 -1
- package/src/navigation/NavigationClient.ts +2 -2
- package/src/navigation/NavigationOptions.ts +1 -1
- package/src/network/FetchClient.ts +3 -3
- package/src/operatingcontext/BaseOperatingContext.ts +4 -4
- package/src/operatingcontext/NestedAppOperatingContext.ts +14 -9
- package/src/operatingcontext/StandardOperatingContext.ts +1 -1
- package/src/operatingcontext/UnknownOperatingContext.ts +1 -1
- package/src/packageMetadata.ts +1 -1
- package/src/request/AuthorizationCodeRequest.ts +1 -1
- package/src/request/AuthorizationUrlRequest.ts +1 -1
- package/src/request/ClearCacheRequest.ts +1 -1
- package/src/request/EndSessionPopupRequest.ts +4 -2
- package/src/request/EndSessionRequest.ts +1 -1
- package/src/request/PopupRequest.ts +7 -2
- package/src/request/RedirectRequest.ts +4 -1
- package/src/request/RequestHelpers.ts +4 -4
- package/src/request/SilentRequest.ts +2 -2
- package/src/request/SsoSilentRequest.ts +4 -1
- package/src/response/AuthenticationResult.ts +1 -1
- package/src/response/ResponseHandler.ts +4 -4
- package/src/telemetry/BrowserPerformanceClient.ts +6 -6
- package/src/telemetry/BrowserPerformanceMeasurement.ts +4 -1
- package/src/utils/BrowserConstants.ts +3 -3
- package/src/utils/BrowserProtocolUtils.ts +2 -2
- package/src/utils/BrowserUtils.ts +6 -6
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
import {
|
|
7
7
|
BrowserConfigurationAuthErrorCodes,
|
|
8
8
|
createBrowserConfigurationAuthError,
|
|
9
|
-
} from "../error/BrowserConfigurationAuthError";
|
|
10
|
-
import { BrowserCacheLocation } from "../utils/BrowserConstants";
|
|
11
|
-
import { IWindowStorage } from "./IWindowStorage";
|
|
9
|
+
} from "../error/BrowserConfigurationAuthError.js";
|
|
10
|
+
import { BrowserCacheLocation } from "../utils/BrowserConstants.js";
|
|
11
|
+
import { IWindowStorage } from "./IWindowStorage.js";
|
|
12
12
|
|
|
13
13
|
export class BrowserStorage implements IWindowStorage<string> {
|
|
14
14
|
private windowStorage: Storage;
|
|
@@ -6,9 +6,13 @@
|
|
|
6
6
|
import {
|
|
7
7
|
createBrowserAuthError,
|
|
8
8
|
BrowserAuthErrorCodes,
|
|
9
|
-
} from "../error/BrowserAuthError";
|
|
10
|
-
import {
|
|
11
|
-
|
|
9
|
+
} from "../error/BrowserAuthError.js";
|
|
10
|
+
import {
|
|
11
|
+
DB_NAME,
|
|
12
|
+
DB_TABLE_NAME,
|
|
13
|
+
DB_VERSION,
|
|
14
|
+
} from "../utils/BrowserConstants.js";
|
|
15
|
+
import { IAsyncStorage } from "./IAsyncStorage.js";
|
|
12
16
|
|
|
13
17
|
interface IDBOpenDBRequestEvent extends Event {
|
|
14
18
|
target: IDBOpenDBRequest & EventTarget;
|
package/src/cache/ITokenCache.ts
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { ExternalTokenResponse } from "@azure/msal-common";
|
|
7
|
-
import { SilentRequest } from "../request/SilentRequest";
|
|
8
|
-
import { LoadTokenOptions } from "./TokenCache";
|
|
9
|
-
import { AuthenticationResult } from "../response/AuthenticationResult";
|
|
6
|
+
import { ExternalTokenResponse } from "@azure/msal-common/browser";
|
|
7
|
+
import { SilentRequest } from "../request/SilentRequest.js";
|
|
8
|
+
import { LoadTokenOptions } from "./TokenCache.js";
|
|
9
|
+
import { AuthenticationResult } from "../response/AuthenticationResult.js";
|
|
10
10
|
|
|
11
11
|
export interface ITokenCache {
|
|
12
12
|
/**
|
package/src/cache/TokenCache.ts
CHANGED
|
@@ -19,18 +19,18 @@ import {
|
|
|
19
19
|
TokenClaims,
|
|
20
20
|
CacheHelpers,
|
|
21
21
|
buildAccountToCache,
|
|
22
|
-
} from "@azure/msal-common";
|
|
23
|
-
import { BrowserConfiguration } from "../config/Configuration";
|
|
24
|
-
import { SilentRequest } from "../request/SilentRequest";
|
|
25
|
-
import { BrowserCacheManager } from "./BrowserCacheManager";
|
|
26
|
-
import { ITokenCache } from "./ITokenCache";
|
|
22
|
+
} from "@azure/msal-common/browser";
|
|
23
|
+
import { BrowserConfiguration } from "../config/Configuration.js";
|
|
24
|
+
import { SilentRequest } from "../request/SilentRequest.js";
|
|
25
|
+
import { BrowserCacheManager } from "./BrowserCacheManager.js";
|
|
26
|
+
import { ITokenCache } from "./ITokenCache.js";
|
|
27
27
|
import {
|
|
28
28
|
createBrowserAuthError,
|
|
29
29
|
BrowserAuthErrorCodes,
|
|
30
|
-
} from "../error/BrowserAuthError";
|
|
31
|
-
import { AuthenticationResult } from "../response/AuthenticationResult";
|
|
32
|
-
import { base64Decode } from "../encode/Base64Decode";
|
|
33
|
-
import * as BrowserCrypto from "../crypto/BrowserCrypto";
|
|
30
|
+
} from "../error/BrowserAuthError.js";
|
|
31
|
+
import { AuthenticationResult } from "../response/AuthenticationResult.js";
|
|
32
|
+
import { base64Decode } from "../encode/Base64Decode.js";
|
|
33
|
+
import * as BrowserCrypto from "../crypto/BrowserCrypto.js";
|
|
34
34
|
|
|
35
35
|
export type LoadTokenOptions = {
|
|
36
36
|
clientInfo?: string;
|
|
@@ -22,14 +22,14 @@ import {
|
|
|
22
22
|
IPerformanceClient,
|
|
23
23
|
StubPerformanceClient,
|
|
24
24
|
Logger,
|
|
25
|
-
} from "@azure/msal-common";
|
|
25
|
+
} from "@azure/msal-common/browser";
|
|
26
26
|
import {
|
|
27
27
|
BrowserCacheLocation,
|
|
28
28
|
BrowserConstants,
|
|
29
|
-
} from "../utils/BrowserConstants";
|
|
30
|
-
import { INavigationClient } from "../navigation/INavigationClient";
|
|
31
|
-
import { NavigationClient } from "../navigation/NavigationClient";
|
|
32
|
-
import { FetchClient } from "../network/FetchClient";
|
|
29
|
+
} from "../utils/BrowserConstants.js";
|
|
30
|
+
import { INavigationClient } from "../navigation/INavigationClient.js";
|
|
31
|
+
import { NavigationClient } from "../navigation/NavigationClient.js";
|
|
32
|
+
import { FetchClient } from "../network/FetchClient.js";
|
|
33
33
|
|
|
34
34
|
// Default timeout for popup windows and iframes in milliseconds
|
|
35
35
|
export const DEFAULT_POPUP_TIMEOUT_MS = 60000;
|
|
@@ -103,6 +103,10 @@ export type BrowserAuthOptions = {
|
|
|
103
103
|
* Callback that will be passed the url that MSAL will navigate to in redirect flows. Returning false in the callback will stop navigation.
|
|
104
104
|
*/
|
|
105
105
|
onRedirectNavigate?: (url: string) => boolean | void;
|
|
106
|
+
/**
|
|
107
|
+
* Flag of whether the STS will send back additional parameters to specify where the tokens should be retrieved from.
|
|
108
|
+
*/
|
|
109
|
+
instanceAware?: boolean;
|
|
106
110
|
};
|
|
107
111
|
|
|
108
112
|
/** @internal */
|
|
@@ -288,6 +292,7 @@ export function buildConfiguration(
|
|
|
288
292
|
},
|
|
289
293
|
skipAuthorityMetadataCache: false,
|
|
290
294
|
supportsNestedAppAuth: false,
|
|
295
|
+
instanceAware: false,
|
|
291
296
|
};
|
|
292
297
|
|
|
293
298
|
// Default cache options for browser
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { NestedAppOperatingContext } from "../operatingcontext/NestedAppOperatingContext";
|
|
7
|
-
import { StandardOperatingContext } from "../operatingcontext/StandardOperatingContext";
|
|
8
|
-
import { IController } from "./IController";
|
|
9
|
-
import { Configuration } from "../config/Configuration";
|
|
10
|
-
import { StandardController } from "./StandardController";
|
|
11
|
-
import { NestedAppAuthController } from "./NestedAppAuthController";
|
|
12
|
-
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest";
|
|
6
|
+
import { NestedAppOperatingContext } from "../operatingcontext/NestedAppOperatingContext.js";
|
|
7
|
+
import { StandardOperatingContext } from "../operatingcontext/StandardOperatingContext.js";
|
|
8
|
+
import { IController } from "./IController.js";
|
|
9
|
+
import { Configuration } from "../config/Configuration.js";
|
|
10
|
+
import { StandardController } from "./StandardController.js";
|
|
11
|
+
import { NestedAppAuthController } from "./NestedAppAuthController.js";
|
|
12
|
+
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest.js";
|
|
13
13
|
|
|
14
14
|
export async function createV3Controller(
|
|
15
15
|
config: Configuration,
|
|
@@ -9,23 +9,23 @@ import {
|
|
|
9
9
|
PerformanceCallbackFunction,
|
|
10
10
|
IPerformanceClient,
|
|
11
11
|
AccountFilter,
|
|
12
|
-
} from "@azure/msal-common";
|
|
13
|
-
import { RedirectRequest } from "../request/RedirectRequest";
|
|
14
|
-
import { PopupRequest } from "../request/PopupRequest";
|
|
15
|
-
import { SilentRequest } from "../request/SilentRequest";
|
|
16
|
-
import { SsoSilentRequest } from "../request/SsoSilentRequest";
|
|
17
|
-
import { EndSessionRequest } from "../request/EndSessionRequest";
|
|
18
|
-
import { ApiId, WrapperSKU } from "../utils/BrowserConstants";
|
|
19
|
-
import { INavigationClient } from "../navigation/INavigationClient";
|
|
20
|
-
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest";
|
|
21
|
-
import { ITokenCache } from "../cache/ITokenCache";
|
|
22
|
-
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest";
|
|
23
|
-
import { BrowserConfiguration } from "../config/Configuration";
|
|
24
|
-
import { EventHandler } from "../event/EventHandler";
|
|
25
|
-
import { AuthenticationResult } from "../response/AuthenticationResult";
|
|
26
|
-
import { EventCallbackFunction } from "../event/EventMessage";
|
|
27
|
-
import { ClearCacheRequest } from "../request/ClearCacheRequest";
|
|
28
|
-
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest";
|
|
12
|
+
} from "@azure/msal-common/browser";
|
|
13
|
+
import { RedirectRequest } from "../request/RedirectRequest.js";
|
|
14
|
+
import { PopupRequest } from "../request/PopupRequest.js";
|
|
15
|
+
import { SilentRequest } from "../request/SilentRequest.js";
|
|
16
|
+
import { SsoSilentRequest } from "../request/SsoSilentRequest.js";
|
|
17
|
+
import { EndSessionRequest } from "../request/EndSessionRequest.js";
|
|
18
|
+
import { ApiId, WrapperSKU } from "../utils/BrowserConstants.js";
|
|
19
|
+
import { INavigationClient } from "../navigation/INavigationClient.js";
|
|
20
|
+
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest.js";
|
|
21
|
+
import { ITokenCache } from "../cache/ITokenCache.js";
|
|
22
|
+
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest.js";
|
|
23
|
+
import { BrowserConfiguration } from "../config/Configuration.js";
|
|
24
|
+
import { EventHandler } from "../event/EventHandler.js";
|
|
25
|
+
import { AuthenticationResult } from "../response/AuthenticationResult.js";
|
|
26
|
+
import { EventCallbackFunction } from "../event/EventMessage.js";
|
|
27
|
+
import { ClearCacheRequest } from "../request/ClearCacheRequest.js";
|
|
28
|
+
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest.js";
|
|
29
29
|
|
|
30
30
|
export interface IController {
|
|
31
31
|
// TODO: Make request mandatory in the next major version?
|
|
@@ -19,39 +19,39 @@ import {
|
|
|
19
19
|
OIDC_DEFAULT_SCOPES,
|
|
20
20
|
BaseAuthRequest,
|
|
21
21
|
AccountFilter,
|
|
22
|
-
} from "@azure/msal-common";
|
|
23
|
-
import { ITokenCache } from "../cache/ITokenCache";
|
|
24
|
-
import { BrowserConfiguration } from "../config/Configuration";
|
|
25
|
-
import { INavigationClient } from "../navigation/INavigationClient";
|
|
26
|
-
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest";
|
|
27
|
-
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest";
|
|
28
|
-
import { EndSessionRequest } from "../request/EndSessionRequest";
|
|
29
|
-
import { PopupRequest } from "../request/PopupRequest";
|
|
30
|
-
import { RedirectRequest } from "../request/RedirectRequest";
|
|
31
|
-
import { SilentRequest } from "../request/SilentRequest";
|
|
32
|
-
import { SsoSilentRequest } from "../request/SsoSilentRequest";
|
|
22
|
+
} from "@azure/msal-common/browser";
|
|
23
|
+
import { ITokenCache } from "../cache/ITokenCache.js";
|
|
24
|
+
import { BrowserConfiguration } from "../config/Configuration.js";
|
|
25
|
+
import { INavigationClient } from "../navigation/INavigationClient.js";
|
|
26
|
+
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest.js";
|
|
27
|
+
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest.js";
|
|
28
|
+
import { EndSessionRequest } from "../request/EndSessionRequest.js";
|
|
29
|
+
import { PopupRequest } from "../request/PopupRequest.js";
|
|
30
|
+
import { RedirectRequest } from "../request/RedirectRequest.js";
|
|
31
|
+
import { SilentRequest } from "../request/SilentRequest.js";
|
|
32
|
+
import { SsoSilentRequest } from "../request/SsoSilentRequest.js";
|
|
33
33
|
import {
|
|
34
34
|
ApiId,
|
|
35
35
|
WrapperSKU,
|
|
36
36
|
InteractionType,
|
|
37
37
|
DEFAULT_REQUEST,
|
|
38
|
-
} from "../utils/BrowserConstants";
|
|
39
|
-
import { IController } from "./IController";
|
|
40
|
-
import { NestedAppOperatingContext } from "../operatingcontext/NestedAppOperatingContext";
|
|
41
|
-
import { IBridgeProxy } from "../naa/IBridgeProxy";
|
|
42
|
-
import { CryptoOps } from "../crypto/CryptoOps";
|
|
43
|
-
import { NestedAppAuthAdapter } from "../naa/mapping/NestedAppAuthAdapter";
|
|
44
|
-
import { NestedAppAuthError } from "../error/NestedAppAuthError";
|
|
45
|
-
import { EventHandler } from "../event/EventHandler";
|
|
46
|
-
import { EventType } from "../event/EventType";
|
|
47
|
-
import { EventCallbackFunction, EventError } from "../event/EventMessage";
|
|
48
|
-
import { AuthenticationResult } from "../response/AuthenticationResult";
|
|
38
|
+
} from "../utils/BrowserConstants.js";
|
|
39
|
+
import { IController } from "./IController.js";
|
|
40
|
+
import { NestedAppOperatingContext } from "../operatingcontext/NestedAppOperatingContext.js";
|
|
41
|
+
import { IBridgeProxy } from "../naa/IBridgeProxy.js";
|
|
42
|
+
import { CryptoOps } from "../crypto/CryptoOps.js";
|
|
43
|
+
import { NestedAppAuthAdapter } from "../naa/mapping/NestedAppAuthAdapter.js";
|
|
44
|
+
import { NestedAppAuthError } from "../error/NestedAppAuthError.js";
|
|
45
|
+
import { EventHandler } from "../event/EventHandler.js";
|
|
46
|
+
import { EventType } from "../event/EventType.js";
|
|
47
|
+
import { EventCallbackFunction, EventError } from "../event/EventMessage.js";
|
|
48
|
+
import { AuthenticationResult } from "../response/AuthenticationResult.js";
|
|
49
49
|
import {
|
|
50
50
|
BrowserCacheManager,
|
|
51
51
|
DEFAULT_BROWSER_CACHE_MANAGER,
|
|
52
|
-
} from "../cache/BrowserCacheManager";
|
|
53
|
-
import { ClearCacheRequest } from "../request/ClearCacheRequest";
|
|
54
|
-
import * as AccountManager from "../cache/AccountManager";
|
|
52
|
+
} from "../cache/BrowserCacheManager.js";
|
|
53
|
+
import { ClearCacheRequest } from "../request/ClearCacheRequest.js";
|
|
54
|
+
import * as AccountManager from "../cache/AccountManager.js";
|
|
55
55
|
|
|
56
56
|
export class NestedAppAuthController implements IController {
|
|
57
57
|
// OperatingContext
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { CryptoOps } from "../crypto/CryptoOps";
|
|
6
|
+
import { CryptoOps } from "../crypto/CryptoOps.js";
|
|
7
7
|
import {
|
|
8
8
|
InteractionRequiredAuthError,
|
|
9
9
|
AccountInfo,
|
|
@@ -28,13 +28,13 @@ import {
|
|
|
28
28
|
AccountFilter,
|
|
29
29
|
buildStaticAuthorityOptions,
|
|
30
30
|
InteractionRequiredAuthErrorCodes,
|
|
31
|
-
} from "@azure/msal-common";
|
|
31
|
+
} from "@azure/msal-common/browser";
|
|
32
32
|
import {
|
|
33
33
|
BrowserCacheManager,
|
|
34
34
|
DEFAULT_BROWSER_CACHE_MANAGER,
|
|
35
|
-
} from "../cache/BrowserCacheManager";
|
|
36
|
-
import * as AccountManager from "../cache/AccountManager";
|
|
37
|
-
import { BrowserConfiguration, CacheOptions } from "../config/Configuration";
|
|
35
|
+
} from "../cache/BrowserCacheManager.js";
|
|
36
|
+
import * as AccountManager from "../cache/AccountManager.js";
|
|
37
|
+
import { BrowserConfiguration, CacheOptions } from "../config/Configuration.js";
|
|
38
38
|
import {
|
|
39
39
|
InteractionType,
|
|
40
40
|
ApiId,
|
|
@@ -45,46 +45,46 @@ import {
|
|
|
45
45
|
DEFAULT_REQUEST,
|
|
46
46
|
BrowserConstants,
|
|
47
47
|
iFrameRenewalPolicies,
|
|
48
|
-
} from "../utils/BrowserConstants";
|
|
49
|
-
import * as BrowserUtils from "../utils/BrowserUtils";
|
|
50
|
-
import { RedirectRequest } from "../request/RedirectRequest";
|
|
51
|
-
import { PopupRequest } from "../request/PopupRequest";
|
|
52
|
-
import { SsoSilentRequest } from "../request/SsoSilentRequest";
|
|
53
|
-
import { EventCallbackFunction, EventError } from "../event/EventMessage";
|
|
54
|
-
import { EventType } from "../event/EventType";
|
|
55
|
-
import { EndSessionRequest } from "../request/EndSessionRequest";
|
|
56
|
-
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest";
|
|
57
|
-
import { INavigationClient } from "../navigation/INavigationClient";
|
|
58
|
-
import { EventHandler } from "../event/EventHandler";
|
|
59
|
-
import { PopupClient } from "../interaction_client/PopupClient";
|
|
60
|
-
import { RedirectClient } from "../interaction_client/RedirectClient";
|
|
61
|
-
import { SilentIframeClient } from "../interaction_client/SilentIframeClient";
|
|
62
|
-
import { SilentRefreshClient } from "../interaction_client/SilentRefreshClient";
|
|
63
|
-
import { TokenCache } from "../cache/TokenCache";
|
|
64
|
-
import { ITokenCache } from "../cache/ITokenCache";
|
|
65
|
-
import { NativeInteractionClient } from "../interaction_client/NativeInteractionClient";
|
|
66
|
-
import { NativeMessageHandler } from "../broker/nativeBroker/NativeMessageHandler";
|
|
67
|
-
import { SilentRequest } from "../request/SilentRequest";
|
|
48
|
+
} from "../utils/BrowserConstants.js";
|
|
49
|
+
import * as BrowserUtils from "../utils/BrowserUtils.js";
|
|
50
|
+
import { RedirectRequest } from "../request/RedirectRequest.js";
|
|
51
|
+
import { PopupRequest } from "../request/PopupRequest.js";
|
|
52
|
+
import { SsoSilentRequest } from "../request/SsoSilentRequest.js";
|
|
53
|
+
import { EventCallbackFunction, EventError } from "../event/EventMessage.js";
|
|
54
|
+
import { EventType } from "../event/EventType.js";
|
|
55
|
+
import { EndSessionRequest } from "../request/EndSessionRequest.js";
|
|
56
|
+
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest.js";
|
|
57
|
+
import { INavigationClient } from "../navigation/INavigationClient.js";
|
|
58
|
+
import { EventHandler } from "../event/EventHandler.js";
|
|
59
|
+
import { PopupClient } from "../interaction_client/PopupClient.js";
|
|
60
|
+
import { RedirectClient } from "../interaction_client/RedirectClient.js";
|
|
61
|
+
import { SilentIframeClient } from "../interaction_client/SilentIframeClient.js";
|
|
62
|
+
import { SilentRefreshClient } from "../interaction_client/SilentRefreshClient.js";
|
|
63
|
+
import { TokenCache } from "../cache/TokenCache.js";
|
|
64
|
+
import { ITokenCache } from "../cache/ITokenCache.js";
|
|
65
|
+
import { NativeInteractionClient } from "../interaction_client/NativeInteractionClient.js";
|
|
66
|
+
import { NativeMessageHandler } from "../broker/nativeBroker/NativeMessageHandler.js";
|
|
67
|
+
import { SilentRequest } from "../request/SilentRequest.js";
|
|
68
68
|
import {
|
|
69
69
|
NativeAuthError,
|
|
70
70
|
isFatalNativeAuthError,
|
|
71
|
-
} from "../error/NativeAuthError";
|
|
72
|
-
import { SilentCacheClient } from "../interaction_client/SilentCacheClient";
|
|
73
|
-
import { SilentAuthCodeClient } from "../interaction_client/SilentAuthCodeClient";
|
|
71
|
+
} from "../error/NativeAuthError.js";
|
|
72
|
+
import { SilentCacheClient } from "../interaction_client/SilentCacheClient.js";
|
|
73
|
+
import { SilentAuthCodeClient } from "../interaction_client/SilentAuthCodeClient.js";
|
|
74
74
|
import {
|
|
75
75
|
createBrowserAuthError,
|
|
76
76
|
BrowserAuthErrorCodes,
|
|
77
|
-
} from "../error/BrowserAuthError";
|
|
78
|
-
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest";
|
|
79
|
-
import { NativeTokenRequest } from "../broker/nativeBroker/NativeRequest";
|
|
80
|
-
import { StandardOperatingContext } from "../operatingcontext/StandardOperatingContext";
|
|
81
|
-
import { BaseOperatingContext } from "../operatingcontext/BaseOperatingContext";
|
|
82
|
-
import { IController } from "./IController";
|
|
83
|
-
import { AuthenticationResult } from "../response/AuthenticationResult";
|
|
84
|
-
import { ClearCacheRequest } from "../request/ClearCacheRequest";
|
|
85
|
-
import { createNewGuid } from "../crypto/BrowserCrypto";
|
|
86
|
-
import { initializeSilentRequest } from "../request/RequestHelpers";
|
|
87
|
-
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest";
|
|
77
|
+
} from "../error/BrowserAuthError.js";
|
|
78
|
+
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest.js";
|
|
79
|
+
import { NativeTokenRequest } from "../broker/nativeBroker/NativeRequest.js";
|
|
80
|
+
import { StandardOperatingContext } from "../operatingcontext/StandardOperatingContext.js";
|
|
81
|
+
import { BaseOperatingContext } from "../operatingcontext/BaseOperatingContext.js";
|
|
82
|
+
import { IController } from "./IController.js";
|
|
83
|
+
import { AuthenticationResult } from "../response/AuthenticationResult.js";
|
|
84
|
+
import { ClearCacheRequest } from "../request/ClearCacheRequest.js";
|
|
85
|
+
import { createNewGuid } from "../crypto/BrowserCrypto.js";
|
|
86
|
+
import { initializeSilentRequest } from "../request/RequestHelpers.js";
|
|
87
|
+
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest.js";
|
|
88
88
|
|
|
89
89
|
function getAccountType(
|
|
90
90
|
account?: AccountInfo
|
|
@@ -13,33 +13,33 @@ import {
|
|
|
13
13
|
IPerformanceClient,
|
|
14
14
|
DEFAULT_CRYPTO_IMPLEMENTATION,
|
|
15
15
|
AccountFilter,
|
|
16
|
-
} from "@azure/msal-common";
|
|
17
|
-
import { ITokenCache } from "../cache/ITokenCache";
|
|
18
|
-
import { BrowserConfiguration } from "../config/Configuration";
|
|
16
|
+
} from "@azure/msal-common/browser";
|
|
17
|
+
import { ITokenCache } from "../cache/ITokenCache.js";
|
|
18
|
+
import { BrowserConfiguration } from "../config/Configuration.js";
|
|
19
19
|
import {
|
|
20
20
|
BrowserCacheManager,
|
|
21
21
|
DEFAULT_BROWSER_CACHE_MANAGER,
|
|
22
|
-
} from "../cache/BrowserCacheManager";
|
|
23
|
-
import { INavigationClient } from "../navigation/INavigationClient";
|
|
24
|
-
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest";
|
|
25
|
-
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest";
|
|
26
|
-
import { EndSessionRequest } from "../request/EndSessionRequest";
|
|
27
|
-
import { PopupRequest } from "../request/PopupRequest";
|
|
28
|
-
import { RedirectRequest } from "../request/RedirectRequest";
|
|
29
|
-
import { SilentRequest } from "../request/SilentRequest";
|
|
30
|
-
import { SsoSilentRequest } from "../request/SsoSilentRequest";
|
|
31
|
-
import { AuthenticationResult } from "../response/AuthenticationResult";
|
|
32
|
-
import { ApiId, WrapperSKU } from "../utils/BrowserConstants";
|
|
33
|
-
import { IController } from "./IController";
|
|
34
|
-
import { UnknownOperatingContext } from "../operatingcontext/UnknownOperatingContext";
|
|
35
|
-
import { CryptoOps } from "../crypto/CryptoOps";
|
|
22
|
+
} from "../cache/BrowserCacheManager.js";
|
|
23
|
+
import { INavigationClient } from "../navigation/INavigationClient.js";
|
|
24
|
+
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest.js";
|
|
25
|
+
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest.js";
|
|
26
|
+
import { EndSessionRequest } from "../request/EndSessionRequest.js";
|
|
27
|
+
import { PopupRequest } from "../request/PopupRequest.js";
|
|
28
|
+
import { RedirectRequest } from "../request/RedirectRequest.js";
|
|
29
|
+
import { SilentRequest } from "../request/SilentRequest.js";
|
|
30
|
+
import { SsoSilentRequest } from "../request/SsoSilentRequest.js";
|
|
31
|
+
import { AuthenticationResult } from "../response/AuthenticationResult.js";
|
|
32
|
+
import { ApiId, WrapperSKU } from "../utils/BrowserConstants.js";
|
|
33
|
+
import { IController } from "./IController.js";
|
|
34
|
+
import { UnknownOperatingContext } from "../operatingcontext/UnknownOperatingContext.js";
|
|
35
|
+
import { CryptoOps } from "../crypto/CryptoOps.js";
|
|
36
36
|
import {
|
|
37
37
|
blockAPICallsBeforeInitialize,
|
|
38
38
|
blockNonBrowserEnvironment,
|
|
39
|
-
} from "../utils/BrowserUtils";
|
|
40
|
-
import { EventHandler } from "../event/EventHandler";
|
|
41
|
-
import { EventCallbackFunction } from "../event/EventMessage";
|
|
42
|
-
import { ClearCacheRequest } from "../request/ClearCacheRequest";
|
|
39
|
+
} from "../utils/BrowserUtils.js";
|
|
40
|
+
import { EventHandler } from "../event/EventHandler.js";
|
|
41
|
+
import { EventCallbackFunction } from "../event/EventMessage.js";
|
|
42
|
+
import { ClearCacheRequest } from "../request/ClearCacheRequest.js";
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* UnknownOperatingContextController class
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
import {
|
|
7
7
|
createBrowserAuthError,
|
|
8
8
|
BrowserAuthErrorCodes,
|
|
9
|
-
} from "../error/BrowserAuthError";
|
|
9
|
+
} from "../error/BrowserAuthError.js";
|
|
10
10
|
import {
|
|
11
11
|
IPerformanceClient,
|
|
12
12
|
Logger,
|
|
13
13
|
PerformanceEvents,
|
|
14
|
-
} from "@azure/msal-common";
|
|
15
|
-
import { KEY_FORMAT_JWK } from "../utils/BrowserConstants";
|
|
16
|
-
import { urlEncodeArr } from "../encode/Base64Encode";
|
|
14
|
+
} from "@azure/msal-common/browser";
|
|
15
|
+
import { KEY_FORMAT_JWK } from "../utils/BrowserConstants.js";
|
|
16
|
+
import { urlEncodeArr } from "../encode/Base64Encode.js";
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* This file defines functions used by the browser library to perform cryptography operations such as
|
package/src/crypto/CryptoOps.ts
CHANGED
|
@@ -12,15 +12,19 @@ import {
|
|
|
12
12
|
ShrOptions,
|
|
13
13
|
SignedHttpRequest,
|
|
14
14
|
SignedHttpRequestParameters,
|
|
15
|
-
} from "@azure/msal-common";
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
} from "@azure/msal-common/browser";
|
|
16
|
+
import {
|
|
17
|
+
base64Encode,
|
|
18
|
+
urlEncode,
|
|
19
|
+
urlEncodeArr,
|
|
20
|
+
} from "../encode/Base64Encode.js";
|
|
21
|
+
import { base64Decode } from "../encode/Base64Decode.js";
|
|
22
|
+
import * as BrowserCrypto from "./BrowserCrypto.js";
|
|
19
23
|
import {
|
|
20
24
|
createBrowserAuthError,
|
|
21
25
|
BrowserAuthErrorCodes,
|
|
22
|
-
} from "../error/BrowserAuthError";
|
|
23
|
-
import { AsyncMemoryStorage } from "../cache/AsyncMemoryStorage";
|
|
26
|
+
} from "../error/BrowserAuthError.js";
|
|
27
|
+
import { AsyncMemoryStorage } from "../cache/AsyncMemoryStorage.js";
|
|
24
28
|
|
|
25
29
|
export type CachedKeyPair = {
|
|
26
30
|
publicKey: CryptoKey;
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
PkceCodes,
|
|
11
11
|
invoke,
|
|
12
12
|
invokeAsync,
|
|
13
|
-
} from "@azure/msal-common";
|
|
13
|
+
} from "@azure/msal-common/browser";
|
|
14
14
|
import {
|
|
15
15
|
createBrowserAuthError,
|
|
16
16
|
BrowserAuthErrorCodes,
|
|
17
|
-
} from "../error/BrowserAuthError";
|
|
18
|
-
import { urlEncodeArr } from "../encode/Base64Encode";
|
|
19
|
-
import { getRandomValues, sha256Digest } from "./BrowserCrypto";
|
|
17
|
+
} from "../error/BrowserAuthError.js";
|
|
18
|
+
import { urlEncodeArr } from "../encode/Base64Encode.js";
|
|
19
|
+
import { getRandomValues, sha256Digest } from "./BrowserCrypto.js";
|
|
20
20
|
|
|
21
21
|
// Constant byte array length
|
|
22
22
|
const RANDOM_BYTE_ARR_LENGTH = 32;
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { CryptoOps } from "./CryptoOps";
|
|
6
|
+
import { CryptoOps } from "./CryptoOps.js";
|
|
7
7
|
import {
|
|
8
8
|
Logger,
|
|
9
9
|
LoggerOptions,
|
|
10
10
|
PopTokenGenerator,
|
|
11
11
|
SignedHttpRequestParameters,
|
|
12
|
-
} from "@azure/msal-common";
|
|
13
|
-
import { version, name } from "../packageMetadata";
|
|
12
|
+
} from "@azure/msal-common/browser";
|
|
13
|
+
import { version, name } from "../packageMetadata.js";
|
|
14
14
|
|
|
15
15
|
export type SignedHttpRequestOptions = {
|
|
16
16
|
loggerOptions: LoggerOptions;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { AuthError } from "@azure/msal-common";
|
|
7
|
-
import * as BrowserAuthErrorCodes from "./BrowserAuthErrorCodes";
|
|
6
|
+
import { AuthError } from "@azure/msal-common/browser";
|
|
7
|
+
import * as BrowserAuthErrorCodes from "./BrowserAuthErrorCodes.js";
|
|
8
8
|
export { BrowserAuthErrorCodes }; // Allow importing as "BrowserAuthErrorCodes"
|
|
9
9
|
|
|
10
10
|
const ErrorLink = "For more visit: aka.ms/msaljs/browser-errors";
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { AuthError } from "@azure/msal-common";
|
|
7
|
-
import * as BrowserConfigurationAuthErrorCodes from "./BrowserConfigurationAuthErrorCodes";
|
|
6
|
+
import { AuthError } from "@azure/msal-common/browser";
|
|
7
|
+
import * as BrowserConfigurationAuthErrorCodes from "./BrowserConfigurationAuthErrorCodes.js";
|
|
8
8
|
export { BrowserConfigurationAuthErrorCodes };
|
|
9
9
|
|
|
10
10
|
export const BrowserConfigurationAuthErrorMessages = {
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
InteractionRequiredAuthError,
|
|
9
9
|
InteractionRequiredAuthErrorCodes,
|
|
10
10
|
createInteractionRequiredAuthError,
|
|
11
|
-
} from "@azure/msal-common";
|
|
11
|
+
} from "@azure/msal-common/browser";
|
|
12
12
|
import {
|
|
13
13
|
createBrowserAuthError,
|
|
14
14
|
BrowserAuthErrorCodes,
|
|
15
|
-
} from "./BrowserAuthError";
|
|
15
|
+
} from "./BrowserAuthError.js";
|
|
16
16
|
|
|
17
|
-
import * as NativeAuthErrorCodes from "./NativeAuthErrorCodes";
|
|
18
|
-
import * as NativeStatusCodes from "../broker/nativeBroker/NativeStatusCodes";
|
|
17
|
+
import * as NativeAuthErrorCodes from "./NativeAuthErrorCodes.js";
|
|
18
|
+
import * as NativeStatusCodes from "../broker/nativeBroker/NativeStatusCodes.js";
|
|
19
19
|
export { NativeAuthErrorCodes };
|
|
20
20
|
|
|
21
21
|
export type OSError = {
|
|
@@ -9,16 +9,16 @@ import {
|
|
|
9
9
|
AccountEntity,
|
|
10
10
|
CacheManager,
|
|
11
11
|
PersistentCacheKeys,
|
|
12
|
-
} from "@azure/msal-common";
|
|
13
|
-
import { InteractionType } from "../utils/BrowserConstants";
|
|
12
|
+
} from "@azure/msal-common/browser";
|
|
13
|
+
import { InteractionType } from "../utils/BrowserConstants.js";
|
|
14
14
|
import {
|
|
15
15
|
EventCallbackFunction,
|
|
16
16
|
EventError,
|
|
17
17
|
EventMessage,
|
|
18
18
|
EventPayload,
|
|
19
|
-
} from "./EventMessage";
|
|
20
|
-
import { EventType } from "./EventType";
|
|
21
|
-
import { createNewGuid } from "../crypto/BrowserCrypto";
|
|
19
|
+
} from "./EventMessage.js";
|
|
20
|
+
import { EventType } from "./EventType.js";
|
|
21
|
+
import { createNewGuid } from "../crypto/BrowserCrypto.js";
|
|
22
22
|
|
|
23
23
|
export class EventHandler {
|
|
24
24
|
// Callback for subscribing to events
|
|
@@ -3,17 +3,18 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { AuthError, AccountInfo } from "@azure/msal-common";
|
|
7
|
-
import { EventType } from "./EventType";
|
|
8
|
-
import { InteractionStatus, InteractionType } from "../utils/BrowserConstants";
|
|
6
|
+
import { AuthError, AccountInfo } from "@azure/msal-common/browser";
|
|
7
|
+
import { EventType } from "./EventType.js";
|
|
9
8
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "
|
|
9
|
+
InteractionStatus,
|
|
10
|
+
InteractionType,
|
|
11
|
+
} from "../utils/BrowserConstants.js";
|
|
12
|
+
import { PopupRequest } from "../request/PopupRequest.js";
|
|
13
|
+
import { RedirectRequest } from "../request/RedirectRequest.js";
|
|
14
|
+
import { SilentRequest } from "../request/SilentRequest.js";
|
|
15
|
+
import { SsoSilentRequest } from "../request/SsoSilentRequest.js";
|
|
16
|
+
import { EndSessionRequest } from "../request/EndSessionRequest.js";
|
|
17
|
+
import { AuthenticationResult } from "../response/AuthenticationResult.js";
|
|
17
18
|
|
|
18
19
|
export type EventMessage = {
|
|
19
20
|
eventType: EventType;
|