@azure/msal-browser 3.0.2 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/IPublicClientApplication.d.ts +2 -0
- package/dist/app/IPublicClientApplication.d.ts.map +1 -1
- package/dist/app/IPublicClientApplication.mjs +22 -18
- package/dist/app/IPublicClientApplication.mjs.map +1 -1
- package/dist/app/PublicClientApplication.d.ts +20 -6
- package/dist/app/PublicClientApplication.d.ts.map +1 -1
- package/dist/app/PublicClientApplication.mjs +24 -7
- package/dist/app/PublicClientApplication.mjs.map +1 -1
- package/dist/broker/nativeBroker/NativeMessageHandler.d.ts +3 -4
- package/dist/broker/nativeBroker/NativeMessageHandler.d.ts.map +1 -1
- package/dist/broker/nativeBroker/NativeMessageHandler.mjs +17 -16
- package/dist/broker/nativeBroker/NativeMessageHandler.mjs.map +1 -1
- package/dist/broker/nativeBroker/NativeStatusCodes.d.ts +8 -0
- package/dist/broker/nativeBroker/NativeStatusCodes.d.ts.map +1 -0
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs +16 -0
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs.map +1 -0
- package/dist/cache/AsyncMemoryStorage.mjs +4 -3
- package/dist/cache/AsyncMemoryStorage.mjs.map +1 -1
- package/dist/cache/BrowserCacheManager.d.ts +10 -3
- package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
- package/dist/cache/BrowserCacheManager.mjs +58 -29
- package/dist/cache/BrowserCacheManager.mjs.map +1 -1
- package/dist/cache/BrowserStorage.d.ts.map +1 -1
- package/dist/cache/BrowserStorage.mjs +7 -9
- package/dist/cache/BrowserStorage.mjs.map +1 -1
- package/dist/cache/CryptoKeyStore.mjs +1 -1
- package/dist/cache/CryptoKeyStore.mjs.map +1 -1
- package/dist/cache/DatabaseStorage.d.ts.map +1 -1
- package/dist/cache/DatabaseStorage.mjs +9 -8
- package/dist/cache/DatabaseStorage.mjs.map +1 -1
- package/dist/cache/MemoryStorage.mjs +1 -1
- package/dist/cache/MemoryStorage.mjs.map +1 -1
- package/dist/cache/TokenCache.d.ts.map +1 -1
- package/dist/cache/TokenCache.mjs +30 -30
- package/dist/cache/TokenCache.mjs.map +1 -1
- package/dist/config/Configuration.d.ts +1 -0
- package/dist/config/Configuration.d.ts.map +1 -1
- package/dist/config/Configuration.mjs +12 -16
- package/dist/config/Configuration.mjs.map +1 -1
- package/dist/controllers/ControllerFactory.mjs +1 -1
- package/dist/controllers/ControllerFactory.mjs.map +1 -1
- package/dist/controllers/IController.d.ts +5 -28
- package/dist/controllers/IController.d.ts.map +1 -1
- package/dist/controllers/StandardController.d.ts +17 -31
- package/dist/controllers/StandardController.d.ts.map +1 -1
- package/dist/controllers/StandardController.mjs +78 -83
- package/dist/controllers/StandardController.mjs.map +1 -1
- package/dist/crypto/BrowserCrypto.d.ts +44 -49
- package/dist/crypto/BrowserCrypto.d.ts.map +1 -1
- package/dist/crypto/BrowserCrypto.mjs +78 -77
- package/dist/crypto/BrowserCrypto.mjs.map +1 -1
- package/dist/crypto/CryptoOps.d.ts +1 -10
- package/dist/crypto/CryptoOps.d.ts.map +1 -1
- package/dist/crypto/CryptoOps.mjs +23 -34
- package/dist/crypto/CryptoOps.mjs.map +1 -1
- package/dist/crypto/PkceGenerator.d.ts +6 -22
- package/dist/crypto/PkceGenerator.d.ts.map +1 -1
- package/dist/crypto/PkceGenerator.mjs +48 -49
- package/dist/crypto/PkceGenerator.mjs.map +1 -1
- package/dist/crypto/SignedHttpRequest.mjs +1 -1
- package/dist/crypto/SignedHttpRequest.mjs.map +1 -1
- package/dist/encode/Base64Decode.d.ts +6 -19
- package/dist/encode/Base64Decode.d.ts.map +1 -1
- package/dist/encode/Base64Decode.mjs +31 -68
- package/dist/encode/Base64Decode.mjs.map +1 -1
- package/dist/encode/Base64Encode.d.ts +15 -27
- package/dist/encode/Base64Encode.d.ts.map +1 -1
- package/dist/encode/Base64Encode.mjs +36 -75
- package/dist/encode/Base64Encode.mjs.map +1 -1
- package/dist/error/BrowserAuthError.d.ts +63 -195
- package/dist/error/BrowserAuthError.d.ts.map +1 -1
- package/dist/error/BrowserAuthError.mjs +159 -381
- package/dist/error/BrowserAuthError.mjs.map +1 -1
- package/dist/error/BrowserAuthErrorCodes.d.ts +46 -0
- package/dist/error/BrowserAuthErrorCodes.d.ts.map +1 -0
- package/dist/error/BrowserAuthErrorCodes.mjs +54 -0
- package/dist/error/BrowserAuthErrorCodes.mjs.map +1 -0
- package/dist/error/BrowserConfigurationAuthError.d.ts +9 -46
- package/dist/error/BrowserConfigurationAuthError.d.ts.map +1 -1
- package/dist/error/BrowserConfigurationAuthError.mjs +20 -73
- package/dist/error/BrowserConfigurationAuthError.mjs.map +1 -1
- package/dist/error/BrowserConfigurationAuthErrorCodes.d.ts +4 -0
- package/dist/error/BrowserConfigurationAuthErrorCodes.d.ts.map +1 -0
- package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +12 -0
- package/dist/error/BrowserConfigurationAuthErrorCodes.mjs.map +1 -0
- package/dist/error/NativeAuthError.d.ts +17 -45
- package/dist/error/NativeAuthError.d.ts.map +1 -1
- package/dist/error/NativeAuthError.mjs +49 -79
- package/dist/error/NativeAuthError.mjs.map +1 -1
- package/dist/error/NativeAuthErrorCodes.d.ts +3 -0
- package/dist/error/NativeAuthErrorCodes.d.ts.map +1 -0
- package/dist/error/NativeAuthErrorCodes.mjs +11 -0
- package/dist/error/NativeAuthErrorCodes.mjs.map +1 -0
- package/dist/event/EventHandler.d.ts.map +1 -1
- package/dist/event/EventHandler.mjs +3 -2
- package/dist/event/EventHandler.mjs.map +1 -1
- package/dist/event/EventMessage.mjs +1 -1
- package/dist/event/EventMessage.mjs.map +1 -1
- package/dist/event/EventType.mjs +1 -1
- package/dist/event/EventType.mjs.map +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +8 -4
- package/dist/index.mjs.map +1 -1
- package/dist/interaction_client/BaseInteractionClient.d.ts +2 -1
- package/dist/interaction_client/BaseInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/BaseInteractionClient.mjs +7 -8
- package/dist/interaction_client/BaseInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs.map +1 -1
- package/dist/interaction_client/NativeInteractionClient.d.ts +4 -10
- package/dist/interaction_client/NativeInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/NativeInteractionClient.mjs +32 -38
- package/dist/interaction_client/NativeInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/PopupClient.d.ts.map +1 -1
- package/dist/interaction_client/PopupClient.mjs +16 -15
- package/dist/interaction_client/PopupClient.mjs.map +1 -1
- package/dist/interaction_client/RedirectClient.d.ts.map +1 -1
- package/dist/interaction_client/RedirectClient.mjs +7 -6
- package/dist/interaction_client/RedirectClient.mjs.map +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.d.ts.map +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.mjs +9 -11
- package/dist/interaction_client/SilentAuthCodeClient.mjs.map +1 -1
- package/dist/interaction_client/SilentCacheClient.d.ts +4 -2
- package/dist/interaction_client/SilentCacheClient.d.ts.map +1 -1
- package/dist/interaction_client/SilentCacheClient.mjs +19 -25
- package/dist/interaction_client/SilentCacheClient.mjs.map +1 -1
- package/dist/interaction_client/SilentIframeClient.d.ts.map +1 -1
- package/dist/interaction_client/SilentIframeClient.mjs +20 -47
- package/dist/interaction_client/SilentIframeClient.mjs.map +1 -1
- package/dist/interaction_client/SilentRefreshClient.d.ts.map +1 -1
- package/dist/interaction_client/SilentRefreshClient.mjs +11 -20
- package/dist/interaction_client/SilentRefreshClient.mjs.map +1 -1
- package/dist/interaction_client/StandardInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/StandardInteractionClient.mjs +18 -38
- package/dist/interaction_client/StandardInteractionClient.mjs.map +1 -1
- package/dist/interaction_handler/InteractionHandler.d.ts.map +1 -1
- package/dist/interaction_handler/InteractionHandler.mjs +13 -16
- package/dist/interaction_handler/InteractionHandler.mjs.map +1 -1
- package/dist/interaction_handler/RedirectHandler.d.ts.map +1 -1
- package/dist/interaction_handler/RedirectHandler.mjs +12 -11
- package/dist/interaction_handler/RedirectHandler.mjs.map +1 -1
- package/dist/interaction_handler/SilentHandler.d.ts.map +1 -1
- package/dist/interaction_handler/SilentHandler.mjs +11 -11
- package/dist/interaction_handler/SilentHandler.mjs.map +1 -1
- package/dist/navigation/NavigationClient.mjs +1 -1
- package/dist/navigation/NavigationClient.mjs.map +1 -1
- package/dist/network/FetchClient.d.ts.map +1 -1
- package/dist/network/FetchClient.mjs +9 -8
- package/dist/network/FetchClient.mjs.map +1 -1
- package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
- package/dist/operatingcontext/BaseOperatingContext.mjs.map +1 -1
- package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
- package/dist/operatingcontext/StandardOperatingContext.mjs.map +1 -1
- package/dist/operatingcontext/TeamsAppOperatingContext.mjs +1 -1
- package/dist/operatingcontext/TeamsAppOperatingContext.mjs.map +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/packageMetadata.mjs.map +1 -1
- package/dist/request/ClearCacheRequest.d.ts +11 -0
- package/dist/request/ClearCacheRequest.d.ts.map +1 -0
- package/dist/telemetry/BrowserPerformanceClient.d.ts +2 -4
- package/dist/telemetry/BrowserPerformanceClient.d.ts.map +1 -1
- package/dist/telemetry/BrowserPerformanceClient.mjs +2 -6
- package/dist/telemetry/BrowserPerformanceClient.mjs.map +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.mjs.map +1 -1
- package/dist/utils/BrowserConstants.mjs +1 -1
- package/dist/utils/BrowserConstants.mjs.map +1 -1
- package/dist/utils/BrowserProtocolUtils.d.ts.map +1 -1
- package/dist/utils/BrowserProtocolUtils.mjs +4 -4
- package/dist/utils/BrowserProtocolUtils.mjs.map +1 -1
- package/dist/utils/BrowserStringUtils.mjs +1 -1
- package/dist/utils/BrowserStringUtils.mjs.map +1 -1
- package/dist/utils/BrowserUtils.d.ts +0 -9
- package/dist/utils/BrowserUtils.d.ts.map +1 -1
- package/dist/utils/BrowserUtils.mjs +8 -33
- package/dist/utils/BrowserUtils.mjs.map +1 -1
- package/lib/msal-browser.cjs +8729 -9566
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +8729 -9566
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +68 -62
- package/package.json +7 -5
- package/src/app/IPublicClientApplication.ts +236 -0
- package/src/app/PublicClientApplication.ts +417 -0
- package/src/broker/nativeBroker/NativeMessageHandler.ts +416 -0
- package/src/broker/nativeBroker/NativeRequest.ts +52 -0
- package/src/broker/nativeBroker/NativeResponse.ts +56 -0
- package/src/broker/nativeBroker/NativeStatusCodes.ts +13 -0
- package/src/cache/AsyncMemoryStorage.ts +158 -0
- package/src/cache/BrowserCacheManager.ts +2009 -0
- package/src/cache/BrowserStorage.ts +52 -0
- package/src/cache/CryptoKeyStore.ts +63 -0
- package/src/cache/DatabaseStorage.ts +287 -0
- package/src/cache/IAsyncMemoryStorage.ts +36 -0
- package/src/cache/ITokenCache.ts +21 -0
- package/src/cache/IWindowStorage.ts +36 -0
- package/src/cache/MemoryStorage.ts +42 -0
- package/src/cache/TokenCache.ts +484 -0
- package/src/config/Configuration.ts +383 -0
- package/src/controllers/ControllerFactory.ts +55 -0
- package/src/controllers/IController.ts +134 -0
- package/src/controllers/StandardController.ts +2170 -0
- package/src/crypto/BrowserCrypto.ts +151 -0
- package/src/crypto/CryptoOps.ts +235 -0
- package/src/crypto/PkceGenerator.ts +115 -0
- package/src/crypto/SignedHttpRequest.ts +76 -0
- package/src/encode/Base64Decode.ts +46 -0
- package/src/encode/Base64Encode.ts +52 -0
- package/src/error/BrowserAuthError.ts +352 -0
- package/src/error/BrowserAuthErrorCodes.ts +57 -0
- package/src/error/BrowserConfigurationAuthError.ts +64 -0
- package/src/error/BrowserConfigurationAuthErrorCodes.ts +9 -0
- package/src/error/NativeAuthError.ts +113 -0
- package/src/error/NativeAuthErrorCodes.ts +7 -0
- package/src/event/EventHandler.ts +177 -0
- package/src/event/EventMessage.ts +125 -0
- package/src/event/EventType.ts +33 -0
- package/src/index.ts +157 -0
- package/src/interaction_client/BaseInteractionClient.ts +307 -0
- package/src/interaction_client/HybridSpaAuthorizationCodeClient.ts +16 -0
- package/src/interaction_client/NativeInteractionClient.ts +925 -0
- package/src/interaction_client/PopupClient.ts +926 -0
- package/src/interaction_client/RedirectClient.ts +616 -0
- package/src/interaction_client/SilentAuthCodeClient.ts +165 -0
- package/src/interaction_client/SilentCacheClient.ts +125 -0
- package/src/interaction_client/SilentIframeClient.ts +301 -0
- package/src/interaction_client/SilentRefreshClient.ts +118 -0
- package/src/interaction_client/StandardInteractionClient.ts +450 -0
- package/src/interaction_handler/InteractionHandler.ts +251 -0
- package/src/interaction_handler/RedirectHandler.ts +229 -0
- package/src/interaction_handler/SilentHandler.ts +269 -0
- package/src/navigation/INavigationClient.ts +23 -0
- package/src/navigation/NavigationClient.ts +55 -0
- package/src/navigation/NavigationOptions.ts +18 -0
- package/src/network/FetchClient.ts +130 -0
- package/src/operatingcontext/BaseOperatingContext.ts +82 -0
- package/src/operatingcontext/StandardOperatingContext.ts +49 -0
- package/src/operatingcontext/TeamsAppOperatingContext.ts +48 -0
- package/src/packageMetadata.ts +3 -0
- package/src/request/AuthorizationCodeRequest.ts +19 -0
- package/src/request/AuthorizationUrlRequest.ts +17 -0
- package/src/request/ClearCacheRequest.ts +16 -0
- package/src/request/EndSessionPopupRequest.ts +26 -0
- package/src/request/EndSessionRequest.ts +23 -0
- package/src/request/PopupRequest.ts +51 -0
- package/src/request/PopupWindowAttributes.ts +22 -0
- package/src/request/RedirectRequest.ts +51 -0
- package/src/request/SilentRequest.ts +49 -0
- package/src/request/SsoSilentRequest.ts +44 -0
- package/src/response/AuthenticationResult.ts +13 -0
- package/src/telemetry/BrowserPerformanceClient.ts +226 -0
- package/src/telemetry/BrowserPerformanceMeasurement.ts +144 -0
- package/src/utils/BrowserConstants.ts +241 -0
- package/src/utils/BrowserProtocolUtils.ts +58 -0
- package/src/utils/BrowserStringUtils.ts +143 -0
- package/src/utils/BrowserUtils.ts +156 -0
- package/dist/crypto/GuidGenerator.d.ts +0 -13
- package/dist/crypto/GuidGenerator.d.ts.map +0 -1
- package/dist/crypto/GuidGenerator.mjs +0 -104
- package/dist/crypto/GuidGenerator.mjs.map +0 -1
- package/dist/crypto/ISubtleCrypto.d.ts +0 -10
- package/dist/crypto/ISubtleCrypto.d.ts.map +0 -1
- package/dist/crypto/ModernBrowserCrypto.d.ts +0 -10
- package/dist/crypto/ModernBrowserCrypto.d.ts.map +0 -1
- package/dist/crypto/ModernBrowserCrypto.mjs +0 -31
- package/dist/crypto/ModernBrowserCrypto.mjs.map +0 -1
- package/dist/internals.d.ts +0 -23
- package/dist/internals.d.ts.map +0 -1
- package/dist/internals.mjs +0 -28
- package/dist/internals.mjs.map +0 -1
- package/dist/network/XhrClient.d.ts +0 -41
- package/dist/network/XhrClient.d.ts.map +0 -1
- package/dist/network/XhrClient.mjs +0 -125
- package/dist/network/XhrClient.mjs.map +0 -1
- package/dist/utils/MathUtils.d.ts +0 -12
- package/dist/utils/MathUtils.d.ts.map +0 -1
- package/dist/utils/MathUtils.mjs +0 -26
- package/dist/utils/MathUtils.mjs.map +0 -1
|
@@ -12,6 +12,7 @@ import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest";
|
|
|
12
12
|
import { BrowserConfiguration } from "../config/Configuration";
|
|
13
13
|
import { AuthenticationResult } from "../response/AuthenticationResult";
|
|
14
14
|
import { EventCallbackFunction } from "../event/EventMessage";
|
|
15
|
+
import { ClearCacheRequest } from "../request/ClearCacheRequest";
|
|
15
16
|
export interface IPublicClientApplication {
|
|
16
17
|
initialize(): Promise<void>;
|
|
17
18
|
acquireTokenPopup(request: PopupRequest): Promise<AuthenticationResult>;
|
|
@@ -45,6 +46,7 @@ export interface IPublicClientApplication {
|
|
|
45
46
|
/** @internal */
|
|
46
47
|
getConfiguration(): BrowserConfiguration;
|
|
47
48
|
hydrateCache(result: AuthenticationResult, request: SilentRequest | SsoSilentRequest | RedirectRequest | PopupRequest): Promise<void>;
|
|
49
|
+
clearCache(logoutRequest?: ClearCacheRequest): Promise<void>;
|
|
48
50
|
}
|
|
49
51
|
export declare const stubbedPublicClientApplication: IPublicClientApplication;
|
|
50
52
|
//# sourceMappingURL=IPublicClientApplication.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IPublicClientApplication.d.ts","sourceRoot":"","sources":["../../src/app/IPublicClientApplication.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,WAAW,EACX,MAAM,EACN,2BAA2B,EAC9B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"IPublicClientApplication.d.ts","sourceRoot":"","sources":["../../src/app/IPublicClientApplication.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,WAAW,EACX,MAAM,EACN,2BAA2B,EAC9B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,gBAA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IAChB,gBAAgB,IAAI,oBAAoB,CAAC;IACzC,YAAY,CACR,MAAM,EAAE,oBAAoB,EAC5B,OAAO,EACD,aAAa,GACb,gBAAgB,GAChB,eAAe,GACf,YAAY,GACnB,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB,UAAU,CAAC,aAAa,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAChE;AAED,eAAO,MAAM,8BAA8B,EAAE,wBA+J5C,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
/*! @azure/msal-browser v3.0
|
|
1
|
+
/*! @azure/msal-browser v3.2.0 2023-10-05 */
|
|
2
2
|
'use strict';
|
|
3
|
-
import {
|
|
3
|
+
import { createBrowserConfigurationAuthError } from '../error/BrowserConfigurationAuthError.mjs';
|
|
4
|
+
import { stubbedPublicClientApplicationCalled } from '../error/BrowserConfigurationAuthErrorCodes.mjs';
|
|
4
5
|
|
|
5
6
|
/*
|
|
6
7
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8,19 +9,19 @@ import { BrowserConfigurationAuthError } from '../error/BrowserConfigurationAuth
|
|
|
8
9
|
*/
|
|
9
10
|
const stubbedPublicClientApplication = {
|
|
10
11
|
initialize: () => {
|
|
11
|
-
return Promise.reject(
|
|
12
|
+
return Promise.reject(createBrowserConfigurationAuthError(stubbedPublicClientApplicationCalled));
|
|
12
13
|
},
|
|
13
14
|
acquireTokenPopup: () => {
|
|
14
|
-
return Promise.reject(
|
|
15
|
+
return Promise.reject(createBrowserConfigurationAuthError(stubbedPublicClientApplicationCalled));
|
|
15
16
|
},
|
|
16
17
|
acquireTokenRedirect: () => {
|
|
17
|
-
return Promise.reject(
|
|
18
|
+
return Promise.reject(createBrowserConfigurationAuthError(stubbedPublicClientApplicationCalled));
|
|
18
19
|
},
|
|
19
20
|
acquireTokenSilent: () => {
|
|
20
|
-
return Promise.reject(
|
|
21
|
+
return Promise.reject(createBrowserConfigurationAuthError(stubbedPublicClientApplicationCalled));
|
|
21
22
|
},
|
|
22
23
|
acquireTokenByCode: () => {
|
|
23
|
-
return Promise.reject(
|
|
24
|
+
return Promise.reject(createBrowserConfigurationAuthError(stubbedPublicClientApplicationCalled));
|
|
24
25
|
},
|
|
25
26
|
getAllAccounts: () => {
|
|
26
27
|
return [];
|
|
@@ -35,25 +36,25 @@ const stubbedPublicClientApplication = {
|
|
|
35
36
|
return null;
|
|
36
37
|
},
|
|
37
38
|
handleRedirectPromise: () => {
|
|
38
|
-
return Promise.reject(
|
|
39
|
+
return Promise.reject(createBrowserConfigurationAuthError(stubbedPublicClientApplicationCalled));
|
|
39
40
|
},
|
|
40
41
|
loginPopup: () => {
|
|
41
|
-
return Promise.reject(
|
|
42
|
+
return Promise.reject(createBrowserConfigurationAuthError(stubbedPublicClientApplicationCalled));
|
|
42
43
|
},
|
|
43
44
|
loginRedirect: () => {
|
|
44
|
-
return Promise.reject(
|
|
45
|
+
return Promise.reject(createBrowserConfigurationAuthError(stubbedPublicClientApplicationCalled));
|
|
45
46
|
},
|
|
46
47
|
logout: () => {
|
|
47
|
-
return Promise.reject(
|
|
48
|
+
return Promise.reject(createBrowserConfigurationAuthError(stubbedPublicClientApplicationCalled));
|
|
48
49
|
},
|
|
49
50
|
logoutRedirect: () => {
|
|
50
|
-
return Promise.reject(
|
|
51
|
+
return Promise.reject(createBrowserConfigurationAuthError(stubbedPublicClientApplicationCalled));
|
|
51
52
|
},
|
|
52
53
|
logoutPopup: () => {
|
|
53
|
-
return Promise.reject(
|
|
54
|
+
return Promise.reject(createBrowserConfigurationAuthError(stubbedPublicClientApplicationCalled));
|
|
54
55
|
},
|
|
55
56
|
ssoSilent: () => {
|
|
56
|
-
return Promise.reject(
|
|
57
|
+
return Promise.reject(createBrowserConfigurationAuthError(stubbedPublicClientApplicationCalled));
|
|
57
58
|
},
|
|
58
59
|
addEventCallback: () => {
|
|
59
60
|
return null;
|
|
@@ -74,10 +75,10 @@ const stubbedPublicClientApplication = {
|
|
|
74
75
|
return;
|
|
75
76
|
},
|
|
76
77
|
getTokenCache: () => {
|
|
77
|
-
throw
|
|
78
|
+
throw createBrowserConfigurationAuthError(stubbedPublicClientApplicationCalled);
|
|
78
79
|
},
|
|
79
80
|
getLogger: () => {
|
|
80
|
-
throw
|
|
81
|
+
throw createBrowserConfigurationAuthError(stubbedPublicClientApplicationCalled);
|
|
81
82
|
},
|
|
82
83
|
setLogger: () => {
|
|
83
84
|
return;
|
|
@@ -95,10 +96,13 @@ const stubbedPublicClientApplication = {
|
|
|
95
96
|
return;
|
|
96
97
|
},
|
|
97
98
|
getConfiguration: () => {
|
|
98
|
-
throw
|
|
99
|
+
throw createBrowserConfigurationAuthError(stubbedPublicClientApplicationCalled);
|
|
99
100
|
},
|
|
100
101
|
hydrateCache: () => {
|
|
101
|
-
return Promise.reject(
|
|
102
|
+
return Promise.reject(createBrowserConfigurationAuthError(stubbedPublicClientApplicationCalled));
|
|
103
|
+
},
|
|
104
|
+
clearCache: () => {
|
|
105
|
+
return Promise.reject(createBrowserConfigurationAuthError(stubbedPublicClientApplicationCalled));
|
|
102
106
|
},
|
|
103
107
|
};
|
|
104
108
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IPublicClientApplication.mjs","sources":["../../src/app/IPublicClientApplication.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IPublicClientApplication.mjs","sources":["../../src/app/IPublicClientApplication.ts"],"sourcesContent":[null],"names":["BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled"],"mappings":";;;;;AAKA;AAKA;AACA;AACA;AAES,MAAA;AAKT,IAAA,UAAS,EAAA,MAAY;AACrB,QAAS,OAAA,OAAA,CAAA,MAAmB,CAAA,wEAAwC,CAAA,CAAA,CAAA;AACpE,KAAA;AACA,IAAA,iBAAsB,EAAA;AACtB,QAAS,OAAA,OAAA,CAAA,MAAA,CAAA,wEAAsE,CAAA,CAAA,CAAA;AAC/E,K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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -7,12 +7,13 @@ import { SilentRequest } from "../request/SilentRequest";
|
|
|
7
7
|
import { WrapperSKU } from "../utils/BrowserConstants";
|
|
8
8
|
import { IPublicClientApplication } from "./IPublicClientApplication";
|
|
9
9
|
import { IController } from "../controllers/IController";
|
|
10
|
-
import { PerformanceCallbackFunction, AccountInfo, Logger } from "@azure/msal-common";
|
|
10
|
+
import { PerformanceCallbackFunction, AccountInfo, AccountFilter, Logger } from "@azure/msal-common";
|
|
11
11
|
import { EndSessionRequest } from "../request/EndSessionRequest";
|
|
12
12
|
import { SsoSilentRequest } from "../request/SsoSilentRequest";
|
|
13
13
|
import { BrowserConfiguration, Configuration } from "../config/Configuration";
|
|
14
14
|
import { AuthenticationResult } from "../response/AuthenticationResult";
|
|
15
15
|
import { EventCallbackFunction } from "../event/EventMessage";
|
|
16
|
+
import { ClearCacheRequest } from "../request/ClearCacheRequest";
|
|
16
17
|
/**
|
|
17
18
|
* The PublicClientApplication class is the object exposed by the library to perform authentication and authorization functions in Single Page Applications
|
|
18
19
|
* to obtain JWT tokens as described in the OAuth 2.0 Authorization Code Flow with PKCE specification.
|
|
@@ -115,12 +116,19 @@ export declare class PublicClientApplication implements IPublicClientApplication
|
|
|
115
116
|
* Removes event listener that emits an event when a user account is added or removed from localstorage in a different browser tab or window
|
|
116
117
|
*/
|
|
117
118
|
disableAccountStorageEvents(): void;
|
|
119
|
+
/**
|
|
120
|
+
* Returns the first account found in the cache that matches the account filter passed in.
|
|
121
|
+
* @param accountFilter
|
|
122
|
+
* @returns The first account found in the cache matching the provided filter or null if no account could be found.
|
|
123
|
+
*/
|
|
124
|
+
getAccount(accountFilter: AccountFilter): AccountInfo | null;
|
|
118
125
|
/**
|
|
119
126
|
* Returns the signed in account matching homeAccountId.
|
|
120
127
|
* (the account object is created at the time of successful login)
|
|
121
128
|
* or null when no matching account is found
|
|
122
129
|
* @param homeAccountId
|
|
123
130
|
* @returns The account object stored in MSAL
|
|
131
|
+
* @deprecated - Use getAccount instead
|
|
124
132
|
*/
|
|
125
133
|
getAccountByHomeId(homeAccountId: string): AccountInfo | null;
|
|
126
134
|
/**
|
|
@@ -129,6 +137,7 @@ export declare class PublicClientApplication implements IPublicClientApplication
|
|
|
129
137
|
* or null when no matching account is found
|
|
130
138
|
* @param localAccountId
|
|
131
139
|
* @returns The account object stored in MSAL
|
|
140
|
+
* @deprecated - Use getAccount instead
|
|
132
141
|
*/
|
|
133
142
|
getAccountByLocalId(localId: string): AccountInfo | null;
|
|
134
143
|
/**
|
|
@@ -138,15 +147,15 @@ export declare class PublicClientApplication implements IPublicClientApplication
|
|
|
138
147
|
* This API is provided for convenience but getAccountById should be used for best reliability
|
|
139
148
|
* @param userName
|
|
140
149
|
* @returns The account object stored in MSAL
|
|
150
|
+
* @deprecated - Use getAccount instead
|
|
141
151
|
*/
|
|
142
152
|
getAccountByUsername(userName: string): AccountInfo | null;
|
|
143
153
|
/**
|
|
144
|
-
* Returns all accounts that
|
|
145
|
-
*
|
|
146
|
-
*
|
|
147
|
-
* @returns Array of account objects in cache
|
|
154
|
+
* Returns all the accounts in the cache that match the optional filter. If no filter is provided, all accounts are returned.
|
|
155
|
+
* @param accountFilter - (Optional) filter to narrow down the accounts returned
|
|
156
|
+
* @returns Array of AccountInfo objects in cache
|
|
148
157
|
*/
|
|
149
|
-
getAllAccounts(): AccountInfo[];
|
|
158
|
+
getAllAccounts(accountFilter?: AccountFilter): AccountInfo[];
|
|
150
159
|
/**
|
|
151
160
|
* Event handler function which allows users to fire events after the PublicClientApplication object
|
|
152
161
|
* has loaded during redirect flows. This should be invoked on all page loads involved in redirect
|
|
@@ -251,5 +260,10 @@ export declare class PublicClientApplication implements IPublicClientApplication
|
|
|
251
260
|
* @returns
|
|
252
261
|
*/
|
|
253
262
|
hydrateCache(result: AuthenticationResult, request: SilentRequest | SsoSilentRequest | RedirectRequest | PopupRequest): Promise<void>;
|
|
263
|
+
/**
|
|
264
|
+
* Clears tokens and account from the browser cache.
|
|
265
|
+
* @param logoutRequest
|
|
266
|
+
*/
|
|
267
|
+
clearCache(logoutRequest?: ClearCacheRequest): Promise<void>;
|
|
254
268
|
}
|
|
255
269
|
//# sourceMappingURL=PublicClientApplication.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicClientApplication.d.ts","sourceRoot":"","sources":["../../src/app/PublicClientApplication.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EACH,2BAA2B,EAC3B,WAAW,EACX,MAAM,EACT,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAG/D,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"PublicClientApplication.d.ts","sourceRoot":"","sources":["../../src/app/PublicClientApplication.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,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G/D"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v3.0
|
|
1
|
+
/*! @azure/msal-browser v3.2.0 2023-10-05 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { ControllerFactory } from '../controllers/ControllerFactory.mjs';
|
|
4
4
|
import { StandardController } from '../controllers/StandardController.mjs';
|
|
@@ -144,12 +144,21 @@ class PublicClientApplication {
|
|
|
144
144
|
disableAccountStorageEvents() {
|
|
145
145
|
this.controller.disableAccountStorageEvents();
|
|
146
146
|
}
|
|
147
|
+
/**
|
|
148
|
+
* Returns the first account found in the cache that matches the account filter passed in.
|
|
149
|
+
* @param accountFilter
|
|
150
|
+
* @returns The first account found in the cache matching the provided filter or null if no account could be found.
|
|
151
|
+
*/
|
|
152
|
+
getAccount(accountFilter) {
|
|
153
|
+
return this.controller.getAccount(accountFilter);
|
|
154
|
+
}
|
|
147
155
|
/**
|
|
148
156
|
* Returns the signed in account matching homeAccountId.
|
|
149
157
|
* (the account object is created at the time of successful login)
|
|
150
158
|
* or null when no matching account is found
|
|
151
159
|
* @param homeAccountId
|
|
152
160
|
* @returns The account object stored in MSAL
|
|
161
|
+
* @deprecated - Use getAccount instead
|
|
153
162
|
*/
|
|
154
163
|
getAccountByHomeId(homeAccountId) {
|
|
155
164
|
return this.controller.getAccountByHomeId(homeAccountId);
|
|
@@ -160,6 +169,7 @@ class PublicClientApplication {
|
|
|
160
169
|
* or null when no matching account is found
|
|
161
170
|
* @param localAccountId
|
|
162
171
|
* @returns The account object stored in MSAL
|
|
172
|
+
* @deprecated - Use getAccount instead
|
|
163
173
|
*/
|
|
164
174
|
getAccountByLocalId(localId) {
|
|
165
175
|
return this.controller.getAccountByLocalId(localId);
|
|
@@ -171,18 +181,18 @@ class PublicClientApplication {
|
|
|
171
181
|
* This API is provided for convenience but getAccountById should be used for best reliability
|
|
172
182
|
* @param userName
|
|
173
183
|
* @returns The account object stored in MSAL
|
|
184
|
+
* @deprecated - Use getAccount instead
|
|
174
185
|
*/
|
|
175
186
|
getAccountByUsername(userName) {
|
|
176
187
|
return this.controller.getAccountByUsername(userName);
|
|
177
188
|
}
|
|
178
189
|
/**
|
|
179
|
-
* Returns all accounts that
|
|
180
|
-
*
|
|
181
|
-
*
|
|
182
|
-
* @returns Array of account objects in cache
|
|
190
|
+
* Returns all the accounts in the cache that match the optional filter. If no filter is provided, all accounts are returned.
|
|
191
|
+
* @param accountFilter - (Optional) filter to narrow down the accounts returned
|
|
192
|
+
* @returns Array of AccountInfo objects in cache
|
|
183
193
|
*/
|
|
184
|
-
getAllAccounts() {
|
|
185
|
-
return this.controller.getAllAccounts();
|
|
194
|
+
getAllAccounts(accountFilter) {
|
|
195
|
+
return this.controller.getAllAccounts(accountFilter);
|
|
186
196
|
}
|
|
187
197
|
/**
|
|
188
198
|
* Event handler function which allows users to fire events after the PublicClientApplication object
|
|
@@ -320,6 +330,13 @@ class PublicClientApplication {
|
|
|
320
330
|
async hydrateCache(result, request) {
|
|
321
331
|
return this.controller.hydrateCache(result, request);
|
|
322
332
|
}
|
|
333
|
+
/**
|
|
334
|
+
* Clears tokens and account from the browser cache.
|
|
335
|
+
* @param logoutRequest
|
|
336
|
+
*/
|
|
337
|
+
clearCache(logoutRequest) {
|
|
338
|
+
return this.controller.clearCache(logoutRequest);
|
|
339
|
+
}
|
|
323
340
|
}
|
|
324
341
|
|
|
325
342
|
export { PublicClientApplication };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicClientApplication.mjs","sources":["../../src/app/PublicClientApplication.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"PublicClientApplication.mjs","sources":["../../src/app/PublicClientApplication.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAKA;AACA;AACA;AACA;AAIA;AACA;AACA;AAMA;AACO,MAAE;AAGT,IAAA,aAA6B,6BAAiB,CAAA;AAE9C,QAAS,MAAA,OAAA,GAAA,IAAA;AACT,QAA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,0BAA0B,EAAE;AAI5B,QAAA,OAAA,IAAA,CAAA,UAAA,CAAA,qBAAA,CAAA,IAAA,CAAA,CAAA;;;;;;;;;;;;;;AAcG;;AAKH;;AAEG;AACH;AAIA;;AAEG,QAAA,OAAA,IAAA,CAAA,UAAA,CAAA,aAAA,CAAA,OAAA,CAAA,CAAA;AACH,KAAA;AAIA;;;AAGG;AACH;AAIA,IAAA,MAAA,CAAA,aAAA,EAAA;;;AAGG;AACH;AAIA;;AAEG;IACH,cAAgB,CAAA,aAAe,EAAA;AAI/B,QAAA,OAAA,IAAA,CAAA,UAAA,CAAA,cAAA,CAAA,aAAA,CAAA,CAAA;;;;AAIG;;AAKH,IAAA,WAAA,CAAA,aAAA,EAAA;;;AAGG;AACH;AAIA;;;AAGG;AACH;AAIA;;;;;AAKG;AACG;AAWN;;;AAGG,KAAA;;AAIN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { Logger, AuthenticationScheme, IPerformanceClient
|
|
1
|
+
import { Logger, AuthenticationScheme, IPerformanceClient } from "@azure/msal-common";
|
|
2
2
|
import { NativeExtensionRequestBody } from "./NativeRequest";
|
|
3
3
|
import { BrowserConfiguration } from "../../config/Configuration";
|
|
4
4
|
export declare class NativeMessageHandler {
|
|
5
5
|
private extensionId;
|
|
6
6
|
private extensionVersion;
|
|
7
7
|
private logger;
|
|
8
|
-
private crypto;
|
|
9
8
|
private readonly handshakeTimeoutMs;
|
|
10
9
|
private timeoutId;
|
|
11
10
|
private resolvers;
|
|
@@ -14,7 +13,7 @@ export declare class NativeMessageHandler {
|
|
|
14
13
|
private readonly windowListener;
|
|
15
14
|
private readonly performanceClient;
|
|
16
15
|
private readonly handshakeEvent;
|
|
17
|
-
constructor(logger: Logger, handshakeTimeoutMs: number, performanceClient: IPerformanceClient,
|
|
16
|
+
constructor(logger: Logger, handshakeTimeoutMs: number, performanceClient: IPerformanceClient, extensionId?: string);
|
|
18
17
|
/**
|
|
19
18
|
* Sends a given message to the extension and resolves with the extension response
|
|
20
19
|
* @param body
|
|
@@ -27,7 +26,7 @@ export declare class NativeMessageHandler {
|
|
|
27
26
|
* @param {IPerformanceClient} performanceClient
|
|
28
27
|
* @param {ICrypto} crypto
|
|
29
28
|
*/
|
|
30
|
-
static createProvider(logger: Logger, handshakeTimeoutMs: number, performanceClient: IPerformanceClient
|
|
29
|
+
static createProvider(logger: Logger, handshakeTimeoutMs: number, performanceClient: IPerformanceClient): Promise<NativeMessageHandler>;
|
|
31
30
|
/**
|
|
32
31
|
* Send handshake request helper.
|
|
33
32
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeMessageHandler.d.ts","sourceRoot":"","sources":["../../../src/broker/nativeBroker/NativeMessageHandler.ts"],"names":[],"mappings":"AASA,OAAO,EACH,MAAM,
|
|
1
|
+
{"version":3,"file":"NativeMessageHandler.d.ts","sourceRoot":"","sources":["../../../src/broker/nativeBroker/NativeMessageHandler.ts"],"names":[],"mappings":"AASA,OAAO,EACH,MAAM,EAIN,oBAAoB,EAGpB,kBAAkB,EACrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAEH,0BAA0B,EAC7B,MAAM,iBAAiB,CAAC;AAMzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAUlE,qBAAa,oBAAoB;IAC7B,OAAO,CAAC,WAAW,CAAqB;IACxC,OAAO,CAAC,gBAAgB,CAAqB;IAC7C,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAS;IAC5C,OAAO,CAAC,SAAS,CAAqB;IACtC,OAAO,CAAC,SAAS,CAAyC;IAC1D,OAAO,CAAC,kBAAkB,CAAuC;IACjE,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAgC;IAC/D,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAqB;IACvD,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA6B;gBAGxD,MAAM,EAAE,MAAM,EACd,kBAAkB,EAAE,MAAM,EAC1B,iBAAiB,EAAE,kBAAkB,EACrC,WAAW,CAAC,EAAE,MAAM;IAexB;;;OAGG;IACG,WAAW,CAAC,IAAI,EAAE,0BAA0B,GAAG,OAAO,CAAC,MAAM,CAAC;IAwBpE;;;;;;OAMG;WACU,cAAc,CACvB,MAAM,EAAE,MAAM,EACd,kBAAkB,EAAE,MAAM,EAC1B,iBAAiB,EAAE,kBAAkB,GACtC,OAAO,CAAC,oBAAoB,CAAC;IAuBhC;;OAEG;YACW,oBAAoB;IAsDlC;;;OAGG;IACH,OAAO,CAAC,eAAe;IAyDvB;;;OAGG;IACH,OAAO,CAAC,gBAAgB;IAiGxB;;;OAGG;IACH,cAAc,IAAI,MAAM,GAAG,SAAS;IAIpC;;;OAGG;IACH,mBAAmB,IAAI,MAAM,GAAG,SAAS;IAIzC;;;;;;OAMG;IACH,MAAM,CAAC,iBAAiB,CACpB,MAAM,EAAE,oBAAoB,EAC5B,MAAM,EAAE,MAAM,EACd,uBAAuB,CAAC,EAAE,oBAAoB,EAC9C,oBAAoB,CAAC,EAAE,oBAAoB,GAC5C,OAAO;CAoCb"}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
/*! @azure/msal-browser v3.0
|
|
1
|
+
/*! @azure/msal-browser v3.2.0 2023-10-05 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { NativeConstants, NativeExtensionMethod } from '../../utils/BrowserConstants.mjs';
|
|
4
|
-
import { PerformanceEvents,
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { PerformanceEvents, createAuthError, AuthErrorCodes, AuthenticationScheme } from '@azure/msal-common';
|
|
5
|
+
import { createNativeAuthError } from '../../error/NativeAuthError.mjs';
|
|
6
|
+
import { createBrowserAuthError } from '../../error/BrowserAuthError.mjs';
|
|
7
|
+
import { createNewGuid } from '../../crypto/BrowserCrypto.mjs';
|
|
8
|
+
import { nativeHandshakeTimeout, nativeExtensionNotInstalled } from '../../error/BrowserAuthErrorCodes.mjs';
|
|
7
9
|
|
|
8
10
|
/*
|
|
9
11
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
10
12
|
* Licensed under the MIT License.
|
|
11
13
|
*/
|
|
12
14
|
class NativeMessageHandler {
|
|
13
|
-
constructor(logger, handshakeTimeoutMs, performanceClient,
|
|
15
|
+
constructor(logger, handshakeTimeoutMs, performanceClient, extensionId) {
|
|
14
16
|
this.logger = logger;
|
|
15
17
|
this.handshakeTimeoutMs = handshakeTimeoutMs;
|
|
16
18
|
this.extensionId = extensionId;
|
|
@@ -20,7 +22,6 @@ class NativeMessageHandler {
|
|
|
20
22
|
this.windowListener = this.onWindowMessage.bind(this); // Window event callback doesn't have access to 'this' unless it's bound
|
|
21
23
|
this.performanceClient = performanceClient;
|
|
22
24
|
this.handshakeEvent = performanceClient.startMeasurement(PerformanceEvents.NativeMessageHandlerHandshake);
|
|
23
|
-
this.crypto = crypto;
|
|
24
25
|
}
|
|
25
26
|
/**
|
|
26
27
|
* Sends a given message to the extension and resolves with the extension response
|
|
@@ -31,7 +32,7 @@ class NativeMessageHandler {
|
|
|
31
32
|
const req = {
|
|
32
33
|
channel: NativeConstants.CHANNEL_ID,
|
|
33
34
|
extensionId: this.extensionId,
|
|
34
|
-
responseId:
|
|
35
|
+
responseId: createNewGuid(),
|
|
35
36
|
body: body,
|
|
36
37
|
};
|
|
37
38
|
this.logger.trace("NativeMessageHandler - Sending request to browser extension");
|
|
@@ -48,16 +49,16 @@ class NativeMessageHandler {
|
|
|
48
49
|
* @param {IPerformanceClient} performanceClient
|
|
49
50
|
* @param {ICrypto} crypto
|
|
50
51
|
*/
|
|
51
|
-
static async createProvider(logger, handshakeTimeoutMs, performanceClient
|
|
52
|
+
static async createProvider(logger, handshakeTimeoutMs, performanceClient) {
|
|
52
53
|
logger.trace("NativeMessageHandler - createProvider called.");
|
|
53
54
|
try {
|
|
54
|
-
const preferredProvider = new NativeMessageHandler(logger, handshakeTimeoutMs, performanceClient,
|
|
55
|
+
const preferredProvider = new NativeMessageHandler(logger, handshakeTimeoutMs, performanceClient, NativeConstants.PREFERRED_EXTENSION_ID);
|
|
55
56
|
await preferredProvider.sendHandshakeRequest();
|
|
56
57
|
return preferredProvider;
|
|
57
58
|
}
|
|
58
59
|
catch (e) {
|
|
59
60
|
// If preferred extension fails for whatever reason, fallback to using any installed extension
|
|
60
|
-
const backupProvider = new NativeMessageHandler(logger, handshakeTimeoutMs, performanceClient
|
|
61
|
+
const backupProvider = new NativeMessageHandler(logger, handshakeTimeoutMs, performanceClient);
|
|
61
62
|
await backupProvider.sendHandshakeRequest();
|
|
62
63
|
return backupProvider;
|
|
63
64
|
}
|
|
@@ -72,7 +73,7 @@ class NativeMessageHandler {
|
|
|
72
73
|
const req = {
|
|
73
74
|
channel: NativeConstants.CHANNEL_ID,
|
|
74
75
|
extensionId: this.extensionId,
|
|
75
|
-
responseId:
|
|
76
|
+
responseId: createNewGuid(),
|
|
76
77
|
body: {
|
|
77
78
|
method: NativeExtensionMethod.HandshakeRequest,
|
|
78
79
|
},
|
|
@@ -99,7 +100,7 @@ class NativeMessageHandler {
|
|
|
99
100
|
extensionHandshakeTimedOut: true,
|
|
100
101
|
success: false,
|
|
101
102
|
});
|
|
102
|
-
reject(
|
|
103
|
+
reject(createBrowserAuthError(nativeHandshakeTimeout));
|
|
103
104
|
this.handshakeResolvers.delete(req.responseId);
|
|
104
105
|
}, this.handshakeTimeoutMs); // Use a reasonable timeout in milliseconds here
|
|
105
106
|
});
|
|
@@ -144,7 +145,7 @@ class NativeMessageHandler {
|
|
|
144
145
|
success: false,
|
|
145
146
|
extensionInstalled: false,
|
|
146
147
|
});
|
|
147
|
-
handshakeResolver.reject(
|
|
148
|
+
handshakeResolver.reject(createBrowserAuthError(nativeExtensionNotInstalled));
|
|
148
149
|
}
|
|
149
150
|
}
|
|
150
151
|
/**
|
|
@@ -166,19 +167,19 @@ class NativeMessageHandler {
|
|
|
166
167
|
this.logger.trace("NativeMessageHandler - Received response from browser extension");
|
|
167
168
|
this.logger.tracePii(`NativeMessageHandler - Received response from browser extension: ${JSON.stringify(response)}`);
|
|
168
169
|
if (response.status !== "Success") {
|
|
169
|
-
resolver.reject(
|
|
170
|
+
resolver.reject(createNativeAuthError(response.code, response.description, response.ext));
|
|
170
171
|
}
|
|
171
172
|
else if (response.result) {
|
|
172
173
|
if (response.result["code"] &&
|
|
173
174
|
response.result["description"]) {
|
|
174
|
-
resolver.reject(
|
|
175
|
+
resolver.reject(createNativeAuthError(response.result["code"], response.result["description"], response.result["ext"]));
|
|
175
176
|
}
|
|
176
177
|
else {
|
|
177
178
|
resolver.resolve(response.result);
|
|
178
179
|
}
|
|
179
180
|
}
|
|
180
181
|
else {
|
|
181
|
-
throw
|
|
182
|
+
throw createAuthError(AuthErrorCodes.unexpectedError, "Event does not contain result.");
|
|
182
183
|
}
|
|
183
184
|
this.resolvers.delete(request.responseId);
|
|
184
185
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeMessageHandler.mjs","sources":["../../../src/broker/nativeBroker/NativeMessageHandler.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NativeMessageHandler.mjs","sources":["../../../src/broker/nativeBroker/NativeMessageHandler.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;AASA;AAUA;AASA;AAUA;AAMW,0BAAmD,CAAA;IAC1D,sCAAiE,EAAA,iBAAA,EAAA,WAAA,EAAA;QAC1D,IAAC,gBAA+B,CAAA;AACvC,QAAA,IAAQ,CAAA,kBAAS,GAAA,kBAA8C,CAAA;AAC/D,QAAA,IAAQ,CAAA,WAAS,GAAA,WAAiB,CAAqB;AACvD,QAAA,IAAQ,CAAA,SAAS,GAAA,IAAA,GAAA,EAAA,CAAc;AAG3B,QAA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ERACTION_REQUIRED";
|
|
2
|
+
export declare const USER_CANCEL = "USER_CANCEL";
|
|
3
|
+
export declare const NO_NETWORK = "NO_NETWORK";
|
|
4
|
+
export declare const TRANSIENT_ERROR = "TRANSIENT_ERROR";
|
|
5
|
+
export declare const PERSISTENT_ERROR = "PERSISTENT_ERROR";
|
|
6
|
+
export declare const DISABLED = "DISABLED";
|
|
7
|
+
export declare const ACCOUNT_UNAVAILABLE = "ACCOUNT_UNAVAILABLE";
|
|
8
|
+
//# sourceMappingURL=NativeStatusCodes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativeStatusCodes.d.ts","sourceRoot":"","sources":["../../../src/broker/nativeBroker/NativeStatusCodes.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AACrE,eAAO,MAAM,WAAW,gBAAgB,CAAC;AACzC,eAAO,MAAM,UAAU,eAAe,CAAC;AACvC,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,QAAQ,aAAa,CAAC;AACnC,eAAO,MAAM,mBAAmB,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*! @azure/msal-browser v3.2.0 2023-10-05 */
|
|
2
|
+
'use strict';
|
|
3
|
+
/*
|
|
4
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5
|
+
* Licensed under the MIT License.
|
|
6
|
+
*/
|
|
7
|
+
// Status Codes that can be thrown by WAM
|
|
8
|
+
const USER_INTERACTION_REQUIRED = "USER_INTERACTION_REQUIRED";
|
|
9
|
+
const USER_CANCEL = "USER_CANCEL";
|
|
10
|
+
const NO_NETWORK = "NO_NETWORK";
|
|
11
|
+
const PERSISTENT_ERROR = "PERSISTENT_ERROR";
|
|
12
|
+
const DISABLED = "DISABLED";
|
|
13
|
+
const ACCOUNT_UNAVAILABLE = "ACCOUNT_UNAVAILABLE";
|
|
14
|
+
|
|
15
|
+
export { ACCOUNT_UNAVAILABLE, DISABLED, NO_NETWORK, PERSISTENT_ERROR, USER_CANCEL, USER_INTERACTION_REQUIRED };
|
|
16
|
+
//# sourceMappingURL=NativeStatusCodes.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativeStatusCodes.mjs","sources":["../../../src/broker/nativeBroker/NativeStatusCodes.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAMA;AACA;AACA;AACA;AACA;AACO,MAAA,yBAAc,GAAA,4BAAc;AAC5B,MAAA,WAAyB,GAAA,cAAA;;;;;;;;"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
/*! @azure/msal-browser v3.0
|
|
1
|
+
/*! @azure/msal-browser v3.2.0 2023-10-05 */
|
|
2
2
|
'use strict';
|
|
3
|
-
import { BrowserAuthError
|
|
3
|
+
import { BrowserAuthError } from '../error/BrowserAuthError.mjs';
|
|
4
4
|
import { DatabaseStorage } from './DatabaseStorage.mjs';
|
|
5
5
|
import { MemoryStorage } from './MemoryStorage.mjs';
|
|
6
|
+
import { databaseUnavailable } from '../error/BrowserAuthErrorCodes.mjs';
|
|
6
7
|
|
|
7
8
|
/*
|
|
8
9
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -21,7 +22,7 @@ class AsyncMemoryStorage {
|
|
|
21
22
|
}
|
|
22
23
|
handleDatabaseAccessError(error) {
|
|
23
24
|
if (error instanceof BrowserAuthError &&
|
|
24
|
-
error.errorCode ===
|
|
25
|
+
error.errorCode === databaseUnavailable) {
|
|
25
26
|
this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.");
|
|
26
27
|
}
|
|
27
28
|
else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AsyncMemoryStorage.mjs","sources":["../../src/cache/AsyncMemoryStorage.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AsyncMemoryStorage.mjs","sources":["../../src/cache/AsyncMemoryStorage.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAKA;AAMA;AAGA;;;;;;AAUgB,MAAA,kBAAgB,CAAA;AAO5B,IAAA,WAAiC,CAAA,MAAA,EAAA,SAAA,EAAA;AAYjC,QAAA,IAAA,CAAA,aAAA,GAAA,IAAA,aAAA,EAAA,CAAA;;;;AAIG,KAAA;IACG,+BAA+B,EAAG;AAexC,QAAA,IAAA,KAAA,YAAA,gBAAA;;;;;AAKG,YAAA,MAAA,KAAA,CAAA;AACG,SAAA;AASN,KAAA;;;AAGG;;AAUH;;;AAGG,QAAA,IAAA,CAAA,IAAA,EAAA;AACG,YAAW,IAAA;AAejB,gBAAA,IAAA,CAAA,MAAA,CAAA,OAAA,CAAA,6EAAA,CAAA,CAAA;;;AAGG,YAAA,OAAA,CAAA,EAAA;gBACe,IAAK,CAAA,yBAAyB,CAAA,CAAA,CAAA,CAAA;AAehD,aAAA;;AAEG,QAAA,OAAA,IAAA,CAAA;AACH,KAAA;AAOA;;;AAGG;AACG;AAcT;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|