@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/lib/msal-browser.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
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
return ar;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
/*! @azure/msal-common
|
|
122
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
123
123
|
/*! *****************************************************************************
|
|
124
124
|
Copyright (c) Microsoft Corporation.
|
|
125
125
|
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
return r;
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
/*! @azure/msal-common
|
|
209
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
210
210
|
|
|
211
211
|
/*
|
|
212
212
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -249,6 +249,7 @@
|
|
|
249
249
|
AUTHORIZATION_PENDING: "authorization_pending",
|
|
250
250
|
NOT_DEFINED: "not_defined",
|
|
251
251
|
EMPTY_STRING: "",
|
|
252
|
+
NOT_APPLICABLE: "N/A",
|
|
252
253
|
FORWARD_SLASH: "/",
|
|
253
254
|
IMDS_ENDPOINT: "http://169.254.169.254/metadata/instance/compute/location",
|
|
254
255
|
IMDS_VERSION: "2020-06-01",
|
|
@@ -259,7 +260,8 @@
|
|
|
259
260
|
KNOWN_PUBLIC_CLOUDS: ["login.microsoftonline.com", "login.windows.net", "login.microsoft.com", "sts.windows.net"],
|
|
260
261
|
TOKEN_RESPONSE_TYPE: "token",
|
|
261
262
|
ID_TOKEN_RESPONSE_TYPE: "id_token",
|
|
262
|
-
SHR_NONCE_VALIDITY: 240
|
|
263
|
+
SHR_NONCE_VALIDITY: 240,
|
|
264
|
+
INVALID_INSTANCE: "invalid_instance",
|
|
263
265
|
};
|
|
264
266
|
var OIDC_DEFAULT_SCOPES = [
|
|
265
267
|
Constants.OPENID_SCOPE,
|
|
@@ -587,7 +589,7 @@
|
|
|
587
589
|
JsonTypes["Jwk"] = "JWK";
|
|
588
590
|
})(JsonTypes || (JsonTypes = {}));
|
|
589
591
|
|
|
590
|
-
/*! @azure/msal-common
|
|
592
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
591
593
|
|
|
592
594
|
/*
|
|
593
595
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -643,7 +645,7 @@
|
|
|
643
645
|
return AuthError;
|
|
644
646
|
}(Error));
|
|
645
647
|
|
|
646
|
-
/*! @azure/msal-common
|
|
648
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
647
649
|
|
|
648
650
|
/*
|
|
649
651
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -718,7 +720,7 @@
|
|
|
718
720
|
}
|
|
719
721
|
};
|
|
720
722
|
|
|
721
|
-
/*! @azure/msal-common
|
|
723
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
722
724
|
|
|
723
725
|
/*
|
|
724
726
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1213,7 +1215,7 @@
|
|
|
1213
1215
|
return ClientAuthError;
|
|
1214
1216
|
}(AuthError));
|
|
1215
1217
|
|
|
1216
|
-
/*! @azure/msal-common
|
|
1218
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
1217
1219
|
|
|
1218
1220
|
/*
|
|
1219
1221
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1338,7 +1340,7 @@
|
|
|
1338
1340
|
return StringUtils;
|
|
1339
1341
|
}());
|
|
1340
1342
|
|
|
1341
|
-
/*! @azure/msal-common
|
|
1343
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
1342
1344
|
|
|
1343
1345
|
/*
|
|
1344
1346
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1518,12 +1520,12 @@
|
|
|
1518
1520
|
return Logger;
|
|
1519
1521
|
}());
|
|
1520
1522
|
|
|
1521
|
-
/*! @azure/msal-common
|
|
1523
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
1522
1524
|
/* eslint-disable header/header */
|
|
1523
1525
|
var name$1 = "@azure/msal-common";
|
|
1524
|
-
var version$1 = "
|
|
1526
|
+
var version$1 = "9.0.1";
|
|
1525
1527
|
|
|
1526
|
-
/*! @azure/msal-common
|
|
1528
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
1527
1529
|
/*
|
|
1528
1530
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1529
1531
|
* Licensed under the MIT License.
|
|
@@ -1544,7 +1546,7 @@
|
|
|
1544
1546
|
AzureCloudInstance["AzureUsGovernment"] = "https://login.microsoftonline.us";
|
|
1545
1547
|
})(exports.AzureCloudInstance || (exports.AzureCloudInstance = {}));
|
|
1546
1548
|
|
|
1547
|
-
/*! @azure/msal-common
|
|
1549
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
1548
1550
|
|
|
1549
1551
|
/*
|
|
1550
1552
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1703,7 +1705,7 @@
|
|
|
1703
1705
|
return CredentialEntity;
|
|
1704
1706
|
}());
|
|
1705
1707
|
|
|
1706
|
-
/*! @azure/msal-common
|
|
1708
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
1707
1709
|
|
|
1708
1710
|
/*
|
|
1709
1711
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1958,7 +1960,7 @@
|
|
|
1958
1960
|
return ClientConfigurationError;
|
|
1959
1961
|
}(ClientAuthError));
|
|
1960
1962
|
|
|
1961
|
-
/*! @azure/msal-common
|
|
1963
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
1962
1964
|
|
|
1963
1965
|
/*
|
|
1964
1966
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2142,7 +2144,7 @@
|
|
|
2142
2144
|
return ScopeSet;
|
|
2143
2145
|
}());
|
|
2144
2146
|
|
|
2145
|
-
/*! @azure/msal-common
|
|
2147
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
2146
2148
|
|
|
2147
2149
|
/*
|
|
2148
2150
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2180,7 +2182,7 @@
|
|
|
2180
2182
|
};
|
|
2181
2183
|
}
|
|
2182
2184
|
|
|
2183
|
-
/*! @azure/msal-common
|
|
2185
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
2184
2186
|
/*
|
|
2185
2187
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2186
2188
|
* Licensed under the MIT License.
|
|
@@ -2195,7 +2197,7 @@
|
|
|
2195
2197
|
AuthorityType[AuthorityType["Dsts"] = 2] = "Dsts";
|
|
2196
2198
|
})(AuthorityType || (AuthorityType = {}));
|
|
2197
2199
|
|
|
2198
|
-
/*! @azure/msal-common
|
|
2200
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
2199
2201
|
|
|
2200
2202
|
/*
|
|
2201
2203
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2434,7 +2436,7 @@
|
|
|
2434
2436
|
return AccountEntity;
|
|
2435
2437
|
}());
|
|
2436
2438
|
|
|
2437
|
-
/*! @azure/msal-common
|
|
2439
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
2438
2440
|
|
|
2439
2441
|
/*
|
|
2440
2442
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2486,7 +2488,7 @@
|
|
|
2486
2488
|
return AuthToken;
|
|
2487
2489
|
}());
|
|
2488
2490
|
|
|
2489
|
-
/*! @azure/msal-common
|
|
2491
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
2490
2492
|
|
|
2491
2493
|
/*
|
|
2492
2494
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3365,7 +3367,7 @@
|
|
|
3365
3367
|
return DefaultStorageClass;
|
|
3366
3368
|
}(CacheManager));
|
|
3367
3369
|
|
|
3368
|
-
/*! @azure/msal-common
|
|
3370
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
3369
3371
|
|
|
3370
3372
|
/*
|
|
3371
3373
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3459,7 +3461,7 @@
|
|
|
3459
3461
|
return __assign({ clientCapabilities: [], azureCloudOptions: DEFAULT_AZURE_CLOUD_OPTIONS, skipAuthorityMetadataCache: false }, authOptions);
|
|
3460
3462
|
}
|
|
3461
3463
|
|
|
3462
|
-
/*! @azure/msal-common
|
|
3464
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
3463
3465
|
|
|
3464
3466
|
/*
|
|
3465
3467
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3479,7 +3481,7 @@
|
|
|
3479
3481
|
return ServerError;
|
|
3480
3482
|
}(AuthError));
|
|
3481
3483
|
|
|
3482
|
-
/*! @azure/msal-common
|
|
3484
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
3483
3485
|
|
|
3484
3486
|
/*
|
|
3485
3487
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3575,7 +3577,7 @@
|
|
|
3575
3577
|
return ThrottlingUtils;
|
|
3576
3578
|
}());
|
|
3577
3579
|
|
|
3578
|
-
/*! @azure/msal-common
|
|
3580
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
3579
3581
|
|
|
3580
3582
|
/*
|
|
3581
3583
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3624,7 +3626,7 @@
|
|
|
3624
3626
|
return NetworkManager;
|
|
3625
3627
|
}());
|
|
3626
3628
|
|
|
3627
|
-
/*! @azure/msal-common
|
|
3629
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
3628
3630
|
/*
|
|
3629
3631
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3630
3632
|
* Licensed under the MIT License.
|
|
@@ -3635,7 +3637,7 @@
|
|
|
3635
3637
|
CcsCredentialType["UPN"] = "UPN";
|
|
3636
3638
|
})(CcsCredentialType || (CcsCredentialType = {}));
|
|
3637
3639
|
|
|
3638
|
-
/*! @azure/msal-common
|
|
3640
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
3639
3641
|
|
|
3640
3642
|
/*
|
|
3641
3643
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3726,7 +3728,7 @@
|
|
|
3726
3728
|
return BaseClient;
|
|
3727
3729
|
}());
|
|
3728
3730
|
|
|
3729
|
-
/*! @azure/msal-common
|
|
3731
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
3730
3732
|
|
|
3731
3733
|
/*
|
|
3732
3734
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3812,7 +3814,7 @@
|
|
|
3812
3814
|
return RequestValidator;
|
|
3813
3815
|
}());
|
|
3814
3816
|
|
|
3815
|
-
/*! @azure/msal-common
|
|
3817
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
3816
3818
|
|
|
3817
3819
|
/*
|
|
3818
3820
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4190,7 +4192,7 @@
|
|
|
4190
4192
|
return RequestParameterBuilder;
|
|
4191
4193
|
}());
|
|
4192
4194
|
|
|
4193
|
-
/*! @azure/msal-common
|
|
4195
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
4194
4196
|
|
|
4195
4197
|
/*
|
|
4196
4198
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4254,7 +4256,7 @@
|
|
|
4254
4256
|
return IdTokenEntity;
|
|
4255
4257
|
}(CredentialEntity));
|
|
4256
4258
|
|
|
4257
|
-
/*! @azure/msal-common
|
|
4259
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
4258
4260
|
/*
|
|
4259
4261
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4260
4262
|
* Licensed under the MIT License.
|
|
@@ -4304,7 +4306,7 @@
|
|
|
4304
4306
|
return TimeUtils;
|
|
4305
4307
|
}());
|
|
4306
4308
|
|
|
4307
|
-
/*! @azure/msal-common
|
|
4309
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
4308
4310
|
|
|
4309
4311
|
/*
|
|
4310
4312
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4418,7 +4420,7 @@
|
|
|
4418
4420
|
return AccessTokenEntity;
|
|
4419
4421
|
}(CredentialEntity));
|
|
4420
4422
|
|
|
4421
|
-
/*! @azure/msal-common
|
|
4423
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
4422
4424
|
|
|
4423
4425
|
/*
|
|
4424
4426
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4485,7 +4487,7 @@
|
|
|
4485
4487
|
return RefreshTokenEntity;
|
|
4486
4488
|
}(CredentialEntity));
|
|
4487
4489
|
|
|
4488
|
-
/*! @azure/msal-common
|
|
4490
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
4489
4491
|
|
|
4490
4492
|
/*
|
|
4491
4493
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4560,7 +4562,7 @@
|
|
|
4560
4562
|
return InteractionRequiredAuthError;
|
|
4561
4563
|
}(AuthError));
|
|
4562
4564
|
|
|
4563
|
-
/*! @azure/msal-common
|
|
4565
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
4564
4566
|
/*
|
|
4565
4567
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4566
4568
|
* Licensed under the MIT License.
|
|
@@ -4576,7 +4578,7 @@
|
|
|
4576
4578
|
return CacheRecord;
|
|
4577
4579
|
}());
|
|
4578
4580
|
|
|
4579
|
-
/*! @azure/msal-common
|
|
4581
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
4580
4582
|
|
|
4581
4583
|
/*
|
|
4582
4584
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4647,7 +4649,7 @@
|
|
|
4647
4649
|
return ProtocolUtils;
|
|
4648
4650
|
}());
|
|
4649
4651
|
|
|
4650
|
-
/*! @azure/msal-common
|
|
4652
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
4651
4653
|
|
|
4652
4654
|
/*
|
|
4653
4655
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4881,7 +4883,7 @@
|
|
|
4881
4883
|
return UrlString;
|
|
4882
4884
|
}());
|
|
4883
4885
|
|
|
4884
|
-
/*! @azure/msal-common
|
|
4886
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
4885
4887
|
|
|
4886
4888
|
/*
|
|
4887
4889
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4982,7 +4984,7 @@
|
|
|
4982
4984
|
return PopTokenGenerator;
|
|
4983
4985
|
}());
|
|
4984
4986
|
|
|
4985
|
-
/*! @azure/msal-common
|
|
4987
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
4986
4988
|
|
|
4987
4989
|
/*
|
|
4988
4990
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5052,7 +5054,7 @@
|
|
|
5052
5054
|
return AppMetadataEntity;
|
|
5053
5055
|
}());
|
|
5054
5056
|
|
|
5055
|
-
/*! @azure/msal-common
|
|
5057
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
5056
5058
|
/*
|
|
5057
5059
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5058
5060
|
* Licensed under the MIT License.
|
|
@@ -5088,7 +5090,7 @@
|
|
|
5088
5090
|
return TokenCacheContext;
|
|
5089
5091
|
}());
|
|
5090
5092
|
|
|
5091
|
-
/*! @azure/msal-common
|
|
5093
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
5092
5094
|
|
|
5093
5095
|
/*
|
|
5094
5096
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5368,7 +5370,7 @@
|
|
|
5368
5370
|
return ResponseHandler;
|
|
5369
5371
|
}());
|
|
5370
5372
|
|
|
5371
|
-
/*! @azure/msal-common
|
|
5373
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
5372
5374
|
|
|
5373
5375
|
/*
|
|
5374
5376
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5821,7 +5823,7 @@
|
|
|
5821
5823
|
return AuthorizationCodeClient;
|
|
5822
5824
|
}(BaseClient));
|
|
5823
5825
|
|
|
5824
|
-
/*! @azure/msal-common
|
|
5826
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
5825
5827
|
/*
|
|
5826
5828
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5827
5829
|
* Licensed under the MIT License.
|
|
@@ -5946,7 +5948,7 @@
|
|
|
5946
5948
|
PerformanceEventStatus[PerformanceEventStatus["Completed"] = 2] = "Completed";
|
|
5947
5949
|
})(PerformanceEventStatus || (PerformanceEventStatus = {}));
|
|
5948
5950
|
|
|
5949
|
-
/*! @azure/msal-common
|
|
5951
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
5950
5952
|
|
|
5951
5953
|
/*
|
|
5952
5954
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6211,7 +6213,7 @@
|
|
|
6211
6213
|
return RefreshTokenClient;
|
|
6212
6214
|
}(BaseClient));
|
|
6213
6215
|
|
|
6214
|
-
/*! @azure/msal-common
|
|
6216
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
6215
6217
|
|
|
6216
6218
|
/*
|
|
6217
6219
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6335,7 +6337,7 @@
|
|
|
6335
6337
|
return SilentFlowClient;
|
|
6336
6338
|
}(BaseClient));
|
|
6337
6339
|
|
|
6338
|
-
/*! @azure/msal-common
|
|
6340
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
6339
6341
|
/*
|
|
6340
6342
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6341
6343
|
* Licensed under the MIT License.
|
|
@@ -6347,7 +6349,7 @@
|
|
|
6347
6349
|
response.hasOwnProperty("jwks_uri"));
|
|
6348
6350
|
}
|
|
6349
6351
|
|
|
6350
|
-
/*! @azure/msal-common
|
|
6352
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
6351
6353
|
/*
|
|
6352
6354
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6353
6355
|
* Licensed under the MIT License.
|
|
@@ -6356,7 +6358,7 @@
|
|
|
6356
6358
|
var EndpointMetadata = rawMetdataJSON.endpointMetadata;
|
|
6357
6359
|
var InstanceDiscoveryMetadata = rawMetdataJSON.instanceDiscoveryMetadata;
|
|
6358
6360
|
|
|
6359
|
-
/*! @azure/msal-common
|
|
6361
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
6360
6362
|
/*
|
|
6361
6363
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6362
6364
|
* Licensed under the MIT License.
|
|
@@ -6370,7 +6372,7 @@
|
|
|
6370
6372
|
ProtocolMode["OIDC"] = "OIDC";
|
|
6371
6373
|
})(exports.ProtocolMode || (exports.ProtocolMode = {}));
|
|
6372
6374
|
|
|
6373
|
-
/*! @azure/msal-common
|
|
6375
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
6374
6376
|
|
|
6375
6377
|
/*
|
|
6376
6378
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6447,7 +6449,7 @@
|
|
|
6447
6449
|
return AuthorityMetadataEntity;
|
|
6448
6450
|
}());
|
|
6449
6451
|
|
|
6450
|
-
/*! @azure/msal-common
|
|
6452
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
6451
6453
|
/*
|
|
6452
6454
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6453
6455
|
* Licensed under the MIT License.
|
|
@@ -6457,7 +6459,17 @@
|
|
|
6457
6459
|
response.hasOwnProperty("metadata"));
|
|
6458
6460
|
}
|
|
6459
6461
|
|
|
6460
|
-
/*! @azure/msal-common
|
|
6462
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
6463
|
+
/*
|
|
6464
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6465
|
+
* Licensed under the MIT License.
|
|
6466
|
+
*/
|
|
6467
|
+
function isCloudInstanceDiscoveryErrorResponse(response) {
|
|
6468
|
+
return (response.hasOwnProperty("error") &&
|
|
6469
|
+
response.hasOwnProperty("error_description"));
|
|
6470
|
+
}
|
|
6471
|
+
|
|
6472
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
6461
6473
|
|
|
6462
6474
|
/*
|
|
6463
6475
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6579,7 +6591,7 @@
|
|
|
6579
6591
|
return RegionDiscovery;
|
|
6580
6592
|
}());
|
|
6581
6593
|
|
|
6582
|
-
/*! @azure/msal-common
|
|
6594
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
6583
6595
|
|
|
6584
6596
|
/*
|
|
6585
6597
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6590,7 +6602,7 @@
|
|
|
6590
6602
|
* endpoint. It will store the pertinent config data in this object for use during token calls.
|
|
6591
6603
|
*/
|
|
6592
6604
|
var Authority = /** @class */ (function () {
|
|
6593
|
-
function Authority(authority, networkInterface, cacheManager, authorityOptions, proxyUrl) {
|
|
6605
|
+
function Authority(authority, networkInterface, cacheManager, authorityOptions, logger, proxyUrl) {
|
|
6594
6606
|
this.canonicalAuthority = authority;
|
|
6595
6607
|
this._canonicalAuthority.validateAsUri();
|
|
6596
6608
|
this.networkInterface = networkInterface;
|
|
@@ -6599,6 +6611,7 @@
|
|
|
6599
6611
|
this.regionDiscovery = new RegionDiscovery(networkInterface);
|
|
6600
6612
|
this.regionDiscoveryMetadata = { region_used: undefined, region_source: undefined, region_outcome: undefined };
|
|
6601
6613
|
this.proxyUrl = proxyUrl || Constants.EMPTY_STRING;
|
|
6614
|
+
this.logger = logger;
|
|
6602
6615
|
}
|
|
6603
6616
|
Object.defineProperty(Authority.prototype, "authorityType", {
|
|
6604
6617
|
// See above for AuthorityType
|
|
@@ -7025,36 +7038,50 @@
|
|
|
7025
7038
|
*/
|
|
7026
7039
|
Authority.prototype.updateCloudDiscoveryMetadata = function (metadataEntity) {
|
|
7027
7040
|
return __awaiter(this, void 0, void 0, function () {
|
|
7028
|
-
var metadata, harcodedMetadata;
|
|
7041
|
+
var metadata, metadataEntityExpired, harcodedMetadata;
|
|
7029
7042
|
return __generator(this, function (_a) {
|
|
7030
7043
|
switch (_a.label) {
|
|
7031
7044
|
case 0:
|
|
7045
|
+
this.logger.verbose("Attempting to get cloud discovery metadata in the config");
|
|
7046
|
+
this.logger.verbosePii("Known Authorities: " + (this.authorityOptions.knownAuthorities || Constants.NOT_APPLICABLE));
|
|
7047
|
+
this.logger.verbosePii("Authority Metadata: " + (this.authorityOptions.authorityMetadata || Constants.NOT_APPLICABLE));
|
|
7048
|
+
this.logger.verbosePii("Canonical Authority: " + (metadataEntity.canonical_authority || Constants.NOT_APPLICABLE));
|
|
7032
7049
|
metadata = this.getCloudDiscoveryMetadataFromConfig();
|
|
7033
7050
|
if (metadata) {
|
|
7051
|
+
this.logger.verbose("Found cloud discovery metadata in the config.");
|
|
7034
7052
|
metadataEntity.updateCloudDiscoveryMetadata(metadata, false);
|
|
7035
7053
|
return [2 /*return*/, AuthorityMetadataSource.CONFIG];
|
|
7036
7054
|
}
|
|
7037
|
-
// If
|
|
7038
|
-
|
|
7055
|
+
// If the cached metadata came from config but that config was not passed to this instance, we must go to the network
|
|
7056
|
+
this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the cache.");
|
|
7057
|
+
metadataEntityExpired = metadataEntity.isExpired();
|
|
7058
|
+
if (this.isAuthoritySameType(metadataEntity) && metadataEntity.aliasesFromNetwork && !metadataEntityExpired) {
|
|
7059
|
+
this.logger.verbose("Found metadata in the cache.");
|
|
7039
7060
|
// No need to update
|
|
7040
7061
|
return [2 /*return*/, AuthorityMetadataSource.CACHE];
|
|
7041
7062
|
}
|
|
7042
|
-
|
|
7063
|
+
else if (metadataEntityExpired) {
|
|
7064
|
+
this.logger.verbose("The metadata entity is expired.");
|
|
7065
|
+
}
|
|
7066
|
+
this.logger.verbose("Did not find cloud discovery metadata in the cache... Attempting to get cloud discovery metadata from the network.");
|
|
7043
7067
|
return [4 /*yield*/, this.getCloudDiscoveryMetadataFromNetwork()];
|
|
7044
7068
|
case 1:
|
|
7045
7069
|
metadata = _a.sent();
|
|
7046
7070
|
if (metadata) {
|
|
7071
|
+
this.logger.verbose("cloud discovery metadata was successfully returned from getCloudDiscoveryMetadataFromNetwork()");
|
|
7047
7072
|
metadataEntity.updateCloudDiscoveryMetadata(metadata, true);
|
|
7048
7073
|
return [2 /*return*/, AuthorityMetadataSource.NETWORK];
|
|
7049
7074
|
}
|
|
7075
|
+
this.logger.verbose("Did not find cloud discovery metadata from the network... Attempting to get cloud discovery metadata from hardcoded values.");
|
|
7076
|
+
harcodedMetadata = this.getCloudDiscoveryMetadataFromHarcodedValues();
|
|
7050
7077
|
if (harcodedMetadata && !this.options.skipAuthorityMetadataCache) {
|
|
7078
|
+
this.logger.verbose("Found cloud discovery metadata from hardcoded values.");
|
|
7051
7079
|
metadataEntity.updateCloudDiscoveryMetadata(harcodedMetadata, false);
|
|
7052
7080
|
return [2 /*return*/, AuthorityMetadataSource.HARDCODED_VALUES];
|
|
7053
7081
|
}
|
|
7054
|
-
|
|
7055
|
-
|
|
7056
|
-
|
|
7057
|
-
}
|
|
7082
|
+
// Metadata could not be obtained from the config, cache, network or hardcoded values
|
|
7083
|
+
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.");
|
|
7084
|
+
throw ClientConfigurationError.createUntrustedAuthorityError();
|
|
7058
7085
|
}
|
|
7059
7086
|
});
|
|
7060
7087
|
});
|
|
@@ -7065,19 +7092,28 @@
|
|
|
7065
7092
|
Authority.prototype.getCloudDiscoveryMetadataFromConfig = function () {
|
|
7066
7093
|
// Check if network response was provided in config
|
|
7067
7094
|
if (this.authorityOptions.cloudDiscoveryMetadata) {
|
|
7095
|
+
this.logger.verbose("The cloud discovery metadata has been provided as a network response, in the config.");
|
|
7068
7096
|
try {
|
|
7097
|
+
this.logger.verbose("Attempting to parse the cloud discovery metadata.");
|
|
7069
7098
|
var parsedResponse = JSON.parse(this.authorityOptions.cloudDiscoveryMetadata);
|
|
7070
7099
|
var metadata = Authority.getCloudDiscoveryMetadataFromNetworkResponse(parsedResponse.metadata, this.hostnameAndPort);
|
|
7100
|
+
this.logger.verbose("Parsed the cloud discovery metadata.");
|
|
7071
7101
|
if (metadata) {
|
|
7102
|
+
this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata.");
|
|
7072
7103
|
return metadata;
|
|
7073
7104
|
}
|
|
7105
|
+
else {
|
|
7106
|
+
this.logger.verbose("There is no metadata attached to the parsed cloud discovery metadata.");
|
|
7107
|
+
}
|
|
7074
7108
|
}
|
|
7075
7109
|
catch (e) {
|
|
7110
|
+
this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error.");
|
|
7076
7111
|
throw ClientConfigurationError.createInvalidCloudDiscoveryMetadataError();
|
|
7077
7112
|
}
|
|
7078
7113
|
}
|
|
7079
7114
|
// If cloudDiscoveryMetadata is empty or does not contain the host, check knownAuthorities
|
|
7080
7115
|
if (this.isInKnownAuthorities()) {
|
|
7116
|
+
this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host.");
|
|
7081
7117
|
return Authority.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);
|
|
7082
7118
|
}
|
|
7083
7119
|
return null;
|
|
@@ -7089,7 +7125,7 @@
|
|
|
7089
7125
|
*/
|
|
7090
7126
|
Authority.prototype.getCloudDiscoveryMetadataFromNetwork = function () {
|
|
7091
7127
|
return __awaiter(this, void 0, void 0, function () {
|
|
7092
|
-
var instanceDiscoveryEndpoint, options, match, response, metadata;
|
|
7128
|
+
var instanceDiscoveryEndpoint, options, match, response, typedResponseBody, metadata, error_1, typedError;
|
|
7093
7129
|
return __generator(this, function (_a) {
|
|
7094
7130
|
switch (_a.label) {
|
|
7095
7131
|
case 0:
|
|
@@ -7105,21 +7141,47 @@
|
|
|
7105
7141
|
return [4 /*yield*/, this.networkInterface.sendGetRequestAsync(instanceDiscoveryEndpoint, options)];
|
|
7106
7142
|
case 2:
|
|
7107
7143
|
response = _a.sent();
|
|
7108
|
-
|
|
7109
|
-
|
|
7110
|
-
|
|
7111
|
-
|
|
7112
|
-
|
|
7144
|
+
typedResponseBody = void 0;
|
|
7145
|
+
metadata = void 0;
|
|
7146
|
+
if (isCloudInstanceDiscoveryResponse(response.body)) {
|
|
7147
|
+
typedResponseBody = response.body;
|
|
7148
|
+
metadata = typedResponseBody.metadata;
|
|
7149
|
+
this.logger.verbosePii("tenant_discovery_endpoint is: " + typedResponseBody.tenant_discovery_endpoint);
|
|
7150
|
+
}
|
|
7151
|
+
else if (isCloudInstanceDiscoveryErrorResponse(response.body)) {
|
|
7152
|
+
this.logger.warning("A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: " + response.status);
|
|
7153
|
+
typedResponseBody = response.body;
|
|
7154
|
+
if (typedResponseBody.error === Constants.INVALID_INSTANCE) {
|
|
7155
|
+
this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance.");
|
|
7156
|
+
return [2 /*return*/, null];
|
|
7157
|
+
}
|
|
7158
|
+
this.logger.warning("The CloudInstanceDiscoveryErrorResponse error is " + typedResponseBody.error);
|
|
7159
|
+
this.logger.warning("The CloudInstanceDiscoveryErrorResponse error description is " + typedResponseBody.error_description);
|
|
7160
|
+
this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []");
|
|
7161
|
+
metadata = [];
|
|
7162
|
+
}
|
|
7163
|
+
else {
|
|
7164
|
+
this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse");
|
|
7113
7165
|
return [2 /*return*/, null];
|
|
7114
7166
|
}
|
|
7167
|
+
this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request.");
|
|
7115
7168
|
match = Authority.getCloudDiscoveryMetadataFromNetworkResponse(metadata, this.hostnameAndPort);
|
|
7116
7169
|
return [3 /*break*/, 4];
|
|
7117
7170
|
case 3:
|
|
7118
|
-
_a.sent();
|
|
7171
|
+
error_1 = _a.sent();
|
|
7172
|
+
if (error_1 instanceof AuthError) {
|
|
7173
|
+
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);
|
|
7174
|
+
}
|
|
7175
|
+
else {
|
|
7176
|
+
typedError = error_1;
|
|
7177
|
+
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);
|
|
7178
|
+
}
|
|
7119
7179
|
return [2 /*return*/, null];
|
|
7120
7180
|
case 4:
|
|
7181
|
+
// Custom Domain scenario, host is trusted because Instance Discovery call succeeded
|
|
7121
7182
|
if (!match) {
|
|
7122
|
-
|
|
7183
|
+
this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request.");
|
|
7184
|
+
this.logger.verbose("Creating custom Authority for custom domain scenario.");
|
|
7123
7185
|
match = Authority.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);
|
|
7124
7186
|
}
|
|
7125
7187
|
return [2 /*return*/, match];
|
|
@@ -7251,7 +7313,7 @@
|
|
|
7251
7313
|
return Authority;
|
|
7252
7314
|
}());
|
|
7253
7315
|
|
|
7254
|
-
/*! @azure/msal-common
|
|
7316
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
7255
7317
|
|
|
7256
7318
|
/*
|
|
7257
7319
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7270,13 +7332,13 @@
|
|
|
7270
7332
|
* @param networkClient
|
|
7271
7333
|
* @param protocolMode
|
|
7272
7334
|
*/
|
|
7273
|
-
AuthorityFactory.createDiscoveredInstance = function (authorityUri, networkClient, cacheManager, authorityOptions, proxyUrl) {
|
|
7335
|
+
AuthorityFactory.createDiscoveredInstance = function (authorityUri, networkClient, cacheManager, authorityOptions, logger, proxyUrl) {
|
|
7274
7336
|
return __awaiter(this, void 0, void 0, function () {
|
|
7275
7337
|
var acquireTokenAuthority, e_1;
|
|
7276
7338
|
return __generator(this, function (_a) {
|
|
7277
7339
|
switch (_a.label) {
|
|
7278
7340
|
case 0:
|
|
7279
|
-
acquireTokenAuthority = AuthorityFactory.createInstance(authorityUri, networkClient, cacheManager, authorityOptions, proxyUrl);
|
|
7341
|
+
acquireTokenAuthority = AuthorityFactory.createInstance(authorityUri, networkClient, cacheManager, authorityOptions, logger, proxyUrl);
|
|
7280
7342
|
_a.label = 1;
|
|
7281
7343
|
case 1:
|
|
7282
7344
|
_a.trys.push([1, 3, , 4]);
|
|
@@ -7302,17 +7364,17 @@
|
|
|
7302
7364
|
* @param networkInterface
|
|
7303
7365
|
* @param protocolMode
|
|
7304
7366
|
*/
|
|
7305
|
-
AuthorityFactory.createInstance = function (authorityUrl, networkInterface, cacheManager, authorityOptions, proxyUrl) {
|
|
7367
|
+
AuthorityFactory.createInstance = function (authorityUrl, networkInterface, cacheManager, authorityOptions, logger, proxyUrl) {
|
|
7306
7368
|
// Throw error if authority url is empty
|
|
7307
7369
|
if (StringUtils.isEmpty(authorityUrl)) {
|
|
7308
7370
|
throw ClientConfigurationError.createUrlEmptyError();
|
|
7309
7371
|
}
|
|
7310
|
-
return new Authority(authorityUrl, networkInterface, cacheManager, authorityOptions, proxyUrl);
|
|
7372
|
+
return new Authority(authorityUrl, networkInterface, cacheManager, authorityOptions, logger, proxyUrl);
|
|
7311
7373
|
};
|
|
7312
7374
|
return AuthorityFactory;
|
|
7313
7375
|
}());
|
|
7314
7376
|
|
|
7315
|
-
/*! @azure/msal-common
|
|
7377
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
7316
7378
|
|
|
7317
7379
|
/*
|
|
7318
7380
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7343,7 +7405,7 @@
|
|
|
7343
7405
|
return ServerTelemetryEntity;
|
|
7344
7406
|
}());
|
|
7345
7407
|
|
|
7346
|
-
/*! @azure/msal-common
|
|
7408
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
7347
7409
|
|
|
7348
7410
|
/*
|
|
7349
7411
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7371,7 +7433,7 @@
|
|
|
7371
7433
|
return ThrottlingEntity;
|
|
7372
7434
|
}());
|
|
7373
7435
|
|
|
7374
|
-
/*! @azure/msal-common
|
|
7436
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
7375
7437
|
|
|
7376
7438
|
/*
|
|
7377
7439
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7388,7 +7450,7 @@
|
|
|
7388
7450
|
}
|
|
7389
7451
|
};
|
|
7390
7452
|
|
|
7391
|
-
/*! @azure/msal-common
|
|
7453
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
7392
7454
|
|
|
7393
7455
|
/*
|
|
7394
7456
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7433,7 +7495,7 @@
|
|
|
7433
7495
|
return JoseHeaderError;
|
|
7434
7496
|
}(AuthError));
|
|
7435
7497
|
|
|
7436
|
-
/*! @azure/msal-common
|
|
7498
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
7437
7499
|
|
|
7438
7500
|
/*
|
|
7439
7501
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7473,7 +7535,7 @@
|
|
|
7473
7535
|
return JoseHeader;
|
|
7474
7536
|
}());
|
|
7475
7537
|
|
|
7476
|
-
/*! @azure/msal-common
|
|
7538
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
7477
7539
|
|
|
7478
7540
|
/*
|
|
7479
7541
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7532,7 +7594,7 @@
|
|
|
7532
7594
|
return AuthenticationHeaderParser;
|
|
7533
7595
|
}());
|
|
7534
7596
|
|
|
7535
|
-
/*! @azure/msal-common
|
|
7597
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
7536
7598
|
|
|
7537
7599
|
/*
|
|
7538
7600
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7694,7 +7756,7 @@
|
|
|
7694
7756
|
return ServerTelemetryManager;
|
|
7695
7757
|
}());
|
|
7696
7758
|
|
|
7697
|
-
/*! @azure/msal-common
|
|
7759
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
7698
7760
|
|
|
7699
7761
|
/*
|
|
7700
7762
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7989,7 +8051,7 @@
|
|
|
7989
8051
|
return PerformanceClient;
|
|
7990
8052
|
}());
|
|
7991
8053
|
|
|
7992
|
-
/*! @azure/msal-common
|
|
8054
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
7993
8055
|
|
|
7994
8056
|
/*
|
|
7995
8057
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8578,6 +8640,7 @@
|
|
|
8578
8640
|
TemporaryCacheKeys["CCS_CREDENTIAL"] = "ccs.credential";
|
|
8579
8641
|
TemporaryCacheKeys["CORRELATION_ID"] = "request.correlationId";
|
|
8580
8642
|
TemporaryCacheKeys["NATIVE_REQUEST"] = "request.native";
|
|
8643
|
+
TemporaryCacheKeys["REDIRECT_CONTEXT"] = "request.redirect.context";
|
|
8581
8644
|
})(TemporaryCacheKeys || (TemporaryCacheKeys = {}));
|
|
8582
8645
|
/**
|
|
8583
8646
|
* Cache keys stored in-memory
|
|
@@ -9851,6 +9914,19 @@
|
|
|
9851
9914
|
}
|
|
9852
9915
|
return currentCacheKey;
|
|
9853
9916
|
};
|
|
9917
|
+
/**
|
|
9918
|
+
* Returns application id as redirect context during AcquireTokenRedirect flow.
|
|
9919
|
+
*/
|
|
9920
|
+
BrowserCacheManager.prototype.getRedirectRequestContext = function () {
|
|
9921
|
+
return this.getTemporaryCache(TemporaryCacheKeys.REDIRECT_CONTEXT, true);
|
|
9922
|
+
};
|
|
9923
|
+
/**
|
|
9924
|
+
* Sets application id as the redirect context during AcquireTokenRedirect flow.
|
|
9925
|
+
* @param value
|
|
9926
|
+
*/
|
|
9927
|
+
BrowserCacheManager.prototype.setRedirectRequestContext = function (value) {
|
|
9928
|
+
this.setTemporaryCache(TemporaryCacheKeys.REDIRECT_CONTEXT, value, true);
|
|
9929
|
+
};
|
|
9854
9930
|
return BrowserCacheManager;
|
|
9855
9931
|
}(CacheManager));
|
|
9856
9932
|
var DEFAULT_BROWSER_CACHE_MANAGER = function (clientId, logger) {
|
|
@@ -9864,7 +9940,7 @@
|
|
|
9864
9940
|
|
|
9865
9941
|
/* eslint-disable header/header */
|
|
9866
9942
|
var name = "@azure/msal-browser";
|
|
9867
|
-
var version = "2.
|
|
9943
|
+
var version = "2.32.1";
|
|
9868
9944
|
|
|
9869
9945
|
/*
|
|
9870
9946
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -10417,11 +10493,11 @@
|
|
|
10417
10493
|
};
|
|
10418
10494
|
if (!requestAuthority) return [3 /*break*/, 2];
|
|
10419
10495
|
this.logger.verbose("Creating discovered authority with request authority");
|
|
10420
|
-
return [4 /*yield*/, AuthorityFactory.createDiscoveredInstance(requestAuthority, this.config.system.networkClient, this.browserStorage, authorityOptions)];
|
|
10496
|
+
return [4 /*yield*/, AuthorityFactory.createDiscoveredInstance(requestAuthority, this.config.system.networkClient, this.browserStorage, authorityOptions, this.logger)];
|
|
10421
10497
|
case 1: return [2 /*return*/, _a.sent()];
|
|
10422
10498
|
case 2:
|
|
10423
10499
|
this.logger.verbose("Creating discovered authority with configured authority");
|
|
10424
|
-
return [4 /*yield*/, AuthorityFactory.createDiscoveredInstance(this.config.auth.authority, this.config.system.networkClient, this.browserStorage, authorityOptions)];
|
|
10500
|
+
return [4 /*yield*/, AuthorityFactory.createDiscoveredInstance(this.config.auth.authority, this.config.system.networkClient, this.browserStorage, authorityOptions, this.logger)];
|
|
10425
10501
|
case 3: return [2 /*return*/, _a.sent()];
|
|
10426
10502
|
}
|
|
10427
10503
|
});
|
|
@@ -10650,7 +10726,7 @@
|
|
|
10650
10726
|
userAuthority = requestAuthority ? requestAuthority : this.config.auth.authority;
|
|
10651
10727
|
builtAuthority = Authority.generateAuthority(userAuthority, requestAzureCloudOptions || this.config.auth.azureCloudOptions);
|
|
10652
10728
|
this.logger.verbose("Creating discovered authority with configured authority", this.correlationId);
|
|
10653
|
-
return [4 /*yield*/, AuthorityFactory.createDiscoveredInstance(builtAuthority, this.config.system.networkClient, this.browserStorage, authorityOptions)
|
|
10729
|
+
return [4 /*yield*/, AuthorityFactory.createDiscoveredInstance(builtAuthority, this.config.system.networkClient, this.browserStorage, authorityOptions, this.logger)
|
|
10654
10730
|
.then(function (result) {
|
|
10655
10731
|
getAuthorityMeasurement.endMeasurement({
|
|
10656
10732
|
success: true
|
|
@@ -10828,7 +10904,7 @@
|
|
|
10828
10904
|
switch (_a.label) {
|
|
10829
10905
|
case 0:
|
|
10830
10906
|
cloudInstanceAuthorityUri = "https://" + cloudInstanceHostname + "/" + authority.tenant + "/";
|
|
10831
|
-
return [4 /*yield*/, AuthorityFactory.createDiscoveredInstance(cloudInstanceAuthorityUri, networkModule, this.browserStorage, authority.options)];
|
|
10907
|
+
return [4 /*yield*/, AuthorityFactory.createDiscoveredInstance(cloudInstanceAuthorityUri, networkModule, this.browserStorage, authority.options, this.logger)];
|
|
10832
10908
|
case 1:
|
|
10833
10909
|
cloudInstanceAuthority = _a.sent();
|
|
10834
10910
|
this.authModule.updateAuthority(cloudInstanceAuthority);
|
|
@@ -14947,7 +15023,7 @@
|
|
|
14947
15023
|
authorityMetadata: this.config.auth.authorityMetadata,
|
|
14948
15024
|
skipAuthorityMetadataCache: this.config.auth.skipAuthorityMetadataCache,
|
|
14949
15025
|
};
|
|
14950
|
-
authority = new Authority(authorityUrl, this.config.system.networkClient, this.storage, authorityOptions);
|
|
15026
|
+
authority = new Authority(authorityUrl, this.config.system.networkClient, this.storage, authorityOptions, this.logger);
|
|
14951
15027
|
// "clientInfo" from options takes precedence over "clientInfo" in response
|
|
14952
15028
|
if (options.clientInfo) {
|
|
14953
15029
|
this.logger.trace("TokenCache - homeAccountId from options");
|