@azure/msal-browser 3.4.0 → 3.5.1-beta.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 +51 -51
- package/dist/app/IPublicClientApplication.mjs +102 -102
- package/dist/app/PublicClientApplication.d.ts +268 -268
- package/dist/app/PublicClientApplication.mjs +333 -333
- package/dist/app/PublicClientNext.d.ts +273 -273
- package/dist/app/PublicClientNext.mjs +351 -351
- package/dist/broker/nativeBroker/NativeMessageHandler.d.ts +62 -62
- package/dist/broker/nativeBroker/NativeMessageHandler.mjs +254 -254
- package/dist/broker/nativeBroker/NativeRequest.d.ts +44 -44
- package/dist/broker/nativeBroker/NativeResponse.d.ts +48 -48
- package/dist/broker/nativeBroker/NativeStatusCodes.d.ts +7 -7
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs +11 -11
- package/dist/cache/AsyncMemoryStorage.d.ts +51 -51
- package/dist/cache/AsyncMemoryStorage.mjs +132 -132
- package/dist/cache/BrowserCacheManager.d.ts +383 -383
- package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
- package/dist/cache/BrowserCacheManager.mjs +1264 -1264
- package/dist/cache/BrowserCacheManager.mjs.map +1 -1
- package/dist/cache/BrowserStorage.d.ts +11 -11
- package/dist/cache/BrowserStorage.mjs +32 -32
- package/dist/cache/CryptoKeyStore.d.ts +18 -18
- package/dist/cache/CryptoKeyStore.mjs +40 -40
- package/dist/cache/DatabaseStorage.d.ts +56 -56
- package/dist/cache/DatabaseStorage.mjs +190 -190
- package/dist/cache/IAsyncMemoryStorage.d.ts +27 -27
- package/dist/cache/ITokenCache.d.ts +11 -11
- package/dist/cache/IWindowStorage.d.ts +27 -27
- package/dist/cache/MemoryStorage.d.ts +11 -11
- package/dist/cache/MemoryStorage.mjs +31 -31
- package/dist/cache/TokenCache.d.ts +77 -77
- package/dist/cache/TokenCache.mjs +224 -224
- package/dist/config/Configuration.d.ts +206 -206
- package/dist/config/Configuration.mjs +128 -128
- package/dist/controllers/ControllerFactory.d.ts +4 -4
- package/dist/controllers/ControllerFactory.mjs +29 -29
- package/dist/controllers/IController.d.ts +61 -61
- package/dist/controllers/NestedAppAuthController.d.ts +95 -95
- package/dist/controllers/NestedAppAuthController.d.ts.map +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +335 -333
- package/dist/controllers/NestedAppAuthController.mjs.map +1 -1
- package/dist/controllers/StandardController.d.ts +407 -407
- package/dist/controllers/StandardController.d.ts.map +1 -1
- package/dist/controllers/StandardController.mjs +1294 -1291
- package/dist/controllers/StandardController.mjs.map +1 -1
- package/dist/controllers/UnknownOperatingContextController.d.ts +87 -87
- package/dist/controllers/UnknownOperatingContextController.mjs +264 -264
- package/dist/crypto/BrowserCrypto.d.ts +44 -44
- package/dist/crypto/BrowserCrypto.mjs +93 -93
- package/dist/crypto/CryptoOps.d.ts +63 -63
- package/dist/crypto/CryptoOps.d.ts.map +1 -1
- package/dist/crypto/CryptoOps.mjs +145 -144
- package/dist/crypto/CryptoOps.mjs.map +1 -1
- package/dist/crypto/PkceGenerator.d.ts +8 -8
- package/dist/crypto/PkceGenerator.mjs +54 -54
- package/dist/crypto/SignedHttpRequest.d.ts +30 -30
- package/dist/crypto/SignedHttpRequest.mjs +39 -39
- package/dist/encode/Base64Decode.d.ts +9 -9
- package/dist/encode/Base64Decode.mjs +36 -36
- package/dist/encode/Base64Encode.d.ts +19 -19
- package/dist/encode/Base64Encode.mjs +43 -43
- package/dist/error/BrowserAuthError.d.ts +250 -250
- package/dist/error/BrowserAuthError.mjs +258 -258
- package/dist/error/BrowserAuthErrorCodes.d.ts +45 -45
- package/dist/error/BrowserAuthErrorCodes.mjs +49 -49
- package/dist/error/BrowserConfigurationAuthError.d.ts +33 -33
- package/dist/error/BrowserConfigurationAuthError.mjs +40 -40
- package/dist/error/BrowserConfigurationAuthErrorCodes.d.ts +3 -3
- package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +7 -7
- package/dist/error/NativeAuthError.d.ts +29 -29
- package/dist/error/NativeAuthError.mjs +60 -60
- package/dist/error/NativeAuthErrorCodes.d.ts +2 -2
- package/dist/error/NativeAuthErrorCodes.mjs +6 -6
- package/dist/error/NestedAppAuthError.d.ts +14 -14
- package/dist/error/NestedAppAuthError.mjs +23 -23
- package/dist/event/EventHandler.d.ts +41 -41
- package/dist/event/EventHandler.mjs +119 -119
- package/dist/event/EventMessage.d.ts +25 -25
- package/dist/event/EventMessage.mjs +68 -68
- package/dist/event/EventType.d.ts +28 -28
- package/dist/event/EventType.mjs +31 -31
- package/dist/index.d.ts +39 -39
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/interaction_client/BaseInteractionClient.d.ts +54 -55
- package/dist/interaction_client/BaseInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/BaseInteractionClient.mjs +152 -153
- package/dist/interaction_client/BaseInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.d.ts +4 -4
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +10 -10
- package/dist/interaction_client/NativeInteractionClient.d.ts +140 -140
- package/dist/interaction_client/NativeInteractionClient.mjs +548 -548
- package/dist/interaction_client/PopupClient.d.ts +105 -115
- package/dist/interaction_client/PopupClient.d.ts.map +1 -1
- package/dist/interaction_client/PopupClient.mjs +435 -505
- package/dist/interaction_client/PopupClient.mjs.map +1 -1
- package/dist/interaction_client/RedirectClient.d.ts +49 -49
- package/dist/interaction_client/RedirectClient.d.ts.map +1 -1
- package/dist/interaction_client/RedirectClient.mjs +314 -297
- package/dist/interaction_client/RedirectClient.mjs.map +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.d.ts +23 -23
- package/dist/interaction_client/SilentAuthCodeClient.mjs +57 -57
- package/dist/interaction_client/SilentCacheClient.d.ts +24 -24
- package/dist/interaction_client/SilentCacheClient.mjs +61 -61
- package/dist/interaction_client/SilentIframeClient.d.ts +32 -32
- package/dist/interaction_client/SilentIframeClient.d.ts.map +1 -1
- package/dist/interaction_client/SilentIframeClient.mjs +99 -108
- package/dist/interaction_client/SilentIframeClient.mjs.map +1 -1
- package/dist/interaction_client/SilentRefreshClient.d.ts +20 -20
- package/dist/interaction_client/SilentRefreshClient.mjs +43 -43
- package/dist/interaction_client/StandardInteractionClient.d.ts +54 -59
- package/dist/interaction_client/StandardInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/StandardInteractionClient.mjs +222 -244
- package/dist/interaction_client/StandardInteractionClient.mjs.map +1 -1
- package/dist/interaction_handler/InteractionHandler.d.ts +33 -33
- package/dist/interaction_handler/InteractionHandler.d.ts.map +1 -1
- package/dist/interaction_handler/InteractionHandler.mjs +94 -98
- package/dist/interaction_handler/InteractionHandler.mjs.map +1 -1
- package/dist/interaction_handler/RedirectHandler.d.ts +32 -32
- package/dist/interaction_handler/RedirectHandler.d.ts.map +1 -1
- package/dist/interaction_handler/RedirectHandler.mjs +135 -139
- package/dist/interaction_handler/RedirectHandler.mjs.map +1 -1
- package/dist/interaction_handler/SilentHandler.d.ts +13 -13
- package/dist/interaction_handler/SilentHandler.d.ts.map +1 -1
- package/dist/interaction_handler/SilentHandler.mjs +134 -128
- package/dist/interaction_handler/SilentHandler.mjs.map +1 -1
- package/dist/naa/AccountInfo.d.ts +11 -12
- package/dist/naa/AccountInfo.d.ts.map +1 -1
- package/dist/naa/AccountRequests.d.ts +9 -9
- package/dist/naa/AuthBridge.d.ts +5 -5
- package/dist/naa/BridgeCapabilities.d.ts +3 -3
- package/dist/naa/BridgeError.d.ts +9 -9
- package/dist/naa/BridgeError.d.ts.map +1 -1
- package/dist/naa/BridgeError.mjs +7 -7
- package/dist/naa/BridgeError.mjs.map +1 -1
- package/dist/naa/BridgeProxy.d.ts +72 -71
- package/dist/naa/BridgeProxy.d.ts.map +1 -1
- package/dist/naa/BridgeProxy.mjs +152 -149
- package/dist/naa/BridgeProxy.mjs.map +1 -1
- package/dist/naa/BridgeRequest.d.ts +6 -6
- package/dist/naa/BridgeRequestEnvelope.d.ts +13 -13
- package/dist/naa/BridgeResponseEnvelope.d.ts +10 -10
- package/dist/naa/BridgeStatusCode.d.ts +10 -10
- package/dist/naa/BridgeStatusCode.mjs +15 -15
- package/dist/naa/IBridgeProxy.d.ts +12 -10
- package/dist/naa/IBridgeProxy.d.ts.map +1 -1
- package/dist/naa/InitializeBridgeResponse.d.ts +6 -6
- package/dist/naa/InitializeBridgeResponse.d.ts.map +1 -1
- package/dist/naa/TokenRequest.d.ts +19 -21
- package/dist/naa/TokenRequest.d.ts.map +1 -1
- package/dist/naa/TokenResponse.d.ts +15 -16
- package/dist/naa/TokenResponse.d.ts.map +1 -1
- package/dist/naa/mapping/NestedAppAuthAdapter.d.ts +23 -25
- package/dist/naa/mapping/NestedAppAuthAdapter.d.ts.map +1 -1
- package/dist/naa/mapping/NestedAppAuthAdapter.mjs +142 -170
- package/dist/naa/mapping/NestedAppAuthAdapter.mjs.map +1 -1
- package/dist/navigation/INavigationClient.d.ts +16 -16
- package/dist/navigation/NavigationClient.d.ts +22 -22
- package/dist/navigation/NavigationClient.mjs +40 -40
- package/dist/navigation/NavigationOptions.d.ts +12 -12
- package/dist/network/FetchClient.d.ts +26 -26
- package/dist/network/FetchClient.mjs +99 -99
- package/dist/operatingcontext/BaseOperatingContext.d.ts +40 -40
- package/dist/operatingcontext/BaseOperatingContext.mjs +44 -44
- package/dist/operatingcontext/StandardOperatingContext.d.ts +25 -25
- package/dist/operatingcontext/StandardOperatingContext.mjs +43 -43
- package/dist/operatingcontext/TeamsAppOperatingContext.d.ts +32 -32
- package/dist/operatingcontext/TeamsAppOperatingContext.d.ts.map +1 -1
- package/dist/operatingcontext/TeamsAppOperatingContext.mjs +85 -82
- package/dist/operatingcontext/TeamsAppOperatingContext.mjs.map +1 -1
- package/dist/operatingcontext/UnknownOperatingContext.d.ts +25 -25
- package/dist/operatingcontext/UnknownOperatingContext.mjs +42 -42
- package/dist/packageMetadata.d.ts +2 -2
- package/dist/packageMetadata.mjs +4 -4
- package/dist/request/AuthorizationCodeRequest.d.ts +8 -8
- package/dist/request/AuthorizationUrlRequest.d.ts +8 -8
- package/dist/request/ClearCacheRequest.d.ts +10 -10
- package/dist/request/EndSessionPopupRequest.d.ts +18 -18
- package/dist/request/EndSessionRequest.d.ts +15 -15
- package/dist/request/PopupRequest.d.ts +34 -34
- package/dist/request/PopupWindowAttributes.d.ts +15 -15
- package/dist/request/RedirectRequest.d.ts +35 -35
- package/dist/request/SilentRequest.d.ts +32 -32
- package/dist/request/SsoSilentRequest.d.ts +29 -29
- package/dist/response/AuthenticationResult.d.ts +4 -4
- package/dist/response/ResponseHandler.d.ts +8 -0
- package/dist/response/ResponseHandler.d.ts.map +1 -0
- package/dist/response/ResponseHandler.mjs +46 -0
- package/dist/response/ResponseHandler.mjs.map +1 -0
- package/dist/telemetry/BrowserPerformanceClient.d.ts +36 -36
- package/dist/telemetry/BrowserPerformanceClient.mjs +125 -125
- package/dist/telemetry/BrowserPerformanceMeasurement.d.ts +21 -21
- package/dist/telemetry/BrowserPerformanceMeasurement.mjs +92 -92
- package/dist/utils/BrowserConstants.d.ts +176 -176
- package/dist/utils/BrowserConstants.mjs +204 -204
- package/dist/utils/BrowserProtocolUtils.d.ts +11 -18
- package/dist/utils/BrowserProtocolUtils.d.ts.map +1 -1
- package/dist/utils/BrowserProtocolUtils.mjs +23 -36
- package/dist/utils/BrowserProtocolUtils.mjs.map +1 -1
- package/dist/utils/BrowserUtils.d.ts +56 -56
- package/dist/utils/BrowserUtils.mjs +125 -125
- package/lib/msal-browser.cjs +17926 -18062
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +17926 -18062
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +66 -65
- package/package.json +102 -102
- package/src/cache/BrowserCacheManager.ts +7 -10
- package/src/controllers/NestedAppAuthController.ts +8 -3
- package/src/controllers/StandardController.ts +31 -40
- package/src/crypto/CryptoOps.ts +5 -3
- package/src/index.ts +1 -0
- package/src/interaction_client/BaseInteractionClient.ts +1 -2
- package/src/interaction_client/PopupClient.ts +34 -137
- package/src/interaction_client/RedirectClient.ts +71 -55
- package/src/interaction_client/SilentIframeClient.ts +16 -27
- package/src/interaction_client/StandardInteractionClient.ts +2 -48
- package/src/interaction_handler/InteractionHandler.ts +5 -8
- package/src/interaction_handler/RedirectHandler.ts +4 -8
- package/src/interaction_handler/SilentHandler.ts +12 -5
- package/src/naa/AccountInfo.ts +3 -4
- package/src/naa/BridgeError.ts +4 -4
- package/src/naa/BridgeProxy.ts +6 -2
- package/src/naa/IBridgeProxy.ts +2 -0
- package/src/naa/InitializeBridgeResponse.ts +1 -1
- package/src/naa/TokenRequest.ts +0 -2
- package/src/naa/TokenResponse.ts +1 -2
- package/src/naa/mapping/NestedAppAuthAdapter.ts +72 -80
- package/src/operatingcontext/TeamsAppOperatingContext.ts +4 -1
- package/src/packageMetadata.ts +1 -1
- package/src/response/ResponseHandler.ts +73 -0
- package/src/utils/BrowserProtocolUtils.ts +17 -36
package/dist/naa/BridgeProxy.mjs
CHANGED
|
@@ -1,153 +1,156 @@
|
|
|
1
|
-
/*! @azure/msal-browser v3.
|
|
1
|
+
/*! @azure/msal-browser v3.5.1-beta.0 2023-11-14 */
|
|
2
2
|
'use strict';
|
|
3
|
-
/*
|
|
4
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5
|
-
* Licensed under the MIT License.
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* BridgeProxy
|
|
9
|
-
* Provides a proxy for accessing a bridge to a host app and/or
|
|
10
|
-
* platform broker
|
|
11
|
-
*/
|
|
12
|
-
class BridgeProxy {
|
|
13
|
-
/**
|
|
14
|
-
* initializeNestedAppAuthBridge - Initializes the bridge to the host app
|
|
15
|
-
* @returns a promise that resolves to an InitializeBridgeResponse or rejects with an Error
|
|
16
|
-
* @remarks This method will be called by the create factory method
|
|
17
|
-
* @remarks If the bridge is not available, this method will throw an error
|
|
18
|
-
*/
|
|
19
|
-
static async initializeNestedAppAuthBridge() {
|
|
20
|
-
if (window === undefined) {
|
|
21
|
-
throw new Error("window is undefined");
|
|
22
|
-
}
|
|
23
|
-
if (window.nestedAppAuthBridge === undefined) {
|
|
24
|
-
throw new Error("window.nestedAppAuthBridge is undefined");
|
|
25
|
-
}
|
|
26
|
-
if (window.crypto === undefined) {
|
|
27
|
-
throw new Error("window.crypto is undefined");
|
|
28
|
-
}
|
|
29
|
-
try {
|
|
30
|
-
BridgeProxy.crypto = window.crypto;
|
|
31
|
-
window.nestedAppAuthBridge.addEventListener("message", (response) => {
|
|
32
|
-
const responseEnvelope = JSON.parse(response);
|
|
33
|
-
const request = BridgeProxy.bridgeRequests.find((element) => element.requestId === responseEnvelope.requestId);
|
|
34
|
-
if (request !== undefined) {
|
|
35
|
-
BridgeProxy.bridgeRequests.splice(BridgeProxy.bridgeRequests.indexOf(request), 1);
|
|
36
|
-
if (responseEnvelope.success) {
|
|
37
|
-
request.resolve(responseEnvelope.body);
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
request.reject(responseEnvelope.body);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
const promise = new Promise((resolve, reject) => {
|
|
45
|
-
const message = {
|
|
46
|
-
messageType: "NestedAppAuthRequest",
|
|
47
|
-
method: "GetInitContext",
|
|
48
|
-
requestId: BridgeProxy.getRandomId(),
|
|
49
|
-
};
|
|
50
|
-
const request = {
|
|
51
|
-
requestId: message.requestId,
|
|
52
|
-
method: message.method,
|
|
53
|
-
resolve: resolve,
|
|
54
|
-
reject: reject,
|
|
55
|
-
};
|
|
56
|
-
BridgeProxy.bridgeRequests.push(request);
|
|
57
|
-
window.nestedAppAuthBridge.postMessage(JSON.stringify(message));
|
|
58
|
-
});
|
|
59
|
-
return promise;
|
|
60
|
-
}
|
|
61
|
-
catch (error) {
|
|
62
|
-
window.console.log(error);
|
|
63
|
-
throw error;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
static getRandomId() {
|
|
67
|
-
return BridgeProxy.crypto.randomUUID();
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* getTokenInteractive - Attempts to get a token interactively from the bridge
|
|
71
|
-
* @param request A token request
|
|
72
|
-
* @returns a promise that resolves to a token response or rejects with a BridgeError
|
|
73
|
-
*/
|
|
74
|
-
getTokenInteractive(request) {
|
|
75
|
-
return this.sendRequest("GetTokenPopup", request);
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* getTokenSilent Attempts to get a token silently from the bridge
|
|
79
|
-
* @param request A token request
|
|
80
|
-
* @returns a promise that resolves to a token response or rejects with a BridgeError
|
|
81
|
-
*/
|
|
82
|
-
getTokenSilent(request) {
|
|
83
|
-
return this.sendRequest("GetToken", request);
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* getAccountInfo - Gets account information from the bridge
|
|
87
|
-
*
|
|
88
|
-
* @param request A request for account information
|
|
89
|
-
*/
|
|
90
|
-
getAccountInfo(request) {
|
|
91
|
-
let method = "GetAccountByHomeId";
|
|
92
|
-
if (request.homeAccountId !== undefined) {
|
|
93
|
-
method = "GetAccountByHomeId";
|
|
94
|
-
}
|
|
95
|
-
if (request.localAccountId !== undefined) {
|
|
96
|
-
method = "GetAccountByLocalId";
|
|
97
|
-
}
|
|
98
|
-
if (request.username !== undefined) {
|
|
99
|
-
method = "GetAccountByUsername";
|
|
100
|
-
}
|
|
101
|
-
return this.sendRequest(method, request);
|
|
102
|
-
}
|
|
103
|
-
getActiveAccount() {
|
|
104
|
-
return this.sendRequest("GetActiveAccount", undefined);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
*
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
3
|
+
/*
|
|
4
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5
|
+
* Licensed under the MIT License.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* BridgeProxy
|
|
9
|
+
* Provides a proxy for accessing a bridge to a host app and/or
|
|
10
|
+
* platform broker
|
|
11
|
+
*/
|
|
12
|
+
class BridgeProxy {
|
|
13
|
+
/**
|
|
14
|
+
* initializeNestedAppAuthBridge - Initializes the bridge to the host app
|
|
15
|
+
* @returns a promise that resolves to an InitializeBridgeResponse or rejects with an Error
|
|
16
|
+
* @remarks This method will be called by the create factory method
|
|
17
|
+
* @remarks If the bridge is not available, this method will throw an error
|
|
18
|
+
*/
|
|
19
|
+
static async initializeNestedAppAuthBridge() {
|
|
20
|
+
if (window === undefined) {
|
|
21
|
+
throw new Error("window is undefined");
|
|
22
|
+
}
|
|
23
|
+
if (window.nestedAppAuthBridge === undefined) {
|
|
24
|
+
throw new Error("window.nestedAppAuthBridge is undefined");
|
|
25
|
+
}
|
|
26
|
+
if (window.crypto === undefined) {
|
|
27
|
+
throw new Error("window.crypto is undefined");
|
|
28
|
+
}
|
|
29
|
+
try {
|
|
30
|
+
BridgeProxy.crypto = window.crypto;
|
|
31
|
+
window.nestedAppAuthBridge.addEventListener("message", (response) => {
|
|
32
|
+
const responseEnvelope = JSON.parse(response);
|
|
33
|
+
const request = BridgeProxy.bridgeRequests.find((element) => element.requestId === responseEnvelope.requestId);
|
|
34
|
+
if (request !== undefined) {
|
|
35
|
+
BridgeProxy.bridgeRequests.splice(BridgeProxy.bridgeRequests.indexOf(request), 1);
|
|
36
|
+
if (responseEnvelope.success) {
|
|
37
|
+
request.resolve(responseEnvelope.body);
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
request.reject(responseEnvelope.body);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
const promise = new Promise((resolve, reject) => {
|
|
45
|
+
const message = {
|
|
46
|
+
messageType: "NestedAppAuthRequest",
|
|
47
|
+
method: "GetInitContext",
|
|
48
|
+
requestId: BridgeProxy.getRandomId(),
|
|
49
|
+
};
|
|
50
|
+
const request = {
|
|
51
|
+
requestId: message.requestId,
|
|
52
|
+
method: message.method,
|
|
53
|
+
resolve: resolve,
|
|
54
|
+
reject: reject,
|
|
55
|
+
};
|
|
56
|
+
BridgeProxy.bridgeRequests.push(request);
|
|
57
|
+
window.nestedAppAuthBridge.postMessage(JSON.stringify(message));
|
|
58
|
+
});
|
|
59
|
+
return promise;
|
|
60
|
+
}
|
|
61
|
+
catch (error) {
|
|
62
|
+
window.console.log(error);
|
|
63
|
+
throw error;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
static getRandomId() {
|
|
67
|
+
return BridgeProxy.crypto.randomUUID();
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* getTokenInteractive - Attempts to get a token interactively from the bridge
|
|
71
|
+
* @param request A token request
|
|
72
|
+
* @returns a promise that resolves to a token response or rejects with a BridgeError
|
|
73
|
+
*/
|
|
74
|
+
getTokenInteractive(request) {
|
|
75
|
+
return this.sendRequest("GetTokenPopup", request);
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* getTokenSilent Attempts to get a token silently from the bridge
|
|
79
|
+
* @param request A token request
|
|
80
|
+
* @returns a promise that resolves to a token response or rejects with a BridgeError
|
|
81
|
+
*/
|
|
82
|
+
getTokenSilent(request) {
|
|
83
|
+
return this.sendRequest("GetToken", request);
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* getAccountInfo - Gets account information from the bridge
|
|
87
|
+
*
|
|
88
|
+
* @param request A request for account information
|
|
89
|
+
*/
|
|
90
|
+
getAccountInfo(request) {
|
|
91
|
+
let method = "GetAccountByHomeId";
|
|
92
|
+
if (request.homeAccountId !== undefined) {
|
|
93
|
+
method = "GetAccountByHomeId";
|
|
94
|
+
}
|
|
95
|
+
if (request.localAccountId !== undefined) {
|
|
96
|
+
method = "GetAccountByLocalId";
|
|
97
|
+
}
|
|
98
|
+
if (request.username !== undefined) {
|
|
99
|
+
method = "GetAccountByUsername";
|
|
100
|
+
}
|
|
101
|
+
return this.sendRequest(method, request);
|
|
102
|
+
}
|
|
103
|
+
getActiveAccount() {
|
|
104
|
+
return this.sendRequest("GetActiveAccount", undefined);
|
|
105
|
+
}
|
|
106
|
+
getHostCapabilities() {
|
|
107
|
+
return this.capabilities ?? null;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* A method used to send a request to the bridge
|
|
111
|
+
* @param request A token request
|
|
112
|
+
* @returns a promise that resolves to a response of provided type or rejects with a BridgeError
|
|
113
|
+
*/
|
|
114
|
+
sendRequest(method, request) {
|
|
115
|
+
const message = {
|
|
116
|
+
messageType: "NestedAppAuthRequest",
|
|
117
|
+
method: method,
|
|
118
|
+
requestId: BridgeProxy.getRandomId(),
|
|
119
|
+
body: request,
|
|
120
|
+
};
|
|
121
|
+
const promise = new Promise((resolve, reject) => {
|
|
122
|
+
const request = {
|
|
123
|
+
requestId: message.requestId,
|
|
124
|
+
method: message.method,
|
|
125
|
+
resolve: resolve,
|
|
126
|
+
reject: reject,
|
|
127
|
+
};
|
|
128
|
+
BridgeProxy.bridgeRequests.push(request);
|
|
129
|
+
window.nestedAppAuthBridge.postMessage(JSON.stringify(message));
|
|
130
|
+
});
|
|
131
|
+
return promise;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Private constructor for BridgeProxy
|
|
135
|
+
* @param sdkName The name of the SDK being used to make requests on behalf of the app
|
|
136
|
+
* @param sdkVersion The version of the SDK being used to make requests on behalf of the app
|
|
137
|
+
* @param capabilities The capabilities of the bridge / SDK / platform broker
|
|
138
|
+
*/
|
|
139
|
+
constructor(sdkName, sdkVersion, capabilities) {
|
|
140
|
+
this.sdkName = sdkName;
|
|
141
|
+
this.sdkVersion = sdkVersion;
|
|
142
|
+
this.capabilities = capabilities;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Factory method for creating an implementation of IBridgeProxy
|
|
146
|
+
* @returns A promise that resolves to a BridgeProxy implementation
|
|
147
|
+
*/
|
|
148
|
+
static async create() {
|
|
149
|
+
const response = await BridgeProxy.initializeNestedAppAuthBridge();
|
|
150
|
+
return new BridgeProxy(response.sdkName, response.sdkVersion, response.capabilities);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
151
154
|
BridgeProxy.bridgeRequests = [];
|
|
152
155
|
|
|
153
156
|
export { BridgeProxy, BridgeProxy as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BridgeProxy.mjs","sources":["../../src/naa/BridgeProxy.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAKA;AACA;AAKA;AACA;AAIA;AACA;AACA;AACA;AAEA;AACI,MAAA,WAAgB,CAAA;;AAEf;AACJ;AAED;;;;AAIG,QAAA,IAAA,MAAA,KAAA,SAAA,EAAA;AACH,YAAa,MAAA,IAAA,KAAA,CAAA,qBAAmC,CAAA,CAAA;AAE5C,SAAA;AACA,QAAA,IAAO,MAAQ,CAAA,mBAAO,KAAA,SAAA,EAAA;YACf,UAAS,KAAA,CAAA,yCAAA,CAAA,CAAA;SACN;QACE,IAAA,
|
|
1
|
+
{"version":3,"file":"BridgeProxy.mjs","sources":["../../src/naa/BridgeProxy.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAKA;AACA;AAKA;AACA;AAIA;AACA;AACA;AACA;AAEA;AACI,MAAA,WAAgB,CAAA;;AAEf;AACJ;AAED;;;;AAIG,QAAA,IAAA,MAAA,KAAA,SAAA,EAAA;AACH,YAAa,MAAA,IAAA,KAAA,CAAA,qBAAmC,CAAA,CAAA;AAE5C,SAAA;AACA,QAAA,IAAO,MAAQ,CAAA,mBAAO,KAAA,SAAA,EAAA;YACf,UAAS,KAAA,CAAA,yCAAA,CAAA,CAAA;SACN;QACE,IAAA,MAAG,CAAA,MAAA,KAAA,SAAmB,EAAA;AAElC,YAAA,MAAA,IAAA,KAAA,CAAA,4BAAA,CAAA,CAAA;;;;;AAKG,gBAAA,MAAA,gBAAA,GAAA,IAAA,CAAA,KAAA,CAAA,QAAA,CAAA,CAAA;AACoB,gBAAA,MAAA,OAAA,GAAA,WAAA,CAAA,cAAiC,CAAA,IAAQ,CAAA,CAAA,OAAA,KAAA,OAAA,CAAA,SAAyB,KAAA,gBAAA,CAAA,SAAA,CAAA,CAAA;AAgE3E,gBAAA,IAAA,OAAqB,KAAA,SAAA,EAAA;AAInC,oBAAA,WAAA,CAAA,cAAA,CAAA,MAAA,CAAA,WAAA,CAAA,cAAA,CAAA,OAAA,CAAA,OAAA,CAAA,EAAA,CAAA,CAAA,CAAA;;;;AAIG,yBAAA;wBACwB,OAAO,CAAE,MAAA,CAAA,gBAAsB,CAAC;AAI3D,qBAAA;;;;AAIG,gBAAA,MAAA,OAAA,GAAA;+BAC4B,EAAA;AAI/B,oBAAA,MAAA,EAAA,gBAAA;;;;AAIG,oBAAA,SAAA,EAAA,OAAA,CAAA,SAAA;AACI,oBACH,MAAO,EACD,OAAA,CAAA,MAAA;AAqBH,oBAAgB,OAAI,EAAA,OAAQ;oBAIT,MAAA,EAAsB,MAAA;AAIhD,iBAAA,CAAA;;;;AAIG,YAAA,OAAA,OAAA,CAAA;AACH,SAAA;AA8BA,QAAA,OAAA,KAAA,EAAA;;;;;AAKG,IAAA,OAAA,WAAA,GAAA;QACI,OAAA,WAAA,CAAA,MAAA,CAAA,UAAA,EAAA,CAAA;AAUP,KAAA;;;AAGG;AACiB;AAQvB;AAED,IAAA,2BAA2B,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export type BridgeRequest<TResponse> = {
|
|
2
|
-
requestId: string;
|
|
3
|
-
method: string;
|
|
4
|
-
resolve: (value: TResponse | PromiseLike<TResponse>) => void;
|
|
5
|
-
reject: (reason?: any) => void;
|
|
6
|
-
};
|
|
1
|
+
export type BridgeRequest<TResponse> = {
|
|
2
|
+
requestId: string;
|
|
3
|
+
method: string;
|
|
4
|
+
resolve: (value: TResponse | PromiseLike<TResponse>) => void;
|
|
5
|
+
reject: (reason?: any) => void;
|
|
6
|
+
};
|
|
7
7
|
//# sourceMappingURL=BridgeRequest.d.ts.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { TokenRequest } from "./TokenRequest";
|
|
2
|
-
import { AccountByHomeIdRequest, AccountByLocalIdRequest, AccountByUsernameRequest } from "./AccountRequests";
|
|
3
|
-
export type BridgeMethods = "GetToken" | "GetActiveAccount" | "GetAllAccounts" | "GetAccountByHomeId" | "GetAccountByLocalId" | "GetAccountByUsername" | "GetInitContext" | "GetTokenPopup";
|
|
4
|
-
export type BridgeRequestEnvelope = {
|
|
5
|
-
messageType: "NestedAppAuthRequest";
|
|
6
|
-
method: BridgeMethods;
|
|
7
|
-
sendTime?: number;
|
|
8
|
-
clientLibrary?: string;
|
|
9
|
-
clientLibraryVersion?: string;
|
|
10
|
-
requestId: string;
|
|
11
|
-
body?: TokenRequest | AccountByHomeIdRequest | AccountByLocalIdRequest | AccountByUsernameRequest;
|
|
12
|
-
};
|
|
13
|
-
export declare function isBridgeRequestEnvelope(obj: unknown): obj is BridgeRequestEnvelope;
|
|
1
|
+
import { TokenRequest } from "./TokenRequest";
|
|
2
|
+
import { AccountByHomeIdRequest, AccountByLocalIdRequest, AccountByUsernameRequest } from "./AccountRequests";
|
|
3
|
+
export type BridgeMethods = "GetToken" | "GetActiveAccount" | "GetAllAccounts" | "GetAccountByHomeId" | "GetAccountByLocalId" | "GetAccountByUsername" | "GetInitContext" | "GetTokenPopup";
|
|
4
|
+
export type BridgeRequestEnvelope = {
|
|
5
|
+
messageType: "NestedAppAuthRequest";
|
|
6
|
+
method: BridgeMethods;
|
|
7
|
+
sendTime?: number;
|
|
8
|
+
clientLibrary?: string;
|
|
9
|
+
clientLibraryVersion?: string;
|
|
10
|
+
requestId: string;
|
|
11
|
+
body?: TokenRequest | AccountByHomeIdRequest | AccountByLocalIdRequest | AccountByUsernameRequest;
|
|
12
|
+
};
|
|
13
|
+
export declare function isBridgeRequestEnvelope(obj: unknown): obj is BridgeRequestEnvelope;
|
|
14
14
|
//# sourceMappingURL=BridgeRequestEnvelope.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { BridgeError } from "./BridgeError";
|
|
2
|
-
import { TokenResponse } from "./TokenResponse";
|
|
3
|
-
import { AccountInfo } from "./AccountInfo";
|
|
4
|
-
import { InitializeBridgeResponse } from "./InitializeBridgeResponse";
|
|
5
|
-
export type BridgeResponseEnvelope = {
|
|
6
|
-
messageType: "NestedAppAuthResponse";
|
|
7
|
-
requestId: string;
|
|
8
|
-
success: boolean;
|
|
9
|
-
body: TokenResponse | BridgeError | AccountInfo | AccountInfo[] | InitializeBridgeResponse;
|
|
10
|
-
};
|
|
1
|
+
import { BridgeError } from "./BridgeError";
|
|
2
|
+
import { TokenResponse } from "./TokenResponse";
|
|
3
|
+
import { AccountInfo } from "./AccountInfo";
|
|
4
|
+
import { InitializeBridgeResponse } from "./InitializeBridgeResponse";
|
|
5
|
+
export type BridgeResponseEnvelope = {
|
|
6
|
+
messageType: "NestedAppAuthResponse";
|
|
7
|
+
requestId: string;
|
|
8
|
+
success: boolean;
|
|
9
|
+
body: TokenResponse | BridgeError | AccountInfo | AccountInfo[] | InitializeBridgeResponse;
|
|
10
|
+
};
|
|
11
11
|
//# sourceMappingURL=BridgeResponseEnvelope.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export declare enum BridgeStatusCode {
|
|
2
|
-
USER_INTERACTION_REQUIRED = "USER_INTERACTION_REQUIRED",
|
|
3
|
-
USER_CANCEL = "USER_CANCEL",
|
|
4
|
-
NO_NETWORK = "NO_NETWORK",
|
|
5
|
-
TRANSIENT_ERROR = "TRANSIENT_ERROR",
|
|
6
|
-
PERSISTENT_ERROR = "PERSISTENT_ERROR",
|
|
7
|
-
DISABLED = "DISABLED",
|
|
8
|
-
ACCOUNT_UNAVAILABLE = "ACCOUNT_UNAVAILABLE",
|
|
9
|
-
NESTED_APP_AUTH_UNAVAILABLE = "NESTED_APP_AUTH_UNAVAILABLE"
|
|
10
|
-
}
|
|
1
|
+
export declare enum BridgeStatusCode {
|
|
2
|
+
USER_INTERACTION_REQUIRED = "USER_INTERACTION_REQUIRED",
|
|
3
|
+
USER_CANCEL = "USER_CANCEL",
|
|
4
|
+
NO_NETWORK = "NO_NETWORK",
|
|
5
|
+
TRANSIENT_ERROR = "TRANSIENT_ERROR",
|
|
6
|
+
PERSISTENT_ERROR = "PERSISTENT_ERROR",
|
|
7
|
+
DISABLED = "DISABLED",
|
|
8
|
+
ACCOUNT_UNAVAILABLE = "ACCOUNT_UNAVAILABLE",
|
|
9
|
+
NESTED_APP_AUTH_UNAVAILABLE = "NESTED_APP_AUTH_UNAVAILABLE"
|
|
10
|
+
}
|
|
11
11
|
//# sourceMappingURL=BridgeStatusCode.d.ts.map
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
/*! @azure/msal-browser v3.
|
|
1
|
+
/*! @azure/msal-browser v3.5.1-beta.0 2023-11-14 */
|
|
2
2
|
'use strict';
|
|
3
|
-
/*
|
|
4
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5
|
-
* Licensed under the MIT License.
|
|
6
|
-
*/
|
|
7
|
-
var BridgeStatusCode;
|
|
8
|
-
(function (BridgeStatusCode) {
|
|
9
|
-
BridgeStatusCode["USER_INTERACTION_REQUIRED"] = "USER_INTERACTION_REQUIRED";
|
|
10
|
-
BridgeStatusCode["USER_CANCEL"] = "USER_CANCEL";
|
|
11
|
-
BridgeStatusCode["NO_NETWORK"] = "NO_NETWORK";
|
|
12
|
-
BridgeStatusCode["TRANSIENT_ERROR"] = "TRANSIENT_ERROR";
|
|
13
|
-
BridgeStatusCode["PERSISTENT_ERROR"] = "PERSISTENT_ERROR";
|
|
14
|
-
BridgeStatusCode["DISABLED"] = "DISABLED";
|
|
15
|
-
BridgeStatusCode["ACCOUNT_UNAVAILABLE"] = "ACCOUNT_UNAVAILABLE";
|
|
16
|
-
BridgeStatusCode["NESTED_APP_AUTH_UNAVAILABLE"] = "NESTED_APP_AUTH_UNAVAILABLE";
|
|
3
|
+
/*
|
|
4
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5
|
+
* Licensed under the MIT License.
|
|
6
|
+
*/
|
|
7
|
+
var BridgeStatusCode;
|
|
8
|
+
(function (BridgeStatusCode) {
|
|
9
|
+
BridgeStatusCode["USER_INTERACTION_REQUIRED"] = "USER_INTERACTION_REQUIRED";
|
|
10
|
+
BridgeStatusCode["USER_CANCEL"] = "USER_CANCEL";
|
|
11
|
+
BridgeStatusCode["NO_NETWORK"] = "NO_NETWORK";
|
|
12
|
+
BridgeStatusCode["TRANSIENT_ERROR"] = "TRANSIENT_ERROR";
|
|
13
|
+
BridgeStatusCode["PERSISTENT_ERROR"] = "PERSISTENT_ERROR";
|
|
14
|
+
BridgeStatusCode["DISABLED"] = "DISABLED";
|
|
15
|
+
BridgeStatusCode["ACCOUNT_UNAVAILABLE"] = "ACCOUNT_UNAVAILABLE";
|
|
16
|
+
BridgeStatusCode["NESTED_APP_AUTH_UNAVAILABLE"] = "NESTED_APP_AUTH_UNAVAILABLE";
|
|
17
17
|
})(BridgeStatusCode || (BridgeStatusCode = {}));
|
|
18
18
|
|
|
19
19
|
export { BridgeStatusCode };
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { AccountInfo } from "./AccountInfo";
|
|
2
|
-
import { AccountByHomeIdRequest, AccountByLocalIdRequest, AccountByUsernameRequest } from "./AccountRequests";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { AccountInfo } from "./AccountInfo";
|
|
2
|
+
import { AccountByHomeIdRequest, AccountByLocalIdRequest, AccountByUsernameRequest } from "./AccountRequests";
|
|
3
|
+
import { BridgeCapabilities } from "./BridgeCapabilities";
|
|
4
|
+
import { TokenRequest } from "./TokenRequest";
|
|
5
|
+
import { TokenResponse } from "./TokenResponse";
|
|
6
|
+
export interface IBridgeProxy {
|
|
7
|
+
getTokenInteractive(request: TokenRequest): Promise<TokenResponse>;
|
|
8
|
+
getTokenSilent(request: TokenRequest): Promise<TokenResponse>;
|
|
9
|
+
getAccountInfo(request: AccountByHomeIdRequest | AccountByLocalIdRequest | AccountByUsernameRequest): Promise<AccountInfo>;
|
|
10
|
+
getActiveAccount(): Promise<AccountInfo>;
|
|
11
|
+
getHostCapabilities(): BridgeCapabilities | null;
|
|
12
|
+
}
|
|
11
13
|
//# sourceMappingURL=IBridgeProxy.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IBridgeProxy.d.ts","sourceRoot":"","sources":["../../src/naa/IBridgeProxy.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EACH,sBAAsB,EACtB,uBAAuB,EACvB,wBAAwB,EAC3B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,WAAW,YAAY;IACzB,mBAAmB,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IACnE,cAAc,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAC9D,cAAc,CACV,OAAO,EACD,sBAAsB,GACtB,uBAAuB,GACvB,wBAAwB,GAC/B,OAAO,CAAC,WAAW,CAAC,CAAC;IACxB,gBAAgB,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"IBridgeProxy.d.ts","sourceRoot":"","sources":["../../src/naa/IBridgeProxy.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EACH,sBAAsB,EACtB,uBAAuB,EACvB,wBAAwB,EAC3B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,WAAW,YAAY;IACzB,mBAAmB,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IACnE,cAAc,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAC9D,cAAc,CACV,OAAO,EACD,sBAAsB,GACtB,uBAAuB,GACvB,wBAAwB,GAC/B,OAAO,CAAC,WAAW,CAAC,CAAC;IACxB,gBAAgB,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC;IACzC,mBAAmB,IAAI,kBAAkB,GAAG,IAAI,CAAC;CACpD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BridgeCapabilities } from "./BridgeCapabilities";
|
|
2
|
-
export interface InitializeBridgeResponse {
|
|
3
|
-
capabilities
|
|
4
|
-
sdkName: string;
|
|
5
|
-
sdkVersion: string;
|
|
6
|
-
}
|
|
1
|
+
import { BridgeCapabilities } from "./BridgeCapabilities";
|
|
2
|
+
export interface InitializeBridgeResponse {
|
|
3
|
+
capabilities?: BridgeCapabilities;
|
|
4
|
+
sdkName: string;
|
|
5
|
+
sdkVersion: string;
|
|
6
|
+
}
|
|
7
7
|
//# sourceMappingURL=InitializeBridgeResponse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InitializeBridgeResponse.d.ts","sourceRoot":"","sources":["../../src/naa/InitializeBridgeResponse.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,WAAW,wBAAwB;IACrC,YAAY,EAAE,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"InitializeBridgeResponse.d.ts","sourceRoot":"","sources":["../../src/naa/InitializeBridgeResponse.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,WAAW,wBAAwB;IACrC,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -1,22 +1,20 @@
|
|
|
1
|
-
export type TokenRequest = {
|
|
2
|
-
userObjectId?: string;
|
|
3
|
-
clientId: string;
|
|
4
|
-
authority?: string;
|
|
5
|
-
scope: string;
|
|
6
|
-
correlationId: string;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
extraParameters?: Map<string, string>;
|
|
21
|
-
};
|
|
1
|
+
export type TokenRequest = {
|
|
2
|
+
userObjectId?: string;
|
|
3
|
+
clientId: string;
|
|
4
|
+
authority?: string;
|
|
5
|
+
scope: string;
|
|
6
|
+
correlationId: string;
|
|
7
|
+
nonce?: string;
|
|
8
|
+
claims?: string;
|
|
9
|
+
state?: string;
|
|
10
|
+
reqCnf?: string;
|
|
11
|
+
keyId?: string;
|
|
12
|
+
authenticationScheme?: string;
|
|
13
|
+
shrClaims?: string;
|
|
14
|
+
shrNonce?: string;
|
|
15
|
+
resourceRequestMethod?: string;
|
|
16
|
+
resourceRequestUri?: string;
|
|
17
|
+
extendedExpiryToken?: boolean;
|
|
18
|
+
extraParameters?: Map<string, string>;
|
|
19
|
+
};
|
|
22
20
|
//# sourceMappingURL=TokenRequest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenRequest.d.ts","sourceRoot":"","sources":["../../src/naa/TokenRequest.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,YAAY,GAAG;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,
|
|
1
|
+
{"version":3,"file":"TokenRequest.d.ts","sourceRoot":"","sources":["../../src/naa/TokenRequest.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,YAAY,GAAG;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,eAAe,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACzC,CAAC"}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import { AccountInfo } from "./AccountInfo";
|
|
2
|
-
export type TokenResponse = {
|
|
3
|
-
access_token: string;
|
|
4
|
-
account: AccountInfo;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
};
|
|
1
|
+
import { AccountInfo } from "./AccountInfo";
|
|
2
|
+
export type TokenResponse = {
|
|
3
|
+
access_token: string;
|
|
4
|
+
account: AccountInfo;
|
|
5
|
+
expires_in: number;
|
|
6
|
+
id_token: string;
|
|
7
|
+
properties: TokenResponseProperties | null;
|
|
8
|
+
scope: string;
|
|
9
|
+
shr?: string;
|
|
10
|
+
extendedLifetimeToken?: boolean;
|
|
11
|
+
authority?: string;
|
|
12
|
+
};
|
|
13
|
+
export type TokenResponseProperties = {
|
|
14
|
+
MATS?: string;
|
|
15
|
+
};
|
|
17
16
|
//# sourceMappingURL=TokenResponse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenResponse.d.ts","sourceRoot":"","sources":["../../src/naa/TokenResponse.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,MAAM,aAAa,GAAG;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,WAAW,CAAC;IACrB,
|
|
1
|
+
{"version":3,"file":"TokenResponse.d.ts","sourceRoot":"","sources":["../../src/naa/TokenResponse.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,MAAM,aAAa,GAAG;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,WAAW,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,uBAAuB,GAAG,IAAI,CAAC;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
|