@azure/msal-browser 2.32.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 +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 +124 -73
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/interaction_client/BaseInteractionClient.js +1 -1
- package/dist/interaction_client/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 +1 -1
- package/dist/interaction_handler/InteractionHandler.js +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 +124 -73
- 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.32.
|
|
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 v9.0.
|
|
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 v9.0.
|
|
209
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
210
210
|
|
|
211
211
|
/*
|
|
212
212
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -260,7 +260,8 @@
|
|
|
260
260
|
KNOWN_PUBLIC_CLOUDS: ["login.microsoftonline.com", "login.windows.net", "login.microsoft.com", "sts.windows.net"],
|
|
261
261
|
TOKEN_RESPONSE_TYPE: "token",
|
|
262
262
|
ID_TOKEN_RESPONSE_TYPE: "id_token",
|
|
263
|
-
SHR_NONCE_VALIDITY: 240
|
|
263
|
+
SHR_NONCE_VALIDITY: 240,
|
|
264
|
+
INVALID_INSTANCE: "invalid_instance",
|
|
264
265
|
};
|
|
265
266
|
var OIDC_DEFAULT_SCOPES = [
|
|
266
267
|
Constants.OPENID_SCOPE,
|
|
@@ -588,7 +589,7 @@
|
|
|
588
589
|
JsonTypes["Jwk"] = "JWK";
|
|
589
590
|
})(JsonTypes || (JsonTypes = {}));
|
|
590
591
|
|
|
591
|
-
/*! @azure/msal-common v9.0.
|
|
592
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
592
593
|
|
|
593
594
|
/*
|
|
594
595
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -644,7 +645,7 @@
|
|
|
644
645
|
return AuthError;
|
|
645
646
|
}(Error));
|
|
646
647
|
|
|
647
|
-
/*! @azure/msal-common v9.0.
|
|
648
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
648
649
|
|
|
649
650
|
/*
|
|
650
651
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -719,7 +720,7 @@
|
|
|
719
720
|
}
|
|
720
721
|
};
|
|
721
722
|
|
|
722
|
-
/*! @azure/msal-common v9.0.
|
|
723
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
723
724
|
|
|
724
725
|
/*
|
|
725
726
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1214,7 +1215,7 @@
|
|
|
1214
1215
|
return ClientAuthError;
|
|
1215
1216
|
}(AuthError));
|
|
1216
1217
|
|
|
1217
|
-
/*! @azure/msal-common v9.0.
|
|
1218
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
1218
1219
|
|
|
1219
1220
|
/*
|
|
1220
1221
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1339,7 +1340,7 @@
|
|
|
1339
1340
|
return StringUtils;
|
|
1340
1341
|
}());
|
|
1341
1342
|
|
|
1342
|
-
/*! @azure/msal-common v9.0.
|
|
1343
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
1343
1344
|
|
|
1344
1345
|
/*
|
|
1345
1346
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1519,12 +1520,12 @@
|
|
|
1519
1520
|
return Logger;
|
|
1520
1521
|
}());
|
|
1521
1522
|
|
|
1522
|
-
/*! @azure/msal-common v9.0.
|
|
1523
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
1523
1524
|
/* eslint-disable header/header */
|
|
1524
1525
|
var name$1 = "@azure/msal-common";
|
|
1525
|
-
var version$1 = "9.0.
|
|
1526
|
+
var version$1 = "9.0.1";
|
|
1526
1527
|
|
|
1527
|
-
/*! @azure/msal-common v9.0.
|
|
1528
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
1528
1529
|
/*
|
|
1529
1530
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1530
1531
|
* Licensed under the MIT License.
|
|
@@ -1545,7 +1546,7 @@
|
|
|
1545
1546
|
AzureCloudInstance["AzureUsGovernment"] = "https://login.microsoftonline.us";
|
|
1546
1547
|
})(exports.AzureCloudInstance || (exports.AzureCloudInstance = {}));
|
|
1547
1548
|
|
|
1548
|
-
/*! @azure/msal-common v9.0.
|
|
1549
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
1549
1550
|
|
|
1550
1551
|
/*
|
|
1551
1552
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1704,7 +1705,7 @@
|
|
|
1704
1705
|
return CredentialEntity;
|
|
1705
1706
|
}());
|
|
1706
1707
|
|
|
1707
|
-
/*! @azure/msal-common v9.0.
|
|
1708
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
1708
1709
|
|
|
1709
1710
|
/*
|
|
1710
1711
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1959,7 +1960,7 @@
|
|
|
1959
1960
|
return ClientConfigurationError;
|
|
1960
1961
|
}(ClientAuthError));
|
|
1961
1962
|
|
|
1962
|
-
/*! @azure/msal-common v9.0.
|
|
1963
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
1963
1964
|
|
|
1964
1965
|
/*
|
|
1965
1966
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2143,7 +2144,7 @@
|
|
|
2143
2144
|
return ScopeSet;
|
|
2144
2145
|
}());
|
|
2145
2146
|
|
|
2146
|
-
/*! @azure/msal-common v9.0.
|
|
2147
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
2147
2148
|
|
|
2148
2149
|
/*
|
|
2149
2150
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2181,7 +2182,7 @@
|
|
|
2181
2182
|
};
|
|
2182
2183
|
}
|
|
2183
2184
|
|
|
2184
|
-
/*! @azure/msal-common v9.0.
|
|
2185
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
2185
2186
|
/*
|
|
2186
2187
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2187
2188
|
* Licensed under the MIT License.
|
|
@@ -2196,7 +2197,7 @@
|
|
|
2196
2197
|
AuthorityType[AuthorityType["Dsts"] = 2] = "Dsts";
|
|
2197
2198
|
})(AuthorityType || (AuthorityType = {}));
|
|
2198
2199
|
|
|
2199
|
-
/*! @azure/msal-common v9.0.
|
|
2200
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
2200
2201
|
|
|
2201
2202
|
/*
|
|
2202
2203
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2435,7 +2436,7 @@
|
|
|
2435
2436
|
return AccountEntity;
|
|
2436
2437
|
}());
|
|
2437
2438
|
|
|
2438
|
-
/*! @azure/msal-common v9.0.
|
|
2439
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
2439
2440
|
|
|
2440
2441
|
/*
|
|
2441
2442
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2487,7 +2488,7 @@
|
|
|
2487
2488
|
return AuthToken;
|
|
2488
2489
|
}());
|
|
2489
2490
|
|
|
2490
|
-
/*! @azure/msal-common v9.0.
|
|
2491
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
2491
2492
|
|
|
2492
2493
|
/*
|
|
2493
2494
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3366,7 +3367,7 @@
|
|
|
3366
3367
|
return DefaultStorageClass;
|
|
3367
3368
|
}(CacheManager));
|
|
3368
3369
|
|
|
3369
|
-
/*! @azure/msal-common v9.0.
|
|
3370
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
3370
3371
|
|
|
3371
3372
|
/*
|
|
3372
3373
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3460,7 +3461,7 @@
|
|
|
3460
3461
|
return __assign({ clientCapabilities: [], azureCloudOptions: DEFAULT_AZURE_CLOUD_OPTIONS, skipAuthorityMetadataCache: false }, authOptions);
|
|
3461
3462
|
}
|
|
3462
3463
|
|
|
3463
|
-
/*! @azure/msal-common v9.0.
|
|
3464
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
3464
3465
|
|
|
3465
3466
|
/*
|
|
3466
3467
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3480,7 +3481,7 @@
|
|
|
3480
3481
|
return ServerError;
|
|
3481
3482
|
}(AuthError));
|
|
3482
3483
|
|
|
3483
|
-
/*! @azure/msal-common v9.0.
|
|
3484
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
3484
3485
|
|
|
3485
3486
|
/*
|
|
3486
3487
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3576,7 +3577,7 @@
|
|
|
3576
3577
|
return ThrottlingUtils;
|
|
3577
3578
|
}());
|
|
3578
3579
|
|
|
3579
|
-
/*! @azure/msal-common v9.0.
|
|
3580
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
3580
3581
|
|
|
3581
3582
|
/*
|
|
3582
3583
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3625,7 +3626,7 @@
|
|
|
3625
3626
|
return NetworkManager;
|
|
3626
3627
|
}());
|
|
3627
3628
|
|
|
3628
|
-
/*! @azure/msal-common v9.0.
|
|
3629
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
3629
3630
|
/*
|
|
3630
3631
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3631
3632
|
* Licensed under the MIT License.
|
|
@@ -3636,7 +3637,7 @@
|
|
|
3636
3637
|
CcsCredentialType["UPN"] = "UPN";
|
|
3637
3638
|
})(CcsCredentialType || (CcsCredentialType = {}));
|
|
3638
3639
|
|
|
3639
|
-
/*! @azure/msal-common v9.0.
|
|
3640
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
3640
3641
|
|
|
3641
3642
|
/*
|
|
3642
3643
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3727,7 +3728,7 @@
|
|
|
3727
3728
|
return BaseClient;
|
|
3728
3729
|
}());
|
|
3729
3730
|
|
|
3730
|
-
/*! @azure/msal-common v9.0.
|
|
3731
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
3731
3732
|
|
|
3732
3733
|
/*
|
|
3733
3734
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3813,7 +3814,7 @@
|
|
|
3813
3814
|
return RequestValidator;
|
|
3814
3815
|
}());
|
|
3815
3816
|
|
|
3816
|
-
/*! @azure/msal-common v9.0.
|
|
3817
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
3817
3818
|
|
|
3818
3819
|
/*
|
|
3819
3820
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4191,7 +4192,7 @@
|
|
|
4191
4192
|
return RequestParameterBuilder;
|
|
4192
4193
|
}());
|
|
4193
4194
|
|
|
4194
|
-
/*! @azure/msal-common v9.0.
|
|
4195
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
4195
4196
|
|
|
4196
4197
|
/*
|
|
4197
4198
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4255,7 +4256,7 @@
|
|
|
4255
4256
|
return IdTokenEntity;
|
|
4256
4257
|
}(CredentialEntity));
|
|
4257
4258
|
|
|
4258
|
-
/*! @azure/msal-common v9.0.
|
|
4259
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
4259
4260
|
/*
|
|
4260
4261
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4261
4262
|
* Licensed under the MIT License.
|
|
@@ -4305,7 +4306,7 @@
|
|
|
4305
4306
|
return TimeUtils;
|
|
4306
4307
|
}());
|
|
4307
4308
|
|
|
4308
|
-
/*! @azure/msal-common v9.0.
|
|
4309
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
4309
4310
|
|
|
4310
4311
|
/*
|
|
4311
4312
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4419,7 +4420,7 @@
|
|
|
4419
4420
|
return AccessTokenEntity;
|
|
4420
4421
|
}(CredentialEntity));
|
|
4421
4422
|
|
|
4422
|
-
/*! @azure/msal-common v9.0.
|
|
4423
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
4423
4424
|
|
|
4424
4425
|
/*
|
|
4425
4426
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4486,7 +4487,7 @@
|
|
|
4486
4487
|
return RefreshTokenEntity;
|
|
4487
4488
|
}(CredentialEntity));
|
|
4488
4489
|
|
|
4489
|
-
/*! @azure/msal-common v9.0.
|
|
4490
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
4490
4491
|
|
|
4491
4492
|
/*
|
|
4492
4493
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4561,7 +4562,7 @@
|
|
|
4561
4562
|
return InteractionRequiredAuthError;
|
|
4562
4563
|
}(AuthError));
|
|
4563
4564
|
|
|
4564
|
-
/*! @azure/msal-common v9.0.
|
|
4565
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
4565
4566
|
/*
|
|
4566
4567
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4567
4568
|
* Licensed under the MIT License.
|
|
@@ -4577,7 +4578,7 @@
|
|
|
4577
4578
|
return CacheRecord;
|
|
4578
4579
|
}());
|
|
4579
4580
|
|
|
4580
|
-
/*! @azure/msal-common v9.0.
|
|
4581
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
4581
4582
|
|
|
4582
4583
|
/*
|
|
4583
4584
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4648,7 +4649,7 @@
|
|
|
4648
4649
|
return ProtocolUtils;
|
|
4649
4650
|
}());
|
|
4650
4651
|
|
|
4651
|
-
/*! @azure/msal-common v9.0.
|
|
4652
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
4652
4653
|
|
|
4653
4654
|
/*
|
|
4654
4655
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4882,7 +4883,7 @@
|
|
|
4882
4883
|
return UrlString;
|
|
4883
4884
|
}());
|
|
4884
4885
|
|
|
4885
|
-
/*! @azure/msal-common v9.0.
|
|
4886
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
4886
4887
|
|
|
4887
4888
|
/*
|
|
4888
4889
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4983,7 +4984,7 @@
|
|
|
4983
4984
|
return PopTokenGenerator;
|
|
4984
4985
|
}());
|
|
4985
4986
|
|
|
4986
|
-
/*! @azure/msal-common v9.0.
|
|
4987
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
4987
4988
|
|
|
4988
4989
|
/*
|
|
4989
4990
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5053,7 +5054,7 @@
|
|
|
5053
5054
|
return AppMetadataEntity;
|
|
5054
5055
|
}());
|
|
5055
5056
|
|
|
5056
|
-
/*! @azure/msal-common v9.0.
|
|
5057
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
5057
5058
|
/*
|
|
5058
5059
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5059
5060
|
* Licensed under the MIT License.
|
|
@@ -5089,7 +5090,7 @@
|
|
|
5089
5090
|
return TokenCacheContext;
|
|
5090
5091
|
}());
|
|
5091
5092
|
|
|
5092
|
-
/*! @azure/msal-common v9.0.
|
|
5093
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
5093
5094
|
|
|
5094
5095
|
/*
|
|
5095
5096
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5369,7 +5370,7 @@
|
|
|
5369
5370
|
return ResponseHandler;
|
|
5370
5371
|
}());
|
|
5371
5372
|
|
|
5372
|
-
/*! @azure/msal-common v9.0.
|
|
5373
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
5373
5374
|
|
|
5374
5375
|
/*
|
|
5375
5376
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5822,7 +5823,7 @@
|
|
|
5822
5823
|
return AuthorizationCodeClient;
|
|
5823
5824
|
}(BaseClient));
|
|
5824
5825
|
|
|
5825
|
-
/*! @azure/msal-common v9.0.
|
|
5826
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
5826
5827
|
/*
|
|
5827
5828
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5828
5829
|
* Licensed under the MIT License.
|
|
@@ -5947,7 +5948,7 @@
|
|
|
5947
5948
|
PerformanceEventStatus[PerformanceEventStatus["Completed"] = 2] = "Completed";
|
|
5948
5949
|
})(PerformanceEventStatus || (PerformanceEventStatus = {}));
|
|
5949
5950
|
|
|
5950
|
-
/*! @azure/msal-common v9.0.
|
|
5951
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
5951
5952
|
|
|
5952
5953
|
/*
|
|
5953
5954
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6212,7 +6213,7 @@
|
|
|
6212
6213
|
return RefreshTokenClient;
|
|
6213
6214
|
}(BaseClient));
|
|
6214
6215
|
|
|
6215
|
-
/*! @azure/msal-common v9.0.
|
|
6216
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
6216
6217
|
|
|
6217
6218
|
/*
|
|
6218
6219
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6336,7 +6337,7 @@
|
|
|
6336
6337
|
return SilentFlowClient;
|
|
6337
6338
|
}(BaseClient));
|
|
6338
6339
|
|
|
6339
|
-
/*! @azure/msal-common v9.0.
|
|
6340
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
6340
6341
|
/*
|
|
6341
6342
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6342
6343
|
* Licensed under the MIT License.
|
|
@@ -6348,7 +6349,7 @@
|
|
|
6348
6349
|
response.hasOwnProperty("jwks_uri"));
|
|
6349
6350
|
}
|
|
6350
6351
|
|
|
6351
|
-
/*! @azure/msal-common v9.0.
|
|
6352
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
6352
6353
|
/*
|
|
6353
6354
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6354
6355
|
* Licensed under the MIT License.
|
|
@@ -6357,7 +6358,7 @@
|
|
|
6357
6358
|
var EndpointMetadata = rawMetdataJSON.endpointMetadata;
|
|
6358
6359
|
var InstanceDiscoveryMetadata = rawMetdataJSON.instanceDiscoveryMetadata;
|
|
6359
6360
|
|
|
6360
|
-
/*! @azure/msal-common v9.0.
|
|
6361
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
6361
6362
|
/*
|
|
6362
6363
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6363
6364
|
* Licensed under the MIT License.
|
|
@@ -6371,7 +6372,7 @@
|
|
|
6371
6372
|
ProtocolMode["OIDC"] = "OIDC";
|
|
6372
6373
|
})(exports.ProtocolMode || (exports.ProtocolMode = {}));
|
|
6373
6374
|
|
|
6374
|
-
/*! @azure/msal-common v9.0.
|
|
6375
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
6375
6376
|
|
|
6376
6377
|
/*
|
|
6377
6378
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6448,7 +6449,7 @@
|
|
|
6448
6449
|
return AuthorityMetadataEntity;
|
|
6449
6450
|
}());
|
|
6450
6451
|
|
|
6451
|
-
/*! @azure/msal-common v9.0.
|
|
6452
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
6452
6453
|
/*
|
|
6453
6454
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6454
6455
|
* Licensed under the MIT License.
|
|
@@ -6458,7 +6459,17 @@
|
|
|
6458
6459
|
response.hasOwnProperty("metadata"));
|
|
6459
6460
|
}
|
|
6460
6461
|
|
|
6461
|
-
/*! @azure/msal-common v9.0.
|
|
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 */
|
|
6462
6473
|
|
|
6463
6474
|
/*
|
|
6464
6475
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6580,7 +6591,7 @@
|
|
|
6580
6591
|
return RegionDiscovery;
|
|
6581
6592
|
}());
|
|
6582
6593
|
|
|
6583
|
-
/*! @azure/msal-common v9.0.
|
|
6594
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
6584
6595
|
|
|
6585
6596
|
/*
|
|
6586
6597
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7057,7 +7068,7 @@
|
|
|
7057
7068
|
case 1:
|
|
7058
7069
|
metadata = _a.sent();
|
|
7059
7070
|
if (metadata) {
|
|
7060
|
-
this.logger.verbose("
|
|
7071
|
+
this.logger.verbose("cloud discovery metadata was successfully returned from getCloudDiscoveryMetadataFromNetwork()");
|
|
7061
7072
|
metadataEntity.updateCloudDiscoveryMetadata(metadata, true);
|
|
7062
7073
|
return [2 /*return*/, AuthorityMetadataSource.NETWORK];
|
|
7063
7074
|
}
|
|
@@ -7068,8 +7079,8 @@
|
|
|
7068
7079
|
metadataEntity.updateCloudDiscoveryMetadata(harcodedMetadata, false);
|
|
7069
7080
|
return [2 /*return*/, AuthorityMetadataSource.HARDCODED_VALUES];
|
|
7070
7081
|
}
|
|
7071
|
-
// Metadata could not be obtained from config, cache or
|
|
7072
|
-
this.logger.
|
|
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.");
|
|
7073
7084
|
throw ClientConfigurationError.createUntrustedAuthorityError();
|
|
7074
7085
|
}
|
|
7075
7086
|
});
|
|
@@ -7114,7 +7125,7 @@
|
|
|
7114
7125
|
*/
|
|
7115
7126
|
Authority.prototype.getCloudDiscoveryMetadataFromNetwork = function () {
|
|
7116
7127
|
return __awaiter(this, void 0, void 0, function () {
|
|
7117
|
-
var instanceDiscoveryEndpoint, options, match, response, metadata;
|
|
7128
|
+
var instanceDiscoveryEndpoint, options, match, response, typedResponseBody, metadata, error_1, typedError;
|
|
7118
7129
|
return __generator(this, function (_a) {
|
|
7119
7130
|
switch (_a.label) {
|
|
7120
7131
|
case 0:
|
|
@@ -7130,21 +7141,47 @@
|
|
|
7130
7141
|
return [4 /*yield*/, this.networkInterface.sendGetRequestAsync(instanceDiscoveryEndpoint, options)];
|
|
7131
7142
|
case 2:
|
|
7132
7143
|
response = _a.sent();
|
|
7133
|
-
|
|
7134
|
-
|
|
7135
|
-
|
|
7136
|
-
|
|
7137
|
-
|
|
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");
|
|
7138
7165
|
return [2 /*return*/, null];
|
|
7139
7166
|
}
|
|
7167
|
+
this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request.");
|
|
7140
7168
|
match = Authority.getCloudDiscoveryMetadataFromNetworkResponse(metadata, this.hostnameAndPort);
|
|
7141
7169
|
return [3 /*break*/, 4];
|
|
7142
7170
|
case 3:
|
|
7143
|
-
_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
|
+
}
|
|
7144
7179
|
return [2 /*return*/, null];
|
|
7145
7180
|
case 4:
|
|
7181
|
+
// Custom Domain scenario, host is trusted because Instance Discovery call succeeded
|
|
7146
7182
|
if (!match) {
|
|
7147
|
-
|
|
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.");
|
|
7148
7185
|
match = Authority.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);
|
|
7149
7186
|
}
|
|
7150
7187
|
return [2 /*return*/, match];
|
|
@@ -7276,7 +7313,7 @@
|
|
|
7276
7313
|
return Authority;
|
|
7277
7314
|
}());
|
|
7278
7315
|
|
|
7279
|
-
/*! @azure/msal-common v9.0.
|
|
7316
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
7280
7317
|
|
|
7281
7318
|
/*
|
|
7282
7319
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7337,7 +7374,7 @@
|
|
|
7337
7374
|
return AuthorityFactory;
|
|
7338
7375
|
}());
|
|
7339
7376
|
|
|
7340
|
-
/*! @azure/msal-common v9.0.
|
|
7377
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
7341
7378
|
|
|
7342
7379
|
/*
|
|
7343
7380
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7368,7 +7405,7 @@
|
|
|
7368
7405
|
return ServerTelemetryEntity;
|
|
7369
7406
|
}());
|
|
7370
7407
|
|
|
7371
|
-
/*! @azure/msal-common v9.0.
|
|
7408
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
7372
7409
|
|
|
7373
7410
|
/*
|
|
7374
7411
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7396,7 +7433,7 @@
|
|
|
7396
7433
|
return ThrottlingEntity;
|
|
7397
7434
|
}());
|
|
7398
7435
|
|
|
7399
|
-
/*! @azure/msal-common v9.0.
|
|
7436
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
7400
7437
|
|
|
7401
7438
|
/*
|
|
7402
7439
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7413,7 +7450,7 @@
|
|
|
7413
7450
|
}
|
|
7414
7451
|
};
|
|
7415
7452
|
|
|
7416
|
-
/*! @azure/msal-common v9.0.
|
|
7453
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
7417
7454
|
|
|
7418
7455
|
/*
|
|
7419
7456
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7458,7 +7495,7 @@
|
|
|
7458
7495
|
return JoseHeaderError;
|
|
7459
7496
|
}(AuthError));
|
|
7460
7497
|
|
|
7461
|
-
/*! @azure/msal-common v9.0.
|
|
7498
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
7462
7499
|
|
|
7463
7500
|
/*
|
|
7464
7501
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7498,7 +7535,7 @@
|
|
|
7498
7535
|
return JoseHeader;
|
|
7499
7536
|
}());
|
|
7500
7537
|
|
|
7501
|
-
/*! @azure/msal-common v9.0.
|
|
7538
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
7502
7539
|
|
|
7503
7540
|
/*
|
|
7504
7541
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7557,7 +7594,7 @@
|
|
|
7557
7594
|
return AuthenticationHeaderParser;
|
|
7558
7595
|
}());
|
|
7559
7596
|
|
|
7560
|
-
/*! @azure/msal-common v9.0.
|
|
7597
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
7561
7598
|
|
|
7562
7599
|
/*
|
|
7563
7600
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7719,7 +7756,7 @@
|
|
|
7719
7756
|
return ServerTelemetryManager;
|
|
7720
7757
|
}());
|
|
7721
7758
|
|
|
7722
|
-
/*! @azure/msal-common v9.0.
|
|
7759
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
7723
7760
|
|
|
7724
7761
|
/*
|
|
7725
7762
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8014,7 +8051,7 @@
|
|
|
8014
8051
|
return PerformanceClient;
|
|
8015
8052
|
}());
|
|
8016
8053
|
|
|
8017
|
-
/*! @azure/msal-common v9.0.
|
|
8054
|
+
/*! @azure/msal-common v9.0.1 2022-12-07 */
|
|
8018
8055
|
|
|
8019
8056
|
/*
|
|
8020
8057
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8603,6 +8640,7 @@
|
|
|
8603
8640
|
TemporaryCacheKeys["CCS_CREDENTIAL"] = "ccs.credential";
|
|
8604
8641
|
TemporaryCacheKeys["CORRELATION_ID"] = "request.correlationId";
|
|
8605
8642
|
TemporaryCacheKeys["NATIVE_REQUEST"] = "request.native";
|
|
8643
|
+
TemporaryCacheKeys["REDIRECT_CONTEXT"] = "request.redirect.context";
|
|
8606
8644
|
})(TemporaryCacheKeys || (TemporaryCacheKeys = {}));
|
|
8607
8645
|
/**
|
|
8608
8646
|
* Cache keys stored in-memory
|
|
@@ -9876,6 +9914,19 @@
|
|
|
9876
9914
|
}
|
|
9877
9915
|
return currentCacheKey;
|
|
9878
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
|
+
};
|
|
9879
9930
|
return BrowserCacheManager;
|
|
9880
9931
|
}(CacheManager));
|
|
9881
9932
|
var DEFAULT_BROWSER_CACHE_MANAGER = function (clientId, logger) {
|
|
@@ -9889,7 +9940,7 @@
|
|
|
9889
9940
|
|
|
9890
9941
|
/* eslint-disable header/header */
|
|
9891
9942
|
var name = "@azure/msal-browser";
|
|
9892
|
-
var version = "2.32.
|
|
9943
|
+
var version = "2.32.1";
|
|
9893
9944
|
|
|
9894
9945
|
/*
|
|
9895
9946
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|