@azure/msal-browser
Advanced tools
Comparing version 3.0.2 to 3.1.0
@@ -15,2 +15,3 @@ import { AccountInfo, Logger, PerformanceCallbackFunction } from "@azure/msal-common"; | ||
import { EventCallbackFunction } from "../event/EventMessage"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest"; | ||
export interface IPublicClientApplication { | ||
@@ -49,4 +50,5 @@ initialize(): Promise<void>; | ||
hydrateCache(result: AuthenticationResult, request: SilentRequest | SsoSilentRequest | RedirectRequest | PopupRequest): Promise<void>; | ||
clearCache(logoutRequest?: ClearCacheRequest): Promise<void>; | ||
} | ||
export declare const stubbedPublicClientApplication: IPublicClientApplication; | ||
//# sourceMappingURL=IPublicClientApplication.d.ts.map |
@@ -16,2 +16,3 @@ import { ITokenCache } from "../cache/ITokenCache"; | ||
import { EventCallbackFunction } from "../event/EventMessage"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest"; | ||
/** | ||
@@ -255,3 +256,8 @@ * The PublicClientApplication class is the object exposed by the library to perform authentication and authorization functions in Single Page Applications | ||
hydrateCache(result: AuthenticationResult, request: SilentRequest | SsoSilentRequest | RedirectRequest | PopupRequest): Promise<void>; | ||
/** | ||
* Clears tokens and account from the browser cache. | ||
* @param logoutRequest | ||
*/ | ||
clearCache(logoutRequest?: ClearCacheRequest): Promise<void>; | ||
} | ||
//# sourceMappingURL=PublicClientApplication.d.ts.map |
@@ -271,2 +271,8 @@ import { CommonAuthorizationCodeRequest, ICrypto, AccountEntity, IdTokenEntity, AccessTokenEntity, RefreshTokenEntity, AppMetadataEntity, CacheManager, ServerTelemetryEntity, ThrottlingEntity, Logger, AuthorityMetadataEntity, AccountInfo, ValidCredentialType, TokenKeys, CredentialType } from "@azure/msal-common"; | ||
/** | ||
* Clears all access tokes that have claims prior to saving the current one | ||
* @param credential | ||
* @returns | ||
*/ | ||
clearTokensAndKeysWithClaims(): Promise<void>; | ||
/** | ||
* Add value to cookies | ||
@@ -352,7 +358,7 @@ * @param cookieName | ||
cleanRequestByInteractionType(interactionType: InteractionType): void; | ||
cacheCodeRequest(authCodeRequest: CommonAuthorizationCodeRequest, browserCrypto: ICrypto): void; | ||
cacheCodeRequest(authCodeRequest: CommonAuthorizationCodeRequest): void; | ||
/** | ||
* Gets the token exchange parameters from the cache. Throws an error if nothing is found. | ||
*/ | ||
getCachedRequest(state: string, browserCrypto: ICrypto): CommonAuthorizationCodeRequest; | ||
getCachedRequest(state: string): CommonAuthorizationCodeRequest; | ||
/** | ||
@@ -367,2 +373,3 @@ * Gets cached native request for redirect flows | ||
* Returns username retrieved from ADAL or MSAL v1 idToken | ||
* @deprecated | ||
*/ | ||
@@ -369,0 +376,0 @@ getLegacyLoginHint(): string | null; |
@@ -125,2 +125,3 @@ import { SystemOptions, LoggerOptions, INetworkModule, ProtocolMode, OIDCOptions, AzureCloudOptions, ApplicationTelemetry, IPerformanceClient } from "@azure/msal-common"; | ||
* Maximum time the library should wait for a frame to load | ||
* @deprecated This was previously needed for older browsers which are no longer supported by MSAL.js. This option will be removed in the next major version | ||
*/ | ||
@@ -127,0 +128,0 @@ navigateFrameWait?: number; |
@@ -1,2 +0,2 @@ | ||
import { AccountInfo, Logger, PerformanceCallbackFunction, IPerformanceClient, ICrypto, CommonSilentFlowRequest } from "@azure/msal-common"; | ||
import { AccountInfo, Logger, PerformanceCallbackFunction, IPerformanceClient, CommonSilentFlowRequest } from "@azure/msal-common"; | ||
import { RedirectRequest } from "../request/RedirectRequest"; | ||
@@ -13,9 +13,6 @@ import { PopupRequest } from "../request/PopupRequest"; | ||
import { BrowserConfiguration } from "../config/Configuration"; | ||
import { BrowserCacheManager } from "../cache/BrowserCacheManager"; | ||
import { NativeMessageHandler } from "../broker/nativeBroker/NativeMessageHandler"; | ||
import { EventHandler } from "../event/EventHandler"; | ||
import { PopupClient } from "../interaction_client/PopupClient"; | ||
import { SilentIframeClient } from "../interaction_client/SilentIframeClient"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
import { EventCallbackFunction } from "../event/EventMessage"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest"; | ||
export interface IController { | ||
@@ -45,2 +42,3 @@ initialize(): Promise<void>; | ||
logoutPopup(logoutRequest?: EndSessionPopupRequest): Promise<void>; | ||
clearCache(logoutRequest?: ClearCacheRequest): Promise<void>; | ||
ssoSilent(request: SsoSilentRequest): Promise<AuthenticationResult>; | ||
@@ -60,30 +58,8 @@ getTokenCache(): ITokenCache; | ||
/** @internal */ | ||
getBrowserStorage(): BrowserCacheManager; | ||
/** @internal */ | ||
getNativeInternalStorage(): BrowserCacheManager; | ||
/** @internal */ | ||
getBrowserCrypto(): ICrypto; | ||
/** @internal */ | ||
getPerformanceClient(): IPerformanceClient; | ||
/** @internal */ | ||
getNativeExtensionProvider(): NativeMessageHandler | undefined; | ||
/** @internal */ | ||
setNativeExtensionProvider(provider: NativeMessageHandler | undefined): void; | ||
/** @internal */ | ||
getNativeAccountId(request: RedirectRequest | PopupRequest | SsoSilentRequest): string; | ||
/** @internal */ | ||
getEventHandler(): EventHandler; | ||
/** @internal */ | ||
getNavigationClient(): INavigationClient; | ||
/** @internal */ | ||
getRedirectResponse(): Map<string, Promise<AuthenticationResult | null>>; | ||
/** @internal */ | ||
preflightBrowserEnvironmentCheck(interactionType: InteractionType, isAppEmbedded?: boolean): void; | ||
/** @internal */ | ||
canUseNative(request: RedirectRequest | PopupRequest | SsoSilentRequest, accountId?: string): boolean; | ||
/** @internal */ | ||
createPopupClient(correlationId?: string): PopupClient; | ||
/** @internal */ | ||
createSilentIframeClient(correlationId?: string): SilentIframeClient; | ||
} | ||
//# sourceMappingURL=IController.d.ts.map |
@@ -27,2 +27,3 @@ import { AccountInfo, INetworkModule, Logger, CommonSilentFlowRequest, ICrypto, PerformanceCallbackFunction, IPerformanceClient, BaseAuthRequest } from "@azure/msal-common"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest"; | ||
export declare class StandardController implements IController { | ||
@@ -176,2 +177,7 @@ protected readonly operatingContext: StandardOperatingContext; | ||
/** | ||
* Creates a cache interaction client to clear broswer cache. | ||
* @param logoutRequest | ||
*/ | ||
clearCache(logoutRequest?: ClearCacheRequest): Promise<void>; | ||
/** | ||
* Returns all accounts that MSAL currently has data for. | ||
@@ -351,10 +357,2 @@ * (the account object is created at the time of successful login) | ||
/** | ||
* Returns the native internal storage | ||
*/ | ||
getNativeInternalStorage(): BrowserCacheManager; | ||
/** | ||
* Returns the instance of interface for crypto functions | ||
*/ | ||
getBrowserCrypto(): ICrypto; | ||
/** | ||
* Returns the browser env indicator | ||
@@ -364,11 +362,2 @@ */ | ||
/** | ||
* Returns the native message handler | ||
*/ | ||
getNativeExtensionProvider(): NativeMessageHandler | undefined; | ||
/** | ||
* Sets the native message handler | ||
* @param provider {?NativeMessageHandler} | ||
*/ | ||
setNativeExtensionProvider(provider: NativeMessageHandler | undefined): void; | ||
/** | ||
* Returns the event handler | ||
@@ -378,10 +367,2 @@ */ | ||
/** | ||
* Returns the navigation client | ||
*/ | ||
getNavigationClient(): INavigationClient; | ||
/** | ||
* Returns the redirect response map | ||
*/ | ||
getRedirectResponse(): Map<string, Promise<AuthenticationResult | null>>; | ||
/** | ||
* Generates a correlation id for a request if none is provided. | ||
@@ -388,0 +369,0 @@ * |
@@ -14,5 +14,2 @@ import { ICrypto, IPerformanceClient, Logger, PkceCodes, SignedHttpRequest, SignedHttpRequestParameters } from "@azure/msal-common"; | ||
private browserCrypto; | ||
private guidGenerator; | ||
private b64Encode; | ||
private b64Decode; | ||
private pkceGenerator; | ||
@@ -19,0 +16,0 @@ private logger; |
@@ -7,3 +7,2 @@ import { PkceCodes } from "@azure/msal-common"; | ||
export declare class PkceGenerator { | ||
private base64Encode; | ||
private cryptoObj; | ||
@@ -10,0 +9,0 @@ constructor(cryptoObj: BrowserCrypto); |
/** | ||
* Class which exposes APIs to decode base64 strings to plaintext. See here for implementation details: | ||
* https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/Base64_encoding_and_decoding#Solution_2_%E2%80%93_JavaScript's_UTF-16_%3E_UTF-8_%3E_base64 | ||
* https://developer.mozilla.org/en-US/docs/Glossary/Base64#the_unicode_problem | ||
*/ | ||
export declare class Base64Decode { | ||
/** | ||
* Returns a URL-safe plaintext decoded string from b64 encoded input. | ||
* @param input | ||
*/ | ||
decode(input: string): string; | ||
/** | ||
* Decodes base64 into Uint8Array | ||
* @param base64String | ||
* @param nBlockSize | ||
*/ | ||
private base64DecToArr; | ||
/** | ||
* Base64 string to array decoding helper | ||
* @param charNum | ||
*/ | ||
private b64ToUint6; | ||
} | ||
/** | ||
* Returns a URL-safe plaintext decoded string from b64 encoded input. | ||
* @param input | ||
*/ | ||
export declare function base64Decode(input: string): string; | ||
//# sourceMappingURL=Base64Decode.d.ts.map |
@@ -5,29 +5,17 @@ /** | ||
*/ | ||
export declare class Base64Encode { | ||
/** | ||
* Returns URL Safe b64 encoded string from a plaintext string. | ||
* @param input | ||
*/ | ||
urlEncode(input: string): string; | ||
/** | ||
* Returns URL Safe b64 encoded string from an int8Array. | ||
* @param inputArr | ||
*/ | ||
urlEncodeArr(inputArr: Uint8Array): string; | ||
/** | ||
* Returns b64 encoded string from plaintext string. | ||
* @param input | ||
*/ | ||
encode(input: string): string; | ||
/** | ||
* Base64 encode byte array | ||
* @param aBytes | ||
*/ | ||
private base64EncArr; | ||
/** | ||
* Base64 string to array encoding helper | ||
* @param nUint6 | ||
*/ | ||
private uint6ToB64; | ||
} | ||
/** | ||
* Returns URL Safe b64 encoded string from a plaintext string. | ||
* @param input | ||
*/ | ||
export declare function urlEncode(input: string): string; | ||
/** | ||
* Returns URL Safe b64 encoded string from an int8Array. | ||
* @param inputArr | ||
*/ | ||
export declare function urlEncodeArr(inputArr: Uint8Array): string; | ||
/** | ||
* Returns b64 encoded string from plaintext string. | ||
* @param input | ||
*/ | ||
export declare function base64Encode(input: string): string; | ||
//# sourceMappingURL=Base64Encode.d.ts.map |
import { AuthError } from "@azure/msal-common"; | ||
import * as BrowserAuthErrorCodes from "./BrowserAuthErrorCodes"; | ||
export { BrowserAuthErrorCodes }; | ||
/** | ||
* BrowserAuthErrorMessage class containing string constants used by error codes and messages. | ||
*/ | ||
export declare const BrowserAuthErrorMessages: { | ||
pkce_not_created: string; | ||
crypto_nonexistent: string; | ||
empty_navigate_uri: string; | ||
hash_empty_error: string; | ||
no_state_in_hash: string; | ||
hash_does_not_contain_known_properties: string; | ||
unable_to_parse_state: string; | ||
state_interaction_type_mismatch: string; | ||
interaction_in_progress: string; | ||
popup_window_error: string; | ||
empty_window_error: string; | ||
user_cancelled: string; | ||
monitor_popup_timeout: string; | ||
monitor_window_timeout: string; | ||
redirect_in_iframe: string; | ||
block_iframe_reload: string; | ||
block_nested_popups: string; | ||
iframe_closed_prematurely: string; | ||
silent_logout_unsupported: string; | ||
no_account_error: string; | ||
silent_prompt_value_error: string; | ||
no_token_request_cache_error: string; | ||
unable_to_parse_token_request_cache_error: string; | ||
no_cached_authority_error: string; | ||
auth_request_not_set_error: string; | ||
invalid_cache_type: string; | ||
non_browser_environment: string; | ||
database_not_open: string; | ||
no_network_connectivity: string; | ||
post_request_failed: string; | ||
get_request_failed: string; | ||
failed_to_parse_response: string; | ||
unable_to_load_token: string; | ||
crypto_key_not_found: string; | ||
auth_code_required: string; | ||
auth_code_or_nativeAccountId_required: string; | ||
spa_code_and_nativeAccountId_present: string; | ||
database_unavailable: string; | ||
unable_to_acquire_token_from_native_platform: string; | ||
native_handshake_timeout: string; | ||
native_extension_not_installed: string; | ||
native_connection_not_established: string; | ||
uninitialized_public_client_application: string; | ||
native_prompt_not_supported: string; | ||
}; | ||
/** | ||
* BrowserAuthErrorMessage class containing string constants used by error codes and messages. | ||
* @deprecated Use BrowserAuthBrowserAuthErrorCodes instead | ||
*/ | ||
export declare const BrowserAuthErrorMessage: { | ||
@@ -14,6 +66,2 @@ pkceNotGenerated: { | ||
}; | ||
httpMethodNotImplementedError: { | ||
code: string; | ||
desc: string; | ||
}; | ||
emptyNavigateUriError: { | ||
@@ -192,194 +240,5 @@ code: string; | ||
export declare class BrowserAuthError extends AuthError { | ||
constructor(errorCode: string, errorMessage?: string); | ||
/** | ||
* Creates an error thrown when PKCE is not implemented. | ||
* @param errDetail | ||
*/ | ||
static createPkceNotGeneratedError(errDetail: string): BrowserAuthError; | ||
/** | ||
* Creates an error thrown when the crypto object is unavailable. | ||
* @param errDetail | ||
*/ | ||
static createCryptoNotAvailableError(errDetail: string): BrowserAuthError; | ||
/** | ||
* Creates an error thrown when an HTTP method hasn't been implemented by the browser class. | ||
* @param method | ||
*/ | ||
static createHttpMethodNotImplementedError(method: string): BrowserAuthError; | ||
/** | ||
* Creates an error thrown when the navigation URI is empty. | ||
*/ | ||
static createEmptyNavigationUriError(): BrowserAuthError; | ||
/** | ||
* Creates an error thrown when the hash string value is unexpectedly empty. | ||
* @param hashValue | ||
*/ | ||
static createEmptyHashError(): BrowserAuthError; | ||
/** | ||
* Creates an error thrown when the hash string value is unexpectedly empty. | ||
*/ | ||
static createHashDoesNotContainStateError(): BrowserAuthError; | ||
/** | ||
* Creates an error thrown when the hash string value does not contain known properties | ||
*/ | ||
static createHashDoesNotContainKnownPropertiesError(): BrowserAuthError; | ||
/** | ||
* Creates an error thrown when the hash string value is unexpectedly empty. | ||
*/ | ||
static createUnableToParseStateError(): BrowserAuthError; | ||
/** | ||
* Creates an error thrown when the state value in the hash does not match the interaction type of the API attempting to consume it. | ||
*/ | ||
static createStateInteractionTypeMismatchError(): BrowserAuthError; | ||
/** | ||
* Creates an error thrown when a browser interaction (redirect or popup) is in progress. | ||
*/ | ||
static createInteractionInProgressError(): BrowserAuthError; | ||
/** | ||
* Creates an error thrown when the popup window could not be opened. | ||
* @param errDetail | ||
*/ | ||
static createPopupWindowError(errDetail?: string): BrowserAuthError; | ||
/** | ||
* Creates an error thrown when window.open returns an empty window object. | ||
* @param errDetail | ||
*/ | ||
static createEmptyWindowCreatedError(): BrowserAuthError; | ||
/** | ||
* Creates an error thrown when the user closes a popup. | ||
*/ | ||
static createUserCancelledError(): BrowserAuthError; | ||
/** | ||
* Creates an error thrown when monitorPopupFromHash times out for a given popup. | ||
*/ | ||
static createMonitorPopupTimeoutError(): BrowserAuthError; | ||
/** | ||
* Creates an error thrown when monitorIframeFromHash times out for a given iframe. | ||
*/ | ||
static createMonitorIframeTimeoutError(): BrowserAuthError; | ||
/** | ||
* Creates an error thrown when navigateWindow is called inside an iframe or brokered applications. | ||
* @param windowParentCheck | ||
*/ | ||
static createRedirectInIframeError(windowParentCheck: boolean): BrowserAuthError; | ||
/** | ||
* Creates an error thrown when an auth reload is done inside an iframe. | ||
*/ | ||
static createBlockReloadInHiddenIframeError(): BrowserAuthError; | ||
/** | ||
* Creates an error thrown when a popup attempts to call an acquireToken API | ||
* @returns | ||
*/ | ||
static createBlockAcquireTokenInPopupsError(): BrowserAuthError; | ||
/** | ||
* Creates an error thrown when an iframe is found to be closed before the timeout is reached. | ||
*/ | ||
static createIframeClosedPrematurelyError(): BrowserAuthError; | ||
/** | ||
* Creates an error thrown when the logout API is called on any of the silent interaction clients | ||
*/ | ||
static createSilentLogoutUnsupportedError(): BrowserAuthError; | ||
/** | ||
* Creates an error thrown when the account object is not provided in the acquireTokenSilent API. | ||
*/ | ||
static createNoAccountError(): BrowserAuthError; | ||
/** | ||
* Creates an error thrown when a given prompt value is invalid for silent requests. | ||
*/ | ||
static createSilentPromptValueError(givenPrompt: string): BrowserAuthError; | ||
/** | ||
* Creates an error thrown when the cached token request could not be retrieved from the cache | ||
*/ | ||
static createUnableToParseTokenRequestCacheError(): BrowserAuthError; | ||
/** | ||
* Creates an error thrown when the token request could not be retrieved from the cache | ||
*/ | ||
static createNoTokenRequestCacheError(): BrowserAuthError; | ||
/** | ||
* Creates an error thrown when handleCodeResponse is called before initiateAuthRequest (InteractionHandler) | ||
*/ | ||
static createAuthRequestNotSetError(): BrowserAuthError; | ||
/** | ||
* Creates an error thrown when the authority could not be retrieved from the cache | ||
*/ | ||
static createNoCachedAuthorityError(): BrowserAuthError; | ||
/** | ||
* Creates an error thrown if cache type is invalid. | ||
*/ | ||
static createInvalidCacheTypeError(): BrowserAuthError; | ||
/** | ||
* Create an error thrown when login and token requests are made from a non-browser environment | ||
*/ | ||
static createNonBrowserEnvironmentError(): BrowserAuthError; | ||
/** | ||
* Create an error thrown when indexDB database is not open | ||
*/ | ||
static createDatabaseNotOpenError(): BrowserAuthError; | ||
/** | ||
* Create an error thrown when token fetch fails due to no internet | ||
*/ | ||
static createNoNetworkConnectivityError(): BrowserAuthError; | ||
/** | ||
* Create an error thrown when token fetch fails due to reasons other than internet connectivity | ||
*/ | ||
static createPostRequestFailedError(errorDesc: string, endpoint: string): BrowserAuthError; | ||
/** | ||
* Create an error thrown when get request fails due to reasons other than internet connectivity | ||
*/ | ||
static createGetRequestFailedError(errorDesc: string, endpoint: string): BrowserAuthError; | ||
/** | ||
* Create an error thrown when network client fails to parse network response | ||
*/ | ||
static createFailedToParseNetworkResponseError(endpoint: string): BrowserAuthError; | ||
/** | ||
* Create an error thrown when the necessary information is not available to sideload tokens | ||
*/ | ||
static createUnableToLoadTokenError(errorDetail: string): BrowserAuthError; | ||
/** | ||
* Create an error thrown when the queried cryptographic key is not found in IndexedDB | ||
*/ | ||
static createSigningKeyNotFoundInStorageError(keyId: string): BrowserAuthError; | ||
/** | ||
* Create an error when an authorization code is required but not provided | ||
*/ | ||
static createAuthCodeRequiredError(): BrowserAuthError; | ||
/** | ||
* Create an error when an authorization code or native account ID is required but not provided | ||
*/ | ||
static createAuthCodeOrNativeAccountIdRequiredError(): BrowserAuthError; | ||
/** | ||
* Create an error when both authorization code and native account ID are provided | ||
*/ | ||
static createSpaCodeAndNativeAccountIdPresentError(): BrowserAuthError; | ||
/** | ||
* Create an error when IndexedDB is unavailable | ||
*/ | ||
static createDatabaseUnavailableError(): BrowserAuthError; | ||
/** | ||
* Create an error when native token acquisition is not possible | ||
*/ | ||
static createUnableToAcquireTokenFromNativePlatformError(): BrowserAuthError; | ||
/** | ||
* Create an error thrown when Handshake with browser extension times out | ||
*/ | ||
static createNativeHandshakeTimeoutError(): BrowserAuthError; | ||
/** | ||
* Create an error thrown when browser extension is not installed | ||
*/ | ||
static createNativeExtensionNotInstalledError(): BrowserAuthError; | ||
/** | ||
* Create an error when native connection has not been established | ||
* @returns | ||
*/ | ||
static createNativeConnectionNotEstablishedError(): BrowserAuthError; | ||
/** | ||
* Create an error thrown when the initialize function hasn't been called | ||
*/ | ||
static createUninitializedPublicClientApplication(): BrowserAuthError; | ||
/** | ||
* Create an error thrown when requesting a token directly from the native platform with an unsupported prompt parameter e.g. select_account, login or create | ||
* These requests must go through eSTS to ensure eSTS is aware of the new account | ||
*/ | ||
static createNativePromptParameterNotSupportedError(): BrowserAuthError; | ||
constructor(errorCode: string); | ||
} | ||
export declare function createBrowserAuthError(errorCode: string): BrowserAuthError; | ||
//# sourceMappingURL=BrowserAuthError.d.ts.map |
@@ -9,5 +9,2 @@ /** | ||
*/ | ||
import * as internals from "./internals"; | ||
/** @internal */ | ||
export { internals }; | ||
export { PublicClientApplication } from "./app/PublicClientApplication"; | ||
@@ -18,3 +15,3 @@ export { IController } from "./controllers/IController"; | ||
export { BrowserUtils } from "./utils/BrowserUtils"; | ||
export { BrowserAuthError, BrowserAuthErrorMessage, } from "./error/BrowserAuthError"; | ||
export { BrowserAuthError, BrowserAuthErrorMessage, BrowserAuthErrorCodes, } from "./error/BrowserAuthError"; | ||
export { BrowserConfigurationAuthError, BrowserConfigurationAuthErrorMessage, } from "./error/BrowserConfigurationAuthError"; | ||
@@ -34,4 +31,7 @@ export { IPublicClientApplication, stubbedPublicClientApplication, } from "./app/IPublicClientApplication"; | ||
export { AuthenticationResult } from "./response/AuthenticationResult"; | ||
export { ClearCacheRequest } from "./request/ClearCacheRequest"; | ||
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"; | ||
@@ -43,4 +43,4 @@ export { EventType } from "./event/EventType"; | ||
export { BrowserPerformanceMeasurement } from "./telemetry/BrowserPerformanceMeasurement"; | ||
export { AuthenticationScheme, AccountInfo, AccountEntity, IdTokenClaims, AuthError, AuthErrorMessage, ClientAuthError, ClientAuthErrorMessage, ClientConfigurationError, ClientConfigurationErrorMessage, InteractionRequiredAuthError, InteractionRequiredAuthErrorMessage, ServerError, INetworkModule, NetworkResponse, NetworkRequestOptions, ILoggerCallback, Logger, LogLevel, ProtocolMode, ServerResponseType, PromptValue, ExternalTokenResponse, StringUtils, UrlString, AzureCloudInstance, AzureCloudOptions, AuthenticationHeaderParser, OIDC_DEFAULT_SCOPES, PerformanceCallbackFunction, PerformanceEvent, PerformanceEvents, } from "@azure/msal-common"; | ||
export { AuthenticationScheme, AccountInfo, AccountEntity, IdTokenClaims, AuthError, AuthErrorMessage, ClientAuthError, ClientAuthErrorMessage, ClientConfigurationError, ClientConfigurationErrorMessage, InteractionRequiredAuthError, InteractionRequiredAuthErrorMessage, ServerError, INetworkModule, NetworkResponse, NetworkRequestOptions, ILoggerCallback, Logger, LogLevel, ProtocolMode, ServerResponseType, PromptValue, ExternalTokenResponse, StringUtils, UrlString, AzureCloudInstance, AzureCloudOptions, AuthenticationHeaderParser, OIDC_DEFAULT_SCOPES, PerformanceCallbackFunction, PerformanceEvent, PerformanceEvents, InProgressPerformanceEvent, } from "@azure/msal-common"; | ||
export { version } from "./packageMetadata"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -12,2 +12,3 @@ import { ICrypto, INetworkModule, Logger, AccountInfo, BaseAuthRequest, ServerTelemetryManager, Authority, IPerformanceClient } from "@azure/msal-common"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest"; | ||
export declare abstract class BaseInteractionClient { | ||
@@ -26,3 +27,3 @@ protected config: BrowserConfiguration; | ||
abstract acquireToken(request: RedirectRequest | PopupRequest | SsoSilentRequest): Promise<AuthenticationResult | void>; | ||
abstract logout(request: EndSessionRequest): Promise<void>; | ||
abstract logout(request: EndSessionRequest | ClearCacheRequest | undefined): Promise<void>; | ||
protected clearCacheOnLogout(account?: AccountInfo | null): Promise<void>; | ||
@@ -29,0 +30,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { Logger, ICrypto, AuthToken, AccountEntity, ScopeSet, IPerformanceClient } from "@azure/msal-common"; | ||
import { Logger, ICrypto, AccountEntity, ScopeSet, IPerformanceClient, TokenClaims } from "@azure/msal-common"; | ||
import { BaseInteractionClient } from "./BaseInteractionClient"; | ||
@@ -65,8 +65,2 @@ import { BrowserConfiguration } from "../config/Configuration"; | ||
/** | ||
* Create an idToken Object (not entity) | ||
* @param response | ||
* @returns | ||
*/ | ||
protected createIdTokenObj(response: NativeResponse): AuthToken; | ||
/** | ||
* creates an homeAccountIdentifier for the account | ||
@@ -77,3 +71,3 @@ * @param response | ||
*/ | ||
protected createHomeAccountIdentifier(response: NativeResponse, idTokenObj: AuthToken): string; | ||
protected createHomeAccountIdentifier(response: NativeResponse, idTokenClaims: TokenClaims): string; | ||
/** | ||
@@ -102,3 +96,3 @@ * Helper to generate scopes | ||
*/ | ||
protected generateAuthenticationResult(response: NativeResponse, request: NativeTokenRequest, idTokenObj: AuthToken, accountEntity: AccountEntity, authority: string, reqTimestamp: number): Promise<AuthenticationResult>; | ||
protected generateAuthenticationResult(response: NativeResponse, request: NativeTokenRequest, idTokenClaims: TokenClaims, accountEntity: AccountEntity, authority: string, reqTimestamp: number): Promise<AuthenticationResult>; | ||
/** | ||
@@ -119,3 +113,3 @@ * cache the account entity in browser storage | ||
*/ | ||
cacheNativeTokens(response: NativeResponse, request: NativeTokenRequest, homeAccountIdentifier: string, idTokenObj: AuthToken, responseAccessToken: string, tenantId: string, reqTimestamp: number): void; | ||
cacheNativeTokens(response: NativeResponse, request: NativeTokenRequest, homeAccountIdentifier: string, idTokenClaims: TokenClaims, responseAccessToken: string, tenantId: string, reqTimestamp: number): void; | ||
protected addTelemetryFromNativeResponse(response: NativeResponse): MATS | null; | ||
@@ -122,0 +116,0 @@ /** |
@@ -5,2 +5,3 @@ import { StandardInteractionClient } from "./StandardInteractionClient"; | ||
import { AuthenticationResult } from "../response/AuthenticationResult"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest"; | ||
export declare class SilentCacheClient extends StandardInteractionClient { | ||
@@ -13,5 +14,6 @@ /** | ||
/** | ||
* Currently Unsupported | ||
* API to silenty clear the browser cache. | ||
* @param logoutRequest | ||
*/ | ||
logout(): Promise<void>; | ||
logout(logoutRequest?: ClearCacheRequest): Promise<void>; | ||
/** | ||
@@ -18,0 +20,0 @@ * Creates an Silent Flow Client with the given authority, or the default authority. |
export declare const name = "@azure/msal-browser"; | ||
export declare const version = "3.0.2"; | ||
export declare const version = "3.1.0"; | ||
//# sourceMappingURL=packageMetadata.d.ts.map |
import { PerformanceEvents, IPerformanceClient, PerformanceClient, IPerformanceMeasurement, InProgressPerformanceEvent } from "@azure/msal-common"; | ||
import { Configuration } from "../config/Configuration"; | ||
export declare class BrowserPerformanceClient extends PerformanceClient implements IPerformanceClient { | ||
private browserCrypto; | ||
private guidGenerator; | ||
constructor(configuration: Configuration, intFields?: Set<string>); | ||
@@ -20,3 +18,3 @@ startPerformanceMeasurement(measureName: string, correlationId: string): IPerformanceMeasurement; | ||
*/ | ||
startMeasurement(measureName: PerformanceEvents, correlationId?: string): InProgressPerformanceEvent; | ||
startMeasurement(measureName: string, correlationId?: string): InProgressPerformanceEvent; | ||
/** | ||
@@ -38,4 +36,4 @@ * Adds pre-queue time to preQueueTimeByCorrelationId map. | ||
*/ | ||
addQueueMeasurement(eventName: PerformanceEvents, correlationId?: string, queueTime?: number, manuallyCompleted?: boolean): void; | ||
addQueueMeasurement(eventName: string, correlationId?: string, queueTime?: number, manuallyCompleted?: boolean): void; | ||
} | ||
//# sourceMappingURL=BrowserPerformanceClient.d.ts.map |
@@ -1,2 +0,1 @@ | ||
import { INetworkModule } from "@azure/msal-common"; | ||
import { InteractionType } from "./BrowserConstants"; | ||
@@ -32,6 +31,2 @@ /** | ||
/** | ||
* Returns best compatible network client object. | ||
*/ | ||
static getBrowserNetworkClient(): INetworkModule; | ||
/** | ||
* Throws error if we have completed an auth and are | ||
@@ -61,7 +56,3 @@ * attempting another auth request inside an iframe. | ||
static blockAPICallsBeforeInitialize(initialized: boolean): void; | ||
/** | ||
* Returns boolean of whether current browser is an Internet Explorer or Edge browser. | ||
*/ | ||
static detectIEOrEdge(): boolean; | ||
} | ||
//# sourceMappingURL=BrowserUtils.d.ts.map |
@@ -13,3 +13,3 @@ { | ||
}, | ||
"version": "3.0.2", | ||
"version": "3.1.0", | ||
"description": "Microsoft Authentication Library for js", | ||
@@ -56,3 +56,4 @@ "keywords": [ | ||
"lib/msal-browser.cjs.map", | ||
"lib/msal-browser.min.js" | ||
"lib/msal-browser.min.js", | ||
"src" | ||
], | ||
@@ -62,4 +63,4 @@ "scripts": { | ||
"clean:coverage": "rimraf ../../.nyc_output/*", | ||
"lint": "cd ../../ && npm run lint:browser", | ||
"lint:fix": "npm run lint -- -- --fix", | ||
"lint": "eslint src --ext .ts", | ||
"lint:fix": "npm run lint -- --fix", | ||
"test": "jest", | ||
@@ -90,2 +91,3 @@ "test:coverage": "jest --coverage", | ||
"dotenv": "^8.2.0", | ||
"eslint-config-msal": "^0.0.0", | ||
"fake-indexeddb": "^3.1.3", | ||
@@ -105,4 +107,4 @@ "jest": "^29.5.0", | ||
"dependencies": { | ||
"@azure/msal-common": "14.0.2" | ||
"@azure/msal-common": "14.0.3" | ||
} | ||
} |
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
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
333
64137
4648911
26
+ Added@azure/msal-common@14.0.3(transitive)
- Removed@azure/msal-common@14.0.2(transitive)
Updated@azure/msal-common@14.0.3