@azure/msal-browser 3.1.0 → 3.3.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.map +1 -1
- package/dist/app/IPublicClientApplication.mjs +20 -19
- package/dist/app/IPublicClientApplication.mjs.map +1 -1
- package/dist/app/PublicClientApplication.d.ts +14 -6
- package/dist/app/PublicClientApplication.d.ts.map +1 -1
- package/dist/app/PublicClientApplication.mjs +18 -8
- package/dist/app/PublicClientApplication.mjs.map +1 -1
- package/dist/app/PublicClientNext.d.ts +274 -0
- package/dist/app/PublicClientNext.d.ts.map +1 -0
- package/dist/app/PublicClientNext.mjs +362 -0
- package/dist/app/PublicClientNext.mjs.map +1 -0
- 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 +13 -13
- 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 +1 -1
- package/dist/cache/BrowserCacheManager.d.ts +4 -15
- package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
- package/dist/cache/BrowserCacheManager.mjs +13 -69
- 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/DatabaseStorage.mjs +1 -1
- package/dist/cache/MemoryStorage.mjs +1 -1
- package/dist/cache/TokenCache.mjs +1 -1
- package/dist/config/Configuration.d.ts +4 -0
- package/dist/config/Configuration.d.ts.map +1 -1
- package/dist/config/Configuration.mjs +8 -7
- package/dist/config/Configuration.mjs.map +1 -1
- package/dist/controllers/ControllerFactory.d.ts +2 -1
- package/dist/controllers/ControllerFactory.d.ts.map +1 -1
- package/dist/controllers/ControllerFactory.mjs +26 -19
- package/dist/controllers/ControllerFactory.mjs.map +1 -1
- package/dist/controllers/IController.d.ts +3 -2
- package/dist/controllers/IController.d.ts.map +1 -1
- package/dist/controllers/NestedAppAuthController.d.ts +96 -0
- package/dist/controllers/NestedAppAuthController.d.ts.map +1 -0
- package/dist/controllers/NestedAppAuthController.mjs +345 -0
- package/dist/controllers/NestedAppAuthController.mjs.map +1 -0
- package/dist/controllers/StandardController.d.ts +11 -6
- package/dist/controllers/StandardController.d.ts.map +1 -1
- package/dist/controllers/StandardController.mjs +67 -45
- package/dist/controllers/StandardController.mjs.map +1 -1
- package/dist/controllers/UnknownOperatingContextController.d.ts +88 -0
- package/dist/controllers/UnknownOperatingContextController.d.ts.map +1 -0
- package/dist/controllers/UnknownOperatingContextController.mjs +275 -0
- package/dist/controllers/UnknownOperatingContextController.mjs.map +1 -0
- package/dist/crypto/BrowserCrypto.d.ts +44 -49
- package/dist/crypto/BrowserCrypto.d.ts.map +1 -1
- package/dist/crypto/BrowserCrypto.mjs +77 -77
- package/dist/crypto/BrowserCrypto.mjs.map +1 -1
- package/dist/crypto/CryptoOps.d.ts +1 -7
- package/dist/crypto/CryptoOps.d.ts.map +1 -1
- package/dist/crypto/CryptoOps.mjs +18 -23
- package/dist/crypto/CryptoOps.mjs.map +1 -1
- package/dist/crypto/PkceGenerator.d.ts +6 -21
- package/dist/crypto/PkceGenerator.d.ts.map +1 -1
- package/dist/crypto/PkceGenerator.mjs +45 -46
- package/dist/crypto/PkceGenerator.mjs.map +1 -1
- package/dist/crypto/SignedHttpRequest.mjs +1 -1
- package/dist/encode/Base64Decode.d.ts.map +1 -1
- package/dist/encode/Base64Decode.mjs +18 -2
- package/dist/encode/Base64Decode.mjs.map +1 -1
- package/dist/encode/Base64Encode.mjs +1 -1
- package/dist/error/BrowserAuthError.d.ts +10 -1
- package/dist/error/BrowserAuthError.d.ts.map +1 -1
- package/dist/error/BrowserAuthError.mjs +12 -3
- package/dist/error/BrowserAuthError.mjs.map +1 -1
- package/dist/error/BrowserAuthErrorCodes.d.ts +1 -0
- package/dist/error/BrowserAuthErrorCodes.d.ts.map +1 -1
- package/dist/error/BrowserAuthErrorCodes.mjs +3 -2
- package/dist/error/BrowserAuthErrorCodes.mjs.map +1 -1
- 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 +47 -78
- 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/error/NestedAppAuthError.d.ts +15 -0
- package/dist/error/NestedAppAuthError.d.ts.map +1 -0
- package/dist/error/NestedAppAuthError.mjs +30 -0
- package/dist/error/NestedAppAuthError.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/EventType.mjs +1 -1
- package/dist/index.d.ts +5 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +7 -3
- package/dist/index.mjs.map +1 -1
- package/dist/interaction_client/BaseInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/BaseInteractionClient.mjs +10 -11
- package/dist/interaction_client/BaseInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
- package/dist/interaction_client/NativeInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/NativeInteractionClient.mjs +26 -13
- 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 +5 -4
- package/dist/interaction_client/PopupClient.mjs.map +1 -1
- package/dist/interaction_client/RedirectClient.mjs +7 -7
- package/dist/interaction_client/SilentAuthCodeClient.d.ts.map +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.mjs +7 -10
- package/dist/interaction_client/SilentAuthCodeClient.mjs.map +1 -1
- package/dist/interaction_client/SilentCacheClient.d.ts.map +1 -1
- package/dist/interaction_client/SilentCacheClient.mjs +11 -18
- 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 +27 -13
- 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 +8 -18
- 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 +16 -37
- 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 +6 -9
- 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 +3 -3
- package/dist/interaction_handler/RedirectHandler.mjs.map +1 -1
- package/dist/interaction_handler/SilentHandler.d.ts +13 -47
- package/dist/interaction_handler/SilentHandler.d.ts.map +1 -1
- package/dist/interaction_handler/SilentHandler.mjs +120 -156
- package/dist/interaction_handler/SilentHandler.mjs.map +1 -1
- package/dist/naa/AccountInfo.d.ts +13 -0
- package/dist/naa/AccountInfo.d.ts.map +1 -0
- package/dist/naa/AccountRequests.d.ts +10 -0
- package/dist/naa/AccountRequests.d.ts.map +1 -0
- package/dist/naa/AuthBridge.d.ts +6 -0
- package/dist/naa/AuthBridge.d.ts.map +1 -0
- package/dist/naa/BridgeCapabilities.d.ts +4 -0
- package/dist/naa/BridgeCapabilities.d.ts.map +1 -0
- package/dist/naa/BridgeError.d.ts +10 -0
- package/dist/naa/BridgeError.d.ts.map +1 -0
- package/dist/naa/BridgeError.mjs +12 -0
- package/dist/naa/BridgeError.mjs.map +1 -0
- package/dist/naa/BridgeProxy.d.ts +72 -0
- package/dist/naa/BridgeProxy.d.ts.map +1 -0
- package/dist/naa/BridgeProxy.mjs +154 -0
- package/dist/naa/BridgeProxy.mjs.map +1 -0
- package/dist/naa/BridgeRequest.d.ts +7 -0
- package/dist/naa/BridgeRequest.d.ts.map +1 -0
- package/dist/naa/BridgeRequestEnvelope.d.ts +14 -0
- package/dist/naa/BridgeRequestEnvelope.d.ts.map +1 -0
- package/dist/naa/BridgeResponseEnvelope.d.ts +11 -0
- package/dist/naa/BridgeResponseEnvelope.d.ts.map +1 -0
- package/dist/naa/BridgeStatusCode.d.ts +11 -0
- package/dist/naa/BridgeStatusCode.d.ts.map +1 -0
- package/dist/naa/BridgeStatusCode.mjs +20 -0
- package/dist/naa/BridgeStatusCode.mjs.map +1 -0
- package/dist/naa/IBridgeProxy.d.ts +11 -0
- package/dist/naa/IBridgeProxy.d.ts.map +1 -0
- package/dist/naa/InitializeBridgeResponse.d.ts +7 -0
- package/dist/naa/InitializeBridgeResponse.d.ts.map +1 -0
- package/dist/naa/TokenRequest.d.ts +22 -0
- package/dist/naa/TokenRequest.d.ts.map +1 -0
- package/dist/naa/TokenResponse.d.ts +17 -0
- package/dist/naa/TokenResponse.d.ts.map +1 -0
- package/dist/naa/mapping/NestedAppAuthAdapter.d.ts +26 -0
- package/dist/naa/mapping/NestedAppAuthAdapter.d.ts.map +1 -0
- package/dist/naa/mapping/NestedAppAuthAdapter.mjs +178 -0
- package/dist/naa/mapping/NestedAppAuthAdapter.mjs.map +1 -0
- package/dist/navigation/NavigationClient.mjs +1 -1
- package/dist/network/FetchClient.mjs +1 -1
- package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
- package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
- package/dist/operatingcontext/TeamsAppOperatingContext.d.ts +7 -0
- package/dist/operatingcontext/TeamsAppOperatingContext.d.ts.map +1 -1
- package/dist/operatingcontext/TeamsAppOperatingContext.mjs +45 -4
- package/dist/operatingcontext/TeamsAppOperatingContext.mjs.map +1 -1
- package/dist/operatingcontext/UnknownOperatingContext.d.ts +26 -0
- package/dist/operatingcontext/UnknownOperatingContext.d.ts.map +1 -0
- package/dist/operatingcontext/UnknownOperatingContext.mjs +49 -0
- package/dist/operatingcontext/UnknownOperatingContext.mjs.map +1 -0
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
- package/dist/utils/BrowserConstants.mjs +1 -1
- package/dist/utils/BrowserProtocolUtils.d.ts.map +1 -1
- package/dist/utils/BrowserProtocolUtils.mjs +3 -3
- package/dist/utils/BrowserProtocolUtils.mjs.map +1 -1
- package/dist/utils/BrowserUtils.d.ts +54 -53
- package/dist/utils/BrowserUtils.d.ts.map +1 -1
- package/dist/utils/BrowserUtils.mjs +114 -102
- package/dist/utils/BrowserUtils.mjs.map +1 -1
- package/lib/msal-browser.cjs +61 -18042
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +13593 -12505
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +66 -65
- package/package.json +2 -2
- package/src/app/IPublicClientApplication.ts +55 -18
- package/src/app/PublicClientApplication.ts +19 -7
- package/src/app/PublicClientNext.ts +442 -0
- package/src/broker/nativeBroker/NativeMessageHandler.ts +12 -15
- package/src/broker/nativeBroker/NativeStatusCodes.ts +13 -0
- package/src/cache/BrowserCacheManager.ts +29 -103
- package/src/cache/BrowserStorage.ts +9 -11
- package/src/config/Configuration.ts +21 -8
- package/src/controllers/ControllerFactory.ts +36 -25
- package/src/controllers/IController.ts +4 -1
- package/src/controllers/NestedAppAuthController.ts +525 -0
- package/src/controllers/StandardController.ts +163 -98
- package/src/controllers/UnknownOperatingContextController.ts +383 -0
- package/src/crypto/BrowserCrypto.ts +119 -103
- package/src/crypto/CryptoOps.ts +18 -27
- package/src/crypto/PkceGenerator.ts +93 -54
- package/src/encode/Base64Decode.ts +21 -1
- package/src/error/BrowserAuthError.ts +13 -1
- package/src/error/BrowserAuthErrorCodes.ts +1 -0
- package/src/error/BrowserConfigurationAuthError.ts +33 -102
- package/src/error/BrowserConfigurationAuthErrorCodes.ts +9 -0
- package/src/error/NativeAuthError.ts +73 -101
- package/src/error/NativeAuthErrorCodes.ts +7 -0
- package/src/error/NestedAppAuthError.ts +32 -0
- package/src/event/EventHandler.ts +2 -1
- package/src/index.ts +8 -10
- package/src/interaction_client/BaseInteractionClient.ts +14 -8
- package/src/interaction_client/NativeInteractionClient.ts +48 -14
- package/src/interaction_client/PopupClient.ts +2 -1
- package/src/interaction_client/RedirectClient.ts +1 -1
- package/src/interaction_client/SilentAuthCodeClient.ts +22 -19
- package/src/interaction_client/SilentCacheClient.ts +28 -28
- package/src/interaction_client/SilentIframeClient.ts +54 -18
- package/src/interaction_client/SilentRefreshClient.ts +26 -28
- package/src/interaction_client/StandardInteractionClient.ts +37 -68
- package/src/interaction_handler/InteractionHandler.ts +20 -15
- package/src/interaction_handler/RedirectHandler.ts +6 -2
- package/src/interaction_handler/SilentHandler.ts +177 -230
- package/src/naa/AccountInfo.ts +17 -0
- package/src/naa/AccountRequests.ts +16 -0
- package/src/naa/AuthBridge.ts +16 -0
- package/src/naa/BridgeCapabilities.ts +8 -0
- package/src/naa/BridgeError.ts +18 -0
- package/src/naa/BridgeProxy.ts +230 -0
- package/src/naa/BridgeRequest.ts +12 -0
- package/src/naa/BridgeRequestEnvelope.ts +46 -0
- package/src/naa/BridgeResponseEnvelope.ts +21 -0
- package/src/naa/BridgeStatusCode.ts +15 -0
- package/src/naa/IBridgeProxy.ts +25 -0
- package/src/naa/InitializeBridgeResponse.ts +12 -0
- package/src/naa/TokenRequest.ts +26 -0
- package/src/naa/TokenResponse.ts +61 -0
- package/src/naa/mapping/NestedAppAuthAdapter.ts +252 -0
- package/src/operatingcontext/TeamsAppOperatingContext.ts +43 -3
- package/src/operatingcontext/UnknownOperatingContext.ts +48 -0
- package/src/packageMetadata.ts +1 -1
- package/src/utils/BrowserProtocolUtils.ts +3 -2
- package/src/utils/BrowserUtils.ts +133 -125
- 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/utils/BrowserStringUtils.d.ts +0 -22
- package/dist/utils/BrowserStringUtils.d.ts.map +0 -1
- package/dist/utils/BrowserStringUtils.mjs +0 -144
- package/dist/utils/BrowserStringUtils.mjs.map +0 -1
- package/src/crypto/ISubtleCrypto.ts +0 -30
- package/src/crypto/ModernBrowserCrypto.ts +0 -69
- package/src/utils/BrowserStringUtils.ts +0 -143
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
/*! @azure/msal-browser v3.3.0 2023-10-20 */
|
|
2
|
+
'use strict';
|
|
3
|
+
import { ControllerFactory } from '../controllers/ControllerFactory.mjs';
|
|
4
|
+
import { UnknownOperatingContextController } from '../controllers/UnknownOperatingContextController.mjs';
|
|
5
|
+
import { UnknownOperatingContext } from '../operatingcontext/UnknownOperatingContext.mjs';
|
|
6
|
+
|
|
7
|
+
/*
|
|
8
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
|
+
* Licensed under the MIT License.
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* PublicClientNext is an early look at the planned implementation of PublicClientApplication in the next major version of MSAL.js.
|
|
13
|
+
* It contains support for multiple API implementations based on the runtime environment that it is running in.
|
|
14
|
+
*
|
|
15
|
+
* The goals of these changes are to provide a clean separation of behavior between different operating contexts (Nested App Auth, Platform Brokers, Plain old Browser, etc.)
|
|
16
|
+
* while still providing a consistent API surface for developers.
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
class PublicClientNext {
|
|
20
|
+
static async createPublicClientApplication(configuration) {
|
|
21
|
+
const factory = new ControllerFactory(configuration);
|
|
22
|
+
const controller = await factory.createController();
|
|
23
|
+
let pca;
|
|
24
|
+
if (controller !== null) {
|
|
25
|
+
pca = new PublicClientNext(configuration, controller);
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
pca = new PublicClientNext(configuration);
|
|
29
|
+
}
|
|
30
|
+
return pca;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @constructor
|
|
34
|
+
* Constructor for the PublicClientNext used to instantiate the PublicClientNext object
|
|
35
|
+
*
|
|
36
|
+
* Important attributes in the Configuration object for auth are:
|
|
37
|
+
* - clientID: the application ID of your application. You can obtain one by registering your application with our Application registration portal : https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/RegisteredAppsPreview
|
|
38
|
+
* - authority: the authority URL for your application.
|
|
39
|
+
* - redirect_uri: the uri of your application registered in the portal.
|
|
40
|
+
*
|
|
41
|
+
* In Azure AD, authority is a URL indicating the Azure active directory that MSAL uses to obtain tokens.
|
|
42
|
+
* It is of the form https://login.microsoftonline.com/{Enter_the_Tenant_Info_Here}
|
|
43
|
+
* If your application supports Accounts in one organizational directory, replace "Enter_the_Tenant_Info_Here" value with the Tenant Id or Tenant name (for example, contoso.microsoft.com).
|
|
44
|
+
* If your application supports Accounts in any organizational directory, replace "Enter_the_Tenant_Info_Here" value with organizations.
|
|
45
|
+
* If your application supports Accounts in any organizational directory and personal Microsoft accounts, replace "Enter_the_Tenant_Info_Here" value with common.
|
|
46
|
+
* To restrict support to Personal Microsoft accounts only, replace "Enter_the_Tenant_Info_Here" value with consumers.
|
|
47
|
+
*
|
|
48
|
+
* In Azure B2C, authority is of the form https://{instance}/tfp/{tenant}/{policyName}/
|
|
49
|
+
* Full B2C functionality will be available in this library in future versions.
|
|
50
|
+
*
|
|
51
|
+
* @param configuration Object for the MSAL PublicClientApplication instance
|
|
52
|
+
* @param IController Optional parameter to explictly set the controller. (Will be removed when we remove public constructor)
|
|
53
|
+
*/
|
|
54
|
+
constructor(configuration, controller) {
|
|
55
|
+
this.configuration = configuration;
|
|
56
|
+
if (controller) {
|
|
57
|
+
this.controller = controller;
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
const operatingContext = new UnknownOperatingContext(configuration);
|
|
61
|
+
this.controller = new UnknownOperatingContextController(operatingContext);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Initializer function to perform async startup tasks such as connecting to WAM extension
|
|
66
|
+
*/
|
|
67
|
+
async initialize() {
|
|
68
|
+
if (this.controller instanceof UnknownOperatingContextController) {
|
|
69
|
+
const factory = new ControllerFactory(this.configuration);
|
|
70
|
+
const result = await factory.createController();
|
|
71
|
+
if (result !== null) {
|
|
72
|
+
this.controller = result;
|
|
73
|
+
}
|
|
74
|
+
return this.controller.initialize();
|
|
75
|
+
}
|
|
76
|
+
return Promise.resolve();
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Use when you want to obtain an access_token for your API via opening a popup window in the user's browser
|
|
80
|
+
*
|
|
81
|
+
* @param request
|
|
82
|
+
*
|
|
83
|
+
* @returns A promise that is fulfilled when this function has completed, or rejected if an error was raised.
|
|
84
|
+
*/
|
|
85
|
+
async acquireTokenPopup(request) {
|
|
86
|
+
return this.controller.acquireTokenPopup(request);
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Use when you want to obtain an access_token for your API by redirecting the user's browser window to the authorization endpoint. This function redirects
|
|
90
|
+
* the page, so any code that follows this function will not execute.
|
|
91
|
+
*
|
|
92
|
+
* IMPORTANT: It is NOT recommended to have code that is dependent on the resolution of the Promise. This function will navigate away from the current
|
|
93
|
+
* browser window. It currently returns a Promise in order to reflect the asynchronous nature of the code running in this function.
|
|
94
|
+
*
|
|
95
|
+
* @param request
|
|
96
|
+
*/
|
|
97
|
+
acquireTokenRedirect(request) {
|
|
98
|
+
return this.controller.acquireTokenRedirect(request);
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Silently acquire an access token for a given set of scopes. Returns currently processing promise if parallel requests are made.
|
|
102
|
+
*
|
|
103
|
+
* @param {@link (SilentRequest:type)}
|
|
104
|
+
* @returns {Promise.<AuthenticationResult>} - a promise that is fulfilled when this function has completed, or rejected if an error was raised. Returns the {@link AuthenticationResult} object
|
|
105
|
+
*/
|
|
106
|
+
acquireTokenSilent(silentRequest) {
|
|
107
|
+
return this.controller.acquireTokenSilent(silentRequest);
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* This function redeems an authorization code (passed as code) from the eSTS token endpoint.
|
|
111
|
+
* This authorization code should be acquired server-side using a confidential client to acquire a spa_code.
|
|
112
|
+
* This API is not indended for normal authorization code acquisition and redemption.
|
|
113
|
+
*
|
|
114
|
+
* Redemption of this authorization code will not require PKCE, as it was acquired by a confidential client.
|
|
115
|
+
*
|
|
116
|
+
* @param request {@link AuthorizationCodeRequest}
|
|
117
|
+
* @returns A promise that is fulfilled when this function has completed, or rejected if an error was raised.
|
|
118
|
+
*/
|
|
119
|
+
acquireTokenByCode(request) {
|
|
120
|
+
return this.controller.acquireTokenByCode(request);
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Adds event callbacks to array
|
|
124
|
+
* @param callback
|
|
125
|
+
*/
|
|
126
|
+
addEventCallback(callback) {
|
|
127
|
+
return this.controller.addEventCallback(callback);
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Removes callback with provided id from callback array
|
|
131
|
+
* @param callbackId
|
|
132
|
+
*/
|
|
133
|
+
removeEventCallback(callbackId) {
|
|
134
|
+
return this.controller.removeEventCallback(callbackId);
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Registers a callback to receive performance events.
|
|
138
|
+
*
|
|
139
|
+
* @param {PerformanceCallbackFunction} callback
|
|
140
|
+
* @returns {string}
|
|
141
|
+
*/
|
|
142
|
+
addPerformanceCallback(callback) {
|
|
143
|
+
return this.controller.addPerformanceCallback(callback);
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Removes a callback registered with addPerformanceCallback.
|
|
147
|
+
*
|
|
148
|
+
* @param {string} callbackId
|
|
149
|
+
* @returns {boolean}
|
|
150
|
+
*/
|
|
151
|
+
removePerformanceCallback(callbackId) {
|
|
152
|
+
return this.controller.removePerformanceCallback(callbackId);
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Adds event listener that emits an event when a user account is added or removed from localstorage in a different browser tab or window
|
|
156
|
+
*/
|
|
157
|
+
enableAccountStorageEvents() {
|
|
158
|
+
this.controller.enableAccountStorageEvents();
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Removes event listener that emits an event when a user account is added or removed from localstorage in a different browser tab or window
|
|
162
|
+
*/
|
|
163
|
+
disableAccountStorageEvents() {
|
|
164
|
+
this.controller.disableAccountStorageEvents();
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Returns the first account found in the cache that matches the account filter passed in.
|
|
168
|
+
* @param accountFilter
|
|
169
|
+
* @returns The first account found in the cache matching the provided filter or null if no account could be found.
|
|
170
|
+
*/
|
|
171
|
+
getAccount(accountFilter) {
|
|
172
|
+
return this.controller.getAccount(accountFilter);
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Returns the signed in account matching homeAccountId.
|
|
176
|
+
* (the account object is created at the time of successful login)
|
|
177
|
+
* or null when no matching account is found
|
|
178
|
+
* @param homeAccountId
|
|
179
|
+
* @returns The account object stored in MSAL
|
|
180
|
+
* @deprecated - Use getAccount instead
|
|
181
|
+
*/
|
|
182
|
+
getAccountByHomeId(homeAccountId) {
|
|
183
|
+
return this.controller.getAccountByHomeId(homeAccountId);
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Returns the signed in account matching localAccountId.
|
|
187
|
+
* (the account object is created at the time of successful login)
|
|
188
|
+
* or null when no matching account is found
|
|
189
|
+
* @param localAccountId
|
|
190
|
+
* @returns The account object stored in MSAL
|
|
191
|
+
* @deprecated - Use getAccount instead
|
|
192
|
+
*/
|
|
193
|
+
getAccountByLocalId(localId) {
|
|
194
|
+
return this.controller.getAccountByLocalId(localId);
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Returns the signed in account matching username.
|
|
198
|
+
* (the account object is created at the time of successful login)
|
|
199
|
+
* or null when no matching account is found.
|
|
200
|
+
* This API is provided for convenience but getAccountById should be used for best reliability
|
|
201
|
+
* @param userName
|
|
202
|
+
* @returns The account object stored in MSAL
|
|
203
|
+
* @deprecated - Use getAccount instead
|
|
204
|
+
*/
|
|
205
|
+
getAccountByUsername(userName) {
|
|
206
|
+
return this.controller.getAccountByUsername(userName);
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Returns all the accounts in the cache that match the optional filter. If no filter is provided, all accounts are returned.
|
|
210
|
+
* @param accountFilter - (Optional) filter to narrow down the accounts returned
|
|
211
|
+
* @returns Array of AccountInfo objects in cache
|
|
212
|
+
*/
|
|
213
|
+
getAllAccounts(accountFilter) {
|
|
214
|
+
return this.controller.getAllAccounts(accountFilter);
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Event handler function which allows users to fire events after the PublicClientApplication object
|
|
218
|
+
* has loaded during redirect flows. This should be invoked on all page loads involved in redirect
|
|
219
|
+
* auth flows.
|
|
220
|
+
* @param hash Hash to process. Defaults to the current value of window.location.hash. Only needs to be provided explicitly if the response to be handled is not contained in the current value.
|
|
221
|
+
* @returns Token response or null. If the return value is null, then no auth redirect was detected.
|
|
222
|
+
*/
|
|
223
|
+
handleRedirectPromise(hash) {
|
|
224
|
+
return this.controller.handleRedirectPromise(hash);
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Use when initiating the login process via opening a popup window in the user's browser
|
|
228
|
+
*
|
|
229
|
+
* @param request
|
|
230
|
+
*
|
|
231
|
+
* @returns A promise that is fulfilled when this function has completed, or rejected if an error was raised.
|
|
232
|
+
*/
|
|
233
|
+
loginPopup(request) {
|
|
234
|
+
return this.controller.loginPopup(request);
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* Use when initiating the login process by redirecting the user's browser to the authorization endpoint. This function redirects the page, so
|
|
238
|
+
* any code that follows this function will not execute.
|
|
239
|
+
*
|
|
240
|
+
* IMPORTANT: It is NOT recommended to have code that is dependent on the resolution of the Promise. This function will navigate away from the current
|
|
241
|
+
* browser window. It currently returns a Promise in order to reflect the asynchronous nature of the code running in this function.
|
|
242
|
+
*
|
|
243
|
+
* @param request
|
|
244
|
+
*/
|
|
245
|
+
loginRedirect(request) {
|
|
246
|
+
return this.controller.loginRedirect(request);
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Deprecated logout function. Use logoutRedirect or logoutPopup instead
|
|
250
|
+
* @param logoutRequest
|
|
251
|
+
* @deprecated
|
|
252
|
+
*/
|
|
253
|
+
logout(logoutRequest) {
|
|
254
|
+
return this.controller.logout(logoutRequest);
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Use to log out the current user, and redirect the user to the postLogoutRedirectUri.
|
|
258
|
+
* Default behaviour is to redirect the user to `window.location.href`.
|
|
259
|
+
* @param logoutRequest
|
|
260
|
+
*/
|
|
261
|
+
logoutRedirect(logoutRequest) {
|
|
262
|
+
return this.controller.logoutRedirect(logoutRequest);
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* Clears local cache for the current user then opens a popup window prompting the user to sign-out of the server
|
|
266
|
+
* @param logoutRequest
|
|
267
|
+
*/
|
|
268
|
+
logoutPopup(logoutRequest) {
|
|
269
|
+
return this.controller.logoutPopup(logoutRequest);
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* This function uses a hidden iframe to fetch an authorization code from the eSTS. There are cases where this may not work:
|
|
273
|
+
* - Any browser using a form of Intelligent Tracking Prevention
|
|
274
|
+
* - If there is not an established session with the service
|
|
275
|
+
*
|
|
276
|
+
* In these cases, the request must be done inside a popup or full frame redirect.
|
|
277
|
+
*
|
|
278
|
+
* For the cases where interaction is required, you cannot send a request with prompt=none.
|
|
279
|
+
*
|
|
280
|
+
* If your refresh token has expired, you can use this function to fetch a new set of tokens silently as long as
|
|
281
|
+
* you session on the server still exists.
|
|
282
|
+
* @param request {@link SsoSilentRequest}
|
|
283
|
+
*
|
|
284
|
+
* @returns A promise that is fulfilled when this function has completed, or rejected if an error was raised.
|
|
285
|
+
*/
|
|
286
|
+
ssoSilent(request) {
|
|
287
|
+
return this.controller.ssoSilent(request);
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* Gets the token cache for the application.
|
|
291
|
+
*/
|
|
292
|
+
getTokenCache() {
|
|
293
|
+
return this.controller.getTokenCache();
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Returns the logger instance
|
|
297
|
+
*/
|
|
298
|
+
getLogger() {
|
|
299
|
+
return this.controller.getLogger();
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* Replaces the default logger set in configurations with new Logger with new configurations
|
|
303
|
+
* @param logger Logger instance
|
|
304
|
+
*/
|
|
305
|
+
setLogger(logger) {
|
|
306
|
+
this.controller.setLogger(logger);
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Sets the account to use as the active account. If no account is passed to the acquireToken APIs, then MSAL will use this active account.
|
|
310
|
+
* @param account
|
|
311
|
+
*/
|
|
312
|
+
setActiveAccount(account) {
|
|
313
|
+
this.controller.setActiveAccount(account);
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* Gets the currently active account
|
|
317
|
+
*/
|
|
318
|
+
getActiveAccount() {
|
|
319
|
+
return this.controller.getActiveAccount();
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* Called by wrapper libraries (Angular & React) to set SKU and Version passed down to telemetry, logger, etc.
|
|
323
|
+
* @param sku
|
|
324
|
+
* @param version
|
|
325
|
+
*/
|
|
326
|
+
initializeWrapperLibrary(sku, version) {
|
|
327
|
+
return this.controller.initializeWrapperLibrary(sku, version);
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* Sets navigation client
|
|
331
|
+
* @param navigationClient
|
|
332
|
+
*/
|
|
333
|
+
setNavigationClient(navigationClient) {
|
|
334
|
+
this.controller.setNavigationClient(navigationClient);
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* Returns the configuration object
|
|
338
|
+
* @internal
|
|
339
|
+
*/
|
|
340
|
+
getConfiguration() {
|
|
341
|
+
return this.controller.getConfiguration();
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* Hydrates cache with the tokens and account in the AuthenticationResult object
|
|
345
|
+
* @param result
|
|
346
|
+
* @param request - The request object that was used to obtain the AuthenticationResult
|
|
347
|
+
* @returns
|
|
348
|
+
*/
|
|
349
|
+
async hydrateCache(result, request) {
|
|
350
|
+
return this.controller.hydrateCache(result, request);
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
* Clears tokens and account from the browser cache.
|
|
354
|
+
* @param logoutRequest
|
|
355
|
+
*/
|
|
356
|
+
clearCache(logoutRequest) {
|
|
357
|
+
return this.controller.clearCache(logoutRequest);
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
export { PublicClientNext };
|
|
362
|
+
//# sourceMappingURL=PublicClientNext.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PublicClientNext.mjs","sources":["../../src/app/PublicClientNext.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAKA;AACA;AACA;AACA;AAIA;AACA;AACA;AAMA;AACA;AAEA;AACA;AACA;AACO,MAAE,gBAAoB,CAAE;AAI/B,IAAA,aAAA,6BAAA,CAAA,aAAA,EAAA;;;;;;;AAOG,aAAA;AACH,YAAa,GAAA,GAAA,IAAA,8BAAoD,CAAA,CAAA;AAK7D,SAAA;AACA,QAAA,OAAU,GAAA,CAAA;;AAgBV;;;;;;;;;;;;;;;;;;;;;AAqBG;IACH,WAAO,CAAA,aAAA,EAAA,UAAA,EAAA;AAeP,QAAA,IAAA,CAAA,aAAA,GAAA,aAAA,CAAA;;AAEG,YAAA,IAAA,CAAA,UAAA,GAAA,UAAA,CAAA;AACG,SAAA;AAYN,aAAA;;;;;;AAMG;;AAOH,IAAA,MAAA,UAAA,GAAA;;;;;;;;AAQG,SAAA;QACiB,OAAA,OAAA,CAAA,SAAQ,CAAE;AAI9B,KAAA;;;;;AAKG;;AAOH;;;;;;;;;AASG;;AAOH;;;AAGG,QAAA,OAAA,IAAA,CAAA,UAAA,CAAA,oBAAA,CAAA,OAAA,CAAA,CAAA;AACH,KAAA;AAIA;;;AAGG;AACH;AAIA;;;;;AAKG;AACH;AAIA;;;;;AAKG;AACH;AAIA,IAAA,kBAAA,CAAA,OA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QAAA,OAAA,IAAA,CAAA,UAAA,CAAA,WAAA,CAAA,aAAA,CAAA,CAAA;AACG,KAAA;AAWN;;;AAGG;;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,9 +1,10 @@
|
|
|
1
|
-
/*! @azure/msal-browser v3.
|
|
1
|
+
/*! @azure/msal-browser v3.3.0 2023-10-20 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { NativeConstants, NativeExtensionMethod } from '../../utils/BrowserConstants.mjs';
|
|
4
|
-
import { PerformanceEvents,
|
|
5
|
-
import {
|
|
4
|
+
import { PerformanceEvents, createAuthError, AuthErrorCodes, AuthenticationScheme } from '@azure/msal-common';
|
|
5
|
+
import { createNativeAuthError } from '../../error/NativeAuthError.mjs';
|
|
6
6
|
import { createBrowserAuthError } from '../../error/BrowserAuthError.mjs';
|
|
7
|
+
import { createNewGuid } from '../../crypto/BrowserCrypto.mjs';
|
|
7
8
|
import { nativeHandshakeTimeout, nativeExtensionNotInstalled } from '../../error/BrowserAuthErrorCodes.mjs';
|
|
8
9
|
|
|
9
10
|
/*
|
|
@@ -11,7 +12,7 @@ import { nativeHandshakeTimeout, nativeExtensionNotInstalled } from '../../error
|
|
|
11
12
|
* Licensed under the MIT License.
|
|
12
13
|
*/
|
|
13
14
|
class NativeMessageHandler {
|
|
14
|
-
constructor(logger, handshakeTimeoutMs, performanceClient,
|
|
15
|
+
constructor(logger, handshakeTimeoutMs, performanceClient, extensionId) {
|
|
15
16
|
this.logger = logger;
|
|
16
17
|
this.handshakeTimeoutMs = handshakeTimeoutMs;
|
|
17
18
|
this.extensionId = extensionId;
|
|
@@ -21,7 +22,6 @@ class NativeMessageHandler {
|
|
|
21
22
|
this.windowListener = this.onWindowMessage.bind(this); // Window event callback doesn't have access to 'this' unless it's bound
|
|
22
23
|
this.performanceClient = performanceClient;
|
|
23
24
|
this.handshakeEvent = performanceClient.startMeasurement(PerformanceEvents.NativeMessageHandlerHandshake);
|
|
24
|
-
this.crypto = crypto;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* Sends a given message to the extension and resolves with the extension response
|
|
@@ -32,7 +32,7 @@ class NativeMessageHandler {
|
|
|
32
32
|
const req = {
|
|
33
33
|
channel: NativeConstants.CHANNEL_ID,
|
|
34
34
|
extensionId: this.extensionId,
|
|
35
|
-
responseId:
|
|
35
|
+
responseId: createNewGuid(),
|
|
36
36
|
body: body,
|
|
37
37
|
};
|
|
38
38
|
this.logger.trace("NativeMessageHandler - Sending request to browser extension");
|
|
@@ -49,16 +49,16 @@ class NativeMessageHandler {
|
|
|
49
49
|
* @param {IPerformanceClient} performanceClient
|
|
50
50
|
* @param {ICrypto} crypto
|
|
51
51
|
*/
|
|
52
|
-
static async createProvider(logger, handshakeTimeoutMs, performanceClient
|
|
52
|
+
static async createProvider(logger, handshakeTimeoutMs, performanceClient) {
|
|
53
53
|
logger.trace("NativeMessageHandler - createProvider called.");
|
|
54
54
|
try {
|
|
55
|
-
const preferredProvider = new NativeMessageHandler(logger, handshakeTimeoutMs, performanceClient,
|
|
55
|
+
const preferredProvider = new NativeMessageHandler(logger, handshakeTimeoutMs, performanceClient, NativeConstants.PREFERRED_EXTENSION_ID);
|
|
56
56
|
await preferredProvider.sendHandshakeRequest();
|
|
57
57
|
return preferredProvider;
|
|
58
58
|
}
|
|
59
59
|
catch (e) {
|
|
60
60
|
// If preferred extension fails for whatever reason, fallback to using any installed extension
|
|
61
|
-
const backupProvider = new NativeMessageHandler(logger, handshakeTimeoutMs, performanceClient
|
|
61
|
+
const backupProvider = new NativeMessageHandler(logger, handshakeTimeoutMs, performanceClient);
|
|
62
62
|
await backupProvider.sendHandshakeRequest();
|
|
63
63
|
return backupProvider;
|
|
64
64
|
}
|
|
@@ -73,7 +73,7 @@ class NativeMessageHandler {
|
|
|
73
73
|
const req = {
|
|
74
74
|
channel: NativeConstants.CHANNEL_ID,
|
|
75
75
|
extensionId: this.extensionId,
|
|
76
|
-
responseId:
|
|
76
|
+
responseId: createNewGuid(),
|
|
77
77
|
body: {
|
|
78
78
|
method: NativeExtensionMethod.HandshakeRequest,
|
|
79
79
|
},
|
|
@@ -167,19 +167,19 @@ class NativeMessageHandler {
|
|
|
167
167
|
this.logger.trace("NativeMessageHandler - Received response from browser extension");
|
|
168
168
|
this.logger.tracePii(`NativeMessageHandler - Received response from browser extension: ${JSON.stringify(response)}`);
|
|
169
169
|
if (response.status !== "Success") {
|
|
170
|
-
resolver.reject(
|
|
170
|
+
resolver.reject(createNativeAuthError(response.code, response.description, response.ext));
|
|
171
171
|
}
|
|
172
172
|
else if (response.result) {
|
|
173
173
|
if (response.result["code"] &&
|
|
174
174
|
response.result["description"]) {
|
|
175
|
-
resolver.reject(
|
|
175
|
+
resolver.reject(createNativeAuthError(response.result["code"], response.result["description"], response.result["ext"]));
|
|
176
176
|
}
|
|
177
177
|
else {
|
|
178
178
|
resolver.resolve(response.result);
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
else {
|
|
182
|
-
throw
|
|
182
|
+
throw createAuthError(AuthErrorCodes.unexpectedError, "Event does not contain result.");
|
|
183
183
|
}
|
|
184
184
|
this.resolvers.delete(request.responseId);
|
|
185
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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AAyCT;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const USER_INTERACTION_REQUIRED = "USER_INTERACTION_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.3.0 2023-10-20 */
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import { CommonAuthorizationCodeRequest, ICrypto, AccountEntity, IdTokenEntity, AccessTokenEntity, RefreshTokenEntity, AppMetadataEntity, CacheManager, ServerTelemetryEntity, ThrottlingEntity, Logger, AuthorityMetadataEntity, AccountInfo, ValidCredentialType, TokenKeys, CredentialType } from "@azure/msal-common";
|
|
1
|
+
import { CommonAuthorizationCodeRequest, ICrypto, AccountEntity, IdTokenEntity, AccessTokenEntity, RefreshTokenEntity, AppMetadataEntity, CacheManager, ServerTelemetryEntity, ThrottlingEntity, Logger, AuthorityMetadataEntity, AccountInfo, ValidCredentialType, TokenKeys, CredentialType, IPerformanceClient, StaticAuthorityOptions } from "@azure/msal-common";
|
|
2
2
|
import { CacheOptions } from "../config/Configuration";
|
|
3
3
|
import { BrowserCacheLocation, InteractionType } from "../utils/BrowserConstants";
|
|
4
4
|
import { MemoryStorage } from "./MemoryStorage";
|
|
@@ -21,7 +21,7 @@ export declare class BrowserCacheManager extends CacheManager {
|
|
|
21
21
|
protected temporaryCacheStorage: IWindowStorage<string>;
|
|
22
22
|
protected logger: Logger;
|
|
23
23
|
protected readonly COOKIE_LIFE_MULTIPLIER: number;
|
|
24
|
-
constructor(clientId: string, cacheConfig: Required<CacheOptions>, cryptoImpl: ICrypto, logger: Logger);
|
|
24
|
+
constructor(clientId: string, cacheConfig: Required<CacheOptions>, cryptoImpl: ICrypto, logger: Logger, staticAuthorityOptions?: StaticAuthorityOptions);
|
|
25
25
|
/**
|
|
26
26
|
* Returns a window storage class implementing the IWindowStorage interface that corresponds to the configured cacheLocation.
|
|
27
27
|
* @param cacheLocation
|
|
@@ -212,17 +212,6 @@ export declare class BrowserCacheManager extends CacheManager {
|
|
|
212
212
|
* @param account
|
|
213
213
|
*/
|
|
214
214
|
setActiveAccount(account: AccountInfo | null): void;
|
|
215
|
-
/**
|
|
216
|
-
* Gets a list of accounts that match all of the filters provided
|
|
217
|
-
* @param account
|
|
218
|
-
*/
|
|
219
|
-
getAccountInfoByFilter(accountFilter: Partial<Omit<AccountInfo, "idTokenClaims" | "name">>): AccountInfo[];
|
|
220
|
-
/**
|
|
221
|
-
* Checks the cache for accounts matching loginHint or SID
|
|
222
|
-
* @param loginHint
|
|
223
|
-
* @param sid
|
|
224
|
-
*/
|
|
225
|
-
getAccountInfoByHints(loginHint?: string, sid?: string): AccountInfo | null;
|
|
226
215
|
/**
|
|
227
216
|
* fetch throttling entity from the platform cache
|
|
228
217
|
* @param throttlingCacheKey
|
|
@@ -269,10 +258,10 @@ export declare class BrowserCacheManager extends CacheManager {
|
|
|
269
258
|
clear(): Promise<void>;
|
|
270
259
|
/**
|
|
271
260
|
* Clears all access tokes that have claims prior to saving the current one
|
|
272
|
-
* @param
|
|
261
|
+
* @param performanceClient {IPerformanceClient}
|
|
273
262
|
* @returns
|
|
274
263
|
*/
|
|
275
|
-
clearTokensAndKeysWithClaims(): Promise<void>;
|
|
264
|
+
clearTokensAndKeysWithClaims(performanceClient: IPerformanceClient): Promise<void>;
|
|
276
265
|
/**
|
|
277
266
|
* Add value to cookies
|
|
278
267
|
* @param cookieName
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BrowserCacheManager.d.ts","sourceRoot":"","sources":["../../src/cache/BrowserCacheManager.ts"],"names":[],"mappings":"AAKA,OAAO,EAIH,8BAA8B,EAC9B,OAAO,EACP,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,YAAY,EACZ,qBAAqB,EACrB,gBAAgB,EAEhB,MAAM,EACN,uBAAuB,EAEvB,WAAW,EAKX,mBAAmB,
|
|
1
|
+
{"version":3,"file":"BrowserCacheManager.d.ts","sourceRoot":"","sources":["../../src/cache/BrowserCacheManager.ts"],"names":[],"mappings":"AAKA,OAAO,EAIH,8BAA8B,EAC9B,OAAO,EACP,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,YAAY,EACZ,qBAAqB,EACrB,gBAAgB,EAEhB,MAAM,EACN,uBAAuB,EAEvB,WAAW,EAKX,mBAAmB,EACnB,SAAS,EACT,cAAc,EAMd,kBAAkB,EAClB,sBAAsB,EACzB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAKvD,OAAO,EACH,oBAAoB,EACpB,eAAe,EAIlB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE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