@azure/msal-browser 3.23.0 → 3.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/app/IPublicClientApplication.d.ts +16 -16
- package/dist/app/IPublicClientApplication.d.ts.map +1 -1
- package/dist/app/IPublicClientApplication.mjs +1 -1
- package/dist/app/PublicClientApplication.d.ts +18 -18
- package/dist/app/PublicClientApplication.d.ts.map +1 -1
- package/dist/app/PublicClientApplication.mjs +1 -1
- package/dist/app/PublicClientApplication.mjs.map +1 -1
- package/dist/app/PublicClientNext.d.ts +16 -16
- package/dist/app/PublicClientNext.d.ts.map +1 -1
- package/dist/app/PublicClientNext.mjs +1 -1
- package/dist/app/PublicClientNext.mjs.map +1 -1
- package/dist/broker/nativeBroker/NativeMessageHandler.d.ts +3 -3
- package/dist/broker/nativeBroker/NativeMessageHandler.d.ts.map +1 -1
- package/dist/broker/nativeBroker/NativeMessageHandler.mjs +2 -2
- package/dist/broker/nativeBroker/NativeRequest.d.ts +2 -2
- package/dist/broker/nativeBroker/NativeRequest.d.ts.map +1 -1
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
- package/dist/cache/AccountManager.d.ts +2 -2
- package/dist/cache/AccountManager.d.ts.map +1 -1
- package/dist/cache/AccountManager.mjs +1 -1
- package/dist/cache/AsyncMemoryStorage.d.ts +2 -2
- package/dist/cache/AsyncMemoryStorage.d.ts.map +1 -1
- package/dist/cache/AsyncMemoryStorage.mjs +1 -1
- package/dist/cache/BrowserCacheManager.d.ts +11 -11
- package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
- package/dist/cache/BrowserCacheManager.mjs +2 -2
- package/dist/cache/BrowserStorage.d.ts +1 -1
- package/dist/cache/BrowserStorage.d.ts.map +1 -1
- package/dist/cache/BrowserStorage.mjs +1 -1
- package/dist/cache/DatabaseStorage.d.ts +1 -1
- package/dist/cache/DatabaseStorage.d.ts.map +1 -1
- package/dist/cache/DatabaseStorage.mjs +1 -1
- package/dist/cache/DatabaseStorage.mjs.map +1 -1
- package/dist/cache/ITokenCache.d.ts +4 -4
- package/dist/cache/ITokenCache.d.ts.map +1 -1
- package/dist/cache/MemoryStorage.d.ts +1 -1
- package/dist/cache/MemoryStorage.d.ts.map +1 -1
- package/dist/cache/MemoryStorage.mjs +1 -1
- package/dist/cache/TokenCache.d.ts +6 -6
- package/dist/cache/TokenCache.d.ts.map +1 -1
- package/dist/cache/TokenCache.mjs +2 -2
- package/dist/config/Configuration.d.ts +7 -3
- package/dist/config/Configuration.d.ts.map +1 -1
- package/dist/config/Configuration.mjs +3 -2
- package/dist/config/Configuration.mjs.map +1 -1
- package/dist/controllers/ControllerFactory.d.ts +3 -3
- package/dist/controllers/ControllerFactory.d.ts.map +1 -1
- package/dist/controllers/ControllerFactory.mjs +1 -1
- package/dist/controllers/IController.d.ts +17 -17
- package/dist/controllers/IController.d.ts.map +1 -1
- package/dist/controllers/NestedAppAuthController.d.ts +21 -21
- package/dist/controllers/NestedAppAuthController.d.ts.map +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +2 -2
- package/dist/controllers/StandardController.d.ts +28 -28
- package/dist/controllers/StandardController.d.ts.map +1 -1
- package/dist/controllers/StandardController.mjs +2 -2
- package/dist/controllers/UnknownOperatingContextController.d.ts +19 -19
- package/dist/controllers/UnknownOperatingContextController.d.ts.map +1 -1
- package/dist/controllers/UnknownOperatingContextController.mjs +2 -2
- package/dist/crypto/BrowserCrypto.d.ts +1 -1
- package/dist/crypto/BrowserCrypto.d.ts.map +1 -1
- package/dist/crypto/BrowserCrypto.mjs +2 -2
- package/dist/crypto/CryptoOps.d.ts +1 -1
- package/dist/crypto/CryptoOps.d.ts.map +1 -1
- package/dist/crypto/CryptoOps.mjs +2 -2
- package/dist/crypto/CryptoOps.mjs.map +1 -1
- package/dist/crypto/PkceGenerator.d.ts +1 -1
- package/dist/crypto/PkceGenerator.d.ts.map +1 -1
- package/dist/crypto/PkceGenerator.mjs +2 -2
- package/dist/crypto/SignedHttpRequest.d.ts +1 -1
- package/dist/crypto/SignedHttpRequest.d.ts.map +1 -1
- package/dist/crypto/SignedHttpRequest.mjs +2 -2
- package/dist/encode/Base64Decode.mjs +1 -1
- package/dist/encode/Base64Encode.mjs +1 -1
- package/dist/error/BrowserAuthError.d.ts +2 -2
- package/dist/error/BrowserAuthError.d.ts.map +1 -1
- package/dist/error/BrowserAuthError.mjs +2 -2
- package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
- package/dist/error/BrowserConfigurationAuthError.d.ts +2 -2
- package/dist/error/BrowserConfigurationAuthError.d.ts.map +1 -1
- package/dist/error/BrowserConfigurationAuthError.mjs +2 -2
- package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
- package/dist/error/NativeAuthError.d.ts +2 -2
- package/dist/error/NativeAuthError.d.ts.map +1 -1
- package/dist/error/NativeAuthError.mjs +2 -2
- package/dist/error/NativeAuthErrorCodes.mjs +1 -1
- package/dist/error/NestedAppAuthError.d.ts +1 -1
- package/dist/error/NestedAppAuthError.d.ts.map +1 -1
- package/dist/error/NestedAppAuthError.mjs +2 -2
- package/dist/event/EventHandler.d.ts +4 -4
- package/dist/event/EventHandler.d.ts.map +1 -1
- package/dist/event/EventHandler.mjs +2 -2
- package/dist/event/EventMessage.d.ts +9 -4
- package/dist/event/EventMessage.d.ts.map +1 -1
- package/dist/event/EventMessage.mjs +1 -1
- package/dist/event/EventMessage.mjs.map +1 -1
- package/dist/event/EventType.mjs +1 -1
- package/dist/index.d.ts +35 -35
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/interaction_client/BaseInteractionClient.d.ts +24 -16
- package/dist/interaction_client/BaseInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/BaseInteractionClient.mjs +23 -10
- package/dist/interaction_client/BaseInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.d.ts +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.d.ts.map +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +2 -2
- package/dist/interaction_client/NativeInteractionClient.d.ts +16 -16
- package/dist/interaction_client/NativeInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/NativeInteractionClient.mjs +12 -6
- package/dist/interaction_client/NativeInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/PopupClient.d.ts +17 -16
- package/dist/interaction_client/PopupClient.d.ts.map +1 -1
- package/dist/interaction_client/PopupClient.mjs +59 -56
- package/dist/interaction_client/PopupClient.mjs.map +1 -1
- package/dist/interaction_client/RedirectClient.d.ts +10 -10
- package/dist/interaction_client/RedirectClient.d.ts.map +1 -1
- package/dist/interaction_client/RedirectClient.mjs +35 -7
- package/dist/interaction_client/RedirectClient.mjs.map +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.d.ts +10 -10
- package/dist/interaction_client/SilentAuthCodeClient.d.ts.map +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.mjs +9 -3
- package/dist/interaction_client/SilentAuthCodeClient.mjs.map +1 -1
- package/dist/interaction_client/SilentCacheClient.d.ts +4 -4
- package/dist/interaction_client/SilentCacheClient.d.ts.map +1 -1
- package/dist/interaction_client/SilentCacheClient.mjs +8 -3
- package/dist/interaction_client/SilentCacheClient.mjs.map +1 -1
- package/dist/interaction_client/SilentIframeClient.d.ts +11 -11
- package/dist/interaction_client/SilentIframeClient.d.ts.map +1 -1
- package/dist/interaction_client/SilentIframeClient.mjs +9 -3
- package/dist/interaction_client/SilentIframeClient.mjs.map +1 -1
- package/dist/interaction_client/SilentRefreshClient.d.ts +17 -6
- package/dist/interaction_client/SilentRefreshClient.d.ts.map +1 -1
- package/dist/interaction_client/SilentRefreshClient.mjs +23 -7
- package/dist/interaction_client/SilentRefreshClient.mjs.map +1 -1
- package/dist/interaction_client/StandardInteractionClient.d.ts +36 -15
- package/dist/interaction_client/StandardInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/StandardInteractionClient.mjs +26 -11
- package/dist/interaction_client/StandardInteractionClient.mjs.map +1 -1
- package/dist/interaction_handler/InteractionHandler.d.ts +4 -4
- package/dist/interaction_handler/InteractionHandler.d.ts.map +1 -1
- package/dist/interaction_handler/InteractionHandler.mjs +2 -2
- package/dist/interaction_handler/RedirectHandler.d.ts +4 -4
- package/dist/interaction_handler/RedirectHandler.d.ts.map +1 -1
- package/dist/interaction_handler/RedirectHandler.mjs +2 -2
- package/dist/interaction_handler/SilentHandler.d.ts +1 -1
- package/dist/interaction_handler/SilentHandler.d.ts.map +1 -1
- package/dist/interaction_handler/SilentHandler.mjs +2 -2
- package/dist/naa/AuthResult.d.ts +2 -2
- package/dist/naa/AuthResult.d.ts.map +1 -1
- package/dist/naa/BridgeError.d.ts +1 -1
- package/dist/naa/BridgeError.d.ts.map +1 -1
- package/dist/naa/BridgeError.mjs +1 -1
- package/dist/naa/BridgeProxy.d.ts +9 -8
- package/dist/naa/BridgeProxy.d.ts.map +1 -1
- package/dist/naa/BridgeProxy.mjs +16 -14
- package/dist/naa/BridgeProxy.mjs.map +1 -1
- package/dist/naa/BridgeRequest.d.ts +1 -1
- package/dist/naa/BridgeRequest.d.ts.map +1 -1
- package/dist/naa/BridgeRequestEnvelope.d.ts +1 -1
- package/dist/naa/BridgeRequestEnvelope.d.ts.map +1 -1
- package/dist/naa/BridgeResponseEnvelope.d.ts +4 -4
- package/dist/naa/BridgeResponseEnvelope.d.ts.map +1 -1
- package/dist/naa/BridgeStatusCode.mjs +1 -1
- package/dist/naa/IBridgeProxy.d.ts +4 -4
- package/dist/naa/IBridgeProxy.d.ts.map +1 -1
- package/dist/naa/InitContext.d.ts +2 -2
- package/dist/naa/InitContext.d.ts.map +1 -1
- package/dist/naa/mapping/NestedAppAuthAdapter.d.ts +9 -9
- package/dist/naa/mapping/NestedAppAuthAdapter.d.ts.map +1 -1
- package/dist/naa/mapping/NestedAppAuthAdapter.mjs +2 -2
- package/dist/navigation/INavigationClient.d.ts +1 -1
- package/dist/navigation/INavigationClient.d.ts.map +1 -1
- package/dist/navigation/NavigationClient.d.ts +2 -2
- package/dist/navigation/NavigationClient.d.ts.map +1 -1
- package/dist/navigation/NavigationClient.mjs +1 -1
- package/dist/navigation/NavigationOptions.d.ts +1 -1
- package/dist/navigation/NavigationOptions.d.ts.map +1 -1
- package/dist/network/FetchClient.d.ts +1 -1
- package/dist/network/FetchClient.d.ts.map +1 -1
- package/dist/network/FetchClient.mjs +2 -2
- package/dist/operatingcontext/BaseOperatingContext.d.ts +2 -2
- package/dist/operatingcontext/BaseOperatingContext.d.ts.map +1 -1
- package/dist/operatingcontext/BaseOperatingContext.mjs +2 -2
- package/dist/operatingcontext/NestedAppOperatingContext.d.ts +8 -3
- package/dist/operatingcontext/NestedAppOperatingContext.d.ts.map +1 -1
- package/dist/operatingcontext/NestedAppOperatingContext.mjs +4 -5
- package/dist/operatingcontext/NestedAppOperatingContext.mjs.map +1 -1
- package/dist/operatingcontext/StandardOperatingContext.d.ts +1 -1
- package/dist/operatingcontext/StandardOperatingContext.d.ts.map +1 -1
- package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
- package/dist/operatingcontext/UnknownOperatingContext.d.ts +1 -1
- package/dist/operatingcontext/UnknownOperatingContext.d.ts.map +1 -1
- package/dist/operatingcontext/UnknownOperatingContext.mjs +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/request/AuthorizationCodeRequest.d.ts +1 -1
- package/dist/request/AuthorizationCodeRequest.d.ts.map +1 -1
- package/dist/request/AuthorizationUrlRequest.d.ts +1 -1
- package/dist/request/AuthorizationUrlRequest.d.ts.map +1 -1
- package/dist/request/ClearCacheRequest.d.ts +1 -1
- package/dist/request/ClearCacheRequest.d.ts.map +1 -1
- package/dist/request/EndSessionPopupRequest.d.ts +4 -2
- package/dist/request/EndSessionPopupRequest.d.ts.map +1 -1
- package/dist/request/EndSessionRequest.d.ts +1 -1
- package/dist/request/EndSessionRequest.d.ts.map +1 -1
- package/dist/request/PopupRequest.d.ts +4 -2
- package/dist/request/PopupRequest.d.ts.map +1 -1
- package/dist/request/RedirectRequest.d.ts +1 -1
- package/dist/request/RedirectRequest.d.ts.map +1 -1
- package/dist/request/RequestHelpers.d.ts +3 -3
- package/dist/request/RequestHelpers.d.ts.map +1 -1
- package/dist/request/RequestHelpers.mjs +2 -2
- package/dist/request/SilentRequest.d.ts +2 -2
- package/dist/request/SilentRequest.d.ts.map +1 -1
- package/dist/request/SsoSilentRequest.d.ts +1 -1
- package/dist/request/SsoSilentRequest.d.ts.map +1 -1
- package/dist/response/AuthenticationResult.d.ts +1 -1
- package/dist/response/AuthenticationResult.d.ts.map +1 -1
- package/dist/response/ResponseHandler.d.ts +2 -2
- package/dist/response/ResponseHandler.d.ts.map +1 -1
- package/dist/response/ResponseHandler.mjs +2 -2
- package/dist/telemetry/BrowserPerformanceClient.d.ts +2 -2
- package/dist/telemetry/BrowserPerformanceClient.d.ts.map +1 -1
- package/dist/telemetry/BrowserPerformanceClient.mjs +2 -2
- package/dist/telemetry/BrowserPerformanceClient.mjs.map +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.d.ts +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.d.ts.map +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.mjs.map +1 -1
- package/dist/utils/BrowserConstants.d.ts +2 -2
- package/dist/utils/BrowserConstants.d.ts.map +1 -1
- package/dist/utils/BrowserConstants.mjs +2 -2
- package/dist/utils/BrowserProtocolUtils.d.ts +2 -2
- package/dist/utils/BrowserProtocolUtils.d.ts.map +1 -1
- package/dist/utils/BrowserProtocolUtils.mjs +2 -2
- package/dist/utils/BrowserUtils.d.ts +2 -2
- package/dist/utils/BrowserUtils.d.ts.map +1 -1
- package/dist/utils/BrowserUtils.mjs +3 -3
- package/lib/msal-browser.cjs +5060 -4953
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +5060 -4953
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +65 -67
- package/lib/package.json +1 -0
- package/lib/types/app/IPublicClientApplication.d.ts +54 -0
- package/lib/types/app/IPublicClientApplication.d.ts.map +1 -0
- package/lib/types/app/PublicClientApplication.d.ts +294 -0
- package/lib/types/app/PublicClientApplication.d.ts.map +1 -0
- package/lib/types/app/PublicClientNext.d.ts +277 -0
- package/lib/types/app/PublicClientNext.d.ts.map +1 -0
- package/lib/types/broker/nativeBroker/NativeMessageHandler.d.ts +63 -0
- package/lib/types/broker/nativeBroker/NativeMessageHandler.d.ts.map +1 -0
- package/lib/types/broker/nativeBroker/NativeRequest.d.ts +46 -0
- package/lib/types/broker/nativeBroker/NativeRequest.d.ts.map +1 -0
- package/lib/types/broker/nativeBroker/NativeResponse.d.ts +49 -0
- package/lib/types/broker/nativeBroker/NativeResponse.d.ts.map +1 -0
- package/lib/types/broker/nativeBroker/NativeStatusCodes.d.ts +8 -0
- package/lib/types/broker/nativeBroker/NativeStatusCodes.d.ts.map +1 -0
- package/lib/types/cache/AccountManager.d.ts +49 -0
- package/lib/types/cache/AccountManager.d.ts.map +1 -0
- package/lib/types/cache/AsyncMemoryStorage.d.ts +51 -0
- package/lib/types/cache/AsyncMemoryStorage.d.ts.map +1 -0
- package/lib/types/cache/BrowserCacheManager.d.ts +386 -0
- package/lib/types/cache/BrowserCacheManager.d.ts.map +1 -0
- package/lib/types/cache/BrowserStorage.d.ts +12 -0
- package/lib/types/cache/BrowserStorage.d.ts.map +1 -0
- package/lib/types/cache/DatabaseStorage.d.ts +57 -0
- package/lib/types/cache/DatabaseStorage.d.ts.map +1 -0
- package/lib/types/cache/IAsyncStorage.d.ts +28 -0
- package/lib/types/cache/IAsyncStorage.d.ts.map +1 -0
- package/lib/types/cache/ITokenCache.d.ts +12 -0
- package/lib/types/cache/ITokenCache.d.ts.map +1 -0
- package/lib/types/cache/IWindowStorage.d.ts +28 -0
- package/lib/types/cache/IWindowStorage.d.ts.map +1 -0
- package/lib/types/cache/MemoryStorage.d.ts +12 -0
- package/lib/types/cache/MemoryStorage.d.ts.map +1 -0
- package/lib/types/cache/TokenCache.d.ts +78 -0
- package/lib/types/cache/TokenCache.d.ts.map +1 -0
- package/lib/types/config/Configuration.d.ts +218 -0
- package/lib/types/config/Configuration.d.ts.map +1 -0
- package/lib/types/controllers/ControllerFactory.d.ts +6 -0
- package/lib/types/controllers/ControllerFactory.d.ts.map +1 -0
- package/lib/types/controllers/IController.d.ts +61 -0
- package/lib/types/controllers/IController.d.ts.map +1 -0
- package/lib/types/controllers/NestedAppAuthController.d.ts +203 -0
- package/lib/types/controllers/NestedAppAuthController.d.ts.map +1 -0
- package/lib/types/controllers/StandardController.d.ts +406 -0
- package/lib/types/controllers/StandardController.d.ts.map +1 -0
- package/lib/types/controllers/UnknownOperatingContextController.d.ts +87 -0
- package/lib/types/controllers/UnknownOperatingContextController.d.ts.map +1 -0
- package/lib/types/crypto/BrowserCrypto.d.ts +53 -0
- package/lib/types/crypto/BrowserCrypto.d.ts.map +1 -0
- package/lib/types/crypto/CryptoOps.d.ts +75 -0
- package/lib/types/crypto/CryptoOps.d.ts.map +1 -0
- package/lib/types/crypto/PkceGenerator.d.ts +9 -0
- package/lib/types/crypto/PkceGenerator.d.ts.map +1 -0
- package/lib/types/crypto/SignedHttpRequest.d.ts +31 -0
- package/lib/types/crypto/SignedHttpRequest.d.ts.map +1 -0
- package/lib/types/encode/Base64Decode.d.ts +10 -0
- package/lib/types/encode/Base64Decode.d.ts.map +1 -0
- package/lib/types/encode/Base64Encode.d.ts +20 -0
- package/lib/types/encode/Base64Encode.d.ts.map +1 -0
- package/lib/types/error/BrowserAuthError.d.ts +256 -0
- package/lib/types/error/BrowserAuthError.d.ts.map +1 -0
- package/lib/types/error/BrowserAuthErrorCodes.d.ts +47 -0
- package/lib/types/error/BrowserAuthErrorCodes.d.ts.map +1 -0
- package/lib/types/error/BrowserConfigurationAuthError.d.ts +34 -0
- package/lib/types/error/BrowserConfigurationAuthError.d.ts.map +1 -0
- package/lib/types/error/BrowserConfigurationAuthErrorCodes.d.ts +4 -0
- package/lib/types/error/BrowserConfigurationAuthErrorCodes.d.ts.map +1 -0
- package/lib/types/error/NativeAuthError.d.ts +30 -0
- package/lib/types/error/NativeAuthError.d.ts.map +1 -0
- package/lib/types/error/NativeAuthErrorCodes.d.ts +3 -0
- package/lib/types/error/NativeAuthErrorCodes.d.ts.map +1 -0
- package/lib/types/error/NestedAppAuthError.d.ts +15 -0
- package/lib/types/error/NestedAppAuthError.d.ts.map +1 -0
- package/lib/types/event/EventHandler.d.ts +42 -0
- package/lib/types/event/EventHandler.d.ts.map +1 -0
- package/lib/types/event/EventMessage.d.ts +31 -0
- package/lib/types/event/EventMessage.d.ts.map +1 -0
- package/lib/types/event/EventType.d.ts +30 -0
- package/lib/types/event/EventType.d.ts.map +1 -0
- package/lib/types/index.d.ts +41 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/interaction_client/BaseInteractionClient.d.ts +59 -0
- package/lib/types/interaction_client/BaseInteractionClient.d.ts.map +1 -0
- package/lib/types/interaction_client/HybridSpaAuthorizationCodeClient.d.ts +5 -0
- package/lib/types/interaction_client/HybridSpaAuthorizationCodeClient.d.ts.map +1 -0
- package/lib/types/interaction_client/NativeInteractionClient.d.ts +152 -0
- package/lib/types/interaction_client/NativeInteractionClient.d.ts.map +1 -0
- package/lib/types/interaction_client/PopupClient.d.ts +107 -0
- package/lib/types/interaction_client/PopupClient.d.ts.map +1 -0
- package/lib/types/interaction_client/RedirectClient.d.ts +51 -0
- package/lib/types/interaction_client/RedirectClient.d.ts.map +1 -0
- package/lib/types/interaction_client/SilentAuthCodeClient.d.ts +24 -0
- package/lib/types/interaction_client/SilentAuthCodeClient.d.ts.map +1 -0
- package/lib/types/interaction_client/SilentCacheClient.d.ts +17 -0
- package/lib/types/interaction_client/SilentCacheClient.d.ts.map +1 -0
- package/lib/types/interaction_client/SilentIframeClient.d.ts +33 -0
- package/lib/types/interaction_client/SilentIframeClient.d.ts.map +1 -0
- package/lib/types/interaction_client/SilentRefreshClient.d.ts +32 -0
- package/lib/types/interaction_client/SilentRefreshClient.d.ts.map +1 -0
- package/lib/types/interaction_client/StandardInteractionClient.d.ts +70 -0
- package/lib/types/interaction_client/StandardInteractionClient.d.ts.map +1 -0
- package/lib/types/interaction_handler/InteractionHandler.d.ts +34 -0
- package/lib/types/interaction_handler/InteractionHandler.d.ts.map +1 -0
- package/lib/types/interaction_handler/RedirectHandler.d.ts +33 -0
- package/lib/types/interaction_handler/RedirectHandler.d.ts.map +1 -0
- package/lib/types/interaction_handler/SilentHandler.d.ts +14 -0
- package/lib/types/interaction_handler/SilentHandler.d.ts.map +1 -0
- package/lib/types/naa/AccountInfo.d.ts +12 -0
- package/lib/types/naa/AccountInfo.d.ts.map +1 -0
- package/lib/types/naa/AuthBridge.d.ts +9 -0
- package/lib/types/naa/AuthBridge.d.ts.map +1 -0
- package/lib/types/naa/AuthResult.d.ts +7 -0
- package/lib/types/naa/AuthResult.d.ts.map +1 -0
- package/lib/types/naa/BridgeAccountContext.d.ts +13 -0
- package/lib/types/naa/BridgeAccountContext.d.ts.map +1 -0
- package/lib/types/naa/BridgeCapabilities.d.ts +4 -0
- package/lib/types/naa/BridgeCapabilities.d.ts.map +1 -0
- package/lib/types/naa/BridgeError.d.ts +10 -0
- package/lib/types/naa/BridgeError.d.ts.map +1 -0
- package/lib/types/naa/BridgeProxy.d.ts +69 -0
- package/lib/types/naa/BridgeProxy.d.ts.map +1 -0
- package/lib/types/naa/BridgeRequest.d.ts +8 -0
- package/lib/types/naa/BridgeRequest.d.ts.map +1 -0
- package/lib/types/naa/BridgeRequestEnvelope.d.ts +13 -0
- package/lib/types/naa/BridgeRequestEnvelope.d.ts.map +1 -0
- package/lib/types/naa/BridgeResponseEnvelope.d.ts +14 -0
- package/lib/types/naa/BridgeResponseEnvelope.d.ts.map +1 -0
- package/lib/types/naa/BridgeStatusCode.d.ts +12 -0
- package/lib/types/naa/BridgeStatusCode.d.ts.map +1 -0
- package/lib/types/naa/IBridgeProxy.d.ts +11 -0
- package/lib/types/naa/IBridgeProxy.d.ts.map +1 -0
- package/lib/types/naa/InitContext.d.ts +9 -0
- package/lib/types/naa/InitContext.d.ts.map +1 -0
- package/lib/types/naa/TokenRequest.d.ts +19 -0
- package/lib/types/naa/TokenRequest.d.ts.map +1 -0
- package/lib/types/naa/TokenResponse.d.ts +14 -0
- package/lib/types/naa/TokenResponse.d.ts.map +1 -0
- package/lib/types/naa/mapping/NestedAppAuthAdapter.d.ts +36 -0
- package/lib/types/naa/mapping/NestedAppAuthAdapter.d.ts.map +1 -0
- package/lib/types/navigation/INavigationClient.d.ts +17 -0
- package/lib/types/navigation/INavigationClient.d.ts.map +1 -0
- package/lib/types/navigation/NavigationClient.d.ts +23 -0
- package/lib/types/navigation/NavigationClient.d.ts.map +1 -0
- package/lib/types/navigation/NavigationOptions.d.ts +13 -0
- package/lib/types/navigation/NavigationOptions.d.ts.map +1 -0
- package/lib/types/network/FetchClient.d.ts +27 -0
- package/lib/types/network/FetchClient.d.ts.map +1 -0
- package/lib/types/operatingcontext/BaseOperatingContext.d.ts +42 -0
- package/lib/types/operatingcontext/BaseOperatingContext.d.ts.map +1 -0
- package/lib/types/operatingcontext/NestedAppOperatingContext.d.ts +40 -0
- package/lib/types/operatingcontext/NestedAppOperatingContext.d.ts.map +1 -0
- package/lib/types/operatingcontext/StandardOperatingContext.d.ts +26 -0
- package/lib/types/operatingcontext/StandardOperatingContext.d.ts.map +1 -0
- package/lib/types/operatingcontext/UnknownOperatingContext.d.ts +26 -0
- package/lib/types/operatingcontext/UnknownOperatingContext.d.ts.map +1 -0
- package/lib/types/packageMetadata.d.ts +3 -0
- package/lib/types/packageMetadata.d.ts.map +1 -0
- package/lib/types/request/AuthorizationCodeRequest.d.ts +9 -0
- package/lib/types/request/AuthorizationCodeRequest.d.ts.map +1 -0
- package/lib/types/request/AuthorizationUrlRequest.d.ts +9 -0
- package/lib/types/request/AuthorizationUrlRequest.d.ts.map +1 -0
- package/lib/types/request/ClearCacheRequest.d.ts +11 -0
- package/lib/types/request/ClearCacheRequest.d.ts.map +1 -0
- package/lib/types/request/EndSessionPopupRequest.d.ts +21 -0
- package/lib/types/request/EndSessionPopupRequest.d.ts.map +1 -0
- package/lib/types/request/EndSessionRequest.d.ts +16 -0
- package/lib/types/request/EndSessionRequest.d.ts.map +1 -0
- package/lib/types/request/InitializeApplicationRequest.d.ts +9 -0
- package/lib/types/request/InitializeApplicationRequest.d.ts.map +1 -0
- package/lib/types/request/PopupRequest.d.ts +37 -0
- package/lib/types/request/PopupRequest.d.ts.map +1 -0
- package/lib/types/request/PopupWindowAttributes.d.ts +16 -0
- package/lib/types/request/PopupWindowAttributes.d.ts.map +1 -0
- package/lib/types/request/RedirectRequest.d.ts +41 -0
- package/lib/types/request/RedirectRequest.d.ts.map +1 -0
- package/lib/types/request/RequestHelpers.d.ts +14 -0
- package/lib/types/request/RequestHelpers.d.ts.map +1 -0
- package/lib/types/request/SilentRequest.d.ts +34 -0
- package/lib/types/request/SilentRequest.d.ts.map +1 -0
- package/lib/types/request/SsoSilentRequest.d.ts +30 -0
- package/lib/types/request/SsoSilentRequest.d.ts.map +1 -0
- package/lib/types/response/AuthenticationResult.d.ts +5 -0
- package/lib/types/response/AuthenticationResult.d.ts.map +1 -0
- package/lib/types/response/ResponseHandler.d.ts +8 -0
- package/lib/types/response/ResponseHandler.d.ts.map +1 -0
- package/lib/types/telemetry/BrowserPerformanceClient.d.ts +35 -0
- package/lib/types/telemetry/BrowserPerformanceClient.d.ts.map +1 -0
- package/lib/types/telemetry/BrowserPerformanceMeasurement.d.ts +22 -0
- package/lib/types/telemetry/BrowserPerformanceMeasurement.d.ts.map +1 -0
- package/lib/types/utils/BrowserConstants.d.ts +181 -0
- package/lib/types/utils/BrowserConstants.d.ts.map +1 -0
- package/lib/types/utils/BrowserProtocolUtils.d.ts +12 -0
- package/lib/types/utils/BrowserProtocolUtils.d.ts.map +1 -0
- package/lib/types/utils/BrowserUtils.d.ts +76 -0
- package/lib/types/utils/BrowserUtils.d.ts.map +1 -0
- package/package.json +15 -16
- package/src/app/IPublicClientApplication.ts +17 -17
- package/src/app/PublicClientApplication.ts +26 -23
- package/src/app/PublicClientNext.ts +22 -19
- package/src/broker/nativeBroker/NativeMessageHandler.ts +7 -7
- package/src/broker/nativeBroker/NativeRequest.ts +2 -2
- package/src/cache/AccountManager.ts +2 -2
- package/src/cache/AsyncMemoryStorage.ts +5 -5
- package/src/cache/BrowserCacheManager.ts +16 -16
- package/src/cache/BrowserStorage.ts +3 -3
- package/src/cache/DatabaseStorage.ts +7 -3
- package/src/cache/ITokenCache.ts +4 -4
- package/src/cache/MemoryStorage.ts +1 -1
- package/src/cache/TokenCache.ts +9 -9
- package/src/config/Configuration.ts +10 -5
- package/src/controllers/ControllerFactory.ts +7 -7
- package/src/controllers/IController.ts +17 -17
- package/src/controllers/NestedAppAuthController.ts +25 -25
- package/src/controllers/StandardController.ts +39 -39
- package/src/controllers/UnknownOperatingContextController.ts +21 -21
- package/src/crypto/BrowserCrypto.ts +4 -4
- package/src/crypto/CryptoOps.ts +10 -6
- package/src/crypto/PkceGenerator.ts +4 -4
- package/src/crypto/SignedHttpRequest.ts +3 -3
- package/src/encode/Base64Decode.ts +1 -1
- package/src/error/BrowserAuthError.ts +2 -2
- package/src/error/BrowserConfigurationAuthError.ts +2 -2
- package/src/error/NativeAuthError.ts +4 -4
- package/src/error/NestedAppAuthError.ts +1 -1
- package/src/event/EventHandler.ts +5 -5
- package/src/event/EventMessage.ts +11 -10
- package/src/index.ts +35 -35
- package/src/interaction_client/BaseInteractionClient.ts +51 -28
- package/src/interaction_client/HybridSpaAuthorizationCodeClient.ts +1 -1
- package/src/interaction_client/NativeInteractionClient.ts +32 -29
- package/src/interaction_client/PopupClient.ts +95 -109
- package/src/interaction_client/RedirectClient.ts +57 -31
- package/src/interaction_client/SilentAuthCodeClient.ts +20 -19
- package/src/interaction_client/SilentCacheClient.ts +11 -11
- package/src/interaction_client/SilentIframeClient.ts +23 -22
- package/src/interaction_client/SilentRefreshClient.ts +33 -20
- package/src/interaction_client/StandardInteractionClient.ts +62 -38
- package/src/interaction_handler/InteractionHandler.ts +5 -5
- package/src/interaction_handler/RedirectHandler.ts +7 -7
- package/src/interaction_handler/SilentHandler.ts +3 -3
- package/src/naa/AuthResult.ts +2 -2
- package/src/naa/BridgeError.ts +1 -1
- package/src/naa/BridgeProxy.ts +36 -26
- package/src/naa/BridgeRequest.ts +1 -1
- package/src/naa/BridgeRequestEnvelope.ts +1 -1
- package/src/naa/BridgeResponseEnvelope.ts +4 -4
- package/src/naa/IBridgeProxy.ts +4 -4
- package/src/naa/InitContext.ts +2 -2
- package/src/naa/mapping/NestedAppAuthAdapter.ts +12 -12
- package/src/navigation/INavigationClient.ts +1 -1
- package/src/navigation/NavigationClient.ts +2 -2
- package/src/navigation/NavigationOptions.ts +1 -1
- package/src/network/FetchClient.ts +3 -3
- package/src/operatingcontext/BaseOperatingContext.ts +4 -4
- package/src/operatingcontext/NestedAppOperatingContext.ts +14 -9
- package/src/operatingcontext/StandardOperatingContext.ts +1 -1
- package/src/operatingcontext/UnknownOperatingContext.ts +1 -1
- package/src/packageMetadata.ts +1 -1
- package/src/request/AuthorizationCodeRequest.ts +1 -1
- package/src/request/AuthorizationUrlRequest.ts +1 -1
- package/src/request/ClearCacheRequest.ts +1 -1
- package/src/request/EndSessionPopupRequest.ts +4 -2
- package/src/request/EndSessionRequest.ts +1 -1
- package/src/request/PopupRequest.ts +7 -2
- package/src/request/RedirectRequest.ts +4 -1
- package/src/request/RequestHelpers.ts +4 -4
- package/src/request/SilentRequest.ts +2 -2
- package/src/request/SsoSilentRequest.ts +4 -1
- package/src/response/AuthenticationResult.ts +1 -1
- package/src/response/ResponseHandler.ts +4 -4
- package/src/telemetry/BrowserPerformanceClient.ts +6 -6
- package/src/telemetry/BrowserPerformanceMeasurement.ts +4 -1
- package/src/utils/BrowserConstants.ts +3 -3
- package/src/utils/BrowserProtocolUtils.ts +2 -2
- package/src/utils/BrowserUtils.ts +6 -6
package/src/index.ts
CHANGED
|
@@ -8,16 +8,16 @@
|
|
|
8
8
|
* @module @azure/msal-browser
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import * as BrowserUtils from "./utils/BrowserUtils";
|
|
11
|
+
import * as BrowserUtils from "./utils/BrowserUtils.js";
|
|
12
12
|
export { BrowserUtils };
|
|
13
13
|
|
|
14
14
|
export {
|
|
15
15
|
PublicClientApplication,
|
|
16
16
|
createNestablePublicClientApplication,
|
|
17
17
|
createStandardPublicClientApplication,
|
|
18
|
-
} from "./app/PublicClientApplication";
|
|
19
|
-
export { PublicClientNext } from "./app/PublicClientNext";
|
|
20
|
-
export { IController } from "./controllers/IController";
|
|
18
|
+
} from "./app/PublicClientApplication.js";
|
|
19
|
+
export { PublicClientNext } from "./app/PublicClientNext.js";
|
|
20
|
+
export { IController } from "./controllers/IController.js";
|
|
21
21
|
export {
|
|
22
22
|
Configuration,
|
|
23
23
|
BrowserAuthOptions,
|
|
@@ -26,7 +26,7 @@ export {
|
|
|
26
26
|
BrowserTelemetryOptions,
|
|
27
27
|
BrowserConfiguration,
|
|
28
28
|
DEFAULT_IFRAME_TIMEOUT_MS,
|
|
29
|
-
} from "./config/Configuration";
|
|
29
|
+
} from "./config/Configuration.js";
|
|
30
30
|
export {
|
|
31
31
|
InteractionType,
|
|
32
32
|
InteractionStatus,
|
|
@@ -34,47 +34,47 @@ export {
|
|
|
34
34
|
WrapperSKU,
|
|
35
35
|
ApiId,
|
|
36
36
|
CacheLookupPolicy,
|
|
37
|
-
} from "./utils/BrowserConstants";
|
|
37
|
+
} from "./utils/BrowserConstants.js";
|
|
38
38
|
|
|
39
39
|
// Browser Errors
|
|
40
40
|
export {
|
|
41
41
|
BrowserAuthError,
|
|
42
42
|
BrowserAuthErrorMessage,
|
|
43
43
|
BrowserAuthErrorCodes,
|
|
44
|
-
} from "./error/BrowserAuthError";
|
|
44
|
+
} from "./error/BrowserAuthError.js";
|
|
45
45
|
export {
|
|
46
46
|
BrowserConfigurationAuthError,
|
|
47
47
|
BrowserConfigurationAuthErrorCodes,
|
|
48
48
|
BrowserConfigurationAuthErrorMessage,
|
|
49
|
-
} from "./error/BrowserConfigurationAuthError";
|
|
49
|
+
} from "./error/BrowserConfigurationAuthError.js";
|
|
50
50
|
|
|
51
51
|
// Interfaces
|
|
52
52
|
export {
|
|
53
53
|
IPublicClientApplication,
|
|
54
54
|
stubbedPublicClientApplication,
|
|
55
|
-
} from "./app/IPublicClientApplication";
|
|
56
|
-
export { INavigationClient } from "./navigation/INavigationClient";
|
|
57
|
-
export { NavigationClient } from "./navigation/NavigationClient";
|
|
58
|
-
export { NavigationOptions } from "./navigation/NavigationOptions";
|
|
59
|
-
export { PopupRequest } from "./request/PopupRequest";
|
|
60
|
-
export { RedirectRequest } from "./request/RedirectRequest";
|
|
61
|
-
export { SilentRequest } from "./request/SilentRequest";
|
|
62
|
-
export { SsoSilentRequest } from "./request/SsoSilentRequest";
|
|
63
|
-
export { EndSessionRequest } from "./request/EndSessionRequest";
|
|
64
|
-
export { EndSessionPopupRequest } from "./request/EndSessionPopupRequest";
|
|
65
|
-
export { AuthorizationUrlRequest } from "./request/AuthorizationUrlRequest";
|
|
66
|
-
export { AuthorizationCodeRequest } from "./request/AuthorizationCodeRequest";
|
|
67
|
-
export { AuthenticationResult } from "./response/AuthenticationResult";
|
|
68
|
-
export { ClearCacheRequest } from "./request/ClearCacheRequest";
|
|
69
|
-
export { InitializeApplicationRequest } from "./request/InitializeApplicationRequest";
|
|
55
|
+
} from "./app/IPublicClientApplication.js";
|
|
56
|
+
export { INavigationClient } from "./navigation/INavigationClient.js";
|
|
57
|
+
export { NavigationClient } from "./navigation/NavigationClient.js";
|
|
58
|
+
export { NavigationOptions } from "./navigation/NavigationOptions.js";
|
|
59
|
+
export { PopupRequest } from "./request/PopupRequest.js";
|
|
60
|
+
export { RedirectRequest } from "./request/RedirectRequest.js";
|
|
61
|
+
export { SilentRequest } from "./request/SilentRequest.js";
|
|
62
|
+
export { SsoSilentRequest } from "./request/SsoSilentRequest.js";
|
|
63
|
+
export { EndSessionRequest } from "./request/EndSessionRequest.js";
|
|
64
|
+
export { EndSessionPopupRequest } from "./request/EndSessionPopupRequest.js";
|
|
65
|
+
export { AuthorizationUrlRequest } from "./request/AuthorizationUrlRequest.js";
|
|
66
|
+
export { AuthorizationCodeRequest } from "./request/AuthorizationCodeRequest.js";
|
|
67
|
+
export { AuthenticationResult } from "./response/AuthenticationResult.js";
|
|
68
|
+
export { ClearCacheRequest } from "./request/ClearCacheRequest.js";
|
|
69
|
+
export { InitializeApplicationRequest } from "./request/InitializeApplicationRequest.js";
|
|
70
70
|
|
|
71
71
|
// Cache
|
|
72
|
-
export { LoadTokenOptions } from "./cache/TokenCache";
|
|
73
|
-
export { ITokenCache } from "./cache/ITokenCache";
|
|
72
|
+
export { LoadTokenOptions } from "./cache/TokenCache.js";
|
|
73
|
+
export { ITokenCache } from "./cache/ITokenCache.js";
|
|
74
74
|
|
|
75
75
|
// Storage
|
|
76
|
-
export { MemoryStorage } from "./cache/MemoryStorage";
|
|
77
|
-
export { BrowserStorage } from "./cache/BrowserStorage";
|
|
76
|
+
export { MemoryStorage } from "./cache/MemoryStorage.js";
|
|
77
|
+
export { BrowserStorage } from "./cache/BrowserStorage.js";
|
|
78
78
|
|
|
79
79
|
// Events
|
|
80
80
|
export {
|
|
@@ -84,23 +84,23 @@ export {
|
|
|
84
84
|
EventCallbackFunction,
|
|
85
85
|
EventMessageUtils,
|
|
86
86
|
PopupEvent,
|
|
87
|
-
} from "./event/EventMessage";
|
|
88
|
-
export { EventType } from "./event/EventType";
|
|
87
|
+
} from "./event/EventMessage.js";
|
|
88
|
+
export { EventType } from "./event/EventType.js";
|
|
89
89
|
|
|
90
90
|
export {
|
|
91
91
|
SignedHttpRequest,
|
|
92
92
|
SignedHttpRequestOptions,
|
|
93
|
-
} from "./crypto/SignedHttpRequest";
|
|
93
|
+
} from "./crypto/SignedHttpRequest.js";
|
|
94
94
|
|
|
95
95
|
export {
|
|
96
96
|
PopupWindowAttributes,
|
|
97
97
|
PopupSize,
|
|
98
98
|
PopupPosition,
|
|
99
|
-
} from "./request/PopupWindowAttributes";
|
|
99
|
+
} from "./request/PopupWindowAttributes.js";
|
|
100
100
|
|
|
101
101
|
// Telemetry
|
|
102
|
-
export { BrowserPerformanceClient } from "./telemetry/BrowserPerformanceClient";
|
|
103
|
-
export { BrowserPerformanceMeasurement } from "./telemetry/BrowserPerformanceMeasurement";
|
|
102
|
+
export { BrowserPerformanceClient } from "./telemetry/BrowserPerformanceClient.js";
|
|
103
|
+
export { BrowserPerformanceMeasurement } from "./telemetry/BrowserPerformanceMeasurement.js";
|
|
104
104
|
|
|
105
105
|
// Common Object Formats
|
|
106
106
|
export {
|
|
@@ -154,6 +154,6 @@ export {
|
|
|
154
154
|
TenantProfile,
|
|
155
155
|
IPerformanceClient,
|
|
156
156
|
StubPerformanceClient,
|
|
157
|
-
} from "@azure/msal-common";
|
|
157
|
+
} from "@azure/msal-common/browser";
|
|
158
158
|
|
|
159
|
-
export { version } from "./packageMetadata";
|
|
159
|
+
export { version } from "./packageMetadata.js";
|
|
@@ -21,22 +21,23 @@ import {
|
|
|
21
21
|
PerformanceEvents,
|
|
22
22
|
AzureCloudOptions,
|
|
23
23
|
invokeAsync,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
24
|
+
StringDict,
|
|
25
|
+
} from "@azure/msal-common/browser";
|
|
26
|
+
import { BrowserConfiguration } from "../config/Configuration.js";
|
|
27
|
+
import { BrowserCacheManager } from "../cache/BrowserCacheManager.js";
|
|
28
|
+
import { EventHandler } from "../event/EventHandler.js";
|
|
29
|
+
import { EndSessionRequest } from "../request/EndSessionRequest.js";
|
|
30
|
+
import { RedirectRequest } from "../request/RedirectRequest.js";
|
|
31
|
+
import { PopupRequest } from "../request/PopupRequest.js";
|
|
32
|
+
import { SsoSilentRequest } from "../request/SsoSilentRequest.js";
|
|
33
|
+
import { version } from "../packageMetadata.js";
|
|
34
|
+
import { BrowserConstants } from "../utils/BrowserConstants.js";
|
|
35
|
+
import * as BrowserUtils from "../utils/BrowserUtils.js";
|
|
36
|
+
import { INavigationClient } from "../navigation/INavigationClient.js";
|
|
37
|
+
import { NativeMessageHandler } from "../broker/nativeBroker/NativeMessageHandler.js";
|
|
38
|
+
import { AuthenticationResult } from "../response/AuthenticationResult.js";
|
|
39
|
+
import { ClearCacheRequest } from "../request/ClearCacheRequest.js";
|
|
40
|
+
import { createNewGuid } from "../crypto/BrowserCrypto.js";
|
|
40
41
|
|
|
41
42
|
export abstract class BaseInteractionClient {
|
|
42
43
|
protected config: BrowserConfiguration;
|
|
@@ -177,15 +178,26 @@ export abstract class BaseInteractionClient {
|
|
|
177
178
|
|
|
178
179
|
/**
|
|
179
180
|
* Used to get a discovered version of the default authority.
|
|
180
|
-
* @param
|
|
181
|
-
*
|
|
182
|
-
*
|
|
181
|
+
* @param params {
|
|
182
|
+
* requestAuthority?: string;
|
|
183
|
+
* requestAzureCloudOptions?: AzureCloudOptions;
|
|
184
|
+
* requestExtraQueryParameters?: StringDict;
|
|
185
|
+
* account?: AccountInfo;
|
|
186
|
+
* }
|
|
183
187
|
*/
|
|
184
|
-
protected async getDiscoveredAuthority(
|
|
185
|
-
requestAuthority?: string
|
|
186
|
-
requestAzureCloudOptions?: AzureCloudOptions
|
|
187
|
-
|
|
188
|
-
|
|
188
|
+
protected async getDiscoveredAuthority(params: {
|
|
189
|
+
requestAuthority?: string;
|
|
190
|
+
requestAzureCloudOptions?: AzureCloudOptions;
|
|
191
|
+
requestExtraQueryParameters?: StringDict;
|
|
192
|
+
account?: AccountInfo;
|
|
193
|
+
}): Promise<Authority> {
|
|
194
|
+
const { account } = params;
|
|
195
|
+
const instanceAwareEQ =
|
|
196
|
+
params.requestExtraQueryParameters &&
|
|
197
|
+
params.requestExtraQueryParameters.hasOwnProperty("instance_aware")
|
|
198
|
+
? params.requestExtraQueryParameters["instance_aware"]
|
|
199
|
+
: undefined;
|
|
200
|
+
|
|
189
201
|
this.performanceClient.addQueueMeasurement(
|
|
190
202
|
PerformanceEvents.StandardInteractionClientGetDiscoveredAuthority,
|
|
191
203
|
this.correlationId
|
|
@@ -201,14 +213,25 @@ export abstract class BaseInteractionClient {
|
|
|
201
213
|
};
|
|
202
214
|
|
|
203
215
|
// build authority string based on auth params, precedence - azureCloudInstance + tenant >> authority
|
|
204
|
-
const
|
|
205
|
-
|
|
206
|
-
|
|
216
|
+
const resolvedAuthority =
|
|
217
|
+
params.requestAuthority || this.config.auth.authority;
|
|
218
|
+
const resolvedInstanceAware = instanceAwareEQ?.length
|
|
219
|
+
? instanceAwareEQ === "true"
|
|
220
|
+
: this.config.auth.instanceAware;
|
|
221
|
+
|
|
222
|
+
const userAuthority =
|
|
223
|
+
account && resolvedInstanceAware
|
|
224
|
+
? this.config.auth.authority.replace(
|
|
225
|
+
UrlString.getDomainFromUrl(resolvedAuthority),
|
|
226
|
+
account.environment
|
|
227
|
+
)
|
|
228
|
+
: resolvedAuthority;
|
|
207
229
|
|
|
208
230
|
// fall back to the authority from config
|
|
209
231
|
const builtAuthority = Authority.generateAuthority(
|
|
210
232
|
userAuthority,
|
|
211
|
-
requestAzureCloudOptions ||
|
|
233
|
+
params.requestAzureCloudOptions ||
|
|
234
|
+
this.config.auth.azureCloudOptions
|
|
212
235
|
);
|
|
213
236
|
const discoveredAuthority = await invokeAsync(
|
|
214
237
|
AuthorityFactory.createDiscoveredInstance,
|
|
@@ -37,44 +37,44 @@ import {
|
|
|
37
37
|
buildAccountToCache,
|
|
38
38
|
InProgressPerformanceEvent,
|
|
39
39
|
ServerTelemetryManager,
|
|
40
|
-
} from "@azure/msal-common";
|
|
41
|
-
import { BaseInteractionClient } from "./BaseInteractionClient";
|
|
42
|
-
import { BrowserConfiguration } from "../config/Configuration";
|
|
43
|
-
import { BrowserCacheManager } from "../cache/BrowserCacheManager";
|
|
44
|
-
import { EventHandler } from "../event/EventHandler";
|
|
45
|
-
import { PopupRequest } from "../request/PopupRequest";
|
|
46
|
-
import { SilentRequest } from "../request/SilentRequest";
|
|
47
|
-
import { SsoSilentRequest } from "../request/SsoSilentRequest";
|
|
48
|
-
import { NativeMessageHandler } from "../broker/nativeBroker/NativeMessageHandler";
|
|
40
|
+
} from "@azure/msal-common/browser";
|
|
41
|
+
import { BaseInteractionClient } from "./BaseInteractionClient.js";
|
|
42
|
+
import { BrowserConfiguration } from "../config/Configuration.js";
|
|
43
|
+
import { BrowserCacheManager } from "../cache/BrowserCacheManager.js";
|
|
44
|
+
import { EventHandler } from "../event/EventHandler.js";
|
|
45
|
+
import { PopupRequest } from "../request/PopupRequest.js";
|
|
46
|
+
import { SilentRequest } from "../request/SilentRequest.js";
|
|
47
|
+
import { SsoSilentRequest } from "../request/SsoSilentRequest.js";
|
|
48
|
+
import { NativeMessageHandler } from "../broker/nativeBroker/NativeMessageHandler.js";
|
|
49
49
|
import {
|
|
50
50
|
NativeExtensionMethod,
|
|
51
51
|
ApiId,
|
|
52
52
|
TemporaryCacheKeys,
|
|
53
53
|
NativeConstants,
|
|
54
54
|
BrowserConstants,
|
|
55
|
-
} from "../utils/BrowserConstants";
|
|
55
|
+
} from "../utils/BrowserConstants.js";
|
|
56
56
|
import {
|
|
57
57
|
NativeExtensionRequestBody,
|
|
58
58
|
NativeTokenRequest,
|
|
59
|
-
} from "../broker/nativeBroker/NativeRequest";
|
|
60
|
-
import { MATS, NativeResponse } from "../broker/nativeBroker/NativeResponse";
|
|
59
|
+
} from "../broker/nativeBroker/NativeRequest.js";
|
|
60
|
+
import { MATS, NativeResponse } from "../broker/nativeBroker/NativeResponse.js";
|
|
61
61
|
import {
|
|
62
62
|
NativeAuthError,
|
|
63
63
|
NativeAuthErrorCodes,
|
|
64
64
|
createNativeAuthError,
|
|
65
65
|
isFatalNativeAuthError,
|
|
66
|
-
} from "../error/NativeAuthError";
|
|
67
|
-
import { RedirectRequest } from "../request/RedirectRequest";
|
|
68
|
-
import { NavigationOptions } from "../navigation/NavigationOptions";
|
|
69
|
-
import { INavigationClient } from "../navigation/INavigationClient";
|
|
66
|
+
} from "../error/NativeAuthError.js";
|
|
67
|
+
import { RedirectRequest } from "../request/RedirectRequest.js";
|
|
68
|
+
import { NavigationOptions } from "../navigation/NavigationOptions.js";
|
|
69
|
+
import { INavigationClient } from "../navigation/INavigationClient.js";
|
|
70
70
|
import {
|
|
71
71
|
createBrowserAuthError,
|
|
72
72
|
BrowserAuthErrorCodes,
|
|
73
|
-
} from "../error/BrowserAuthError";
|
|
74
|
-
import { SilentCacheClient } from "./SilentCacheClient";
|
|
75
|
-
import { AuthenticationResult } from "../response/AuthenticationResult";
|
|
76
|
-
import { base64Decode } from "../encode/Base64Decode";
|
|
77
|
-
import { version } from "../packageMetadata";
|
|
73
|
+
} from "../error/BrowserAuthError.js";
|
|
74
|
+
import { SilentCacheClient } from "./SilentCacheClient.js";
|
|
75
|
+
import { AuthenticationResult } from "../response/AuthenticationResult.js";
|
|
76
|
+
import { base64Decode } from "../encode/Base64Decode.js";
|
|
77
|
+
import { version } from "../packageMetadata.js";
|
|
78
78
|
|
|
79
79
|
const BrokerServerParamKeys = {
|
|
80
80
|
BROKER_CLIENT_ID: "brk_client_id",
|
|
@@ -505,7 +505,9 @@ export class NativeInteractionClient extends BaseInteractionClient {
|
|
|
505
505
|
}
|
|
506
506
|
|
|
507
507
|
// Get the preferred_cache domain for the given authority
|
|
508
|
-
const authority = await this.getDiscoveredAuthority(
|
|
508
|
+
const authority = await this.getDiscoveredAuthority({
|
|
509
|
+
requestAuthority: request.authority,
|
|
510
|
+
});
|
|
509
511
|
|
|
510
512
|
const baseAccount = buildAccountToCache(
|
|
511
513
|
this.browserStorage,
|
|
@@ -905,18 +907,19 @@ export class NativeInteractionClient extends BaseInteractionClient {
|
|
|
905
907
|
"NativeInteractionClient - initializeNativeRequest called"
|
|
906
908
|
);
|
|
907
909
|
|
|
908
|
-
const
|
|
910
|
+
const requestAuthority =
|
|
911
|
+
request.authority || this.config.auth.authority;
|
|
909
912
|
|
|
910
913
|
if (request.account) {
|
|
911
914
|
// validate authority
|
|
912
|
-
await this.getDiscoveredAuthority(
|
|
913
|
-
|
|
914
|
-
request.azureCloudOptions,
|
|
915
|
-
request.account
|
|
916
|
-
);
|
|
915
|
+
await this.getDiscoveredAuthority({
|
|
916
|
+
requestAuthority,
|
|
917
|
+
requestAzureCloudOptions: request.azureCloudOptions,
|
|
918
|
+
account: request.account,
|
|
919
|
+
});
|
|
917
920
|
}
|
|
918
921
|
|
|
919
|
-
const canonicalAuthority = new UrlString(
|
|
922
|
+
const canonicalAuthority = new UrlString(requestAuthority);
|
|
920
923
|
canonicalAuthority.validateAsUri();
|
|
921
924
|
|
|
922
925
|
// scopes are expected to be received by the native broker as "scope" and will be added to the request below. Other properties that should be dropped from the request to the native broker can be included in the object destructuring here.
|