@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,218 @@
|
|
|
1
|
+
import { SystemOptions, LoggerOptions, INetworkModule, ProtocolMode, OIDCOptions, AzureCloudOptions, ApplicationTelemetry, IPerformanceClient } from "@azure/msal-common/browser";
|
|
2
|
+
import { BrowserCacheLocation } from "../utils/BrowserConstants.js";
|
|
3
|
+
import { INavigationClient } from "../navigation/INavigationClient.js";
|
|
4
|
+
export declare const DEFAULT_POPUP_TIMEOUT_MS = 60000;
|
|
5
|
+
export declare const DEFAULT_IFRAME_TIMEOUT_MS = 10000;
|
|
6
|
+
export declare const DEFAULT_REDIRECT_TIMEOUT_MS = 30000;
|
|
7
|
+
export declare const DEFAULT_NATIVE_BROKER_HANDSHAKE_TIMEOUT_MS = 2000;
|
|
8
|
+
/**
|
|
9
|
+
* Use this to configure the auth options in the Configuration object
|
|
10
|
+
*/
|
|
11
|
+
export type BrowserAuthOptions = {
|
|
12
|
+
/**
|
|
13
|
+
* Client ID of your app registered with our Application registration portal : https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/RegisteredAppsPreview in Microsoft Identity Platform
|
|
14
|
+
*/
|
|
15
|
+
clientId: string;
|
|
16
|
+
/**
|
|
17
|
+
* You can configure a specific authority, defaults to " " or "https://login.microsoftonline.com/common"
|
|
18
|
+
*/
|
|
19
|
+
authority?: string;
|
|
20
|
+
/**
|
|
21
|
+
* An array of URIs that are known to be valid. Used in B2C scenarios.
|
|
22
|
+
*/
|
|
23
|
+
knownAuthorities?: Array<string>;
|
|
24
|
+
/**
|
|
25
|
+
* A string containing the cloud discovery response. Used in AAD scenarios.
|
|
26
|
+
*/
|
|
27
|
+
cloudDiscoveryMetadata?: string;
|
|
28
|
+
/**
|
|
29
|
+
* A string containing the .well-known/openid-configuration endpoint response
|
|
30
|
+
*/
|
|
31
|
+
authorityMetadata?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The redirect URI where authentication responses can be received by your application. It must exactly match one of the redirect URIs registered in the Azure portal.
|
|
34
|
+
*/
|
|
35
|
+
redirectUri?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The redirect URI where the window navigates after a successful logout.
|
|
38
|
+
*/
|
|
39
|
+
postLogoutRedirectUri?: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* Boolean indicating whether to navigate to the original request URL after the auth server navigates to the redirect URL.
|
|
42
|
+
*/
|
|
43
|
+
navigateToLoginRequestUrl?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Array of capabilities which will be added to the claims.access_token.xms_cc request property on every network request.
|
|
46
|
+
*/
|
|
47
|
+
clientCapabilities?: Array<string>;
|
|
48
|
+
/**
|
|
49
|
+
* Enum that represents the protocol that msal follows. Used for configuring proper endpoints.
|
|
50
|
+
*/
|
|
51
|
+
protocolMode?: ProtocolMode;
|
|
52
|
+
/**
|
|
53
|
+
* Enum that configures options for the OIDC protocol mode.
|
|
54
|
+
*/
|
|
55
|
+
OIDCOptions?: OIDCOptions;
|
|
56
|
+
/**
|
|
57
|
+
* Enum that represents the Azure Cloud to use.
|
|
58
|
+
*/
|
|
59
|
+
azureCloudOptions?: AzureCloudOptions;
|
|
60
|
+
/**
|
|
61
|
+
* Flag of whether to use the local metadata cache
|
|
62
|
+
*/
|
|
63
|
+
skipAuthorityMetadataCache?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* App supports nested app auth or not; defaults to
|
|
66
|
+
*
|
|
67
|
+
* @deprecated This flag is deprecated and will be removed in the next major version. createNestablePublicClientApplication should be used instead.
|
|
68
|
+
*/
|
|
69
|
+
supportsNestedAppAuth?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Callback that will be passed the url that MSAL will navigate to in redirect flows. Returning false in the callback will stop navigation.
|
|
72
|
+
*/
|
|
73
|
+
onRedirectNavigate?: (url: string) => boolean | void;
|
|
74
|
+
/**
|
|
75
|
+
* Flag of whether the STS will send back additional parameters to specify where the tokens should be retrieved from.
|
|
76
|
+
*/
|
|
77
|
+
instanceAware?: boolean;
|
|
78
|
+
};
|
|
79
|
+
/** @internal */
|
|
80
|
+
export type InternalAuthOptions = Omit<Required<BrowserAuthOptions>, "onRedirectNavigate"> & {
|
|
81
|
+
OIDCOptions: Required<OIDCOptions>;
|
|
82
|
+
onRedirectNavigate?: (url: string) => boolean | void;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* Use this to configure the below cache configuration options:
|
|
86
|
+
*/
|
|
87
|
+
export type CacheOptions = {
|
|
88
|
+
/**
|
|
89
|
+
* Used to specify the cacheLocation user wants to set. Valid values are "localStorage", "sessionStorage" and "memoryStorage".
|
|
90
|
+
*/
|
|
91
|
+
cacheLocation?: BrowserCacheLocation | string;
|
|
92
|
+
/**
|
|
93
|
+
* Used to specify the temporaryCacheLocation user wants to set. Valid values are "localStorage", "sessionStorage" and "memoryStorage".
|
|
94
|
+
*/
|
|
95
|
+
temporaryCacheLocation?: BrowserCacheLocation | string;
|
|
96
|
+
/**
|
|
97
|
+
* If set, MSAL stores the auth request state required for validation of the auth flows in the browser cookies. By default this flag is set to false.
|
|
98
|
+
*/
|
|
99
|
+
storeAuthStateInCookie?: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* If set, MSAL sets the "Secure" flag on cookies so they can only be sent over HTTPS. By default this flag is set to false.
|
|
102
|
+
*/
|
|
103
|
+
secureCookies?: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* If set, MSAL will attempt to migrate cache entries from older versions on initialization. By default this flag is set to true if cacheLocation is localStorage, otherwise false.
|
|
106
|
+
*/
|
|
107
|
+
cacheMigrationEnabled?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Flag that determines whether access tokens are stored based on requested claims
|
|
110
|
+
*/
|
|
111
|
+
claimsBasedCachingEnabled?: boolean;
|
|
112
|
+
};
|
|
113
|
+
export type BrowserSystemOptions = SystemOptions & {
|
|
114
|
+
/**
|
|
115
|
+
* Used to initialize the Logger object (See ClientConfiguration.ts)
|
|
116
|
+
*/
|
|
117
|
+
loggerOptions?: LoggerOptions;
|
|
118
|
+
/**
|
|
119
|
+
* Network interface implementation
|
|
120
|
+
*/
|
|
121
|
+
networkClient?: INetworkModule;
|
|
122
|
+
/**
|
|
123
|
+
* Override the methods used to navigate to other webpages. Particularly useful if you are using a client-side router
|
|
124
|
+
*/
|
|
125
|
+
navigationClient?: INavigationClient;
|
|
126
|
+
/**
|
|
127
|
+
* Sets the timeout for waiting for a response hash in a popup. Will take precedence over loadFrameTimeout if both are set.
|
|
128
|
+
*/
|
|
129
|
+
windowHashTimeout?: number;
|
|
130
|
+
/**
|
|
131
|
+
* Sets the timeout for waiting for a response hash in an iframe. Will take precedence over loadFrameTimeout if both are set.
|
|
132
|
+
*/
|
|
133
|
+
iframeHashTimeout?: number;
|
|
134
|
+
/**
|
|
135
|
+
* Sets the timeout for waiting for a response hash in an iframe or popup
|
|
136
|
+
*/
|
|
137
|
+
loadFrameTimeout?: number;
|
|
138
|
+
/**
|
|
139
|
+
* Maximum time the library should wait for a frame to load
|
|
140
|
+
* @deprecated This was previously needed for older browsers which are no longer supported by MSAL.js. This option will be removed in the next major version
|
|
141
|
+
*/
|
|
142
|
+
navigateFrameWait?: number;
|
|
143
|
+
/**
|
|
144
|
+
* Time to wait for redirection to occur before resolving promise
|
|
145
|
+
*/
|
|
146
|
+
redirectNavigationTimeout?: number;
|
|
147
|
+
/**
|
|
148
|
+
* Sets whether popups are opened asynchronously. By default, this flag is set to false. When set to false, blank popups are opened before anything else happens. When set to true, popups are opened when making the network request.
|
|
149
|
+
*/
|
|
150
|
+
asyncPopups?: boolean;
|
|
151
|
+
/**
|
|
152
|
+
* Flag to enable redirect opertaions when the app is rendered in an iframe (to support scenarios such as embedded B2C login).
|
|
153
|
+
*/
|
|
154
|
+
allowRedirectInIframe?: boolean;
|
|
155
|
+
/**
|
|
156
|
+
* Flag to enable native broker support (e.g. acquiring tokens from WAM on Windows)
|
|
157
|
+
*/
|
|
158
|
+
allowNativeBroker?: boolean;
|
|
159
|
+
/**
|
|
160
|
+
* Sets the timeout for waiting for the native broker handshake to resolve
|
|
161
|
+
*/
|
|
162
|
+
nativeBrokerHandshakeTimeout?: number;
|
|
163
|
+
/**
|
|
164
|
+
* Sets the interval length in milliseconds for polling the location attribute in popup windows (default is 30ms)
|
|
165
|
+
*/
|
|
166
|
+
pollIntervalMilliseconds?: number;
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* Telemetry Options
|
|
170
|
+
*/
|
|
171
|
+
export type BrowserTelemetryOptions = {
|
|
172
|
+
/**
|
|
173
|
+
* Telemetry information sent on request
|
|
174
|
+
* - appName: Unique string name of an application
|
|
175
|
+
* - appVersion: Version of the application using MSAL
|
|
176
|
+
*/
|
|
177
|
+
application?: ApplicationTelemetry;
|
|
178
|
+
client?: IPerformanceClient;
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* This object allows you to configure important elements of MSAL functionality and is passed into the constructor of PublicClientApplication
|
|
182
|
+
*/
|
|
183
|
+
export type Configuration = {
|
|
184
|
+
/**
|
|
185
|
+
* This is where you configure auth elements like clientID, authority used for authenticating against the Microsoft Identity Platform
|
|
186
|
+
*/
|
|
187
|
+
auth: BrowserAuthOptions;
|
|
188
|
+
/**
|
|
189
|
+
* This is where you configure cache location and whether to store cache in cookies
|
|
190
|
+
*/
|
|
191
|
+
cache?: CacheOptions;
|
|
192
|
+
/**
|
|
193
|
+
* This is where you can configure the network client, logger, token renewal offset
|
|
194
|
+
*/
|
|
195
|
+
system?: BrowserSystemOptions;
|
|
196
|
+
/**
|
|
197
|
+
* This is where you can configure telemetry data and options
|
|
198
|
+
*/
|
|
199
|
+
telemetry?: BrowserTelemetryOptions;
|
|
200
|
+
};
|
|
201
|
+
/** @internal */
|
|
202
|
+
export type BrowserConfiguration = {
|
|
203
|
+
auth: InternalAuthOptions;
|
|
204
|
+
cache: Required<CacheOptions>;
|
|
205
|
+
system: Required<BrowserSystemOptions>;
|
|
206
|
+
telemetry: Required<BrowserTelemetryOptions>;
|
|
207
|
+
};
|
|
208
|
+
/**
|
|
209
|
+
* MSAL function that sets the default options when not explicitly configured from app developer
|
|
210
|
+
*
|
|
211
|
+
* @param auth
|
|
212
|
+
* @param cache
|
|
213
|
+
* @param system
|
|
214
|
+
*
|
|
215
|
+
* @returns Configuration object
|
|
216
|
+
*/
|
|
217
|
+
export declare function buildConfiguration({ auth: userInputAuth, cache: userInputCache, system: userInputSystem, telemetry: userInputTelemetry, }: Configuration, isBrowserEnvironment: boolean): BrowserConfiguration;
|
|
218
|
+
//# sourceMappingURL=Configuration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Configuration.d.ts","sourceRoot":"","sources":["../../../src/config/Configuration.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,aAAa,EACb,aAAa,EACb,cAAc,EAGd,YAAY,EACZ,WAAW,EAKX,iBAAiB,EACjB,oBAAoB,EAGpB,kBAAkB,EAGrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACH,oBAAoB,EAEvB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAKvE,eAAO,MAAM,wBAAwB,QAAQ,CAAC;AAC9C,eAAO,MAAM,yBAAyB,QAAQ,CAAC;AAC/C,eAAO,MAAM,2BAA2B,QAAQ,CAAC;AACjD,eAAO,MAAM,0CAA0C,OAAO,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC7B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC;;OAEG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC;;OAEG;IACH,iBAAiB,CAAC,EAAE,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AAI,EAAE,mBAAmB,CAAC;IAC1B,KAAK,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC;IAC9B,MAAM,EAAE,QAAQ,CAAC,oBAAoB,CAAC,CAAC;IACvC,SAAS,EAAE,QAAQ,CAAC,uBAAuB,CAAC,CAAC;CAChD,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAC9B,EACI,IAAI,EAAE,aAAa,EACnB,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,eAAe,EACvB,SAAS,EAAE,kBAAkB,GAChC,EAAE,aAAa,EAChB,oBAAoB,EAAE,OAAO,GAC9B,oBAAoB,CAuItB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IController } from "./IController.js";
|
|
2
|
+
import { Configuration } from "../config/Configuration.js";
|
|
3
|
+
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest.js";
|
|
4
|
+
export declare function createV3Controller(config: Configuration, request?: InitializeApplicationRequest): Promise<IController>;
|
|
5
|
+
export declare function createController(config: Configuration): Promise<IController | null>;
|
|
6
|
+
//# sourceMappingURL=ControllerFactory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ControllerFactory.d.ts","sourceRoot":"","sources":["../../../src/controllers/ControllerFactory.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAG3D,OAAO,EAAE,4BAA4B,EAAE,MAAM,4CAA4C,CAAC;AAE1F,wBAAsB,kBAAkB,CACpC,MAAM,EAAE,aAAa,EACrB,OAAO,CAAC,EAAE,4BAA4B,GACvC,OAAO,CAAC,WAAW,CAAC,CAKtB;AAED,wBAAsB,gBAAgB,CAClC,MAAM,EAAE,aAAa,GACtB,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAgB7B"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { AccountInfo, Logger, PerformanceCallbackFunction, IPerformanceClient, AccountFilter } from "@azure/msal-common/browser";
|
|
2
|
+
import { RedirectRequest } from "../request/RedirectRequest.js";
|
|
3
|
+
import { PopupRequest } from "../request/PopupRequest.js";
|
|
4
|
+
import { SilentRequest } from "../request/SilentRequest.js";
|
|
5
|
+
import { SsoSilentRequest } from "../request/SsoSilentRequest.js";
|
|
6
|
+
import { EndSessionRequest } from "../request/EndSessionRequest.js";
|
|
7
|
+
import { ApiId, WrapperSKU } from "../utils/BrowserConstants.js";
|
|
8
|
+
import { INavigationClient } from "../navigation/INavigationClient.js";
|
|
9
|
+
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest.js";
|
|
10
|
+
import { ITokenCache } from "../cache/ITokenCache.js";
|
|
11
|
+
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest.js";
|
|
12
|
+
import { BrowserConfiguration } from "../config/Configuration.js";
|
|
13
|
+
import { EventHandler } from "../event/EventHandler.js";
|
|
14
|
+
import { AuthenticationResult } from "../response/AuthenticationResult.js";
|
|
15
|
+
import { EventCallbackFunction } from "../event/EventMessage.js";
|
|
16
|
+
import { ClearCacheRequest } from "../request/ClearCacheRequest.js";
|
|
17
|
+
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest.js";
|
|
18
|
+
export interface IController {
|
|
19
|
+
initialize(request?: InitializeApplicationRequest): Promise<void>;
|
|
20
|
+
acquireTokenPopup(request: PopupRequest): Promise<AuthenticationResult>;
|
|
21
|
+
acquireTokenRedirect(request: RedirectRequest): Promise<void>;
|
|
22
|
+
acquireTokenSilent(silentRequest: SilentRequest): Promise<AuthenticationResult>;
|
|
23
|
+
acquireTokenByCode(request: AuthorizationCodeRequest): Promise<AuthenticationResult>;
|
|
24
|
+
acquireTokenNative(request: PopupRequest | SilentRequest | SsoSilentRequest, apiId: ApiId, accountId?: string): Promise<AuthenticationResult>;
|
|
25
|
+
addEventCallback(callback: EventCallbackFunction): string | null;
|
|
26
|
+
removeEventCallback(callbackId: string): void;
|
|
27
|
+
addPerformanceCallback(callback: PerformanceCallbackFunction): string;
|
|
28
|
+
removePerformanceCallback(callbackId: string): boolean;
|
|
29
|
+
enableAccountStorageEvents(): void;
|
|
30
|
+
disableAccountStorageEvents(): void;
|
|
31
|
+
getAccount(accountFilter: AccountFilter): AccountInfo | null;
|
|
32
|
+
getAccountByHomeId(homeAccountId: string): AccountInfo | null;
|
|
33
|
+
getAccountByLocalId(localId: string): AccountInfo | null;
|
|
34
|
+
getAccountByUsername(userName: string): AccountInfo | null;
|
|
35
|
+
getAllAccounts(accountFilter?: AccountFilter): AccountInfo[];
|
|
36
|
+
handleRedirectPromise(hash?: string): Promise<AuthenticationResult | null>;
|
|
37
|
+
loginPopup(request?: PopupRequest): Promise<AuthenticationResult>;
|
|
38
|
+
loginRedirect(request?: RedirectRequest): Promise<void>;
|
|
39
|
+
logout(logoutRequest?: EndSessionRequest): Promise<void>;
|
|
40
|
+
logoutRedirect(logoutRequest?: EndSessionRequest): Promise<void>;
|
|
41
|
+
logoutPopup(logoutRequest?: EndSessionPopupRequest): Promise<void>;
|
|
42
|
+
clearCache(logoutRequest?: ClearCacheRequest): Promise<void>;
|
|
43
|
+
ssoSilent(request: SsoSilentRequest): Promise<AuthenticationResult>;
|
|
44
|
+
getTokenCache(): ITokenCache;
|
|
45
|
+
getLogger(): Logger;
|
|
46
|
+
setLogger(logger: Logger): void;
|
|
47
|
+
setActiveAccount(account: AccountInfo | null): void;
|
|
48
|
+
getActiveAccount(): AccountInfo | null;
|
|
49
|
+
initializeWrapperLibrary(sku: WrapperSKU, version: string): void;
|
|
50
|
+
setNavigationClient(navigationClient: INavigationClient): void;
|
|
51
|
+
/** @internal */
|
|
52
|
+
getConfiguration(): BrowserConfiguration;
|
|
53
|
+
hydrateCache(result: AuthenticationResult, request: SilentRequest | SsoSilentRequest | RedirectRequest | PopupRequest): Promise<void>;
|
|
54
|
+
/** @internal */
|
|
55
|
+
isBrowserEnv(): boolean;
|
|
56
|
+
/** @internal */
|
|
57
|
+
getPerformanceClient(): IPerformanceClient;
|
|
58
|
+
/** @internal */
|
|
59
|
+
getEventHandler(): EventHandler;
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=IController.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IController.d.ts","sourceRoot":"","sources":["../../../src/controllers/IController.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,WAAW,EACX,MAAM,EACN,2BAA2B,EAC3B,kBAAkB,EAClB,aAAa,EAChB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,4BAA4B,EAAE,MAAM,4CAA4C,CAAC;AAE1F,MAAM,WAAW,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AY,IAAI,OAAO,CAAC;IAExB,gBAAgB;IAChB,oBAAoB,IAAI,kBAAkB,CAAC;IAE3C,gBAAgB;IAChB,eAAe,IAAI,YAAY,CAAC;CACnC"}
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { CommonAuthorizationUrlRequest, CommonSilentFlowRequest, PerformanceCallbackFunction, AccountInfo, Logger, ICrypto, IPerformanceClient, AccountFilter } from "@azure/msal-common/browser";
|
|
2
|
+
import { ITokenCache } from "../cache/ITokenCache.js";
|
|
3
|
+
import { BrowserConfiguration } from "../config/Configuration.js";
|
|
4
|
+
import { INavigationClient } from "../navigation/INavigationClient.js";
|
|
5
|
+
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest.js";
|
|
6
|
+
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest.js";
|
|
7
|
+
import { EndSessionRequest } from "../request/EndSessionRequest.js";
|
|
8
|
+
import { PopupRequest } from "../request/PopupRequest.js";
|
|
9
|
+
import { RedirectRequest } from "../request/RedirectRequest.js";
|
|
10
|
+
import { SilentRequest } from "../request/SilentRequest.js";
|
|
11
|
+
import { SsoSilentRequest } from "../request/SsoSilentRequest.js";
|
|
12
|
+
import { ApiId, WrapperSKU } from "../utils/BrowserConstants.js";
|
|
13
|
+
import { IController } from "./IController.js";
|
|
14
|
+
import { NestedAppOperatingContext } from "../operatingcontext/NestedAppOperatingContext.js";
|
|
15
|
+
import { IBridgeProxy } from "../naa/IBridgeProxy.js";
|
|
16
|
+
import { NestedAppAuthAdapter } from "../naa/mapping/NestedAppAuthAdapter.js";
|
|
17
|
+
import { EventHandler } from "../event/EventHandler.js";
|
|
18
|
+
import { EventCallbackFunction } from "../event/EventMessage.js";
|
|
19
|
+
import { AuthenticationResult } from "../response/AuthenticationResult.js";
|
|
20
|
+
import { BrowserCacheManager } from "../cache/BrowserCacheManager.js";
|
|
21
|
+
import { ClearCacheRequest } from "../request/ClearCacheRequest.js";
|
|
22
|
+
export declare class NestedAppAuthController implements IController {
|
|
23
|
+
protected readonly operatingContext: NestedAppOperatingContext;
|
|
24
|
+
protected readonly bridgeProxy: IBridgeProxy;
|
|
25
|
+
protected readonly browserCrypto: ICrypto;
|
|
26
|
+
protected readonly config: BrowserConfiguration;
|
|
27
|
+
protected readonly browserStorage: BrowserCacheManager;
|
|
28
|
+
protected logger: Logger;
|
|
29
|
+
protected readonly performanceClient: IPerformanceClient;
|
|
30
|
+
protected readonly eventHandler: EventHandler;
|
|
31
|
+
protected readonly nestedAppAuthAdapter: NestedAppAuthAdapter;
|
|
32
|
+
constructor(operatingContext: NestedAppOperatingContext);
|
|
33
|
+
/**
|
|
34
|
+
* Returns the event handler instance
|
|
35
|
+
* @returns EventHandler
|
|
36
|
+
*/
|
|
37
|
+
getEventHandler(): EventHandler;
|
|
38
|
+
/**
|
|
39
|
+
* Factory function to create a new instance of NestedAppAuthController
|
|
40
|
+
* @param operatingContext
|
|
41
|
+
* @returns Promise<IController>
|
|
42
|
+
*/
|
|
43
|
+
static createController(operatingContext: NestedAppOperatingContext): Promise<IController>;
|
|
44
|
+
/**
|
|
45
|
+
* Specific implementation of initialize function for NestedAppAuthController
|
|
46
|
+
* @returns
|
|
47
|
+
*/
|
|
48
|
+
initialize(): Promise<void>;
|
|
49
|
+
/**
|
|
50
|
+
* Validate the incoming request and add correlationId if not present
|
|
51
|
+
* @param request
|
|
52
|
+
* @returns
|
|
53
|
+
*/
|
|
54
|
+
private ensureValidRequest;
|
|
55
|
+
/**
|
|
56
|
+
* Internal implementation of acquireTokenInteractive flow
|
|
57
|
+
* @param request
|
|
58
|
+
* @returns
|
|
59
|
+
*/
|
|
60
|
+
private acquireTokenInteractive;
|
|
61
|
+
/**
|
|
62
|
+
* Internal implementation of acquireTokenSilent flow
|
|
63
|
+
* @param request
|
|
64
|
+
* @returns
|
|
65
|
+
*/
|
|
66
|
+
private acquireTokenSilentInternal;
|
|
67
|
+
/**
|
|
68
|
+
* acquires tokens from cache
|
|
69
|
+
* @param request
|
|
70
|
+
* @returns
|
|
71
|
+
*/
|
|
72
|
+
private acquireTokenFromCache;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @param request
|
|
76
|
+
* @returns
|
|
77
|
+
*/
|
|
78
|
+
private acquireTokenFromCacheInternal;
|
|
79
|
+
/**
|
|
80
|
+
* acquireTokenPopup flow implementation
|
|
81
|
+
* @param request
|
|
82
|
+
* @returns
|
|
83
|
+
*/
|
|
84
|
+
acquireTokenPopup(request: PopupRequest): Promise<AuthenticationResult>;
|
|
85
|
+
/**
|
|
86
|
+
* acquireTokenRedirect flow is not supported in nested app auth
|
|
87
|
+
* @param request
|
|
88
|
+
*/
|
|
89
|
+
acquireTokenRedirect(request: RedirectRequest): Promise<void>;
|
|
90
|
+
/**
|
|
91
|
+
* acquireTokenSilent flow implementation
|
|
92
|
+
* @param silentRequest
|
|
93
|
+
* @returns
|
|
94
|
+
*/
|
|
95
|
+
acquireTokenSilent(silentRequest: SilentRequest): Promise<AuthenticationResult>;
|
|
96
|
+
/**
|
|
97
|
+
* Hybrid flow is not currently supported in nested app auth
|
|
98
|
+
* @param request
|
|
99
|
+
*/
|
|
100
|
+
acquireTokenByCode(request: AuthorizationCodeRequest): Promise<AuthenticationResult>;
|
|
101
|
+
/**
|
|
102
|
+
* acquireTokenNative flow is not currently supported in nested app auth
|
|
103
|
+
* @param request
|
|
104
|
+
* @param apiId
|
|
105
|
+
* @param accountId
|
|
106
|
+
*/
|
|
107
|
+
acquireTokenNative(request: SilentRequest | Partial<Omit<CommonAuthorizationUrlRequest, "requestedClaimsHash" | "responseMode" | "codeChallenge" | "codeChallengeMethod" | "nativeBroker">> | PopupRequest, apiId: ApiId, // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
108
|
+
accountId?: string | undefined): Promise<AuthenticationResult>;
|
|
109
|
+
/**
|
|
110
|
+
* acquireTokenByRefreshToken flow is not currently supported in nested app auth
|
|
111
|
+
* @param commonRequest
|
|
112
|
+
* @param silentRequest
|
|
113
|
+
*/
|
|
114
|
+
acquireTokenByRefreshToken(commonRequest: CommonSilentFlowRequest, // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
115
|
+
silentRequest: SilentRequest): Promise<AuthenticationResult>;
|
|
116
|
+
/**
|
|
117
|
+
* Adds event callbacks to array
|
|
118
|
+
* @param callback
|
|
119
|
+
*/
|
|
120
|
+
addEventCallback(callback: EventCallbackFunction): string | null;
|
|
121
|
+
/**
|
|
122
|
+
* Removes callback with provided id from callback array
|
|
123
|
+
* @param callbackId
|
|
124
|
+
*/
|
|
125
|
+
removeEventCallback(callbackId: string): void;
|
|
126
|
+
addPerformanceCallback(callback: PerformanceCallbackFunction): string;
|
|
127
|
+
removePerformanceCallback(callbackId: string): boolean;
|
|
128
|
+
enableAccountStorageEvents(): void;
|
|
129
|
+
disableAccountStorageEvents(): void;
|
|
130
|
+
/**
|
|
131
|
+
* Returns all the accounts in the cache that match the optional filter. If no filter is provided, all accounts are returned.
|
|
132
|
+
* @param accountFilter - (Optional) filter to narrow down the accounts returned
|
|
133
|
+
* @returns Array of AccountInfo objects in cache
|
|
134
|
+
*/
|
|
135
|
+
getAllAccounts(accountFilter?: AccountFilter): AccountInfo[];
|
|
136
|
+
/**
|
|
137
|
+
* Returns the first account found in the cache that matches the account filter passed in.
|
|
138
|
+
* @param accountFilter
|
|
139
|
+
* @returns The first account found in the cache matching the provided filter or null if no account could be found.
|
|
140
|
+
*/
|
|
141
|
+
getAccount(accountFilter: AccountFilter): AccountInfo | null;
|
|
142
|
+
/**
|
|
143
|
+
* Returns the signed in account matching username.
|
|
144
|
+
* (the account object is created at the time of successful login)
|
|
145
|
+
* or null when no matching account is found.
|
|
146
|
+
* This API is provided for convenience but getAccountById should be used for best reliability
|
|
147
|
+
* @param username
|
|
148
|
+
* @returns The account object stored in MSAL
|
|
149
|
+
*/
|
|
150
|
+
getAccountByUsername(username: string): AccountInfo | null;
|
|
151
|
+
/**
|
|
152
|
+
* Returns the signed in account matching homeAccountId.
|
|
153
|
+
* (the account object is created at the time of successful login)
|
|
154
|
+
* or null when no matching account is found
|
|
155
|
+
* @param homeAccountId
|
|
156
|
+
* @returns The account object stored in MSAL
|
|
157
|
+
*/
|
|
158
|
+
getAccountByHomeId(homeAccountId: string): AccountInfo | null;
|
|
159
|
+
/**
|
|
160
|
+
* Returns the signed in account matching localAccountId.
|
|
161
|
+
* (the account object is created at the time of successful login)
|
|
162
|
+
* or null when no matching account is found
|
|
163
|
+
* @param localAccountId
|
|
164
|
+
* @returns The account object stored in MSAL
|
|
165
|
+
*/
|
|
166
|
+
getAccountByLocalId(localAccountId: string): AccountInfo | null;
|
|
167
|
+
/**
|
|
168
|
+
* Sets the account to use as the active account. If no account is passed to the acquireToken APIs, then MSAL will use this active account.
|
|
169
|
+
* @param account
|
|
170
|
+
*/
|
|
171
|
+
setActiveAccount(account: AccountInfo | null): void;
|
|
172
|
+
/**
|
|
173
|
+
* Gets the currently active account
|
|
174
|
+
*/
|
|
175
|
+
getActiveAccount(): AccountInfo | null;
|
|
176
|
+
handleRedirectPromise(hash?: string | undefined): Promise<AuthenticationResult | null>;
|
|
177
|
+
loginPopup(request?: PopupRequest | undefined): Promise<AuthenticationResult>;
|
|
178
|
+
loginRedirect(request?: RedirectRequest | undefined): Promise<void>;
|
|
179
|
+
logout(logoutRequest?: EndSessionRequest | undefined): Promise<void>;
|
|
180
|
+
logoutRedirect(logoutRequest?: EndSessionRequest | undefined): Promise<void>;
|
|
181
|
+
logoutPopup(logoutRequest?: EndSessionPopupRequest | undefined): Promise<void>;
|
|
182
|
+
ssoSilent(request: Partial<Omit<CommonAuthorizationUrlRequest, "requestedClaimsHash" | "responseMode" | "codeChallenge" | "codeChallengeMethod" | "nativeBroker">>): Promise<AuthenticationResult>;
|
|
183
|
+
getTokenCache(): ITokenCache;
|
|
184
|
+
/**
|
|
185
|
+
* Returns the logger instance
|
|
186
|
+
*/
|
|
187
|
+
getLogger(): Logger;
|
|
188
|
+
/**
|
|
189
|
+
* Replaces the default logger set in configurations with new Logger with new configurations
|
|
190
|
+
* @param logger Logger instance
|
|
191
|
+
*/
|
|
192
|
+
setLogger(logger: Logger): void;
|
|
193
|
+
initializeWrapperLibrary(sku: WrapperSKU, version: string): void;
|
|
194
|
+
setNavigationClient(navigationClient: INavigationClient): void;
|
|
195
|
+
getConfiguration(): BrowserConfiguration;
|
|
196
|
+
isBrowserEnv(): boolean;
|
|
197
|
+
getBrowserCrypto(): ICrypto;
|
|
198
|
+
getPerformanceClient(): IPerformanceClient;
|
|
199
|
+
getRedirectResponse(): Map<string, Promise<AuthenticationResult | null>>;
|
|
200
|
+
clearCache(logoutRequest?: ClearCacheRequest): Promise<void>;
|
|
201
|
+
hydrateCache(result: AuthenticationResult, request: SilentRequest | SsoSilentRequest | RedirectRequest | PopupRequest): Promise<void>;
|
|
202
|
+
}
|
|
203
|
+
//# sourceMappingURL=NestedAppAuthController.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NestedAppAuthController.d.ts","sourceRoot":"","sources":["../../../src/controllers/NestedAppAuthController.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,6BAA6B,EAC7B,uBAAuB,EACvB,2BAA2B,EAC3B,WAAW,EACX,MAAM,EACN,OAAO,EACP,kBAAkB,EAQlB,aAAa,EAChB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA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