@azure/msal-browser 2.32.1 → 2.32.3
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/LICENSE +21 -21
- package/README.md +213 -213
- package/dist/_virtual/_tslib.js +1 -1
- package/dist/app/ClientApplication.js +1 -1
- package/dist/app/ClientApplication.js.map +1 -1
- package/dist/app/IPublicClientApplication.js +1 -1
- package/dist/app/IPublicClientApplication.js.map +1 -1
- package/dist/app/PublicClientApplication.d.ts.map +1 -1
- package/dist/app/PublicClientApplication.js +7 -6
- package/dist/app/PublicClientApplication.js.map +1 -1
- package/dist/broker/nativeBroker/NativeMessageHandler.js +1 -1
- package/dist/broker/nativeBroker/NativeMessageHandler.js.map +1 -1
- package/dist/cache/AsyncMemoryStorage.js +1 -1
- package/dist/cache/AsyncMemoryStorage.js.map +1 -1
- package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
- package/dist/cache/BrowserCacheManager.js +8 -7
- package/dist/cache/BrowserCacheManager.js.map +1 -1
- package/dist/cache/BrowserStorage.js +1 -1
- package/dist/cache/BrowserStorage.js.map +1 -1
- package/dist/cache/CryptoKeyStore.js +1 -1
- package/dist/cache/CryptoKeyStore.js.map +1 -1
- package/dist/cache/DatabaseStorage.js +1 -1
- package/dist/cache/DatabaseStorage.js.map +1 -1
- package/dist/cache/MemoryStorage.js +1 -1
- package/dist/cache/MemoryStorage.js.map +1 -1
- package/dist/cache/TokenCache.js +1 -1
- package/dist/cache/TokenCache.js.map +1 -1
- package/dist/config/Configuration.d.ts.map +1 -1
- package/dist/config/Configuration.js +6 -3
- package/dist/config/Configuration.js.map +1 -1
- package/dist/crypto/BrowserCrypto.js +1 -1
- package/dist/crypto/BrowserCrypto.js.map +1 -1
- package/dist/crypto/CryptoOps.js +1 -1
- package/dist/crypto/CryptoOps.js.map +1 -1
- package/dist/crypto/GuidGenerator.js +1 -1
- package/dist/crypto/GuidGenerator.js.map +1 -1
- package/dist/crypto/ModernBrowserCrypto.js +1 -1
- package/dist/crypto/ModernBrowserCrypto.js.map +1 -1
- package/dist/crypto/MsBrowserCrypto.js +1 -1
- package/dist/crypto/MsBrowserCrypto.js.map +1 -1
- package/dist/crypto/MsrBrowserCrypto.js +1 -1
- package/dist/crypto/MsrBrowserCrypto.js.map +1 -1
- package/dist/crypto/PkceGenerator.js +1 -1
- package/dist/crypto/PkceGenerator.js.map +1 -1
- package/dist/crypto/SignedHttpRequest.js +1 -1
- package/dist/crypto/SignedHttpRequest.js.map +1 -1
- package/dist/encode/Base64Decode.js +1 -1
- package/dist/encode/Base64Decode.js.map +1 -1
- package/dist/encode/Base64Encode.js +1 -1
- package/dist/encode/Base64Encode.js.map +1 -1
- package/dist/error/BrowserAuthError.js +1 -1
- package/dist/error/BrowserAuthError.js.map +1 -1
- package/dist/error/BrowserConfigurationAuthError.js +1 -1
- package/dist/error/BrowserConfigurationAuthError.js.map +1 -1
- package/dist/error/NativeAuthError.js +1 -1
- package/dist/error/NativeAuthError.js.map +1 -1
- package/dist/event/EventHandler.js +1 -1
- package/dist/event/EventHandler.js.map +1 -1
- package/dist/event/EventMessage.js +1 -1
- package/dist/event/EventMessage.js.map +1 -1
- package/dist/event/EventType.js +1 -1
- package/dist/event/EventType.js.map +1 -1
- package/dist/index.cjs.js +195 -145
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/interaction_client/BaseInteractionClient.js +1 -1
- package/dist/interaction_client/BaseInteractionClient.js.map +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.js +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.js.map +1 -1
- package/dist/interaction_client/NativeInteractionClient.js +1 -1
- package/dist/interaction_client/NativeInteractionClient.js.map +1 -1
- package/dist/interaction_client/PopupClient.js +1 -1
- package/dist/interaction_client/PopupClient.js.map +1 -1
- package/dist/interaction_client/RedirectClient.js +1 -1
- package/dist/interaction_client/RedirectClient.js.map +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.js +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.js.map +1 -1
- package/dist/interaction_client/SilentCacheClient.js +1 -1
- package/dist/interaction_client/SilentCacheClient.js.map +1 -1
- package/dist/interaction_client/SilentIframeClient.js +1 -1
- package/dist/interaction_client/SilentIframeClient.js.map +1 -1
- package/dist/interaction_client/SilentRefreshClient.js +1 -1
- package/dist/interaction_client/SilentRefreshClient.js.map +1 -1
- package/dist/interaction_client/StandardInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/StandardInteractionClient.js +12 -10
- package/dist/interaction_client/StandardInteractionClient.js.map +1 -1
- package/dist/interaction_handler/InteractionHandler.d.ts.map +1 -1
- package/dist/interaction_handler/InteractionHandler.js +1 -1
- package/dist/interaction_handler/InteractionHandler.js.map +1 -1
- package/dist/interaction_handler/RedirectHandler.js +1 -1
- package/dist/interaction_handler/RedirectHandler.js.map +1 -1
- package/dist/interaction_handler/SilentHandler.js +1 -1
- package/dist/interaction_handler/SilentHandler.js.map +1 -1
- package/dist/internals.d.ts +2 -0
- package/dist/internals.d.ts.map +1 -1
- package/dist/internals.js +3 -1
- package/dist/internals.js.map +1 -1
- package/dist/navigation/NavigationClient.js +1 -1
- package/dist/navigation/NavigationClient.js.map +1 -1
- package/dist/network/FetchClient.js +1 -1
- package/dist/network/FetchClient.js.map +1 -1
- package/dist/network/XhrClient.js +1 -1
- package/dist/network/XhrClient.js.map +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.js +2 -2
- package/dist/packageMetadata.js.map +1 -1
- package/dist/telemetry/BrowserPerformanceClient.d.ts +1 -1
- package/dist/telemetry/BrowserPerformanceClient.d.ts.map +1 -1
- package/dist/telemetry/BrowserPerformanceClient.js +2 -2
- package/dist/telemetry/BrowserPerformanceClient.js.map +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.js +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.js.map +1 -1
- package/dist/utils/BrowserConstants.js +1 -1
- package/dist/utils/BrowserConstants.js.map +1 -1
- package/dist/utils/BrowserProtocolUtils.js +1 -1
- package/dist/utils/BrowserProtocolUtils.js.map +1 -1
- package/dist/utils/BrowserStringUtils.js +1 -1
- package/dist/utils/BrowserStringUtils.js.map +1 -1
- package/dist/utils/BrowserUtils.js +1 -1
- package/dist/utils/BrowserUtils.js.map +1 -1
- package/dist/utils/MathUtils.js +1 -1
- package/dist/utils/MathUtils.js.map +1 -1
- package/lib/msal-browser.js +195 -145
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +33 -33
- package/package.json +95 -95
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v2.32.
|
|
1
|
+
/*! @azure/msal-browser v2.32.3 2023-03-10 */
|
|
2
2
|
'use strict';
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -117,7 +117,7 @@ function __spread() {
|
|
|
117
117
|
return ar;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
/*! @azure/msal-common v9.0.
|
|
120
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
121
121
|
/*! *****************************************************************************
|
|
122
122
|
Copyright (c) Microsoft Corporation.
|
|
123
123
|
|
|
@@ -204,7 +204,7 @@ function __spreadArrays() {
|
|
|
204
204
|
return r;
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
/*! @azure/msal-common v9.0.
|
|
207
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
208
208
|
|
|
209
209
|
/*
|
|
210
210
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -280,6 +280,7 @@ var HeaderNames;
|
|
|
280
280
|
HeaderNames["WWWAuthenticate"] = "WWW-Authenticate";
|
|
281
281
|
HeaderNames["AuthenticationInfo"] = "Authentication-Info";
|
|
282
282
|
HeaderNames["X_MS_REQUEST_ID"] = "x-ms-request-id";
|
|
283
|
+
HeaderNames["X_MS_HTTP_VERSION"] = "x-ms-httpver";
|
|
283
284
|
})(HeaderNames || (HeaderNames = {}));
|
|
284
285
|
/**
|
|
285
286
|
* Persistent cache keys MSAL which stay while user is logged in.
|
|
@@ -585,9 +586,10 @@ var JsonTypes;
|
|
|
585
586
|
(function (JsonTypes) {
|
|
586
587
|
JsonTypes["Jwt"] = "JWT";
|
|
587
588
|
JsonTypes["Jwk"] = "JWK";
|
|
589
|
+
JsonTypes["Pop"] = "pop";
|
|
588
590
|
})(JsonTypes || (JsonTypes = {}));
|
|
589
591
|
|
|
590
|
-
/*! @azure/msal-common v9.0.
|
|
592
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
591
593
|
|
|
592
594
|
/*
|
|
593
595
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -643,7 +645,7 @@ var AuthError = /** @class */ (function (_super) {
|
|
|
643
645
|
return AuthError;
|
|
644
646
|
}(Error));
|
|
645
647
|
|
|
646
|
-
/*! @azure/msal-common v9.0.
|
|
648
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
647
649
|
|
|
648
650
|
/*
|
|
649
651
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -718,7 +720,7 @@ var DEFAULT_CRYPTO_IMPLEMENTATION = {
|
|
|
718
720
|
}
|
|
719
721
|
};
|
|
720
722
|
|
|
721
|
-
/*! @azure/msal-common v9.0.
|
|
723
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
722
724
|
|
|
723
725
|
/*
|
|
724
726
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1213,7 +1215,7 @@ var ClientAuthError = /** @class */ (function (_super) {
|
|
|
1213
1215
|
return ClientAuthError;
|
|
1214
1216
|
}(AuthError));
|
|
1215
1217
|
|
|
1216
|
-
/*! @azure/msal-common v9.0.
|
|
1218
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
1217
1219
|
|
|
1218
1220
|
/*
|
|
1219
1221
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1338,7 +1340,7 @@ var StringUtils = /** @class */ (function () {
|
|
|
1338
1340
|
return StringUtils;
|
|
1339
1341
|
}());
|
|
1340
1342
|
|
|
1341
|
-
/*! @azure/msal-common v9.0.
|
|
1343
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
1342
1344
|
|
|
1343
1345
|
/*
|
|
1344
1346
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1365,13 +1367,23 @@ var Logger = /** @class */ (function () {
|
|
|
1365
1367
|
var defaultLoggerCallback = function () {
|
|
1366
1368
|
return;
|
|
1367
1369
|
};
|
|
1368
|
-
|
|
1369
|
-
this.
|
|
1370
|
-
this.
|
|
1371
|
-
this.
|
|
1370
|
+
var setLoggerOptions = loggerOptions || Logger.createDefaultLoggerOptions();
|
|
1371
|
+
this.localCallback = setLoggerOptions.loggerCallback || defaultLoggerCallback;
|
|
1372
|
+
this.piiLoggingEnabled = setLoggerOptions.piiLoggingEnabled || false;
|
|
1373
|
+
this.level = typeof (setLoggerOptions.logLevel) === "number" ? setLoggerOptions.logLevel : exports.LogLevel.Info;
|
|
1374
|
+
this.correlationId = setLoggerOptions.correlationId || Constants.EMPTY_STRING;
|
|
1372
1375
|
this.packageName = packageName || Constants.EMPTY_STRING;
|
|
1373
1376
|
this.packageVersion = packageVersion || Constants.EMPTY_STRING;
|
|
1374
1377
|
}
|
|
1378
|
+
Logger.createDefaultLoggerOptions = function () {
|
|
1379
|
+
return {
|
|
1380
|
+
loggerCallback: function () {
|
|
1381
|
+
// allow users to not set loggerCallback
|
|
1382
|
+
},
|
|
1383
|
+
piiLoggingEnabled: false,
|
|
1384
|
+
logLevel: exports.LogLevel.Info
|
|
1385
|
+
};
|
|
1386
|
+
};
|
|
1375
1387
|
/**
|
|
1376
1388
|
* Create new Logger with existing configurations.
|
|
1377
1389
|
*/
|
|
@@ -1518,12 +1530,12 @@ var Logger = /** @class */ (function () {
|
|
|
1518
1530
|
return Logger;
|
|
1519
1531
|
}());
|
|
1520
1532
|
|
|
1521
|
-
/*! @azure/msal-common v9.0.
|
|
1533
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
1522
1534
|
/* eslint-disable header/header */
|
|
1523
1535
|
var name$1 = "@azure/msal-common";
|
|
1524
|
-
var version$1 = "9.0.
|
|
1536
|
+
var version$1 = "9.0.3";
|
|
1525
1537
|
|
|
1526
|
-
/*! @azure/msal-common v9.0.
|
|
1538
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
1527
1539
|
/*
|
|
1528
1540
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1529
1541
|
* Licensed under the MIT License.
|
|
@@ -1544,7 +1556,7 @@ exports.AzureCloudInstance = void 0;
|
|
|
1544
1556
|
AzureCloudInstance["AzureUsGovernment"] = "https://login.microsoftonline.us";
|
|
1545
1557
|
})(exports.AzureCloudInstance || (exports.AzureCloudInstance = {}));
|
|
1546
1558
|
|
|
1547
|
-
/*! @azure/msal-common v9.0.
|
|
1559
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
1548
1560
|
|
|
1549
1561
|
/*
|
|
1550
1562
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1621,19 +1633,16 @@ var CredentialEntity = /** @class */ (function () {
|
|
|
1621
1633
|
* @param key
|
|
1622
1634
|
*/
|
|
1623
1635
|
CredentialEntity.getCredentialType = function (key) {
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1636
|
+
var separator = Separators.CACHE_KEY_SEPARATOR;
|
|
1637
|
+
// Match host names like "login.microsoftonline.com", "https://accounts.google.com:4000", etc.
|
|
1638
|
+
var domainRe = "(https?:\\/\\/)?([\\w-]+\\.)*([\\w-]{1,63})(\\.(\\w{2,3}))(\\:[0-9]{4,5})?";
|
|
1639
|
+
for (var _i = 0, _a = Object.keys(CredentialType); _i < _a.length; _i++) {
|
|
1640
|
+
var credKey = _a[_i];
|
|
1641
|
+
var credVal = CredentialType[credKey].toLowerCase();
|
|
1642
|
+
// Verify credential type is preceded by a valid host name (environment)
|
|
1643
|
+
if (key.toLowerCase().search("(?<=" + separator + domainRe + ")" + separator + credVal + separator) !== -1) {
|
|
1644
|
+
return CredentialType[credKey];
|
|
1629
1645
|
}
|
|
1630
|
-
return CredentialType.ACCESS_TOKEN;
|
|
1631
|
-
}
|
|
1632
|
-
else if (key.indexOf(CredentialType.ID_TOKEN.toLowerCase()) !== -1) {
|
|
1633
|
-
return CredentialType.ID_TOKEN;
|
|
1634
|
-
}
|
|
1635
|
-
else if (key.indexOf(CredentialType.REFRESH_TOKEN.toLowerCase()) !== -1) {
|
|
1636
|
-
return CredentialType.REFRESH_TOKEN;
|
|
1637
1646
|
}
|
|
1638
1647
|
return Constants.NOT_DEFINED;
|
|
1639
1648
|
};
|
|
@@ -1703,7 +1712,7 @@ var CredentialEntity = /** @class */ (function () {
|
|
|
1703
1712
|
return CredentialEntity;
|
|
1704
1713
|
}());
|
|
1705
1714
|
|
|
1706
|
-
/*! @azure/msal-common v9.0.
|
|
1715
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
1707
1716
|
|
|
1708
1717
|
/*
|
|
1709
1718
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1958,7 +1967,7 @@ var ClientConfigurationError = /** @class */ (function (_super) {
|
|
|
1958
1967
|
return ClientConfigurationError;
|
|
1959
1968
|
}(ClientAuthError));
|
|
1960
1969
|
|
|
1961
|
-
/*! @azure/msal-common v9.0.
|
|
1970
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
1962
1971
|
|
|
1963
1972
|
/*
|
|
1964
1973
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2142,7 +2151,7 @@ var ScopeSet = /** @class */ (function () {
|
|
|
2142
2151
|
return ScopeSet;
|
|
2143
2152
|
}());
|
|
2144
2153
|
|
|
2145
|
-
/*! @azure/msal-common v9.0.
|
|
2154
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
2146
2155
|
|
|
2147
2156
|
/*
|
|
2148
2157
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2180,7 +2189,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
|
|
|
2180
2189
|
};
|
|
2181
2190
|
}
|
|
2182
2191
|
|
|
2183
|
-
/*! @azure/msal-common v9.0.
|
|
2192
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
2184
2193
|
/*
|
|
2185
2194
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2186
2195
|
* Licensed under the MIT License.
|
|
@@ -2195,7 +2204,7 @@ var AuthorityType;
|
|
|
2195
2204
|
AuthorityType[AuthorityType["Dsts"] = 2] = "Dsts";
|
|
2196
2205
|
})(AuthorityType || (AuthorityType = {}));
|
|
2197
2206
|
|
|
2198
|
-
/*! @azure/msal-common v9.0.
|
|
2207
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
2199
2208
|
|
|
2200
2209
|
/*
|
|
2201
2210
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2434,7 +2443,7 @@ var AccountEntity = /** @class */ (function () {
|
|
|
2434
2443
|
return AccountEntity;
|
|
2435
2444
|
}());
|
|
2436
2445
|
|
|
2437
|
-
/*! @azure/msal-common v9.0.
|
|
2446
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
2438
2447
|
|
|
2439
2448
|
/*
|
|
2440
2449
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2486,7 +2495,7 @@ var AuthToken = /** @class */ (function () {
|
|
|
2486
2495
|
return AuthToken;
|
|
2487
2496
|
}());
|
|
2488
2497
|
|
|
2489
|
-
/*! @azure/msal-common v9.0.
|
|
2498
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
2490
2499
|
|
|
2491
2500
|
/*
|
|
2492
2501
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3365,7 +3374,7 @@ var DefaultStorageClass = /** @class */ (function (_super) {
|
|
|
3365
3374
|
return DefaultStorageClass;
|
|
3366
3375
|
}(CacheManager));
|
|
3367
3376
|
|
|
3368
|
-
/*! @azure/msal-common v9.0.
|
|
3377
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
3369
3378
|
|
|
3370
3379
|
/*
|
|
3371
3380
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3459,7 +3468,7 @@ function buildAuthOptions(authOptions) {
|
|
|
3459
3468
|
return __assign({ clientCapabilities: [], azureCloudOptions: DEFAULT_AZURE_CLOUD_OPTIONS, skipAuthorityMetadataCache: false }, authOptions);
|
|
3460
3469
|
}
|
|
3461
3470
|
|
|
3462
|
-
/*! @azure/msal-common v9.0.
|
|
3471
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
3463
3472
|
|
|
3464
3473
|
/*
|
|
3465
3474
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3479,7 +3488,7 @@ var ServerError = /** @class */ (function (_super) {
|
|
|
3479
3488
|
return ServerError;
|
|
3480
3489
|
}(AuthError));
|
|
3481
3490
|
|
|
3482
|
-
/*! @azure/msal-common v9.0.
|
|
3491
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
3483
3492
|
|
|
3484
3493
|
/*
|
|
3485
3494
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3575,7 +3584,7 @@ var ThrottlingUtils = /** @class */ (function () {
|
|
|
3575
3584
|
return ThrottlingUtils;
|
|
3576
3585
|
}());
|
|
3577
3586
|
|
|
3578
|
-
/*! @azure/msal-common v9.0.
|
|
3587
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
3579
3588
|
|
|
3580
3589
|
/*
|
|
3581
3590
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3624,7 +3633,7 @@ var NetworkManager = /** @class */ (function () {
|
|
|
3624
3633
|
return NetworkManager;
|
|
3625
3634
|
}());
|
|
3626
3635
|
|
|
3627
|
-
/*! @azure/msal-common v9.0.
|
|
3636
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
3628
3637
|
/*
|
|
3629
3638
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3630
3639
|
* Licensed under the MIT License.
|
|
@@ -3635,7 +3644,7 @@ var CcsCredentialType;
|
|
|
3635
3644
|
CcsCredentialType["UPN"] = "UPN";
|
|
3636
3645
|
})(CcsCredentialType || (CcsCredentialType = {}));
|
|
3637
3646
|
|
|
3638
|
-
/*! @azure/msal-common v9.0.
|
|
3647
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
3639
3648
|
|
|
3640
3649
|
/*
|
|
3641
3650
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3726,7 +3735,7 @@ var BaseClient = /** @class */ (function () {
|
|
|
3726
3735
|
return BaseClient;
|
|
3727
3736
|
}());
|
|
3728
3737
|
|
|
3729
|
-
/*! @azure/msal-common v9.0.
|
|
3738
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
3730
3739
|
|
|
3731
3740
|
/*
|
|
3732
3741
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3812,7 +3821,7 @@ var RequestValidator = /** @class */ (function () {
|
|
|
3812
3821
|
return RequestValidator;
|
|
3813
3822
|
}());
|
|
3814
3823
|
|
|
3815
|
-
/*! @azure/msal-common v9.0.
|
|
3824
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
3816
3825
|
|
|
3817
3826
|
/*
|
|
3818
3827
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4190,7 +4199,7 @@ var RequestParameterBuilder = /** @class */ (function () {
|
|
|
4190
4199
|
return RequestParameterBuilder;
|
|
4191
4200
|
}());
|
|
4192
4201
|
|
|
4193
|
-
/*! @azure/msal-common v9.0.
|
|
4202
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
4194
4203
|
|
|
4195
4204
|
/*
|
|
4196
4205
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4254,7 +4263,7 @@ var IdTokenEntity = /** @class */ (function (_super) {
|
|
|
4254
4263
|
return IdTokenEntity;
|
|
4255
4264
|
}(CredentialEntity));
|
|
4256
4265
|
|
|
4257
|
-
/*! @azure/msal-common v9.0.
|
|
4266
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
4258
4267
|
/*
|
|
4259
4268
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4260
4269
|
* Licensed under the MIT License.
|
|
@@ -4304,7 +4313,7 @@ var TimeUtils = /** @class */ (function () {
|
|
|
4304
4313
|
return TimeUtils;
|
|
4305
4314
|
}());
|
|
4306
4315
|
|
|
4307
|
-
/*! @azure/msal-common v9.0.
|
|
4316
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
4308
4317
|
|
|
4309
4318
|
/*
|
|
4310
4319
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4418,7 +4427,7 @@ var AccessTokenEntity = /** @class */ (function (_super) {
|
|
|
4418
4427
|
return AccessTokenEntity;
|
|
4419
4428
|
}(CredentialEntity));
|
|
4420
4429
|
|
|
4421
|
-
/*! @azure/msal-common v9.0.
|
|
4430
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
4422
4431
|
|
|
4423
4432
|
/*
|
|
4424
4433
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4485,7 +4494,7 @@ var RefreshTokenEntity = /** @class */ (function (_super) {
|
|
|
4485
4494
|
return RefreshTokenEntity;
|
|
4486
4495
|
}(CredentialEntity));
|
|
4487
4496
|
|
|
4488
|
-
/*! @azure/msal-common v9.0.
|
|
4497
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
4489
4498
|
|
|
4490
4499
|
/*
|
|
4491
4500
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4560,7 +4569,7 @@ var InteractionRequiredAuthError = /** @class */ (function (_super) {
|
|
|
4560
4569
|
return InteractionRequiredAuthError;
|
|
4561
4570
|
}(AuthError));
|
|
4562
4571
|
|
|
4563
|
-
/*! @azure/msal-common v9.0.
|
|
4572
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
4564
4573
|
/*
|
|
4565
4574
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4566
4575
|
* Licensed under the MIT License.
|
|
@@ -4576,7 +4585,7 @@ var CacheRecord = /** @class */ (function () {
|
|
|
4576
4585
|
return CacheRecord;
|
|
4577
4586
|
}());
|
|
4578
4587
|
|
|
4579
|
-
/*! @azure/msal-common v9.0.
|
|
4588
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
4580
4589
|
|
|
4581
4590
|
/*
|
|
4582
4591
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4647,7 +4656,7 @@ var ProtocolUtils = /** @class */ (function () {
|
|
|
4647
4656
|
return ProtocolUtils;
|
|
4648
4657
|
}());
|
|
4649
4658
|
|
|
4650
|
-
/*! @azure/msal-common v9.0.
|
|
4659
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
4651
4660
|
|
|
4652
4661
|
/*
|
|
4653
4662
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4881,7 +4890,7 @@ var UrlString = /** @class */ (function () {
|
|
|
4881
4890
|
return UrlString;
|
|
4882
4891
|
}());
|
|
4883
4892
|
|
|
4884
|
-
/*! @azure/msal-common v9.0.
|
|
4893
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
4885
4894
|
|
|
4886
4895
|
/*
|
|
4887
4896
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4982,7 +4991,7 @@ var PopTokenGenerator = /** @class */ (function () {
|
|
|
4982
4991
|
return PopTokenGenerator;
|
|
4983
4992
|
}());
|
|
4984
4993
|
|
|
4985
|
-
/*! @azure/msal-common v9.0.
|
|
4994
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
4986
4995
|
|
|
4987
4996
|
/*
|
|
4988
4997
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5052,7 +5061,7 @@ var AppMetadataEntity = /** @class */ (function () {
|
|
|
5052
5061
|
return AppMetadataEntity;
|
|
5053
5062
|
}());
|
|
5054
5063
|
|
|
5055
|
-
/*! @azure/msal-common v9.0.
|
|
5064
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
5056
5065
|
/*
|
|
5057
5066
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5058
5067
|
* Licensed under the MIT License.
|
|
@@ -5088,7 +5097,7 @@ var AppMetadataEntity = /** @class */ (function () {
|
|
|
5088
5097
|
return TokenCacheContext;
|
|
5089
5098
|
}());
|
|
5090
5099
|
|
|
5091
|
-
/*! @azure/msal-common v9.0.
|
|
5100
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
5092
5101
|
|
|
5093
5102
|
/*
|
|
5094
5103
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5359,7 +5368,7 @@ var ResponseHandler = /** @class */ (function () {
|
|
|
5359
5368
|
cloudGraphHostName: ((_b = cacheRecord.account) === null || _b === void 0 ? void 0 : _b.cloudGraphHostName) || Constants.EMPTY_STRING,
|
|
5360
5369
|
msGraphHost: ((_c = cacheRecord.account) === null || _c === void 0 ? void 0 : _c.msGraphHost) || Constants.EMPTY_STRING,
|
|
5361
5370
|
code: code,
|
|
5362
|
-
fromNativeBroker: false
|
|
5371
|
+
fromNativeBroker: false,
|
|
5363
5372
|
}];
|
|
5364
5373
|
}
|
|
5365
5374
|
});
|
|
@@ -5368,7 +5377,7 @@ var ResponseHandler = /** @class */ (function () {
|
|
|
5368
5377
|
return ResponseHandler;
|
|
5369
5378
|
}());
|
|
5370
5379
|
|
|
5371
|
-
/*! @azure/msal-common v9.0.
|
|
5380
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
5372
5381
|
|
|
5373
5382
|
/*
|
|
5374
5383
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5379,8 +5388,8 @@ var ResponseHandler = /** @class */ (function () {
|
|
|
5379
5388
|
*/
|
|
5380
5389
|
var AuthorizationCodeClient = /** @class */ (function (_super) {
|
|
5381
5390
|
__extends(AuthorizationCodeClient, _super);
|
|
5382
|
-
function AuthorizationCodeClient(configuration) {
|
|
5383
|
-
var _this = _super.call(this, configuration) || this;
|
|
5391
|
+
function AuthorizationCodeClient(configuration, performanceClient) {
|
|
5392
|
+
var _this = _super.call(this, configuration, performanceClient) || this;
|
|
5384
5393
|
// Flag to indicate if client is for hybrid spa auth code redemption
|
|
5385
5394
|
_this.includeRedirectUri = true;
|
|
5386
5395
|
return _this;
|
|
@@ -5414,26 +5423,47 @@ var AuthorizationCodeClient = /** @class */ (function (_super) {
|
|
|
5414
5423
|
* @param request
|
|
5415
5424
|
*/
|
|
5416
5425
|
AuthorizationCodeClient.prototype.acquireToken = function (request, authCodePayload) {
|
|
5417
|
-
var _a;
|
|
5426
|
+
var _a, _b, _c;
|
|
5418
5427
|
return __awaiter(this, void 0, void 0, function () {
|
|
5419
|
-
var reqTimestamp, response, requestId, responseHandler;
|
|
5420
|
-
|
|
5421
|
-
|
|
5428
|
+
var atsMeasurement, reqTimestamp, response, requestId, httpVerAuthority, responseHandler;
|
|
5429
|
+
var _this = this;
|
|
5430
|
+
return __generator(this, function (_d) {
|
|
5431
|
+
switch (_d.label) {
|
|
5422
5432
|
case 0:
|
|
5423
|
-
this.
|
|
5433
|
+
atsMeasurement = (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.startMeasurement("AuthCodeClientAcquireToken", request.correlationId);
|
|
5434
|
+
this.logger.info("in acquireToken call in auth-code client");
|
|
5424
5435
|
if (!request || StringUtils.isEmpty(request.code)) {
|
|
5425
5436
|
throw ClientAuthError.createTokenRequestCannotBeMadeError();
|
|
5426
5437
|
}
|
|
5427
5438
|
reqTimestamp = TimeUtils.nowSeconds();
|
|
5428
5439
|
return [4 /*yield*/, this.executeTokenRequest(this.authority, request)];
|
|
5429
5440
|
case 1:
|
|
5430
|
-
response =
|
|
5431
|
-
requestId = (
|
|
5441
|
+
response = _d.sent();
|
|
5442
|
+
requestId = (_b = response.headers) === null || _b === void 0 ? void 0 : _b[HeaderNames.X_MS_REQUEST_ID];
|
|
5443
|
+
httpVerAuthority = (_c = response.headers) === null || _c === void 0 ? void 0 : _c[HeaderNames.X_MS_HTTP_VERSION];
|
|
5444
|
+
if (httpVerAuthority) {
|
|
5445
|
+
atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.addStaticFields({
|
|
5446
|
+
httpVerAuthority: httpVerAuthority
|
|
5447
|
+
});
|
|
5448
|
+
}
|
|
5432
5449
|
responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin);
|
|
5433
5450
|
// Validate response. This function throws a server error if an error is returned by the server.
|
|
5434
5451
|
responseHandler.validateTokenResponse(response.body);
|
|
5435
|
-
return [
|
|
5436
|
-
|
|
5452
|
+
return [2 /*return*/, responseHandler.handleServerTokenResponse(response.body, this.authority, reqTimestamp, request, authCodePayload, undefined, undefined, undefined, requestId).then(function (result) {
|
|
5453
|
+
atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.endMeasurement({
|
|
5454
|
+
success: true
|
|
5455
|
+
});
|
|
5456
|
+
return result;
|
|
5457
|
+
})
|
|
5458
|
+
.catch(function (error) {
|
|
5459
|
+
_this.logger.verbose("Error in fetching token in ACC", request.correlationId);
|
|
5460
|
+
atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.endMeasurement({
|
|
5461
|
+
errorCode: error.errorCode,
|
|
5462
|
+
subErrorCode: error.subError,
|
|
5463
|
+
success: false
|
|
5464
|
+
});
|
|
5465
|
+
throw error;
|
|
5466
|
+
})];
|
|
5437
5467
|
}
|
|
5438
5468
|
});
|
|
5439
5469
|
});
|
|
@@ -5821,7 +5851,7 @@ var AuthorizationCodeClient = /** @class */ (function (_super) {
|
|
|
5821
5851
|
return AuthorizationCodeClient;
|
|
5822
5852
|
}(BaseClient));
|
|
5823
5853
|
|
|
5824
|
-
/*! @azure/msal-common v9.0.
|
|
5854
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
5825
5855
|
/*
|
|
5826
5856
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5827
5857
|
* Licensed under the MIT License.
|
|
@@ -5932,6 +5962,11 @@ exports.PerformanceEvents = void 0;
|
|
|
5932
5962
|
* Time taken for acquiring cached refresh token
|
|
5933
5963
|
*/
|
|
5934
5964
|
PerformanceEvents["RefreshTokenClientAcquireTokenWithCachedRefreshToken"] = "refreshTokenClientAcquireTokenWithCachedRefreshToken";
|
|
5965
|
+
PerformanceEvents["GetEndpointMetadataFromNetwork"] = "getEndpointMetadataFromNetwork";
|
|
5966
|
+
PerformanceEvents["GetCloudDiscoveryMetadataFromNetworkMeasurement"] = "getCloudDiscoveryMetadataFromNetworkMeasurement";
|
|
5967
|
+
PerformanceEvents["HandleRedirectPromiseMeasurement"] = "handleRedirectPromiseMeasurement";
|
|
5968
|
+
PerformanceEvents["UpdateCloudDiscoveryMetadataMeasurement"] = "updateCloudDiscoveryMetadataMeasurement";
|
|
5969
|
+
PerformanceEvents["UsernamePasswordClientAcquireToken"] = "usernamePasswordClientAcquireToken";
|
|
5935
5970
|
})(exports.PerformanceEvents || (exports.PerformanceEvents = {}));
|
|
5936
5971
|
/**
|
|
5937
5972
|
* State of the performance event.
|
|
@@ -5946,7 +5981,7 @@ var PerformanceEventStatus;
|
|
|
5946
5981
|
PerformanceEventStatus[PerformanceEventStatus["Completed"] = 2] = "Completed";
|
|
5947
5982
|
})(PerformanceEventStatus || (PerformanceEventStatus = {}));
|
|
5948
5983
|
|
|
5949
|
-
/*! @azure/msal-common v9.0.
|
|
5984
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
5950
5985
|
|
|
5951
5986
|
/*
|
|
5952
5987
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5961,23 +5996,29 @@ var RefreshTokenClient = /** @class */ (function (_super) {
|
|
|
5961
5996
|
return _super.call(this, configuration, performanceClient) || this;
|
|
5962
5997
|
}
|
|
5963
5998
|
RefreshTokenClient.prototype.acquireToken = function (request) {
|
|
5964
|
-
var _a, _b, _c;
|
|
5999
|
+
var _a, _b, _c, _d;
|
|
5965
6000
|
return __awaiter(this, void 0, void 0, function () {
|
|
5966
|
-
var atsMeasurement, reqTimestamp, response, requestId, responseHandler;
|
|
6001
|
+
var atsMeasurement, reqTimestamp, response, httpVerToken, requestId, responseHandler;
|
|
5967
6002
|
var _this = this;
|
|
5968
|
-
return __generator(this, function (
|
|
5969
|
-
switch (
|
|
6003
|
+
return __generator(this, function (_e) {
|
|
6004
|
+
switch (_e.label) {
|
|
5970
6005
|
case 0:
|
|
5971
6006
|
atsMeasurement = (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.startMeasurement(exports.PerformanceEvents.RefreshTokenClientAcquireToken, request.correlationId);
|
|
5972
6007
|
this.logger.verbose("RefreshTokenClientAcquireToken called", request.correlationId);
|
|
5973
6008
|
reqTimestamp = TimeUtils.nowSeconds();
|
|
5974
6009
|
return [4 /*yield*/, this.executeTokenRequest(request, this.authority)];
|
|
5975
6010
|
case 1:
|
|
5976
|
-
response =
|
|
6011
|
+
response = _e.sent();
|
|
6012
|
+
httpVerToken = (_b = response.headers) === null || _b === void 0 ? void 0 : _b[HeaderNames.X_MS_HTTP_VERSION];
|
|
5977
6013
|
atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.addStaticFields({
|
|
5978
|
-
refreshTokenSize: ((
|
|
6014
|
+
refreshTokenSize: ((_c = response.body.refresh_token) === null || _c === void 0 ? void 0 : _c.length) || 0,
|
|
5979
6015
|
});
|
|
5980
|
-
|
|
6016
|
+
if (httpVerToken) {
|
|
6017
|
+
atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.addStaticFields({
|
|
6018
|
+
httpVerToken: httpVerToken,
|
|
6019
|
+
});
|
|
6020
|
+
}
|
|
6021
|
+
requestId = (_d = response.headers) === null || _d === void 0 ? void 0 : _d[HeaderNames.X_MS_REQUEST_ID];
|
|
5981
6022
|
responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin);
|
|
5982
6023
|
responseHandler.validateTokenResponse(response.body);
|
|
5983
6024
|
return [2 /*return*/, responseHandler.handleServerTokenResponse(response.body, this.authority, reqTimestamp, request, undefined, undefined, true, request.forceCache, requestId).then(function (result) {
|
|
@@ -6211,7 +6252,7 @@ var RefreshTokenClient = /** @class */ (function (_super) {
|
|
|
6211
6252
|
return RefreshTokenClient;
|
|
6212
6253
|
}(BaseClient));
|
|
6213
6254
|
|
|
6214
|
-
/*! @azure/msal-common v9.0.
|
|
6255
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
6215
6256
|
|
|
6216
6257
|
/*
|
|
6217
6258
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6335,7 +6376,7 @@ var SilentFlowClient = /** @class */ (function (_super) {
|
|
|
6335
6376
|
return SilentFlowClient;
|
|
6336
6377
|
}(BaseClient));
|
|
6337
6378
|
|
|
6338
|
-
/*! @azure/msal-common v9.0.
|
|
6379
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
6339
6380
|
/*
|
|
6340
6381
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6341
6382
|
* Licensed under the MIT License.
|
|
@@ -6347,7 +6388,7 @@ function isOpenIdConfigResponse(response) {
|
|
|
6347
6388
|
response.hasOwnProperty("jwks_uri"));
|
|
6348
6389
|
}
|
|
6349
6390
|
|
|
6350
|
-
/*! @azure/msal-common v9.0.
|
|
6391
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
6351
6392
|
/*
|
|
6352
6393
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6353
6394
|
* Licensed under the MIT License.
|
|
@@ -6356,7 +6397,7 @@ var rawMetdataJSON = { "endpointMetadata": { "https://login.microsoftonline.com/
|
|
|
6356
6397
|
var EndpointMetadata = rawMetdataJSON.endpointMetadata;
|
|
6357
6398
|
var InstanceDiscoveryMetadata = rawMetdataJSON.instanceDiscoveryMetadata;
|
|
6358
6399
|
|
|
6359
|
-
/*! @azure/msal-common v9.0.
|
|
6400
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
6360
6401
|
/*
|
|
6361
6402
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6362
6403
|
* Licensed under the MIT License.
|
|
@@ -6370,7 +6411,7 @@ exports.ProtocolMode = void 0;
|
|
|
6370
6411
|
ProtocolMode["OIDC"] = "OIDC";
|
|
6371
6412
|
})(exports.ProtocolMode || (exports.ProtocolMode = {}));
|
|
6372
6413
|
|
|
6373
|
-
/*! @azure/msal-common v9.0.
|
|
6414
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
6374
6415
|
|
|
6375
6416
|
/*
|
|
6376
6417
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6447,7 +6488,7 @@ var AuthorityMetadataEntity = /** @class */ (function () {
|
|
|
6447
6488
|
return AuthorityMetadataEntity;
|
|
6448
6489
|
}());
|
|
6449
6490
|
|
|
6450
|
-
/*! @azure/msal-common v9.0.
|
|
6491
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
6451
6492
|
/*
|
|
6452
6493
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6453
6494
|
* Licensed under the MIT License.
|
|
@@ -6457,7 +6498,7 @@ function isCloudInstanceDiscoveryResponse(response) {
|
|
|
6457
6498
|
response.hasOwnProperty("metadata"));
|
|
6458
6499
|
}
|
|
6459
6500
|
|
|
6460
|
-
/*! @azure/msal-common v9.0.
|
|
6501
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
6461
6502
|
/*
|
|
6462
6503
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6463
6504
|
* Licensed under the MIT License.
|
|
@@ -6467,7 +6508,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
|
|
|
6467
6508
|
response.hasOwnProperty("error_description"));
|
|
6468
6509
|
}
|
|
6469
6510
|
|
|
6470
|
-
/*! @azure/msal-common v9.0.
|
|
6511
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
6471
6512
|
|
|
6472
6513
|
/*
|
|
6473
6514
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6589,7 +6630,7 @@ var RegionDiscovery = /** @class */ (function () {
|
|
|
6589
6630
|
return RegionDiscovery;
|
|
6590
6631
|
}());
|
|
6591
6632
|
|
|
6592
|
-
/*! @azure/msal-common v9.0.
|
|
6633
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
6593
6634
|
|
|
6594
6635
|
/*
|
|
6595
6636
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7311,7 +7352,7 @@ var Authority = /** @class */ (function () {
|
|
|
7311
7352
|
return Authority;
|
|
7312
7353
|
}());
|
|
7313
7354
|
|
|
7314
|
-
/*! @azure/msal-common v9.0.
|
|
7355
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
7315
7356
|
|
|
7316
7357
|
/*
|
|
7317
7358
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7372,7 +7413,7 @@ var AuthorityFactory = /** @class */ (function () {
|
|
|
7372
7413
|
return AuthorityFactory;
|
|
7373
7414
|
}());
|
|
7374
7415
|
|
|
7375
|
-
/*! @azure/msal-common v9.0.
|
|
7416
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
7376
7417
|
|
|
7377
7418
|
/*
|
|
7378
7419
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7403,7 +7444,7 @@ var ServerTelemetryEntity = /** @class */ (function () {
|
|
|
7403
7444
|
return ServerTelemetryEntity;
|
|
7404
7445
|
}());
|
|
7405
7446
|
|
|
7406
|
-
/*! @azure/msal-common v9.0.
|
|
7447
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
7407
7448
|
|
|
7408
7449
|
/*
|
|
7409
7450
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7431,7 +7472,7 @@ var ThrottlingEntity = /** @class */ (function () {
|
|
|
7431
7472
|
return ThrottlingEntity;
|
|
7432
7473
|
}());
|
|
7433
7474
|
|
|
7434
|
-
/*! @azure/msal-common v9.0.
|
|
7475
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
7435
7476
|
|
|
7436
7477
|
/*
|
|
7437
7478
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7448,7 +7489,7 @@ var StubbedNetworkModule = {
|
|
|
7448
7489
|
}
|
|
7449
7490
|
};
|
|
7450
7491
|
|
|
7451
|
-
/*! @azure/msal-common v9.0.
|
|
7492
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
7452
7493
|
|
|
7453
7494
|
/*
|
|
7454
7495
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7493,7 +7534,7 @@ var JoseHeaderError = /** @class */ (function (_super) {
|
|
|
7493
7534
|
return JoseHeaderError;
|
|
7494
7535
|
}(AuthError));
|
|
7495
7536
|
|
|
7496
|
-
/*! @azure/msal-common v9.0.
|
|
7537
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
7497
7538
|
|
|
7498
7539
|
/*
|
|
7499
7540
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7523,8 +7564,8 @@ var JoseHeader = /** @class */ (function () {
|
|
|
7523
7564
|
throw JoseHeaderError.createMissingAlgError();
|
|
7524
7565
|
}
|
|
7525
7566
|
var shrHeader = new JoseHeader({
|
|
7526
|
-
// Access Token PoP headers must have type
|
|
7527
|
-
typ: shrHeaderOptions.typ || JsonTypes.
|
|
7567
|
+
// Access Token PoP headers must have type pop, but the type header can be overriden for special cases
|
|
7568
|
+
typ: shrHeaderOptions.typ || JsonTypes.Pop,
|
|
7528
7569
|
kid: shrHeaderOptions.kid,
|
|
7529
7570
|
alg: shrHeaderOptions.alg
|
|
7530
7571
|
});
|
|
@@ -7533,7 +7574,7 @@ var JoseHeader = /** @class */ (function () {
|
|
|
7533
7574
|
return JoseHeader;
|
|
7534
7575
|
}());
|
|
7535
7576
|
|
|
7536
|
-
/*! @azure/msal-common v9.0.
|
|
7577
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
7537
7578
|
|
|
7538
7579
|
/*
|
|
7539
7580
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7592,7 +7633,7 @@ var AuthenticationHeaderParser = /** @class */ (function () {
|
|
|
7592
7633
|
return AuthenticationHeaderParser;
|
|
7593
7634
|
}());
|
|
7594
7635
|
|
|
7595
|
-
/*! @azure/msal-common v9.0.
|
|
7636
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
7596
7637
|
|
|
7597
7638
|
/*
|
|
7598
7639
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7754,7 +7795,7 @@ var ServerTelemetryManager = /** @class */ (function () {
|
|
|
7754
7795
|
return ServerTelemetryManager;
|
|
7755
7796
|
}());
|
|
7756
7797
|
|
|
7757
|
-
/*! @azure/msal-common v9.0.
|
|
7798
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
7758
7799
|
|
|
7759
7800
|
/*
|
|
7760
7801
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7800,7 +7841,7 @@ var PerformanceClient = /** @class */ (function () {
|
|
|
7800
7841
|
this.logger.info("PerformanceClient: No correlation id provided for " + measureName + ", generating", eventCorrelationId);
|
|
7801
7842
|
}
|
|
7802
7843
|
this.logger.trace("PerformanceClient: Performance measurement started for " + measureName, eventCorrelationId);
|
|
7803
|
-
var performanceMeasurement = this.
|
|
7844
|
+
var performanceMeasurement = this.startPerformanceMeasurement(measureName, eventCorrelationId);
|
|
7804
7845
|
performanceMeasurement.startMeasurement();
|
|
7805
7846
|
var inProgressEvent = {
|
|
7806
7847
|
eventId: this.generateId(),
|
|
@@ -8049,7 +8090,7 @@ var PerformanceClient = /** @class */ (function () {
|
|
|
8049
8090
|
return PerformanceClient;
|
|
8050
8091
|
}());
|
|
8051
8092
|
|
|
8052
|
-
/*! @azure/msal-common v9.0.
|
|
8093
|
+
/*! @azure/msal-common v9.0.3 2023-03-10 */
|
|
8053
8094
|
|
|
8054
8095
|
/*
|
|
8055
8096
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8075,7 +8116,7 @@ var StubPerformanceClient = /** @class */ (function (_super) {
|
|
|
8075
8116
|
StubPerformanceClient.prototype.generateId = function () {
|
|
8076
8117
|
return "callback-id";
|
|
8077
8118
|
};
|
|
8078
|
-
StubPerformanceClient.prototype.
|
|
8119
|
+
StubPerformanceClient.prototype.startPerformanceMeasurement = function () {
|
|
8079
8120
|
return new StubPerformanceMeasurement();
|
|
8080
8121
|
};
|
|
8081
8122
|
return StubPerformanceClient;
|
|
@@ -9321,17 +9362,17 @@ var BrowserCacheManager = /** @class */ (function (_super) {
|
|
|
9321
9362
|
var activeAccountValueFilters = this.getItem(activeAccountKeyFilters);
|
|
9322
9363
|
if (!activeAccountValueFilters) {
|
|
9323
9364
|
// if new active account cache type isn't found, it's an old version, so look for that instead
|
|
9324
|
-
this.logger.trace("No active account filters cache schema found, looking for legacy schema");
|
|
9365
|
+
this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema");
|
|
9325
9366
|
var activeAccountKeyLocal = this.generateCacheKey(PersistentCacheKeys.ACTIVE_ACCOUNT);
|
|
9326
9367
|
var activeAccountValueLocal = this.getItem(activeAccountKeyLocal);
|
|
9327
9368
|
if (!activeAccountValueLocal) {
|
|
9328
|
-
this.logger.trace("No active account found");
|
|
9369
|
+
this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found");
|
|
9329
9370
|
return null;
|
|
9330
9371
|
}
|
|
9331
9372
|
var activeAccount = this.getAccountInfoByFilter({ localAccountId: activeAccountValueLocal })[0] || null;
|
|
9332
9373
|
if (activeAccount) {
|
|
9333
|
-
this.logger.trace("Legacy active account cache schema found");
|
|
9334
|
-
this.logger.trace("Adding active account filters cache schema");
|
|
9374
|
+
this.logger.trace("BrowserCacheManager.getActiveAccount: Legacy active account cache schema found");
|
|
9375
|
+
this.logger.trace("BrowserCacheManager.getActiveAccount: Adding active account filters cache schema");
|
|
9335
9376
|
this.setActiveAccount(activeAccount);
|
|
9336
9377
|
return activeAccount;
|
|
9337
9378
|
}
|
|
@@ -9339,13 +9380,13 @@ var BrowserCacheManager = /** @class */ (function (_super) {
|
|
|
9339
9380
|
}
|
|
9340
9381
|
var activeAccountValueObj = this.validateAndParseJson(activeAccountValueFilters);
|
|
9341
9382
|
if (activeAccountValueObj) {
|
|
9342
|
-
this.logger.trace("Active account filters schema found");
|
|
9383
|
+
this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found");
|
|
9343
9384
|
return this.getAccountInfoByFilter({
|
|
9344
9385
|
homeAccountId: activeAccountValueObj.homeAccountId,
|
|
9345
9386
|
localAccountId: activeAccountValueObj.localAccountId
|
|
9346
9387
|
})[0] || null;
|
|
9347
9388
|
}
|
|
9348
|
-
this.logger.trace("No active account found");
|
|
9389
|
+
this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found");
|
|
9349
9390
|
return null;
|
|
9350
9391
|
};
|
|
9351
9392
|
/**
|
|
@@ -9376,6 +9417,7 @@ var BrowserCacheManager = /** @class */ (function (_super) {
|
|
|
9376
9417
|
*/
|
|
9377
9418
|
BrowserCacheManager.prototype.getAccountInfoByFilter = function (accountFilter) {
|
|
9378
9419
|
var allAccounts = this.getAllAccounts();
|
|
9420
|
+
this.logger.trace("BrowserCacheManager.getAccountInfoByFilter: total " + allAccounts.length + " accounts found");
|
|
9379
9421
|
return allAccounts.filter(function (accountObj) {
|
|
9380
9422
|
if (accountFilter.username && accountFilter.username.toLowerCase() !== accountObj.username.toLowerCase()) {
|
|
9381
9423
|
return false;
|
|
@@ -9938,7 +9980,7 @@ var DEFAULT_BROWSER_CACHE_MANAGER = function (clientId, logger) {
|
|
|
9938
9980
|
|
|
9939
9981
|
/* eslint-disable header/header */
|
|
9940
9982
|
var name = "@azure/msal-browser";
|
|
9941
|
-
var version = "2.32.
|
|
9983
|
+
var version = "2.32.3";
|
|
9942
9984
|
|
|
9943
9985
|
/*
|
|
9944
9986
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -10642,7 +10684,7 @@ var StandardInteractionClient = /** @class */ (function (_super) {
|
|
|
10642
10684
|
*/
|
|
10643
10685
|
StandardInteractionClient.prototype.getClientConfiguration = function (serverTelemetryManager, requestAuthority, requestAzureCloudOptions) {
|
|
10644
10686
|
return __awaiter$1(this, void 0, void 0, function () {
|
|
10645
|
-
var discoveredAuthority;
|
|
10687
|
+
var discoveredAuthority, logger;
|
|
10646
10688
|
return __generator$1(this, function (_a) {
|
|
10647
10689
|
switch (_a.label) {
|
|
10648
10690
|
case 0:
|
|
@@ -10650,6 +10692,7 @@ var StandardInteractionClient = /** @class */ (function (_super) {
|
|
|
10650
10692
|
return [4 /*yield*/, this.getDiscoveredAuthority(requestAuthority, requestAzureCloudOptions)];
|
|
10651
10693
|
case 1:
|
|
10652
10694
|
discoveredAuthority = _a.sent();
|
|
10695
|
+
logger = this.config.system.loggerOptions;
|
|
10653
10696
|
return [2 /*return*/, {
|
|
10654
10697
|
authOptions: {
|
|
10655
10698
|
clientId: this.config.auth.clientId,
|
|
@@ -10661,9 +10704,9 @@ var StandardInteractionClient = /** @class */ (function (_super) {
|
|
|
10661
10704
|
preventCorsPreflight: true
|
|
10662
10705
|
},
|
|
10663
10706
|
loggerOptions: {
|
|
10664
|
-
loggerCallback:
|
|
10665
|
-
piiLoggingEnabled:
|
|
10666
|
-
logLevel:
|
|
10707
|
+
loggerCallback: logger.loggerCallback,
|
|
10708
|
+
piiLoggingEnabled: logger.piiLoggingEnabled,
|
|
10709
|
+
logLevel: logger.logLevel,
|
|
10667
10710
|
correlationId: this.correlationId
|
|
10668
10711
|
},
|
|
10669
10712
|
cryptoInterface: this.browserCrypto,
|
|
@@ -10707,13 +10750,14 @@ var StandardInteractionClient = /** @class */ (function (_super) {
|
|
|
10707
10750
|
* @param requestCorrelationId
|
|
10708
10751
|
*/
|
|
10709
10752
|
StandardInteractionClient.prototype.getDiscoveredAuthority = function (requestAuthority, requestAzureCloudOptions) {
|
|
10753
|
+
var _a;
|
|
10710
10754
|
return __awaiter$1(this, void 0, void 0, function () {
|
|
10711
10755
|
var getAuthorityMeasurement, authorityOptions, userAuthority, builtAuthority;
|
|
10712
|
-
return __generator$1(this, function (
|
|
10713
|
-
switch (
|
|
10756
|
+
return __generator$1(this, function (_b) {
|
|
10757
|
+
switch (_b.label) {
|
|
10714
10758
|
case 0:
|
|
10715
10759
|
this.logger.verbose("getDiscoveredAuthority called", this.correlationId);
|
|
10716
|
-
getAuthorityMeasurement = this.performanceClient.startMeasurement(exports.PerformanceEvents.StandardInteractionClientGetDiscoveredAuthority, this.correlationId);
|
|
10760
|
+
getAuthorityMeasurement = (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.startMeasurement(exports.PerformanceEvents.StandardInteractionClientGetDiscoveredAuthority, this.correlationId);
|
|
10717
10761
|
authorityOptions = {
|
|
10718
10762
|
protocolMode: this.config.auth.protocolMode,
|
|
10719
10763
|
knownAuthorities: this.config.auth.knownAuthorities,
|
|
@@ -10727,7 +10771,7 @@ var StandardInteractionClient = /** @class */ (function (_super) {
|
|
|
10727
10771
|
return [4 /*yield*/, AuthorityFactory.createDiscoveredInstance(builtAuthority, this.config.system.networkClient, this.browserStorage, authorityOptions, this.logger)
|
|
10728
10772
|
.then(function (result) {
|
|
10729
10773
|
getAuthorityMeasurement.endMeasurement({
|
|
10730
|
-
success: true
|
|
10774
|
+
success: true,
|
|
10731
10775
|
});
|
|
10732
10776
|
return result;
|
|
10733
10777
|
})
|
|
@@ -10739,7 +10783,7 @@ var StandardInteractionClient = /** @class */ (function (_super) {
|
|
|
10739
10783
|
});
|
|
10740
10784
|
throw error;
|
|
10741
10785
|
})];
|
|
10742
|
-
case 1: return [2 /*return*/,
|
|
10786
|
+
case 1: return [2 /*return*/, _b.sent()];
|
|
10743
10787
|
}
|
|
10744
10788
|
});
|
|
10745
10789
|
});
|
|
@@ -12911,7 +12955,9 @@ function buildConfiguration(_a, isBrowserEnvironment) {
|
|
|
12911
12955
|
// Default logger options for browser
|
|
12912
12956
|
var DEFAULT_LOGGER_OPTIONS = {
|
|
12913
12957
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
12914
|
-
loggerCallback: function () {
|
|
12958
|
+
loggerCallback: function () {
|
|
12959
|
+
// allow users to not set logger call back
|
|
12960
|
+
},
|
|
12915
12961
|
logLevel: exports.LogLevel.Info,
|
|
12916
12962
|
piiLoggingEnabled: false
|
|
12917
12963
|
};
|
|
@@ -12922,6 +12968,7 @@ function buildConfiguration(_a, isBrowserEnvironment) {
|
|
|
12922
12968
|
useMsrCrypto: false,
|
|
12923
12969
|
entropy: undefined
|
|
12924
12970
|
} });
|
|
12971
|
+
var providedSystemOptions = __assign$1(__assign$1({}, userInputSystem), { loggerOptions: (userInputSystem === null || userInputSystem === void 0 ? void 0 : userInputSystem.loggerOptions) || DEFAULT_LOGGER_OPTIONS });
|
|
12925
12972
|
var DEFAULT_TELEMETRY_OPTIONS = {
|
|
12926
12973
|
application: {
|
|
12927
12974
|
appName: Constants.EMPTY_STRING,
|
|
@@ -12931,7 +12978,7 @@ function buildConfiguration(_a, isBrowserEnvironment) {
|
|
|
12931
12978
|
var overlayedConfig = {
|
|
12932
12979
|
auth: __assign$1(__assign$1({}, DEFAULT_AUTH_OPTIONS), userInputAuth),
|
|
12933
12980
|
cache: __assign$1(__assign$1({}, DEFAULT_CACHE_OPTIONS), userInputCache),
|
|
12934
|
-
system: __assign$1(__assign$1({}, DEFAULT_BROWSER_SYSTEM_OPTIONS),
|
|
12981
|
+
system: __assign$1(__assign$1({}, DEFAULT_BROWSER_SYSTEM_OPTIONS), providedSystemOptions),
|
|
12935
12982
|
telemetry: __assign$1(__assign$1({}, DEFAULT_TELEMETRY_OPTIONS), userInputTelemetry)
|
|
12936
12983
|
};
|
|
12937
12984
|
return overlayedConfig;
|
|
@@ -13422,27 +13469,6 @@ var EventHandler = /** @class */ (function () {
|
|
|
13422
13469
|
return EventHandler;
|
|
13423
13470
|
}());
|
|
13424
13471
|
|
|
13425
|
-
/*
|
|
13426
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
13427
|
-
* Licensed under the MIT License.
|
|
13428
|
-
*/
|
|
13429
|
-
|
|
13430
|
-
var internals = /*#__PURE__*/Object.freeze({
|
|
13431
|
-
__proto__: null,
|
|
13432
|
-
BrowserCacheManager: BrowserCacheManager,
|
|
13433
|
-
StandardInteractionClient: StandardInteractionClient,
|
|
13434
|
-
RedirectClient: RedirectClient,
|
|
13435
|
-
PopupClient: PopupClient,
|
|
13436
|
-
SilentIframeClient: SilentIframeClient,
|
|
13437
|
-
SilentCacheClient: SilentCacheClient,
|
|
13438
|
-
SilentRefreshClient: SilentRefreshClient,
|
|
13439
|
-
RedirectHandler: RedirectHandler,
|
|
13440
|
-
EventHandler: EventHandler,
|
|
13441
|
-
NativeMessageHandler: NativeMessageHandler,
|
|
13442
|
-
BrowserConstants: BrowserConstants,
|
|
13443
|
-
get TemporaryCacheKeys () { return TemporaryCacheKeys; }
|
|
13444
|
-
});
|
|
13445
|
-
|
|
13446
13472
|
/*
|
|
13447
13473
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
13448
13474
|
* Licensed under the MIT License.
|
|
@@ -14977,6 +15003,29 @@ var CryptoOps = /** @class */ (function () {
|
|
|
14977
15003
|
return CryptoOps;
|
|
14978
15004
|
}());
|
|
14979
15005
|
|
|
15006
|
+
/*
|
|
15007
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
15008
|
+
* Licensed under the MIT License.
|
|
15009
|
+
*/
|
|
15010
|
+
|
|
15011
|
+
var internals = /*#__PURE__*/Object.freeze({
|
|
15012
|
+
__proto__: null,
|
|
15013
|
+
BrowserCacheManager: BrowserCacheManager,
|
|
15014
|
+
StandardInteractionClient: StandardInteractionClient,
|
|
15015
|
+
RedirectClient: RedirectClient,
|
|
15016
|
+
PopupClient: PopupClient,
|
|
15017
|
+
SilentIframeClient: SilentIframeClient,
|
|
15018
|
+
SilentCacheClient: SilentCacheClient,
|
|
15019
|
+
SilentRefreshClient: SilentRefreshClient,
|
|
15020
|
+
RedirectHandler: RedirectHandler,
|
|
15021
|
+
EventHandler: EventHandler,
|
|
15022
|
+
NativeMessageHandler: NativeMessageHandler,
|
|
15023
|
+
BrowserConstants: BrowserConstants,
|
|
15024
|
+
get TemporaryCacheKeys () { return TemporaryCacheKeys; },
|
|
15025
|
+
CryptoOps: CryptoOps,
|
|
15026
|
+
NativeAuthError: NativeAuthError
|
|
15027
|
+
});
|
|
15028
|
+
|
|
14980
15029
|
/*
|
|
14981
15030
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
14982
15031
|
* Licensed under the MIT License.
|
|
@@ -15356,7 +15405,7 @@ var BrowserPerformanceClient = /** @class */ (function (_super) {
|
|
|
15356
15405
|
_this.guidGenerator = new GuidGenerator(_this.browserCrypto);
|
|
15357
15406
|
return _this;
|
|
15358
15407
|
}
|
|
15359
|
-
BrowserPerformanceClient.prototype.
|
|
15408
|
+
BrowserPerformanceClient.prototype.startPerformanceMeasurement = function (measureName, correlationId) {
|
|
15360
15409
|
return new BrowserPerformanceMeasurement(measureName, correlationId);
|
|
15361
15410
|
};
|
|
15362
15411
|
BrowserPerformanceClient.prototype.generateId = function () {
|
|
@@ -16461,7 +16510,8 @@ var PublicClientApplication = /** @class */ (function (_super) {
|
|
|
16461
16510
|
success: true,
|
|
16462
16511
|
fromCache: result.fromCache,
|
|
16463
16512
|
isNativeBroker: result.fromNativeBroker,
|
|
16464
|
-
|
|
16513
|
+
cacheLookupPolicy: request.cacheLookupPolicy,
|
|
16514
|
+
requestId: result.requestId,
|
|
16465
16515
|
});
|
|
16466
16516
|
atsMeasurement.flushMeasurement();
|
|
16467
16517
|
return result;
|
|
@@ -16499,13 +16549,13 @@ var PublicClientApplication = /** @class */ (function (_super) {
|
|
|
16499
16549
|
*/
|
|
16500
16550
|
PublicClientApplication.prototype.acquireTokenSilentAsync = function (request, account) {
|
|
16501
16551
|
return __awaiter$1(this, void 0, void 0, function () {
|
|
16502
|
-
var
|
|
16552
|
+
var atsAsyncMeasurement, result, silentRequest, silentCacheClient, silentRequest_1, requestWithCLP_1;
|
|
16503
16553
|
var _this = this;
|
|
16504
16554
|
return __generator$1(this, function (_a) {
|
|
16505
16555
|
switch (_a.label) {
|
|
16506
16556
|
case 0:
|
|
16507
16557
|
this.eventHandler.emitEvent(exports.EventType.ACQUIRE_TOKEN_START, exports.InteractionType.Silent, request);
|
|
16508
|
-
|
|
16558
|
+
atsAsyncMeasurement = this.performanceClient.startMeasurement(exports.PerformanceEvents.AcquireTokenSilentAsync, request.correlationId);
|
|
16509
16559
|
if (!(NativeMessageHandler.isNativeAvailable(this.config, this.logger, this.nativeExtensionProvider, request.authenticationScheme) && account.nativeAccountId)) return [3 /*break*/, 1];
|
|
16510
16560
|
this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform");
|
|
16511
16561
|
silentRequest = __assign$1(__assign$1({}, request), { account: account });
|
|
@@ -16558,7 +16608,7 @@ var PublicClientApplication = /** @class */ (function (_super) {
|
|
|
16558
16608
|
_a.label = 3;
|
|
16559
16609
|
case 3: return [2 /*return*/, result.then(function (response) {
|
|
16560
16610
|
_this.eventHandler.emitEvent(exports.EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Silent, response);
|
|
16561
|
-
|
|
16611
|
+
atsAsyncMeasurement.endMeasurement({
|
|
16562
16612
|
success: true,
|
|
16563
16613
|
fromCache: response.fromCache,
|
|
16564
16614
|
isNativeBroker: response.fromNativeBroker,
|
|
@@ -16567,7 +16617,7 @@ var PublicClientApplication = /** @class */ (function (_super) {
|
|
|
16567
16617
|
return response;
|
|
16568
16618
|
}).catch(function (tokenRenewalError) {
|
|
16569
16619
|
_this.eventHandler.emitEvent(exports.EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Silent, null, tokenRenewalError);
|
|
16570
|
-
|
|
16620
|
+
atsAsyncMeasurement.endMeasurement({
|
|
16571
16621
|
errorCode: tokenRenewalError.errorCode,
|
|
16572
16622
|
subErrorCode: tokenRenewalError.subError,
|
|
16573
16623
|
success: false
|