@azure/msal-browser
Advanced tools
Comparing version 3.23.0 to 3.24.0
@@ -1,17 +0,17 @@ | ||
import { AccountFilter, AccountInfo, Logger, PerformanceCallbackFunction } from "@azure/msal-common"; | ||
import { RedirectRequest } from "../request/RedirectRequest"; | ||
import { PopupRequest } from "../request/PopupRequest"; | ||
import { SilentRequest } from "../request/SilentRequest"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest"; | ||
import { EndSessionRequest } from "../request/EndSessionRequest"; | ||
import { WrapperSKU } from "../utils/BrowserConstants"; | ||
import { INavigationClient } from "../navigation/INavigationClient"; | ||
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest"; | ||
import { ITokenCache } from "../cache/ITokenCache"; | ||
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest"; | ||
import { BrowserConfiguration } from "../config/Configuration"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
import { EventCallbackFunction } from "../event/EventMessage"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest"; | ||
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest"; | ||
import { AccountFilter, AccountInfo, Logger, PerformanceCallbackFunction } from "@azure/msal-common/browser"; | ||
import { RedirectRequest } from "../request/RedirectRequest.js"; | ||
import { PopupRequest } from "../request/PopupRequest.js"; | ||
import { SilentRequest } from "../request/SilentRequest.js"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest.js"; | ||
import { EndSessionRequest } from "../request/EndSessionRequest.js"; | ||
import { WrapperSKU } from "../utils/BrowserConstants.js"; | ||
import { INavigationClient } from "../navigation/INavigationClient.js"; | ||
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest.js"; | ||
import { ITokenCache } from "../cache/ITokenCache.js"; | ||
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest.js"; | ||
import { BrowserConfiguration } from "../config/Configuration.js"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
import { EventCallbackFunction } from "../event/EventMessage.js"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest.js"; | ||
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest.js"; | ||
export interface IPublicClientApplication { | ||
@@ -18,0 +18,0 @@ initialize(request?: InitializeApplicationRequest): Promise<void>; |
@@ -1,19 +0,19 @@ | ||
import { ITokenCache } from "../cache/ITokenCache"; | ||
import { INavigationClient } from "../navigation/INavigationClient"; | ||
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest"; | ||
import { PopupRequest } from "../request/PopupRequest"; | ||
import { RedirectRequest } from "../request/RedirectRequest"; | ||
import { SilentRequest } from "../request/SilentRequest"; | ||
import { WrapperSKU } from "../utils/BrowserConstants"; | ||
import { IPublicClientApplication } from "./IPublicClientApplication"; | ||
import { IController } from "../controllers/IController"; | ||
import { PerformanceCallbackFunction, AccountInfo, AccountFilter, Logger } from "@azure/msal-common"; | ||
import { EndSessionRequest } from "../request/EndSessionRequest"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest"; | ||
import { BrowserConfiguration, Configuration } from "../config/Configuration"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
import { EventCallbackFunction } from "../event/EventMessage"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest"; | ||
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest"; | ||
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest"; | ||
import { ITokenCache } from "../cache/ITokenCache.js"; | ||
import { INavigationClient } from "../navigation/INavigationClient.js"; | ||
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest.js"; | ||
import { PopupRequest } from "../request/PopupRequest.js"; | ||
import { RedirectRequest } from "../request/RedirectRequest.js"; | ||
import { SilentRequest } from "../request/SilentRequest.js"; | ||
import { WrapperSKU } from "../utils/BrowserConstants.js"; | ||
import { IPublicClientApplication } from "./IPublicClientApplication.js"; | ||
import { IController } from "../controllers/IController.js"; | ||
import { PerformanceCallbackFunction, AccountInfo, AccountFilter, Logger } from "@azure/msal-common/browser"; | ||
import { EndSessionRequest } from "../request/EndSessionRequest.js"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest.js"; | ||
import { BrowserConfiguration, Configuration } from "../config/Configuration.js"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
import { EventCallbackFunction } from "../event/EventMessage.js"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest.js"; | ||
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest.js"; | ||
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest.js"; | ||
/** | ||
@@ -20,0 +20,0 @@ * The PublicClientApplication class is the object exposed by the library to perform authentication and authorization functions in Single Page Applications |
@@ -1,17 +0,17 @@ | ||
import { ITokenCache } from "../cache/ITokenCache"; | ||
import { INavigationClient } from "../navigation/INavigationClient"; | ||
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest"; | ||
import { PopupRequest } from "../request/PopupRequest"; | ||
import { RedirectRequest } from "../request/RedirectRequest"; | ||
import { SilentRequest } from "../request/SilentRequest"; | ||
import { WrapperSKU } from "../utils/BrowserConstants"; | ||
import { IPublicClientApplication } from "./IPublicClientApplication"; | ||
import { IController } from "../controllers/IController"; | ||
import { PerformanceCallbackFunction, AccountInfo, AccountFilter, Logger } from "@azure/msal-common"; | ||
import { EndSessionRequest } from "../request/EndSessionRequest"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest"; | ||
import { BrowserConfiguration, Configuration } from "../config/Configuration"; | ||
import { EventCallbackFunction } from "../event/EventMessage"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
import { ITokenCache } from "../cache/ITokenCache.js"; | ||
import { INavigationClient } from "../navigation/INavigationClient.js"; | ||
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest.js"; | ||
import { PopupRequest } from "../request/PopupRequest.js"; | ||
import { RedirectRequest } from "../request/RedirectRequest.js"; | ||
import { SilentRequest } from "../request/SilentRequest.js"; | ||
import { WrapperSKU } from "../utils/BrowserConstants.js"; | ||
import { IPublicClientApplication } from "./IPublicClientApplication.js"; | ||
import { IController } from "../controllers/IController.js"; | ||
import { PerformanceCallbackFunction, AccountInfo, AccountFilter, Logger } from "@azure/msal-common/browser"; | ||
import { EndSessionRequest } from "../request/EndSessionRequest.js"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest.js"; | ||
import { BrowserConfiguration, Configuration } from "../config/Configuration.js"; | ||
import { EventCallbackFunction } from "../event/EventMessage.js"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest.js"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
/** | ||
@@ -18,0 +18,0 @@ * PublicClientNext is an early look at the planned implementation of PublicClientApplication in the next major version of MSAL.js. |
@@ -1,4 +0,4 @@ | ||
import { Logger, AuthenticationScheme, IPerformanceClient } from "@azure/msal-common"; | ||
import { NativeExtensionRequestBody } from "./NativeRequest"; | ||
import { BrowserConfiguration } from "../../config/Configuration"; | ||
import { Logger, AuthenticationScheme, IPerformanceClient } from "@azure/msal-common/browser"; | ||
import { NativeExtensionRequestBody } from "./NativeRequest.js"; | ||
import { BrowserConfiguration } from "../../config/Configuration.js"; | ||
export declare class NativeMessageHandler { | ||
@@ -5,0 +5,0 @@ private extensionId; |
@@ -1,3 +0,3 @@ | ||
import { NativeExtensionMethod } from "../../utils/BrowserConstants"; | ||
import { StoreInCache, StringDict } from "@azure/msal-common"; | ||
import { NativeExtensionMethod } from "../../utils/BrowserConstants.js"; | ||
import { StoreInCache, StringDict } from "@azure/msal-common/browser"; | ||
/** | ||
@@ -4,0 +4,0 @@ * Token request which native broker will use to acquire tokens |
@@ -1,3 +0,3 @@ | ||
import { AccountInfo, AccountFilter, Logger } from "@azure/msal-common"; | ||
import { BrowserCacheManager } from "./BrowserCacheManager"; | ||
import { AccountInfo, AccountFilter, Logger } from "@azure/msal-common/browser"; | ||
import { BrowserCacheManager } from "./BrowserCacheManager.js"; | ||
/** | ||
@@ -4,0 +4,0 @@ * Returns all the accounts in the cache that match the optional filter. If no filter is provided, all accounts are returned. |
@@ -1,3 +0,3 @@ | ||
import { Logger } from "@azure/msal-common"; | ||
import { IAsyncStorage } from "./IAsyncStorage"; | ||
import { Logger } from "@azure/msal-common/browser"; | ||
import { IAsyncStorage } from "./IAsyncStorage.js"; | ||
/** | ||
@@ -4,0 +4,0 @@ * This class allows MSAL to store artifacts asynchronously using the DatabaseStorage IndexedDB wrapper, |
@@ -1,12 +0,12 @@ | ||
import { CommonAuthorizationCodeRequest, ICrypto, AccountEntity, IdTokenEntity, AccessTokenEntity, RefreshTokenEntity, AppMetadataEntity, CacheManager, ServerTelemetryEntity, ThrottlingEntity, Logger, AuthorityMetadataEntity, AccountInfo, ValidCredentialType, TokenKeys, CredentialType, CacheRecord, IPerformanceClient, StaticAuthorityOptions, StoreInCache } from "@azure/msal-common"; | ||
import { CacheOptions } from "../config/Configuration"; | ||
import { BrowserCacheLocation, InteractionType } from "../utils/BrowserConstants"; | ||
import { MemoryStorage } from "./MemoryStorage"; | ||
import { IWindowStorage } from "./IWindowStorage"; | ||
import { NativeTokenRequest } from "../broker/nativeBroker/NativeRequest"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
import { SilentRequest } from "../request/SilentRequest"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest"; | ||
import { RedirectRequest } from "../request/RedirectRequest"; | ||
import { PopupRequest } from "../request/PopupRequest"; | ||
import { CommonAuthorizationCodeRequest, ICrypto, AccountEntity, IdTokenEntity, AccessTokenEntity, RefreshTokenEntity, AppMetadataEntity, CacheManager, ServerTelemetryEntity, ThrottlingEntity, Logger, AuthorityMetadataEntity, AccountInfo, ValidCredentialType, TokenKeys, CredentialType, CacheRecord, IPerformanceClient, StaticAuthorityOptions, StoreInCache } from "@azure/msal-common/browser"; | ||
import { CacheOptions } from "../config/Configuration.js"; | ||
import { BrowserCacheLocation, InteractionType } from "../utils/BrowserConstants.js"; | ||
import { MemoryStorage } from "./MemoryStorage.js"; | ||
import { IWindowStorage } from "./IWindowStorage.js"; | ||
import { NativeTokenRequest } from "../broker/nativeBroker/NativeRequest.js"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
import { SilentRequest } from "../request/SilentRequest.js"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest.js"; | ||
import { RedirectRequest } from "../request/RedirectRequest.js"; | ||
import { PopupRequest } from "../request/PopupRequest.js"; | ||
/** | ||
@@ -13,0 +13,0 @@ * This class implements the cache storage interface for MSAL through browser local or session storage. |
@@ -1,2 +0,2 @@ | ||
import { IWindowStorage } from "./IWindowStorage"; | ||
import { IWindowStorage } from "./IWindowStorage.js"; | ||
export declare class BrowserStorage implements IWindowStorage<string> { | ||
@@ -3,0 +3,0 @@ private windowStorage; |
@@ -1,2 +0,2 @@ | ||
import { IAsyncStorage } from "./IAsyncStorage"; | ||
import { IAsyncStorage } from "./IAsyncStorage.js"; | ||
/** | ||
@@ -3,0 +3,0 @@ * Storage wrapper for IndexedDB storage in browsers: https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API |
@@ -1,5 +0,5 @@ | ||
import { ExternalTokenResponse } from "@azure/msal-common"; | ||
import { SilentRequest } from "../request/SilentRequest"; | ||
import { LoadTokenOptions } from "./TokenCache"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
import { ExternalTokenResponse } from "@azure/msal-common/browser"; | ||
import { SilentRequest } from "../request/SilentRequest.js"; | ||
import { LoadTokenOptions } from "./TokenCache.js"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
export interface ITokenCache { | ||
@@ -6,0 +6,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { IWindowStorage } from "./IWindowStorage"; | ||
import { IWindowStorage } from "./IWindowStorage.js"; | ||
export declare class MemoryStorage<T> implements IWindowStorage<T> { | ||
@@ -3,0 +3,0 @@ private cache; |
@@ -1,7 +0,7 @@ | ||
import { ICrypto, Logger, ExternalTokenResponse } from "@azure/msal-common"; | ||
import { BrowserConfiguration } from "../config/Configuration"; | ||
import { SilentRequest } from "../request/SilentRequest"; | ||
import { BrowserCacheManager } from "./BrowserCacheManager"; | ||
import { ITokenCache } from "./ITokenCache"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
import { ICrypto, Logger, ExternalTokenResponse } from "@azure/msal-common/browser"; | ||
import { BrowserConfiguration } from "../config/Configuration.js"; | ||
import { SilentRequest } from "../request/SilentRequest.js"; | ||
import { BrowserCacheManager } from "./BrowserCacheManager.js"; | ||
import { ITokenCache } from "./ITokenCache.js"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
export type LoadTokenOptions = { | ||
@@ -8,0 +8,0 @@ clientInfo?: string; |
@@ -1,4 +0,4 @@ | ||
import { SystemOptions, LoggerOptions, INetworkModule, ProtocolMode, OIDCOptions, AzureCloudOptions, ApplicationTelemetry, IPerformanceClient } from "@azure/msal-common"; | ||
import { BrowserCacheLocation } from "../utils/BrowserConstants"; | ||
import { INavigationClient } from "../navigation/INavigationClient"; | ||
import { SystemOptions, LoggerOptions, INetworkModule, ProtocolMode, OIDCOptions, AzureCloudOptions, ApplicationTelemetry, IPerformanceClient } from "@azure/msal-common/browser"; | ||
import { BrowserCacheLocation } from "../utils/BrowserConstants.js"; | ||
import { INavigationClient } from "../navigation/INavigationClient.js"; | ||
export declare const DEFAULT_POPUP_TIMEOUT_MS = 60000; | ||
@@ -74,2 +74,6 @@ export declare const DEFAULT_IFRAME_TIMEOUT_MS = 10000; | ||
onRedirectNavigate?: (url: string) => boolean | void; | ||
/** | ||
* Flag of whether the STS will send back additional parameters to specify where the tokens should be retrieved from. | ||
*/ | ||
instanceAware?: boolean; | ||
}; | ||
@@ -76,0 +80,0 @@ /** @internal */ |
@@ -1,6 +0,6 @@ | ||
import { IController } from "./IController"; | ||
import { Configuration } from "../config/Configuration"; | ||
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest"; | ||
import { IController } from "./IController.js"; | ||
import { Configuration } from "../config/Configuration.js"; | ||
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest.js"; | ||
export declare function createV3Controller(config: Configuration, request?: InitializeApplicationRequest): Promise<IController>; | ||
export declare function createController(config: Configuration): Promise<IController | null>; | ||
//# sourceMappingURL=ControllerFactory.d.ts.map |
@@ -1,18 +0,18 @@ | ||
import { AccountInfo, Logger, PerformanceCallbackFunction, IPerformanceClient, AccountFilter } from "@azure/msal-common"; | ||
import { RedirectRequest } from "../request/RedirectRequest"; | ||
import { PopupRequest } from "../request/PopupRequest"; | ||
import { SilentRequest } from "../request/SilentRequest"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest"; | ||
import { EndSessionRequest } from "../request/EndSessionRequest"; | ||
import { ApiId, WrapperSKU } from "../utils/BrowserConstants"; | ||
import { INavigationClient } from "../navigation/INavigationClient"; | ||
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest"; | ||
import { ITokenCache } from "../cache/ITokenCache"; | ||
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest"; | ||
import { BrowserConfiguration } from "../config/Configuration"; | ||
import { EventHandler } from "../event/EventHandler"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
import { EventCallbackFunction } from "../event/EventMessage"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest"; | ||
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest"; | ||
import { AccountInfo, Logger, PerformanceCallbackFunction, IPerformanceClient, AccountFilter } from "@azure/msal-common/browser"; | ||
import { RedirectRequest } from "../request/RedirectRequest.js"; | ||
import { PopupRequest } from "../request/PopupRequest.js"; | ||
import { SilentRequest } from "../request/SilentRequest.js"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest.js"; | ||
import { EndSessionRequest } from "../request/EndSessionRequest.js"; | ||
import { ApiId, WrapperSKU } from "../utils/BrowserConstants.js"; | ||
import { INavigationClient } from "../navigation/INavigationClient.js"; | ||
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest.js"; | ||
import { ITokenCache } from "../cache/ITokenCache.js"; | ||
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest.js"; | ||
import { BrowserConfiguration } from "../config/Configuration.js"; | ||
import { EventHandler } from "../event/EventHandler.js"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
import { EventCallbackFunction } from "../event/EventMessage.js"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest.js"; | ||
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest.js"; | ||
export interface IController { | ||
@@ -19,0 +19,0 @@ initialize(request?: InitializeApplicationRequest): Promise<void>; |
@@ -1,22 +0,22 @@ | ||
import { CommonAuthorizationUrlRequest, CommonSilentFlowRequest, PerformanceCallbackFunction, AccountInfo, Logger, ICrypto, IPerformanceClient, AccountFilter } from "@azure/msal-common"; | ||
import { ITokenCache } from "../cache/ITokenCache"; | ||
import { BrowserConfiguration } from "../config/Configuration"; | ||
import { INavigationClient } from "../navigation/INavigationClient"; | ||
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest"; | ||
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest"; | ||
import { EndSessionRequest } from "../request/EndSessionRequest"; | ||
import { PopupRequest } from "../request/PopupRequest"; | ||
import { RedirectRequest } from "../request/RedirectRequest"; | ||
import { SilentRequest } from "../request/SilentRequest"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest"; | ||
import { ApiId, WrapperSKU } from "../utils/BrowserConstants"; | ||
import { IController } from "./IController"; | ||
import { NestedAppOperatingContext } from "../operatingcontext/NestedAppOperatingContext"; | ||
import { IBridgeProxy } from "../naa/IBridgeProxy"; | ||
import { NestedAppAuthAdapter } from "../naa/mapping/NestedAppAuthAdapter"; | ||
import { EventHandler } from "../event/EventHandler"; | ||
import { EventCallbackFunction } from "../event/EventMessage"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
import { BrowserCacheManager } from "../cache/BrowserCacheManager"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest"; | ||
import { CommonAuthorizationUrlRequest, CommonSilentFlowRequest, PerformanceCallbackFunction, AccountInfo, Logger, ICrypto, IPerformanceClient, AccountFilter } from "@azure/msal-common/browser"; | ||
import { ITokenCache } from "../cache/ITokenCache.js"; | ||
import { BrowserConfiguration } from "../config/Configuration.js"; | ||
import { INavigationClient } from "../navigation/INavigationClient.js"; | ||
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest.js"; | ||
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest.js"; | ||
import { EndSessionRequest } from "../request/EndSessionRequest.js"; | ||
import { PopupRequest } from "../request/PopupRequest.js"; | ||
import { RedirectRequest } from "../request/RedirectRequest.js"; | ||
import { SilentRequest } from "../request/SilentRequest.js"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest.js"; | ||
import { ApiId, WrapperSKU } from "../utils/BrowserConstants.js"; | ||
import { IController } from "./IController.js"; | ||
import { NestedAppOperatingContext } from "../operatingcontext/NestedAppOperatingContext.js"; | ||
import { IBridgeProxy } from "../naa/IBridgeProxy.js"; | ||
import { NestedAppAuthAdapter } from "../naa/mapping/NestedAppAuthAdapter.js"; | ||
import { EventHandler } from "../event/EventHandler.js"; | ||
import { EventCallbackFunction } from "../event/EventMessage.js"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
import { BrowserCacheManager } from "../cache/BrowserCacheManager.js"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest.js"; | ||
export declare class NestedAppAuthController implements IController { | ||
@@ -23,0 +23,0 @@ protected readonly operatingContext: NestedAppOperatingContext; |
@@ -1,29 +0,29 @@ | ||
import { AccountInfo, INetworkModule, Logger, CommonSilentFlowRequest, ICrypto, PerformanceCallbackFunction, IPerformanceClient, BaseAuthRequest, AccountFilter } from "@azure/msal-common"; | ||
import { BrowserCacheManager } from "../cache/BrowserCacheManager"; | ||
import { BrowserConfiguration } from "../config/Configuration"; | ||
import { ApiId, WrapperSKU, CacheLookupPolicy } from "../utils/BrowserConstants"; | ||
import { RedirectRequest } from "../request/RedirectRequest"; | ||
import { PopupRequest } from "../request/PopupRequest"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest"; | ||
import { EventCallbackFunction } from "../event/EventMessage"; | ||
import { EndSessionRequest } from "../request/EndSessionRequest"; | ||
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest"; | ||
import { INavigationClient } from "../navigation/INavigationClient"; | ||
import { EventHandler } from "../event/EventHandler"; | ||
import { PopupClient } from "../interaction_client/PopupClient"; | ||
import { RedirectClient } from "../interaction_client/RedirectClient"; | ||
import { SilentIframeClient } from "../interaction_client/SilentIframeClient"; | ||
import { SilentRefreshClient } from "../interaction_client/SilentRefreshClient"; | ||
import { ITokenCache } from "../cache/ITokenCache"; | ||
import { NativeMessageHandler } from "../broker/nativeBroker/NativeMessageHandler"; | ||
import { SilentRequest } from "../request/SilentRequest"; | ||
import { SilentCacheClient } from "../interaction_client/SilentCacheClient"; | ||
import { SilentAuthCodeClient } from "../interaction_client/SilentAuthCodeClient"; | ||
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest"; | ||
import { StandardOperatingContext } from "../operatingcontext/StandardOperatingContext"; | ||
import { BaseOperatingContext } from "../operatingcontext/BaseOperatingContext"; | ||
import { IController } from "./IController"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest"; | ||
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest"; | ||
import { AccountInfo, INetworkModule, Logger, CommonSilentFlowRequest, ICrypto, PerformanceCallbackFunction, IPerformanceClient, BaseAuthRequest, AccountFilter } from "@azure/msal-common/browser"; | ||
import { BrowserCacheManager } from "../cache/BrowserCacheManager.js"; | ||
import { BrowserConfiguration } from "../config/Configuration.js"; | ||
import { ApiId, WrapperSKU, CacheLookupPolicy } from "../utils/BrowserConstants.js"; | ||
import { RedirectRequest } from "../request/RedirectRequest.js"; | ||
import { PopupRequest } from "../request/PopupRequest.js"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest.js"; | ||
import { EventCallbackFunction } from "../event/EventMessage.js"; | ||
import { EndSessionRequest } from "../request/EndSessionRequest.js"; | ||
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest.js"; | ||
import { INavigationClient } from "../navigation/INavigationClient.js"; | ||
import { EventHandler } from "../event/EventHandler.js"; | ||
import { PopupClient } from "../interaction_client/PopupClient.js"; | ||
import { RedirectClient } from "../interaction_client/RedirectClient.js"; | ||
import { SilentIframeClient } from "../interaction_client/SilentIframeClient.js"; | ||
import { SilentRefreshClient } from "../interaction_client/SilentRefreshClient.js"; | ||
import { ITokenCache } from "../cache/ITokenCache.js"; | ||
import { NativeMessageHandler } from "../broker/nativeBroker/NativeMessageHandler.js"; | ||
import { SilentRequest } from "../request/SilentRequest.js"; | ||
import { SilentCacheClient } from "../interaction_client/SilentCacheClient.js"; | ||
import { SilentAuthCodeClient } from "../interaction_client/SilentAuthCodeClient.js"; | ||
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest.js"; | ||
import { StandardOperatingContext } from "../operatingcontext/StandardOperatingContext.js"; | ||
import { BaseOperatingContext } from "../operatingcontext/BaseOperatingContext.js"; | ||
import { IController } from "./IController.js"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest.js"; | ||
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest.js"; | ||
export declare class StandardController implements IController { | ||
@@ -30,0 +30,0 @@ protected readonly operatingContext: StandardOperatingContext; |
@@ -1,20 +0,20 @@ | ||
import { CommonAuthorizationUrlRequest, CommonSilentFlowRequest, PerformanceCallbackFunction, AccountInfo, Logger, ICrypto, IPerformanceClient, AccountFilter } from "@azure/msal-common"; | ||
import { ITokenCache } from "../cache/ITokenCache"; | ||
import { BrowserConfiguration } from "../config/Configuration"; | ||
import { BrowserCacheManager } from "../cache/BrowserCacheManager"; | ||
import { INavigationClient } from "../navigation/INavigationClient"; | ||
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest"; | ||
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest"; | ||
import { EndSessionRequest } from "../request/EndSessionRequest"; | ||
import { PopupRequest } from "../request/PopupRequest"; | ||
import { RedirectRequest } from "../request/RedirectRequest"; | ||
import { SilentRequest } from "../request/SilentRequest"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
import { ApiId, WrapperSKU } from "../utils/BrowserConstants"; | ||
import { IController } from "./IController"; | ||
import { UnknownOperatingContext } from "../operatingcontext/UnknownOperatingContext"; | ||
import { EventHandler } from "../event/EventHandler"; | ||
import { EventCallbackFunction } from "../event/EventMessage"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest"; | ||
import { CommonAuthorizationUrlRequest, CommonSilentFlowRequest, PerformanceCallbackFunction, AccountInfo, Logger, ICrypto, IPerformanceClient, AccountFilter } from "@azure/msal-common/browser"; | ||
import { ITokenCache } from "../cache/ITokenCache.js"; | ||
import { BrowserConfiguration } from "../config/Configuration.js"; | ||
import { BrowserCacheManager } from "../cache/BrowserCacheManager.js"; | ||
import { INavigationClient } from "../navigation/INavigationClient.js"; | ||
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest.js"; | ||
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest.js"; | ||
import { EndSessionRequest } from "../request/EndSessionRequest.js"; | ||
import { PopupRequest } from "../request/PopupRequest.js"; | ||
import { RedirectRequest } from "../request/RedirectRequest.js"; | ||
import { SilentRequest } from "../request/SilentRequest.js"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest.js"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
import { ApiId, WrapperSKU } from "../utils/BrowserConstants.js"; | ||
import { IController } from "./IController.js"; | ||
import { UnknownOperatingContext } from "../operatingcontext/UnknownOperatingContext.js"; | ||
import { EventHandler } from "../event/EventHandler.js"; | ||
import { EventCallbackFunction } from "../event/EventMessage.js"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest.js"; | ||
/** | ||
@@ -21,0 +21,0 @@ * UnknownOperatingContextController class |
@@ -1,2 +0,2 @@ | ||
import { IPerformanceClient, Logger } from "@azure/msal-common"; | ||
import { IPerformanceClient, Logger } from "@azure/msal-common/browser"; | ||
/** | ||
@@ -3,0 +3,0 @@ * Check whether browser crypto is available. |
@@ -1,2 +0,2 @@ | ||
import { ICrypto, IPerformanceClient, Logger, ShrOptions, SignedHttpRequest, SignedHttpRequestParameters } from "@azure/msal-common"; | ||
import { ICrypto, IPerformanceClient, Logger, ShrOptions, SignedHttpRequest, SignedHttpRequestParameters } from "@azure/msal-common/browser"; | ||
export type CachedKeyPair = { | ||
@@ -3,0 +3,0 @@ publicKey: CryptoKey; |
@@ -1,2 +0,2 @@ | ||
import { IPerformanceClient, Logger, PkceCodes } from "@azure/msal-common"; | ||
import { IPerformanceClient, Logger, PkceCodes } from "@azure/msal-common/browser"; | ||
/** | ||
@@ -3,0 +3,0 @@ * This file defines APIs to generate PKCE codes and code verifiers. |
@@ -1,2 +0,2 @@ | ||
import { LoggerOptions, SignedHttpRequestParameters } from "@azure/msal-common"; | ||
import { LoggerOptions, SignedHttpRequestParameters } from "@azure/msal-common/browser"; | ||
export type SignedHttpRequestOptions = { | ||
@@ -3,0 +3,0 @@ loggerOptions: LoggerOptions; |
@@ -1,3 +0,3 @@ | ||
import { AuthError } from "@azure/msal-common"; | ||
import * as BrowserAuthErrorCodes from "./BrowserAuthErrorCodes"; | ||
import { AuthError } from "@azure/msal-common/browser"; | ||
import * as BrowserAuthErrorCodes from "./BrowserAuthErrorCodes.js"; | ||
export { BrowserAuthErrorCodes }; | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import { AuthError } from "@azure/msal-common"; | ||
import * as BrowserConfigurationAuthErrorCodes from "./BrowserConfigurationAuthErrorCodes"; | ||
import { AuthError } from "@azure/msal-common/browser"; | ||
import * as BrowserConfigurationAuthErrorCodes from "./BrowserConfigurationAuthErrorCodes.js"; | ||
export { BrowserConfigurationAuthErrorCodes }; | ||
@@ -4,0 +4,0 @@ export declare const BrowserConfigurationAuthErrorMessages: { |
@@ -1,3 +0,3 @@ | ||
import { AuthError } from "@azure/msal-common"; | ||
import * as NativeAuthErrorCodes from "./NativeAuthErrorCodes"; | ||
import { AuthError } from "@azure/msal-common/browser"; | ||
import * as NativeAuthErrorCodes from "./NativeAuthErrorCodes.js"; | ||
export { NativeAuthErrorCodes }; | ||
@@ -4,0 +4,0 @@ export type OSError = { |
@@ -1,2 +0,2 @@ | ||
import { AuthError } from "@azure/msal-common"; | ||
import { AuthError } from "@azure/msal-common/browser"; | ||
/** | ||
@@ -3,0 +3,0 @@ * NestedAppAuthErrorMessage class containing string constants used by error codes and messages. |
@@ -1,5 +0,5 @@ | ||
import { ICrypto, Logger } from "@azure/msal-common"; | ||
import { InteractionType } from "../utils/BrowserConstants"; | ||
import { EventCallbackFunction, EventError, EventPayload } from "./EventMessage"; | ||
import { EventType } from "./EventType"; | ||
import { ICrypto, Logger } from "@azure/msal-common/browser"; | ||
import { InteractionType } from "../utils/BrowserConstants.js"; | ||
import { EventCallbackFunction, EventError, EventPayload } from "./EventMessage.js"; | ||
import { EventType } from "./EventType.js"; | ||
export declare class EventHandler { | ||
@@ -6,0 +6,0 @@ private eventCallbacks; |
@@ -1,5 +0,10 @@ | ||
import { AuthError, AccountInfo } from "@azure/msal-common"; | ||
import { EventType } from "./EventType"; | ||
import { InteractionStatus, InteractionType } from "../utils/BrowserConstants"; | ||
import { PopupRequest, RedirectRequest, SilentRequest, SsoSilentRequest, EndSessionRequest, AuthenticationResult } from ".."; | ||
import { AuthError, AccountInfo } from "@azure/msal-common/browser"; | ||
import { EventType } from "./EventType.js"; | ||
import { InteractionStatus, InteractionType } from "../utils/BrowserConstants.js"; | ||
import { PopupRequest } from "../request/PopupRequest.js"; | ||
import { RedirectRequest } from "../request/RedirectRequest.js"; | ||
import { SilentRequest } from "../request/SilentRequest.js"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest.js"; | ||
import { EndSessionRequest } from "../request/EndSessionRequest.js"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
export type EventMessage = { | ||
@@ -6,0 +11,0 @@ eventType: EventType; |
@@ -5,38 +5,38 @@ /** | ||
*/ | ||
import * as BrowserUtils from "./utils/BrowserUtils"; | ||
import * as BrowserUtils from "./utils/BrowserUtils.js"; | ||
export { BrowserUtils }; | ||
export { PublicClientApplication, createNestablePublicClientApplication, createStandardPublicClientApplication, } from "./app/PublicClientApplication"; | ||
export { PublicClientNext } from "./app/PublicClientNext"; | ||
export { IController } from "./controllers/IController"; | ||
export { Configuration, BrowserAuthOptions, CacheOptions, BrowserSystemOptions, BrowserTelemetryOptions, BrowserConfiguration, DEFAULT_IFRAME_TIMEOUT_MS, } from "./config/Configuration"; | ||
export { InteractionType, InteractionStatus, BrowserCacheLocation, WrapperSKU, ApiId, CacheLookupPolicy, } from "./utils/BrowserConstants"; | ||
export { BrowserAuthError, BrowserAuthErrorMessage, BrowserAuthErrorCodes, } from "./error/BrowserAuthError"; | ||
export { BrowserConfigurationAuthError, BrowserConfigurationAuthErrorCodes, BrowserConfigurationAuthErrorMessage, } from "./error/BrowserConfigurationAuthError"; | ||
export { IPublicClientApplication, stubbedPublicClientApplication, } from "./app/IPublicClientApplication"; | ||
export { INavigationClient } from "./navigation/INavigationClient"; | ||
export { NavigationClient } from "./navigation/NavigationClient"; | ||
export { NavigationOptions } from "./navigation/NavigationOptions"; | ||
export { PopupRequest } from "./request/PopupRequest"; | ||
export { RedirectRequest } from "./request/RedirectRequest"; | ||
export { SilentRequest } from "./request/SilentRequest"; | ||
export { SsoSilentRequest } from "./request/SsoSilentRequest"; | ||
export { EndSessionRequest } from "./request/EndSessionRequest"; | ||
export { EndSessionPopupRequest } from "./request/EndSessionPopupRequest"; | ||
export { AuthorizationUrlRequest } from "./request/AuthorizationUrlRequest"; | ||
export { AuthorizationCodeRequest } from "./request/AuthorizationCodeRequest"; | ||
export { AuthenticationResult } from "./response/AuthenticationResult"; | ||
export { ClearCacheRequest } from "./request/ClearCacheRequest"; | ||
export { InitializeApplicationRequest } from "./request/InitializeApplicationRequest"; | ||
export { LoadTokenOptions } from "./cache/TokenCache"; | ||
export { ITokenCache } from "./cache/ITokenCache"; | ||
export { MemoryStorage } from "./cache/MemoryStorage"; | ||
export { BrowserStorage } from "./cache/BrowserStorage"; | ||
export { EventMessage, EventPayload, EventError, EventCallbackFunction, EventMessageUtils, PopupEvent, } from "./event/EventMessage"; | ||
export { EventType } from "./event/EventType"; | ||
export { SignedHttpRequest, SignedHttpRequestOptions, } from "./crypto/SignedHttpRequest"; | ||
export { PopupWindowAttributes, PopupSize, PopupPosition, } from "./request/PopupWindowAttributes"; | ||
export { BrowserPerformanceClient } from "./telemetry/BrowserPerformanceClient"; | ||
export { BrowserPerformanceMeasurement } from "./telemetry/BrowserPerformanceMeasurement"; | ||
export { AuthenticationScheme, AccountInfo, AccountEntity, IdTokenClaims, AuthError, AuthErrorCodes, AuthErrorMessage, ClientAuthError, ClientAuthErrorCodes, ClientAuthErrorMessage, ClientConfigurationError, ClientConfigurationErrorCodes, ClientConfigurationErrorMessage, InteractionRequiredAuthError, InteractionRequiredAuthErrorCodes, InteractionRequiredAuthErrorMessage, ServerError, INetworkModule, NetworkResponse, NetworkRequestOptions, ILoggerCallback, Logger, LogLevel, ProtocolMode, ServerResponseType, PromptValue, ExternalTokenResponse, StringUtils, UrlString, JsonWebTokenTypes, AzureCloudInstance, AzureCloudOptions, AuthenticationHeaderParser, OIDC_DEFAULT_SCOPES, PerformanceCallbackFunction, PerformanceEvent, PerformanceEvents, InProgressPerformanceEvent, TenantProfile, IPerformanceClient, StubPerformanceClient, } from "@azure/msal-common"; | ||
export { version } from "./packageMetadata"; | ||
export { PublicClientApplication, createNestablePublicClientApplication, createStandardPublicClientApplication, } from "./app/PublicClientApplication.js"; | ||
export { PublicClientNext } from "./app/PublicClientNext.js"; | ||
export { IController } from "./controllers/IController.js"; | ||
export { Configuration, BrowserAuthOptions, CacheOptions, BrowserSystemOptions, BrowserTelemetryOptions, BrowserConfiguration, DEFAULT_IFRAME_TIMEOUT_MS, } from "./config/Configuration.js"; | ||
export { InteractionType, InteractionStatus, BrowserCacheLocation, WrapperSKU, ApiId, CacheLookupPolicy, } from "./utils/BrowserConstants.js"; | ||
export { BrowserAuthError, BrowserAuthErrorMessage, BrowserAuthErrorCodes, } from "./error/BrowserAuthError.js"; | ||
export { BrowserConfigurationAuthError, BrowserConfigurationAuthErrorCodes, BrowserConfigurationAuthErrorMessage, } from "./error/BrowserConfigurationAuthError.js"; | ||
export { IPublicClientApplication, stubbedPublicClientApplication, } from "./app/IPublicClientApplication.js"; | ||
export { INavigationClient } from "./navigation/INavigationClient.js"; | ||
export { NavigationClient } from "./navigation/NavigationClient.js"; | ||
export { NavigationOptions } from "./navigation/NavigationOptions.js"; | ||
export { PopupRequest } from "./request/PopupRequest.js"; | ||
export { RedirectRequest } from "./request/RedirectRequest.js"; | ||
export { SilentRequest } from "./request/SilentRequest.js"; | ||
export { SsoSilentRequest } from "./request/SsoSilentRequest.js"; | ||
export { EndSessionRequest } from "./request/EndSessionRequest.js"; | ||
export { EndSessionPopupRequest } from "./request/EndSessionPopupRequest.js"; | ||
export { AuthorizationUrlRequest } from "./request/AuthorizationUrlRequest.js"; | ||
export { AuthorizationCodeRequest } from "./request/AuthorizationCodeRequest.js"; | ||
export { AuthenticationResult } from "./response/AuthenticationResult.js"; | ||
export { ClearCacheRequest } from "./request/ClearCacheRequest.js"; | ||
export { InitializeApplicationRequest } from "./request/InitializeApplicationRequest.js"; | ||
export { LoadTokenOptions } from "./cache/TokenCache.js"; | ||
export { ITokenCache } from "./cache/ITokenCache.js"; | ||
export { MemoryStorage } from "./cache/MemoryStorage.js"; | ||
export { BrowserStorage } from "./cache/BrowserStorage.js"; | ||
export { EventMessage, EventPayload, EventError, EventCallbackFunction, EventMessageUtils, PopupEvent, } from "./event/EventMessage.js"; | ||
export { EventType } from "./event/EventType.js"; | ||
export { SignedHttpRequest, SignedHttpRequestOptions, } from "./crypto/SignedHttpRequest.js"; | ||
export { PopupWindowAttributes, PopupSize, PopupPosition, } from "./request/PopupWindowAttributes.js"; | ||
export { BrowserPerformanceClient } from "./telemetry/BrowserPerformanceClient.js"; | ||
export { BrowserPerformanceMeasurement } from "./telemetry/BrowserPerformanceMeasurement.js"; | ||
export { AuthenticationScheme, AccountInfo, AccountEntity, IdTokenClaims, AuthError, AuthErrorCodes, AuthErrorMessage, ClientAuthError, ClientAuthErrorCodes, ClientAuthErrorMessage, ClientConfigurationError, ClientConfigurationErrorCodes, ClientConfigurationErrorMessage, InteractionRequiredAuthError, InteractionRequiredAuthErrorCodes, InteractionRequiredAuthErrorMessage, ServerError, INetworkModule, NetworkResponse, NetworkRequestOptions, ILoggerCallback, Logger, LogLevel, ProtocolMode, ServerResponseType, PromptValue, ExternalTokenResponse, StringUtils, UrlString, JsonWebTokenTypes, AzureCloudInstance, AzureCloudOptions, AuthenticationHeaderParser, OIDC_DEFAULT_SCOPES, PerformanceCallbackFunction, PerformanceEvent, PerformanceEvents, InProgressPerformanceEvent, TenantProfile, IPerformanceClient, StubPerformanceClient, } from "@azure/msal-common/browser"; | ||
export { version } from "./packageMetadata.js"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,13 +0,13 @@ | ||
import { ICrypto, INetworkModule, Logger, AccountInfo, ServerTelemetryManager, Authority, IPerformanceClient, AzureCloudOptions } from "@azure/msal-common"; | ||
import { BrowserConfiguration } from "../config/Configuration"; | ||
import { BrowserCacheManager } from "../cache/BrowserCacheManager"; | ||
import { EventHandler } from "../event/EventHandler"; | ||
import { EndSessionRequest } from "../request/EndSessionRequest"; | ||
import { RedirectRequest } from "../request/RedirectRequest"; | ||
import { PopupRequest } from "../request/PopupRequest"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest"; | ||
import { INavigationClient } from "../navigation/INavigationClient"; | ||
import { NativeMessageHandler } from "../broker/nativeBroker/NativeMessageHandler"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest"; | ||
import { ICrypto, INetworkModule, Logger, AccountInfo, ServerTelemetryManager, Authority, IPerformanceClient, AzureCloudOptions, StringDict } from "@azure/msal-common/browser"; | ||
import { BrowserConfiguration } from "../config/Configuration.js"; | ||
import { BrowserCacheManager } from "../cache/BrowserCacheManager.js"; | ||
import { EventHandler } from "../event/EventHandler.js"; | ||
import { EndSessionRequest } from "../request/EndSessionRequest.js"; | ||
import { RedirectRequest } from "../request/RedirectRequest.js"; | ||
import { PopupRequest } from "../request/PopupRequest.js"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest.js"; | ||
import { INavigationClient } from "../navigation/INavigationClient.js"; | ||
import { NativeMessageHandler } from "../broker/nativeBroker/NativeMessageHandler.js"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest.js"; | ||
export declare abstract class BaseInteractionClient { | ||
@@ -45,8 +45,16 @@ protected config: BrowserConfiguration; | ||
* Used to get a discovered version of the default authority. | ||
* @param requestAuthority | ||
* @param requestAzureCloudOptions | ||
* @param account | ||
* @param params { | ||
* requestAuthority?: string; | ||
* requestAzureCloudOptions?: AzureCloudOptions; | ||
* requestExtraQueryParameters?: StringDict; | ||
* account?: AccountInfo; | ||
* } | ||
*/ | ||
protected getDiscoveredAuthority(requestAuthority?: string, requestAzureCloudOptions?: AzureCloudOptions, account?: AccountInfo): Promise<Authority>; | ||
protected getDiscoveredAuthority(params: { | ||
requestAuthority?: string; | ||
requestAzureCloudOptions?: AzureCloudOptions; | ||
requestExtraQueryParameters?: StringDict; | ||
account?: AccountInfo; | ||
}): Promise<Authority>; | ||
} | ||
//# sourceMappingURL=BaseInteractionClient.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import { AuthorizationCodeClient, ClientConfiguration } from "@azure/msal-common"; | ||
import { AuthorizationCodeClient, ClientConfiguration } from "@azure/msal-common/browser"; | ||
export declare class HybridSpaAuthorizationCodeClient extends AuthorizationCodeClient { | ||
@@ -3,0 +3,0 @@ constructor(config: ClientConfiguration); |
@@ -1,17 +0,17 @@ | ||
import { Logger, ICrypto, AccountEntity, ScopeSet, IPerformanceClient, TokenClaims, InProgressPerformanceEvent, ServerTelemetryManager } from "@azure/msal-common"; | ||
import { BaseInteractionClient } from "./BaseInteractionClient"; | ||
import { BrowserConfiguration } from "../config/Configuration"; | ||
import { BrowserCacheManager } from "../cache/BrowserCacheManager"; | ||
import { EventHandler } from "../event/EventHandler"; | ||
import { PopupRequest } from "../request/PopupRequest"; | ||
import { SilentRequest } from "../request/SilentRequest"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest"; | ||
import { NativeMessageHandler } from "../broker/nativeBroker/NativeMessageHandler"; | ||
import { ApiId } from "../utils/BrowserConstants"; | ||
import { NativeTokenRequest } from "../broker/nativeBroker/NativeRequest"; | ||
import { MATS, NativeResponse } from "../broker/nativeBroker/NativeResponse"; | ||
import { RedirectRequest } from "../request/RedirectRequest"; | ||
import { INavigationClient } from "../navigation/INavigationClient"; | ||
import { SilentCacheClient } from "./SilentCacheClient"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
import { Logger, ICrypto, AccountEntity, ScopeSet, IPerformanceClient, TokenClaims, InProgressPerformanceEvent, ServerTelemetryManager } from "@azure/msal-common/browser"; | ||
import { BaseInteractionClient } from "./BaseInteractionClient.js"; | ||
import { BrowserConfiguration } from "../config/Configuration.js"; | ||
import { BrowserCacheManager } from "../cache/BrowserCacheManager.js"; | ||
import { EventHandler } from "../event/EventHandler.js"; | ||
import { PopupRequest } from "../request/PopupRequest.js"; | ||
import { SilentRequest } from "../request/SilentRequest.js"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest.js"; | ||
import { NativeMessageHandler } from "../broker/nativeBroker/NativeMessageHandler.js"; | ||
import { ApiId } from "../utils/BrowserConstants.js"; | ||
import { NativeTokenRequest } from "../broker/nativeBroker/NativeRequest.js"; | ||
import { MATS, NativeResponse } from "../broker/nativeBroker/NativeResponse.js"; | ||
import { RedirectRequest } from "../request/RedirectRequest.js"; | ||
import { INavigationClient } from "../navigation/INavigationClient.js"; | ||
import { SilentCacheClient } from "./SilentCacheClient.js"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
export declare class NativeInteractionClient extends BaseInteractionClient { | ||
@@ -18,0 +18,0 @@ protected apiId: ApiId; |
@@ -1,12 +0,12 @@ | ||
import { CommonEndSessionRequest, IPerformanceClient, Logger, ICrypto } from "@azure/msal-common"; | ||
import { StandardInteractionClient } from "./StandardInteractionClient"; | ||
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest"; | ||
import { PopupRequest } from "../request/PopupRequest"; | ||
import { NativeMessageHandler } from "../broker/nativeBroker/NativeMessageHandler"; | ||
import { INavigationClient } from "../navigation/INavigationClient"; | ||
import { EventHandler } from "../event/EventHandler"; | ||
import { BrowserCacheManager } from "../cache/BrowserCacheManager"; | ||
import { BrowserConfiguration } from "../config/Configuration"; | ||
import { PopupWindowAttributes } from "../request/PopupWindowAttributes"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
import { CommonEndSessionRequest, IPerformanceClient, Logger, ICrypto } from "@azure/msal-common/browser"; | ||
import { StandardInteractionClient } from "./StandardInteractionClient.js"; | ||
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest.js"; | ||
import { PopupRequest } from "../request/PopupRequest.js"; | ||
import { NativeMessageHandler } from "../broker/nativeBroker/NativeMessageHandler.js"; | ||
import { INavigationClient } from "../navigation/INavigationClient.js"; | ||
import { EventHandler } from "../event/EventHandler.js"; | ||
import { BrowserCacheManager } from "../cache/BrowserCacheManager.js"; | ||
import { BrowserConfiguration } from "../config/Configuration.js"; | ||
import { PopupWindowAttributes } from "../request/PopupWindowAttributes.js"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
export type PopupParams = { | ||
@@ -16,2 +16,3 @@ popup?: Window | null; | ||
popupWindowAttributes: PopupWindowAttributes; | ||
popupWindowParent: Window; | ||
}; | ||
@@ -41,3 +42,3 @@ export declare class PopupClient extends StandardInteractionClient { | ||
*/ | ||
protected acquireTokenPopupAsync(request: PopupRequest, popupName: string, popupWindowAttributes: PopupWindowAttributes, popup?: Window | null): Promise<AuthenticationResult>; | ||
protected acquireTokenPopupAsync(request: PopupRequest, popupParams: PopupParams): Promise<AuthenticationResult>; | ||
/** | ||
@@ -52,3 +53,3 @@ * | ||
*/ | ||
protected logoutPopupAsync(validRequest: CommonEndSessionRequest, popupName: string, popupWindowAttributes: PopupWindowAttributes, requestAuthority?: string, popup?: Window | null, mainWindowRedirectUri?: string): Promise<void>; | ||
protected logoutPopupAsync(validRequest: CommonEndSessionRequest, popupParams: PopupParams, requestAuthority?: string, mainWindowRedirectUri?: string): Promise<void>; | ||
/** | ||
@@ -64,3 +65,3 @@ * Opens a popup window with given request Url. | ||
*/ | ||
monitorPopupForHash(popupWindow: Window): Promise<string>; | ||
monitorPopupForHash(popupWindow: Window, popupWindowParent: Window): Promise<string>; | ||
/** | ||
@@ -87,3 +88,3 @@ * @hidden | ||
*/ | ||
openSizedPopup(urlNavigate: string, popupName: string, popupWindowAttributes: PopupWindowAttributes): Window | null; | ||
openSizedPopup(urlNavigate: string, { popupName, popupWindowAttributes, popupWindowParent }: PopupParams): Window | null; | ||
/** | ||
@@ -97,3 +98,3 @@ * Event callback to unload main window. | ||
*/ | ||
cleanPopup(popupWindow?: Window): void; | ||
cleanPopup(popupWindow: Window, popupWindowParent: Window): void; | ||
/** | ||
@@ -100,0 +101,0 @@ * Generates the name for the popup based on the client id and request |
@@ -1,11 +0,11 @@ | ||
import { ServerTelemetryManager, ServerAuthorizationCodeResponse, ICrypto, Logger, IPerformanceClient, InProgressPerformanceEvent } from "@azure/msal-common"; | ||
import { StandardInteractionClient } from "./StandardInteractionClient"; | ||
import { EndSessionRequest } from "../request/EndSessionRequest"; | ||
import { RedirectRequest } from "../request/RedirectRequest"; | ||
import { NativeMessageHandler } from "../broker/nativeBroker/NativeMessageHandler"; | ||
import { BrowserConfiguration } from "../config/Configuration"; | ||
import { BrowserCacheManager } from "../cache/BrowserCacheManager"; | ||
import { EventHandler } from "../event/EventHandler"; | ||
import { INavigationClient } from "../navigation/INavigationClient"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
import { ServerTelemetryManager, ServerAuthorizationCodeResponse, ICrypto, Logger, IPerformanceClient, InProgressPerformanceEvent } from "@azure/msal-common/browser"; | ||
import { StandardInteractionClient } from "./StandardInteractionClient.js"; | ||
import { EndSessionRequest } from "../request/EndSessionRequest.js"; | ||
import { RedirectRequest } from "../request/RedirectRequest.js"; | ||
import { NativeMessageHandler } from "../broker/nativeBroker/NativeMessageHandler.js"; | ||
import { BrowserConfiguration } from "../config/Configuration.js"; | ||
import { BrowserCacheManager } from "../cache/BrowserCacheManager.js"; | ||
import { EventHandler } from "../event/EventHandler.js"; | ||
import { INavigationClient } from "../navigation/INavigationClient.js"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
export declare class RedirectClient extends StandardInteractionClient { | ||
@@ -12,0 +12,0 @@ protected nativeStorage: BrowserCacheManager; |
@@ -1,11 +0,11 @@ | ||
import { ICrypto, Logger, IPerformanceClient } from "@azure/msal-common"; | ||
import { StandardInteractionClient } from "./StandardInteractionClient"; | ||
import { BrowserConfiguration } from "../config/Configuration"; | ||
import { BrowserCacheManager } from "../cache/BrowserCacheManager"; | ||
import { EventHandler } from "../event/EventHandler"; | ||
import { INavigationClient } from "../navigation/INavigationClient"; | ||
import { ApiId } from "../utils/BrowserConstants"; | ||
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest"; | ||
import { NativeMessageHandler } from "../broker/nativeBroker/NativeMessageHandler"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
import { ICrypto, Logger, IPerformanceClient } from "@azure/msal-common/browser"; | ||
import { StandardInteractionClient } from "./StandardInteractionClient.js"; | ||
import { BrowserConfiguration } from "../config/Configuration.js"; | ||
import { BrowserCacheManager } from "../cache/BrowserCacheManager.js"; | ||
import { EventHandler } from "../event/EventHandler.js"; | ||
import { INavigationClient } from "../navigation/INavigationClient.js"; | ||
import { ApiId } from "../utils/BrowserConstants.js"; | ||
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest.js"; | ||
import { NativeMessageHandler } from "../broker/nativeBroker/NativeMessageHandler.js"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
export declare class SilentAuthCodeClient extends StandardInteractionClient { | ||
@@ -12,0 +12,0 @@ private apiId; |
@@ -1,5 +0,5 @@ | ||
import { StandardInteractionClient } from "./StandardInteractionClient"; | ||
import { CommonSilentFlowRequest } from "@azure/msal-common"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest"; | ||
import { StandardInteractionClient } from "./StandardInteractionClient.js"; | ||
import { CommonSilentFlowRequest } from "@azure/msal-common/browser"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest.js"; | ||
export declare class SilentCacheClient extends StandardInteractionClient { | ||
@@ -6,0 +6,0 @@ /** |
@@ -1,12 +0,12 @@ | ||
import { ICrypto, Logger, AuthorizationCodeClient, IPerformanceClient } from "@azure/msal-common"; | ||
import { StandardInteractionClient } from "./StandardInteractionClient"; | ||
import { AuthorizationUrlRequest } from "../request/AuthorizationUrlRequest"; | ||
import { BrowserConfiguration } from "../config/Configuration"; | ||
import { BrowserCacheManager } from "../cache/BrowserCacheManager"; | ||
import { EventHandler } from "../event/EventHandler"; | ||
import { INavigationClient } from "../navigation/INavigationClient"; | ||
import { ApiId } from "../utils/BrowserConstants"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest"; | ||
import { NativeMessageHandler } from "../broker/nativeBroker/NativeMessageHandler"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
import { ICrypto, Logger, AuthorizationCodeClient, IPerformanceClient } from "@azure/msal-common/browser"; | ||
import { StandardInteractionClient } from "./StandardInteractionClient.js"; | ||
import { AuthorizationUrlRequest } from "../request/AuthorizationUrlRequest.js"; | ||
import { BrowserConfiguration } from "../config/Configuration.js"; | ||
import { BrowserCacheManager } from "../cache/BrowserCacheManager.js"; | ||
import { EventHandler } from "../event/EventHandler.js"; | ||
import { INavigationClient } from "../navigation/INavigationClient.js"; | ||
import { ApiId } from "../utils/BrowserConstants.js"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest.js"; | ||
import { NativeMessageHandler } from "../broker/nativeBroker/NativeMessageHandler.js"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
export declare class SilentIframeClient extends StandardInteractionClient { | ||
@@ -13,0 +13,0 @@ protected apiId: ApiId; |
@@ -1,4 +0,4 @@ | ||
import { StandardInteractionClient } from "./StandardInteractionClient"; | ||
import { CommonSilentFlowRequest, ServerTelemetryManager, RefreshTokenClient, AzureCloudOptions, AccountInfo } from "@azure/msal-common"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
import { StandardInteractionClient } from "./StandardInteractionClient.js"; | ||
import { CommonSilentFlowRequest, ServerTelemetryManager, RefreshTokenClient, AzureCloudOptions, AccountInfo, StringDict } from "@azure/msal-common/browser"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
export declare class SilentRefreshClient extends StandardInteractionClient { | ||
@@ -16,7 +16,18 @@ /** | ||
* Creates a Refresh Client with the given authority, or the default authority. | ||
* @param serverTelemetryManager | ||
* @param authorityUrl | ||
* @param params { | ||
* serverTelemetryManager: ServerTelemetryManager; | ||
* authorityUrl?: string; | ||
* azureCloudOptions?: AzureCloudOptions; | ||
* extraQueryParams?: StringDict; | ||
* account?: AccountInfo; | ||
* } | ||
*/ | ||
protected createRefreshTokenClient(serverTelemetryManager: ServerTelemetryManager, authorityUrl?: string, azureCloudOptions?: AzureCloudOptions, account?: AccountInfo): Promise<RefreshTokenClient>; | ||
protected createRefreshTokenClient(params: { | ||
serverTelemetryManager: ServerTelemetryManager; | ||
authorityUrl?: string; | ||
azureCloudOptions?: AzureCloudOptions; | ||
extraQueryParameters?: StringDict; | ||
account?: AccountInfo; | ||
}): Promise<RefreshTokenClient>; | ||
} | ||
//# sourceMappingURL=SilentRefreshClient.d.ts.map |
@@ -1,9 +0,9 @@ | ||
import { ServerTelemetryManager, CommonAuthorizationCodeRequest, AuthorizationCodeClient, ClientConfiguration, CommonEndSessionRequest, AccountInfo, AzureCloudOptions } from "@azure/msal-common"; | ||
import { BaseInteractionClient } from "./BaseInteractionClient"; | ||
import { AuthorizationUrlRequest } from "../request/AuthorizationUrlRequest"; | ||
import { InteractionType } from "../utils/BrowserConstants"; | ||
import { EndSessionRequest } from "../request/EndSessionRequest"; | ||
import { RedirectRequest } from "../request/RedirectRequest"; | ||
import { PopupRequest } from "../request/PopupRequest"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest"; | ||
import { ServerTelemetryManager, CommonAuthorizationCodeRequest, AuthorizationCodeClient, ClientConfiguration, CommonEndSessionRequest, AccountInfo, AzureCloudOptions, StringDict } from "@azure/msal-common/browser"; | ||
import { BaseInteractionClient } from "./BaseInteractionClient.js"; | ||
import { AuthorizationUrlRequest } from "../request/AuthorizationUrlRequest.js"; | ||
import { InteractionType } from "../utils/BrowserConstants.js"; | ||
import { EndSessionRequest } from "../request/EndSessionRequest.js"; | ||
import { RedirectRequest } from "../request/RedirectRequest.js"; | ||
import { PopupRequest } from "../request/PopupRequest.js"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest.js"; | ||
/** | ||
@@ -31,13 +31,34 @@ * Defines the class structure and helper functions used by the "standard", non-brokered auth flows (popup, redirect, silent (RT), silent (iframe)) | ||
* Creates an Authorization Code Client with the given authority, or the default authority. | ||
* @param serverTelemetryManager | ||
* @param authorityUrl | ||
* @param params { | ||
* serverTelemetryManager: ServerTelemetryManager; | ||
* authorityUrl?: string; | ||
* requestAzureCloudOptions?: AzureCloudOptions; | ||
* requestExtraQueryParameters?: StringDict; | ||
* account?: AccountInfo; | ||
* } | ||
*/ | ||
protected createAuthCodeClient(serverTelemetryManager: ServerTelemetryManager, authorityUrl?: string, requestAzureCloudOptions?: AzureCloudOptions, account?: AccountInfo): Promise<AuthorizationCodeClient>; | ||
protected createAuthCodeClient(params: { | ||
serverTelemetryManager: ServerTelemetryManager; | ||
requestAuthority?: string; | ||
requestAzureCloudOptions?: AzureCloudOptions; | ||
requestExtraQueryParameters?: StringDict; | ||
account?: AccountInfo; | ||
}): Promise<AuthorizationCodeClient>; | ||
/** | ||
* Creates a Client Configuration object with the given request authority, or the default authority. | ||
* @param serverTelemetryManager | ||
* @param requestAuthority | ||
* @param requestCorrelationId | ||
* @param params { | ||
* serverTelemetryManager: ServerTelemetryManager; | ||
* requestAuthority?: string; | ||
* requestAzureCloudOptions?: AzureCloudOptions; | ||
* requestExtraQueryParameters?: boolean; | ||
* account?: AccountInfo; | ||
* } | ||
*/ | ||
protected getClientConfiguration(serverTelemetryManager: ServerTelemetryManager, requestAuthority?: string, requestAzureCloudOptions?: AzureCloudOptions, account?: AccountInfo): Promise<ClientConfiguration>; | ||
protected getClientConfiguration(params: { | ||
serverTelemetryManager: ServerTelemetryManager; | ||
requestAuthority?: string; | ||
requestAzureCloudOptions?: AzureCloudOptions; | ||
requestExtraQueryParameters?: StringDict; | ||
account?: AccountInfo; | ||
}): Promise<ClientConfiguration>; | ||
/** | ||
@@ -44,0 +65,0 @@ * Helper to initialize required request parameters for interactive APIs and ssoSilent() |
@@ -1,5 +0,5 @@ | ||
import { AuthorizationCodePayload, CommonAuthorizationCodeRequest, AuthorizationCodeClient, CcsCredential, Logger, IPerformanceClient, ServerAuthorizationCodeResponse } from "@azure/msal-common"; | ||
import { BrowserCacheManager } from "../cache/BrowserCacheManager"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
import { AuthorizationUrlRequest } from "../request/AuthorizationUrlRequest"; | ||
import { AuthorizationCodePayload, CommonAuthorizationCodeRequest, AuthorizationCodeClient, CcsCredential, Logger, IPerformanceClient, ServerAuthorizationCodeResponse } from "@azure/msal-common/browser"; | ||
import { BrowserCacheManager } from "../cache/BrowserCacheManager.js"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
import { AuthorizationUrlRequest } from "../request/AuthorizationUrlRequest.js"; | ||
/** | ||
@@ -6,0 +6,0 @@ * Abstract class which defines operations for a browser interaction handling class. |
@@ -1,5 +0,5 @@ | ||
import { AuthorizationCodeClient, CommonAuthorizationCodeRequest, Logger, IPerformanceClient, CcsCredential, ServerAuthorizationCodeResponse } from "@azure/msal-common"; | ||
import { BrowserCacheManager } from "../cache/BrowserCacheManager"; | ||
import { INavigationClient } from "../navigation/INavigationClient"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
import { AuthorizationCodeClient, CommonAuthorizationCodeRequest, Logger, IPerformanceClient, CcsCredential, ServerAuthorizationCodeResponse } from "@azure/msal-common/browser"; | ||
import { BrowserCacheManager } from "../cache/BrowserCacheManager.js"; | ||
import { INavigationClient } from "../navigation/INavigationClient.js"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
export type RedirectParams = { | ||
@@ -6,0 +6,0 @@ navigationClient: INavigationClient; |
@@ -1,2 +0,2 @@ | ||
import { Logger, IPerformanceClient, ServerResponseType } from "@azure/msal-common"; | ||
import { Logger, IPerformanceClient, ServerResponseType } from "@azure/msal-common/browser"; | ||
/** | ||
@@ -3,0 +3,0 @@ * Creates a hidden iframe to given URL using user-requested scopes as an id. |
@@ -1,3 +0,3 @@ | ||
import { AccountInfo } from "./AccountInfo"; | ||
import { TokenResponse } from "./TokenResponse"; | ||
import { AccountInfo } from "./AccountInfo.js"; | ||
import { TokenResponse } from "./TokenResponse.js"; | ||
export type AuthResult = { | ||
@@ -4,0 +4,0 @@ token: TokenResponse; |
@@ -1,2 +0,2 @@ | ||
import { BridgeStatusCode } from "./BridgeStatusCode"; | ||
import { BridgeStatusCode } from "./BridgeStatusCode.js"; | ||
export type BridgeError = { | ||
@@ -3,0 +3,0 @@ status: BridgeStatusCode; |
@@ -1,9 +0,9 @@ | ||
import { AuthBridge } from "./AuthBridge"; | ||
import { AuthResult } from "./AuthResult"; | ||
import { BridgeCapabilities } from "./BridgeCapabilities"; | ||
import { AccountContext } from "./BridgeAccountContext"; | ||
import { BridgeRequest } from "./BridgeRequest"; | ||
import { IBridgeProxy } from "./IBridgeProxy"; | ||
import { InitContext } from "./InitContext"; | ||
import { TokenRequest } from "./TokenRequest"; | ||
import { AuthBridge } from "./AuthBridge.js"; | ||
import { AuthResult } from "./AuthResult.js"; | ||
import { BridgeCapabilities } from "./BridgeCapabilities.js"; | ||
import { AccountContext } from "./BridgeAccountContext.js"; | ||
import { BridgeRequest } from "./BridgeRequest.js"; | ||
import { IBridgeProxy } from "./IBridgeProxy.js"; | ||
import { InitContext } from "./InitContext.js"; | ||
import { TokenRequest } from "./TokenRequest.js"; | ||
declare global { | ||
@@ -47,2 +47,3 @@ interface Window { | ||
getAccountContext(): AccountContext | null; | ||
private static buildRequest; | ||
/** | ||
@@ -49,0 +50,0 @@ * A method used to send a request to the bridge |
@@ -1,2 +0,2 @@ | ||
import { BridgeResponseEnvelope } from "./BridgeResponseEnvelope"; | ||
import { BridgeResponseEnvelope } from "./BridgeResponseEnvelope.js"; | ||
export type BridgeRequest = { | ||
@@ -3,0 +3,0 @@ requestId: string; |
@@ -1,2 +0,2 @@ | ||
import { TokenRequest } from "./TokenRequest"; | ||
import { TokenRequest } from "./TokenRequest.js"; | ||
export type BridgeMethods = "GetToken" | "GetInitContext" | "GetTokenPopup"; | ||
@@ -3,0 +3,0 @@ export type BridgeRequestEnvelope = { |
@@ -1,5 +0,5 @@ | ||
import { BridgeError } from "./BridgeError"; | ||
import { TokenResponse } from "./TokenResponse"; | ||
import { AccountInfo } from "./AccountInfo"; | ||
import { InitContext } from "./InitContext"; | ||
import { BridgeError } from "./BridgeError.js"; | ||
import { TokenResponse } from "./TokenResponse.js"; | ||
import { AccountInfo } from "./AccountInfo.js"; | ||
import { InitContext } from "./InitContext.js"; | ||
export type BridgeResponseEnvelope = { | ||
@@ -6,0 +6,0 @@ messageType: "NestedAppAuthResponse"; |
@@ -1,5 +0,5 @@ | ||
import { AuthResult } from "./AuthResult"; | ||
import { AccountContext } from "./BridgeAccountContext"; | ||
import { BridgeCapabilities } from "./BridgeCapabilities"; | ||
import { TokenRequest } from "./TokenRequest"; | ||
import { AuthResult } from "./AuthResult.js"; | ||
import { AccountContext } from "./BridgeAccountContext.js"; | ||
import { BridgeCapabilities } from "./BridgeCapabilities.js"; | ||
import { TokenRequest } from "./TokenRequest.js"; | ||
export interface IBridgeProxy { | ||
@@ -6,0 +6,0 @@ getTokenInteractive(request: TokenRequest): Promise<AuthResult>; |
@@ -1,3 +0,3 @@ | ||
import { BridgeCapabilities } from "./BridgeCapabilities"; | ||
import { AccountContext } from "./BridgeAccountContext"; | ||
import { BridgeCapabilities } from "./BridgeCapabilities.js"; | ||
import { AccountContext } from "./BridgeAccountContext.js"; | ||
export interface InitContext { | ||
@@ -4,0 +4,0 @@ capabilities?: BridgeCapabilities; |
@@ -1,10 +0,10 @@ | ||
import { TokenRequest } from "../TokenRequest"; | ||
import { AccountInfo as NaaAccountInfo } from "../AccountInfo"; | ||
import { RedirectRequest } from "../../request/RedirectRequest"; | ||
import { PopupRequest } from "../../request/PopupRequest"; | ||
import { AccountInfo as MsalAccountInfo, AuthError, ClientAuthError, ClientConfigurationError, InteractionRequiredAuthError, ServerError, ICrypto, Logger, TokenClaims, AccountInfo, IdTokenEntity, AccessTokenEntity } from "@azure/msal-common"; | ||
import { AuthenticationResult } from "../../response/AuthenticationResult"; | ||
import { AuthResult } from "../AuthResult"; | ||
import { SsoSilentRequest } from "../../request/SsoSilentRequest"; | ||
import { SilentRequest } from "../../request/SilentRequest"; | ||
import { TokenRequest } from "../TokenRequest.js"; | ||
import { AccountInfo as NaaAccountInfo } from "../AccountInfo.js"; | ||
import { RedirectRequest } from "../../request/RedirectRequest.js"; | ||
import { PopupRequest } from "../../request/PopupRequest.js"; | ||
import { AccountInfo as MsalAccountInfo, AuthError, ClientAuthError, ClientConfigurationError, InteractionRequiredAuthError, ServerError, ICrypto, Logger, TokenClaims, AccountInfo, IdTokenEntity, AccessTokenEntity } from "@azure/msal-common/browser"; | ||
import { AuthenticationResult } from "../../response/AuthenticationResult.js"; | ||
import { AuthResult } from "../AuthResult.js"; | ||
import { SsoSilentRequest } from "../../request/SsoSilentRequest.js"; | ||
import { SilentRequest } from "../../request/SilentRequest.js"; | ||
export declare class NestedAppAuthAdapter { | ||
@@ -11,0 +11,0 @@ protected crypto: ICrypto; |
@@ -1,2 +0,2 @@ | ||
import { NavigationOptions } from "./NavigationOptions"; | ||
import { NavigationOptions } from "./NavigationOptions.js"; | ||
export interface INavigationClient { | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import { INavigationClient } from "./INavigationClient"; | ||
import { NavigationOptions } from "./NavigationOptions"; | ||
import { INavigationClient } from "./INavigationClient.js"; | ||
import { NavigationOptions } from "./NavigationOptions.js"; | ||
export declare class NavigationClient implements INavigationClient { | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { ApiId } from "../utils/BrowserConstants"; | ||
import { ApiId } from "../utils/BrowserConstants.js"; | ||
/** | ||
@@ -3,0 +3,0 @@ * Additional information passed to the navigateInternal and navigateExternal functions |
@@ -1,2 +0,2 @@ | ||
import { INetworkModule, NetworkRequestOptions, NetworkResponse } from "@azure/msal-common"; | ||
import { INetworkModule, NetworkRequestOptions, NetworkResponse } from "@azure/msal-common/browser"; | ||
/** | ||
@@ -3,0 +3,0 @@ * This class implements the Fetch API for GET and POST requests. See more here: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API |
@@ -1,3 +0,3 @@ | ||
import { Logger, LogLevel } from "@azure/msal-common"; | ||
import { BrowserConfiguration, Configuration } from "../config/Configuration"; | ||
import { Logger, LogLevel } from "@azure/msal-common/browser"; | ||
import { BrowserConfiguration, Configuration } from "../config/Configuration.js"; | ||
/** | ||
@@ -4,0 +4,0 @@ * Base class for operating context |
@@ -1,4 +0,9 @@ | ||
import { BaseOperatingContext } from "./BaseOperatingContext"; | ||
import { IBridgeProxy } from "../naa/IBridgeProxy"; | ||
import { AccountContext } from "../naa/BridgeAccountContext"; | ||
import { BaseOperatingContext } from "./BaseOperatingContext.js"; | ||
import { IBridgeProxy } from "../naa/IBridgeProxy.js"; | ||
import { AccountContext } from "../naa/BridgeAccountContext.js"; | ||
declare global { | ||
interface Window { | ||
__initializeNestedAppAuth?(): Promise<void>; | ||
} | ||
} | ||
export declare class NestedAppOperatingContext extends BaseOperatingContext { | ||
@@ -5,0 +10,0 @@ protected bridgeProxy: IBridgeProxy | undefined; |
@@ -1,2 +0,2 @@ | ||
import { BaseOperatingContext } from "./BaseOperatingContext"; | ||
import { BaseOperatingContext } from "./BaseOperatingContext.js"; | ||
export declare class StandardOperatingContext extends BaseOperatingContext { | ||
@@ -3,0 +3,0 @@ static readonly MODULE_NAME: string; |
@@ -1,2 +0,2 @@ | ||
import { BaseOperatingContext } from "./BaseOperatingContext"; | ||
import { BaseOperatingContext } from "./BaseOperatingContext.js"; | ||
export declare class UnknownOperatingContext extends BaseOperatingContext { | ||
@@ -3,0 +3,0 @@ static readonly MODULE_NAME: string; |
export declare const name = "@azure/msal-browser"; | ||
export declare const version = "3.23.0"; | ||
export declare const version = "3.24.0"; | ||
//# sourceMappingURL=packageMetadata.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import { CommonAuthorizationCodeRequest } from "@azure/msal-common"; | ||
import { CommonAuthorizationCodeRequest } from "@azure/msal-common/browser"; | ||
export type AuthorizationCodeRequest = Partial<Omit<CommonAuthorizationCodeRequest, "code" | "enableSpaAuthorizationCode" | "requestedClaimsHash">> & { | ||
@@ -3,0 +3,0 @@ code?: string; |
@@ -1,2 +0,2 @@ | ||
import { CommonAuthorizationUrlRequest } from "@azure/msal-common"; | ||
import { CommonAuthorizationUrlRequest } from "@azure/msal-common/browser"; | ||
/** | ||
@@ -3,0 +3,0 @@ * This type is deprecated and will be removed on the next major version update |
@@ -1,2 +0,2 @@ | ||
import { AccountInfo } from "@azure/msal-common"; | ||
import { AccountInfo } from "@azure/msal-common/browser"; | ||
/** | ||
@@ -3,0 +3,0 @@ * ClearCacheRequest |
@@ -1,3 +0,3 @@ | ||
import { CommonEndSessionRequest } from "@azure/msal-common"; | ||
import { PopupWindowAttributes } from "./PopupWindowAttributes"; | ||
import { CommonEndSessionRequest } from "@azure/msal-common/browser"; | ||
import { PopupWindowAttributes } from "./PopupWindowAttributes.js"; | ||
/** | ||
@@ -13,2 +13,3 @@ * EndSessionPopupRequest | ||
* - logoutHint - A string that specifies the account that is being logged out in order to skip the server account picker on logout | ||
* - popupWindowParent - Optional window object to use as the parent when opening popup windows. Uses global `window` if not given. | ||
*/ | ||
@@ -19,3 +20,4 @@ export type EndSessionPopupRequest = Partial<Omit<CommonEndSessionRequest, "tokenQueryParameters">> & { | ||
popupWindowAttributes?: PopupWindowAttributes; | ||
popupWindowParent?: Window; | ||
}; | ||
//# sourceMappingURL=EndSessionPopupRequest.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import { CommonEndSessionRequest } from "@azure/msal-common"; | ||
import { CommonEndSessionRequest } from "@azure/msal-common/browser"; | ||
/** | ||
@@ -3,0 +3,0 @@ * EndSessionRequest |
@@ -1,3 +0,3 @@ | ||
import { CommonAuthorizationUrlRequest, StringDict } from "@azure/msal-common"; | ||
import { PopupWindowAttributes } from "./PopupWindowAttributes"; | ||
import { CommonAuthorizationUrlRequest, StringDict } from "@azure/msal-common/browser"; | ||
import { PopupWindowAttributes } from "./PopupWindowAttributes.js"; | ||
/** | ||
@@ -29,2 +29,3 @@ * PopupRequest: Request object passed by user to retrieve a Code from the | ||
* - popupWindowAttributes - Optional popup window attributes. popupSize with height and width, and popupPosition with top and left can be set. | ||
* - popupWindowParent - Optional window object to use as the parent when opening popup windows. Uses global `window` if not given. | ||
*/ | ||
@@ -35,3 +36,4 @@ export type PopupRequest = Partial<Omit<CommonAuthorizationUrlRequest, "responseMode" | "scopes" | "codeChallenge" | "codeChallengeMethod" | "requestedClaimsHash" | "nativeBroker">> & { | ||
tokenBodyParameters?: StringDict; | ||
popupWindowParent?: Window; | ||
}; | ||
//# sourceMappingURL=PopupRequest.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import { CommonAuthorizationUrlRequest, StringDict } from "@azure/msal-common"; | ||
import { CommonAuthorizationUrlRequest, StringDict } from "@azure/msal-common/browser"; | ||
/** | ||
@@ -3,0 +3,0 @@ * RedirectRequest: Request object passed by user to retrieve a Code from the |
@@ -1,4 +0,4 @@ | ||
import { AccountInfo, BaseAuthRequest, CommonSilentFlowRequest, IPerformanceClient, Logger } from "@azure/msal-common"; | ||
import { BrowserConfiguration } from "../config/Configuration"; | ||
import { SilentRequest } from "./SilentRequest"; | ||
import { AccountInfo, BaseAuthRequest, CommonSilentFlowRequest, IPerformanceClient, Logger } from "@azure/msal-common/browser"; | ||
import { BrowserConfiguration } from "../config/Configuration.js"; | ||
import { SilentRequest } from "./SilentRequest.js"; | ||
/** | ||
@@ -5,0 +5,0 @@ * Initializer function for all request APIs |
@@ -1,3 +0,3 @@ | ||
import { AccountInfo, CommonSilentFlowRequest, StringDict } from "@azure/msal-common"; | ||
import { CacheLookupPolicy } from "../utils/BrowserConstants"; | ||
import { AccountInfo, CommonSilentFlowRequest, StringDict } from "@azure/msal-common/browser"; | ||
import { CacheLookupPolicy } from "../utils/BrowserConstants.js"; | ||
/** | ||
@@ -4,0 +4,0 @@ * SilentRequest: Request object passed by user to retrieve tokens from the |
@@ -1,2 +0,2 @@ | ||
import { CommonAuthorizationUrlRequest, StringDict } from "@azure/msal-common"; | ||
import { CommonAuthorizationUrlRequest, StringDict } from "@azure/msal-common/browser"; | ||
/** | ||
@@ -3,0 +3,0 @@ * Request object passed by user to ssoSilent to retrieve a Code from the server (first leg of authorization code grant flow) |
@@ -1,2 +0,2 @@ | ||
import { AccountInfo, AuthenticationResult as CommonAuthenticationResult } from "@azure/msal-common"; | ||
import { AccountInfo, AuthenticationResult as CommonAuthenticationResult } from "@azure/msal-common/browser"; | ||
export type AuthenticationResult = CommonAuthenticationResult & { | ||
@@ -3,0 +3,0 @@ account: AccountInfo; |
@@ -1,3 +0,3 @@ | ||
import { ICrypto, Logger, ServerAuthorizationCodeResponse } from "@azure/msal-common"; | ||
import { InteractionType } from "../utils/BrowserConstants"; | ||
import { ICrypto, Logger, ServerAuthorizationCodeResponse } from "@azure/msal-common/browser"; | ||
import { InteractionType } from "../utils/BrowserConstants.js"; | ||
export declare function deserializeResponse(responseString: string, responseLocation: string, logger: Logger): ServerAuthorizationCodeResponse; | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import { InProgressPerformanceEvent, IPerformanceClient, PerformanceClient, PerformanceEvents } from "@azure/msal-common"; | ||
import { Configuration } from "../config/Configuration"; | ||
import { InProgressPerformanceEvent, IPerformanceClient, PerformanceClient, PerformanceEvents } from "@azure/msal-common/browser"; | ||
import { Configuration } from "../config/Configuration.js"; | ||
export declare class BrowserPerformanceClient extends PerformanceClient implements IPerformanceClient { | ||
@@ -4,0 +4,0 @@ constructor(configuration: Configuration, intFields?: Set<string>, abbreviations?: Map<string, string>); |
@@ -1,2 +0,2 @@ | ||
import { IPerformanceMeasurement, SubMeasurement } from "@azure/msal-common"; | ||
import { IPerformanceMeasurement, SubMeasurement } from "@azure/msal-common/browser"; | ||
export declare class BrowserPerformanceMeasurement implements IPerformanceMeasurement { | ||
@@ -3,0 +3,0 @@ private readonly measureName; |
@@ -1,3 +0,3 @@ | ||
import { PopupRequest } from "../request/PopupRequest"; | ||
import { RedirectRequest } from "../request/RedirectRequest"; | ||
import { PopupRequest } from "../request/PopupRequest.js"; | ||
import { RedirectRequest } from "../request/RedirectRequest.js"; | ||
/** | ||
@@ -4,0 +4,0 @@ * Constants |
@@ -1,3 +0,3 @@ | ||
import { InteractionType } from "./BrowserConstants"; | ||
import { ICrypto } from "@azure/msal-common"; | ||
import { InteractionType } from "./BrowserConstants.js"; | ||
import { ICrypto } from "@azure/msal-common/browser"; | ||
export type BrowserStateObject = { | ||
@@ -4,0 +4,0 @@ interactionType: InteractionType; |
@@ -1,3 +0,3 @@ | ||
import { invoke, invokeAsync } from "@azure/msal-common"; | ||
import { BrowserConfiguration } from "../config/Configuration"; | ||
import { invoke, invokeAsync } from "@azure/msal-common/browser"; | ||
import { BrowserConfiguration } from "../config/Configuration.js"; | ||
/** | ||
@@ -4,0 +4,0 @@ * Clears hash from window url. |
@@ -13,3 +13,3 @@ { | ||
}, | ||
"version": "3.23.0", | ||
"version": "3.24.0", | ||
"description": "Microsoft Authentication Library for js", | ||
@@ -32,7 +32,10 @@ "keywords": [ | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"module": "./dist/index.mjs", | ||
"import": "./dist/index.mjs", | ||
"require": "./lib/msal-browser.cjs", | ||
"default": "./dist/index.mjs" | ||
"import": { | ||
"types": "./dist/index.d.ts", | ||
"default": "./dist/index.mjs" | ||
}, | ||
"require": { | ||
"types": "./lib/types/index.d.ts", | ||
"default": "./lib/msal-browser.cjs" | ||
} | ||
}, | ||
@@ -54,7 +57,3 @@ "./package.json": "./package.json" | ||
"dist", | ||
"lib/msal-browser.js", | ||
"lib/msal-browser.js.map", | ||
"lib/msal-browser.cjs", | ||
"lib/msal-browser.cjs.map", | ||
"lib/msal-browser.min.js", | ||
"lib", | ||
"src" | ||
@@ -102,6 +101,8 @@ ], | ||
"rollup": "^3.14.0", | ||
"rollup-msal": "file:../../shared-configs/rollup-msal", | ||
"shx": "^0.3.2", | ||
"sinon": "^7.5.0", | ||
"ssri": "^8.0.1", | ||
"ts-jest": "^29.1.0", | ||
"ts-jest": "^29.2.5", | ||
"ts-jest-resolver": "^2.0.1", | ||
"tslib": "^1.10.0", | ||
@@ -111,4 +112,4 @@ "typescript": "^4.9.5" | ||
"dependencies": { | ||
"@azure/msal-common": "14.14.2" | ||
"@azure/msal-common": "14.15.0" | ||
} | ||
} |
@@ -11,22 +11,22 @@ /* | ||
PerformanceCallbackFunction, | ||
} from "@azure/msal-common"; | ||
import { RedirectRequest } from "../request/RedirectRequest"; | ||
import { PopupRequest } from "../request/PopupRequest"; | ||
import { SilentRequest } from "../request/SilentRequest"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest"; | ||
import { EndSessionRequest } from "../request/EndSessionRequest"; | ||
} from "@azure/msal-common/browser"; | ||
import { RedirectRequest } from "../request/RedirectRequest.js"; | ||
import { PopupRequest } from "../request/PopupRequest.js"; | ||
import { SilentRequest } from "../request/SilentRequest.js"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest.js"; | ||
import { EndSessionRequest } from "../request/EndSessionRequest.js"; | ||
import { | ||
BrowserConfigurationAuthErrorCodes, | ||
createBrowserConfigurationAuthError, | ||
} from "../error/BrowserConfigurationAuthError"; | ||
import { WrapperSKU } from "../utils/BrowserConstants"; | ||
import { INavigationClient } from "../navigation/INavigationClient"; | ||
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest"; | ||
import { ITokenCache } from "../cache/ITokenCache"; | ||
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest"; | ||
import { BrowserConfiguration } from "../config/Configuration"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
import { EventCallbackFunction } from "../event/EventMessage"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest"; | ||
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest"; | ||
} from "../error/BrowserConfigurationAuthError.js"; | ||
import { WrapperSKU } from "../utils/BrowserConstants.js"; | ||
import { INavigationClient } from "../navigation/INavigationClient.js"; | ||
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest.js"; | ||
import { ITokenCache } from "../cache/ITokenCache.js"; | ||
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest.js"; | ||
import { BrowserConfiguration } from "../config/Configuration.js"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
import { EventCallbackFunction } from "../event/EventMessage.js"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest.js"; | ||
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest.js"; | ||
@@ -33,0 +33,0 @@ export interface IPublicClientApplication { |
@@ -6,11 +6,11 @@ /* | ||
import { ITokenCache } from "../cache/ITokenCache"; | ||
import { INavigationClient } from "../navigation/INavigationClient"; | ||
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest"; | ||
import { PopupRequest } from "../request/PopupRequest"; | ||
import { RedirectRequest } from "../request/RedirectRequest"; | ||
import { SilentRequest } from "../request/SilentRequest"; | ||
import { WrapperSKU } from "../utils/BrowserConstants"; | ||
import { IPublicClientApplication } from "./IPublicClientApplication"; | ||
import { IController } from "../controllers/IController"; | ||
import { ITokenCache } from "../cache/ITokenCache.js"; | ||
import { INavigationClient } from "../navigation/INavigationClient.js"; | ||
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest.js"; | ||
import { PopupRequest } from "../request/PopupRequest.js"; | ||
import { RedirectRequest } from "../request/RedirectRequest.js"; | ||
import { SilentRequest } from "../request/SilentRequest.js"; | ||
import { WrapperSKU } from "../utils/BrowserConstants.js"; | ||
import { IPublicClientApplication } from "./IPublicClientApplication.js"; | ||
import { IController } from "../controllers/IController.js"; | ||
import { | ||
@@ -21,16 +21,19 @@ PerformanceCallbackFunction, | ||
Logger, | ||
} from "@azure/msal-common"; | ||
import { EndSessionRequest } from "../request/EndSessionRequest"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest"; | ||
import * as ControllerFactory from "../controllers/ControllerFactory"; | ||
import { StandardController } from "../controllers/StandardController"; | ||
import { BrowserConfiguration, Configuration } from "../config/Configuration"; | ||
import { StandardOperatingContext } from "../operatingcontext/StandardOperatingContext"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
import { EventCallbackFunction } from "../event/EventMessage"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest"; | ||
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest"; | ||
import { NestedAppAuthController } from "../controllers/NestedAppAuthController"; | ||
import { NestedAppOperatingContext } from "../operatingcontext/NestedAppOperatingContext"; | ||
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest"; | ||
} from "@azure/msal-common/browser"; | ||
import { EndSessionRequest } from "../request/EndSessionRequest.js"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest.js"; | ||
import * as ControllerFactory from "../controllers/ControllerFactory.js"; | ||
import { StandardController } from "../controllers/StandardController.js"; | ||
import { | ||
BrowserConfiguration, | ||
Configuration, | ||
} from "../config/Configuration.js"; | ||
import { StandardOperatingContext } from "../operatingcontext/StandardOperatingContext.js"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
import { EventCallbackFunction } from "../event/EventMessage.js"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest.js"; | ||
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest.js"; | ||
import { NestedAppAuthController } from "../controllers/NestedAppAuthController.js"; | ||
import { NestedAppOperatingContext } from "../operatingcontext/NestedAppOperatingContext.js"; | ||
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest.js"; | ||
@@ -37,0 +40,0 @@ /** |
@@ -6,11 +6,11 @@ /* | ||
import { ITokenCache } from "../cache/ITokenCache"; | ||
import { INavigationClient } from "../navigation/INavigationClient"; | ||
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest"; | ||
import { PopupRequest } from "../request/PopupRequest"; | ||
import { RedirectRequest } from "../request/RedirectRequest"; | ||
import { SilentRequest } from "../request/SilentRequest"; | ||
import { WrapperSKU } from "../utils/BrowserConstants"; | ||
import { IPublicClientApplication } from "./IPublicClientApplication"; | ||
import { IController } from "../controllers/IController"; | ||
import { ITokenCache } from "../cache/ITokenCache.js"; | ||
import { INavigationClient } from "../navigation/INavigationClient.js"; | ||
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest.js"; | ||
import { PopupRequest } from "../request/PopupRequest.js"; | ||
import { RedirectRequest } from "../request/RedirectRequest.js"; | ||
import { SilentRequest } from "../request/SilentRequest.js"; | ||
import { WrapperSKU } from "../utils/BrowserConstants.js"; | ||
import { IPublicClientApplication } from "./IPublicClientApplication.js"; | ||
import { IController } from "../controllers/IController.js"; | ||
import { | ||
@@ -21,12 +21,15 @@ PerformanceCallbackFunction, | ||
Logger, | ||
} from "@azure/msal-common"; | ||
import { EndSessionRequest } from "../request/EndSessionRequest"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest"; | ||
import * as ControllerFactory from "../controllers/ControllerFactory"; | ||
import { BrowserConfiguration, Configuration } from "../config/Configuration"; | ||
import { EventCallbackFunction } from "../event/EventMessage"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
import { UnknownOperatingContextController } from "../controllers/UnknownOperatingContextController"; | ||
import { UnknownOperatingContext } from "../operatingcontext/UnknownOperatingContext"; | ||
} from "@azure/msal-common/browser"; | ||
import { EndSessionRequest } from "../request/EndSessionRequest.js"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest.js"; | ||
import * as ControllerFactory from "../controllers/ControllerFactory.js"; | ||
import { | ||
BrowserConfiguration, | ||
Configuration, | ||
} from "../config/Configuration.js"; | ||
import { EventCallbackFunction } from "../event/EventMessage.js"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest.js"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
import { UnknownOperatingContextController } from "../controllers/UnknownOperatingContextController.js"; | ||
import { UnknownOperatingContext } from "../operatingcontext/UnknownOperatingContext.js"; | ||
@@ -33,0 +36,0 @@ /** |
@@ -9,3 +9,3 @@ /* | ||
NativeExtensionMethod, | ||
} from "../../utils/BrowserConstants"; | ||
} from "../../utils/BrowserConstants.js"; | ||
import { | ||
@@ -20,14 +20,14 @@ Logger, | ||
IPerformanceClient, | ||
} from "@azure/msal-common"; | ||
} from "@azure/msal-common/browser"; | ||
import { | ||
NativeExtensionRequest, | ||
NativeExtensionRequestBody, | ||
} from "./NativeRequest"; | ||
import { createNativeAuthError } from "../../error/NativeAuthError"; | ||
} from "./NativeRequest.js"; | ||
import { createNativeAuthError } from "../../error/NativeAuthError.js"; | ||
import { | ||
createBrowserAuthError, | ||
BrowserAuthErrorCodes, | ||
} from "../../error/BrowserAuthError"; | ||
import { BrowserConfiguration } from "../../config/Configuration"; | ||
import { createNewGuid } from "../../crypto/BrowserCrypto"; | ||
} from "../../error/BrowserAuthError.js"; | ||
import { BrowserConfiguration } from "../../config/Configuration.js"; | ||
import { createNewGuid } from "../../crypto/BrowserCrypto.js"; | ||
@@ -34,0 +34,0 @@ type ResponseResolvers<T> = { |
@@ -6,4 +6,4 @@ /* | ||
import { NativeExtensionMethod } from "../../utils/BrowserConstants"; | ||
import { StoreInCache, StringDict } from "@azure/msal-common"; | ||
import { NativeExtensionMethod } from "../../utils/BrowserConstants.js"; | ||
import { StoreInCache, StringDict } from "@azure/msal-common/browser"; | ||
@@ -10,0 +10,0 @@ /** |
@@ -6,4 +6,4 @@ /* | ||
import { AccountInfo, AccountFilter, Logger } from "@azure/msal-common"; | ||
import { BrowserCacheManager } from "./BrowserCacheManager"; | ||
import { AccountInfo, AccountFilter, Logger } from "@azure/msal-common/browser"; | ||
import { BrowserCacheManager } from "./BrowserCacheManager.js"; | ||
@@ -10,0 +10,0 @@ /** |
@@ -6,10 +6,10 @@ /* | ||
import { Logger } from "@azure/msal-common"; | ||
import { Logger } from "@azure/msal-common/browser"; | ||
import { | ||
BrowserAuthError, | ||
BrowserAuthErrorCodes, | ||
} from "../error/BrowserAuthError"; | ||
import { DatabaseStorage } from "./DatabaseStorage"; | ||
import { IAsyncStorage } from "./IAsyncStorage"; | ||
import { MemoryStorage } from "./MemoryStorage"; | ||
} from "../error/BrowserAuthError.js"; | ||
import { DatabaseStorage } from "./DatabaseStorage.js"; | ||
import { IAsyncStorage } from "./IAsyncStorage.js"; | ||
import { MemoryStorage } from "./MemoryStorage.js"; | ||
@@ -16,0 +16,0 @@ /** |
@@ -9,5 +9,5 @@ /* | ||
createBrowserConfigurationAuthError, | ||
} from "../error/BrowserConfigurationAuthError"; | ||
import { BrowserCacheLocation } from "../utils/BrowserConstants"; | ||
import { IWindowStorage } from "./IWindowStorage"; | ||
} from "../error/BrowserConfigurationAuthError.js"; | ||
import { BrowserCacheLocation } from "../utils/BrowserConstants.js"; | ||
import { IWindowStorage } from "./IWindowStorage.js"; | ||
@@ -14,0 +14,0 @@ export class BrowserStorage implements IWindowStorage<string> { |
@@ -9,5 +9,9 @@ /* | ||
BrowserAuthErrorCodes, | ||
} from "../error/BrowserAuthError"; | ||
import { DB_NAME, DB_TABLE_NAME, DB_VERSION } from "../utils/BrowserConstants"; | ||
import { IAsyncStorage } from "./IAsyncStorage"; | ||
} from "../error/BrowserAuthError.js"; | ||
import { | ||
DB_NAME, | ||
DB_TABLE_NAME, | ||
DB_VERSION, | ||
} from "../utils/BrowserConstants.js"; | ||
import { IAsyncStorage } from "./IAsyncStorage.js"; | ||
@@ -14,0 +18,0 @@ interface IDBOpenDBRequestEvent extends Event { |
@@ -6,6 +6,6 @@ /* | ||
import { ExternalTokenResponse } from "@azure/msal-common"; | ||
import { SilentRequest } from "../request/SilentRequest"; | ||
import { LoadTokenOptions } from "./TokenCache"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
import { ExternalTokenResponse } from "@azure/msal-common/browser"; | ||
import { SilentRequest } from "../request/SilentRequest.js"; | ||
import { LoadTokenOptions } from "./TokenCache.js"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
@@ -12,0 +12,0 @@ export interface ITokenCache { |
@@ -6,3 +6,3 @@ /* | ||
import { IWindowStorage } from "./IWindowStorage"; | ||
import { IWindowStorage } from "./IWindowStorage.js"; | ||
@@ -9,0 +9,0 @@ export class MemoryStorage<T> implements IWindowStorage<T> { |
@@ -22,14 +22,14 @@ /* | ||
buildAccountToCache, | ||
} from "@azure/msal-common"; | ||
import { BrowserConfiguration } from "../config/Configuration"; | ||
import { SilentRequest } from "../request/SilentRequest"; | ||
import { BrowserCacheManager } from "./BrowserCacheManager"; | ||
import { ITokenCache } from "./ITokenCache"; | ||
} from "@azure/msal-common/browser"; | ||
import { BrowserConfiguration } from "../config/Configuration.js"; | ||
import { SilentRequest } from "../request/SilentRequest.js"; | ||
import { BrowserCacheManager } from "./BrowserCacheManager.js"; | ||
import { ITokenCache } from "./ITokenCache.js"; | ||
import { | ||
createBrowserAuthError, | ||
BrowserAuthErrorCodes, | ||
} from "../error/BrowserAuthError"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
import { base64Decode } from "../encode/Base64Decode"; | ||
import * as BrowserCrypto from "../crypto/BrowserCrypto"; | ||
} from "../error/BrowserAuthError.js"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
import { base64Decode } from "../encode/Base64Decode.js"; | ||
import * as BrowserCrypto from "../crypto/BrowserCrypto.js"; | ||
@@ -36,0 +36,0 @@ export type LoadTokenOptions = { |
@@ -25,10 +25,10 @@ /* | ||
Logger, | ||
} from "@azure/msal-common"; | ||
} from "@azure/msal-common/browser"; | ||
import { | ||
BrowserCacheLocation, | ||
BrowserConstants, | ||
} from "../utils/BrowserConstants"; | ||
import { INavigationClient } from "../navigation/INavigationClient"; | ||
import { NavigationClient } from "../navigation/NavigationClient"; | ||
import { FetchClient } from "../network/FetchClient"; | ||
} from "../utils/BrowserConstants.js"; | ||
import { INavigationClient } from "../navigation/INavigationClient.js"; | ||
import { NavigationClient } from "../navigation/NavigationClient.js"; | ||
import { FetchClient } from "../network/FetchClient.js"; | ||
@@ -107,2 +107,6 @@ // Default timeout for popup windows and iframes in milliseconds | ||
onRedirectNavigate?: (url: string) => boolean | void; | ||
/** | ||
* Flag of whether the STS will send back additional parameters to specify where the tokens should be retrieved from. | ||
*/ | ||
instanceAware?: boolean; | ||
}; | ||
@@ -293,2 +297,3 @@ | ||
supportsNestedAppAuth: false, | ||
instanceAware: false, | ||
}; | ||
@@ -295,0 +300,0 @@ |
@@ -6,9 +6,9 @@ /* | ||
import { NestedAppOperatingContext } from "../operatingcontext/NestedAppOperatingContext"; | ||
import { StandardOperatingContext } from "../operatingcontext/StandardOperatingContext"; | ||
import { IController } from "./IController"; | ||
import { Configuration } from "../config/Configuration"; | ||
import { StandardController } from "./StandardController"; | ||
import { NestedAppAuthController } from "./NestedAppAuthController"; | ||
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest"; | ||
import { NestedAppOperatingContext } from "../operatingcontext/NestedAppOperatingContext.js"; | ||
import { StandardOperatingContext } from "../operatingcontext/StandardOperatingContext.js"; | ||
import { IController } from "./IController.js"; | ||
import { Configuration } from "../config/Configuration.js"; | ||
import { StandardController } from "./StandardController.js"; | ||
import { NestedAppAuthController } from "./NestedAppAuthController.js"; | ||
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest.js"; | ||
@@ -15,0 +15,0 @@ export async function createV3Controller( |
@@ -12,19 +12,19 @@ /* | ||
AccountFilter, | ||
} from "@azure/msal-common"; | ||
import { RedirectRequest } from "../request/RedirectRequest"; | ||
import { PopupRequest } from "../request/PopupRequest"; | ||
import { SilentRequest } from "../request/SilentRequest"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest"; | ||
import { EndSessionRequest } from "../request/EndSessionRequest"; | ||
import { ApiId, WrapperSKU } from "../utils/BrowserConstants"; | ||
import { INavigationClient } from "../navigation/INavigationClient"; | ||
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest"; | ||
import { ITokenCache } from "../cache/ITokenCache"; | ||
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest"; | ||
import { BrowserConfiguration } from "../config/Configuration"; | ||
import { EventHandler } from "../event/EventHandler"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
import { EventCallbackFunction } from "../event/EventMessage"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest"; | ||
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest"; | ||
} from "@azure/msal-common/browser"; | ||
import { RedirectRequest } from "../request/RedirectRequest.js"; | ||
import { PopupRequest } from "../request/PopupRequest.js"; | ||
import { SilentRequest } from "../request/SilentRequest.js"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest.js"; | ||
import { EndSessionRequest } from "../request/EndSessionRequest.js"; | ||
import { ApiId, WrapperSKU } from "../utils/BrowserConstants.js"; | ||
import { INavigationClient } from "../navigation/INavigationClient.js"; | ||
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest.js"; | ||
import { ITokenCache } from "../cache/ITokenCache.js"; | ||
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest.js"; | ||
import { BrowserConfiguration } from "../config/Configuration.js"; | ||
import { EventHandler } from "../event/EventHandler.js"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
import { EventCallbackFunction } from "../event/EventMessage.js"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest.js"; | ||
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest.js"; | ||
@@ -31,0 +31,0 @@ export interface IController { |
@@ -22,13 +22,13 @@ /* | ||
AccountFilter, | ||
} from "@azure/msal-common"; | ||
import { ITokenCache } from "../cache/ITokenCache"; | ||
import { BrowserConfiguration } from "../config/Configuration"; | ||
import { INavigationClient } from "../navigation/INavigationClient"; | ||
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest"; | ||
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest"; | ||
import { EndSessionRequest } from "../request/EndSessionRequest"; | ||
import { PopupRequest } from "../request/PopupRequest"; | ||
import { RedirectRequest } from "../request/RedirectRequest"; | ||
import { SilentRequest } from "../request/SilentRequest"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest"; | ||
} from "@azure/msal-common/browser"; | ||
import { ITokenCache } from "../cache/ITokenCache.js"; | ||
import { BrowserConfiguration } from "../config/Configuration.js"; | ||
import { INavigationClient } from "../navigation/INavigationClient.js"; | ||
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest.js"; | ||
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest.js"; | ||
import { EndSessionRequest } from "../request/EndSessionRequest.js"; | ||
import { PopupRequest } from "../request/PopupRequest.js"; | ||
import { RedirectRequest } from "../request/RedirectRequest.js"; | ||
import { SilentRequest } from "../request/SilentRequest.js"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest.js"; | ||
import { | ||
@@ -39,19 +39,19 @@ ApiId, | ||
DEFAULT_REQUEST, | ||
} from "../utils/BrowserConstants"; | ||
import { IController } from "./IController"; | ||
import { NestedAppOperatingContext } from "../operatingcontext/NestedAppOperatingContext"; | ||
import { IBridgeProxy } from "../naa/IBridgeProxy"; | ||
import { CryptoOps } from "../crypto/CryptoOps"; | ||
import { NestedAppAuthAdapter } from "../naa/mapping/NestedAppAuthAdapter"; | ||
import { NestedAppAuthError } from "../error/NestedAppAuthError"; | ||
import { EventHandler } from "../event/EventHandler"; | ||
import { EventType } from "../event/EventType"; | ||
import { EventCallbackFunction, EventError } from "../event/EventMessage"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
} from "../utils/BrowserConstants.js"; | ||
import { IController } from "./IController.js"; | ||
import { NestedAppOperatingContext } from "../operatingcontext/NestedAppOperatingContext.js"; | ||
import { IBridgeProxy } from "../naa/IBridgeProxy.js"; | ||
import { CryptoOps } from "../crypto/CryptoOps.js"; | ||
import { NestedAppAuthAdapter } from "../naa/mapping/NestedAppAuthAdapter.js"; | ||
import { NestedAppAuthError } from "../error/NestedAppAuthError.js"; | ||
import { EventHandler } from "../event/EventHandler.js"; | ||
import { EventType } from "../event/EventType.js"; | ||
import { EventCallbackFunction, EventError } from "../event/EventMessage.js"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
import { | ||
BrowserCacheManager, | ||
DEFAULT_BROWSER_CACHE_MANAGER, | ||
} from "../cache/BrowserCacheManager"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest"; | ||
import * as AccountManager from "../cache/AccountManager"; | ||
} from "../cache/BrowserCacheManager.js"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest.js"; | ||
import * as AccountManager from "../cache/AccountManager.js"; | ||
@@ -58,0 +58,0 @@ export class NestedAppAuthController implements IController { |
@@ -16,29 +16,29 @@ /* | ||
AccountFilter, | ||
} from "@azure/msal-common"; | ||
import { ITokenCache } from "../cache/ITokenCache"; | ||
import { BrowserConfiguration } from "../config/Configuration"; | ||
} from "@azure/msal-common/browser"; | ||
import { ITokenCache } from "../cache/ITokenCache.js"; | ||
import { BrowserConfiguration } from "../config/Configuration.js"; | ||
import { | ||
BrowserCacheManager, | ||
DEFAULT_BROWSER_CACHE_MANAGER, | ||
} from "../cache/BrowserCacheManager"; | ||
import { INavigationClient } from "../navigation/INavigationClient"; | ||
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest"; | ||
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest"; | ||
import { EndSessionRequest } from "../request/EndSessionRequest"; | ||
import { PopupRequest } from "../request/PopupRequest"; | ||
import { RedirectRequest } from "../request/RedirectRequest"; | ||
import { SilentRequest } from "../request/SilentRequest"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
import { ApiId, WrapperSKU } from "../utils/BrowserConstants"; | ||
import { IController } from "./IController"; | ||
import { UnknownOperatingContext } from "../operatingcontext/UnknownOperatingContext"; | ||
import { CryptoOps } from "../crypto/CryptoOps"; | ||
} from "../cache/BrowserCacheManager.js"; | ||
import { INavigationClient } from "../navigation/INavigationClient.js"; | ||
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest.js"; | ||
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest.js"; | ||
import { EndSessionRequest } from "../request/EndSessionRequest.js"; | ||
import { PopupRequest } from "../request/PopupRequest.js"; | ||
import { RedirectRequest } from "../request/RedirectRequest.js"; | ||
import { SilentRequest } from "../request/SilentRequest.js"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest.js"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
import { ApiId, WrapperSKU } from "../utils/BrowserConstants.js"; | ||
import { IController } from "./IController.js"; | ||
import { UnknownOperatingContext } from "../operatingcontext/UnknownOperatingContext.js"; | ||
import { CryptoOps } from "../crypto/CryptoOps.js"; | ||
import { | ||
blockAPICallsBeforeInitialize, | ||
blockNonBrowserEnvironment, | ||
} from "../utils/BrowserUtils"; | ||
import { EventHandler } from "../event/EventHandler"; | ||
import { EventCallbackFunction } from "../event/EventMessage"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest"; | ||
} from "../utils/BrowserUtils.js"; | ||
import { EventHandler } from "../event/EventHandler.js"; | ||
import { EventCallbackFunction } from "../event/EventMessage.js"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest.js"; | ||
@@ -45,0 +45,0 @@ /** |
@@ -9,3 +9,3 @@ /* | ||
BrowserAuthErrorCodes, | ||
} from "../error/BrowserAuthError"; | ||
} from "../error/BrowserAuthError.js"; | ||
import { | ||
@@ -15,5 +15,5 @@ IPerformanceClient, | ||
PerformanceEvents, | ||
} from "@azure/msal-common"; | ||
import { KEY_FORMAT_JWK } from "../utils/BrowserConstants"; | ||
import { urlEncodeArr } from "../encode/Base64Encode"; | ||
} from "@azure/msal-common/browser"; | ||
import { KEY_FORMAT_JWK } from "../utils/BrowserConstants.js"; | ||
import { urlEncodeArr } from "../encode/Base64Encode.js"; | ||
@@ -20,0 +20,0 @@ /** |
@@ -15,11 +15,15 @@ /* | ||
SignedHttpRequestParameters, | ||
} from "@azure/msal-common"; | ||
import { base64Encode, urlEncode, urlEncodeArr } from "../encode/Base64Encode"; | ||
import { base64Decode } from "../encode/Base64Decode"; | ||
import * as BrowserCrypto from "./BrowserCrypto"; | ||
} from "@azure/msal-common/browser"; | ||
import { | ||
base64Encode, | ||
urlEncode, | ||
urlEncodeArr, | ||
} from "../encode/Base64Encode.js"; | ||
import { base64Decode } from "../encode/Base64Decode.js"; | ||
import * as BrowserCrypto from "./BrowserCrypto.js"; | ||
import { | ||
createBrowserAuthError, | ||
BrowserAuthErrorCodes, | ||
} from "../error/BrowserAuthError"; | ||
import { AsyncMemoryStorage } from "../cache/AsyncMemoryStorage"; | ||
} from "../error/BrowserAuthError.js"; | ||
import { AsyncMemoryStorage } from "../cache/AsyncMemoryStorage.js"; | ||
@@ -26,0 +30,0 @@ export type CachedKeyPair = { |
@@ -13,9 +13,9 @@ /* | ||
invokeAsync, | ||
} from "@azure/msal-common"; | ||
} from "@azure/msal-common/browser"; | ||
import { | ||
createBrowserAuthError, | ||
BrowserAuthErrorCodes, | ||
} from "../error/BrowserAuthError"; | ||
import { urlEncodeArr } from "../encode/Base64Encode"; | ||
import { getRandomValues, sha256Digest } from "./BrowserCrypto"; | ||
} from "../error/BrowserAuthError.js"; | ||
import { urlEncodeArr } from "../encode/Base64Encode.js"; | ||
import { getRandomValues, sha256Digest } from "./BrowserCrypto.js"; | ||
@@ -22,0 +22,0 @@ // Constant byte array length |
@@ -6,3 +6,3 @@ /* | ||
import { CryptoOps } from "./CryptoOps"; | ||
import { CryptoOps } from "./CryptoOps.js"; | ||
import { | ||
@@ -13,4 +13,4 @@ Logger, | ||
SignedHttpRequestParameters, | ||
} from "@azure/msal-common"; | ||
import { version, name } from "../packageMetadata"; | ||
} from "@azure/msal-common/browser"; | ||
import { version, name } from "../packageMetadata.js"; | ||
@@ -17,0 +17,0 @@ export type SignedHttpRequestOptions = { |
@@ -9,3 +9,3 @@ /* | ||
createBrowserAuthError, | ||
} from "../error/BrowserAuthError"; | ||
} from "../error/BrowserAuthError.js"; | ||
@@ -12,0 +12,0 @@ /** |
@@ -6,4 +6,4 @@ /* | ||
import { AuthError } from "@azure/msal-common"; | ||
import * as BrowserAuthErrorCodes from "./BrowserAuthErrorCodes"; | ||
import { AuthError } from "@azure/msal-common/browser"; | ||
import * as BrowserAuthErrorCodes from "./BrowserAuthErrorCodes.js"; | ||
export { BrowserAuthErrorCodes }; // Allow importing as "BrowserAuthErrorCodes" | ||
@@ -10,0 +10,0 @@ |
@@ -6,4 +6,4 @@ /* | ||
import { AuthError } from "@azure/msal-common"; | ||
import * as BrowserConfigurationAuthErrorCodes from "./BrowserConfigurationAuthErrorCodes"; | ||
import { AuthError } from "@azure/msal-common/browser"; | ||
import * as BrowserConfigurationAuthErrorCodes from "./BrowserConfigurationAuthErrorCodes.js"; | ||
export { BrowserConfigurationAuthErrorCodes }; | ||
@@ -10,0 +10,0 @@ |
@@ -11,10 +11,10 @@ /* | ||
createInteractionRequiredAuthError, | ||
} from "@azure/msal-common"; | ||
} from "@azure/msal-common/browser"; | ||
import { | ||
createBrowserAuthError, | ||
BrowserAuthErrorCodes, | ||
} from "./BrowserAuthError"; | ||
} from "./BrowserAuthError.js"; | ||
import * as NativeAuthErrorCodes from "./NativeAuthErrorCodes"; | ||
import * as NativeStatusCodes from "../broker/nativeBroker/NativeStatusCodes"; | ||
import * as NativeAuthErrorCodes from "./NativeAuthErrorCodes.js"; | ||
import * as NativeStatusCodes from "../broker/nativeBroker/NativeStatusCodes.js"; | ||
export { NativeAuthErrorCodes }; | ||
@@ -21,0 +21,0 @@ |
@@ -6,3 +6,3 @@ /* | ||
import { AuthError } from "@azure/msal-common"; | ||
import { AuthError } from "@azure/msal-common/browser"; | ||
@@ -9,0 +9,0 @@ /** |
@@ -12,4 +12,4 @@ /* | ||
PersistentCacheKeys, | ||
} from "@azure/msal-common"; | ||
import { InteractionType } from "../utils/BrowserConstants"; | ||
} from "@azure/msal-common/browser"; | ||
import { InteractionType } from "../utils/BrowserConstants.js"; | ||
import { | ||
@@ -20,5 +20,5 @@ EventCallbackFunction, | ||
EventPayload, | ||
} from "./EventMessage"; | ||
import { EventType } from "./EventType"; | ||
import { createNewGuid } from "../crypto/BrowserCrypto"; | ||
} from "./EventMessage.js"; | ||
import { EventType } from "./EventType.js"; | ||
import { createNewGuid } from "../crypto/BrowserCrypto.js"; | ||
@@ -25,0 +25,0 @@ export class EventHandler { |
@@ -6,13 +6,14 @@ /* | ||
import { AuthError, AccountInfo } from "@azure/msal-common"; | ||
import { EventType } from "./EventType"; | ||
import { InteractionStatus, InteractionType } from "../utils/BrowserConstants"; | ||
import { AuthError, AccountInfo } from "@azure/msal-common/browser"; | ||
import { EventType } from "./EventType.js"; | ||
import { | ||
PopupRequest, | ||
RedirectRequest, | ||
SilentRequest, | ||
SsoSilentRequest, | ||
EndSessionRequest, | ||
AuthenticationResult, | ||
} from ".."; | ||
InteractionStatus, | ||
InteractionType, | ||
} from "../utils/BrowserConstants.js"; | ||
import { PopupRequest } from "../request/PopupRequest.js"; | ||
import { RedirectRequest } from "../request/RedirectRequest.js"; | ||
import { SilentRequest } from "../request/SilentRequest.js"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest.js"; | ||
import { EndSessionRequest } from "../request/EndSessionRequest.js"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
@@ -19,0 +20,0 @@ export type EventMessage = { |
@@ -11,3 +11,3 @@ /* | ||
import * as BrowserUtils from "./utils/BrowserUtils"; | ||
import * as BrowserUtils from "./utils/BrowserUtils.js"; | ||
export { BrowserUtils }; | ||
@@ -19,5 +19,5 @@ | ||
createStandardPublicClientApplication, | ||
} from "./app/PublicClientApplication"; | ||
export { PublicClientNext } from "./app/PublicClientNext"; | ||
export { IController } from "./controllers/IController"; | ||
} from "./app/PublicClientApplication.js"; | ||
export { PublicClientNext } from "./app/PublicClientNext.js"; | ||
export { IController } from "./controllers/IController.js"; | ||
export { | ||
@@ -31,3 +31,3 @@ Configuration, | ||
DEFAULT_IFRAME_TIMEOUT_MS, | ||
} from "./config/Configuration"; | ||
} from "./config/Configuration.js"; | ||
export { | ||
@@ -40,3 +40,3 @@ InteractionType, | ||
CacheLookupPolicy, | ||
} from "./utils/BrowserConstants"; | ||
} from "./utils/BrowserConstants.js"; | ||
@@ -48,3 +48,3 @@ // Browser Errors | ||
BrowserAuthErrorCodes, | ||
} from "./error/BrowserAuthError"; | ||
} from "./error/BrowserAuthError.js"; | ||
export { | ||
@@ -54,3 +54,3 @@ BrowserConfigurationAuthError, | ||
BrowserConfigurationAuthErrorMessage, | ||
} from "./error/BrowserConfigurationAuthError"; | ||
} from "./error/BrowserConfigurationAuthError.js"; | ||
@@ -61,25 +61,25 @@ // Interfaces | ||
stubbedPublicClientApplication, | ||
} from "./app/IPublicClientApplication"; | ||
export { INavigationClient } from "./navigation/INavigationClient"; | ||
export { NavigationClient } from "./navigation/NavigationClient"; | ||
export { NavigationOptions } from "./navigation/NavigationOptions"; | ||
export { PopupRequest } from "./request/PopupRequest"; | ||
export { RedirectRequest } from "./request/RedirectRequest"; | ||
export { SilentRequest } from "./request/SilentRequest"; | ||
export { SsoSilentRequest } from "./request/SsoSilentRequest"; | ||
export { EndSessionRequest } from "./request/EndSessionRequest"; | ||
export { EndSessionPopupRequest } from "./request/EndSessionPopupRequest"; | ||
export { AuthorizationUrlRequest } from "./request/AuthorizationUrlRequest"; | ||
export { AuthorizationCodeRequest } from "./request/AuthorizationCodeRequest"; | ||
export { AuthenticationResult } from "./response/AuthenticationResult"; | ||
export { ClearCacheRequest } from "./request/ClearCacheRequest"; | ||
export { InitializeApplicationRequest } from "./request/InitializeApplicationRequest"; | ||
} from "./app/IPublicClientApplication.js"; | ||
export { INavigationClient } from "./navigation/INavigationClient.js"; | ||
export { NavigationClient } from "./navigation/NavigationClient.js"; | ||
export { NavigationOptions } from "./navigation/NavigationOptions.js"; | ||
export { PopupRequest } from "./request/PopupRequest.js"; | ||
export { RedirectRequest } from "./request/RedirectRequest.js"; | ||
export { SilentRequest } from "./request/SilentRequest.js"; | ||
export { SsoSilentRequest } from "./request/SsoSilentRequest.js"; | ||
export { EndSessionRequest } from "./request/EndSessionRequest.js"; | ||
export { EndSessionPopupRequest } from "./request/EndSessionPopupRequest.js"; | ||
export { AuthorizationUrlRequest } from "./request/AuthorizationUrlRequest.js"; | ||
export { AuthorizationCodeRequest } from "./request/AuthorizationCodeRequest.js"; | ||
export { AuthenticationResult } from "./response/AuthenticationResult.js"; | ||
export { ClearCacheRequest } from "./request/ClearCacheRequest.js"; | ||
export { InitializeApplicationRequest } from "./request/InitializeApplicationRequest.js"; | ||
// Cache | ||
export { LoadTokenOptions } from "./cache/TokenCache"; | ||
export { ITokenCache } from "./cache/ITokenCache"; | ||
export { LoadTokenOptions } from "./cache/TokenCache.js"; | ||
export { ITokenCache } from "./cache/ITokenCache.js"; | ||
// Storage | ||
export { MemoryStorage } from "./cache/MemoryStorage"; | ||
export { BrowserStorage } from "./cache/BrowserStorage"; | ||
export { MemoryStorage } from "./cache/MemoryStorage.js"; | ||
export { BrowserStorage } from "./cache/BrowserStorage.js"; | ||
@@ -94,4 +94,4 @@ // Events | ||
PopupEvent, | ||
} from "./event/EventMessage"; | ||
export { EventType } from "./event/EventType"; | ||
} from "./event/EventMessage.js"; | ||
export { EventType } from "./event/EventType.js"; | ||
@@ -101,3 +101,3 @@ export { | ||
SignedHttpRequestOptions, | ||
} from "./crypto/SignedHttpRequest"; | ||
} from "./crypto/SignedHttpRequest.js"; | ||
@@ -108,7 +108,7 @@ export { | ||
PopupPosition, | ||
} from "./request/PopupWindowAttributes"; | ||
} from "./request/PopupWindowAttributes.js"; | ||
// Telemetry | ||
export { BrowserPerformanceClient } from "./telemetry/BrowserPerformanceClient"; | ||
export { BrowserPerformanceMeasurement } from "./telemetry/BrowserPerformanceMeasurement"; | ||
export { BrowserPerformanceClient } from "./telemetry/BrowserPerformanceClient.js"; | ||
export { BrowserPerformanceMeasurement } from "./telemetry/BrowserPerformanceMeasurement.js"; | ||
@@ -167,4 +167,4 @@ // Common Object Formats | ||
StubPerformanceClient, | ||
} from "@azure/msal-common"; | ||
} from "@azure/msal-common/browser"; | ||
export { version } from "./packageMetadata"; | ||
export { version } from "./packageMetadata.js"; |
@@ -24,18 +24,19 @@ /* | ||
invokeAsync, | ||
} from "@azure/msal-common"; | ||
import { BrowserConfiguration } from "../config/Configuration"; | ||
import { BrowserCacheManager } from "../cache/BrowserCacheManager"; | ||
import { EventHandler } from "../event/EventHandler"; | ||
import { EndSessionRequest } from "../request/EndSessionRequest"; | ||
import { RedirectRequest } from "../request/RedirectRequest"; | ||
import { PopupRequest } from "../request/PopupRequest"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest"; | ||
import { version } from "../packageMetadata"; | ||
import { BrowserConstants } from "../utils/BrowserConstants"; | ||
import * as BrowserUtils from "../utils/BrowserUtils"; | ||
import { INavigationClient } from "../navigation/INavigationClient"; | ||
import { NativeMessageHandler } from "../broker/nativeBroker/NativeMessageHandler"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest"; | ||
import { createNewGuid } from "../crypto/BrowserCrypto"; | ||
StringDict, | ||
} from "@azure/msal-common/browser"; | ||
import { BrowserConfiguration } from "../config/Configuration.js"; | ||
import { BrowserCacheManager } from "../cache/BrowserCacheManager.js"; | ||
import { EventHandler } from "../event/EventHandler.js"; | ||
import { EndSessionRequest } from "../request/EndSessionRequest.js"; | ||
import { RedirectRequest } from "../request/RedirectRequest.js"; | ||
import { PopupRequest } from "../request/PopupRequest.js"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest.js"; | ||
import { version } from "../packageMetadata.js"; | ||
import { BrowserConstants } from "../utils/BrowserConstants.js"; | ||
import * as BrowserUtils from "../utils/BrowserUtils.js"; | ||
import { INavigationClient } from "../navigation/INavigationClient.js"; | ||
import { NativeMessageHandler } from "../broker/nativeBroker/NativeMessageHandler.js"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest.js"; | ||
import { createNewGuid } from "../crypto/BrowserCrypto.js"; | ||
@@ -181,11 +182,22 @@ export abstract class BaseInteractionClient { | ||
* Used to get a discovered version of the default authority. | ||
* @param requestAuthority | ||
* @param requestAzureCloudOptions | ||
* @param account | ||
* @param params { | ||
* requestAuthority?: string; | ||
* requestAzureCloudOptions?: AzureCloudOptions; | ||
* requestExtraQueryParameters?: StringDict; | ||
* account?: AccountInfo; | ||
* } | ||
*/ | ||
protected async getDiscoveredAuthority( | ||
requestAuthority?: string, | ||
requestAzureCloudOptions?: AzureCloudOptions, | ||
account?: AccountInfo | ||
): Promise<Authority> { | ||
protected async getDiscoveredAuthority(params: { | ||
requestAuthority?: string; | ||
requestAzureCloudOptions?: AzureCloudOptions; | ||
requestExtraQueryParameters?: StringDict; | ||
account?: AccountInfo; | ||
}): Promise<Authority> { | ||
const { account } = params; | ||
const instanceAwareEQ = | ||
params.requestExtraQueryParameters && | ||
params.requestExtraQueryParameters.hasOwnProperty("instance_aware") | ||
? params.requestExtraQueryParameters["instance_aware"] | ||
: undefined; | ||
this.performanceClient.addQueueMeasurement( | ||
@@ -206,10 +218,21 @@ PerformanceEvents.StandardInteractionClientGetDiscoveredAuthority, | ||
// build authority string based on auth params, precedence - azureCloudInstance + tenant >> authority | ||
const userAuthority = requestAuthority | ||
? requestAuthority | ||
: this.config.auth.authority; | ||
const resolvedAuthority = | ||
params.requestAuthority || this.config.auth.authority; | ||
const resolvedInstanceAware = instanceAwareEQ?.length | ||
? instanceAwareEQ === "true" | ||
: this.config.auth.instanceAware; | ||
const userAuthority = | ||
account && resolvedInstanceAware | ||
? this.config.auth.authority.replace( | ||
UrlString.getDomainFromUrl(resolvedAuthority), | ||
account.environment | ||
) | ||
: resolvedAuthority; | ||
// fall back to the authority from config | ||
const builtAuthority = Authority.generateAuthority( | ||
userAuthority, | ||
requestAzureCloudOptions || this.config.auth.azureCloudOptions | ||
params.requestAzureCloudOptions || | ||
this.config.auth.azureCloudOptions | ||
); | ||
@@ -216,0 +239,0 @@ const discoveredAuthority = await invokeAsync( |
@@ -9,3 +9,3 @@ /* | ||
ClientConfiguration, | ||
} from "@azure/msal-common"; | ||
} from "@azure/msal-common/browser"; | ||
@@ -12,0 +12,0 @@ export class HybridSpaAuthorizationCodeClient extends AuthorizationCodeClient { |
@@ -40,11 +40,11 @@ /* | ||
ServerTelemetryManager, | ||
} from "@azure/msal-common"; | ||
import { BaseInteractionClient } from "./BaseInteractionClient"; | ||
import { BrowserConfiguration } from "../config/Configuration"; | ||
import { BrowserCacheManager } from "../cache/BrowserCacheManager"; | ||
import { EventHandler } from "../event/EventHandler"; | ||
import { PopupRequest } from "../request/PopupRequest"; | ||
import { SilentRequest } from "../request/SilentRequest"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest"; | ||
import { NativeMessageHandler } from "../broker/nativeBroker/NativeMessageHandler"; | ||
} from "@azure/msal-common/browser"; | ||
import { BaseInteractionClient } from "./BaseInteractionClient.js"; | ||
import { BrowserConfiguration } from "../config/Configuration.js"; | ||
import { BrowserCacheManager } from "../cache/BrowserCacheManager.js"; | ||
import { EventHandler } from "../event/EventHandler.js"; | ||
import { PopupRequest } from "../request/PopupRequest.js"; | ||
import { SilentRequest } from "../request/SilentRequest.js"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest.js"; | ||
import { NativeMessageHandler } from "../broker/nativeBroker/NativeMessageHandler.js"; | ||
import { | ||
@@ -56,8 +56,8 @@ NativeExtensionMethod, | ||
BrowserConstants, | ||
} from "../utils/BrowserConstants"; | ||
} from "../utils/BrowserConstants.js"; | ||
import { | ||
NativeExtensionRequestBody, | ||
NativeTokenRequest, | ||
} from "../broker/nativeBroker/NativeRequest"; | ||
import { MATS, NativeResponse } from "../broker/nativeBroker/NativeResponse"; | ||
} from "../broker/nativeBroker/NativeRequest.js"; | ||
import { MATS, NativeResponse } from "../broker/nativeBroker/NativeResponse.js"; | ||
import { | ||
@@ -68,14 +68,14 @@ NativeAuthError, | ||
isFatalNativeAuthError, | ||
} from "../error/NativeAuthError"; | ||
import { RedirectRequest } from "../request/RedirectRequest"; | ||
import { NavigationOptions } from "../navigation/NavigationOptions"; | ||
import { INavigationClient } from "../navigation/INavigationClient"; | ||
} from "../error/NativeAuthError.js"; | ||
import { RedirectRequest } from "../request/RedirectRequest.js"; | ||
import { NavigationOptions } from "../navigation/NavigationOptions.js"; | ||
import { INavigationClient } from "../navigation/INavigationClient.js"; | ||
import { | ||
createBrowserAuthError, | ||
BrowserAuthErrorCodes, | ||
} from "../error/BrowserAuthError"; | ||
import { SilentCacheClient } from "./SilentCacheClient"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
import { base64Decode } from "../encode/Base64Decode"; | ||
import { version } from "../packageMetadata"; | ||
} from "../error/BrowserAuthError.js"; | ||
import { SilentCacheClient } from "./SilentCacheClient.js"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
import { base64Decode } from "../encode/Base64Decode.js"; | ||
import { version } from "../packageMetadata.js"; | ||
@@ -511,3 +511,5 @@ const BrokerServerParamKeys = { | ||
// Get the preferred_cache domain for the given authority | ||
const authority = await this.getDiscoveredAuthority(request.authority); | ||
const authority = await this.getDiscoveredAuthority({ | ||
requestAuthority: request.authority, | ||
}); | ||
@@ -912,14 +914,15 @@ const baseAccount = buildAccountToCache( | ||
const authority = request.authority || this.config.auth.authority; | ||
const requestAuthority = | ||
request.authority || this.config.auth.authority; | ||
if (request.account) { | ||
// validate authority | ||
await this.getDiscoveredAuthority( | ||
authority, | ||
request.azureCloudOptions, | ||
request.account | ||
); | ||
await this.getDiscoveredAuthority({ | ||
requestAuthority, | ||
requestAzureCloudOptions: request.azureCloudOptions, | ||
account: request.account, | ||
}); | ||
} | ||
const canonicalAuthority = new UrlString(authority); | ||
const canonicalAuthority = new UrlString(requestAuthority); | ||
canonicalAuthority.validateAsUri(); | ||
@@ -926,0 +929,0 @@ |
@@ -23,5 +23,5 @@ /* | ||
invoke, | ||
} from "@azure/msal-common"; | ||
import { StandardInteractionClient } from "./StandardInteractionClient"; | ||
import { EventType } from "../event/EventType"; | ||
} from "@azure/msal-common/browser"; | ||
import { StandardInteractionClient } from "./StandardInteractionClient.js"; | ||
import { EventType } from "../event/EventType.js"; | ||
import { | ||
@@ -31,22 +31,22 @@ InteractionType, | ||
BrowserConstants, | ||
} from "../utils/BrowserConstants"; | ||
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest"; | ||
import { NavigationOptions } from "../navigation/NavigationOptions"; | ||
import * as BrowserUtils from "../utils/BrowserUtils"; | ||
import { PopupRequest } from "../request/PopupRequest"; | ||
import { NativeInteractionClient } from "./NativeInteractionClient"; | ||
import { NativeMessageHandler } from "../broker/nativeBroker/NativeMessageHandler"; | ||
} from "../utils/BrowserConstants.js"; | ||
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest.js"; | ||
import { NavigationOptions } from "../navigation/NavigationOptions.js"; | ||
import * as BrowserUtils from "../utils/BrowserUtils.js"; | ||
import { PopupRequest } from "../request/PopupRequest.js"; | ||
import { NativeInteractionClient } from "./NativeInteractionClient.js"; | ||
import { NativeMessageHandler } from "../broker/nativeBroker/NativeMessageHandler.js"; | ||
import { | ||
createBrowserAuthError, | ||
BrowserAuthErrorCodes, | ||
} from "../error/BrowserAuthError"; | ||
import { INavigationClient } from "../navigation/INavigationClient"; | ||
import { EventHandler } from "../event/EventHandler"; | ||
import { BrowserCacheManager } from "../cache/BrowserCacheManager"; | ||
import { BrowserConfiguration } from "../config/Configuration"; | ||
import { InteractionHandler } from "../interaction_handler/InteractionHandler"; | ||
import { PopupWindowAttributes } from "../request/PopupWindowAttributes"; | ||
import { EventError } from "../event/EventMessage"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
import * as ResponseHandler from "../response/ResponseHandler"; | ||
} from "../error/BrowserAuthError.js"; | ||
import { INavigationClient } from "../navigation/INavigationClient.js"; | ||
import { EventHandler } from "../event/EventHandler.js"; | ||
import { BrowserCacheManager } from "../cache/BrowserCacheManager.js"; | ||
import { BrowserConfiguration } from "../config/Configuration.js"; | ||
import { InteractionHandler } from "../interaction_handler/InteractionHandler.js"; | ||
import { PopupWindowAttributes } from "../request/PopupWindowAttributes.js"; | ||
import { EventError } from "../event/EventMessage.js"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
import * as ResponseHandler from "../response/ResponseHandler.js"; | ||
@@ -57,2 +57,3 @@ export type PopupParams = { | ||
popupWindowAttributes: PopupWindowAttributes; | ||
popupWindowParent: Window; | ||
}; | ||
@@ -102,3 +103,7 @@ | ||
); | ||
const popupWindowAttributes = request.popupWindowAttributes || {}; | ||
const popupParams: PopupParams = { | ||
popupName, | ||
popupWindowAttributes: request.popupWindowAttributes || {}, | ||
popupWindowParent: request.popupWindowParent ?? window, | ||
}; | ||
@@ -109,7 +114,3 @@ // asyncPopups flag is true. Acquires token without first opening popup. Popup will be opened later asynchronously. | ||
// Passes on popup position and dimensions if in request | ||
return this.acquireTokenPopupAsync( | ||
request, | ||
popupName, | ||
popupWindowAttributes | ||
); | ||
return this.acquireTokenPopupAsync(request, popupParams); | ||
} else { | ||
@@ -120,13 +121,7 @@ // asyncPopups flag is set to false. Opens popup before acquiring token. | ||
); | ||
const popup = this.openSizedPopup( | ||
popupParams.popup = this.openSizedPopup( | ||
"about:blank", | ||
popupName, | ||
popupWindowAttributes | ||
popupParams | ||
); | ||
return this.acquireTokenPopupAsync( | ||
request, | ||
popupName, | ||
popupWindowAttributes, | ||
popup | ||
); | ||
return this.acquireTokenPopupAsync(request, popupParams); | ||
} | ||
@@ -147,9 +142,11 @@ } catch (e) { | ||
this.initializeLogoutRequest(logoutRequest); | ||
const popupName = this.generateLogoutPopupName(validLogoutRequest); | ||
const popupParams: PopupParams = { | ||
popupName: this.generateLogoutPopupName(validLogoutRequest), | ||
popupWindowAttributes: | ||
logoutRequest?.popupWindowAttributes || {}, | ||
popupWindowParent: logoutRequest?.popupWindowParent ?? window, | ||
}; | ||
const authority = logoutRequest && logoutRequest.authority; | ||
const mainWindowRedirectUri = | ||
logoutRequest && logoutRequest.mainWindowRedirectUri; | ||
const popupWindowAttributes = | ||
logoutRequest?.popupWindowAttributes || {}; | ||
@@ -162,6 +159,4 @@ // asyncPopups flag is true. Acquires token without first opening popup. Popup will be opened later asynchronously. | ||
validLogoutRequest, | ||
popupName, | ||
popupWindowAttributes, | ||
popupParams, | ||
authority, | ||
undefined, | ||
mainWindowRedirectUri | ||
@@ -172,13 +167,10 @@ ); | ||
this.logger.verbose("asyncPopup set to false, opening popup"); | ||
const popup = this.openSizedPopup( | ||
popupParams.popup = this.openSizedPopup( | ||
"about:blank", | ||
popupName, | ||
popupWindowAttributes | ||
popupParams | ||
); | ||
return this.logoutPopupAsync( | ||
validLogoutRequest, | ||
popupName, | ||
popupWindowAttributes, | ||
popupParams, | ||
authority, | ||
popup, | ||
mainWindowRedirectUri | ||
@@ -204,5 +196,3 @@ ); | ||
request: PopupRequest, | ||
popupName: string, | ||
popupWindowAttributes: PopupWindowAttributes, | ||
popup?: Window | null | ||
popupParams: PopupParams | ||
): Promise<AuthenticationResult> { | ||
@@ -242,8 +232,9 @@ this.logger.verbose("acquireTokenPopupAsync called"); | ||
this.correlationId | ||
)( | ||
)({ | ||
serverTelemetryManager, | ||
validRequest.authority, | ||
validRequest.azureCloudOptions, | ||
validRequest.account | ||
); | ||
requestAuthority: validRequest.authority, | ||
requestAzureCloudOptions: validRequest.azureCloudOptions, | ||
requestExtraQueryParameters: validRequest.extraQueryParameters, | ||
account: validRequest.account, | ||
}); | ||
@@ -282,10 +273,5 @@ const isNativeBroker = NativeMessageHandler.isNativeAvailable( | ||
// Show the UI once the url has been created. Get the window handle for the popup. | ||
const popupParameters: PopupParams = { | ||
popup, | ||
popupName, | ||
popupWindowAttributes, | ||
}; | ||
const popupWindow: Window = this.initiateAuthRequest( | ||
navigateUrl, | ||
popupParameters | ||
popupParams | ||
); | ||
@@ -300,3 +286,6 @@ this.eventHandler.emitEvent( | ||
// Monitor the window for the hash. Return the string value and close the popup when the hash is received. Default timeout is 60 seconds. | ||
const responseString = await this.monitorPopupForHash(popupWindow); | ||
const responseString = await this.monitorPopupForHash( | ||
popupWindow, | ||
popupParams.popupWindowParent | ||
); | ||
@@ -371,6 +360,4 @@ const serverParams = invoke( | ||
} catch (e) { | ||
if (popup) { | ||
// Close the synchronous popup if an error is thrown before the window unload event is registered | ||
popup.close(); | ||
} | ||
// Close the synchronous popup if an error is thrown before the window unload event is registered | ||
popupParams.popup?.close(); | ||
@@ -397,6 +384,4 @@ if (e instanceof AuthError) { | ||
validRequest: CommonEndSessionRequest, | ||
popupName: string, | ||
popupWindowAttributes: PopupWindowAttributes, | ||
popupParams: PopupParams, | ||
requestAuthority?: string, | ||
popup?: Window | null, | ||
mainWindowRedirectUri?: string | ||
@@ -426,8 +411,7 @@ ): Promise<void> { | ||
this.correlationId | ||
)( | ||
)({ | ||
serverTelemetryManager, | ||
requestAuthority, | ||
undefined, // AzureCloudOptions | ||
validRequest.account || undefined | ||
); | ||
requestAuthority: requestAuthority, | ||
account: validRequest.account || undefined, | ||
}); | ||
@@ -469,5 +453,3 @@ try { | ||
if (popup) { | ||
popup.close(); | ||
} | ||
popupParams.popup?.close(); | ||
@@ -488,7 +470,3 @@ return; | ||
// Open the popup window to requestUrl. | ||
const popupWindow = this.openPopup(logoutUri, { | ||
popupName, | ||
popupWindowAttributes, | ||
popup, | ||
}); | ||
const popupWindow = this.openPopup(logoutUri, popupParams); | ||
this.eventHandler.emitEvent( | ||
@@ -501,3 +479,6 @@ EventType.POPUP_OPENED, | ||
await this.monitorPopupForHash(popupWindow).catch(() => { | ||
await this.monitorPopupForHash( | ||
popupWindow, | ||
popupParams.popupWindowParent | ||
).catch(() => { | ||
// Swallow any errors related to monitoring the window. Server logout is best effort | ||
@@ -531,6 +512,4 @@ }); | ||
} catch (e) { | ||
if (popup) { | ||
// Close the synchronous popup if an error is thrown before the window unload event is registered | ||
popup.close(); | ||
} | ||
// Close the synchronous popup if an error is thrown before the window unload event is registered | ||
popupParams.popup?.close(); | ||
@@ -585,3 +564,6 @@ if (e instanceof AuthError) { | ||
*/ | ||
monitorPopupForHash(popupWindow: Window): Promise<string> { | ||
monitorPopupForHash( | ||
popupWindow: Window, | ||
popupWindowParent: Window | ||
): Promise<string> { | ||
return new Promise<string>((resolve, reject) => { | ||
@@ -641,3 +623,3 @@ this.logger.verbose( | ||
}).finally(() => { | ||
this.cleanPopup(popupWindow); | ||
this.cleanPopup(popupWindow, popupWindowParent); | ||
}); | ||
@@ -674,7 +656,3 @@ } | ||
); | ||
popupWindow = this.openSizedPopup( | ||
urlNavigate, | ||
popupParams.popupName, | ||
popupParams.popupWindowAttributes | ||
); | ||
popupWindow = this.openSizedPopup(urlNavigate, popupParams); | ||
} | ||
@@ -692,3 +670,6 @@ | ||
this.currentWindow = popupWindow; | ||
window.addEventListener("beforeunload", this.unloadWindow); | ||
popupParams.popupWindowParent.addEventListener( | ||
"beforeunload", | ||
this.unloadWindow | ||
); | ||
@@ -716,4 +697,3 @@ return popupWindow; | ||
urlNavigate: string, | ||
popupName: string, | ||
popupWindowAttributes: PopupWindowAttributes | ||
{ popupName, popupWindowAttributes, popupWindowParent }: PopupParams | ||
): Window | null { | ||
@@ -724,4 +704,8 @@ /** | ||
*/ | ||
const winLeft = window.screenLeft ? window.screenLeft : window.screenX; | ||
const winTop = window.screenTop ? window.screenTop : window.screenY; | ||
const winLeft = popupWindowParent.screenLeft | ||
? popupWindowParent.screenLeft | ||
: popupWindowParent.screenX; | ||
const winTop = popupWindowParent.screenTop | ||
? popupWindowParent.screenTop | ||
: popupWindowParent.screenY; | ||
/** | ||
@@ -732,7 +716,7 @@ * window.innerWidth displays browser window"s height and width excluding toolbars | ||
const winWidth = | ||
window.innerWidth || | ||
popupWindowParent.innerWidth || | ||
document.documentElement.clientWidth || | ||
document.body.clientWidth; | ||
const winHeight = | ||
window.innerHeight || | ||
popupWindowParent.innerHeight || | ||
document.documentElement.clientHeight || | ||
@@ -780,3 +764,3 @@ document.body.clientHeight; | ||
return window.open( | ||
return popupWindowParent.open( | ||
urlNavigate, | ||
@@ -806,9 +790,11 @@ popupName, | ||
*/ | ||
cleanPopup(popupWindow?: Window): void { | ||
if (popupWindow) { | ||
// Close window. | ||
popupWindow.close(); | ||
} | ||
cleanPopup(popupWindow: Window, popupWindowParent: Window): void { | ||
// Close window. | ||
popupWindow.close(); | ||
// Remove window unload function | ||
window.removeEventListener("beforeunload", this.unloadWindow); | ||
popupWindowParent.removeEventListener( | ||
"beforeunload", | ||
this.unloadWindow | ||
); | ||
@@ -815,0 +801,0 @@ // Interaction is completed - remove interaction status. |
@@ -25,4 +25,4 @@ /* | ||
InProgressPerformanceEvent, | ||
} from "@azure/msal-common"; | ||
import { StandardInteractionClient } from "./StandardInteractionClient"; | ||
} from "@azure/msal-common/browser"; | ||
import { StandardInteractionClient } from "./StandardInteractionClient.js"; | ||
import { | ||
@@ -32,22 +32,22 @@ ApiId, | ||
TemporaryCacheKeys, | ||
} from "../utils/BrowserConstants"; | ||
import { RedirectHandler } from "../interaction_handler/RedirectHandler"; | ||
import * as BrowserUtils from "../utils/BrowserUtils"; | ||
import { EndSessionRequest } from "../request/EndSessionRequest"; | ||
import { EventType } from "../event/EventType"; | ||
import { NavigationOptions } from "../navigation/NavigationOptions"; | ||
} from "../utils/BrowserConstants.js"; | ||
import { RedirectHandler } from "../interaction_handler/RedirectHandler.js"; | ||
import * as BrowserUtils from "../utils/BrowserUtils.js"; | ||
import { EndSessionRequest } from "../request/EndSessionRequest.js"; | ||
import { EventType } from "../event/EventType.js"; | ||
import { NavigationOptions } from "../navigation/NavigationOptions.js"; | ||
import { | ||
createBrowserAuthError, | ||
BrowserAuthErrorCodes, | ||
} from "../error/BrowserAuthError"; | ||
import { RedirectRequest } from "../request/RedirectRequest"; | ||
import { NativeInteractionClient } from "./NativeInteractionClient"; | ||
import { NativeMessageHandler } from "../broker/nativeBroker/NativeMessageHandler"; | ||
import { BrowserConfiguration } from "../config/Configuration"; | ||
import { BrowserCacheManager } from "../cache/BrowserCacheManager"; | ||
import { EventHandler } from "../event/EventHandler"; | ||
import { INavigationClient } from "../navigation/INavigationClient"; | ||
import { EventError } from "../event/EventMessage"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
import * as ResponseHandler from "../response/ResponseHandler"; | ||
} from "../error/BrowserAuthError.js"; | ||
import { RedirectRequest } from "../request/RedirectRequest.js"; | ||
import { NativeInteractionClient } from "./NativeInteractionClient.js"; | ||
import { NativeMessageHandler } from "../broker/nativeBroker/NativeMessageHandler.js"; | ||
import { BrowserConfiguration } from "../config/Configuration.js"; | ||
import { BrowserCacheManager } from "../cache/BrowserCacheManager.js"; | ||
import { EventHandler } from "../event/EventHandler.js"; | ||
import { INavigationClient } from "../navigation/INavigationClient.js"; | ||
import { EventError } from "../event/EventMessage.js"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
import * as ResponseHandler from "../response/ResponseHandler.js"; | ||
@@ -139,8 +139,9 @@ export class RedirectClient extends StandardInteractionClient { | ||
this.correlationId | ||
)( | ||
)({ | ||
serverTelemetryManager, | ||
validRequest.authority, | ||
validRequest.azureCloudOptions, | ||
validRequest.account | ||
); | ||
requestAuthority: validRequest.authority, | ||
requestAzureCloudOptions: validRequest.azureCloudOptions, | ||
requestExtraQueryParameters: validRequest.extraQueryParameters, | ||
account: validRequest.account, | ||
}); | ||
@@ -483,3 +484,3 @@ // Create redirect interaction handler. | ||
this.correlationId | ||
)(serverTelemetryManager, currentAuthority); | ||
)({ serverTelemetryManager, requestAuthority: currentAuthority }); | ||
@@ -535,8 +536,9 @@ ThrottlingUtils.removeThrottle( | ||
this.correlationId | ||
)( | ||
)({ | ||
serverTelemetryManager, | ||
logoutRequest && logoutRequest.authority, | ||
undefined, // AzureCloudOptions | ||
(logoutRequest && logoutRequest.account) || undefined | ||
); | ||
requestAuthority: logoutRequest && logoutRequest.authority, | ||
requestExtraQueryParameters: | ||
logoutRequest?.extraQueryParameters, | ||
account: (logoutRequest && logoutRequest.account) || undefined, | ||
}); | ||
@@ -543,0 +545,0 @@ if (authClient.authority.protocolMode === ProtocolMode.OIDC) { |
@@ -14,19 +14,19 @@ /* | ||
invokeAsync, | ||
} from "@azure/msal-common"; | ||
import { StandardInteractionClient } from "./StandardInteractionClient"; | ||
import { AuthorizationUrlRequest } from "../request/AuthorizationUrlRequest"; | ||
import { BrowserConfiguration } from "../config/Configuration"; | ||
import { BrowserCacheManager } from "../cache/BrowserCacheManager"; | ||
import { EventHandler } from "../event/EventHandler"; | ||
import { INavigationClient } from "../navigation/INavigationClient"; | ||
} from "@azure/msal-common/browser"; | ||
import { StandardInteractionClient } from "./StandardInteractionClient.js"; | ||
import { AuthorizationUrlRequest } from "../request/AuthorizationUrlRequest.js"; | ||
import { BrowserConfiguration } from "../config/Configuration.js"; | ||
import { BrowserCacheManager } from "../cache/BrowserCacheManager.js"; | ||
import { EventHandler } from "../event/EventHandler.js"; | ||
import { INavigationClient } from "../navigation/INavigationClient.js"; | ||
import { | ||
createBrowserAuthError, | ||
BrowserAuthErrorCodes, | ||
} from "../error/BrowserAuthError"; | ||
import { InteractionType, ApiId } from "../utils/BrowserConstants"; | ||
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest"; | ||
import { HybridSpaAuthorizationCodeClient } from "./HybridSpaAuthorizationCodeClient"; | ||
import { NativeMessageHandler } from "../broker/nativeBroker/NativeMessageHandler"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
import { InteractionHandler } from "../interaction_handler/InteractionHandler"; | ||
} from "../error/BrowserAuthError.js"; | ||
import { InteractionType, ApiId } from "../utils/BrowserConstants.js"; | ||
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest.js"; | ||
import { HybridSpaAuthorizationCodeClient } from "./HybridSpaAuthorizationCodeClient.js"; | ||
import { NativeMessageHandler } from "../broker/nativeBroker/NativeMessageHandler.js"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
import { InteractionHandler } from "../interaction_handler/InteractionHandler.js"; | ||
@@ -103,8 +103,9 @@ export class SilentAuthCodeClient extends StandardInteractionClient { | ||
request.correlationId | ||
)( | ||
)({ | ||
serverTelemetryManager, | ||
silentRequest.authority, | ||
silentRequest.azureCloudOptions, | ||
silentRequest.account | ||
); | ||
requestAuthority: silentRequest.authority, | ||
requestAzureCloudOptions: silentRequest.azureCloudOptions, | ||
requestExtraQueryParameters: silentRequest.extraQueryParameters, | ||
account: silentRequest.account, | ||
}); | ||
const authClient: HybridSpaAuthorizationCodeClient = | ||
@@ -111,0 +112,0 @@ new HybridSpaAuthorizationCodeClient(clientConfig); |
@@ -6,3 +6,3 @@ /* | ||
import { StandardInteractionClient } from "./StandardInteractionClient"; | ||
import { StandardInteractionClient } from "./StandardInteractionClient.js"; | ||
import { | ||
@@ -13,10 +13,10 @@ CommonSilentFlowRequest, | ||
invokeAsync, | ||
} from "@azure/msal-common"; | ||
import { ApiId } from "../utils/BrowserConstants"; | ||
} from "@azure/msal-common/browser"; | ||
import { ApiId } from "../utils/BrowserConstants.js"; | ||
import { | ||
BrowserAuthError, | ||
BrowserAuthErrorCodes, | ||
} from "../error/BrowserAuthError"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest"; | ||
} from "../error/BrowserAuthError.js"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest.js"; | ||
@@ -46,8 +46,8 @@ export class SilentCacheClient extends StandardInteractionClient { | ||
this.correlationId | ||
)( | ||
)({ | ||
serverTelemetryManager, | ||
silentRequest.authority, | ||
silentRequest.azureCloudOptions, | ||
silentRequest.account | ||
); | ||
requestAuthority: silentRequest.authority, | ||
requestAzureCloudOptions: silentRequest.azureCloudOptions, | ||
account: silentRequest.account, | ||
}); | ||
const silentAuthClient = new SilentFlowClient( | ||
@@ -54,0 +54,0 @@ clientConfig, |
@@ -18,13 +18,13 @@ /* | ||
invoke, | ||
} from "@azure/msal-common"; | ||
import { StandardInteractionClient } from "./StandardInteractionClient"; | ||
import { AuthorizationUrlRequest } from "../request/AuthorizationUrlRequest"; | ||
import { BrowserConfiguration } from "../config/Configuration"; | ||
import { BrowserCacheManager } from "../cache/BrowserCacheManager"; | ||
import { EventHandler } from "../event/EventHandler"; | ||
import { INavigationClient } from "../navigation/INavigationClient"; | ||
} from "@azure/msal-common/browser"; | ||
import { StandardInteractionClient } from "./StandardInteractionClient.js"; | ||
import { AuthorizationUrlRequest } from "../request/AuthorizationUrlRequest.js"; | ||
import { BrowserConfiguration } from "../config/Configuration.js"; | ||
import { BrowserCacheManager } from "../cache/BrowserCacheManager.js"; | ||
import { EventHandler } from "../event/EventHandler.js"; | ||
import { INavigationClient } from "../navigation/INavigationClient.js"; | ||
import { | ||
createBrowserAuthError, | ||
BrowserAuthErrorCodes, | ||
} from "../error/BrowserAuthError"; | ||
} from "../error/BrowserAuthError.js"; | ||
import { | ||
@@ -34,14 +34,14 @@ InteractionType, | ||
BrowserConstants, | ||
} from "../utils/BrowserConstants"; | ||
} from "../utils/BrowserConstants.js"; | ||
import { | ||
initiateAuthRequest, | ||
monitorIframeForHash, | ||
} from "../interaction_handler/SilentHandler"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest"; | ||
import { NativeMessageHandler } from "../broker/nativeBroker/NativeMessageHandler"; | ||
import { NativeInteractionClient } from "./NativeInteractionClient"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
import { InteractionHandler } from "../interaction_handler/InteractionHandler"; | ||
import * as BrowserUtils from "../utils/BrowserUtils"; | ||
import * as ResponseHandler from "../response/ResponseHandler"; | ||
} from "../interaction_handler/SilentHandler.js"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest.js"; | ||
import { NativeMessageHandler } from "../broker/nativeBroker/NativeMessageHandler.js"; | ||
import { NativeInteractionClient } from "./NativeInteractionClient.js"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
import { InteractionHandler } from "../interaction_handler/InteractionHandler.js"; | ||
import * as BrowserUtils from "../utils/BrowserUtils.js"; | ||
import * as ResponseHandler from "../response/ResponseHandler.js"; | ||
@@ -142,8 +142,9 @@ export class SilentIframeClient extends StandardInteractionClient { | ||
request.correlationId | ||
)( | ||
)({ | ||
serverTelemetryManager, | ||
silentRequest.authority, | ||
silentRequest.azureCloudOptions, | ||
silentRequest.account | ||
); | ||
requestAuthority: silentRequest.authority, | ||
requestAzureCloudOptions: silentRequest.azureCloudOptions, | ||
requestExtraQueryParameters: silentRequest.extraQueryParameters, | ||
account: silentRequest.account, | ||
}); | ||
@@ -150,0 +151,0 @@ return await invokeAsync( |
@@ -6,3 +6,3 @@ /* | ||
import { StandardInteractionClient } from "./StandardInteractionClient"; | ||
import { StandardInteractionClient } from "./StandardInteractionClient.js"; | ||
import { | ||
@@ -17,10 +17,11 @@ CommonSilentFlowRequest, | ||
AccountInfo, | ||
} from "@azure/msal-common"; | ||
import { ApiId } from "../utils/BrowserConstants"; | ||
StringDict, | ||
} from "@azure/msal-common/browser"; | ||
import { ApiId } from "../utils/BrowserConstants.js"; | ||
import { | ||
createBrowserAuthError, | ||
BrowserAuthErrorCodes, | ||
} from "../error/BrowserAuthError"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
import { initializeBaseRequest } from "../request/RequestHelpers"; | ||
} from "../error/BrowserAuthError.js"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
import { initializeBaseRequest } from "../request/RequestHelpers.js"; | ||
@@ -63,8 +64,8 @@ export class SilentRefreshClient extends StandardInteractionClient { | ||
const refreshTokenClient = await this.createRefreshTokenClient( | ||
const refreshTokenClient = await this.createRefreshTokenClient({ | ||
serverTelemetryManager, | ||
silentRequest.authority, | ||
silentRequest.azureCloudOptions, | ||
silentRequest.account | ||
); | ||
authorityUrl: silentRequest.authority, | ||
azureCloudOptions: silentRequest.azureCloudOptions, | ||
account: silentRequest.account, | ||
}); | ||
// Send request to renew token. Auth module will throw errors if token cannot be renewed. | ||
@@ -100,11 +101,17 @@ return invokeAsync( | ||
* Creates a Refresh Client with the given authority, or the default authority. | ||
* @param serverTelemetryManager | ||
* @param authorityUrl | ||
* @param params { | ||
* serverTelemetryManager: ServerTelemetryManager; | ||
* authorityUrl?: string; | ||
* azureCloudOptions?: AzureCloudOptions; | ||
* extraQueryParams?: StringDict; | ||
* account?: AccountInfo; | ||
* } | ||
*/ | ||
protected async createRefreshTokenClient( | ||
serverTelemetryManager: ServerTelemetryManager, | ||
authorityUrl?: string, | ||
azureCloudOptions?: AzureCloudOptions, | ||
account?: AccountInfo | ||
): Promise<RefreshTokenClient> { | ||
protected async createRefreshTokenClient(params: { | ||
serverTelemetryManager: ServerTelemetryManager; | ||
authorityUrl?: string; | ||
azureCloudOptions?: AzureCloudOptions; | ||
extraQueryParameters?: StringDict; | ||
account?: AccountInfo; | ||
}): Promise<RefreshTokenClient> { | ||
// Create auth module. | ||
@@ -117,5 +124,11 @@ const clientConfig = await invokeAsync( | ||
this.correlationId | ||
)(serverTelemetryManager, authorityUrl, azureCloudOptions, account); | ||
)({ | ||
serverTelemetryManager: params.serverTelemetryManager, | ||
requestAuthority: params.authorityUrl, | ||
requestAzureCloudOptions: params.azureCloudOptions, | ||
requestExtraQueryParameters: params.extraQueryParameters, | ||
account: params.account, | ||
}); | ||
return new RefreshTokenClient(clientConfig, this.performanceClient); | ||
} | ||
} |
@@ -22,16 +22,20 @@ /* | ||
BaseAuthRequest, | ||
} from "@azure/msal-common"; | ||
import { BaseInteractionClient } from "./BaseInteractionClient"; | ||
import { AuthorizationUrlRequest } from "../request/AuthorizationUrlRequest"; | ||
import { BrowserConstants, InteractionType } from "../utils/BrowserConstants"; | ||
import { version } from "../packageMetadata"; | ||
import { BrowserStateObject } from "../utils/BrowserProtocolUtils"; | ||
import { EndSessionRequest } from "../request/EndSessionRequest"; | ||
import * as BrowserUtils from "../utils/BrowserUtils"; | ||
import { RedirectRequest } from "../request/RedirectRequest"; | ||
import { PopupRequest } from "../request/PopupRequest"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest"; | ||
import { generatePkceCodes } from "../crypto/PkceGenerator"; | ||
import { createNewGuid } from "../crypto/BrowserCrypto"; | ||
import { initializeBaseRequest } from "../request/RequestHelpers"; | ||
StringDict, | ||
} from "@azure/msal-common/browser"; | ||
import { BaseInteractionClient } from "./BaseInteractionClient.js"; | ||
import { AuthorizationUrlRequest } from "../request/AuthorizationUrlRequest.js"; | ||
import { | ||
BrowserConstants, | ||
InteractionType, | ||
} from "../utils/BrowserConstants.js"; | ||
import { version } from "../packageMetadata.js"; | ||
import { BrowserStateObject } from "../utils/BrowserProtocolUtils.js"; | ||
import { EndSessionRequest } from "../request/EndSessionRequest.js"; | ||
import * as BrowserUtils from "../utils/BrowserUtils.js"; | ||
import { RedirectRequest } from "../request/RedirectRequest.js"; | ||
import { PopupRequest } from "../request/PopupRequest.js"; | ||
import { SsoSilentRequest } from "../request/SsoSilentRequest.js"; | ||
import { generatePkceCodes } from "../crypto/PkceGenerator.js"; | ||
import { createNewGuid } from "../crypto/BrowserCrypto.js"; | ||
import { initializeBaseRequest } from "../request/RequestHelpers.js"; | ||
@@ -203,11 +207,17 @@ /** | ||
* Creates an Authorization Code Client with the given authority, or the default authority. | ||
* @param serverTelemetryManager | ||
* @param authorityUrl | ||
* @param params { | ||
* serverTelemetryManager: ServerTelemetryManager; | ||
* authorityUrl?: string; | ||
* requestAzureCloudOptions?: AzureCloudOptions; | ||
* requestExtraQueryParameters?: StringDict; | ||
* account?: AccountInfo; | ||
* } | ||
*/ | ||
protected async createAuthCodeClient( | ||
serverTelemetryManager: ServerTelemetryManager, | ||
authorityUrl?: string, | ||
requestAzureCloudOptions?: AzureCloudOptions, | ||
account?: AccountInfo | ||
): Promise<AuthorizationCodeClient> { | ||
protected async createAuthCodeClient(params: { | ||
serverTelemetryManager: ServerTelemetryManager; | ||
requestAuthority?: string; | ||
requestAzureCloudOptions?: AzureCloudOptions; | ||
requestExtraQueryParameters?: StringDict; | ||
account?: AccountInfo; | ||
}): Promise<AuthorizationCodeClient> { | ||
this.performanceClient.addQueueMeasurement( | ||
@@ -224,8 +234,4 @@ PerformanceEvents.StandardInteractionClientCreateAuthCodeClient, | ||
this.correlationId | ||
)( | ||
serverTelemetryManager, | ||
authorityUrl, | ||
requestAzureCloudOptions, | ||
account | ||
); | ||
)(params); | ||
return new AuthorizationCodeClient( | ||
@@ -239,12 +245,25 @@ clientConfig, | ||
* Creates a Client Configuration object with the given request authority, or the default authority. | ||
* @param serverTelemetryManager | ||
* @param requestAuthority | ||
* @param requestCorrelationId | ||
* @param params { | ||
* serverTelemetryManager: ServerTelemetryManager; | ||
* requestAuthority?: string; | ||
* requestAzureCloudOptions?: AzureCloudOptions; | ||
* requestExtraQueryParameters?: boolean; | ||
* account?: AccountInfo; | ||
* } | ||
*/ | ||
protected async getClientConfiguration( | ||
serverTelemetryManager: ServerTelemetryManager, | ||
requestAuthority?: string, | ||
requestAzureCloudOptions?: AzureCloudOptions, | ||
account?: AccountInfo | ||
): Promise<ClientConfiguration> { | ||
protected async getClientConfiguration(params: { | ||
serverTelemetryManager: ServerTelemetryManager; | ||
requestAuthority?: string; | ||
requestAzureCloudOptions?: AzureCloudOptions; | ||
requestExtraQueryParameters?: StringDict; | ||
account?: AccountInfo; | ||
}): Promise<ClientConfiguration> { | ||
const { | ||
serverTelemetryManager, | ||
requestAuthority, | ||
requestAzureCloudOptions, | ||
requestExtraQueryParameters, | ||
account, | ||
} = params; | ||
this.performanceClient.addQueueMeasurement( | ||
@@ -260,3 +279,8 @@ PerformanceEvents.StandardInteractionClientGetClientConfiguration, | ||
this.correlationId | ||
)(requestAuthority, requestAzureCloudOptions, account); | ||
)({ | ||
requestAuthority, | ||
requestAzureCloudOptions, | ||
requestExtraQueryParameters, | ||
account, | ||
}); | ||
const logger = this.config.system.loggerOptions; | ||
@@ -263,0 +287,0 @@ |
@@ -18,11 +18,11 @@ /* | ||
ServerAuthorizationCodeResponse, | ||
} from "@azure/msal-common"; | ||
} from "@azure/msal-common/browser"; | ||
import { BrowserCacheManager } from "../cache/BrowserCacheManager"; | ||
import { BrowserCacheManager } from "../cache/BrowserCacheManager.js"; | ||
import { | ||
createBrowserAuthError, | ||
BrowserAuthErrorCodes, | ||
} from "../error/BrowserAuthError"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
import { AuthorizationUrlRequest } from "../request/AuthorizationUrlRequest"; | ||
} from "../error/BrowserAuthError.js"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
import { AuthorizationUrlRequest } from "../request/AuthorizationUrlRequest.js"; | ||
@@ -29,0 +29,0 @@ /** |
@@ -18,12 +18,12 @@ /* | ||
ServerAuthorizationCodeResponse, | ||
} from "@azure/msal-common"; | ||
} from "@azure/msal-common/browser"; | ||
import { | ||
createBrowserAuthError, | ||
BrowserAuthErrorCodes, | ||
} from "../error/BrowserAuthError"; | ||
import { ApiId, TemporaryCacheKeys } from "../utils/BrowserConstants"; | ||
import { BrowserCacheManager } from "../cache/BrowserCacheManager"; | ||
import { INavigationClient } from "../navigation/INavigationClient"; | ||
import { NavigationOptions } from "../navigation/NavigationOptions"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
} from "../error/BrowserAuthError.js"; | ||
import { ApiId, TemporaryCacheKeys } from "../utils/BrowserConstants.js"; | ||
import { BrowserCacheManager } from "../cache/BrowserCacheManager.js"; | ||
import { INavigationClient } from "../navigation/INavigationClient.js"; | ||
import { NavigationOptions } from "../navigation/NavigationOptions.js"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
@@ -30,0 +30,0 @@ export type RedirectParams = { |
@@ -13,8 +13,8 @@ /* | ||
ServerResponseType, | ||
} from "@azure/msal-common"; | ||
} from "@azure/msal-common/browser"; | ||
import { | ||
createBrowserAuthError, | ||
BrowserAuthErrorCodes, | ||
} from "../error/BrowserAuthError"; | ||
import { DEFAULT_IFRAME_TIMEOUT_MS } from "../config/Configuration"; | ||
} from "../error/BrowserAuthError.js"; | ||
import { DEFAULT_IFRAME_TIMEOUT_MS } from "../config/Configuration.js"; | ||
@@ -21,0 +21,0 @@ /** |
@@ -6,4 +6,4 @@ /* | ||
import { AccountInfo } from "./AccountInfo"; | ||
import { TokenResponse } from "./TokenResponse"; | ||
import { AccountInfo } from "./AccountInfo.js"; | ||
import { TokenResponse } from "./TokenResponse.js"; | ||
@@ -10,0 +10,0 @@ export type AuthResult = { |
@@ -6,3 +6,3 @@ /* | ||
import { BridgeStatusCode } from "./BridgeStatusCode"; | ||
import { BridgeStatusCode } from "./BridgeStatusCode.js"; | ||
@@ -9,0 +9,0 @@ export type BridgeError = { |
@@ -6,15 +6,20 @@ /* | ||
import { AuthBridge, AuthBridgeResponse } from "./AuthBridge"; | ||
import { AuthResult } from "./AuthResult"; | ||
import { BridgeCapabilities } from "./BridgeCapabilities"; | ||
import { AccountContext } from "./BridgeAccountContext"; | ||
import { BridgeError } from "./BridgeError"; | ||
import { BridgeRequest } from "./BridgeRequest"; | ||
import { BridgeRequestEnvelope, BridgeMethods } from "./BridgeRequestEnvelope"; | ||
import { BridgeResponseEnvelope } from "./BridgeResponseEnvelope"; | ||
import { BridgeStatusCode } from "./BridgeStatusCode"; | ||
import { IBridgeProxy } from "./IBridgeProxy"; | ||
import { InitContext } from "./InitContext"; | ||
import { TokenRequest } from "./TokenRequest"; | ||
import * as BrowserCrypto from "../crypto/BrowserCrypto"; | ||
import { AuthBridge, AuthBridgeResponse } from "./AuthBridge.js"; | ||
import { AuthResult } from "./AuthResult.js"; | ||
import { BridgeCapabilities } from "./BridgeCapabilities.js"; | ||
import { AccountContext } from "./BridgeAccountContext.js"; | ||
import { BridgeError } from "./BridgeError.js"; | ||
import { BridgeRequest } from "./BridgeRequest.js"; | ||
import { | ||
BridgeRequestEnvelope, | ||
BridgeMethods, | ||
} from "./BridgeRequestEnvelope.js"; | ||
import { BridgeResponseEnvelope } from "./BridgeResponseEnvelope.js"; | ||
import { BridgeStatusCode } from "./BridgeStatusCode.js"; | ||
import { IBridgeProxy } from "./IBridgeProxy.js"; | ||
import { InitContext } from "./InitContext.js"; | ||
import { TokenRequest } from "./TokenRequest.js"; | ||
import * as BrowserCrypto from "../crypto/BrowserCrypto.js"; | ||
import { BrowserConstants } from "../utils/BrowserConstants.js"; | ||
import { version } from "../packageMetadata.js"; | ||
@@ -81,8 +86,4 @@ declare global { | ||
(resolve, reject) => { | ||
const message: BridgeRequestEnvelope = { | ||
messageType: "NestedAppAuthRequest", | ||
method: "GetInitContext", | ||
requestId: BrowserCrypto.createNewGuid(), | ||
sendTime: Date.now(), | ||
}; | ||
const message = BridgeProxy.buildRequest("GetInitContext"); | ||
const request: BridgeRequest = { | ||
@@ -149,2 +150,17 @@ requestId: message.requestId, | ||
private static buildRequest( | ||
method: BridgeMethods, | ||
requestParams?: Partial<BridgeRequestEnvelope> | ||
): BridgeRequestEnvelope { | ||
return { | ||
messageType: "NestedAppAuthRequest", | ||
method: method, | ||
requestId: BrowserCrypto.createNewGuid(), | ||
sendTime: Date.now(), | ||
clientLibrary: BrowserConstants.MSAL_SKU, | ||
clientLibraryVersion: version, | ||
...requestParams, | ||
}; | ||
} | ||
/** | ||
@@ -159,9 +175,3 @@ * A method used to send a request to the bridge | ||
): Promise<BridgeResponseEnvelope> { | ||
const message: BridgeRequestEnvelope = { | ||
messageType: "NestedAppAuthRequest", | ||
method: method, | ||
requestId: BrowserCrypto.createNewGuid(), | ||
sendTime: Date.now(), | ||
...requestParams, | ||
}; | ||
const message = BridgeProxy.buildRequest(method, requestParams); | ||
@@ -168,0 +178,0 @@ const promise = new Promise<BridgeResponseEnvelope>( |
@@ -6,3 +6,3 @@ /* | ||
import { BridgeResponseEnvelope } from "./BridgeResponseEnvelope"; | ||
import { BridgeResponseEnvelope } from "./BridgeResponseEnvelope.js"; | ||
@@ -9,0 +9,0 @@ export type BridgeRequest = { |
@@ -6,3 +6,3 @@ /* | ||
import { TokenRequest } from "./TokenRequest"; | ||
import { TokenRequest } from "./TokenRequest.js"; | ||
@@ -9,0 +9,0 @@ export type BridgeMethods = "GetToken" | "GetInitContext" | "GetTokenPopup"; |
@@ -6,6 +6,6 @@ /* | ||
import { BridgeError } from "./BridgeError"; | ||
import { TokenResponse } from "./TokenResponse"; | ||
import { AccountInfo } from "./AccountInfo"; | ||
import { InitContext } from "./InitContext"; | ||
import { BridgeError } from "./BridgeError.js"; | ||
import { TokenResponse } from "./TokenResponse.js"; | ||
import { AccountInfo } from "./AccountInfo.js"; | ||
import { InitContext } from "./InitContext.js"; | ||
@@ -12,0 +12,0 @@ export type BridgeResponseEnvelope = { |
@@ -6,6 +6,6 @@ /* | ||
import { AuthResult } from "./AuthResult"; | ||
import { AccountContext } from "./BridgeAccountContext"; | ||
import { BridgeCapabilities } from "./BridgeCapabilities"; | ||
import { TokenRequest } from "./TokenRequest"; | ||
import { AuthResult } from "./AuthResult.js"; | ||
import { AccountContext } from "./BridgeAccountContext.js"; | ||
import { BridgeCapabilities } from "./BridgeCapabilities.js"; | ||
import { TokenRequest } from "./TokenRequest.js"; | ||
@@ -12,0 +12,0 @@ export interface IBridgeProxy { |
@@ -6,4 +6,4 @@ /* | ||
import { BridgeCapabilities } from "./BridgeCapabilities"; | ||
import { AccountContext } from "./BridgeAccountContext"; | ||
import { BridgeCapabilities } from "./BridgeCapabilities.js"; | ||
import { AccountContext } from "./BridgeAccountContext.js"; | ||
@@ -10,0 +10,0 @@ export interface InitContext { |
@@ -6,6 +6,6 @@ /* | ||
import { TokenRequest } from "../TokenRequest"; | ||
import { AccountInfo as NaaAccountInfo } from "../AccountInfo"; | ||
import { RedirectRequest } from "../../request/RedirectRequest"; | ||
import { PopupRequest } from "../../request/PopupRequest"; | ||
import { TokenRequest } from "../TokenRequest.js"; | ||
import { AccountInfo as NaaAccountInfo } from "../AccountInfo.js"; | ||
import { RedirectRequest } from "../../request/RedirectRequest.js"; | ||
import { PopupRequest } from "../../request/PopupRequest.js"; | ||
import { | ||
@@ -33,10 +33,10 @@ AccountInfo as MsalAccountInfo, | ||
buildTenantProfile, | ||
} from "@azure/msal-common"; | ||
import { isBridgeError } from "../BridgeError"; | ||
import { BridgeStatusCode } from "../BridgeStatusCode"; | ||
import { AuthenticationResult } from "../../response/AuthenticationResult"; | ||
import {} from "../../error/BrowserAuthErrorCodes"; | ||
import { AuthResult } from "../AuthResult"; | ||
import { SsoSilentRequest } from "../../request/SsoSilentRequest"; | ||
import { SilentRequest } from "../../request/SilentRequest"; | ||
} from "@azure/msal-common/browser"; | ||
import { isBridgeError } from "../BridgeError.js"; | ||
import { BridgeStatusCode } from "../BridgeStatusCode.js"; | ||
import { AuthenticationResult } from "../../response/AuthenticationResult.js"; | ||
import {} from "../../error/BrowserAuthErrorCodes.js"; | ||
import { AuthResult } from "../AuthResult.js"; | ||
import { SsoSilentRequest } from "../../request/SsoSilentRequest.js"; | ||
import { SilentRequest } from "../../request/SilentRequest.js"; | ||
@@ -43,0 +43,0 @@ export class NestedAppAuthAdapter { |
@@ -6,3 +6,3 @@ /* | ||
import { NavigationOptions } from "./NavigationOptions"; | ||
import { NavigationOptions } from "./NavigationOptions.js"; | ||
@@ -9,0 +9,0 @@ export interface INavigationClient { |
@@ -6,4 +6,4 @@ /* | ||
import { INavigationClient } from "./INavigationClient"; | ||
import { NavigationOptions } from "./NavigationOptions"; | ||
import { INavigationClient } from "./INavigationClient.js"; | ||
import { NavigationOptions } from "./NavigationOptions.js"; | ||
@@ -10,0 +10,0 @@ export class NavigationClient implements INavigationClient { |
@@ -6,3 +6,3 @@ /* | ||
import { ApiId } from "../utils/BrowserConstants"; | ||
import { ApiId } from "../utils/BrowserConstants.js"; | ||
@@ -9,0 +9,0 @@ /** |
@@ -11,8 +11,8 @@ /* | ||
NetworkResponse, | ||
} from "@azure/msal-common"; | ||
} from "@azure/msal-common/browser"; | ||
import { | ||
createBrowserAuthError, | ||
BrowserAuthErrorCodes, | ||
} from "../error/BrowserAuthError"; | ||
import { HTTP_REQUEST_TYPE } from "../utils/BrowserConstants"; | ||
} from "../error/BrowserAuthError.js"; | ||
import { HTTP_REQUEST_TYPE } from "../utils/BrowserConstants.js"; | ||
@@ -19,0 +19,0 @@ /** |
@@ -6,3 +6,3 @@ /* | ||
import { Logger, LogLevel } from "@azure/msal-common"; | ||
import { Logger, LogLevel } from "@azure/msal-common/browser"; | ||
import { | ||
@@ -12,4 +12,4 @@ BrowserConfiguration, | ||
Configuration, | ||
} from "../config/Configuration"; | ||
import { version, name } from "../packageMetadata"; | ||
} from "../config/Configuration.js"; | ||
import { version, name } from "../packageMetadata.js"; | ||
import { | ||
@@ -19,3 +19,3 @@ BrowserCacheLocation, | ||
LOG_PII_CACHE_KEY, | ||
} from "../utils/BrowserConstants"; | ||
} from "../utils/BrowserConstants.js"; | ||
@@ -22,0 +22,0 @@ /** |
@@ -6,7 +6,13 @@ /* | ||
import { BaseOperatingContext } from "./BaseOperatingContext"; | ||
import { IBridgeProxy } from "../naa/IBridgeProxy"; | ||
import { BridgeProxy } from "../naa/BridgeProxy"; | ||
import { AccountContext } from "../naa/BridgeAccountContext"; | ||
import { BaseOperatingContext } from "./BaseOperatingContext.js"; | ||
import { IBridgeProxy } from "../naa/IBridgeProxy.js"; | ||
import { BridgeProxy } from "../naa/BridgeProxy.js"; | ||
import { AccountContext } from "../naa/BridgeAccountContext.js"; | ||
declare global { | ||
interface Window { | ||
__initializeNestedAppAuth?(): Promise<void>; | ||
} | ||
} | ||
export class NestedAppOperatingContext extends BaseOperatingContext { | ||
@@ -58,9 +64,8 @@ protected bridgeProxy: IBridgeProxy | undefined = undefined; | ||
async initialize(): Promise<boolean> { | ||
/* | ||
* TODO: Add implementation to check for presence of inject Nested App Auth Bridge JavaScript interface | ||
* | ||
*/ | ||
try { | ||
if (typeof window !== "undefined") { | ||
if (typeof window.__initializeNestedAppAuth === "function") { | ||
await window.__initializeNestedAppAuth(); | ||
} | ||
const bridgeProxy: IBridgeProxy = await BridgeProxy.create(); | ||
@@ -67,0 +72,0 @@ /* |
@@ -6,3 +6,3 @@ /* | ||
import { BaseOperatingContext } from "./BaseOperatingContext"; | ||
import { BaseOperatingContext } from "./BaseOperatingContext.js"; | ||
@@ -9,0 +9,0 @@ export class StandardOperatingContext extends BaseOperatingContext { |
@@ -6,3 +6,3 @@ /* | ||
import { BaseOperatingContext } from "./BaseOperatingContext"; | ||
import { BaseOperatingContext } from "./BaseOperatingContext.js"; | ||
@@ -9,0 +9,0 @@ export class UnknownOperatingContext extends BaseOperatingContext { |
/* eslint-disable header/header */ | ||
export const name = "@azure/msal-browser"; | ||
export const version = "3.23.0"; | ||
export const version = "3.24.0"; |
@@ -6,3 +6,3 @@ /* | ||
import { CommonAuthorizationCodeRequest } from "@azure/msal-common"; | ||
import { CommonAuthorizationCodeRequest } from "@azure/msal-common/browser"; | ||
@@ -9,0 +9,0 @@ export type AuthorizationCodeRequest = Partial< |
@@ -6,3 +6,3 @@ /* | ||
import { CommonAuthorizationUrlRequest } from "@azure/msal-common"; | ||
import { CommonAuthorizationUrlRequest } from "@azure/msal-common/browser"; | ||
@@ -9,0 +9,0 @@ /** |
@@ -6,3 +6,3 @@ /* | ||
import { AccountInfo } from "@azure/msal-common"; | ||
import { AccountInfo } from "@azure/msal-common/browser"; | ||
@@ -9,0 +9,0 @@ /** |
@@ -6,4 +6,4 @@ /* | ||
import { CommonEndSessionRequest } from "@azure/msal-common"; | ||
import { PopupWindowAttributes } from "./PopupWindowAttributes"; | ||
import { CommonEndSessionRequest } from "@azure/msal-common/browser"; | ||
import { PopupWindowAttributes } from "./PopupWindowAttributes.js"; | ||
@@ -20,2 +20,3 @@ /** | ||
* - logoutHint - A string that specifies the account that is being logged out in order to skip the server account picker on logout | ||
* - popupWindowParent - Optional window object to use as the parent when opening popup windows. Uses global `window` if not given. | ||
*/ | ||
@@ -28,2 +29,3 @@ export type EndSessionPopupRequest = Partial< | ||
popupWindowAttributes?: PopupWindowAttributes; | ||
popupWindowParent?: Window; | ||
}; |
@@ -6,3 +6,3 @@ /* | ||
import { CommonEndSessionRequest } from "@azure/msal-common"; | ||
import { CommonEndSessionRequest } from "@azure/msal-common/browser"; | ||
@@ -9,0 +9,0 @@ /** |
@@ -6,4 +6,7 @@ /* | ||
import { CommonAuthorizationUrlRequest, StringDict } from "@azure/msal-common"; | ||
import { PopupWindowAttributes } from "./PopupWindowAttributes"; | ||
import { | ||
CommonAuthorizationUrlRequest, | ||
StringDict, | ||
} from "@azure/msal-common/browser"; | ||
import { PopupWindowAttributes } from "./PopupWindowAttributes.js"; | ||
@@ -36,2 +39,3 @@ /** | ||
* - popupWindowAttributes - Optional popup window attributes. popupSize with height and width, and popupPosition with top and left can be set. | ||
* - popupWindowParent - Optional window object to use as the parent when opening popup windows. Uses global `window` if not given. | ||
*/ | ||
@@ -53,2 +57,3 @@ | ||
tokenBodyParameters?: StringDict; | ||
popupWindowParent?: Window; | ||
}; |
@@ -6,3 +6,6 @@ /* | ||
import { CommonAuthorizationUrlRequest, StringDict } from "@azure/msal-common"; | ||
import { | ||
CommonAuthorizationUrlRequest, | ||
StringDict, | ||
} from "@azure/msal-common/browser"; | ||
@@ -9,0 +12,0 @@ /** |
@@ -18,6 +18,6 @@ /* | ||
invokeAsync, | ||
} from "@azure/msal-common"; | ||
import { BrowserConfiguration } from "../config/Configuration"; | ||
import { SilentRequest } from "./SilentRequest"; | ||
import { hashString } from "../crypto/BrowserCrypto"; | ||
} from "@azure/msal-common/browser"; | ||
import { BrowserConfiguration } from "../config/Configuration.js"; | ||
import { SilentRequest } from "./SilentRequest.js"; | ||
import { hashString } from "../crypto/BrowserCrypto.js"; | ||
@@ -24,0 +24,0 @@ /** |
@@ -10,4 +10,4 @@ /* | ||
StringDict, | ||
} from "@azure/msal-common"; | ||
import { CacheLookupPolicy } from "../utils/BrowserConstants"; | ||
} from "@azure/msal-common/browser"; | ||
import { CacheLookupPolicy } from "../utils/BrowserConstants.js"; | ||
@@ -14,0 +14,0 @@ /** |
@@ -6,3 +6,6 @@ /* | ||
import { CommonAuthorizationUrlRequest, StringDict } from "@azure/msal-common"; | ||
import { | ||
CommonAuthorizationUrlRequest, | ||
StringDict, | ||
} from "@azure/msal-common/browser"; | ||
@@ -9,0 +12,0 @@ /** |
@@ -9,3 +9,3 @@ /* | ||
AuthenticationResult as CommonAuthenticationResult, | ||
} from "@azure/msal-common"; | ||
} from "@azure/msal-common/browser"; | ||
@@ -12,0 +12,0 @@ export type AuthenticationResult = CommonAuthenticationResult & { |
@@ -11,9 +11,9 @@ /* | ||
UrlUtils, | ||
} from "@azure/msal-common"; | ||
} from "@azure/msal-common/browser"; | ||
import { | ||
BrowserAuthErrorCodes, | ||
createBrowserAuthError, | ||
} from "../error/BrowserAuthError"; | ||
import { extractBrowserRequestState } from "../utils/BrowserProtocolUtils"; | ||
import { InteractionType } from "../utils/BrowserConstants"; | ||
} from "../error/BrowserAuthError.js"; | ||
import { extractBrowserRequestState } from "../utils/BrowserProtocolUtils.js"; | ||
import { InteractionType } from "../utils/BrowserConstants.js"; | ||
@@ -20,0 +20,0 @@ export function deserializeResponse( |
@@ -16,10 +16,10 @@ /* | ||
SubMeasurement, | ||
} from "@azure/msal-common"; | ||
import { Configuration } from "../config/Configuration"; | ||
import { name, version } from "../packageMetadata"; | ||
} from "@azure/msal-common/browser"; | ||
import { Configuration } from "../config/Configuration.js"; | ||
import { name, version } from "../packageMetadata.js"; | ||
import { | ||
BROWSER_PERF_ENABLED_KEY, | ||
BrowserCacheLocation, | ||
} from "../utils/BrowserConstants"; | ||
import * as BrowserCrypto from "../crypto/BrowserCrypto"; | ||
} from "../utils/BrowserConstants.js"; | ||
import * as BrowserCrypto from "../crypto/BrowserCrypto.js"; | ||
@@ -35,3 +35,3 @@ /** | ||
if (Number(perfEnabled) === 1) { | ||
return import("./BrowserPerformanceMeasurement"); | ||
return import("./BrowserPerformanceMeasurement.js"); | ||
} | ||
@@ -38,0 +38,0 @@ // Mute errors if it's a non-browser environment or cookies are blocked. |
@@ -6,3 +6,6 @@ /* | ||
import { IPerformanceMeasurement, SubMeasurement } from "@azure/msal-common"; | ||
import { | ||
IPerformanceMeasurement, | ||
SubMeasurement, | ||
} from "@azure/msal-common/browser"; | ||
@@ -9,0 +12,0 @@ export class BrowserPerformanceMeasurement implements IPerformanceMeasurement { |
@@ -6,5 +6,5 @@ /* | ||
import { OIDC_DEFAULT_SCOPES } from "@azure/msal-common"; | ||
import { PopupRequest } from "../request/PopupRequest"; | ||
import { RedirectRequest } from "../request/RedirectRequest"; | ||
import { OIDC_DEFAULT_SCOPES } from "@azure/msal-common/browser"; | ||
import { PopupRequest } from "../request/PopupRequest.js"; | ||
import { RedirectRequest } from "../request/RedirectRequest.js"; | ||
@@ -11,0 +11,0 @@ /** |
@@ -6,3 +6,3 @@ /* | ||
import { InteractionType } from "./BrowserConstants"; | ||
import { InteractionType } from "./BrowserConstants.js"; | ||
import { | ||
@@ -14,3 +14,3 @@ ICrypto, | ||
ClientAuthErrorCodes, | ||
} from "@azure/msal-common"; | ||
} from "@azure/msal-common/browser"; | ||
@@ -17,0 +17,0 @@ export type BrowserStateObject = { |
@@ -6,14 +6,14 @@ /* | ||
import { UrlString, invoke, invokeAsync } from "@azure/msal-common"; | ||
import { UrlString, invoke, invokeAsync } from "@azure/msal-common/browser"; | ||
import { | ||
createBrowserAuthError, | ||
BrowserAuthErrorCodes, | ||
} from "../error/BrowserAuthError"; | ||
import { BrowserConstants, BrowserCacheLocation } from "./BrowserConstants"; | ||
import * as BrowserCrypto from "../crypto/BrowserCrypto"; | ||
} from "../error/BrowserAuthError.js"; | ||
import { BrowserConstants, BrowserCacheLocation } from "./BrowserConstants.js"; | ||
import * as BrowserCrypto from "../crypto/BrowserCrypto.js"; | ||
import { | ||
BrowserConfigurationAuthErrorCodes, | ||
createBrowserConfigurationAuthError, | ||
} from "../error/BrowserConfigurationAuthError"; | ||
import { BrowserConfiguration } from "../config/Configuration"; | ||
} from "../error/BrowserConfigurationAuthError.js"; | ||
import { BrowserConfiguration } from "../config/Configuration.js"; | ||
@@ -20,0 +20,0 @@ /** |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6091800
624
77248
6
30
121
0
+ Added@azure/msal-common@14.15.0(transitive)
- Removed@azure/msal-common@14.14.2(transitive)
Updated@azure/msal-common@14.15.0