@azure/msal-browser 4.9.1 → 4.10.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.mjs +1 -1
- package/dist/app/PublicClientApplication.mjs +1 -1
- package/dist/app/PublicClientNext.mjs +1 -1
- package/dist/broker/nativeBroker/NativeMessageHandler.mjs +1 -1
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
- package/dist/cache/AccountManager.mjs +1 -1
- package/dist/cache/AsyncMemoryStorage.mjs +1 -1
- package/dist/cache/BrowserCacheManager.d.ts +7 -3
- package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
- package/dist/cache/BrowserCacheManager.mjs +8 -7
- package/dist/cache/BrowserCacheManager.mjs.map +1 -1
- package/dist/cache/CacheHelpers.mjs +1 -1
- package/dist/cache/CookieStorage.mjs +1 -1
- package/dist/cache/DatabaseStorage.mjs +1 -1
- package/dist/cache/LocalStorage.mjs +2 -2
- package/dist/cache/MemoryStorage.mjs +1 -1
- package/dist/cache/SessionStorage.mjs +1 -1
- package/dist/cache/TokenCache.mjs +1 -1
- package/dist/config/Configuration.mjs +3 -3
- package/dist/controllers/ControllerFactory.mjs +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +2 -2
- package/dist/controllers/NestedAppAuthController.mjs.map +1 -1
- package/dist/controllers/StandardController.d.ts.map +1 -1
- package/dist/controllers/StandardController.mjs +32 -20
- package/dist/controllers/StandardController.mjs.map +1 -1
- package/dist/controllers/UnknownOperatingContextController.mjs +1 -1
- package/dist/crypto/BrowserCrypto.d.ts +6 -0
- package/dist/crypto/BrowserCrypto.d.ts.map +1 -1
- package/dist/crypto/BrowserCrypto.mjs +2 -2
- package/dist/crypto/BrowserCrypto.mjs.map +1 -1
- package/dist/crypto/CryptoOps.mjs +1 -1
- package/dist/crypto/PkceGenerator.mjs +1 -1
- package/dist/crypto/SignedHttpRequest.mjs +1 -1
- package/dist/encode/Base64Decode.mjs +1 -1
- package/dist/encode/Base64Encode.mjs +1 -1
- package/dist/error/BrowserAuthError.mjs +2 -2
- package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
- package/dist/error/BrowserConfigurationAuthError.mjs +2 -2
- package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
- package/dist/error/NativeAuthError.mjs +1 -1
- package/dist/error/NativeAuthErrorCodes.mjs +1 -1
- package/dist/error/NestedAppAuthError.mjs +1 -1
- package/dist/event/EventHandler.mjs +1 -1
- package/dist/event/EventMessage.mjs +1 -1
- package/dist/event/EventType.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
- package/dist/interaction_client/NativeInteractionClient.mjs +1 -1
- package/dist/interaction_client/PopupClient.mjs +1 -1
- package/dist/interaction_client/RedirectClient.d.ts.map +1 -1
- package/dist/interaction_client/RedirectClient.mjs +4 -4
- package/dist/interaction_client/RedirectClient.mjs.map +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
- package/dist/interaction_client/SilentCacheClient.mjs +1 -1
- package/dist/interaction_client/SilentIframeClient.mjs +1 -1
- package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
- package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
- package/dist/interaction_handler/InteractionHandler.mjs +1 -1
- package/dist/interaction_handler/SilentHandler.mjs +3 -3
- package/dist/naa/BridgeError.mjs +1 -1
- package/dist/naa/BridgeProxy.mjs +1 -1
- package/dist/naa/BridgeStatusCode.mjs +1 -1
- package/dist/naa/mapping/NestedAppAuthAdapter.mjs +2 -2
- package/dist/navigation/NavigationClient.mjs +1 -1
- package/dist/network/FetchClient.mjs +1 -1
- package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
- package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
- package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
- package/dist/operatingcontext/UnknownOperatingContext.mjs +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.d.ts.map +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/protocol/Authorize.mjs +1 -1
- package/dist/request/RequestHelpers.mjs +1 -1
- package/dist/response/ResponseHandler.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
- package/dist/utils/BrowserConstants.d.ts +5 -0
- package/dist/utils/BrowserConstants.d.ts.map +1 -1
- package/dist/utils/BrowserConstants.mjs +10 -2
- package/dist/utils/BrowserConstants.mjs.map +1 -1
- package/dist/utils/BrowserProtocolUtils.mjs +1 -1
- package/dist/utils/BrowserUtils.mjs +1 -1
- package/lib/msal-browser.cjs +156 -99
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +156 -99
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +62 -62
- package/lib/types/cache/BrowserCacheManager.d.ts +7 -3
- package/lib/types/cache/BrowserCacheManager.d.ts.map +1 -1
- package/lib/types/controllers/StandardController.d.ts.map +1 -1
- package/lib/types/crypto/BrowserCrypto.d.ts +6 -0
- package/lib/types/crypto/BrowserCrypto.d.ts.map +1 -1
- package/lib/types/interaction_client/RedirectClient.d.ts.map +1 -1
- package/lib/types/packageMetadata.d.ts +1 -1
- package/lib/types/packageMetadata.d.ts.map +1 -1
- package/lib/types/utils/BrowserConstants.d.ts +5 -0
- package/lib/types/utils/BrowserConstants.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/cache/BrowserCacheManager.ts +43 -31
- package/src/controllers/NestedAppAuthController.ts +1 -1
- package/src/controllers/StandardController.ts +82 -54
- package/src/crypto/BrowserCrypto.ts +1 -1
- package/src/interaction_client/RedirectClient.ts +9 -2
- package/src/packageMetadata.ts +1 -1
- package/src/utils/BrowserConstants.ts +7 -0
package/lib/msal-browser.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v4.
|
|
1
|
+
/*! @azure/msal-browser v4.10.0 2025-04-08 */
|
|
2
2
|
'use strict';
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.msal = {}));
|
|
7
7
|
})(this, (function (exports) { 'use strict';
|
|
8
8
|
|
|
9
|
-
/*! @azure/msal-common v15.
|
|
9
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
10
10
|
/*
|
|
11
11
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
12
12
|
* Licensed under the MIT License.
|
|
@@ -66,10 +66,26 @@
|
|
|
66
66
|
INVALID_INSTANCE: "invalid_instance",
|
|
67
67
|
};
|
|
68
68
|
const HttpStatus = {
|
|
69
|
+
SUCCESS: 200,
|
|
70
|
+
SUCCESS_RANGE_START: 200,
|
|
71
|
+
SUCCESS_RANGE_END: 299,
|
|
72
|
+
REDIRECT: 302,
|
|
73
|
+
CLIENT_ERROR: 400,
|
|
69
74
|
CLIENT_ERROR_RANGE_START: 400,
|
|
75
|
+
BAD_REQUEST: 400,
|
|
76
|
+
UNAUTHORIZED: 401,
|
|
77
|
+
NOT_FOUND: 404,
|
|
78
|
+
REQUEST_TIMEOUT: 408,
|
|
79
|
+
GONE: 410,
|
|
80
|
+
TOO_MANY_REQUESTS: 429,
|
|
70
81
|
CLIENT_ERROR_RANGE_END: 499,
|
|
82
|
+
SERVER_ERROR: 500,
|
|
71
83
|
SERVER_ERROR_RANGE_START: 500,
|
|
72
|
-
|
|
84
|
+
SERVICE_UNAVAILABLE: 503,
|
|
85
|
+
GATEWAY_TIMEOUT: 504,
|
|
86
|
+
SERVER_ERROR_RANGE_END: 599,
|
|
87
|
+
MULTI_SIDED_ERROR: 600,
|
|
88
|
+
};
|
|
73
89
|
const OIDC_DEFAULT_SCOPES = [
|
|
74
90
|
Constants.OPENID_SCOPE,
|
|
75
91
|
Constants.PROFILE_SCOPE,
|
|
@@ -135,6 +151,7 @@
|
|
|
135
151
|
*/
|
|
136
152
|
const OAuthResponseType = {
|
|
137
153
|
CODE: "code",
|
|
154
|
+
IDTOKEN_TOKEN: "id_token token",
|
|
138
155
|
IDTOKEN_TOKEN_REFRESHTOKEN: "id_token token refresh_token",
|
|
139
156
|
};
|
|
140
157
|
/**
|
|
@@ -149,19 +166,29 @@
|
|
|
149
166
|
* allowed values for response_mode
|
|
150
167
|
*/
|
|
151
168
|
const ResponseMode = {
|
|
152
|
-
QUERY: "query"
|
|
169
|
+
QUERY: "query",
|
|
170
|
+
FRAGMENT: "fragment",
|
|
171
|
+
FORM_POST: "form_post",
|
|
172
|
+
};
|
|
153
173
|
/**
|
|
154
174
|
* allowed grant_type
|
|
155
175
|
*/
|
|
156
176
|
const GrantType = {
|
|
177
|
+
IMPLICIT_GRANT: "implicit",
|
|
157
178
|
AUTHORIZATION_CODE_GRANT: "authorization_code",
|
|
158
|
-
|
|
179
|
+
CLIENT_CREDENTIALS_GRANT: "client_credentials",
|
|
180
|
+
RESOURCE_OWNER_PASSWORD_GRANT: "password",
|
|
181
|
+
REFRESH_TOKEN_GRANT: "refresh_token",
|
|
182
|
+
DEVICE_CODE_GRANT: "device_code",
|
|
183
|
+
JWT_BEARER: "urn:ietf:params:oauth:grant-type:jwt-bearer",
|
|
184
|
+
};
|
|
159
185
|
/**
|
|
160
186
|
* Account types in Cache
|
|
161
187
|
*/
|
|
162
188
|
const CacheAccountType = {
|
|
163
189
|
MSSTS_ACCOUNT_TYPE: "MSSTS",
|
|
164
190
|
ADFS_ACCOUNT_TYPE: "ADFS",
|
|
191
|
+
MSAV1_ACCOUNT_TYPE: "MSA",
|
|
165
192
|
GENERIC_ACCOUNT_TYPE: "Generic", // NTLM, Kerberos, FBA, Basic etc
|
|
166
193
|
};
|
|
167
194
|
/**
|
|
@@ -198,6 +225,7 @@
|
|
|
198
225
|
};
|
|
199
226
|
const SERVER_TELEM_CONSTANTS = {
|
|
200
227
|
SCHEMA_VERSION: 5,
|
|
228
|
+
MAX_CUR_HEADER_BYTES: 80,
|
|
201
229
|
MAX_LAST_HEADER_BYTES: 330,
|
|
202
230
|
MAX_CACHED_ERRORS: 50,
|
|
203
231
|
CACHE_KEY: "server-telemetry",
|
|
@@ -252,7 +280,9 @@
|
|
|
252
280
|
* Region Discovery Outcomes
|
|
253
281
|
*/
|
|
254
282
|
const RegionDiscoveryOutcomes = {
|
|
283
|
+
CONFIGURED_MATCHES_DETECTED: "1",
|
|
255
284
|
CONFIGURED_NO_AUTO_DETECTION: "2",
|
|
285
|
+
CONFIGURED_NOT_DETECTED: "3",
|
|
256
286
|
AUTO_DETECTION_REQUESTED_SUCCESSFUL: "4",
|
|
257
287
|
AUTO_DETECTION_REQUESTED_FAILED: "5",
|
|
258
288
|
};
|
|
@@ -279,7 +309,7 @@
|
|
|
279
309
|
// Token renewal offset default in seconds
|
|
280
310
|
const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
|
|
281
311
|
|
|
282
|
-
/*! @azure/msal-common v15.
|
|
312
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
283
313
|
/*
|
|
284
314
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
285
315
|
* Licensed under the MIT License.
|
|
@@ -296,7 +326,7 @@
|
|
|
296
326
|
unexpectedError: unexpectedError
|
|
297
327
|
});
|
|
298
328
|
|
|
299
|
-
/*! @azure/msal-common v15.
|
|
329
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
300
330
|
|
|
301
331
|
/*
|
|
302
332
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -345,7 +375,7 @@
|
|
|
345
375
|
: AuthErrorMessages[code]);
|
|
346
376
|
}
|
|
347
377
|
|
|
348
|
-
/*! @azure/msal-common v15.
|
|
378
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
349
379
|
/*
|
|
350
380
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
351
381
|
* Licensed under the MIT License.
|
|
@@ -443,7 +473,7 @@
|
|
|
443
473
|
userTimeoutReached: userTimeoutReached
|
|
444
474
|
});
|
|
445
475
|
|
|
446
|
-
/*! @azure/msal-common v15.
|
|
476
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
447
477
|
|
|
448
478
|
/*
|
|
449
479
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -695,7 +725,7 @@
|
|
|
695
725
|
return new ClientAuthError(errorCode, additionalMessage);
|
|
696
726
|
}
|
|
697
727
|
|
|
698
|
-
/*! @azure/msal-common v15.
|
|
728
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
699
729
|
|
|
700
730
|
/*
|
|
701
731
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -734,7 +764,7 @@
|
|
|
734
764
|
},
|
|
735
765
|
};
|
|
736
766
|
|
|
737
|
-
/*! @azure/msal-common v15.
|
|
767
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
738
768
|
|
|
739
769
|
/*
|
|
740
770
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -925,12 +955,12 @@
|
|
|
925
955
|
}
|
|
926
956
|
}
|
|
927
957
|
|
|
928
|
-
/*! @azure/msal-common v15.
|
|
958
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
929
959
|
/* eslint-disable header/header */
|
|
930
960
|
const name$1 = "@azure/msal-common";
|
|
931
|
-
const version$1 = "15.
|
|
961
|
+
const version$1 = "15.5.0";
|
|
932
962
|
|
|
933
|
-
/*! @azure/msal-common v15.
|
|
963
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
934
964
|
/*
|
|
935
965
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
936
966
|
* Licensed under the MIT License.
|
|
@@ -950,7 +980,7 @@
|
|
|
950
980
|
AzureUsGovernment: "https://login.microsoftonline.us",
|
|
951
981
|
};
|
|
952
982
|
|
|
953
|
-
/*! @azure/msal-common v15.
|
|
983
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
954
984
|
|
|
955
985
|
/*
|
|
956
986
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1011,7 +1041,7 @@
|
|
|
1011
1041
|
}
|
|
1012
1042
|
}
|
|
1013
1043
|
|
|
1014
|
-
/*! @azure/msal-common v15.
|
|
1044
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
1015
1045
|
/*
|
|
1016
1046
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1017
1047
|
* Licensed under the MIT License.
|
|
@@ -1066,7 +1096,7 @@
|
|
|
1066
1096
|
return cachedAtSec > nowSeconds();
|
|
1067
1097
|
}
|
|
1068
1098
|
|
|
1069
|
-
/*! @azure/msal-common v15.
|
|
1099
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
1070
1100
|
|
|
1071
1101
|
/*
|
|
1072
1102
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1393,7 +1423,7 @@
|
|
|
1393
1423
|
return metadata.expiresAt <= nowSeconds();
|
|
1394
1424
|
}
|
|
1395
1425
|
|
|
1396
|
-
/*! @azure/msal-common v15.
|
|
1426
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
1397
1427
|
/*
|
|
1398
1428
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1399
1429
|
* Licensed under the MIT License.
|
|
@@ -1447,7 +1477,7 @@
|
|
|
1447
1477
|
urlParseError: urlParseError
|
|
1448
1478
|
});
|
|
1449
1479
|
|
|
1450
|
-
/*! @azure/msal-common v15.
|
|
1480
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
1451
1481
|
|
|
1452
1482
|
/*
|
|
1453
1483
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1585,7 +1615,7 @@
|
|
|
1585
1615
|
return new ClientConfigurationError(errorCode);
|
|
1586
1616
|
}
|
|
1587
1617
|
|
|
1588
|
-
/*! @azure/msal-common v15.
|
|
1618
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
1589
1619
|
/*
|
|
1590
1620
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1591
1621
|
* Licensed under the MIT License.
|
|
@@ -1682,7 +1712,7 @@
|
|
|
1682
1712
|
}
|
|
1683
1713
|
}
|
|
1684
1714
|
|
|
1685
|
-
/*! @azure/msal-common v15.
|
|
1715
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
1686
1716
|
|
|
1687
1717
|
/*
|
|
1688
1718
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1873,7 +1903,7 @@
|
|
|
1873
1903
|
}
|
|
1874
1904
|
}
|
|
1875
1905
|
|
|
1876
|
-
/*! @azure/msal-common v15.
|
|
1906
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
1877
1907
|
|
|
1878
1908
|
/*
|
|
1879
1909
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1913,7 +1943,7 @@
|
|
|
1913
1943
|
};
|
|
1914
1944
|
}
|
|
1915
1945
|
|
|
1916
|
-
/*! @azure/msal-common v15.
|
|
1946
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
1917
1947
|
/*
|
|
1918
1948
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1919
1949
|
* Licensed under the MIT License.
|
|
@@ -1992,7 +2022,7 @@
|
|
|
1992
2022
|
return updatedAccountInfo;
|
|
1993
2023
|
}
|
|
1994
2024
|
|
|
1995
|
-
/*! @azure/msal-common v15.
|
|
2025
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
1996
2026
|
/*
|
|
1997
2027
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1998
2028
|
* Licensed under the MIT License.
|
|
@@ -2007,7 +2037,7 @@
|
|
|
2007
2037
|
Ciam: 3,
|
|
2008
2038
|
};
|
|
2009
2039
|
|
|
2010
|
-
/*! @azure/msal-common v15.
|
|
2040
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
2011
2041
|
/*
|
|
2012
2042
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2013
2043
|
* Licensed under the MIT License.
|
|
@@ -2029,7 +2059,7 @@
|
|
|
2029
2059
|
return null;
|
|
2030
2060
|
}
|
|
2031
2061
|
|
|
2032
|
-
/*! @azure/msal-common v15.
|
|
2062
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
2033
2063
|
/*
|
|
2034
2064
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2035
2065
|
* Licensed under the MIT License.
|
|
@@ -2053,7 +2083,7 @@
|
|
|
2053
2083
|
EAR: "EAR",
|
|
2054
2084
|
};
|
|
2055
2085
|
|
|
2056
|
-
/*! @azure/msal-common v15.
|
|
2086
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
2057
2087
|
|
|
2058
2088
|
/*
|
|
2059
2089
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2296,7 +2326,7 @@
|
|
|
2296
2326
|
}
|
|
2297
2327
|
}
|
|
2298
2328
|
|
|
2299
|
-
/*! @azure/msal-common v15.
|
|
2329
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
2300
2330
|
|
|
2301
2331
|
/*
|
|
2302
2332
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2354,7 +2384,7 @@
|
|
|
2354
2384
|
return queryParameterArray.join("&");
|
|
2355
2385
|
}
|
|
2356
2386
|
|
|
2357
|
-
/*! @azure/msal-common v15.
|
|
2387
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
2358
2388
|
|
|
2359
2389
|
/*
|
|
2360
2390
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2518,7 +2548,7 @@
|
|
|
2518
2548
|
}
|
|
2519
2549
|
}
|
|
2520
2550
|
|
|
2521
|
-
/*! @azure/msal-common v15.
|
|
2551
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
2522
2552
|
|
|
2523
2553
|
/*
|
|
2524
2554
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2549,6 +2579,7 @@
|
|
|
2549
2579
|
},
|
|
2550
2580
|
},
|
|
2551
2581
|
instanceDiscoveryMetadata: {
|
|
2582
|
+
tenant_discovery_endpoint: "https://{canonicalAuthority}/v2.0/.well-known/openid-configuration",
|
|
2552
2583
|
metadata: [
|
|
2553
2584
|
{
|
|
2554
2585
|
preferred_network: "login.microsoftonline.com",
|
|
@@ -2657,7 +2688,7 @@
|
|
|
2657
2688
|
return null;
|
|
2658
2689
|
}
|
|
2659
2690
|
|
|
2660
|
-
/*! @azure/msal-common v15.
|
|
2691
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
2661
2692
|
/*
|
|
2662
2693
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2663
2694
|
* Licensed under the MIT License.
|
|
@@ -2665,7 +2696,7 @@
|
|
|
2665
2696
|
const cacheQuotaExceededErrorCode = "cache_quota_exceeded";
|
|
2666
2697
|
const cacheUnknownErrorCode = "cache_error_unknown";
|
|
2667
2698
|
|
|
2668
|
-
/*! @azure/msal-common v15.
|
|
2699
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
2669
2700
|
|
|
2670
2701
|
/*
|
|
2671
2702
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2692,7 +2723,7 @@
|
|
|
2692
2723
|
}
|
|
2693
2724
|
}
|
|
2694
2725
|
|
|
2695
|
-
/*! @azure/msal-common v15.
|
|
2726
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
2696
2727
|
|
|
2697
2728
|
/*
|
|
2698
2729
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3877,7 +3908,7 @@
|
|
|
3877
3908
|
}
|
|
3878
3909
|
}
|
|
3879
3910
|
|
|
3880
|
-
/*! @azure/msal-common v15.
|
|
3911
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
3881
3912
|
|
|
3882
3913
|
/*
|
|
3883
3914
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3976,7 +4007,7 @@
|
|
|
3976
4007
|
return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
|
|
3977
4008
|
}
|
|
3978
4009
|
|
|
3979
|
-
/*! @azure/msal-common v15.
|
|
4010
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
3980
4011
|
/*
|
|
3981
4012
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3982
4013
|
* Licensed under the MIT License.
|
|
@@ -3986,7 +4017,7 @@
|
|
|
3986
4017
|
UPN: "UPN",
|
|
3987
4018
|
};
|
|
3988
4019
|
|
|
3989
|
-
/*! @azure/msal-common v15.
|
|
4020
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
3990
4021
|
/*
|
|
3991
4022
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3992
4023
|
* Licensed under the MIT License.
|
|
@@ -4036,7 +4067,7 @@
|
|
|
4036
4067
|
const EAR_JWK = "ear_jwk";
|
|
4037
4068
|
const EAR_JWE_CRYPTO = "ear_jwe_crypto";
|
|
4038
4069
|
|
|
4039
|
-
/*! @azure/msal-common v15.
|
|
4070
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
4040
4071
|
|
|
4041
4072
|
/*
|
|
4042
4073
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4404,7 +4435,7 @@
|
|
|
4404
4435
|
parameters.set(EAR_JWE_CRYPTO, jweCryptoB64Encoded);
|
|
4405
4436
|
}
|
|
4406
4437
|
|
|
4407
|
-
/*! @azure/msal-common v15.
|
|
4438
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
4408
4439
|
/*
|
|
4409
4440
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4410
4441
|
* Licensed under the MIT License.
|
|
@@ -4416,7 +4447,7 @@
|
|
|
4416
4447
|
response.hasOwnProperty("jwks_uri"));
|
|
4417
4448
|
}
|
|
4418
4449
|
|
|
4419
|
-
/*! @azure/msal-common v15.
|
|
4450
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
4420
4451
|
/*
|
|
4421
4452
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4422
4453
|
* Licensed under the MIT License.
|
|
@@ -4426,7 +4457,7 @@
|
|
|
4426
4457
|
response.hasOwnProperty("metadata"));
|
|
4427
4458
|
}
|
|
4428
4459
|
|
|
4429
|
-
/*! @azure/msal-common v15.
|
|
4460
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
4430
4461
|
/*
|
|
4431
4462
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4432
4463
|
* Licensed under the MIT License.
|
|
@@ -4436,7 +4467,7 @@
|
|
|
4436
4467
|
response.hasOwnProperty("error_description"));
|
|
4437
4468
|
}
|
|
4438
4469
|
|
|
4439
|
-
/*! @azure/msal-common v15.
|
|
4470
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
4440
4471
|
/*
|
|
4441
4472
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4442
4473
|
* Licensed under the MIT License.
|
|
@@ -4928,6 +4959,7 @@
|
|
|
4928
4959
|
* @enum {number}
|
|
4929
4960
|
*/
|
|
4930
4961
|
const PerformanceEventStatus = {
|
|
4962
|
+
NotStarted: 0,
|
|
4931
4963
|
InProgress: 1,
|
|
4932
4964
|
Completed: 2,
|
|
4933
4965
|
};
|
|
@@ -4948,7 +4980,7 @@
|
|
|
4948
4980
|
"encryptedCacheExpiredCount",
|
|
4949
4981
|
]);
|
|
4950
4982
|
|
|
4951
|
-
/*! @azure/msal-common v15.
|
|
4983
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
4952
4984
|
/*
|
|
4953
4985
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4954
4986
|
* Licensed under the MIT License.
|
|
@@ -5044,7 +5076,7 @@
|
|
|
5044
5076
|
};
|
|
5045
5077
|
};
|
|
5046
5078
|
|
|
5047
|
-
/*! @azure/msal-common v15.
|
|
5079
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
5048
5080
|
|
|
5049
5081
|
/*
|
|
5050
5082
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5153,7 +5185,7 @@
|
|
|
5153
5185
|
},
|
|
5154
5186
|
};
|
|
5155
5187
|
|
|
5156
|
-
/*! @azure/msal-common v15.
|
|
5188
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
5157
5189
|
|
|
5158
5190
|
/*
|
|
5159
5191
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5992,7 +6024,7 @@
|
|
|
5992
6024
|
};
|
|
5993
6025
|
}
|
|
5994
6026
|
|
|
5995
|
-
/*! @azure/msal-common v15.
|
|
6027
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
5996
6028
|
|
|
5997
6029
|
/*
|
|
5998
6030
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6023,7 +6055,7 @@
|
|
|
6023
6055
|
}
|
|
6024
6056
|
}
|
|
6025
6057
|
|
|
6026
|
-
/*! @azure/msal-common v15.
|
|
6058
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
6027
6059
|
|
|
6028
6060
|
/*
|
|
6029
6061
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6042,7 +6074,7 @@
|
|
|
6042
6074
|
}
|
|
6043
6075
|
}
|
|
6044
6076
|
|
|
6045
|
-
/*! @azure/msal-common v15.
|
|
6077
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
6046
6078
|
/*
|
|
6047
6079
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6048
6080
|
* Licensed under the MIT License.
|
|
@@ -6063,7 +6095,7 @@
|
|
|
6063
6095
|
};
|
|
6064
6096
|
}
|
|
6065
6097
|
|
|
6066
|
-
/*! @azure/msal-common v15.
|
|
6098
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
6067
6099
|
|
|
6068
6100
|
/*
|
|
6069
6101
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6150,7 +6182,7 @@
|
|
|
6150
6182
|
}
|
|
6151
6183
|
}
|
|
6152
6184
|
|
|
6153
|
-
/*! @azure/msal-common v15.
|
|
6185
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
6154
6186
|
|
|
6155
6187
|
/*
|
|
6156
6188
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6180,7 +6212,7 @@
|
|
|
6180
6212
|
return new NetworkError(error, httpStatus, responseHeaders);
|
|
6181
6213
|
}
|
|
6182
6214
|
|
|
6183
|
-
/*! @azure/msal-common v15.
|
|
6215
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
6184
6216
|
|
|
6185
6217
|
/*
|
|
6186
6218
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6328,7 +6360,7 @@
|
|
|
6328
6360
|
}
|
|
6329
6361
|
}
|
|
6330
6362
|
|
|
6331
|
-
/*! @azure/msal-common v15.
|
|
6363
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
6332
6364
|
/*
|
|
6333
6365
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6334
6366
|
* Licensed under the MIT License.
|
|
@@ -6354,7 +6386,7 @@
|
|
|
6354
6386
|
refreshTokenExpired: refreshTokenExpired
|
|
6355
6387
|
});
|
|
6356
6388
|
|
|
6357
|
-
/*! @azure/msal-common v15.
|
|
6389
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
6358
6390
|
|
|
6359
6391
|
/*
|
|
6360
6392
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6442,7 +6474,7 @@
|
|
|
6442
6474
|
return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
|
|
6443
6475
|
}
|
|
6444
6476
|
|
|
6445
|
-
/*! @azure/msal-common v15.
|
|
6477
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
6446
6478
|
|
|
6447
6479
|
/*
|
|
6448
6480
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6514,14 +6546,16 @@
|
|
|
6514
6546
|
}
|
|
6515
6547
|
}
|
|
6516
6548
|
|
|
6517
|
-
/*! @azure/msal-common v15.
|
|
6549
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
6518
6550
|
|
|
6519
6551
|
/*
|
|
6520
6552
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6521
6553
|
* Licensed under the MIT License.
|
|
6522
6554
|
*/
|
|
6523
6555
|
const KeyLocation = {
|
|
6524
|
-
SW: "sw"
|
|
6556
|
+
SW: "sw",
|
|
6557
|
+
UHW: "uhw",
|
|
6558
|
+
};
|
|
6525
6559
|
/** @internal */
|
|
6526
6560
|
class PopTokenGenerator {
|
|
6527
6561
|
constructor(cryptoUtils, performanceClient) {
|
|
@@ -6596,7 +6630,7 @@
|
|
|
6596
6630
|
}
|
|
6597
6631
|
}
|
|
6598
6632
|
|
|
6599
|
-
/*! @azure/msal-common v15.
|
|
6633
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
6600
6634
|
/*
|
|
6601
6635
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6602
6636
|
* Licensed under the MIT License.
|
|
@@ -6623,7 +6657,7 @@
|
|
|
6623
6657
|
}
|
|
6624
6658
|
}
|
|
6625
6659
|
|
|
6626
|
-
/*! @azure/msal-common v15.
|
|
6660
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
6627
6661
|
|
|
6628
6662
|
/*
|
|
6629
6663
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6954,7 +6988,7 @@
|
|
|
6954
6988
|
return baseAccount;
|
|
6955
6989
|
}
|
|
6956
6990
|
|
|
6957
|
-
/*! @azure/msal-common v15.
|
|
6991
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
6958
6992
|
|
|
6959
6993
|
/*
|
|
6960
6994
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7021,7 +7055,7 @@
|
|
|
7021
7055
|
}
|
|
7022
7056
|
}
|
|
7023
7057
|
|
|
7024
|
-
/*! @azure/msal-common v15.
|
|
7058
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
7025
7059
|
/*
|
|
7026
7060
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7027
7061
|
* Licensed under the MIT License.
|
|
@@ -7039,7 +7073,7 @@
|
|
|
7039
7073
|
}
|
|
7040
7074
|
}
|
|
7041
7075
|
|
|
7042
|
-
/*! @azure/msal-common v15.
|
|
7076
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
7043
7077
|
|
|
7044
7078
|
/*
|
|
7045
7079
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7272,7 +7306,7 @@
|
|
|
7272
7306
|
}
|
|
7273
7307
|
}
|
|
7274
7308
|
|
|
7275
|
-
/*! @azure/msal-common v15.
|
|
7309
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
7276
7310
|
|
|
7277
7311
|
/*
|
|
7278
7312
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7481,7 +7515,7 @@
|
|
|
7481
7515
|
}
|
|
7482
7516
|
}
|
|
7483
7517
|
|
|
7484
|
-
/*! @azure/msal-common v15.
|
|
7518
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
7485
7519
|
|
|
7486
7520
|
/*
|
|
7487
7521
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7579,7 +7613,7 @@
|
|
|
7579
7613
|
}
|
|
7580
7614
|
}
|
|
7581
7615
|
|
|
7582
|
-
/*! @azure/msal-common v15.
|
|
7616
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
7583
7617
|
|
|
7584
7618
|
/*
|
|
7585
7619
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7594,7 +7628,7 @@
|
|
|
7594
7628
|
},
|
|
7595
7629
|
};
|
|
7596
7630
|
|
|
7597
|
-
/*! @azure/msal-common v15.
|
|
7631
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
7598
7632
|
|
|
7599
7633
|
/*
|
|
7600
7634
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7818,7 +7852,7 @@
|
|
|
7818
7852
|
return account.idTokenClaims?.login_hint || null;
|
|
7819
7853
|
}
|
|
7820
7854
|
|
|
7821
|
-
/*! @azure/msal-common v15.
|
|
7855
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
7822
7856
|
|
|
7823
7857
|
/*
|
|
7824
7858
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7876,7 +7910,7 @@
|
|
|
7876
7910
|
}
|
|
7877
7911
|
}
|
|
7878
7912
|
|
|
7879
|
-
/*! @azure/msal-common v15.
|
|
7913
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
7880
7914
|
|
|
7881
7915
|
/*
|
|
7882
7916
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8139,7 +8173,7 @@
|
|
|
8139
8173
|
}
|
|
8140
8174
|
}
|
|
8141
8175
|
|
|
8142
|
-
/*! @azure/msal-common v15.
|
|
8176
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
8143
8177
|
/*
|
|
8144
8178
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8145
8179
|
* Licensed under the MIT License.
|
|
@@ -8147,7 +8181,7 @@
|
|
|
8147
8181
|
const missingKidError = "missing_kid_error";
|
|
8148
8182
|
const missingAlgError = "missing_alg_error";
|
|
8149
8183
|
|
|
8150
|
-
/*! @azure/msal-common v15.
|
|
8184
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
8151
8185
|
|
|
8152
8186
|
/*
|
|
8153
8187
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8172,7 +8206,7 @@
|
|
|
8172
8206
|
return new JoseHeaderError(code, JoseHeaderErrorMessages[code]);
|
|
8173
8207
|
}
|
|
8174
8208
|
|
|
8175
|
-
/*! @azure/msal-common v15.
|
|
8209
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
8176
8210
|
|
|
8177
8211
|
/*
|
|
8178
8212
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8212,7 +8246,7 @@
|
|
|
8212
8246
|
}
|
|
8213
8247
|
}
|
|
8214
8248
|
|
|
8215
|
-
/*! @azure/msal-common v15.
|
|
8249
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
8216
8250
|
|
|
8217
8251
|
/*
|
|
8218
8252
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8291,7 +8325,7 @@
|
|
|
8291
8325
|
}
|
|
8292
8326
|
}
|
|
8293
8327
|
|
|
8294
|
-
/*! @azure/msal-common v15.
|
|
8328
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
8295
8329
|
|
|
8296
8330
|
/*
|
|
8297
8331
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -9281,6 +9315,10 @@
|
|
|
9281
9315
|
* Constants
|
|
9282
9316
|
*/
|
|
9283
9317
|
const BrowserConstants = {
|
|
9318
|
+
/**
|
|
9319
|
+
* Interaction in progress cache value
|
|
9320
|
+
*/
|
|
9321
|
+
INTERACTION_IN_PROGRESS_VALUE: "interaction_in_progress",
|
|
9284
9322
|
/**
|
|
9285
9323
|
* Invalid grant error code
|
|
9286
9324
|
*/
|
|
@@ -9329,6 +9367,10 @@
|
|
|
9329
9367
|
GET: "GET",
|
|
9330
9368
|
POST: "POST",
|
|
9331
9369
|
};
|
|
9370
|
+
const INTERACTION_TYPE = {
|
|
9371
|
+
SIGNIN: "signin",
|
|
9372
|
+
SIGNOUT: "signout",
|
|
9373
|
+
};
|
|
9332
9374
|
/**
|
|
9333
9375
|
* Temporary cache keys for MSAL, deleted after any request.
|
|
9334
9376
|
*/
|
|
@@ -10380,7 +10422,7 @@
|
|
|
10380
10422
|
|
|
10381
10423
|
/* eslint-disable header/header */
|
|
10382
10424
|
const name = "@azure/msal-browser";
|
|
10383
|
-
const version = "4.
|
|
10425
|
+
const version = "4.10.0";
|
|
10384
10426
|
|
|
10385
10427
|
/*
|
|
10386
10428
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -12466,7 +12508,7 @@
|
|
|
12466
12508
|
return parsedRequest;
|
|
12467
12509
|
}
|
|
12468
12510
|
isInteractionInProgress(matchClientId) {
|
|
12469
|
-
const clientId = this.getInteractionInProgress();
|
|
12511
|
+
const clientId = this.getInteractionInProgress()?.clientId;
|
|
12470
12512
|
if (matchClientId) {
|
|
12471
12513
|
return clientId === this.clientId;
|
|
12472
12514
|
}
|
|
@@ -12476,9 +12518,10 @@
|
|
|
12476
12518
|
}
|
|
12477
12519
|
getInteractionInProgress() {
|
|
12478
12520
|
const key = `${Constants.CACHE_PREFIX}.${TemporaryCacheKeys.INTERACTION_STATUS_KEY}`;
|
|
12479
|
-
|
|
12521
|
+
const value = this.getTemporaryCache(key, false);
|
|
12522
|
+
return value ? JSON.parse(value) : null;
|
|
12480
12523
|
}
|
|
12481
|
-
setInteractionInProgress(inProgress) {
|
|
12524
|
+
setInteractionInProgress(inProgress, type = INTERACTION_TYPE.SIGNIN) {
|
|
12482
12525
|
// Ensure we don't overwrite interaction in progress for a different clientId
|
|
12483
12526
|
const key = `${Constants.CACHE_PREFIX}.${TemporaryCacheKeys.INTERACTION_STATUS_KEY}`;
|
|
12484
12527
|
if (inProgress) {
|
|
@@ -12487,11 +12530,11 @@
|
|
|
12487
12530
|
}
|
|
12488
12531
|
else {
|
|
12489
12532
|
// No interaction is in progress
|
|
12490
|
-
this.setTemporaryCache(key, this.clientId, false);
|
|
12533
|
+
this.setTemporaryCache(key, JSON.stringify({ clientId: this.clientId, type }), false);
|
|
12491
12534
|
}
|
|
12492
12535
|
}
|
|
12493
12536
|
else if (!inProgress &&
|
|
12494
|
-
this.getInteractionInProgress() === this.clientId) {
|
|
12537
|
+
this.getInteractionInProgress()?.clientId === this.clientId) {
|
|
12495
12538
|
this.removeTemporaryItem(key);
|
|
12496
12539
|
}
|
|
12497
12540
|
}
|
|
@@ -15447,7 +15490,7 @@
|
|
|
15447
15490
|
this.logger.verbose("Logout onRedirectNavigate did not return false, navigating");
|
|
15448
15491
|
// Ensure interaction is in progress
|
|
15449
15492
|
if (!this.browserStorage.getInteractionInProgress()) {
|
|
15450
|
-
this.browserStorage.setInteractionInProgress(true);
|
|
15493
|
+
this.browserStorage.setInteractionInProgress(true, INTERACTION_TYPE.SIGNOUT);
|
|
15451
15494
|
}
|
|
15452
15495
|
await this.navigationClient.navigateExternal(logoutUri, navigationOptions);
|
|
15453
15496
|
return;
|
|
@@ -15461,7 +15504,7 @@
|
|
|
15461
15504
|
else {
|
|
15462
15505
|
// Ensure interaction is in progress
|
|
15463
15506
|
if (!this.browserStorage.getInteractionInProgress()) {
|
|
15464
|
-
this.browserStorage.setInteractionInProgress(true);
|
|
15507
|
+
this.browserStorage.setInteractionInProgress(true, INTERACTION_TYPE.SIGNOUT);
|
|
15465
15508
|
}
|
|
15466
15509
|
await this.navigationClient.navigateExternal(logoutUri, navigationOptions);
|
|
15467
15510
|
return;
|
|
@@ -16299,29 +16342,41 @@
|
|
|
16299
16342
|
this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null.");
|
|
16300
16343
|
return null;
|
|
16301
16344
|
}
|
|
16345
|
+
const interactionType = this.browserStorage.getInteractionInProgress()?.type;
|
|
16346
|
+
if (interactionType === INTERACTION_TYPE.SIGNOUT) {
|
|
16347
|
+
this.logger.verbose("handleRedirectPromise removing interaction_in_progress flag and returning null after sign-out");
|
|
16348
|
+
this.browserStorage.setInteractionInProgress(false);
|
|
16349
|
+
return Promise.resolve(null);
|
|
16350
|
+
}
|
|
16302
16351
|
const loggedInAccounts = this.getAllAccounts();
|
|
16303
16352
|
const platformBrokerRequest = this.browserStorage.getCachedNativeRequest();
|
|
16304
16353
|
const useNative = platformBrokerRequest &&
|
|
16305
16354
|
NativeMessageHandler.isPlatformBrokerAvailable(this.config, this.logger, this.nativeExtensionProvider) &&
|
|
16306
16355
|
this.nativeExtensionProvider &&
|
|
16307
16356
|
!hash;
|
|
16308
|
-
let rootMeasurement
|
|
16357
|
+
let rootMeasurement;
|
|
16309
16358
|
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_START, exports.InteractionType.Redirect);
|
|
16310
16359
|
let redirectResponse;
|
|
16311
|
-
|
|
16312
|
-
|
|
16313
|
-
|
|
16314
|
-
|
|
16360
|
+
try {
|
|
16361
|
+
if (useNative && this.nativeExtensionProvider) {
|
|
16362
|
+
rootMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.AcquireTokenRedirect, platformBrokerRequest?.correlationId || "");
|
|
16363
|
+
this.logger.trace("handleRedirectPromise - acquiring token from native platform");
|
|
16364
|
+
const nativeClient = new NativeInteractionClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, ApiId.handleRedirectPromise, this.performanceClient, this.nativeExtensionProvider, platformBrokerRequest.accountId, this.nativeInternalStorage, platformBrokerRequest.correlationId);
|
|
16365
|
+
redirectResponse = invokeAsync(nativeClient.handleRedirectPromise.bind(nativeClient), PerformanceEvents.HandleNativeRedirectPromiseMeasurement, this.logger, this.performanceClient, rootMeasurement.event.correlationId)(this.performanceClient, rootMeasurement.event.correlationId);
|
|
16366
|
+
}
|
|
16367
|
+
else {
|
|
16368
|
+
const [standardRequest, codeVerifier] = this.browserStorage.getCachedRequest();
|
|
16369
|
+
const correlationId = standardRequest.correlationId;
|
|
16370
|
+
// Reset rootMeasurement now that we have correlationId
|
|
16371
|
+
rootMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.AcquireTokenRedirect, correlationId);
|
|
16372
|
+
this.logger.trace("handleRedirectPromise - acquiring token from web flow");
|
|
16373
|
+
const redirectClient = this.createRedirectClient(correlationId);
|
|
16374
|
+
redirectResponse = invokeAsync(redirectClient.handleRedirectPromise.bind(redirectClient), PerformanceEvents.HandleRedirectPromiseMeasurement, this.logger, this.performanceClient, rootMeasurement.event.correlationId)(hash, standardRequest, codeVerifier, rootMeasurement);
|
|
16375
|
+
}
|
|
16315
16376
|
}
|
|
16316
|
-
|
|
16317
|
-
|
|
16318
|
-
|
|
16319
|
-
// Reset rootMeasurement now that we have correlationId
|
|
16320
|
-
rootMeasurement.discard();
|
|
16321
|
-
rootMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.AcquireTokenRedirect, correlationId);
|
|
16322
|
-
this.logger.trace("handleRedirectPromise - acquiring token from web flow");
|
|
16323
|
-
const redirectClient = this.createRedirectClient(correlationId);
|
|
16324
|
-
redirectResponse = invokeAsync(redirectClient.handleRedirectPromise.bind(redirectClient), PerformanceEvents.HandleRedirectPromiseMeasurement, this.logger, this.performanceClient, rootMeasurement.event.correlationId)(hash, standardRequest, codeVerifier, rootMeasurement);
|
|
16377
|
+
catch (e) {
|
|
16378
|
+
this.browserStorage.resetRequestCache();
|
|
16379
|
+
throw e;
|
|
16325
16380
|
}
|
|
16326
16381
|
return redirectResponse
|
|
16327
16382
|
.then((result) => {
|
|
@@ -16427,7 +16482,7 @@
|
|
|
16427
16482
|
const isLoggedIn = this.getAllAccounts().length > 0;
|
|
16428
16483
|
try {
|
|
16429
16484
|
redirectPreflightCheck(this.initialized, this.config);
|
|
16430
|
-
this.browserStorage.setInteractionInProgress(true);
|
|
16485
|
+
this.browserStorage.setInteractionInProgress(true, INTERACTION_TYPE.SIGNIN);
|
|
16431
16486
|
if (isLoggedIn) {
|
|
16432
16487
|
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, exports.InteractionType.Redirect, request);
|
|
16433
16488
|
}
|
|
@@ -16492,7 +16547,7 @@
|
|
|
16492
16547
|
try {
|
|
16493
16548
|
this.logger.verbose("acquireTokenPopup called", correlationId);
|
|
16494
16549
|
preflightCheck(this.initialized, atPopupMeasurement);
|
|
16495
|
-
this.browserStorage.setInteractionInProgress(true);
|
|
16550
|
+
this.browserStorage.setInteractionInProgress(true, INTERACTION_TYPE.SIGNIN);
|
|
16496
16551
|
}
|
|
16497
16552
|
catch (e) {
|
|
16498
16553
|
// Since this function is syncronous we need to reject
|
|
@@ -16867,7 +16922,7 @@
|
|
|
16867
16922
|
async logoutRedirect(logoutRequest) {
|
|
16868
16923
|
const correlationId = this.getRequestCorrelationId(logoutRequest);
|
|
16869
16924
|
redirectPreflightCheck(this.initialized, this.config);
|
|
16870
|
-
this.browserStorage.setInteractionInProgress(true);
|
|
16925
|
+
this.browserStorage.setInteractionInProgress(true, INTERACTION_TYPE.SIGNOUT);
|
|
16871
16926
|
const redirectClient = this.createRedirectClient(correlationId);
|
|
16872
16927
|
return redirectClient.logout(logoutRequest);
|
|
16873
16928
|
}
|
|
@@ -16879,7 +16934,7 @@
|
|
|
16879
16934
|
try {
|
|
16880
16935
|
const correlationId = this.getRequestCorrelationId(logoutRequest);
|
|
16881
16936
|
preflightCheck$1(this.initialized);
|
|
16882
|
-
this.browserStorage.setInteractionInProgress(true);
|
|
16937
|
+
this.browserStorage.setInteractionInProgress(true, INTERACTION_TYPE.SIGNOUT);
|
|
16883
16938
|
const popupClient = this.createPopupClient(correlationId);
|
|
16884
16939
|
return popupClient.logout(logoutRequest).finally(() => {
|
|
16885
16940
|
this.browserStorage.setInteractionInProgress(false);
|
|
@@ -17299,7 +17354,9 @@
|
|
|
17299
17354
|
async acquireTokenSilentDeduped(request, account, correlationId) {
|
|
17300
17355
|
const thumbprint = getRequestThumbprint(this.config.auth.clientId, {
|
|
17301
17356
|
...request,
|
|
17302
|
-
authority: request.authority || this.config.auth.authority
|
|
17357
|
+
authority: request.authority || this.config.auth.authority,
|
|
17358
|
+
correlationId: correlationId,
|
|
17359
|
+
}, account.homeAccountId);
|
|
17303
17360
|
const silentRequestKey = JSON.stringify(thumbprint);
|
|
17304
17361
|
const inProgressRequest = this.activeSilentTokenRequests.get(silentRequestKey);
|
|
17305
17362
|
if (typeof inProgressRequest === "undefined") {
|
|
@@ -17926,7 +17983,7 @@
|
|
|
17926
17983
|
});
|
|
17927
17984
|
return result;
|
|
17928
17985
|
}
|
|
17929
|
-
this.logger.
|
|
17986
|
+
this.logger.warning("Cached tokens are not found for the account, proceeding with silent token request.");
|
|
17930
17987
|
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Silent, null);
|
|
17931
17988
|
atsMeasurement?.end({
|
|
17932
17989
|
success: false,
|