@azure/msal-browser 3.22.1 → 3.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/IPublicClientApplication.d.ts +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 +16 -6
- 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 +5045 -4956
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +5045 -4956
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +66 -68
- 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 +14 -13
- 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 +32 -30
- 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
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { PopupRequest } from "../request/PopupRequest.js";
|
|
2
|
+
import { RedirectRequest } from "../request/RedirectRequest.js";
|
|
3
|
+
/**
|
|
4
|
+
* Constants
|
|
5
|
+
*/
|
|
6
|
+
export declare const BrowserConstants: {
|
|
7
|
+
/**
|
|
8
|
+
* Interaction in progress cache value
|
|
9
|
+
*/
|
|
10
|
+
INTERACTION_IN_PROGRESS_VALUE: string;
|
|
11
|
+
/**
|
|
12
|
+
* Invalid grant error code
|
|
13
|
+
*/
|
|
14
|
+
INVALID_GRANT_ERROR: string;
|
|
15
|
+
/**
|
|
16
|
+
* Default popup window width
|
|
17
|
+
*/
|
|
18
|
+
POPUP_WIDTH: number;
|
|
19
|
+
/**
|
|
20
|
+
* Default popup window height
|
|
21
|
+
*/
|
|
22
|
+
POPUP_HEIGHT: number;
|
|
23
|
+
/**
|
|
24
|
+
* Name of the popup window starts with
|
|
25
|
+
*/
|
|
26
|
+
POPUP_NAME_PREFIX: string;
|
|
27
|
+
/**
|
|
28
|
+
* Default popup monitor poll interval in milliseconds
|
|
29
|
+
*/
|
|
30
|
+
DEFAULT_POLL_INTERVAL_MS: number;
|
|
31
|
+
/**
|
|
32
|
+
* Msal-browser SKU
|
|
33
|
+
*/
|
|
34
|
+
MSAL_SKU: string;
|
|
35
|
+
};
|
|
36
|
+
export declare const NativeConstants: {
|
|
37
|
+
CHANNEL_ID: string;
|
|
38
|
+
PREFERRED_EXTENSION_ID: string;
|
|
39
|
+
MATS_TELEMETRY: string;
|
|
40
|
+
};
|
|
41
|
+
export declare const NativeExtensionMethod: {
|
|
42
|
+
readonly HandshakeRequest: "Handshake";
|
|
43
|
+
readonly HandshakeResponse: "HandshakeResponse";
|
|
44
|
+
readonly GetToken: "GetToken";
|
|
45
|
+
readonly Response: "Response";
|
|
46
|
+
};
|
|
47
|
+
export type NativeExtensionMethod = (typeof NativeExtensionMethod)[keyof typeof NativeExtensionMethod];
|
|
48
|
+
export declare const BrowserCacheLocation: {
|
|
49
|
+
readonly LocalStorage: "localStorage";
|
|
50
|
+
readonly SessionStorage: "sessionStorage";
|
|
51
|
+
readonly MemoryStorage: "memoryStorage";
|
|
52
|
+
};
|
|
53
|
+
export type BrowserCacheLocation = (typeof BrowserCacheLocation)[keyof typeof BrowserCacheLocation];
|
|
54
|
+
/**
|
|
55
|
+
* HTTP Request types supported by MSAL.
|
|
56
|
+
*/
|
|
57
|
+
export declare const HTTP_REQUEST_TYPE: {
|
|
58
|
+
readonly GET: "GET";
|
|
59
|
+
readonly POST: "POST";
|
|
60
|
+
};
|
|
61
|
+
export type HTTP_REQUEST_TYPE = (typeof HTTP_REQUEST_TYPE)[keyof typeof HTTP_REQUEST_TYPE];
|
|
62
|
+
/**
|
|
63
|
+
* Temporary cache keys for MSAL, deleted after any request.
|
|
64
|
+
*/
|
|
65
|
+
export declare const TemporaryCacheKeys: {
|
|
66
|
+
readonly AUTHORITY: "authority";
|
|
67
|
+
readonly ACQUIRE_TOKEN_ACCOUNT: "acquireToken.account";
|
|
68
|
+
readonly SESSION_STATE: "session.state";
|
|
69
|
+
readonly REQUEST_STATE: "request.state";
|
|
70
|
+
readonly NONCE_IDTOKEN: "nonce.id_token";
|
|
71
|
+
readonly ORIGIN_URI: "request.origin";
|
|
72
|
+
readonly RENEW_STATUS: "token.renew.status";
|
|
73
|
+
readonly URL_HASH: "urlHash";
|
|
74
|
+
readonly REQUEST_PARAMS: "request.params";
|
|
75
|
+
readonly SCOPES: "scopes";
|
|
76
|
+
readonly INTERACTION_STATUS_KEY: "interaction.status";
|
|
77
|
+
readonly CCS_CREDENTIAL: "ccs.credential";
|
|
78
|
+
readonly CORRELATION_ID: "request.correlationId";
|
|
79
|
+
readonly NATIVE_REQUEST: "request.native";
|
|
80
|
+
readonly REDIRECT_CONTEXT: "request.redirect.context";
|
|
81
|
+
};
|
|
82
|
+
export type TemporaryCacheKeys = (typeof TemporaryCacheKeys)[keyof typeof TemporaryCacheKeys];
|
|
83
|
+
export declare const StaticCacheKeys: {
|
|
84
|
+
readonly ACCOUNT_KEYS: "msal.account.keys";
|
|
85
|
+
readonly TOKEN_KEYS: "msal.token.keys";
|
|
86
|
+
};
|
|
87
|
+
export type StaticCacheKeys = (typeof StaticCacheKeys)[keyof typeof StaticCacheKeys];
|
|
88
|
+
/**
|
|
89
|
+
* Cache keys stored in-memory
|
|
90
|
+
*/
|
|
91
|
+
export declare const InMemoryCacheKeys: {
|
|
92
|
+
readonly WRAPPER_SKU: "wrapper.sku";
|
|
93
|
+
readonly WRAPPER_VER: "wrapper.version";
|
|
94
|
+
};
|
|
95
|
+
export type InMemoryCacheKeys = (typeof InMemoryCacheKeys)[keyof typeof InMemoryCacheKeys];
|
|
96
|
+
/**
|
|
97
|
+
* API Codes for Telemetry purposes.
|
|
98
|
+
* Before adding a new code you must claim it in the MSAL Telemetry tracker as these number spaces are shared across all MSALs
|
|
99
|
+
* 0-99 Silent Flow
|
|
100
|
+
* 800-899 Auth Code Flow
|
|
101
|
+
*/
|
|
102
|
+
export declare const ApiId: {
|
|
103
|
+
readonly acquireTokenRedirect: 861;
|
|
104
|
+
readonly acquireTokenPopup: 862;
|
|
105
|
+
readonly ssoSilent: 863;
|
|
106
|
+
readonly acquireTokenSilent_authCode: 864;
|
|
107
|
+
readonly handleRedirectPromise: 865;
|
|
108
|
+
readonly acquireTokenByCode: 866;
|
|
109
|
+
readonly acquireTokenSilent_silentFlow: 61;
|
|
110
|
+
readonly logout: 961;
|
|
111
|
+
readonly logoutPopup: 962;
|
|
112
|
+
};
|
|
113
|
+
export type ApiId = (typeof ApiId)[keyof typeof ApiId];
|
|
114
|
+
export declare enum InteractionType {
|
|
115
|
+
Redirect = "redirect",
|
|
116
|
+
Popup = "popup",
|
|
117
|
+
Silent = "silent",
|
|
118
|
+
None = "none"
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Types of interaction currently in progress.
|
|
122
|
+
* Used in events in wrapper libraries to invoke functions when certain interaction is in progress or all interactions are complete.
|
|
123
|
+
*/
|
|
124
|
+
export declare const InteractionStatus: {
|
|
125
|
+
/**
|
|
126
|
+
* Initial status before interaction occurs
|
|
127
|
+
*/
|
|
128
|
+
readonly Startup: "startup";
|
|
129
|
+
/**
|
|
130
|
+
* Status set when all login calls occuring
|
|
131
|
+
*/
|
|
132
|
+
readonly Login: "login";
|
|
133
|
+
/**
|
|
134
|
+
* Status set when logout call occuring
|
|
135
|
+
*/
|
|
136
|
+
readonly Logout: "logout";
|
|
137
|
+
/**
|
|
138
|
+
* Status set for acquireToken calls
|
|
139
|
+
*/
|
|
140
|
+
readonly AcquireToken: "acquireToken";
|
|
141
|
+
/**
|
|
142
|
+
* Status set for ssoSilent calls
|
|
143
|
+
*/
|
|
144
|
+
readonly SsoSilent: "ssoSilent";
|
|
145
|
+
/**
|
|
146
|
+
* Status set when handleRedirect in progress
|
|
147
|
+
*/
|
|
148
|
+
readonly HandleRedirect: "handleRedirect";
|
|
149
|
+
/**
|
|
150
|
+
* Status set when interaction is complete
|
|
151
|
+
*/
|
|
152
|
+
readonly None: "none";
|
|
153
|
+
};
|
|
154
|
+
export type InteractionStatus = (typeof InteractionStatus)[keyof typeof InteractionStatus];
|
|
155
|
+
export declare const DEFAULT_REQUEST: RedirectRequest | PopupRequest;
|
|
156
|
+
/**
|
|
157
|
+
* JWK Key Format string (Type MUST be defined for window crypto APIs)
|
|
158
|
+
*/
|
|
159
|
+
export declare const KEY_FORMAT_JWK = "jwk";
|
|
160
|
+
export declare const WrapperSKU: {
|
|
161
|
+
readonly React: "@azure/msal-react";
|
|
162
|
+
readonly Angular: "@azure/msal-angular";
|
|
163
|
+
};
|
|
164
|
+
export type WrapperSKU = (typeof WrapperSKU)[keyof typeof WrapperSKU];
|
|
165
|
+
export declare const DB_NAME = "msal.db";
|
|
166
|
+
export declare const DB_VERSION = 1;
|
|
167
|
+
export declare const DB_TABLE_NAME: string;
|
|
168
|
+
export declare const CacheLookupPolicy: {
|
|
169
|
+
readonly Default: 0;
|
|
170
|
+
readonly AccessToken: 1;
|
|
171
|
+
readonly AccessTokenAndRefreshToken: 2;
|
|
172
|
+
readonly RefreshToken: 3;
|
|
173
|
+
readonly RefreshTokenAndNetwork: 4;
|
|
174
|
+
readonly Skip: 5;
|
|
175
|
+
};
|
|
176
|
+
export type CacheLookupPolicy = (typeof CacheLookupPolicy)[keyof typeof CacheLookupPolicy];
|
|
177
|
+
export declare const iFrameRenewalPolicies: CacheLookupPolicy[];
|
|
178
|
+
export declare const LOG_LEVEL_CACHE_KEY = "msal.browser.log.level";
|
|
179
|
+
export declare const LOG_PII_CACHE_KEY = "msal.browser.log.pii";
|
|
180
|
+
export declare const BROWSER_PERF_ENABLED_KEY = "msal.browser.performance.enabled";
|
|
181
|
+
//# sourceMappingURL=BrowserConstants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrowserConstants.d.ts","sourceRoot":"","sources":["../../../src/utils/BrowserConstants.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,gBAAgB;IACzB;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;CAEN,CAAC;AAEF,eAAO,MAAM,eAAe;;;;CAI3B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;CAKxB,CAAC;AACX,MAAM,MAAM,qBAAqB,GAC7B,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC;AAEvE,eAAO,MAAM,oBAAoB;;;;CAIvB,CAAC;AACX,MAAM,MAAM,oBAAoB,GAC5B,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;CAGpB,CAAC;AACX,MAAM,MAAM,iBAAiB,GACzB,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAE/D;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;CAgBrB,CAAC;AACX,MAAM,MAAM,kBAAkB,GAC1B,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;AAEjE,eAAO,MAAM,eAAe;;;CAGlB,CAAC;AACX,MAAM,MAAM,eAAe,GACvB,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAE3D;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;CAGpB,CAAC;AACX,MAAM,MAAM,iBAAiB,GACzB,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAE/D;;;;;GAKG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;CAUR,CAAC;AACX,MAAM,MAAM,KAAK,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,OAAO,KAAK,CAAC,CAAC;AAKvD,oBAAY,eAAe;IACvB,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,IAAI,SAAS;CAChB;AAED;;;GAGG;AACH,eAAO,MAAM,iBAAiB;IAC1B;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;CAEG,CAAC;AACX,MAAM,MAAM,iBAAiB,GACzB,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAE/D,eAAO,MAAM,eAAe,EAAE,eAAe,GAAG,YAE/C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,QAAQ,CAAC;AAGpC,eAAO,MAAM,UAAU;;;CAGb,CAAC;AACX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAGtE,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,UAAU,IAAI,CAAC;AAC5B,eAAO,MAAM,aAAa,QAAoB,CAAC;AAE/C,eAAO,MAAM,iBAAiB;;;;;;;CAmCpB,CAAC;AACX,MAAM,MAAM,iBAAiB,GACzB,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAE/D,eAAO,MAAM,qBAAqB,EAAE,iBAAiB,EAIpD,CAAC;AAEF,eAAO,MAAM,mBAAmB,2BAA2B,CAAC;AAC5D,eAAO,MAAM,iBAAiB,yBAAyB,CAAC;AAExD,eAAO,MAAM,wBAAwB,qCAAqC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { InteractionType } from "./BrowserConstants.js";
|
|
2
|
+
import { ICrypto } from "@azure/msal-common/browser";
|
|
3
|
+
export type BrowserStateObject = {
|
|
4
|
+
interactionType: InteractionType;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Extracts the BrowserStateObject from the state string.
|
|
8
|
+
* @param browserCrypto
|
|
9
|
+
* @param state
|
|
10
|
+
*/
|
|
11
|
+
export declare function extractBrowserRequestState(browserCrypto: ICrypto, state: string): BrowserStateObject | null;
|
|
12
|
+
//# sourceMappingURL=BrowserProtocolUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrowserProtocolUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/BrowserProtocolUtils.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EACH,OAAO,EAKV,MAAM,4BAA4B,CAAC;AAEpC,MAAM,MAAM,kBAAkB,GAAG;IAC7B,eAAe,EAAE,eAAe,CAAC;CACpC,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,0BAA0B,CACtC,aAAa,EAAE,OAAO,EACtB,KAAK,EAAE,MAAM,GACd,kBAAkB,GAAG,IAAI,CAY3B"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { invoke, invokeAsync } from "@azure/msal-common/browser";
|
|
2
|
+
import { BrowserConfiguration } from "../config/Configuration.js";
|
|
3
|
+
/**
|
|
4
|
+
* Clears hash from window url.
|
|
5
|
+
*/
|
|
6
|
+
export declare function clearHash(contentWindow: Window): void;
|
|
7
|
+
/**
|
|
8
|
+
* Replaces current hash with hash from provided url
|
|
9
|
+
*/
|
|
10
|
+
export declare function replaceHash(url: string): void;
|
|
11
|
+
/**
|
|
12
|
+
* Returns boolean of whether the current window is in an iframe or not.
|
|
13
|
+
*/
|
|
14
|
+
export declare function isInIframe(): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Returns boolean of whether or not the current window is a popup opened by msal
|
|
17
|
+
*/
|
|
18
|
+
export declare function isInPopup(): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Returns current window URL as redirect uri
|
|
21
|
+
*/
|
|
22
|
+
export declare function getCurrentUri(): string;
|
|
23
|
+
/**
|
|
24
|
+
* Gets the homepage url for the current window location.
|
|
25
|
+
*/
|
|
26
|
+
export declare function getHomepage(): string;
|
|
27
|
+
/**
|
|
28
|
+
* Throws error if we have completed an auth and are
|
|
29
|
+
* attempting another auth request inside an iframe.
|
|
30
|
+
*/
|
|
31
|
+
export declare function blockReloadInHiddenIframes(): void;
|
|
32
|
+
/**
|
|
33
|
+
* Block redirect operations in iframes unless explicitly allowed
|
|
34
|
+
* @param interactionType Interaction type for the request
|
|
35
|
+
* @param allowRedirectInIframe Config value to allow redirects when app is inside an iframe
|
|
36
|
+
*/
|
|
37
|
+
export declare function blockRedirectInIframe(allowRedirectInIframe: boolean): void;
|
|
38
|
+
/**
|
|
39
|
+
* Block redirectUri loaded in popup from calling AcquireToken APIs
|
|
40
|
+
*/
|
|
41
|
+
export declare function blockAcquireTokenInPopups(): void;
|
|
42
|
+
/**
|
|
43
|
+
* Throws error if token requests are made in non-browser environment
|
|
44
|
+
* @param isBrowserEnvironment Flag indicating if environment is a browser.
|
|
45
|
+
*/
|
|
46
|
+
export declare function blockNonBrowserEnvironment(): void;
|
|
47
|
+
/**
|
|
48
|
+
* Throws error if initialize hasn't been called
|
|
49
|
+
* @param initialized
|
|
50
|
+
*/
|
|
51
|
+
export declare function blockAPICallsBeforeInitialize(initialized: boolean): void;
|
|
52
|
+
/**
|
|
53
|
+
* Helper to validate app environment before making an auth request
|
|
54
|
+
* @param initialized
|
|
55
|
+
*/
|
|
56
|
+
export declare function preflightCheck(initialized: boolean): void;
|
|
57
|
+
/**
|
|
58
|
+
* Helper to validate app enviornment before making redirect request
|
|
59
|
+
* @param initialized
|
|
60
|
+
* @param config
|
|
61
|
+
*/
|
|
62
|
+
export declare function redirectPreflightCheck(initialized: boolean, config: BrowserConfiguration): void;
|
|
63
|
+
/**
|
|
64
|
+
* Adds a preconnect link element to the header which begins DNS resolution and SSL connection in anticipation of the /token request
|
|
65
|
+
* @param loginDomain Authority domain, including https protocol e.g. https://login.microsoftonline.com
|
|
66
|
+
* @returns
|
|
67
|
+
*/
|
|
68
|
+
export declare function preconnect(authority: string): void;
|
|
69
|
+
/**
|
|
70
|
+
* Wrapper function that creates a UUID v7 from the current timestamp.
|
|
71
|
+
* @returns {string}
|
|
72
|
+
*/
|
|
73
|
+
export declare function createGuid(): string;
|
|
74
|
+
export { invoke };
|
|
75
|
+
export { invokeAsync };
|
|
76
|
+
//# sourceMappingURL=BrowserUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrowserUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/BrowserUtils.ts"],"names":[],"mappings":"AAKA,OAAO,EAAa,MAAM,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAW5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAElE;;GAEG;AACH,wBAAgB,SAAS,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CAWrD;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAI7C;AAED;;GAEG;AACH,wBAAgB,UAAU,IAAI,OAAO,CAEpC;AAED;;GAEG;AACH,wBAAgB,SAAS,IAAI,OAAO,CAQnC;AAID;;GAEG;AACH,wBAAgB,aAAa,IAAI,MAAM,CAEtC;AAED;;GAEG;AACH,wBAAgB,WAAW,IAAI,MAAM,CAIpC;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,IAAI,IAAI,CAQjD;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,qBAAqB,EAAE,OAAO,GAAG,IAAI,CAK1E;AAED;;GAEG;AACH,wBAAgB,yBAAyB,IAAI,IAAI,CAKhD;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,IAAI,IAAI,CAMjD;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,CAAC,WAAW,EAAE,OAAO,GAAG,IAAI,CAMxE;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,WAAW,EAAE,OAAO,GAAG,IAAI,CAYzD;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAClC,WAAW,EAAE,OAAO,EACpB,MAAM,EAAE,oBAAoB,GAC7B,IAAI,CAYN;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAalD;AAED;;;GAGG;AACH,wBAAgB,UAAU,IAAI,MAAM,CAEnC;AAED,OAAO,EAAE,MAAM,EAAE,CAAC;AAClB,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "https://github.com/AzureAD/microsoft-authentication-library-for-js.git"
|
|
12
12
|
},
|
|
13
|
-
"version": "3.
|
|
13
|
+
"version": "3.24.0",
|
|
14
14
|
"description": "Microsoft Authentication Library for js",
|
|
15
15
|
"keywords": [
|
|
16
16
|
"implicit",
|
|
@@ -28,11 +28,14 @@
|
|
|
28
28
|
"types": "./dist/index.d.ts",
|
|
29
29
|
"exports": {
|
|
30
30
|
".": {
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
31
|
+
"import": {
|
|
32
|
+
"types": "./dist/index.d.ts",
|
|
33
|
+
"default": "./dist/index.mjs"
|
|
34
|
+
},
|
|
35
|
+
"require": {
|
|
36
|
+
"types": "./lib/types/index.d.ts",
|
|
37
|
+
"default": "./lib/msal-browser.cjs"
|
|
38
|
+
}
|
|
36
39
|
},
|
|
37
40
|
"./package.json": "./package.json"
|
|
38
41
|
},
|
|
@@ -49,11 +52,7 @@
|
|
|
49
52
|
},
|
|
50
53
|
"files": [
|
|
51
54
|
"dist",
|
|
52
|
-
"lib
|
|
53
|
-
"lib/msal-browser.js.map",
|
|
54
|
-
"lib/msal-browser.cjs",
|
|
55
|
-
"lib/msal-browser.cjs.map",
|
|
56
|
-
"lib/msal-browser.min.js",
|
|
55
|
+
"lib",
|
|
57
56
|
"src"
|
|
58
57
|
],
|
|
59
58
|
"scripts": {
|
|
@@ -96,14 +95,16 @@
|
|
|
96
95
|
"prettier": "^2.8.7",
|
|
97
96
|
"rimraf": "^3.0.0",
|
|
98
97
|
"rollup": "^3.14.0",
|
|
98
|
+
"rollup-msal": "file:../../shared-configs/rollup-msal",
|
|
99
99
|
"shx": "^0.3.2",
|
|
100
100
|
"sinon": "^7.5.0",
|
|
101
101
|
"ssri": "^8.0.1",
|
|
102
|
-
"ts-jest": "^29.
|
|
102
|
+
"ts-jest": "^29.2.5",
|
|
103
|
+
"ts-jest-resolver": "^2.0.1",
|
|
103
104
|
"tslib": "^1.10.0",
|
|
104
105
|
"typescript": "^4.9.5"
|
|
105
106
|
},
|
|
106
107
|
"dependencies": {
|
|
107
|
-
"@azure/msal-common": "14.
|
|
108
|
+
"@azure/msal-common": "14.15.0"
|
|
108
109
|
}
|
|
109
110
|
}
|
|
@@ -8,26 +8,26 @@ import {
|
|
|
8
8
|
AccountInfo,
|
|
9
9
|
Logger,
|
|
10
10
|
PerformanceCallbackFunction,
|
|
11
|
-
} from "@azure/msal-common";
|
|
12
|
-
import { RedirectRequest } from "../request/RedirectRequest";
|
|
13
|
-
import { PopupRequest } from "../request/PopupRequest";
|
|
14
|
-
import { SilentRequest } from "../request/SilentRequest";
|
|
15
|
-
import { SsoSilentRequest } from "../request/SsoSilentRequest";
|
|
16
|
-
import { EndSessionRequest } from "../request/EndSessionRequest";
|
|
11
|
+
} from "@azure/msal-common/browser";
|
|
12
|
+
import { RedirectRequest } from "../request/RedirectRequest.js";
|
|
13
|
+
import { PopupRequest } from "../request/PopupRequest.js";
|
|
14
|
+
import { SilentRequest } from "../request/SilentRequest.js";
|
|
15
|
+
import { SsoSilentRequest } from "../request/SsoSilentRequest.js";
|
|
16
|
+
import { EndSessionRequest } from "../request/EndSessionRequest.js";
|
|
17
17
|
import {
|
|
18
18
|
BrowserConfigurationAuthErrorCodes,
|
|
19
19
|
createBrowserConfigurationAuthError,
|
|
20
|
-
} from "../error/BrowserConfigurationAuthError";
|
|
21
|
-
import { WrapperSKU } from "../utils/BrowserConstants";
|
|
22
|
-
import { INavigationClient } from "../navigation/INavigationClient";
|
|
23
|
-
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest";
|
|
24
|
-
import { ITokenCache } from "../cache/ITokenCache";
|
|
25
|
-
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest";
|
|
26
|
-
import { BrowserConfiguration } from "../config/Configuration";
|
|
27
|
-
import { AuthenticationResult } from "../response/AuthenticationResult";
|
|
28
|
-
import { EventCallbackFunction } from "../event/EventMessage";
|
|
29
|
-
import { ClearCacheRequest } from "../request/ClearCacheRequest";
|
|
30
|
-
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest";
|
|
20
|
+
} from "../error/BrowserConfigurationAuthError.js";
|
|
21
|
+
import { WrapperSKU } from "../utils/BrowserConstants.js";
|
|
22
|
+
import { INavigationClient } from "../navigation/INavigationClient.js";
|
|
23
|
+
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest.js";
|
|
24
|
+
import { ITokenCache } from "../cache/ITokenCache.js";
|
|
25
|
+
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest.js";
|
|
26
|
+
import { BrowserConfiguration } from "../config/Configuration.js";
|
|
27
|
+
import { AuthenticationResult } from "../response/AuthenticationResult.js";
|
|
28
|
+
import { EventCallbackFunction } from "../event/EventMessage.js";
|
|
29
|
+
import { ClearCacheRequest } from "../request/ClearCacheRequest.js";
|
|
30
|
+
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest.js";
|
|
31
31
|
|
|
32
32
|
export interface IPublicClientApplication {
|
|
33
33
|
// TODO: Make request mandatory in the next major version?
|
|
@@ -3,34 +3,37 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { ITokenCache } from "../cache/ITokenCache";
|
|
7
|
-
import { INavigationClient } from "../navigation/INavigationClient";
|
|
8
|
-
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest";
|
|
9
|
-
import { PopupRequest } from "../request/PopupRequest";
|
|
10
|
-
import { RedirectRequest } from "../request/RedirectRequest";
|
|
11
|
-
import { SilentRequest } from "../request/SilentRequest";
|
|
12
|
-
import { WrapperSKU } from "../utils/BrowserConstants";
|
|
13
|
-
import { IPublicClientApplication } from "./IPublicClientApplication";
|
|
14
|
-
import { IController } from "../controllers/IController";
|
|
6
|
+
import { ITokenCache } from "../cache/ITokenCache.js";
|
|
7
|
+
import { INavigationClient } from "../navigation/INavigationClient.js";
|
|
8
|
+
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest.js";
|
|
9
|
+
import { PopupRequest } from "../request/PopupRequest.js";
|
|
10
|
+
import { RedirectRequest } from "../request/RedirectRequest.js";
|
|
11
|
+
import { SilentRequest } from "../request/SilentRequest.js";
|
|
12
|
+
import { WrapperSKU } from "../utils/BrowserConstants.js";
|
|
13
|
+
import { IPublicClientApplication } from "./IPublicClientApplication.js";
|
|
14
|
+
import { IController } from "../controllers/IController.js";
|
|
15
15
|
import {
|
|
16
16
|
PerformanceCallbackFunction,
|
|
17
17
|
AccountInfo,
|
|
18
18
|
AccountFilter,
|
|
19
19
|
Logger,
|
|
20
|
-
} from "@azure/msal-common";
|
|
21
|
-
import { EndSessionRequest } from "../request/EndSessionRequest";
|
|
22
|
-
import { SsoSilentRequest } from "../request/SsoSilentRequest";
|
|
23
|
-
import * as ControllerFactory from "../controllers/ControllerFactory";
|
|
24
|
-
import { StandardController } from "../controllers/StandardController";
|
|
25
|
-
import {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
20
|
+
} from "@azure/msal-common/browser";
|
|
21
|
+
import { EndSessionRequest } from "../request/EndSessionRequest.js";
|
|
22
|
+
import { SsoSilentRequest } from "../request/SsoSilentRequest.js";
|
|
23
|
+
import * as ControllerFactory from "../controllers/ControllerFactory.js";
|
|
24
|
+
import { StandardController } from "../controllers/StandardController.js";
|
|
25
|
+
import {
|
|
26
|
+
BrowserConfiguration,
|
|
27
|
+
Configuration,
|
|
28
|
+
} from "../config/Configuration.js";
|
|
29
|
+
import { StandardOperatingContext } from "../operatingcontext/StandardOperatingContext.js";
|
|
30
|
+
import { AuthenticationResult } from "../response/AuthenticationResult.js";
|
|
31
|
+
import { EventCallbackFunction } from "../event/EventMessage.js";
|
|
32
|
+
import { ClearCacheRequest } from "../request/ClearCacheRequest.js";
|
|
33
|
+
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest.js";
|
|
34
|
+
import { NestedAppAuthController } from "../controllers/NestedAppAuthController.js";
|
|
35
|
+
import { NestedAppOperatingContext } from "../operatingcontext/NestedAppOperatingContext.js";
|
|
36
|
+
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest.js";
|
|
34
37
|
|
|
35
38
|
/**
|
|
36
39
|
* The PublicClientApplication class is the object exposed by the library to perform authentication and authorization functions in Single Page Applications
|
|
@@ -3,30 +3,33 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { ITokenCache } from "../cache/ITokenCache";
|
|
7
|
-
import { INavigationClient } from "../navigation/INavigationClient";
|
|
8
|
-
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest";
|
|
9
|
-
import { PopupRequest } from "../request/PopupRequest";
|
|
10
|
-
import { RedirectRequest } from "../request/RedirectRequest";
|
|
11
|
-
import { SilentRequest } from "../request/SilentRequest";
|
|
12
|
-
import { WrapperSKU } from "../utils/BrowserConstants";
|
|
13
|
-
import { IPublicClientApplication } from "./IPublicClientApplication";
|
|
14
|
-
import { IController } from "../controllers/IController";
|
|
6
|
+
import { ITokenCache } from "../cache/ITokenCache.js";
|
|
7
|
+
import { INavigationClient } from "../navigation/INavigationClient.js";
|
|
8
|
+
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest.js";
|
|
9
|
+
import { PopupRequest } from "../request/PopupRequest.js";
|
|
10
|
+
import { RedirectRequest } from "../request/RedirectRequest.js";
|
|
11
|
+
import { SilentRequest } from "../request/SilentRequest.js";
|
|
12
|
+
import { WrapperSKU } from "../utils/BrowserConstants.js";
|
|
13
|
+
import { IPublicClientApplication } from "./IPublicClientApplication.js";
|
|
14
|
+
import { IController } from "../controllers/IController.js";
|
|
15
15
|
import {
|
|
16
16
|
PerformanceCallbackFunction,
|
|
17
17
|
AccountInfo,
|
|
18
18
|
AccountFilter,
|
|
19
19
|
Logger,
|
|
20
|
-
} from "@azure/msal-common";
|
|
21
|
-
import { EndSessionRequest } from "../request/EndSessionRequest";
|
|
22
|
-
import { SsoSilentRequest } from "../request/SsoSilentRequest";
|
|
23
|
-
import * as ControllerFactory from "../controllers/ControllerFactory";
|
|
24
|
-
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
20
|
+
} from "@azure/msal-common/browser";
|
|
21
|
+
import { EndSessionRequest } from "../request/EndSessionRequest.js";
|
|
22
|
+
import { SsoSilentRequest } from "../request/SsoSilentRequest.js";
|
|
23
|
+
import * as ControllerFactory from "../controllers/ControllerFactory.js";
|
|
24
|
+
import {
|
|
25
|
+
BrowserConfiguration,
|
|
26
|
+
Configuration,
|
|
27
|
+
} from "../config/Configuration.js";
|
|
28
|
+
import { EventCallbackFunction } from "../event/EventMessage.js";
|
|
29
|
+
import { ClearCacheRequest } from "../request/ClearCacheRequest.js";
|
|
30
|
+
import { AuthenticationResult } from "../response/AuthenticationResult.js";
|
|
31
|
+
import { UnknownOperatingContextController } from "../controllers/UnknownOperatingContextController.js";
|
|
32
|
+
import { UnknownOperatingContext } from "../operatingcontext/UnknownOperatingContext.js";
|
|
30
33
|
|
|
31
34
|
/**
|
|
32
35
|
* PublicClientNext is an early look at the planned implementation of PublicClientApplication in the next major version of MSAL.js.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import {
|
|
7
7
|
NativeConstants,
|
|
8
8
|
NativeExtensionMethod,
|
|
9
|
-
} from "../../utils/BrowserConstants";
|
|
9
|
+
} from "../../utils/BrowserConstants.js";
|
|
10
10
|
import {
|
|
11
11
|
Logger,
|
|
12
12
|
AuthError,
|
|
@@ -16,18 +16,18 @@ import {
|
|
|
16
16
|
InProgressPerformanceEvent,
|
|
17
17
|
PerformanceEvents,
|
|
18
18
|
IPerformanceClient,
|
|
19
|
-
} from "@azure/msal-common";
|
|
19
|
+
} from "@azure/msal-common/browser";
|
|
20
20
|
import {
|
|
21
21
|
NativeExtensionRequest,
|
|
22
22
|
NativeExtensionRequestBody,
|
|
23
|
-
} from "./NativeRequest";
|
|
24
|
-
import { createNativeAuthError } from "../../error/NativeAuthError";
|
|
23
|
+
} from "./NativeRequest.js";
|
|
24
|
+
import { createNativeAuthError } from "../../error/NativeAuthError.js";
|
|
25
25
|
import {
|
|
26
26
|
createBrowserAuthError,
|
|
27
27
|
BrowserAuthErrorCodes,
|
|
28
|
-
} from "../../error/BrowserAuthError";
|
|
29
|
-
import { BrowserConfiguration } from "../../config/Configuration";
|
|
30
|
-
import { createNewGuid } from "../../crypto/BrowserCrypto";
|
|
28
|
+
} from "../../error/BrowserAuthError.js";
|
|
29
|
+
import { BrowserConfiguration } from "../../config/Configuration.js";
|
|
30
|
+
import { createNewGuid } from "../../crypto/BrowserCrypto.js";
|
|
31
31
|
|
|
32
32
|
type ResponseResolvers<T> = {
|
|
33
33
|
resolve: (value: T | PromiseLike<T>) => void;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { NativeExtensionMethod } from "../../utils/BrowserConstants";
|
|
7
|
-
import { StoreInCache, StringDict } from "@azure/msal-common";
|
|
6
|
+
import { NativeExtensionMethod } from "../../utils/BrowserConstants.js";
|
|
7
|
+
import { StoreInCache, StringDict } from "@azure/msal-common/browser";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Token request which native broker will use to acquire tokens
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { AccountInfo, AccountFilter, Logger } from "@azure/msal-common";
|
|
7
|
-
import { BrowserCacheManager } from "./BrowserCacheManager";
|
|
6
|
+
import { AccountInfo, AccountFilter, Logger } from "@azure/msal-common/browser";
|
|
7
|
+
import { BrowserCacheManager } from "./BrowserCacheManager.js";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Returns all the accounts in the cache that match the optional filter. If no filter is provided, all accounts are returned.
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { Logger } from "@azure/msal-common";
|
|
6
|
+
import { Logger } from "@azure/msal-common/browser";
|
|
7
7
|
import {
|
|
8
8
|
BrowserAuthError,
|
|
9
9
|
BrowserAuthErrorCodes,
|
|
10
|
-
} from "../error/BrowserAuthError";
|
|
11
|
-
import { DatabaseStorage } from "./DatabaseStorage";
|
|
12
|
-
import { IAsyncStorage } from "./IAsyncStorage";
|
|
13
|
-
import { MemoryStorage } from "./MemoryStorage";
|
|
10
|
+
} from "../error/BrowserAuthError.js";
|
|
11
|
+
import { DatabaseStorage } from "./DatabaseStorage.js";
|
|
12
|
+
import { IAsyncStorage } from "./IAsyncStorage.js";
|
|
13
|
+
import { MemoryStorage } from "./MemoryStorage.js";
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* This class allows MSAL to store artifacts asynchronously using the DatabaseStorage IndexedDB wrapper,
|
|
@@ -39,31 +39,31 @@ import {
|
|
|
39
39
|
CacheHelpers,
|
|
40
40
|
StoreInCache,
|
|
41
41
|
CacheError,
|
|
42
|
-
} from "@azure/msal-common";
|
|
43
|
-
import { CacheOptions } from "../config/Configuration";
|
|
42
|
+
} from "@azure/msal-common/browser";
|
|
43
|
+
import { CacheOptions } from "../config/Configuration.js";
|
|
44
44
|
import {
|
|
45
45
|
createBrowserAuthError,
|
|
46
46
|
BrowserAuthErrorCodes,
|
|
47
|
-
} from "../error/BrowserAuthError";
|
|
47
|
+
} from "../error/BrowserAuthError.js";
|
|
48
48
|
import {
|
|
49
49
|
BrowserCacheLocation,
|
|
50
50
|
InteractionType,
|
|
51
51
|
TemporaryCacheKeys,
|
|
52
52
|
InMemoryCacheKeys,
|
|
53
53
|
StaticCacheKeys,
|
|
54
|
-
} from "../utils/BrowserConstants";
|
|
55
|
-
import { BrowserStorage } from "./BrowserStorage";
|
|
56
|
-
import { MemoryStorage } from "./MemoryStorage";
|
|
57
|
-
import { IWindowStorage } from "./IWindowStorage";
|
|
58
|
-
import { extractBrowserRequestState } from "../utils/BrowserProtocolUtils";
|
|
59
|
-
import { NativeTokenRequest } from "../broker/nativeBroker/NativeRequest";
|
|
60
|
-
import { AuthenticationResult } from "../response/AuthenticationResult";
|
|
61
|
-
import { SilentRequest } from "../request/SilentRequest";
|
|
62
|
-
import { SsoSilentRequest } from "../request/SsoSilentRequest";
|
|
63
|
-
import { RedirectRequest } from "../request/RedirectRequest";
|
|
64
|
-
import { PopupRequest } from "../request/PopupRequest";
|
|
65
|
-
import { base64Decode } from "../encode/Base64Decode";
|
|
66
|
-
import { base64Encode } from "../encode/Base64Encode";
|
|
54
|
+
} from "../utils/BrowserConstants.js";
|
|
55
|
+
import { BrowserStorage } from "./BrowserStorage.js";
|
|
56
|
+
import { MemoryStorage } from "./MemoryStorage.js";
|
|
57
|
+
import { IWindowStorage } from "./IWindowStorage.js";
|
|
58
|
+
import { extractBrowserRequestState } from "../utils/BrowserProtocolUtils.js";
|
|
59
|
+
import { NativeTokenRequest } from "../broker/nativeBroker/NativeRequest.js";
|
|
60
|
+
import { AuthenticationResult } from "../response/AuthenticationResult.js";
|
|
61
|
+
import { SilentRequest } from "../request/SilentRequest.js";
|
|
62
|
+
import { SsoSilentRequest } from "../request/SsoSilentRequest.js";
|
|
63
|
+
import { RedirectRequest } from "../request/RedirectRequest.js";
|
|
64
|
+
import { PopupRequest } from "../request/PopupRequest.js";
|
|
65
|
+
import { base64Decode } from "../encode/Base64Decode.js";
|
|
66
|
+
import { base64Encode } from "../encode/Base64Encode.js";
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* This class implements the cache storage interface for MSAL through browser local or session storage.
|
|
@@ -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;
|