@azure/msal-browser 2.31.0 → 2.32.1
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 -1
- package/dist/_virtual/_tslib.js +1 -1
- package/dist/app/ClientApplication.js +1 -1
- package/dist/app/IPublicClientApplication.js +1 -1
- package/dist/app/PublicClientApplication.js +1 -1
- package/dist/broker/nativeBroker/NativeMessageHandler.js +1 -1
- package/dist/cache/AsyncMemoryStorage.js +1 -1
- package/dist/cache/BrowserCacheManager.d.ts +9 -0
- package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
- package/dist/cache/BrowserCacheManager.js +14 -1
- package/dist/cache/BrowserCacheManager.js.map +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 +164 -88
- 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.js +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.d.ts +2 -1
- package/dist/utils/BrowserConstants.d.ts.map +1 -1
- package/dist/utils/BrowserConstants.js +2 -1
- package/dist/utils/BrowserConstants.js.map +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 +164 -88
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +41 -40
- 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.1 2022-12-07 */
|
|
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.1 2022-12-07 */
|
|
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.1 2022-12-07 */
|
|
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",
|
|
@@ -257,7 +258,8 @@ var Constants = {
|
|
|
257
258
|
KNOWN_PUBLIC_CLOUDS: ["login.microsoftonline.com", "login.windows.net", "login.microsoft.com", "sts.windows.net"],
|
|
258
259
|
TOKEN_RESPONSE_TYPE: "token",
|
|
259
260
|
ID_TOKEN_RESPONSE_TYPE: "id_token",
|
|
260
|
-
SHR_NONCE_VALIDITY: 240
|
|
261
|
+
SHR_NONCE_VALIDITY: 240,
|
|
262
|
+
INVALID_INSTANCE: "invalid_instance",
|
|
261
263
|
};
|
|
262
264
|
var OIDC_DEFAULT_SCOPES = [
|
|
263
265
|
Constants.OPENID_SCOPE,
|
|
@@ -585,7 +587,7 @@ var JsonTypes;
|
|
|
585
587
|
JsonTypes["Jwk"] = "JWK";
|
|
586
588
|
})(JsonTypes || (JsonTypes = {}));
|
|
587
589
|
|
|
588
|
-
/*! @azure/msal-common
|
|
590
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
589
591
|
|
|
590
592
|
/*
|
|
591
593
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -641,7 +643,7 @@ var AuthError = /** @class */ (function (_super) {
|
|
|
641
643
|
return AuthError;
|
|
642
644
|
}(Error));
|
|
643
645
|
|
|
644
|
-
/*! @azure/msal-common
|
|
646
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
645
647
|
|
|
646
648
|
/*
|
|
647
649
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -716,7 +718,7 @@ var DEFAULT_CRYPTO_IMPLEMENTATION = {
|
|
|
716
718
|
}
|
|
717
719
|
};
|
|
718
720
|
|
|
719
|
-
/*! @azure/msal-common
|
|
721
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
720
722
|
|
|
721
723
|
/*
|
|
722
724
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1211,7 +1213,7 @@ var ClientAuthError = /** @class */ (function (_super) {
|
|
|
1211
1213
|
return ClientAuthError;
|
|
1212
1214
|
}(AuthError));
|
|
1213
1215
|
|
|
1214
|
-
/*! @azure/msal-common
|
|
1216
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
1215
1217
|
|
|
1216
1218
|
/*
|
|
1217
1219
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1336,7 +1338,7 @@ var StringUtils = /** @class */ (function () {
|
|
|
1336
1338
|
return StringUtils;
|
|
1337
1339
|
}());
|
|
1338
1340
|
|
|
1339
|
-
/*! @azure/msal-common
|
|
1341
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
1340
1342
|
|
|
1341
1343
|
/*
|
|
1342
1344
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1516,12 +1518,12 @@ var Logger = /** @class */ (function () {
|
|
|
1516
1518
|
return Logger;
|
|
1517
1519
|
}());
|
|
1518
1520
|
|
|
1519
|
-
/*! @azure/msal-common
|
|
1521
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
1520
1522
|
/* eslint-disable header/header */
|
|
1521
1523
|
var name$1 = "@azure/msal-common";
|
|
1522
|
-
var version$1 = "
|
|
1524
|
+
var version$1 = "9.0.1";
|
|
1523
1525
|
|
|
1524
|
-
/*! @azure/msal-common
|
|
1526
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
1525
1527
|
/*
|
|
1526
1528
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1527
1529
|
* Licensed under the MIT License.
|
|
@@ -1542,7 +1544,7 @@ exports.AzureCloudInstance = void 0;
|
|
|
1542
1544
|
AzureCloudInstance["AzureUsGovernment"] = "https://login.microsoftonline.us";
|
|
1543
1545
|
})(exports.AzureCloudInstance || (exports.AzureCloudInstance = {}));
|
|
1544
1546
|
|
|
1545
|
-
/*! @azure/msal-common
|
|
1547
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
1546
1548
|
|
|
1547
1549
|
/*
|
|
1548
1550
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1701,7 +1703,7 @@ var CredentialEntity = /** @class */ (function () {
|
|
|
1701
1703
|
return CredentialEntity;
|
|
1702
1704
|
}());
|
|
1703
1705
|
|
|
1704
|
-
/*! @azure/msal-common
|
|
1706
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
1705
1707
|
|
|
1706
1708
|
/*
|
|
1707
1709
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1956,7 +1958,7 @@ var ClientConfigurationError = /** @class */ (function (_super) {
|
|
|
1956
1958
|
return ClientConfigurationError;
|
|
1957
1959
|
}(ClientAuthError));
|
|
1958
1960
|
|
|
1959
|
-
/*! @azure/msal-common
|
|
1961
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
1960
1962
|
|
|
1961
1963
|
/*
|
|
1962
1964
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2140,7 +2142,7 @@ var ScopeSet = /** @class */ (function () {
|
|
|
2140
2142
|
return ScopeSet;
|
|
2141
2143
|
}());
|
|
2142
2144
|
|
|
2143
|
-
/*! @azure/msal-common
|
|
2145
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
2144
2146
|
|
|
2145
2147
|
/*
|
|
2146
2148
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2178,7 +2180,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
|
|
|
2178
2180
|
};
|
|
2179
2181
|
}
|
|
2180
2182
|
|
|
2181
|
-
/*! @azure/msal-common
|
|
2183
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
2182
2184
|
/*
|
|
2183
2185
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2184
2186
|
* Licensed under the MIT License.
|
|
@@ -2193,7 +2195,7 @@ var AuthorityType;
|
|
|
2193
2195
|
AuthorityType[AuthorityType["Dsts"] = 2] = "Dsts";
|
|
2194
2196
|
})(AuthorityType || (AuthorityType = {}));
|
|
2195
2197
|
|
|
2196
|
-
/*! @azure/msal-common
|
|
2198
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
2197
2199
|
|
|
2198
2200
|
/*
|
|
2199
2201
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2432,7 +2434,7 @@ var AccountEntity = /** @class */ (function () {
|
|
|
2432
2434
|
return AccountEntity;
|
|
2433
2435
|
}());
|
|
2434
2436
|
|
|
2435
|
-
/*! @azure/msal-common
|
|
2437
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
2436
2438
|
|
|
2437
2439
|
/*
|
|
2438
2440
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2484,7 +2486,7 @@ var AuthToken = /** @class */ (function () {
|
|
|
2484
2486
|
return AuthToken;
|
|
2485
2487
|
}());
|
|
2486
2488
|
|
|
2487
|
-
/*! @azure/msal-common
|
|
2489
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
2488
2490
|
|
|
2489
2491
|
/*
|
|
2490
2492
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3363,7 +3365,7 @@ var DefaultStorageClass = /** @class */ (function (_super) {
|
|
|
3363
3365
|
return DefaultStorageClass;
|
|
3364
3366
|
}(CacheManager));
|
|
3365
3367
|
|
|
3366
|
-
/*! @azure/msal-common
|
|
3368
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
3367
3369
|
|
|
3368
3370
|
/*
|
|
3369
3371
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3457,7 +3459,7 @@ function buildAuthOptions(authOptions) {
|
|
|
3457
3459
|
return __assign({ clientCapabilities: [], azureCloudOptions: DEFAULT_AZURE_CLOUD_OPTIONS, skipAuthorityMetadataCache: false }, authOptions);
|
|
3458
3460
|
}
|
|
3459
3461
|
|
|
3460
|
-
/*! @azure/msal-common
|
|
3462
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
3461
3463
|
|
|
3462
3464
|
/*
|
|
3463
3465
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3477,7 +3479,7 @@ var ServerError = /** @class */ (function (_super) {
|
|
|
3477
3479
|
return ServerError;
|
|
3478
3480
|
}(AuthError));
|
|
3479
3481
|
|
|
3480
|
-
/*! @azure/msal-common
|
|
3482
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
3481
3483
|
|
|
3482
3484
|
/*
|
|
3483
3485
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3573,7 +3575,7 @@ var ThrottlingUtils = /** @class */ (function () {
|
|
|
3573
3575
|
return ThrottlingUtils;
|
|
3574
3576
|
}());
|
|
3575
3577
|
|
|
3576
|
-
/*! @azure/msal-common
|
|
3578
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
3577
3579
|
|
|
3578
3580
|
/*
|
|
3579
3581
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3622,7 +3624,7 @@ var NetworkManager = /** @class */ (function () {
|
|
|
3622
3624
|
return NetworkManager;
|
|
3623
3625
|
}());
|
|
3624
3626
|
|
|
3625
|
-
/*! @azure/msal-common
|
|
3627
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
3626
3628
|
/*
|
|
3627
3629
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3628
3630
|
* Licensed under the MIT License.
|
|
@@ -3633,7 +3635,7 @@ var CcsCredentialType;
|
|
|
3633
3635
|
CcsCredentialType["UPN"] = "UPN";
|
|
3634
3636
|
})(CcsCredentialType || (CcsCredentialType = {}));
|
|
3635
3637
|
|
|
3636
|
-
/*! @azure/msal-common
|
|
3638
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
3637
3639
|
|
|
3638
3640
|
/*
|
|
3639
3641
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3724,7 +3726,7 @@ var BaseClient = /** @class */ (function () {
|
|
|
3724
3726
|
return BaseClient;
|
|
3725
3727
|
}());
|
|
3726
3728
|
|
|
3727
|
-
/*! @azure/msal-common
|
|
3729
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
3728
3730
|
|
|
3729
3731
|
/*
|
|
3730
3732
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3810,7 +3812,7 @@ var RequestValidator = /** @class */ (function () {
|
|
|
3810
3812
|
return RequestValidator;
|
|
3811
3813
|
}());
|
|
3812
3814
|
|
|
3813
|
-
/*! @azure/msal-common
|
|
3815
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
3814
3816
|
|
|
3815
3817
|
/*
|
|
3816
3818
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4188,7 +4190,7 @@ var RequestParameterBuilder = /** @class */ (function () {
|
|
|
4188
4190
|
return RequestParameterBuilder;
|
|
4189
4191
|
}());
|
|
4190
4192
|
|
|
4191
|
-
/*! @azure/msal-common
|
|
4193
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
4192
4194
|
|
|
4193
4195
|
/*
|
|
4194
4196
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4252,7 +4254,7 @@ var IdTokenEntity = /** @class */ (function (_super) {
|
|
|
4252
4254
|
return IdTokenEntity;
|
|
4253
4255
|
}(CredentialEntity));
|
|
4254
4256
|
|
|
4255
|
-
/*! @azure/msal-common
|
|
4257
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
4256
4258
|
/*
|
|
4257
4259
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4258
4260
|
* Licensed under the MIT License.
|
|
@@ -4302,7 +4304,7 @@ var TimeUtils = /** @class */ (function () {
|
|
|
4302
4304
|
return TimeUtils;
|
|
4303
4305
|
}());
|
|
4304
4306
|
|
|
4305
|
-
/*! @azure/msal-common
|
|
4307
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
4306
4308
|
|
|
4307
4309
|
/*
|
|
4308
4310
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4416,7 +4418,7 @@ var AccessTokenEntity = /** @class */ (function (_super) {
|
|
|
4416
4418
|
return AccessTokenEntity;
|
|
4417
4419
|
}(CredentialEntity));
|
|
4418
4420
|
|
|
4419
|
-
/*! @azure/msal-common
|
|
4421
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
4420
4422
|
|
|
4421
4423
|
/*
|
|
4422
4424
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4483,7 +4485,7 @@ var RefreshTokenEntity = /** @class */ (function (_super) {
|
|
|
4483
4485
|
return RefreshTokenEntity;
|
|
4484
4486
|
}(CredentialEntity));
|
|
4485
4487
|
|
|
4486
|
-
/*! @azure/msal-common
|
|
4488
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
4487
4489
|
|
|
4488
4490
|
/*
|
|
4489
4491
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4558,7 +4560,7 @@ var InteractionRequiredAuthError = /** @class */ (function (_super) {
|
|
|
4558
4560
|
return InteractionRequiredAuthError;
|
|
4559
4561
|
}(AuthError));
|
|
4560
4562
|
|
|
4561
|
-
/*! @azure/msal-common
|
|
4563
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
4562
4564
|
/*
|
|
4563
4565
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4564
4566
|
* Licensed under the MIT License.
|
|
@@ -4574,7 +4576,7 @@ var CacheRecord = /** @class */ (function () {
|
|
|
4574
4576
|
return CacheRecord;
|
|
4575
4577
|
}());
|
|
4576
4578
|
|
|
4577
|
-
/*! @azure/msal-common
|
|
4579
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
4578
4580
|
|
|
4579
4581
|
/*
|
|
4580
4582
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4645,7 +4647,7 @@ var ProtocolUtils = /** @class */ (function () {
|
|
|
4645
4647
|
return ProtocolUtils;
|
|
4646
4648
|
}());
|
|
4647
4649
|
|
|
4648
|
-
/*! @azure/msal-common
|
|
4650
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
4649
4651
|
|
|
4650
4652
|
/*
|
|
4651
4653
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4879,7 +4881,7 @@ var UrlString = /** @class */ (function () {
|
|
|
4879
4881
|
return UrlString;
|
|
4880
4882
|
}());
|
|
4881
4883
|
|
|
4882
|
-
/*! @azure/msal-common
|
|
4884
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
4883
4885
|
|
|
4884
4886
|
/*
|
|
4885
4887
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4980,7 +4982,7 @@ var PopTokenGenerator = /** @class */ (function () {
|
|
|
4980
4982
|
return PopTokenGenerator;
|
|
4981
4983
|
}());
|
|
4982
4984
|
|
|
4983
|
-
/*! @azure/msal-common
|
|
4985
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
4984
4986
|
|
|
4985
4987
|
/*
|
|
4986
4988
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5050,7 +5052,7 @@ var AppMetadataEntity = /** @class */ (function () {
|
|
|
5050
5052
|
return AppMetadataEntity;
|
|
5051
5053
|
}());
|
|
5052
5054
|
|
|
5053
|
-
/*! @azure/msal-common
|
|
5055
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
5054
5056
|
/*
|
|
5055
5057
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5056
5058
|
* Licensed under the MIT License.
|
|
@@ -5086,7 +5088,7 @@ var AppMetadataEntity = /** @class */ (function () {
|
|
|
5086
5088
|
return TokenCacheContext;
|
|
5087
5089
|
}());
|
|
5088
5090
|
|
|
5089
|
-
/*! @azure/msal-common
|
|
5091
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
5090
5092
|
|
|
5091
5093
|
/*
|
|
5092
5094
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5366,7 +5368,7 @@ var ResponseHandler = /** @class */ (function () {
|
|
|
5366
5368
|
return ResponseHandler;
|
|
5367
5369
|
}());
|
|
5368
5370
|
|
|
5369
|
-
/*! @azure/msal-common
|
|
5371
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
5370
5372
|
|
|
5371
5373
|
/*
|
|
5372
5374
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5819,7 +5821,7 @@ var AuthorizationCodeClient = /** @class */ (function (_super) {
|
|
|
5819
5821
|
return AuthorizationCodeClient;
|
|
5820
5822
|
}(BaseClient));
|
|
5821
5823
|
|
|
5822
|
-
/*! @azure/msal-common
|
|
5824
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
5823
5825
|
/*
|
|
5824
5826
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5825
5827
|
* Licensed under the MIT License.
|
|
@@ -5944,7 +5946,7 @@ var PerformanceEventStatus;
|
|
|
5944
5946
|
PerformanceEventStatus[PerformanceEventStatus["Completed"] = 2] = "Completed";
|
|
5945
5947
|
})(PerformanceEventStatus || (PerformanceEventStatus = {}));
|
|
5946
5948
|
|
|
5947
|
-
/*! @azure/msal-common
|
|
5949
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
5948
5950
|
|
|
5949
5951
|
/*
|
|
5950
5952
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6209,7 +6211,7 @@ var RefreshTokenClient = /** @class */ (function (_super) {
|
|
|
6209
6211
|
return RefreshTokenClient;
|
|
6210
6212
|
}(BaseClient));
|
|
6211
6213
|
|
|
6212
|
-
/*! @azure/msal-common
|
|
6214
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
6213
6215
|
|
|
6214
6216
|
/*
|
|
6215
6217
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6333,7 +6335,7 @@ var SilentFlowClient = /** @class */ (function (_super) {
|
|
|
6333
6335
|
return SilentFlowClient;
|
|
6334
6336
|
}(BaseClient));
|
|
6335
6337
|
|
|
6336
|
-
/*! @azure/msal-common
|
|
6338
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
6337
6339
|
/*
|
|
6338
6340
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6339
6341
|
* Licensed under the MIT License.
|
|
@@ -6345,7 +6347,7 @@ function isOpenIdConfigResponse(response) {
|
|
|
6345
6347
|
response.hasOwnProperty("jwks_uri"));
|
|
6346
6348
|
}
|
|
6347
6349
|
|
|
6348
|
-
/*! @azure/msal-common
|
|
6350
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
6349
6351
|
/*
|
|
6350
6352
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6351
6353
|
* Licensed under the MIT License.
|
|
@@ -6354,7 +6356,7 @@ var rawMetdataJSON = { "endpointMetadata": { "https://login.microsoftonline.com/
|
|
|
6354
6356
|
var EndpointMetadata = rawMetdataJSON.endpointMetadata;
|
|
6355
6357
|
var InstanceDiscoveryMetadata = rawMetdataJSON.instanceDiscoveryMetadata;
|
|
6356
6358
|
|
|
6357
|
-
/*! @azure/msal-common
|
|
6359
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
6358
6360
|
/*
|
|
6359
6361
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6360
6362
|
* Licensed under the MIT License.
|
|
@@ -6368,7 +6370,7 @@ exports.ProtocolMode = void 0;
|
|
|
6368
6370
|
ProtocolMode["OIDC"] = "OIDC";
|
|
6369
6371
|
})(exports.ProtocolMode || (exports.ProtocolMode = {}));
|
|
6370
6372
|
|
|
6371
|
-
/*! @azure/msal-common
|
|
6373
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
6372
6374
|
|
|
6373
6375
|
/*
|
|
6374
6376
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6445,7 +6447,7 @@ var AuthorityMetadataEntity = /** @class */ (function () {
|
|
|
6445
6447
|
return AuthorityMetadataEntity;
|
|
6446
6448
|
}());
|
|
6447
6449
|
|
|
6448
|
-
/*! @azure/msal-common
|
|
6450
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
6449
6451
|
/*
|
|
6450
6452
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6451
6453
|
* Licensed under the MIT License.
|
|
@@ -6455,7 +6457,17 @@ function isCloudInstanceDiscoveryResponse(response) {
|
|
|
6455
6457
|
response.hasOwnProperty("metadata"));
|
|
6456
6458
|
}
|
|
6457
6459
|
|
|
6458
|
-
/*! @azure/msal-common
|
|
6460
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
6461
|
+
/*
|
|
6462
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6463
|
+
* Licensed under the MIT License.
|
|
6464
|
+
*/
|
|
6465
|
+
function isCloudInstanceDiscoveryErrorResponse(response) {
|
|
6466
|
+
return (response.hasOwnProperty("error") &&
|
|
6467
|
+
response.hasOwnProperty("error_description"));
|
|
6468
|
+
}
|
|
6469
|
+
|
|
6470
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
6459
6471
|
|
|
6460
6472
|
/*
|
|
6461
6473
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6577,7 +6589,7 @@ var RegionDiscovery = /** @class */ (function () {
|
|
|
6577
6589
|
return RegionDiscovery;
|
|
6578
6590
|
}());
|
|
6579
6591
|
|
|
6580
|
-
/*! @azure/msal-common
|
|
6592
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
6581
6593
|
|
|
6582
6594
|
/*
|
|
6583
6595
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6588,7 +6600,7 @@ var RegionDiscovery = /** @class */ (function () {
|
|
|
6588
6600
|
* endpoint. It will store the pertinent config data in this object for use during token calls.
|
|
6589
6601
|
*/
|
|
6590
6602
|
var Authority = /** @class */ (function () {
|
|
6591
|
-
function Authority(authority, networkInterface, cacheManager, authorityOptions, proxyUrl) {
|
|
6603
|
+
function Authority(authority, networkInterface, cacheManager, authorityOptions, logger, proxyUrl) {
|
|
6592
6604
|
this.canonicalAuthority = authority;
|
|
6593
6605
|
this._canonicalAuthority.validateAsUri();
|
|
6594
6606
|
this.networkInterface = networkInterface;
|
|
@@ -6597,6 +6609,7 @@ var Authority = /** @class */ (function () {
|
|
|
6597
6609
|
this.regionDiscovery = new RegionDiscovery(networkInterface);
|
|
6598
6610
|
this.regionDiscoveryMetadata = { region_used: undefined, region_source: undefined, region_outcome: undefined };
|
|
6599
6611
|
this.proxyUrl = proxyUrl || Constants.EMPTY_STRING;
|
|
6612
|
+
this.logger = logger;
|
|
6600
6613
|
}
|
|
6601
6614
|
Object.defineProperty(Authority.prototype, "authorityType", {
|
|
6602
6615
|
// See above for AuthorityType
|
|
@@ -7023,36 +7036,50 @@ var Authority = /** @class */ (function () {
|
|
|
7023
7036
|
*/
|
|
7024
7037
|
Authority.prototype.updateCloudDiscoveryMetadata = function (metadataEntity) {
|
|
7025
7038
|
return __awaiter(this, void 0, void 0, function () {
|
|
7026
|
-
var metadata, harcodedMetadata;
|
|
7039
|
+
var metadata, metadataEntityExpired, harcodedMetadata;
|
|
7027
7040
|
return __generator(this, function (_a) {
|
|
7028
7041
|
switch (_a.label) {
|
|
7029
7042
|
case 0:
|
|
7043
|
+
this.logger.verbose("Attempting to get cloud discovery metadata in the config");
|
|
7044
|
+
this.logger.verbosePii("Known Authorities: " + (this.authorityOptions.knownAuthorities || Constants.NOT_APPLICABLE));
|
|
7045
|
+
this.logger.verbosePii("Authority Metadata: " + (this.authorityOptions.authorityMetadata || Constants.NOT_APPLICABLE));
|
|
7046
|
+
this.logger.verbosePii("Canonical Authority: " + (metadataEntity.canonical_authority || Constants.NOT_APPLICABLE));
|
|
7030
7047
|
metadata = this.getCloudDiscoveryMetadataFromConfig();
|
|
7031
7048
|
if (metadata) {
|
|
7049
|
+
this.logger.verbose("Found cloud discovery metadata in the config.");
|
|
7032
7050
|
metadataEntity.updateCloudDiscoveryMetadata(metadata, false);
|
|
7033
7051
|
return [2 /*return*/, AuthorityMetadataSource.CONFIG];
|
|
7034
7052
|
}
|
|
7035
|
-
// If
|
|
7036
|
-
|
|
7053
|
+
// If the cached metadata came from config but that config was not passed to this instance, we must go to the network
|
|
7054
|
+
this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the cache.");
|
|
7055
|
+
metadataEntityExpired = metadataEntity.isExpired();
|
|
7056
|
+
if (this.isAuthoritySameType(metadataEntity) && metadataEntity.aliasesFromNetwork && !metadataEntityExpired) {
|
|
7057
|
+
this.logger.verbose("Found metadata in the cache.");
|
|
7037
7058
|
// No need to update
|
|
7038
7059
|
return [2 /*return*/, AuthorityMetadataSource.CACHE];
|
|
7039
7060
|
}
|
|
7040
|
-
|
|
7061
|
+
else if (metadataEntityExpired) {
|
|
7062
|
+
this.logger.verbose("The metadata entity is expired.");
|
|
7063
|
+
}
|
|
7064
|
+
this.logger.verbose("Did not find cloud discovery metadata in the cache... Attempting to get cloud discovery metadata from the network.");
|
|
7041
7065
|
return [4 /*yield*/, this.getCloudDiscoveryMetadataFromNetwork()];
|
|
7042
7066
|
case 1:
|
|
7043
7067
|
metadata = _a.sent();
|
|
7044
7068
|
if (metadata) {
|
|
7069
|
+
this.logger.verbose("cloud discovery metadata was successfully returned from getCloudDiscoveryMetadataFromNetwork()");
|
|
7045
7070
|
metadataEntity.updateCloudDiscoveryMetadata(metadata, true);
|
|
7046
7071
|
return [2 /*return*/, AuthorityMetadataSource.NETWORK];
|
|
7047
7072
|
}
|
|
7073
|
+
this.logger.verbose("Did not find cloud discovery metadata from the network... Attempting to get cloud discovery metadata from hardcoded values.");
|
|
7074
|
+
harcodedMetadata = this.getCloudDiscoveryMetadataFromHarcodedValues();
|
|
7048
7075
|
if (harcodedMetadata && !this.options.skipAuthorityMetadataCache) {
|
|
7076
|
+
this.logger.verbose("Found cloud discovery metadata from hardcoded values.");
|
|
7049
7077
|
metadataEntity.updateCloudDiscoveryMetadata(harcodedMetadata, false);
|
|
7050
7078
|
return [2 /*return*/, AuthorityMetadataSource.HARDCODED_VALUES];
|
|
7051
7079
|
}
|
|
7052
|
-
|
|
7053
|
-
|
|
7054
|
-
|
|
7055
|
-
}
|
|
7080
|
+
// Metadata could not be obtained from the config, cache, network or hardcoded values
|
|
7081
|
+
this.logger.error("Did not find cloud discovery metadata from hardcoded values... Metadata could not be obtained from config, cache, network or hardcoded values. Throwing Untrusted Authority Error.");
|
|
7082
|
+
throw ClientConfigurationError.createUntrustedAuthorityError();
|
|
7056
7083
|
}
|
|
7057
7084
|
});
|
|
7058
7085
|
});
|
|
@@ -7063,19 +7090,28 @@ var Authority = /** @class */ (function () {
|
|
|
7063
7090
|
Authority.prototype.getCloudDiscoveryMetadataFromConfig = function () {
|
|
7064
7091
|
// Check if network response was provided in config
|
|
7065
7092
|
if (this.authorityOptions.cloudDiscoveryMetadata) {
|
|
7093
|
+
this.logger.verbose("The cloud discovery metadata has been provided as a network response, in the config.");
|
|
7066
7094
|
try {
|
|
7095
|
+
this.logger.verbose("Attempting to parse the cloud discovery metadata.");
|
|
7067
7096
|
var parsedResponse = JSON.parse(this.authorityOptions.cloudDiscoveryMetadata);
|
|
7068
7097
|
var metadata = Authority.getCloudDiscoveryMetadataFromNetworkResponse(parsedResponse.metadata, this.hostnameAndPort);
|
|
7098
|
+
this.logger.verbose("Parsed the cloud discovery metadata.");
|
|
7069
7099
|
if (metadata) {
|
|
7100
|
+
this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata.");
|
|
7070
7101
|
return metadata;
|
|
7071
7102
|
}
|
|
7103
|
+
else {
|
|
7104
|
+
this.logger.verbose("There is no metadata attached to the parsed cloud discovery metadata.");
|
|
7105
|
+
}
|
|
7072
7106
|
}
|
|
7073
7107
|
catch (e) {
|
|
7108
|
+
this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error.");
|
|
7074
7109
|
throw ClientConfigurationError.createInvalidCloudDiscoveryMetadataError();
|
|
7075
7110
|
}
|
|
7076
7111
|
}
|
|
7077
7112
|
// If cloudDiscoveryMetadata is empty or does not contain the host, check knownAuthorities
|
|
7078
7113
|
if (this.isInKnownAuthorities()) {
|
|
7114
|
+
this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host.");
|
|
7079
7115
|
return Authority.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);
|
|
7080
7116
|
}
|
|
7081
7117
|
return null;
|
|
@@ -7087,7 +7123,7 @@ var Authority = /** @class */ (function () {
|
|
|
7087
7123
|
*/
|
|
7088
7124
|
Authority.prototype.getCloudDiscoveryMetadataFromNetwork = function () {
|
|
7089
7125
|
return __awaiter(this, void 0, void 0, function () {
|
|
7090
|
-
var instanceDiscoveryEndpoint, options, match, response, metadata;
|
|
7126
|
+
var instanceDiscoveryEndpoint, options, match, response, typedResponseBody, metadata, error_1, typedError;
|
|
7091
7127
|
return __generator(this, function (_a) {
|
|
7092
7128
|
switch (_a.label) {
|
|
7093
7129
|
case 0:
|
|
@@ -7103,21 +7139,47 @@ var Authority = /** @class */ (function () {
|
|
|
7103
7139
|
return [4 /*yield*/, this.networkInterface.sendGetRequestAsync(instanceDiscoveryEndpoint, options)];
|
|
7104
7140
|
case 2:
|
|
7105
7141
|
response = _a.sent();
|
|
7106
|
-
|
|
7107
|
-
|
|
7108
|
-
|
|
7109
|
-
|
|
7110
|
-
|
|
7142
|
+
typedResponseBody = void 0;
|
|
7143
|
+
metadata = void 0;
|
|
7144
|
+
if (isCloudInstanceDiscoveryResponse(response.body)) {
|
|
7145
|
+
typedResponseBody = response.body;
|
|
7146
|
+
metadata = typedResponseBody.metadata;
|
|
7147
|
+
this.logger.verbosePii("tenant_discovery_endpoint is: " + typedResponseBody.tenant_discovery_endpoint);
|
|
7148
|
+
}
|
|
7149
|
+
else if (isCloudInstanceDiscoveryErrorResponse(response.body)) {
|
|
7150
|
+
this.logger.warning("A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: " + response.status);
|
|
7151
|
+
typedResponseBody = response.body;
|
|
7152
|
+
if (typedResponseBody.error === Constants.INVALID_INSTANCE) {
|
|
7153
|
+
this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance.");
|
|
7154
|
+
return [2 /*return*/, null];
|
|
7155
|
+
}
|
|
7156
|
+
this.logger.warning("The CloudInstanceDiscoveryErrorResponse error is " + typedResponseBody.error);
|
|
7157
|
+
this.logger.warning("The CloudInstanceDiscoveryErrorResponse error description is " + typedResponseBody.error_description);
|
|
7158
|
+
this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []");
|
|
7159
|
+
metadata = [];
|
|
7160
|
+
}
|
|
7161
|
+
else {
|
|
7162
|
+
this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse");
|
|
7111
7163
|
return [2 /*return*/, null];
|
|
7112
7164
|
}
|
|
7165
|
+
this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request.");
|
|
7113
7166
|
match = Authority.getCloudDiscoveryMetadataFromNetworkResponse(metadata, this.hostnameAndPort);
|
|
7114
7167
|
return [3 /*break*/, 4];
|
|
7115
7168
|
case 3:
|
|
7116
|
-
_a.sent();
|
|
7169
|
+
error_1 = _a.sent();
|
|
7170
|
+
if (error_1 instanceof AuthError) {
|
|
7171
|
+
this.logger.error("There was a network error while attempting to get the cloud discovery instance metadata.\nError: " + error_1.errorCode + "\nError Description: " + error_1.errorMessage);
|
|
7172
|
+
}
|
|
7173
|
+
else {
|
|
7174
|
+
typedError = error_1;
|
|
7175
|
+
this.logger.error("A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.\nError: " + typedError.name + "\nError Description: " + typedError.message);
|
|
7176
|
+
}
|
|
7117
7177
|
return [2 /*return*/, null];
|
|
7118
7178
|
case 4:
|
|
7179
|
+
// Custom Domain scenario, host is trusted because Instance Discovery call succeeded
|
|
7119
7180
|
if (!match) {
|
|
7120
|
-
|
|
7181
|
+
this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request.");
|
|
7182
|
+
this.logger.verbose("Creating custom Authority for custom domain scenario.");
|
|
7121
7183
|
match = Authority.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);
|
|
7122
7184
|
}
|
|
7123
7185
|
return [2 /*return*/, match];
|
|
@@ -7249,7 +7311,7 @@ var Authority = /** @class */ (function () {
|
|
|
7249
7311
|
return Authority;
|
|
7250
7312
|
}());
|
|
7251
7313
|
|
|
7252
|
-
/*! @azure/msal-common
|
|
7314
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
7253
7315
|
|
|
7254
7316
|
/*
|
|
7255
7317
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7268,13 +7330,13 @@ var AuthorityFactory = /** @class */ (function () {
|
|
|
7268
7330
|
* @param networkClient
|
|
7269
7331
|
* @param protocolMode
|
|
7270
7332
|
*/
|
|
7271
|
-
AuthorityFactory.createDiscoveredInstance = function (authorityUri, networkClient, cacheManager, authorityOptions, proxyUrl) {
|
|
7333
|
+
AuthorityFactory.createDiscoveredInstance = function (authorityUri, networkClient, cacheManager, authorityOptions, logger, proxyUrl) {
|
|
7272
7334
|
return __awaiter(this, void 0, void 0, function () {
|
|
7273
7335
|
var acquireTokenAuthority, e_1;
|
|
7274
7336
|
return __generator(this, function (_a) {
|
|
7275
7337
|
switch (_a.label) {
|
|
7276
7338
|
case 0:
|
|
7277
|
-
acquireTokenAuthority = AuthorityFactory.createInstance(authorityUri, networkClient, cacheManager, authorityOptions, proxyUrl);
|
|
7339
|
+
acquireTokenAuthority = AuthorityFactory.createInstance(authorityUri, networkClient, cacheManager, authorityOptions, logger, proxyUrl);
|
|
7278
7340
|
_a.label = 1;
|
|
7279
7341
|
case 1:
|
|
7280
7342
|
_a.trys.push([1, 3, , 4]);
|
|
@@ -7300,17 +7362,17 @@ var AuthorityFactory = /** @class */ (function () {
|
|
|
7300
7362
|
* @param networkInterface
|
|
7301
7363
|
* @param protocolMode
|
|
7302
7364
|
*/
|
|
7303
|
-
AuthorityFactory.createInstance = function (authorityUrl, networkInterface, cacheManager, authorityOptions, proxyUrl) {
|
|
7365
|
+
AuthorityFactory.createInstance = function (authorityUrl, networkInterface, cacheManager, authorityOptions, logger, proxyUrl) {
|
|
7304
7366
|
// Throw error if authority url is empty
|
|
7305
7367
|
if (StringUtils.isEmpty(authorityUrl)) {
|
|
7306
7368
|
throw ClientConfigurationError.createUrlEmptyError();
|
|
7307
7369
|
}
|
|
7308
|
-
return new Authority(authorityUrl, networkInterface, cacheManager, authorityOptions, proxyUrl);
|
|
7370
|
+
return new Authority(authorityUrl, networkInterface, cacheManager, authorityOptions, logger, proxyUrl);
|
|
7309
7371
|
};
|
|
7310
7372
|
return AuthorityFactory;
|
|
7311
7373
|
}());
|
|
7312
7374
|
|
|
7313
|
-
/*! @azure/msal-common
|
|
7375
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
7314
7376
|
|
|
7315
7377
|
/*
|
|
7316
7378
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7341,7 +7403,7 @@ var ServerTelemetryEntity = /** @class */ (function () {
|
|
|
7341
7403
|
return ServerTelemetryEntity;
|
|
7342
7404
|
}());
|
|
7343
7405
|
|
|
7344
|
-
/*! @azure/msal-common
|
|
7406
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
7345
7407
|
|
|
7346
7408
|
/*
|
|
7347
7409
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7369,7 +7431,7 @@ var ThrottlingEntity = /** @class */ (function () {
|
|
|
7369
7431
|
return ThrottlingEntity;
|
|
7370
7432
|
}());
|
|
7371
7433
|
|
|
7372
|
-
/*! @azure/msal-common
|
|
7434
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
7373
7435
|
|
|
7374
7436
|
/*
|
|
7375
7437
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7386,7 +7448,7 @@ var StubbedNetworkModule = {
|
|
|
7386
7448
|
}
|
|
7387
7449
|
};
|
|
7388
7450
|
|
|
7389
|
-
/*! @azure/msal-common
|
|
7451
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
7390
7452
|
|
|
7391
7453
|
/*
|
|
7392
7454
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7431,7 +7493,7 @@ var JoseHeaderError = /** @class */ (function (_super) {
|
|
|
7431
7493
|
return JoseHeaderError;
|
|
7432
7494
|
}(AuthError));
|
|
7433
7495
|
|
|
7434
|
-
/*! @azure/msal-common
|
|
7496
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
7435
7497
|
|
|
7436
7498
|
/*
|
|
7437
7499
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7471,7 +7533,7 @@ var JoseHeader = /** @class */ (function () {
|
|
|
7471
7533
|
return JoseHeader;
|
|
7472
7534
|
}());
|
|
7473
7535
|
|
|
7474
|
-
/*! @azure/msal-common
|
|
7536
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
7475
7537
|
|
|
7476
7538
|
/*
|
|
7477
7539
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7530,7 +7592,7 @@ var AuthenticationHeaderParser = /** @class */ (function () {
|
|
|
7530
7592
|
return AuthenticationHeaderParser;
|
|
7531
7593
|
}());
|
|
7532
7594
|
|
|
7533
|
-
/*! @azure/msal-common
|
|
7595
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
7534
7596
|
|
|
7535
7597
|
/*
|
|
7536
7598
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7692,7 +7754,7 @@ var ServerTelemetryManager = /** @class */ (function () {
|
|
|
7692
7754
|
return ServerTelemetryManager;
|
|
7693
7755
|
}());
|
|
7694
7756
|
|
|
7695
|
-
/*! @azure/msal-common
|
|
7757
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
7696
7758
|
|
|
7697
7759
|
/*
|
|
7698
7760
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7987,7 +8049,7 @@ var PerformanceClient = /** @class */ (function () {
|
|
|
7987
8049
|
return PerformanceClient;
|
|
7988
8050
|
}());
|
|
7989
8051
|
|
|
7990
|
-
/*! @azure/msal-common
|
|
8052
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
7991
8053
|
|
|
7992
8054
|
/*
|
|
7993
8055
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8576,6 +8638,7 @@ var TemporaryCacheKeys;
|
|
|
8576
8638
|
TemporaryCacheKeys["CCS_CREDENTIAL"] = "ccs.credential";
|
|
8577
8639
|
TemporaryCacheKeys["CORRELATION_ID"] = "request.correlationId";
|
|
8578
8640
|
TemporaryCacheKeys["NATIVE_REQUEST"] = "request.native";
|
|
8641
|
+
TemporaryCacheKeys["REDIRECT_CONTEXT"] = "request.redirect.context";
|
|
8579
8642
|
})(TemporaryCacheKeys || (TemporaryCacheKeys = {}));
|
|
8580
8643
|
/**
|
|
8581
8644
|
* Cache keys stored in-memory
|
|
@@ -9849,6 +9912,19 @@ var BrowserCacheManager = /** @class */ (function (_super) {
|
|
|
9849
9912
|
}
|
|
9850
9913
|
return currentCacheKey;
|
|
9851
9914
|
};
|
|
9915
|
+
/**
|
|
9916
|
+
* Returns application id as redirect context during AcquireTokenRedirect flow.
|
|
9917
|
+
*/
|
|
9918
|
+
BrowserCacheManager.prototype.getRedirectRequestContext = function () {
|
|
9919
|
+
return this.getTemporaryCache(TemporaryCacheKeys.REDIRECT_CONTEXT, true);
|
|
9920
|
+
};
|
|
9921
|
+
/**
|
|
9922
|
+
* Sets application id as the redirect context during AcquireTokenRedirect flow.
|
|
9923
|
+
* @param value
|
|
9924
|
+
*/
|
|
9925
|
+
BrowserCacheManager.prototype.setRedirectRequestContext = function (value) {
|
|
9926
|
+
this.setTemporaryCache(TemporaryCacheKeys.REDIRECT_CONTEXT, value, true);
|
|
9927
|
+
};
|
|
9852
9928
|
return BrowserCacheManager;
|
|
9853
9929
|
}(CacheManager));
|
|
9854
9930
|
var DEFAULT_BROWSER_CACHE_MANAGER = function (clientId, logger) {
|
|
@@ -9862,7 +9938,7 @@ var DEFAULT_BROWSER_CACHE_MANAGER = function (clientId, logger) {
|
|
|
9862
9938
|
|
|
9863
9939
|
/* eslint-disable header/header */
|
|
9864
9940
|
var name = "@azure/msal-browser";
|
|
9865
|
-
var version = "2.
|
|
9941
|
+
var version = "2.32.1";
|
|
9866
9942
|
|
|
9867
9943
|
/*
|
|
9868
9944
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -10415,11 +10491,11 @@ var BaseInteractionClient = /** @class */ (function () {
|
|
|
10415
10491
|
};
|
|
10416
10492
|
if (!requestAuthority) return [3 /*break*/, 2];
|
|
10417
10493
|
this.logger.verbose("Creating discovered authority with request authority");
|
|
10418
|
-
return [4 /*yield*/, AuthorityFactory.createDiscoveredInstance(requestAuthority, this.config.system.networkClient, this.browserStorage, authorityOptions)];
|
|
10494
|
+
return [4 /*yield*/, AuthorityFactory.createDiscoveredInstance(requestAuthority, this.config.system.networkClient, this.browserStorage, authorityOptions, this.logger)];
|
|
10419
10495
|
case 1: return [2 /*return*/, _a.sent()];
|
|
10420
10496
|
case 2:
|
|
10421
10497
|
this.logger.verbose("Creating discovered authority with configured authority");
|
|
10422
|
-
return [4 /*yield*/, AuthorityFactory.createDiscoveredInstance(this.config.auth.authority, this.config.system.networkClient, this.browserStorage, authorityOptions)];
|
|
10498
|
+
return [4 /*yield*/, AuthorityFactory.createDiscoveredInstance(this.config.auth.authority, this.config.system.networkClient, this.browserStorage, authorityOptions, this.logger)];
|
|
10423
10499
|
case 3: return [2 /*return*/, _a.sent()];
|
|
10424
10500
|
}
|
|
10425
10501
|
});
|
|
@@ -10648,7 +10724,7 @@ var StandardInteractionClient = /** @class */ (function (_super) {
|
|
|
10648
10724
|
userAuthority = requestAuthority ? requestAuthority : this.config.auth.authority;
|
|
10649
10725
|
builtAuthority = Authority.generateAuthority(userAuthority, requestAzureCloudOptions || this.config.auth.azureCloudOptions);
|
|
10650
10726
|
this.logger.verbose("Creating discovered authority with configured authority", this.correlationId);
|
|
10651
|
-
return [4 /*yield*/, AuthorityFactory.createDiscoveredInstance(builtAuthority, this.config.system.networkClient, this.browserStorage, authorityOptions)
|
|
10727
|
+
return [4 /*yield*/, AuthorityFactory.createDiscoveredInstance(builtAuthority, this.config.system.networkClient, this.browserStorage, authorityOptions, this.logger)
|
|
10652
10728
|
.then(function (result) {
|
|
10653
10729
|
getAuthorityMeasurement.endMeasurement({
|
|
10654
10730
|
success: true
|
|
@@ -10826,7 +10902,7 @@ var InteractionHandler = /** @class */ (function () {
|
|
|
10826
10902
|
switch (_a.label) {
|
|
10827
10903
|
case 0:
|
|
10828
10904
|
cloudInstanceAuthorityUri = "https://" + cloudInstanceHostname + "/" + authority.tenant + "/";
|
|
10829
|
-
return [4 /*yield*/, AuthorityFactory.createDiscoveredInstance(cloudInstanceAuthorityUri, networkModule, this.browserStorage, authority.options)];
|
|
10905
|
+
return [4 /*yield*/, AuthorityFactory.createDiscoveredInstance(cloudInstanceAuthorityUri, networkModule, this.browserStorage, authority.options, this.logger)];
|
|
10830
10906
|
case 1:
|
|
10831
10907
|
cloudInstanceAuthority = _a.sent();
|
|
10832
10908
|
this.authModule.updateAuthority(cloudInstanceAuthority);
|
|
@@ -14945,7 +15021,7 @@ var TokenCache = /** @class */ (function () {
|
|
|
14945
15021
|
authorityMetadata: this.config.auth.authorityMetadata,
|
|
14946
15022
|
skipAuthorityMetadataCache: this.config.auth.skipAuthorityMetadataCache,
|
|
14947
15023
|
};
|
|
14948
|
-
authority = new Authority(authorityUrl, this.config.system.networkClient, this.storage, authorityOptions);
|
|
15024
|
+
authority = new Authority(authorityUrl, this.config.system.networkClient, this.storage, authorityOptions, this.logger);
|
|
14949
15025
|
// "clientInfo" from options takes precedence over "clientInfo" in response
|
|
14950
15026
|
if (options.clientInfo) {
|
|
14951
15027
|
this.logger.trace("TokenCache - homeAccountId from options");
|