@azure/msal-browser 2.30.0 → 2.32.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/README.md +1 -2
- package/dist/_virtual/_tslib.js +1 -1
- package/dist/app/ClientApplication.d.ts.map +1 -1
- package/dist/app/ClientApplication.js +13 -9
- package/dist/app/ClientApplication.js.map +1 -1
- package/dist/app/IPublicClientApplication.js +1 -1
- package/dist/app/PublicClientApplication.d.ts.map +1 -1
- package/dist/app/PublicClientApplication.js +8 -6
- package/dist/app/PublicClientApplication.js.map +1 -1
- package/dist/broker/nativeBroker/NativeMessageHandler.d.ts +11 -0
- package/dist/broker/nativeBroker/NativeMessageHandler.d.ts.map +1 -1
- package/dist/broker/nativeBroker/NativeMessageHandler.js +16 -1
- package/dist/broker/nativeBroker/NativeMessageHandler.js.map +1 -1
- package/dist/cache/AsyncMemoryStorage.js +1 -1
- package/dist/cache/BrowserCacheManager.js +1 -1
- package/dist/cache/BrowserStorage.js +1 -1
- package/dist/cache/CryptoKeyStore.js +1 -1
- package/dist/cache/DatabaseStorage.js +1 -1
- package/dist/cache/MemoryStorage.js +1 -1
- package/dist/cache/TokenCache.js +2 -2
- package/dist/cache/TokenCache.js.map +1 -1
- package/dist/config/Configuration.js +1 -1
- package/dist/crypto/BrowserCrypto.js +1 -1
- package/dist/crypto/CryptoOps.js +1 -1
- package/dist/crypto/GuidGenerator.js +1 -1
- package/dist/crypto/ModernBrowserCrypto.js +1 -1
- package/dist/crypto/MsBrowserCrypto.js +1 -1
- package/dist/crypto/MsrBrowserCrypto.js +1 -1
- package/dist/crypto/PkceGenerator.js +1 -1
- package/dist/crypto/SignedHttpRequest.js +1 -1
- package/dist/encode/Base64Decode.js +1 -1
- package/dist/encode/Base64Encode.js +1 -1
- package/dist/error/BrowserAuthError.js +1 -1
- package/dist/error/BrowserConfigurationAuthError.js +1 -1
- package/dist/error/NativeAuthError.js +1 -1
- package/dist/event/EventHandler.js +1 -1
- package/dist/event/EventMessage.js +1 -1
- package/dist/event/EventType.js +1 -1
- package/dist/index.cjs.js +203 -120
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/interaction_client/BaseInteractionClient.js +3 -3
- package/dist/interaction_client/BaseInteractionClient.js.map +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.js +1 -1
- package/dist/interaction_client/NativeInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/NativeInteractionClient.js +28 -7
- package/dist/interaction_client/NativeInteractionClient.js.map +1 -1
- package/dist/interaction_client/PopupClient.js +1 -1
- package/dist/interaction_client/RedirectClient.js +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.js +1 -1
- package/dist/interaction_client/SilentCacheClient.js +1 -1
- package/dist/interaction_client/SilentIframeClient.js +1 -1
- package/dist/interaction_client/SilentRefreshClient.js +1 -1
- package/dist/interaction_client/StandardInteractionClient.js +2 -2
- package/dist/interaction_client/StandardInteractionClient.js.map +1 -1
- package/dist/interaction_handler/InteractionHandler.js +2 -2
- package/dist/interaction_handler/InteractionHandler.js.map +1 -1
- package/dist/interaction_handler/RedirectHandler.js +1 -1
- package/dist/interaction_handler/SilentHandler.js +1 -1
- package/dist/internals.js +1 -1
- package/dist/navigation/NavigationClient.js +1 -1
- package/dist/network/FetchClient.js +1 -1
- package/dist/network/XhrClient.js +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.js +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.js +1 -1
- package/dist/utils/BrowserConstants.js +1 -1
- package/dist/utils/BrowserProtocolUtils.js +1 -1
- package/dist/utils/BrowserStringUtils.js +1 -1
- package/dist/utils/BrowserUtils.js +1 -1
- package/dist/utils/MathUtils.js +1 -1
- package/lib/msal-browser.js +203 -120
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +44 -44
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v2.
|
|
1
|
+
/*! @azure/msal-browser v2.32.0 2022-11-22 */
|
|
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
|
|
120
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
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
|
|
207
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
208
208
|
|
|
209
209
|
/*
|
|
210
210
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -247,6 +247,7 @@ var Constants = {
|
|
|
247
247
|
AUTHORIZATION_PENDING: "authorization_pending",
|
|
248
248
|
NOT_DEFINED: "not_defined",
|
|
249
249
|
EMPTY_STRING: "",
|
|
250
|
+
NOT_APPLICABLE: "N/A",
|
|
250
251
|
FORWARD_SLASH: "/",
|
|
251
252
|
IMDS_ENDPOINT: "http://169.254.169.254/metadata/instance/compute/location",
|
|
252
253
|
IMDS_VERSION: "2020-06-01",
|
|
@@ -585,7 +586,7 @@ var JsonTypes;
|
|
|
585
586
|
JsonTypes["Jwk"] = "JWK";
|
|
586
587
|
})(JsonTypes || (JsonTypes = {}));
|
|
587
588
|
|
|
588
|
-
/*! @azure/msal-common
|
|
589
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
589
590
|
|
|
590
591
|
/*
|
|
591
592
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -641,7 +642,7 @@ var AuthError = /** @class */ (function (_super) {
|
|
|
641
642
|
return AuthError;
|
|
642
643
|
}(Error));
|
|
643
644
|
|
|
644
|
-
/*! @azure/msal-common
|
|
645
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
645
646
|
|
|
646
647
|
/*
|
|
647
648
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -716,7 +717,7 @@ var DEFAULT_CRYPTO_IMPLEMENTATION = {
|
|
|
716
717
|
}
|
|
717
718
|
};
|
|
718
719
|
|
|
719
|
-
/*! @azure/msal-common
|
|
720
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
720
721
|
|
|
721
722
|
/*
|
|
722
723
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1211,7 +1212,7 @@ var ClientAuthError = /** @class */ (function (_super) {
|
|
|
1211
1212
|
return ClientAuthError;
|
|
1212
1213
|
}(AuthError));
|
|
1213
1214
|
|
|
1214
|
-
/*! @azure/msal-common
|
|
1215
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
1215
1216
|
|
|
1216
1217
|
/*
|
|
1217
1218
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1336,7 +1337,7 @@ var StringUtils = /** @class */ (function () {
|
|
|
1336
1337
|
return StringUtils;
|
|
1337
1338
|
}());
|
|
1338
1339
|
|
|
1339
|
-
/*! @azure/msal-common
|
|
1340
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
1340
1341
|
|
|
1341
1342
|
/*
|
|
1342
1343
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1516,12 +1517,12 @@ var Logger = /** @class */ (function () {
|
|
|
1516
1517
|
return Logger;
|
|
1517
1518
|
}());
|
|
1518
1519
|
|
|
1519
|
-
/*! @azure/msal-common
|
|
1520
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
1520
1521
|
/* eslint-disable header/header */
|
|
1521
1522
|
var name$1 = "@azure/msal-common";
|
|
1522
|
-
var version$1 = "
|
|
1523
|
+
var version$1 = "9.0.0";
|
|
1523
1524
|
|
|
1524
|
-
/*! @azure/msal-common
|
|
1525
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
1525
1526
|
/*
|
|
1526
1527
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1527
1528
|
* Licensed under the MIT License.
|
|
@@ -1542,7 +1543,7 @@ exports.AzureCloudInstance = void 0;
|
|
|
1542
1543
|
AzureCloudInstance["AzureUsGovernment"] = "https://login.microsoftonline.us";
|
|
1543
1544
|
})(exports.AzureCloudInstance || (exports.AzureCloudInstance = {}));
|
|
1544
1545
|
|
|
1545
|
-
/*! @azure/msal-common
|
|
1546
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
1546
1547
|
|
|
1547
1548
|
/*
|
|
1548
1549
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1701,7 +1702,7 @@ var CredentialEntity = /** @class */ (function () {
|
|
|
1701
1702
|
return CredentialEntity;
|
|
1702
1703
|
}());
|
|
1703
1704
|
|
|
1704
|
-
/*! @azure/msal-common
|
|
1705
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
1705
1706
|
|
|
1706
1707
|
/*
|
|
1707
1708
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1956,7 +1957,7 @@ var ClientConfigurationError = /** @class */ (function (_super) {
|
|
|
1956
1957
|
return ClientConfigurationError;
|
|
1957
1958
|
}(ClientAuthError));
|
|
1958
1959
|
|
|
1959
|
-
/*! @azure/msal-common
|
|
1960
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
1960
1961
|
|
|
1961
1962
|
/*
|
|
1962
1963
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2140,7 +2141,7 @@ var ScopeSet = /** @class */ (function () {
|
|
|
2140
2141
|
return ScopeSet;
|
|
2141
2142
|
}());
|
|
2142
2143
|
|
|
2143
|
-
/*! @azure/msal-common
|
|
2144
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
2144
2145
|
|
|
2145
2146
|
/*
|
|
2146
2147
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2178,7 +2179,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
|
|
|
2178
2179
|
};
|
|
2179
2180
|
}
|
|
2180
2181
|
|
|
2181
|
-
/*! @azure/msal-common
|
|
2182
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
2182
2183
|
/*
|
|
2183
2184
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2184
2185
|
* Licensed under the MIT License.
|
|
@@ -2193,7 +2194,7 @@ var AuthorityType;
|
|
|
2193
2194
|
AuthorityType[AuthorityType["Dsts"] = 2] = "Dsts";
|
|
2194
2195
|
})(AuthorityType || (AuthorityType = {}));
|
|
2195
2196
|
|
|
2196
|
-
/*! @azure/msal-common
|
|
2197
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
2197
2198
|
|
|
2198
2199
|
/*
|
|
2199
2200
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2432,7 +2433,7 @@ var AccountEntity = /** @class */ (function () {
|
|
|
2432
2433
|
return AccountEntity;
|
|
2433
2434
|
}());
|
|
2434
2435
|
|
|
2435
|
-
/*! @azure/msal-common
|
|
2436
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
2436
2437
|
|
|
2437
2438
|
/*
|
|
2438
2439
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2484,7 +2485,7 @@ var AuthToken = /** @class */ (function () {
|
|
|
2484
2485
|
return AuthToken;
|
|
2485
2486
|
}());
|
|
2486
2487
|
|
|
2487
|
-
/*! @azure/msal-common
|
|
2488
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
2488
2489
|
|
|
2489
2490
|
/*
|
|
2490
2491
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3363,7 +3364,7 @@ var DefaultStorageClass = /** @class */ (function (_super) {
|
|
|
3363
3364
|
return DefaultStorageClass;
|
|
3364
3365
|
}(CacheManager));
|
|
3365
3366
|
|
|
3366
|
-
/*! @azure/msal-common
|
|
3367
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
3367
3368
|
|
|
3368
3369
|
/*
|
|
3369
3370
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3457,7 +3458,7 @@ function buildAuthOptions(authOptions) {
|
|
|
3457
3458
|
return __assign({ clientCapabilities: [], azureCloudOptions: DEFAULT_AZURE_CLOUD_OPTIONS, skipAuthorityMetadataCache: false }, authOptions);
|
|
3458
3459
|
}
|
|
3459
3460
|
|
|
3460
|
-
/*! @azure/msal-common
|
|
3461
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
3461
3462
|
|
|
3462
3463
|
/*
|
|
3463
3464
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3477,7 +3478,7 @@ var ServerError = /** @class */ (function (_super) {
|
|
|
3477
3478
|
return ServerError;
|
|
3478
3479
|
}(AuthError));
|
|
3479
3480
|
|
|
3480
|
-
/*! @azure/msal-common
|
|
3481
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
3481
3482
|
|
|
3482
3483
|
/*
|
|
3483
3484
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3573,7 +3574,7 @@ var ThrottlingUtils = /** @class */ (function () {
|
|
|
3573
3574
|
return ThrottlingUtils;
|
|
3574
3575
|
}());
|
|
3575
3576
|
|
|
3576
|
-
/*! @azure/msal-common
|
|
3577
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
3577
3578
|
|
|
3578
3579
|
/*
|
|
3579
3580
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3622,7 +3623,7 @@ var NetworkManager = /** @class */ (function () {
|
|
|
3622
3623
|
return NetworkManager;
|
|
3623
3624
|
}());
|
|
3624
3625
|
|
|
3625
|
-
/*! @azure/msal-common
|
|
3626
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
3626
3627
|
/*
|
|
3627
3628
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3628
3629
|
* Licensed under the MIT License.
|
|
@@ -3633,7 +3634,7 @@ var CcsCredentialType;
|
|
|
3633
3634
|
CcsCredentialType["UPN"] = "UPN";
|
|
3634
3635
|
})(CcsCredentialType || (CcsCredentialType = {}));
|
|
3635
3636
|
|
|
3636
|
-
/*! @azure/msal-common
|
|
3637
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
3637
3638
|
|
|
3638
3639
|
/*
|
|
3639
3640
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3724,7 +3725,7 @@ var BaseClient = /** @class */ (function () {
|
|
|
3724
3725
|
return BaseClient;
|
|
3725
3726
|
}());
|
|
3726
3727
|
|
|
3727
|
-
/*! @azure/msal-common
|
|
3728
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
3728
3729
|
|
|
3729
3730
|
/*
|
|
3730
3731
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3810,7 +3811,7 @@ var RequestValidator = /** @class */ (function () {
|
|
|
3810
3811
|
return RequestValidator;
|
|
3811
3812
|
}());
|
|
3812
3813
|
|
|
3813
|
-
/*! @azure/msal-common
|
|
3814
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
3814
3815
|
|
|
3815
3816
|
/*
|
|
3816
3817
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4188,7 +4189,7 @@ var RequestParameterBuilder = /** @class */ (function () {
|
|
|
4188
4189
|
return RequestParameterBuilder;
|
|
4189
4190
|
}());
|
|
4190
4191
|
|
|
4191
|
-
/*! @azure/msal-common
|
|
4192
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
4192
4193
|
|
|
4193
4194
|
/*
|
|
4194
4195
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4252,7 +4253,7 @@ var IdTokenEntity = /** @class */ (function (_super) {
|
|
|
4252
4253
|
return IdTokenEntity;
|
|
4253
4254
|
}(CredentialEntity));
|
|
4254
4255
|
|
|
4255
|
-
/*! @azure/msal-common
|
|
4256
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
4256
4257
|
/*
|
|
4257
4258
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4258
4259
|
* Licensed under the MIT License.
|
|
@@ -4302,7 +4303,7 @@ var TimeUtils = /** @class */ (function () {
|
|
|
4302
4303
|
return TimeUtils;
|
|
4303
4304
|
}());
|
|
4304
4305
|
|
|
4305
|
-
/*! @azure/msal-common
|
|
4306
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
4306
4307
|
|
|
4307
4308
|
/*
|
|
4308
4309
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4416,7 +4417,7 @@ var AccessTokenEntity = /** @class */ (function (_super) {
|
|
|
4416
4417
|
return AccessTokenEntity;
|
|
4417
4418
|
}(CredentialEntity));
|
|
4418
4419
|
|
|
4419
|
-
/*! @azure/msal-common
|
|
4420
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
4420
4421
|
|
|
4421
4422
|
/*
|
|
4422
4423
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4483,7 +4484,7 @@ var RefreshTokenEntity = /** @class */ (function (_super) {
|
|
|
4483
4484
|
return RefreshTokenEntity;
|
|
4484
4485
|
}(CredentialEntity));
|
|
4485
4486
|
|
|
4486
|
-
/*! @azure/msal-common
|
|
4487
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
4487
4488
|
|
|
4488
4489
|
/*
|
|
4489
4490
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4558,7 +4559,7 @@ var InteractionRequiredAuthError = /** @class */ (function (_super) {
|
|
|
4558
4559
|
return InteractionRequiredAuthError;
|
|
4559
4560
|
}(AuthError));
|
|
4560
4561
|
|
|
4561
|
-
/*! @azure/msal-common
|
|
4562
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
4562
4563
|
/*
|
|
4563
4564
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4564
4565
|
* Licensed under the MIT License.
|
|
@@ -4574,7 +4575,7 @@ var CacheRecord = /** @class */ (function () {
|
|
|
4574
4575
|
return CacheRecord;
|
|
4575
4576
|
}());
|
|
4576
4577
|
|
|
4577
|
-
/*! @azure/msal-common
|
|
4578
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
4578
4579
|
|
|
4579
4580
|
/*
|
|
4580
4581
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4645,7 +4646,7 @@ var ProtocolUtils = /** @class */ (function () {
|
|
|
4645
4646
|
return ProtocolUtils;
|
|
4646
4647
|
}());
|
|
4647
4648
|
|
|
4648
|
-
/*! @azure/msal-common
|
|
4649
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
4649
4650
|
|
|
4650
4651
|
/*
|
|
4651
4652
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4879,7 +4880,7 @@ var UrlString = /** @class */ (function () {
|
|
|
4879
4880
|
return UrlString;
|
|
4880
4881
|
}());
|
|
4881
4882
|
|
|
4882
|
-
/*! @azure/msal-common
|
|
4883
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
4883
4884
|
|
|
4884
4885
|
/*
|
|
4885
4886
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4980,7 +4981,7 @@ var PopTokenGenerator = /** @class */ (function () {
|
|
|
4980
4981
|
return PopTokenGenerator;
|
|
4981
4982
|
}());
|
|
4982
4983
|
|
|
4983
|
-
/*! @azure/msal-common
|
|
4984
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
4984
4985
|
|
|
4985
4986
|
/*
|
|
4986
4987
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5050,7 +5051,7 @@ var AppMetadataEntity = /** @class */ (function () {
|
|
|
5050
5051
|
return AppMetadataEntity;
|
|
5051
5052
|
}());
|
|
5052
5053
|
|
|
5053
|
-
/*! @azure/msal-common
|
|
5054
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
5054
5055
|
/*
|
|
5055
5056
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5056
5057
|
* Licensed under the MIT License.
|
|
@@ -5086,7 +5087,7 @@ var AppMetadataEntity = /** @class */ (function () {
|
|
|
5086
5087
|
return TokenCacheContext;
|
|
5087
5088
|
}());
|
|
5088
5089
|
|
|
5089
|
-
/*! @azure/msal-common
|
|
5090
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
5090
5091
|
|
|
5091
5092
|
/*
|
|
5092
5093
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5366,7 +5367,7 @@ var ResponseHandler = /** @class */ (function () {
|
|
|
5366
5367
|
return ResponseHandler;
|
|
5367
5368
|
}());
|
|
5368
5369
|
|
|
5369
|
-
/*! @azure/msal-common
|
|
5370
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
5370
5371
|
|
|
5371
5372
|
/*
|
|
5372
5373
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5819,7 +5820,7 @@ var AuthorizationCodeClient = /** @class */ (function (_super) {
|
|
|
5819
5820
|
return AuthorizationCodeClient;
|
|
5820
5821
|
}(BaseClient));
|
|
5821
5822
|
|
|
5822
|
-
/*! @azure/msal-common
|
|
5823
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
5823
5824
|
/*
|
|
5824
5825
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5825
5826
|
* Licensed under the MIT License.
|
|
@@ -5944,7 +5945,7 @@ var PerformanceEventStatus;
|
|
|
5944
5945
|
PerformanceEventStatus[PerformanceEventStatus["Completed"] = 2] = "Completed";
|
|
5945
5946
|
})(PerformanceEventStatus || (PerformanceEventStatus = {}));
|
|
5946
5947
|
|
|
5947
|
-
/*! @azure/msal-common
|
|
5948
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
5948
5949
|
|
|
5949
5950
|
/*
|
|
5950
5951
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5959,27 +5960,28 @@ var RefreshTokenClient = /** @class */ (function (_super) {
|
|
|
5959
5960
|
return _super.call(this, configuration, performanceClient) || this;
|
|
5960
5961
|
}
|
|
5961
5962
|
RefreshTokenClient.prototype.acquireToken = function (request) {
|
|
5962
|
-
var _a, _b;
|
|
5963
|
+
var _a, _b, _c;
|
|
5963
5964
|
return __awaiter(this, void 0, void 0, function () {
|
|
5964
5965
|
var atsMeasurement, reqTimestamp, response, requestId, responseHandler;
|
|
5965
5966
|
var _this = this;
|
|
5966
|
-
return __generator(this, function (
|
|
5967
|
-
switch (
|
|
5967
|
+
return __generator(this, function (_d) {
|
|
5968
|
+
switch (_d.label) {
|
|
5968
5969
|
case 0:
|
|
5969
5970
|
atsMeasurement = (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.startMeasurement(exports.PerformanceEvents.RefreshTokenClientAcquireToken, request.correlationId);
|
|
5970
5971
|
this.logger.verbose("RefreshTokenClientAcquireToken called", request.correlationId);
|
|
5971
5972
|
reqTimestamp = TimeUtils.nowSeconds();
|
|
5972
5973
|
return [4 /*yield*/, this.executeTokenRequest(request, this.authority)];
|
|
5973
5974
|
case 1:
|
|
5974
|
-
response =
|
|
5975
|
-
|
|
5975
|
+
response = _d.sent();
|
|
5976
|
+
atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.addStaticFields({
|
|
5977
|
+
refreshTokenSize: ((_b = response.body.refresh_token) === null || _b === void 0 ? void 0 : _b.length) || 0
|
|
5978
|
+
});
|
|
5979
|
+
requestId = (_c = response.headers) === null || _c === void 0 ? void 0 : _c[HeaderNames.X_MS_REQUEST_ID];
|
|
5976
5980
|
responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin);
|
|
5977
5981
|
responseHandler.validateTokenResponse(response.body);
|
|
5978
5982
|
return [2 /*return*/, responseHandler.handleServerTokenResponse(response.body, this.authority, reqTimestamp, request, undefined, undefined, true, request.forceCache, requestId).then(function (result) {
|
|
5979
|
-
var _a;
|
|
5980
5983
|
atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.endMeasurement({
|
|
5981
|
-
success: true
|
|
5982
|
-
refreshTokenSize: ((_a = response.body.refresh_token) === null || _a === void 0 ? void 0 : _a.length) || 0
|
|
5984
|
+
success: true
|
|
5983
5985
|
});
|
|
5984
5986
|
return result;
|
|
5985
5987
|
})
|
|
@@ -5988,8 +5990,7 @@ var RefreshTokenClient = /** @class */ (function (_super) {
|
|
|
5988
5990
|
atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.endMeasurement({
|
|
5989
5991
|
errorCode: error.errorCode,
|
|
5990
5992
|
subErrorCode: error.subError,
|
|
5991
|
-
success: false
|
|
5992
|
-
refreshTokenSize: undefined
|
|
5993
|
+
success: false
|
|
5993
5994
|
});
|
|
5994
5995
|
throw error;
|
|
5995
5996
|
})];
|
|
@@ -6209,7 +6210,7 @@ var RefreshTokenClient = /** @class */ (function (_super) {
|
|
|
6209
6210
|
return RefreshTokenClient;
|
|
6210
6211
|
}(BaseClient));
|
|
6211
6212
|
|
|
6212
|
-
/*! @azure/msal-common
|
|
6213
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
6213
6214
|
|
|
6214
6215
|
/*
|
|
6215
6216
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6333,7 +6334,7 @@ var SilentFlowClient = /** @class */ (function (_super) {
|
|
|
6333
6334
|
return SilentFlowClient;
|
|
6334
6335
|
}(BaseClient));
|
|
6335
6336
|
|
|
6336
|
-
/*! @azure/msal-common
|
|
6337
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
6337
6338
|
/*
|
|
6338
6339
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6339
6340
|
* Licensed under the MIT License.
|
|
@@ -6345,7 +6346,7 @@ function isOpenIdConfigResponse(response) {
|
|
|
6345
6346
|
response.hasOwnProperty("jwks_uri"));
|
|
6346
6347
|
}
|
|
6347
6348
|
|
|
6348
|
-
/*! @azure/msal-common
|
|
6349
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
6349
6350
|
/*
|
|
6350
6351
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6351
6352
|
* Licensed under the MIT License.
|
|
@@ -6354,7 +6355,7 @@ var rawMetdataJSON = { "endpointMetadata": { "https://login.microsoftonline.com/
|
|
|
6354
6355
|
var EndpointMetadata = rawMetdataJSON.endpointMetadata;
|
|
6355
6356
|
var InstanceDiscoveryMetadata = rawMetdataJSON.instanceDiscoveryMetadata;
|
|
6356
6357
|
|
|
6357
|
-
/*! @azure/msal-common
|
|
6358
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
6358
6359
|
/*
|
|
6359
6360
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6360
6361
|
* Licensed under the MIT License.
|
|
@@ -6368,7 +6369,7 @@ exports.ProtocolMode = void 0;
|
|
|
6368
6369
|
ProtocolMode["OIDC"] = "OIDC";
|
|
6369
6370
|
})(exports.ProtocolMode || (exports.ProtocolMode = {}));
|
|
6370
6371
|
|
|
6371
|
-
/*! @azure/msal-common
|
|
6372
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
6372
6373
|
|
|
6373
6374
|
/*
|
|
6374
6375
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6445,7 +6446,7 @@ var AuthorityMetadataEntity = /** @class */ (function () {
|
|
|
6445
6446
|
return AuthorityMetadataEntity;
|
|
6446
6447
|
}());
|
|
6447
6448
|
|
|
6448
|
-
/*! @azure/msal-common
|
|
6449
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
6449
6450
|
/*
|
|
6450
6451
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6451
6452
|
* Licensed under the MIT License.
|
|
@@ -6455,7 +6456,7 @@ function isCloudInstanceDiscoveryResponse(response) {
|
|
|
6455
6456
|
response.hasOwnProperty("metadata"));
|
|
6456
6457
|
}
|
|
6457
6458
|
|
|
6458
|
-
/*! @azure/msal-common
|
|
6459
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
6459
6460
|
|
|
6460
6461
|
/*
|
|
6461
6462
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6577,7 +6578,7 @@ var RegionDiscovery = /** @class */ (function () {
|
|
|
6577
6578
|
return RegionDiscovery;
|
|
6578
6579
|
}());
|
|
6579
6580
|
|
|
6580
|
-
/*! @azure/msal-common
|
|
6581
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
6581
6582
|
|
|
6582
6583
|
/*
|
|
6583
6584
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6588,7 +6589,7 @@ var RegionDiscovery = /** @class */ (function () {
|
|
|
6588
6589
|
* endpoint. It will store the pertinent config data in this object for use during token calls.
|
|
6589
6590
|
*/
|
|
6590
6591
|
var Authority = /** @class */ (function () {
|
|
6591
|
-
function Authority(authority, networkInterface, cacheManager, authorityOptions, proxyUrl) {
|
|
6592
|
+
function Authority(authority, networkInterface, cacheManager, authorityOptions, logger, proxyUrl) {
|
|
6592
6593
|
this.canonicalAuthority = authority;
|
|
6593
6594
|
this._canonicalAuthority.validateAsUri();
|
|
6594
6595
|
this.networkInterface = networkInterface;
|
|
@@ -6597,6 +6598,7 @@ var Authority = /** @class */ (function () {
|
|
|
6597
6598
|
this.regionDiscovery = new RegionDiscovery(networkInterface);
|
|
6598
6599
|
this.regionDiscoveryMetadata = { region_used: undefined, region_source: undefined, region_outcome: undefined };
|
|
6599
6600
|
this.proxyUrl = proxyUrl || Constants.EMPTY_STRING;
|
|
6601
|
+
this.logger = logger;
|
|
6600
6602
|
}
|
|
6601
6603
|
Object.defineProperty(Authority.prototype, "authorityType", {
|
|
6602
6604
|
// See above for AuthorityType
|
|
@@ -7023,36 +7025,50 @@ var Authority = /** @class */ (function () {
|
|
|
7023
7025
|
*/
|
|
7024
7026
|
Authority.prototype.updateCloudDiscoveryMetadata = function (metadataEntity) {
|
|
7025
7027
|
return __awaiter(this, void 0, void 0, function () {
|
|
7026
|
-
var metadata, harcodedMetadata;
|
|
7028
|
+
var metadata, metadataEntityExpired, harcodedMetadata;
|
|
7027
7029
|
return __generator(this, function (_a) {
|
|
7028
7030
|
switch (_a.label) {
|
|
7029
7031
|
case 0:
|
|
7032
|
+
this.logger.verbose("Attempting to get cloud discovery metadata in the config");
|
|
7033
|
+
this.logger.verbosePii("Known Authorities: " + (this.authorityOptions.knownAuthorities || Constants.NOT_APPLICABLE));
|
|
7034
|
+
this.logger.verbosePii("Authority Metadata: " + (this.authorityOptions.authorityMetadata || Constants.NOT_APPLICABLE));
|
|
7035
|
+
this.logger.verbosePii("Canonical Authority: " + (metadataEntity.canonical_authority || Constants.NOT_APPLICABLE));
|
|
7030
7036
|
metadata = this.getCloudDiscoveryMetadataFromConfig();
|
|
7031
7037
|
if (metadata) {
|
|
7038
|
+
this.logger.verbose("Found cloud discovery metadata in the config.");
|
|
7032
7039
|
metadataEntity.updateCloudDiscoveryMetadata(metadata, false);
|
|
7033
7040
|
return [2 /*return*/, AuthorityMetadataSource.CONFIG];
|
|
7034
7041
|
}
|
|
7035
|
-
// If
|
|
7036
|
-
|
|
7042
|
+
// If the cached metadata came from config but that config was not passed to this instance, we must go to the network
|
|
7043
|
+
this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the cache.");
|
|
7044
|
+
metadataEntityExpired = metadataEntity.isExpired();
|
|
7045
|
+
if (this.isAuthoritySameType(metadataEntity) && metadataEntity.aliasesFromNetwork && !metadataEntityExpired) {
|
|
7046
|
+
this.logger.verbose("Found metadata in the cache.");
|
|
7037
7047
|
// No need to update
|
|
7038
7048
|
return [2 /*return*/, AuthorityMetadataSource.CACHE];
|
|
7039
7049
|
}
|
|
7040
|
-
|
|
7050
|
+
else if (metadataEntityExpired) {
|
|
7051
|
+
this.logger.verbose("The metadata entity is expired.");
|
|
7052
|
+
}
|
|
7053
|
+
this.logger.verbose("Did not find cloud discovery metadata in the cache... Attempting to get cloud discovery metadata from the network.");
|
|
7041
7054
|
return [4 /*yield*/, this.getCloudDiscoveryMetadataFromNetwork()];
|
|
7042
7055
|
case 1:
|
|
7043
7056
|
metadata = _a.sent();
|
|
7044
7057
|
if (metadata) {
|
|
7058
|
+
this.logger.verbose("Found cloud discovery metadata from the network.");
|
|
7045
7059
|
metadataEntity.updateCloudDiscoveryMetadata(metadata, true);
|
|
7046
7060
|
return [2 /*return*/, AuthorityMetadataSource.NETWORK];
|
|
7047
7061
|
}
|
|
7062
|
+
this.logger.verbose("Did not find cloud discovery metadata from the network... Attempting to get cloud discovery metadata from hardcoded values.");
|
|
7063
|
+
harcodedMetadata = this.getCloudDiscoveryMetadataFromHarcodedValues();
|
|
7048
7064
|
if (harcodedMetadata && !this.options.skipAuthorityMetadataCache) {
|
|
7065
|
+
this.logger.verbose("Found cloud discovery metadata from hardcoded values.");
|
|
7049
7066
|
metadataEntity.updateCloudDiscoveryMetadata(harcodedMetadata, false);
|
|
7050
7067
|
return [2 /*return*/, AuthorityMetadataSource.HARDCODED_VALUES];
|
|
7051
7068
|
}
|
|
7052
|
-
|
|
7053
|
-
|
|
7054
|
-
|
|
7055
|
-
}
|
|
7069
|
+
// Metadata could not be obtained from config, cache or network
|
|
7070
|
+
this.logger.verbose("Did not find cloud discovery metadata from hardcoded values... Metadata could not be obtained from config, cache, network or hardcoded value. Throwing Untrusted Authority Error.");
|
|
7071
|
+
throw ClientConfigurationError.createUntrustedAuthorityError();
|
|
7056
7072
|
}
|
|
7057
7073
|
});
|
|
7058
7074
|
});
|
|
@@ -7063,19 +7079,28 @@ var Authority = /** @class */ (function () {
|
|
|
7063
7079
|
Authority.prototype.getCloudDiscoveryMetadataFromConfig = function () {
|
|
7064
7080
|
// Check if network response was provided in config
|
|
7065
7081
|
if (this.authorityOptions.cloudDiscoveryMetadata) {
|
|
7082
|
+
this.logger.verbose("The cloud discovery metadata has been provided as a network response, in the config.");
|
|
7066
7083
|
try {
|
|
7084
|
+
this.logger.verbose("Attempting to parse the cloud discovery metadata.");
|
|
7067
7085
|
var parsedResponse = JSON.parse(this.authorityOptions.cloudDiscoveryMetadata);
|
|
7068
7086
|
var metadata = Authority.getCloudDiscoveryMetadataFromNetworkResponse(parsedResponse.metadata, this.hostnameAndPort);
|
|
7087
|
+
this.logger.verbose("Parsed the cloud discovery metadata.");
|
|
7069
7088
|
if (metadata) {
|
|
7089
|
+
this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata.");
|
|
7070
7090
|
return metadata;
|
|
7071
7091
|
}
|
|
7092
|
+
else {
|
|
7093
|
+
this.logger.verbose("There is no metadata attached to the parsed cloud discovery metadata.");
|
|
7094
|
+
}
|
|
7072
7095
|
}
|
|
7073
7096
|
catch (e) {
|
|
7097
|
+
this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error.");
|
|
7074
7098
|
throw ClientConfigurationError.createInvalidCloudDiscoveryMetadataError();
|
|
7075
7099
|
}
|
|
7076
7100
|
}
|
|
7077
7101
|
// If cloudDiscoveryMetadata is empty or does not contain the host, check knownAuthorities
|
|
7078
7102
|
if (this.isInKnownAuthorities()) {
|
|
7103
|
+
this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host.");
|
|
7079
7104
|
return Authority.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);
|
|
7080
7105
|
}
|
|
7081
7106
|
return null;
|
|
@@ -7249,7 +7274,7 @@ var Authority = /** @class */ (function () {
|
|
|
7249
7274
|
return Authority;
|
|
7250
7275
|
}());
|
|
7251
7276
|
|
|
7252
|
-
/*! @azure/msal-common
|
|
7277
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
7253
7278
|
|
|
7254
7279
|
/*
|
|
7255
7280
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7268,13 +7293,13 @@ var AuthorityFactory = /** @class */ (function () {
|
|
|
7268
7293
|
* @param networkClient
|
|
7269
7294
|
* @param protocolMode
|
|
7270
7295
|
*/
|
|
7271
|
-
AuthorityFactory.createDiscoveredInstance = function (authorityUri, networkClient, cacheManager, authorityOptions, proxyUrl) {
|
|
7296
|
+
AuthorityFactory.createDiscoveredInstance = function (authorityUri, networkClient, cacheManager, authorityOptions, logger, proxyUrl) {
|
|
7272
7297
|
return __awaiter(this, void 0, void 0, function () {
|
|
7273
7298
|
var acquireTokenAuthority, e_1;
|
|
7274
7299
|
return __generator(this, function (_a) {
|
|
7275
7300
|
switch (_a.label) {
|
|
7276
7301
|
case 0:
|
|
7277
|
-
acquireTokenAuthority = AuthorityFactory.createInstance(authorityUri, networkClient, cacheManager, authorityOptions, proxyUrl);
|
|
7302
|
+
acquireTokenAuthority = AuthorityFactory.createInstance(authorityUri, networkClient, cacheManager, authorityOptions, logger, proxyUrl);
|
|
7278
7303
|
_a.label = 1;
|
|
7279
7304
|
case 1:
|
|
7280
7305
|
_a.trys.push([1, 3, , 4]);
|
|
@@ -7300,17 +7325,17 @@ var AuthorityFactory = /** @class */ (function () {
|
|
|
7300
7325
|
* @param networkInterface
|
|
7301
7326
|
* @param protocolMode
|
|
7302
7327
|
*/
|
|
7303
|
-
AuthorityFactory.createInstance = function (authorityUrl, networkInterface, cacheManager, authorityOptions, proxyUrl) {
|
|
7328
|
+
AuthorityFactory.createInstance = function (authorityUrl, networkInterface, cacheManager, authorityOptions, logger, proxyUrl) {
|
|
7304
7329
|
// Throw error if authority url is empty
|
|
7305
7330
|
if (StringUtils.isEmpty(authorityUrl)) {
|
|
7306
7331
|
throw ClientConfigurationError.createUrlEmptyError();
|
|
7307
7332
|
}
|
|
7308
|
-
return new Authority(authorityUrl, networkInterface, cacheManager, authorityOptions, proxyUrl);
|
|
7333
|
+
return new Authority(authorityUrl, networkInterface, cacheManager, authorityOptions, logger, proxyUrl);
|
|
7309
7334
|
};
|
|
7310
7335
|
return AuthorityFactory;
|
|
7311
7336
|
}());
|
|
7312
7337
|
|
|
7313
|
-
/*! @azure/msal-common
|
|
7338
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
7314
7339
|
|
|
7315
7340
|
/*
|
|
7316
7341
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7341,7 +7366,7 @@ var ServerTelemetryEntity = /** @class */ (function () {
|
|
|
7341
7366
|
return ServerTelemetryEntity;
|
|
7342
7367
|
}());
|
|
7343
7368
|
|
|
7344
|
-
/*! @azure/msal-common
|
|
7369
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
7345
7370
|
|
|
7346
7371
|
/*
|
|
7347
7372
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7369,7 +7394,7 @@ var ThrottlingEntity = /** @class */ (function () {
|
|
|
7369
7394
|
return ThrottlingEntity;
|
|
7370
7395
|
}());
|
|
7371
7396
|
|
|
7372
|
-
/*! @azure/msal-common
|
|
7397
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
7373
7398
|
|
|
7374
7399
|
/*
|
|
7375
7400
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7386,7 +7411,7 @@ var StubbedNetworkModule = {
|
|
|
7386
7411
|
}
|
|
7387
7412
|
};
|
|
7388
7413
|
|
|
7389
|
-
/*! @azure/msal-common
|
|
7414
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
7390
7415
|
|
|
7391
7416
|
/*
|
|
7392
7417
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7431,7 +7456,7 @@ var JoseHeaderError = /** @class */ (function (_super) {
|
|
|
7431
7456
|
return JoseHeaderError;
|
|
7432
7457
|
}(AuthError));
|
|
7433
7458
|
|
|
7434
|
-
/*! @azure/msal-common
|
|
7459
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
7435
7460
|
|
|
7436
7461
|
/*
|
|
7437
7462
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7471,7 +7496,7 @@ var JoseHeader = /** @class */ (function () {
|
|
|
7471
7496
|
return JoseHeader;
|
|
7472
7497
|
}());
|
|
7473
7498
|
|
|
7474
|
-
/*! @azure/msal-common
|
|
7499
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
7475
7500
|
|
|
7476
7501
|
/*
|
|
7477
7502
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7530,7 +7555,7 @@ var AuthenticationHeaderParser = /** @class */ (function () {
|
|
|
7530
7555
|
return AuthenticationHeaderParser;
|
|
7531
7556
|
}());
|
|
7532
7557
|
|
|
7533
|
-
/*! @azure/msal-common
|
|
7558
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
7534
7559
|
|
|
7535
7560
|
/*
|
|
7536
7561
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7692,7 +7717,7 @@ var ServerTelemetryManager = /** @class */ (function () {
|
|
|
7692
7717
|
return ServerTelemetryManager;
|
|
7693
7718
|
}());
|
|
7694
7719
|
|
|
7695
|
-
/*! @azure/msal-common
|
|
7720
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
7696
7721
|
|
|
7697
7722
|
/*
|
|
7698
7723
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7719,6 +7744,7 @@ var PerformanceClient = /** @class */ (function () {
|
|
|
7719
7744
|
this.logger = logger;
|
|
7720
7745
|
this.callbacks = new Map();
|
|
7721
7746
|
this.eventsByCorrelationId = new Map();
|
|
7747
|
+
this.staticFieldsByCorrelationId = new Map();
|
|
7722
7748
|
this.measurementsById = new Map();
|
|
7723
7749
|
}
|
|
7724
7750
|
/**
|
|
@@ -7745,8 +7771,6 @@ var PerformanceClient = /** @class */ (function () {
|
|
|
7745
7771
|
authority: this.authority,
|
|
7746
7772
|
libraryName: this.libraryName,
|
|
7747
7773
|
libraryVersion: this.libraryVersion,
|
|
7748
|
-
appName: (_a = this.applicationTelemetry) === null || _a === void 0 ? void 0 : _a.appName,
|
|
7749
|
-
appVersion: (_b = this.applicationTelemetry) === null || _b === void 0 ? void 0 : _b.appVersion,
|
|
7750
7774
|
clientId: this.clientId,
|
|
7751
7775
|
name: measureName,
|
|
7752
7776
|
startTimeMs: Date.now(),
|
|
@@ -7754,6 +7778,11 @@ var PerformanceClient = /** @class */ (function () {
|
|
|
7754
7778
|
};
|
|
7755
7779
|
// Store in progress events so they can be discarded if not ended properly
|
|
7756
7780
|
this.cacheEventByCorrelationId(inProgressEvent);
|
|
7781
|
+
var staticFields = {
|
|
7782
|
+
appName: (_a = this.applicationTelemetry) === null || _a === void 0 ? void 0 : _a.appName,
|
|
7783
|
+
appVersion: (_b = this.applicationTelemetry) === null || _b === void 0 ? void 0 : _b.appVersion,
|
|
7784
|
+
};
|
|
7785
|
+
this.addStaticFields(staticFields, eventCorrelationId);
|
|
7757
7786
|
this.cacheMeasurement(inProgressEvent, performanceMeasurement);
|
|
7758
7787
|
// Return the event and functions the caller can use to properly end/flush the measurement
|
|
7759
7788
|
return {
|
|
@@ -7771,6 +7800,9 @@ var PerformanceClient = /** @class */ (function () {
|
|
|
7771
7800
|
discardMeasurement: function () {
|
|
7772
7801
|
return _this.discardMeasurements(inProgressEvent.correlationId);
|
|
7773
7802
|
},
|
|
7803
|
+
addStaticFields: function (fields) {
|
|
7804
|
+
return _this.addStaticFields(fields, inProgressEvent.correlationId);
|
|
7805
|
+
},
|
|
7774
7806
|
measurement: performanceMeasurement,
|
|
7775
7807
|
event: inProgressEvent
|
|
7776
7808
|
};
|
|
@@ -7806,6 +7838,22 @@ var PerformanceClient = /** @class */ (function () {
|
|
|
7806
7838
|
}
|
|
7807
7839
|
return null;
|
|
7808
7840
|
};
|
|
7841
|
+
/**
|
|
7842
|
+
* Saves extra information to be emitted when the measurements are flushed
|
|
7843
|
+
* @param fields
|
|
7844
|
+
* @param correlationId
|
|
7845
|
+
*/
|
|
7846
|
+
PerformanceClient.prototype.addStaticFields = function (fields, correlationId) {
|
|
7847
|
+
var existingStaticFields = this.staticFieldsByCorrelationId.get(correlationId);
|
|
7848
|
+
if (existingStaticFields) {
|
|
7849
|
+
this.logger.trace("PerformanceClient: Updating static fields");
|
|
7850
|
+
this.staticFieldsByCorrelationId.set(correlationId, __assign(__assign({}, existingStaticFields), fields));
|
|
7851
|
+
}
|
|
7852
|
+
else {
|
|
7853
|
+
this.logger.trace("PerformanceClient: Adding static fields");
|
|
7854
|
+
this.staticFieldsByCorrelationId.set(correlationId, fields);
|
|
7855
|
+
}
|
|
7856
|
+
};
|
|
7809
7857
|
/**
|
|
7810
7858
|
* Upserts event into event cache.
|
|
7811
7859
|
* First key is the correlation id, second key is the event id.
|
|
@@ -7895,19 +7943,12 @@ var PerformanceClient = /** @class */ (function () {
|
|
|
7895
7943
|
else {
|
|
7896
7944
|
_this.logger.verbose("PerformanceClient: Submeasurement for " + measureName + " already exists for " + current.name + ", ignoring", correlationId);
|
|
7897
7945
|
}
|
|
7898
|
-
if (current.accessTokenSize) {
|
|
7899
|
-
previous.accessTokenSize = current.accessTokenSize;
|
|
7900
|
-
}
|
|
7901
|
-
if (current.idTokenSize) {
|
|
7902
|
-
previous.idTokenSize = current.idTokenSize;
|
|
7903
|
-
}
|
|
7904
|
-
if (current.refreshTokenSize) {
|
|
7905
|
-
previous.refreshTokenSize = current.refreshTokenSize;
|
|
7906
|
-
}
|
|
7907
7946
|
}
|
|
7908
7947
|
return previous;
|
|
7909
7948
|
}, topLevelEvent);
|
|
7910
|
-
this.
|
|
7949
|
+
var staticFields = this.staticFieldsByCorrelationId.get(correlationId);
|
|
7950
|
+
var finalEvent = __assign(__assign({}, eventToEmit), staticFields);
|
|
7951
|
+
this.emitEvents([finalEvent], eventToEmit.correlationId);
|
|
7911
7952
|
}
|
|
7912
7953
|
else {
|
|
7913
7954
|
this.logger.verbose("PerformanceClient: No completed top-level measurements found for " + measureName, correlationId);
|
|
@@ -7971,7 +8012,7 @@ var PerformanceClient = /** @class */ (function () {
|
|
|
7971
8012
|
return PerformanceClient;
|
|
7972
8013
|
}());
|
|
7973
8014
|
|
|
7974
|
-
/*! @azure/msal-common
|
|
8015
|
+
/*! @azure/msal-common v9.0.0 2022-11-22 */
|
|
7975
8016
|
|
|
7976
8017
|
/*
|
|
7977
8018
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -9846,7 +9887,7 @@ var DEFAULT_BROWSER_CACHE_MANAGER = function (clientId, logger) {
|
|
|
9846
9887
|
|
|
9847
9888
|
/* eslint-disable header/header */
|
|
9848
9889
|
var name = "@azure/msal-browser";
|
|
9849
|
-
var version = "2.
|
|
9890
|
+
var version = "2.32.0";
|
|
9850
9891
|
|
|
9851
9892
|
/*
|
|
9852
9893
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -10399,11 +10440,11 @@ var BaseInteractionClient = /** @class */ (function () {
|
|
|
10399
10440
|
};
|
|
10400
10441
|
if (!requestAuthority) return [3 /*break*/, 2];
|
|
10401
10442
|
this.logger.verbose("Creating discovered authority with request authority");
|
|
10402
|
-
return [4 /*yield*/, AuthorityFactory.createDiscoveredInstance(requestAuthority, this.config.system.networkClient, this.browserStorage, authorityOptions)];
|
|
10443
|
+
return [4 /*yield*/, AuthorityFactory.createDiscoveredInstance(requestAuthority, this.config.system.networkClient, this.browserStorage, authorityOptions, this.logger)];
|
|
10403
10444
|
case 1: return [2 /*return*/, _a.sent()];
|
|
10404
10445
|
case 2:
|
|
10405
10446
|
this.logger.verbose("Creating discovered authority with configured authority");
|
|
10406
|
-
return [4 /*yield*/, AuthorityFactory.createDiscoveredInstance(this.config.auth.authority, this.config.system.networkClient, this.browserStorage, authorityOptions)];
|
|
10447
|
+
return [4 /*yield*/, AuthorityFactory.createDiscoveredInstance(this.config.auth.authority, this.config.system.networkClient, this.browserStorage, authorityOptions, this.logger)];
|
|
10407
10448
|
case 3: return [2 /*return*/, _a.sent()];
|
|
10408
10449
|
}
|
|
10409
10450
|
});
|
|
@@ -10632,7 +10673,7 @@ var StandardInteractionClient = /** @class */ (function (_super) {
|
|
|
10632
10673
|
userAuthority = requestAuthority ? requestAuthority : this.config.auth.authority;
|
|
10633
10674
|
builtAuthority = Authority.generateAuthority(userAuthority, requestAzureCloudOptions || this.config.auth.azureCloudOptions);
|
|
10634
10675
|
this.logger.verbose("Creating discovered authority with configured authority", this.correlationId);
|
|
10635
|
-
return [4 /*yield*/, AuthorityFactory.createDiscoveredInstance(builtAuthority, this.config.system.networkClient, this.browserStorage, authorityOptions)
|
|
10676
|
+
return [4 /*yield*/, AuthorityFactory.createDiscoveredInstance(builtAuthority, this.config.system.networkClient, this.browserStorage, authorityOptions, this.logger)
|
|
10636
10677
|
.then(function (result) {
|
|
10637
10678
|
getAuthorityMeasurement.endMeasurement({
|
|
10638
10679
|
success: true
|
|
@@ -10810,7 +10851,7 @@ var InteractionHandler = /** @class */ (function () {
|
|
|
10810
10851
|
switch (_a.label) {
|
|
10811
10852
|
case 0:
|
|
10812
10853
|
cloudInstanceAuthorityUri = "https://" + cloudInstanceHostname + "/" + authority.tenant + "/";
|
|
10813
|
-
return [4 /*yield*/, AuthorityFactory.createDiscoveredInstance(cloudInstanceAuthorityUri, networkModule, this.browserStorage, authority.options)];
|
|
10854
|
+
return [4 /*yield*/, AuthorityFactory.createDiscoveredInstance(cloudInstanceAuthorityUri, networkModule, this.browserStorage, authority.options, this.logger)];
|
|
10814
10855
|
case 1:
|
|
10815
10856
|
cloudInstanceAuthority = _a.sent();
|
|
10816
10857
|
this.authModule.updateAuthority(cloudInstanceAuthority);
|
|
@@ -11227,7 +11268,7 @@ var NativeInteractionClient = /** @class */ (function (_super) {
|
|
|
11227
11268
|
result = _a.sent();
|
|
11228
11269
|
nativeATMeasurement.endMeasurement({
|
|
11229
11270
|
success: true,
|
|
11230
|
-
isNativeBroker:
|
|
11271
|
+
isNativeBroker: false,
|
|
11231
11272
|
fromCache: true
|
|
11232
11273
|
});
|
|
11233
11274
|
return [2 /*return*/, result];
|
|
@@ -11369,7 +11410,7 @@ var NativeInteractionClient = /** @class */ (function (_super) {
|
|
|
11369
11410
|
*/
|
|
11370
11411
|
NativeInteractionClient.prototype.handleRedirectPromise = function () {
|
|
11371
11412
|
return __awaiter$1(this, void 0, void 0, function () {
|
|
11372
|
-
var cachedRequest, messageBody, reqTimestamp, response, result, e_4;
|
|
11413
|
+
var cachedRequest, prompt, request, messageBody, reqTimestamp, response, result, e_4;
|
|
11373
11414
|
return __generator$1(this, function (_a) {
|
|
11374
11415
|
switch (_a.label) {
|
|
11375
11416
|
case 0:
|
|
@@ -11383,10 +11424,14 @@ var NativeInteractionClient = /** @class */ (function (_super) {
|
|
|
11383
11424
|
this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null.");
|
|
11384
11425
|
return [2 /*return*/, null];
|
|
11385
11426
|
}
|
|
11427
|
+
prompt = cachedRequest.prompt, request = __rest(cachedRequest, ["prompt"]);
|
|
11428
|
+
if (prompt) {
|
|
11429
|
+
this.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, removing prompt from cached request to prevent second interaction with native broker window.");
|
|
11430
|
+
}
|
|
11386
11431
|
this.browserStorage.removeItem(this.browserStorage.generateCacheKey(TemporaryCacheKeys.NATIVE_REQUEST));
|
|
11387
11432
|
messageBody = {
|
|
11388
11433
|
method: NativeExtensionMethod.GetToken,
|
|
11389
|
-
request:
|
|
11434
|
+
request: request
|
|
11390
11435
|
};
|
|
11391
11436
|
reqTimestamp = TimeUtils.nowSeconds();
|
|
11392
11437
|
_a.label = 1;
|
|
@@ -11397,7 +11442,7 @@ var NativeInteractionClient = /** @class */ (function (_super) {
|
|
|
11397
11442
|
case 2:
|
|
11398
11443
|
response = _a.sent();
|
|
11399
11444
|
this.validateNativeResponse(response);
|
|
11400
|
-
result = this.handleNativeResponse(response,
|
|
11445
|
+
result = this.handleNativeResponse(response, request, reqTimestamp);
|
|
11401
11446
|
this.browserStorage.setInteractionInProgress(false);
|
|
11402
11447
|
return [2 /*return*/, result];
|
|
11403
11448
|
case 3:
|
|
@@ -11425,12 +11470,30 @@ var NativeInteractionClient = /** @class */ (function (_super) {
|
|
|
11425
11470
|
*/
|
|
11426
11471
|
NativeInteractionClient.prototype.handleNativeResponse = function (response, request, reqTimestamp) {
|
|
11427
11472
|
return __awaiter$1(this, void 0, void 0, function () {
|
|
11428
|
-
var idTokenObj, authority, authorityPreferredCache, homeAccountIdentifier, accountEntity, responseScopes, accountProperties, uid, tid, responseAccessToken, responseTokenType, _a, popTokenGenerator, shrParameters,
|
|
11473
|
+
var mats, idTokenObj, authority, authorityPreferredCache, homeAccountIdentifier, accountEntity, responseScopes, accountProperties, uid, tid, responseAccessToken, responseTokenType, _a, popTokenGenerator, shrParameters, result, idTokenEntity, expiresIn, tokenExpirationSeconds, accessTokenEntity;
|
|
11429
11474
|
var _this = this;
|
|
11430
11475
|
return __generator$1(this, function (_b) {
|
|
11431
11476
|
switch (_b.label) {
|
|
11432
11477
|
case 0:
|
|
11433
11478
|
this.logger.trace("NativeInteractionClient - handleNativeResponse called.");
|
|
11479
|
+
mats = this.getMATSFromResponse(response);
|
|
11480
|
+
this.performanceClient.addStaticFields({
|
|
11481
|
+
extensionId: this.nativeMessageHandler.getExtensionId(),
|
|
11482
|
+
extensionVersion: this.nativeMessageHandler.getExtensionVersion(),
|
|
11483
|
+
matsBrokerVersion: mats ? mats.broker_version : undefined,
|
|
11484
|
+
matsAccountJoinOnStart: mats ? mats.account_join_on_start : undefined,
|
|
11485
|
+
matsAccountJoinOnEnd: mats ? mats.account_join_on_end : undefined,
|
|
11486
|
+
matsDeviceJoin: mats ? mats.device_join : undefined,
|
|
11487
|
+
matsPromptBehavior: mats ? mats.prompt_behavior : undefined,
|
|
11488
|
+
matsApiErrorCode: mats ? mats.api_error_code : undefined,
|
|
11489
|
+
matsUiVisible: mats ? mats.ui_visible : undefined,
|
|
11490
|
+
matsSilentCode: mats ? mats.silent_code : undefined,
|
|
11491
|
+
matsSilentBiSubCode: mats ? mats.silent_bi_sub_code : undefined,
|
|
11492
|
+
matsSilentMessage: mats ? mats.silent_message : undefined,
|
|
11493
|
+
matsSilentStatus: mats ? mats.silent_status : undefined,
|
|
11494
|
+
matsHttpStatus: mats ? mats.http_status : undefined,
|
|
11495
|
+
matsHttpEventCount: mats ? mats.http_event_count : undefined
|
|
11496
|
+
}, this.correlationId);
|
|
11434
11497
|
if (response.account.id !== request.accountId) {
|
|
11435
11498
|
// User switch in native broker prompt is not supported. All users must first sign in through web flow to ensure server state is in sync
|
|
11436
11499
|
throw NativeAuthError.createUserSwitchError();
|
|
@@ -11486,7 +11549,6 @@ var NativeInteractionClient = /** @class */ (function (_super) {
|
|
|
11486
11549
|
}
|
|
11487
11550
|
_b.label = 5;
|
|
11488
11551
|
case 5:
|
|
11489
|
-
mats = this.getMATSFromResponse(response);
|
|
11490
11552
|
result = {
|
|
11491
11553
|
authority: authority.canonicalAuthority,
|
|
11492
11554
|
uniqueId: uid,
|
|
@@ -11818,6 +11880,7 @@ var NativeMessageHandler = /** @class */ (function () {
|
|
|
11818
11880
|
clearTimeout(this.timeoutId); // Clear setTimeout
|
|
11819
11881
|
window.removeEventListener("message", this.windowListener, false); // Remove 'No extension' listener
|
|
11820
11882
|
this.extensionId = request.extensionId;
|
|
11883
|
+
this.extensionVersion = request.body.version;
|
|
11821
11884
|
this.logger.verbose("NativeMessageHandler - Received HandshakeResponse from extension: " + this.extensionId);
|
|
11822
11885
|
handshakeResolver.resolve();
|
|
11823
11886
|
this.handshakeResolvers.delete(request.responseId);
|
|
@@ -11836,6 +11899,20 @@ var NativeMessageHandler = /** @class */ (function () {
|
|
|
11836
11899
|
}
|
|
11837
11900
|
}
|
|
11838
11901
|
};
|
|
11902
|
+
/**
|
|
11903
|
+
* Returns the Id for the browser extension this handler is communicating with
|
|
11904
|
+
* @returns
|
|
11905
|
+
*/
|
|
11906
|
+
NativeMessageHandler.prototype.getExtensionId = function () {
|
|
11907
|
+
return this.extensionId;
|
|
11908
|
+
};
|
|
11909
|
+
/**
|
|
11910
|
+
* Returns the version for the browser extension this handler is communicating with
|
|
11911
|
+
* @returns
|
|
11912
|
+
*/
|
|
11913
|
+
NativeMessageHandler.prototype.getExtensionVersion = function () {
|
|
11914
|
+
return this.extensionVersion;
|
|
11915
|
+
};
|
|
11839
11916
|
/**
|
|
11840
11917
|
* Returns boolean indicating whether or not the request should attempt to use native broker
|
|
11841
11918
|
* @param logger
|
|
@@ -14893,7 +14970,7 @@ var TokenCache = /** @class */ (function () {
|
|
|
14893
14970
|
authorityMetadata: this.config.auth.authorityMetadata,
|
|
14894
14971
|
skipAuthorityMetadataCache: this.config.auth.skipAuthorityMetadataCache,
|
|
14895
14972
|
};
|
|
14896
|
-
authority = new Authority(authorityUrl, this.config.system.networkClient, this.storage, authorityOptions);
|
|
14973
|
+
authority = new Authority(authorityUrl, this.config.system.networkClient, this.storage, authorityOptions, this.logger);
|
|
14897
14974
|
// "clientInfo" from options takes precedence over "clientInfo" in response
|
|
14898
14975
|
if (options.clientInfo) {
|
|
14899
14976
|
this.logger.trace("TokenCache - homeAccountId from options");
|
|
@@ -15529,8 +15606,6 @@ var ClientApplication = /** @class */ (function () {
|
|
|
15529
15606
|
atPopupMeasurement.endMeasurement({
|
|
15530
15607
|
success: true,
|
|
15531
15608
|
isNativeBroker: true,
|
|
15532
|
-
accessTokenSize: response.accessToken.length,
|
|
15533
|
-
idTokenSize: response.idToken.length,
|
|
15534
15609
|
requestId: response.requestId
|
|
15535
15610
|
});
|
|
15536
15611
|
atPopupMeasurement.flushMeasurement();
|
|
@@ -15565,10 +15640,12 @@ var ClientApplication = /** @class */ (function () {
|
|
|
15565
15640
|
else {
|
|
15566
15641
|
_this.eventHandler.emitEvent(exports.EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Popup, result);
|
|
15567
15642
|
}
|
|
15643
|
+
atPopupMeasurement.addStaticFields({
|
|
15644
|
+
accessTokenSize: result.accessToken.length,
|
|
15645
|
+
idTokenSize: result.idToken.length
|
|
15646
|
+
});
|
|
15568
15647
|
atPopupMeasurement.endMeasurement({
|
|
15569
15648
|
success: true,
|
|
15570
|
-
accessTokenSize: result.accessToken.length,
|
|
15571
|
-
idTokenSize: result.idToken.length,
|
|
15572
15649
|
requestId: result.requestId
|
|
15573
15650
|
});
|
|
15574
15651
|
atPopupMeasurement.flushMeasurement();
|
|
@@ -15637,11 +15714,13 @@ var ClientApplication = /** @class */ (function () {
|
|
|
15637
15714
|
}
|
|
15638
15715
|
return [2 /*return*/, result.then(function (response) {
|
|
15639
15716
|
_this.eventHandler.emitEvent(exports.EventType.SSO_SILENT_SUCCESS, exports.InteractionType.Silent, response);
|
|
15717
|
+
ssoSilentMeasurement.addStaticFields({
|
|
15718
|
+
accessTokenSize: response.accessToken.length,
|
|
15719
|
+
idTokenSize: response.idToken.length
|
|
15720
|
+
});
|
|
15640
15721
|
ssoSilentMeasurement.endMeasurement({
|
|
15641
15722
|
success: true,
|
|
15642
15723
|
isNativeBroker: response.fromNativeBroker,
|
|
15643
|
-
accessTokenSize: response.accessToken.length,
|
|
15644
|
-
idTokenSize: response.idToken.length,
|
|
15645
15724
|
requestId: response.requestId
|
|
15646
15725
|
});
|
|
15647
15726
|
ssoSilentMeasurement.flushMeasurement();
|
|
@@ -15689,10 +15768,12 @@ var ClientApplication = /** @class */ (function () {
|
|
|
15689
15768
|
.then(function (result) {
|
|
15690
15769
|
_this.eventHandler.emitEvent(exports.EventType.ACQUIRE_TOKEN_BY_CODE_SUCCESS, exports.InteractionType.Silent, result);
|
|
15691
15770
|
_this.hybridAuthCodeResponses.delete(hybridAuthCode_1);
|
|
15771
|
+
atbcMeasurement.addStaticFields({
|
|
15772
|
+
accessTokenSize: result.accessToken.length,
|
|
15773
|
+
idTokenSize: result.idToken.length
|
|
15774
|
+
});
|
|
15692
15775
|
atbcMeasurement.endMeasurement({
|
|
15693
15776
|
success: true,
|
|
15694
|
-
accessTokenSize: result.accessToken.length,
|
|
15695
|
-
idTokenSize: result.idToken.length,
|
|
15696
15777
|
isNativeBroker: result.fromNativeBroker,
|
|
15697
15778
|
requestId: result.requestId
|
|
15698
15779
|
});
|
|
@@ -16293,6 +16374,9 @@ var PublicClientApplication = /** @class */ (function (_super) {
|
|
|
16293
16374
|
return __generator$1(this, function (_a) {
|
|
16294
16375
|
correlationId = this.getRequestCorrelationId(request);
|
|
16295
16376
|
atsMeasurement = this.performanceClient.startMeasurement(exports.PerformanceEvents.AcquireTokenSilent, correlationId);
|
|
16377
|
+
atsMeasurement.addStaticFields({
|
|
16378
|
+
cacheLookupPolicy: request.cacheLookupPolicy
|
|
16379
|
+
});
|
|
16296
16380
|
this.preflightBrowserEnvironmentCheck(exports.InteractionType.Silent);
|
|
16297
16381
|
this.logger.verbose("acquireTokenSilent called", correlationId);
|
|
16298
16382
|
account = request.account || this.getActiveAccount();
|
|
@@ -16318,13 +16402,14 @@ var PublicClientApplication = /** @class */ (function (_super) {
|
|
|
16318
16402
|
response = this.acquireTokenSilentAsync(__assign$1(__assign$1({}, request), { correlationId: correlationId }), account)
|
|
16319
16403
|
.then(function (result) {
|
|
16320
16404
|
_this.activeSilentTokenRequests.delete(silentRequestKey);
|
|
16405
|
+
atsMeasurement.addStaticFields({
|
|
16406
|
+
accessTokenSize: result.accessToken.length,
|
|
16407
|
+
idTokenSize: result.idToken.length
|
|
16408
|
+
});
|
|
16321
16409
|
atsMeasurement.endMeasurement({
|
|
16322
16410
|
success: true,
|
|
16323
16411
|
fromCache: result.fromCache,
|
|
16324
|
-
accessTokenSize: result.accessToken.length,
|
|
16325
|
-
idTokenSize: result.idToken.length,
|
|
16326
16412
|
isNativeBroker: result.fromNativeBroker,
|
|
16327
|
-
cacheLookupPolicy: request.cacheLookupPolicy,
|
|
16328
16413
|
requestId: result.requestId
|
|
16329
16414
|
});
|
|
16330
16415
|
atsMeasurement.flushMeasurement();
|
|
@@ -16425,8 +16510,6 @@ var PublicClientApplication = /** @class */ (function (_super) {
|
|
|
16425
16510
|
astsAsyncMeasurement.endMeasurement({
|
|
16426
16511
|
success: true,
|
|
16427
16512
|
fromCache: response.fromCache,
|
|
16428
|
-
accessTokenSize: response.accessToken.length,
|
|
16429
|
-
idTokenSize: response.idToken.length,
|
|
16430
16513
|
isNativeBroker: response.fromNativeBroker,
|
|
16431
16514
|
requestId: response.requestId
|
|
16432
16515
|
});
|