@azure/msal-browser 2.26.0 → 2.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/README.md +1 -1
  2. package/dist/_virtual/_tslib.js +1 -1
  3. package/dist/app/ClientApplication.d.ts +1 -1
  4. package/dist/app/ClientApplication.d.ts.map +1 -1
  5. package/dist/app/ClientApplication.js +16 -3
  6. package/dist/app/ClientApplication.js.map +1 -1
  7. package/dist/app/IPublicClientApplication.js +1 -1
  8. package/dist/app/PublicClientApplication.js +1 -1
  9. package/dist/broker/nativeBroker/NativeMessageHandler.js +1 -1
  10. package/dist/cache/AsyncMemoryStorage.js +1 -1
  11. package/dist/cache/BrowserCacheManager.js +2 -2
  12. package/dist/cache/BrowserCacheManager.js.map +1 -1
  13. package/dist/cache/BrowserStorage.js +1 -1
  14. package/dist/cache/DatabaseStorage.js +1 -1
  15. package/dist/cache/MemoryStorage.js +1 -1
  16. package/dist/cache/TokenCache.d.ts.map +1 -1
  17. package/dist/cache/TokenCache.js +2 -1
  18. package/dist/cache/TokenCache.js.map +1 -1
  19. package/dist/config/Configuration.d.ts +4 -0
  20. package/dist/config/Configuration.d.ts.map +1 -1
  21. package/dist/config/Configuration.js +2 -1
  22. package/dist/config/Configuration.js.map +1 -1
  23. package/dist/crypto/BrowserCrypto.js +1 -1
  24. package/dist/crypto/CryptoOps.js +1 -1
  25. package/dist/crypto/GuidGenerator.js +1 -1
  26. package/dist/crypto/PkceGenerator.js +1 -1
  27. package/dist/crypto/SignedHttpRequest.js +1 -1
  28. package/dist/encode/Base64Decode.js +1 -1
  29. package/dist/encode/Base64Encode.js +1 -1
  30. package/dist/error/BrowserAuthError.js +1 -1
  31. package/dist/error/BrowserConfigurationAuthError.js +1 -1
  32. package/dist/error/NativeAuthError.d.ts +2 -1
  33. package/dist/error/NativeAuthError.d.ts.map +1 -1
  34. package/dist/error/NativeAuthError.js +4 -1
  35. package/dist/error/NativeAuthError.js.map +1 -1
  36. package/dist/event/EventHandler.js +1 -1
  37. package/dist/event/EventMessage.js +1 -1
  38. package/dist/event/EventType.js +1 -1
  39. package/dist/index.cjs.js +239 -112
  40. package/dist/index.cjs.js.map +1 -1
  41. package/dist/index.js +1 -1
  42. package/dist/interaction_client/BaseInteractionClient.d.ts.map +1 -1
  43. package/dist/interaction_client/BaseInteractionClient.js +3 -2
  44. package/dist/interaction_client/BaseInteractionClient.js.map +1 -1
  45. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.js +1 -1
  46. package/dist/interaction_client/NativeInteractionClient.d.ts.map +1 -1
  47. package/dist/interaction_client/NativeInteractionClient.js +26 -15
  48. package/dist/interaction_client/NativeInteractionClient.js.map +1 -1
  49. package/dist/interaction_client/PopupClient.js +1 -1
  50. package/dist/interaction_client/RedirectClient.js +1 -1
  51. package/dist/interaction_client/SilentAuthCodeClient.js +1 -1
  52. package/dist/interaction_client/SilentCacheClient.js +1 -1
  53. package/dist/interaction_client/SilentIframeClient.js +1 -1
  54. package/dist/interaction_client/SilentRefreshClient.js +1 -1
  55. package/dist/interaction_client/StandardInteractionClient.d.ts.map +1 -1
  56. package/dist/interaction_client/StandardInteractionClient.js +2 -1
  57. package/dist/interaction_client/StandardInteractionClient.js.map +1 -1
  58. package/dist/interaction_handler/InteractionHandler.js +1 -1
  59. package/dist/interaction_handler/RedirectHandler.js +1 -1
  60. package/dist/interaction_handler/SilentHandler.js +1 -1
  61. package/dist/internals.js +1 -1
  62. package/dist/navigation/NavigationClient.js +1 -1
  63. package/dist/network/FetchClient.js +1 -1
  64. package/dist/network/XhrClient.js +1 -1
  65. package/dist/packageMetadata.d.ts +1 -1
  66. package/dist/packageMetadata.js +2 -2
  67. package/dist/packageMetadata.js.map +1 -1
  68. package/dist/telemetry/BrowserPerformanceClient.js +1 -1
  69. package/dist/telemetry/BrowserPerformanceMeasurement.js +1 -1
  70. package/dist/utils/BrowserConstants.js +1 -1
  71. package/dist/utils/BrowserProtocolUtils.js +1 -1
  72. package/dist/utils/BrowserStringUtils.js +1 -1
  73. package/dist/utils/BrowserUtils.js +1 -1
  74. package/dist/utils/MathUtils.js +1 -1
  75. package/lib/msal-browser.js +239 -112
  76. package/lib/msal-browser.js.map +1 -1
  77. package/lib/msal-browser.min.js +42 -40
  78. package/package.json +2 -2
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v2.26.0 2022-06-13 */
1
+ /*! @azure/msal-browser v2.27.0 2022-07-05 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
@@ -105,7 +105,7 @@ function __spread() {
105
105
  return ar;
106
106
  }
107
107
 
108
- /*! @azure/msal-common v7.0.0 2022-06-13 */
108
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
109
109
  /*! *****************************************************************************
110
110
  Copyright (c) Microsoft Corporation.
111
111
 
@@ -192,7 +192,7 @@ function __spreadArrays() {
192
192
  return r;
193
193
  }
194
194
 
195
- /*! @azure/msal-common v7.0.0 2022-06-13 */
195
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
196
196
 
197
197
  /*
198
198
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -476,6 +476,7 @@ var AuthorityMetadataSource;
476
476
  AuthorityMetadataSource["CONFIG"] = "config";
477
477
  AuthorityMetadataSource["CACHE"] = "cache";
478
478
  AuthorityMetadataSource["NETWORK"] = "network";
479
+ AuthorityMetadataSource["HARDCODED_VALUES"] = "hardcoded_values";
479
480
  })(AuthorityMetadataSource || (AuthorityMetadataSource = {}));
480
481
  var SERVER_TELEM_CONSTANTS = {
481
482
  SCHEMA_VERSION: 5,
@@ -566,7 +567,7 @@ var JsonTypes;
566
567
  JsonTypes["Jwk"] = "JWK";
567
568
  })(JsonTypes || (JsonTypes = {}));
568
569
 
569
- /*! @azure/msal-common v7.0.0 2022-06-13 */
570
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
570
571
 
571
572
  /*
572
573
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -610,7 +611,7 @@ var AuthError = /** @class */ (function (_super) {
610
611
  return AuthError;
611
612
  }(Error));
612
613
 
613
- /*! @azure/msal-common v7.0.0 2022-06-13 */
614
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
614
615
 
615
616
  /*
616
617
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -685,7 +686,7 @@ var DEFAULT_CRYPTO_IMPLEMENTATION = {
685
686
  }
686
687
  };
687
688
 
688
- /*! @azure/msal-common v7.0.0 2022-06-13 */
689
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
689
690
 
690
691
  /*
691
692
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1157,7 +1158,7 @@ var ClientAuthError = /** @class */ (function (_super) {
1157
1158
  return ClientAuthError;
1158
1159
  }(AuthError));
1159
1160
 
1160
- /*! @azure/msal-common v7.0.0 2022-06-13 */
1161
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
1161
1162
 
1162
1163
  /*
1163
1164
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1282,7 +1283,7 @@ var StringUtils = /** @class */ (function () {
1282
1283
  return StringUtils;
1283
1284
  }());
1284
1285
 
1285
- /*! @azure/msal-common v7.0.0 2022-06-13 */
1286
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
1286
1287
 
1287
1288
  /*
1288
1289
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1462,12 +1463,12 @@ var Logger = /** @class */ (function () {
1462
1463
  return Logger;
1463
1464
  }());
1464
1465
 
1465
- /*! @azure/msal-common v7.0.0 2022-06-13 */
1466
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
1466
1467
  /* eslint-disable header/header */
1467
1468
  var name$1 = "@azure/msal-common";
1468
- var version$1 = "7.0.0";
1469
+ var version$1 = "7.1.0";
1469
1470
 
1470
- /*! @azure/msal-common v7.0.0 2022-06-13 */
1471
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
1471
1472
  /*
1472
1473
  * Copyright (c) Microsoft Corporation. All rights reserved.
1473
1474
  * Licensed under the MIT License.
@@ -1488,7 +1489,7 @@ exports.AzureCloudInstance = void 0;
1488
1489
  AzureCloudInstance["AzureUsGovernment"] = "https://login.microsoftonline.us";
1489
1490
  })(exports.AzureCloudInstance || (exports.AzureCloudInstance = {}));
1490
1491
 
1491
- /*! @azure/msal-common v7.0.0 2022-06-13 */
1492
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
1492
1493
 
1493
1494
  /*
1494
1495
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1647,7 +1648,7 @@ var CredentialEntity = /** @class */ (function () {
1647
1648
  return CredentialEntity;
1648
1649
  }());
1649
1650
 
1650
- /*! @azure/msal-common v7.0.0 2022-06-13 */
1651
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
1651
1652
 
1652
1653
  /*
1653
1654
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1902,7 +1903,7 @@ var ClientConfigurationError = /** @class */ (function (_super) {
1902
1903
  return ClientConfigurationError;
1903
1904
  }(ClientAuthError));
1904
1905
 
1905
- /*! @azure/msal-common v7.0.0 2022-06-13 */
1906
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
1906
1907
 
1907
1908
  /*
1908
1909
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2086,7 +2087,7 @@ var ScopeSet = /** @class */ (function () {
2086
2087
  return ScopeSet;
2087
2088
  }());
2088
2089
 
2089
- /*! @azure/msal-common v7.0.0 2022-06-13 */
2090
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
2090
2091
 
2091
2092
  /*
2092
2093
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2124,7 +2125,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
2124
2125
  };
2125
2126
  }
2126
2127
 
2127
- /*! @azure/msal-common v7.0.0 2022-06-13 */
2128
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
2128
2129
  /*
2129
2130
  * Copyright (c) Microsoft Corporation. All rights reserved.
2130
2131
  * Licensed under the MIT License.
@@ -2138,7 +2139,7 @@ var AuthorityType;
2138
2139
  AuthorityType[AuthorityType["Adfs"] = 1] = "Adfs";
2139
2140
  })(AuthorityType || (AuthorityType = {}));
2140
2141
 
2141
- /*! @azure/msal-common v7.0.0 2022-06-13 */
2142
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
2142
2143
 
2143
2144
  /*
2144
2145
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2373,7 +2374,7 @@ var AccountEntity = /** @class */ (function () {
2373
2374
  return AccountEntity;
2374
2375
  }());
2375
2376
 
2376
- /*! @azure/msal-common v7.0.0 2022-06-13 */
2377
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
2377
2378
 
2378
2379
  /*
2379
2380
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2411,7 +2412,7 @@ var AuthToken = /** @class */ (function () {
2411
2412
  return AuthToken;
2412
2413
  }());
2413
2414
 
2414
- /*! @azure/msal-common v7.0.0 2022-06-13 */
2415
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
2415
2416
 
2416
2417
  /*
2417
2418
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3253,7 +3254,7 @@ var DefaultStorageClass = /** @class */ (function (_super) {
3253
3254
  return DefaultStorageClass;
3254
3255
  }(CacheManager));
3255
3256
 
3256
- /*! @azure/msal-common v7.0.0 2022-06-13 */
3257
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
3257
3258
 
3258
3259
  /*
3259
3260
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3344,10 +3345,10 @@ function buildClientConfiguration(_a) {
3344
3345
  * @param authOptions
3345
3346
  */
3346
3347
  function buildAuthOptions(authOptions) {
3347
- return __assign({ clientCapabilities: [], azureCloudOptions: DEFAULT_AZURE_CLOUD_OPTIONS }, authOptions);
3348
+ return __assign({ clientCapabilities: [], azureCloudOptions: DEFAULT_AZURE_CLOUD_OPTIONS, skipAuthorityMetadataCache: false }, authOptions);
3348
3349
  }
3349
3350
 
3350
- /*! @azure/msal-common v7.0.0 2022-06-13 */
3351
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
3351
3352
 
3352
3353
  /*
3353
3354
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3367,7 +3368,7 @@ var ServerError = /** @class */ (function (_super) {
3367
3368
  return ServerError;
3368
3369
  }(AuthError));
3369
3370
 
3370
- /*! @azure/msal-common v7.0.0 2022-06-13 */
3371
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
3371
3372
 
3372
3373
  /*
3373
3374
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3463,7 +3464,7 @@ var ThrottlingUtils = /** @class */ (function () {
3463
3464
  return ThrottlingUtils;
3464
3465
  }());
3465
3466
 
3466
- /*! @azure/msal-common v7.0.0 2022-06-13 */
3467
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
3467
3468
 
3468
3469
  /*
3469
3470
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3512,7 +3513,7 @@ var NetworkManager = /** @class */ (function () {
3512
3513
  return NetworkManager;
3513
3514
  }());
3514
3515
 
3515
- /*! @azure/msal-common v7.0.0 2022-06-13 */
3516
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
3516
3517
  /*
3517
3518
  * Copyright (c) Microsoft Corporation. All rights reserved.
3518
3519
  * Licensed under the MIT License.
@@ -3523,7 +3524,7 @@ var CcsCredentialType;
3523
3524
  CcsCredentialType["UPN"] = "UPN";
3524
3525
  })(CcsCredentialType || (CcsCredentialType = {}));
3525
3526
 
3526
- /*! @azure/msal-common v7.0.0 2022-06-13 */
3527
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
3527
3528
 
3528
3529
  /*
3529
3530
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3612,7 +3613,7 @@ var BaseClient = /** @class */ (function () {
3612
3613
  return BaseClient;
3613
3614
  }());
3614
3615
 
3615
- /*! @azure/msal-common v7.0.0 2022-06-13 */
3616
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
3616
3617
 
3617
3618
  /*
3618
3619
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3698,7 +3699,7 @@ var RequestValidator = /** @class */ (function () {
3698
3699
  return RequestValidator;
3699
3700
  }());
3700
3701
 
3701
- /*! @azure/msal-common v7.0.0 2022-06-13 */
3702
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
3702
3703
 
3703
3704
  /*
3704
3705
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4076,7 +4077,7 @@ var RequestParameterBuilder = /** @class */ (function () {
4076
4077
  return RequestParameterBuilder;
4077
4078
  }());
4078
4079
 
4079
- /*! @azure/msal-common v7.0.0 2022-06-13 */
4080
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
4080
4081
 
4081
4082
  /*
4082
4083
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4140,7 +4141,7 @@ var IdTokenEntity = /** @class */ (function (_super) {
4140
4141
  return IdTokenEntity;
4141
4142
  }(CredentialEntity));
4142
4143
 
4143
- /*! @azure/msal-common v7.0.0 2022-06-13 */
4144
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
4144
4145
  /*
4145
4146
  * Copyright (c) Microsoft Corporation. All rights reserved.
4146
4147
  * Licensed under the MIT License.
@@ -4190,7 +4191,7 @@ var TimeUtils = /** @class */ (function () {
4190
4191
  return TimeUtils;
4191
4192
  }());
4192
4193
 
4193
- /*! @azure/msal-common v7.0.0 2022-06-13 */
4194
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
4194
4195
 
4195
4196
  /*
4196
4197
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4304,7 +4305,7 @@ var AccessTokenEntity = /** @class */ (function (_super) {
4304
4305
  return AccessTokenEntity;
4305
4306
  }(CredentialEntity));
4306
4307
 
4307
- /*! @azure/msal-common v7.0.0 2022-06-13 */
4308
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
4308
4309
 
4309
4310
  /*
4310
4311
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4371,7 +4372,7 @@ var RefreshTokenEntity = /** @class */ (function (_super) {
4371
4372
  return RefreshTokenEntity;
4372
4373
  }(CredentialEntity));
4373
4374
 
4374
- /*! @azure/msal-common v7.0.0 2022-06-13 */
4375
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
4375
4376
 
4376
4377
  /*
4377
4378
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4399,6 +4400,10 @@ var InteractionRequiredAuthErrorMessage = {
4399
4400
  noTokensFoundError: {
4400
4401
  code: "no_tokens_found",
4401
4402
  desc: "No refresh token found in the cache. Please sign-in."
4403
+ },
4404
+ native_account_unavailable: {
4405
+ code: "native_account_unavailable",
4406
+ desc: "The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API."
4402
4407
  }
4403
4408
  };
4404
4409
  /**
@@ -4432,10 +4437,17 @@ var InteractionRequiredAuthError = /** @class */ (function (_super) {
4432
4437
  InteractionRequiredAuthError.createNoTokensFoundError = function () {
4433
4438
  return new InteractionRequiredAuthError(InteractionRequiredAuthErrorMessage.noTokensFoundError.code, InteractionRequiredAuthErrorMessage.noTokensFoundError.desc);
4434
4439
  };
4440
+ /**
4441
+ * Creates an error thrown when the native broker returns ACCOUNT_UNAVAILABLE status, indicating that the account was removed and interactive sign-in is required
4442
+ * @returns
4443
+ */
4444
+ InteractionRequiredAuthError.createNativeAccountUnavailableError = function () {
4445
+ return new InteractionRequiredAuthError(InteractionRequiredAuthErrorMessage.native_account_unavailable.code, InteractionRequiredAuthErrorMessage.native_account_unavailable.desc);
4446
+ };
4435
4447
  return InteractionRequiredAuthError;
4436
4448
  }(AuthError));
4437
4449
 
4438
- /*! @azure/msal-common v7.0.0 2022-06-13 */
4450
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
4439
4451
  /*
4440
4452
  * Copyright (c) Microsoft Corporation. All rights reserved.
4441
4453
  * Licensed under the MIT License.
@@ -4451,7 +4463,7 @@ var CacheRecord = /** @class */ (function () {
4451
4463
  return CacheRecord;
4452
4464
  }());
4453
4465
 
4454
- /*! @azure/msal-common v7.0.0 2022-06-13 */
4466
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
4455
4467
 
4456
4468
  /*
4457
4469
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4522,7 +4534,7 @@ var ProtocolUtils = /** @class */ (function () {
4522
4534
  return ProtocolUtils;
4523
4535
  }());
4524
4536
 
4525
- /*! @azure/msal-common v7.0.0 2022-06-13 */
4537
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
4526
4538
 
4527
4539
  /*
4528
4540
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4723,7 +4735,7 @@ var UrlString = /** @class */ (function () {
4723
4735
  return UrlString;
4724
4736
  }());
4725
4737
 
4726
- /*! @azure/msal-common v7.0.0 2022-06-13 */
4738
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
4727
4739
 
4728
4740
  /*
4729
4741
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4824,7 +4836,7 @@ var PopTokenGenerator = /** @class */ (function () {
4824
4836
  return PopTokenGenerator;
4825
4837
  }());
4826
4838
 
4827
- /*! @azure/msal-common v7.0.0 2022-06-13 */
4839
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
4828
4840
 
4829
4841
  /*
4830
4842
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4894,7 +4906,7 @@ var AppMetadataEntity = /** @class */ (function () {
4894
4906
  return AppMetadataEntity;
4895
4907
  }());
4896
4908
 
4897
- /*! @azure/msal-common v7.0.0 2022-06-13 */
4909
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
4898
4910
  /*
4899
4911
  * Copyright (c) Microsoft Corporation. All rights reserved.
4900
4912
  * Licensed under the MIT License.
@@ -4930,7 +4942,7 @@ var AppMetadataEntity = /** @class */ (function () {
4930
4942
  return TokenCacheContext;
4931
4943
  }());
4932
4944
 
4933
- /*! @azure/msal-common v7.0.0 2022-06-13 */
4945
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
4934
4946
 
4935
4947
  /*
4936
4948
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5200,7 +5212,7 @@ var ResponseHandler = /** @class */ (function () {
5200
5212
  return ResponseHandler;
5201
5213
  }());
5202
5214
 
5203
- /*! @azure/msal-common v7.0.0 2022-06-13 */
5215
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
5204
5216
 
5205
5217
  /*
5206
5218
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5635,7 +5647,7 @@ var AuthorizationCodeClient = /** @class */ (function (_super) {
5635
5647
  return AuthorizationCodeClient;
5636
5648
  }(BaseClient));
5637
5649
 
5638
- /*! @azure/msal-common v7.0.0 2022-06-13 */
5650
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
5639
5651
 
5640
5652
  /*
5641
5653
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5848,7 +5860,7 @@ var RefreshTokenClient = /** @class */ (function (_super) {
5848
5860
  return RefreshTokenClient;
5849
5861
  }(BaseClient));
5850
5862
 
5851
- /*! @azure/msal-common v7.0.0 2022-06-13 */
5863
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
5852
5864
 
5853
5865
  /*
5854
5866
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5964,7 +5976,7 @@ var SilentFlowClient = /** @class */ (function (_super) {
5964
5976
  return SilentFlowClient;
5965
5977
  }(BaseClient));
5966
5978
 
5967
- /*! @azure/msal-common v7.0.0 2022-06-13 */
5979
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
5968
5980
  /*
5969
5981
  * Copyright (c) Microsoft Corporation. All rights reserved.
5970
5982
  * Licensed under the MIT License.
@@ -5972,10 +5984,20 @@ var SilentFlowClient = /** @class */ (function (_super) {
5972
5984
  function isOpenIdConfigResponse(response) {
5973
5985
  return (response.hasOwnProperty("authorization_endpoint") &&
5974
5986
  response.hasOwnProperty("token_endpoint") &&
5975
- response.hasOwnProperty("issuer"));
5987
+ response.hasOwnProperty("issuer") &&
5988
+ response.hasOwnProperty("jwks_uri"));
5976
5989
  }
5977
5990
 
5978
- /*! @azure/msal-common v7.0.0 2022-06-13 */
5991
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
5992
+ /*
5993
+ * Copyright (c) Microsoft Corporation. All rights reserved.
5994
+ * Licensed under the MIT License.
5995
+ */
5996
+ var rawMetdataJSON = { "endpointMetadata": { "https://login.microsoftonline.com/common/": { "token_endpoint": "https://login.microsoftonline.com/common/oauth2/v2.0/token", "token_endpoint_auth_methods_supported": ["client_secret_post", "private_key_jwt", "client_secret_basic"], "jwks_uri": "https://login.microsoftonline.com/common/discovery/v2.0/keys", "response_modes_supported": ["query", "fragment", "form_post"], "subject_types_supported": ["pairwise"], "id_token_signing_alg_values_supported": ["RS256"], "response_types_supported": ["code", "id_token", "code id_token", "id_token token"], "scopes_supported": ["openid", "profile", "email", "offline_access"], "issuer": "https://login.microsoftonline.com/{tenantid}/v2.0", "request_uri_parameter_supported": false, "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", "authorization_endpoint": "https://login.microsoftonline.com/common/oauth2/v2.0/authorize", "device_authorization_endpoint": "https://login.microsoftonline.com/common/oauth2/v2.0/devicecode", "http_logout_supported": true, "frontchannel_logout_supported": true, "end_session_endpoint": "https://login.microsoftonline.com/common/oauth2/v2.0/logout", "claims_supported": ["sub", "iss", "cloud_instance_name", "cloud_instance_host_name", "cloud_graph_host_name", "msgraph_host", "aud", "exp", "iat", "auth_time", "acr", "nonce", "preferred_username", "name", "tid", "ver", "at_hash", "c_hash", "email"], "kerberos_endpoint": "https://login.microsoftonline.com/common/kerberos", "tenant_region_scope": null, "cloud_instance_name": "microsoftonline.com", "cloud_graph_host_name": "graph.windows.net", "msgraph_host": "graph.microsoft.com", "rbac_url": "https://pas.windows.net" }, "https://login.chinacloudapi.cn/common/": { "token_endpoint": "https://login.chinacloudapi.cn/common/oauth2/v2.0/token", "token_endpoint_auth_methods_supported": ["client_secret_post", "private_key_jwt", "client_secret_basic"], "jwks_uri": "https://login.chinacloudapi.cn/common/discovery/v2.0/keys", "response_modes_supported": ["query", "fragment", "form_post"], "subject_types_supported": ["pairwise"], "id_token_signing_alg_values_supported": ["RS256"], "response_types_supported": ["code", "id_token", "code id_token", "id_token token"], "scopes_supported": ["openid", "profile", "email", "offline_access"], "issuer": "https://login.partner.microsoftonline.cn/{tenantid}/v2.0", "request_uri_parameter_supported": false, "userinfo_endpoint": "https://microsoftgraph.chinacloudapi.cn/oidc/userinfo", "authorization_endpoint": "https://login.chinacloudapi.cn/common/oauth2/v2.0/authorize", "device_authorization_endpoint": "https://login.chinacloudapi.cn/common/oauth2/v2.0/devicecode", "http_logout_supported": true, "frontchannel_logout_supported": true, "end_session_endpoint": "https://login.chinacloudapi.cn/common/oauth2/v2.0/logout", "claims_supported": ["sub", "iss", "cloud_instance_name", "cloud_instance_host_name", "cloud_graph_host_name", "msgraph_host", "aud", "exp", "iat", "auth_time", "acr", "nonce", "preferred_username", "name", "tid", "ver", "at_hash", "c_hash", "email"], "kerberos_endpoint": "https://login.chinacloudapi.cn/common/kerberos", "tenant_region_scope": null, "cloud_instance_name": "partner.microsoftonline.cn", "cloud_graph_host_name": "graph.chinacloudapi.cn", "msgraph_host": "microsoftgraph.chinacloudapi.cn", "rbac_url": "https://pas.chinacloudapi.cn" }, "https://login.microsoftonline.us/common/": { "token_endpoint": "https://login.microsoftonline.us/common/oauth2/v2.0/token", "token_endpoint_auth_methods_supported": ["client_secret_post", "private_key_jwt", "client_secret_basic"], "jwks_uri": "https://login.microsoftonline.us/common/discovery/v2.0/keys", "response_modes_supported": ["query", "fragment", "form_post"], "subject_types_supported": ["pairwise"], "id_token_signing_alg_values_supported": ["RS256"], "response_types_supported": ["code", "id_token", "code id_token", "id_token token"], "scopes_supported": ["openid", "profile", "email", "offline_access"], "issuer": "https://login.microsoftonline.us/{tenantid}/v2.0", "request_uri_parameter_supported": false, "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", "authorization_endpoint": "https://login.microsoftonline.us/common/oauth2/v2.0/authorize", "device_authorization_endpoint": "https://login.microsoftonline.us/common/oauth2/v2.0/devicecode", "http_logout_supported": true, "frontchannel_logout_supported": true, "end_session_endpoint": "https://login.microsoftonline.us/common/oauth2/v2.0/logout", "claims_supported": ["sub", "iss", "cloud_instance_name", "cloud_instance_host_name", "cloud_graph_host_name", "msgraph_host", "aud", "exp", "iat", "auth_time", "acr", "nonce", "preferred_username", "name", "tid", "ver", "at_hash", "c_hash", "email"], "kerberos_endpoint": "https://login.microsoftonline.us/common/kerberos", "tenant_region_scope": null, "cloud_instance_name": "microsoftonline.us", "cloud_graph_host_name": "graph.windows.net", "msgraph_host": "graph.microsoft.com", "rbac_url": "https://pasff.usgovcloudapi.net" }, "https://login.microsoftonline.com/consumers/": { "token_endpoint": "https://login.microsoftonline.com/consumers/oauth2/v2.0/token", "token_endpoint_auth_methods_supported": ["client_secret_post", "private_key_jwt", "client_secret_basic"], "jwks_uri": "https://login.microsoftonline.com/consumers/discovery/v2.0/keys", "response_modes_supported": ["query", "fragment", "form_post"], "subject_types_supported": ["pairwise"], "id_token_signing_alg_values_supported": ["RS256"], "response_types_supported": ["code", "id_token", "code id_token", "id_token token"], "scopes_supported": ["openid", "profile", "email", "offline_access"], "issuer": "https://login.microsoftonline.com/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0", "request_uri_parameter_supported": false, "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", "authorization_endpoint": "https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize", "device_authorization_endpoint": "https://login.microsoftonline.com/consumers/oauth2/v2.0/devicecode", "http_logout_supported": true, "frontchannel_logout_supported": true, "end_session_endpoint": "https://login.microsoftonline.com/consumers/oauth2/v2.0/logout", "claims_supported": ["sub", "iss", "cloud_instance_name", "cloud_instance_host_name", "cloud_graph_host_name", "msgraph_host", "aud", "exp", "iat", "auth_time", "acr", "nonce", "preferred_username", "name", "tid", "ver", "at_hash", "c_hash", "email"], "kerberos_endpoint": "https://login.microsoftonline.com/consumers/kerberos", "tenant_region_scope": null, "cloud_instance_name": "microsoftonline.com", "cloud_graph_host_name": "graph.windows.net", "msgraph_host": "graph.microsoft.com", "rbac_url": "https://pas.windows.net" }, "https://login.chinacloudapi.cn/consumers/": { "token_endpoint": "https://login.chinacloudapi.cn/consumers/oauth2/v2.0/token", "token_endpoint_auth_methods_supported": ["client_secret_post", "private_key_jwt", "client_secret_basic"], "jwks_uri": "https://login.chinacloudapi.cn/consumers/discovery/v2.0/keys", "response_modes_supported": ["query", "fragment", "form_post"], "subject_types_supported": ["pairwise"], "id_token_signing_alg_values_supported": ["RS256"], "response_types_supported": ["code", "id_token", "code id_token", "id_token token"], "scopes_supported": ["openid", "profile", "email", "offline_access"], "issuer": "https://login.partner.microsoftonline.cn/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0", "request_uri_parameter_supported": false, "userinfo_endpoint": "https://microsoftgraph.chinacloudapi.cn/oidc/userinfo", "authorization_endpoint": "https://login.chinacloudapi.cn/consumers/oauth2/v2.0/authorize", "device_authorization_endpoint": "https://login.chinacloudapi.cn/consumers/oauth2/v2.0/devicecode", "http_logout_supported": true, "frontchannel_logout_supported": true, "end_session_endpoint": "https://login.chinacloudapi.cn/consumers/oauth2/v2.0/logout", "claims_supported": ["sub", "iss", "cloud_instance_name", "cloud_instance_host_name", "cloud_graph_host_name", "msgraph_host", "aud", "exp", "iat", "auth_time", "acr", "nonce", "preferred_username", "name", "tid", "ver", "at_hash", "c_hash", "email"], "kerberos_endpoint": "https://login.chinacloudapi.cn/consumers/kerberos", "tenant_region_scope": null, "cloud_instance_name": "partner.microsoftonline.cn", "cloud_graph_host_name": "graph.chinacloudapi.cn", "msgraph_host": "microsoftgraph.chinacloudapi.cn", "rbac_url": "https://pas.chinacloudapi.cn" }, "https://login.microsoftonline.us/consumers/": { "token_endpoint": "https://login.microsoftonline.us/consumers/oauth2/v2.0/token", "token_endpoint_auth_methods_supported": ["client_secret_post", "private_key_jwt", "client_secret_basic"], "jwks_uri": "https://login.microsoftonline.us/consumers/discovery/v2.0/keys", "response_modes_supported": ["query", "fragment", "form_post"], "subject_types_supported": ["pairwise"], "id_token_signing_alg_values_supported": ["RS256"], "response_types_supported": ["code", "id_token", "code id_token", "id_token token"], "scopes_supported": ["openid", "profile", "email", "offline_access"], "issuer": "https://login.microsoftonline.us/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0", "request_uri_parameter_supported": false, "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", "authorization_endpoint": "https://login.microsoftonline.us/consumers/oauth2/v2.0/authorize", "device_authorization_endpoint": "https://login.microsoftonline.us/consumers/oauth2/v2.0/devicecode", "http_logout_supported": true, "frontchannel_logout_supported": true, "end_session_endpoint": "https://login.microsoftonline.us/consumers/oauth2/v2.0/logout", "claims_supported": ["sub", "iss", "cloud_instance_name", "cloud_instance_host_name", "cloud_graph_host_name", "msgraph_host", "aud", "exp", "iat", "auth_time", "acr", "nonce", "preferred_username", "name", "tid", "ver", "at_hash", "c_hash", "email"], "kerberos_endpoint": "https://login.microsoftonline.us/consumers/kerberos", "tenant_region_scope": null, "cloud_instance_name": "microsoftonline.us", "cloud_graph_host_name": "graph.windows.net", "msgraph_host": "graph.microsoft.com", "rbac_url": "https://pasff.usgovcloudapi.net" }, "https://login.microsoftonline.com/organizations/": { "token_endpoint": "https://login.microsoftonline.com/organizations/oauth2/v2.0/token", "token_endpoint_auth_methods_supported": ["client_secret_post", "private_key_jwt", "client_secret_basic"], "jwks_uri": "https://login.microsoftonline.com/organizations/discovery/v2.0/keys", "response_modes_supported": ["query", "fragment", "form_post"], "subject_types_supported": ["pairwise"], "id_token_signing_alg_values_supported": ["RS256"], "response_types_supported": ["code", "id_token", "code id_token", "id_token token"], "scopes_supported": ["openid", "profile", "email", "offline_access"], "issuer": "https://login.microsoftonline.com/{tenantid}/v2.0", "request_uri_parameter_supported": false, "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", "authorization_endpoint": "https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize", "device_authorization_endpoint": "https://login.microsoftonline.com/organizations/oauth2/v2.0/devicecode", "http_logout_supported": true, "frontchannel_logout_supported": true, "end_session_endpoint": "https://login.microsoftonline.com/organizations/oauth2/v2.0/logout", "claims_supported": ["sub", "iss", "cloud_instance_name", "cloud_instance_host_name", "cloud_graph_host_name", "msgraph_host", "aud", "exp", "iat", "auth_time", "acr", "nonce", "preferred_username", "name", "tid", "ver", "at_hash", "c_hash", "email"], "kerberos_endpoint": "https://login.microsoftonline.com/organizations/kerberos", "tenant_region_scope": null, "cloud_instance_name": "microsoftonline.com", "cloud_graph_host_name": "graph.windows.net", "msgraph_host": "graph.microsoft.com", "rbac_url": "https://pas.windows.net" }, "https://login.chinacloudapi.cn/organizations/": { "token_endpoint": "https://login.chinacloudapi.cn/organizations/oauth2/v2.0/token", "token_endpoint_auth_methods_supported": ["client_secret_post", "private_key_jwt", "client_secret_basic"], "jwks_uri": "https://login.chinacloudapi.cn/organizations/discovery/v2.0/keys", "response_modes_supported": ["query", "fragment", "form_post"], "subject_types_supported": ["pairwise"], "id_token_signing_alg_values_supported": ["RS256"], "response_types_supported": ["code", "id_token", "code id_token", "id_token token"], "scopes_supported": ["openid", "profile", "email", "offline_access"], "issuer": "https://login.partner.microsoftonline.cn/{tenantid}/v2.0", "request_uri_parameter_supported": false, "userinfo_endpoint": "https://microsoftgraph.chinacloudapi.cn/oidc/userinfo", "authorization_endpoint": "https://login.chinacloudapi.cn/organizations/oauth2/v2.0/authorize", "device_authorization_endpoint": "https://login.chinacloudapi.cn/organizations/oauth2/v2.0/devicecode", "http_logout_supported": true, "frontchannel_logout_supported": true, "end_session_endpoint": "https://login.chinacloudapi.cn/organizations/oauth2/v2.0/logout", "claims_supported": ["sub", "iss", "cloud_instance_name", "cloud_instance_host_name", "cloud_graph_host_name", "msgraph_host", "aud", "exp", "iat", "auth_time", "acr", "nonce", "preferred_username", "name", "tid", "ver", "at_hash", "c_hash", "email"], "kerberos_endpoint": "https://login.chinacloudapi.cn/organizations/kerberos", "tenant_region_scope": null, "cloud_instance_name": "partner.microsoftonline.cn", "cloud_graph_host_name": "graph.chinacloudapi.cn", "msgraph_host": "microsoftgraph.chinacloudapi.cn", "rbac_url": "https://pas.chinacloudapi.cn" }, "https://login.microsoftonline.us/organizations/": { "token_endpoint": "https://login.microsoftonline.us/organizations/oauth2/v2.0/token", "token_endpoint_auth_methods_supported": ["client_secret_post", "private_key_jwt", "client_secret_basic"], "jwks_uri": "https://login.microsoftonline.us/organizations/discovery/v2.0/keys", "response_modes_supported": ["query", "fragment", "form_post"], "subject_types_supported": ["pairwise"], "id_token_signing_alg_values_supported": ["RS256"], "response_types_supported": ["code", "id_token", "code id_token", "id_token token"], "scopes_supported": ["openid", "profile", "email", "offline_access"], "issuer": "https://login.microsoftonline.us/{tenantid}/v2.0", "request_uri_parameter_supported": false, "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", "authorization_endpoint": "https://login.microsoftonline.us/organizations/oauth2/v2.0/authorize", "device_authorization_endpoint": "https://login.microsoftonline.us/organizations/oauth2/v2.0/devicecode", "http_logout_supported": true, "frontchannel_logout_supported": true, "end_session_endpoint": "https://login.microsoftonline.us/organizations/oauth2/v2.0/logout", "claims_supported": ["sub", "iss", "cloud_instance_name", "cloud_instance_host_name", "cloud_graph_host_name", "msgraph_host", "aud", "exp", "iat", "auth_time", "acr", "nonce", "preferred_username", "name", "tid", "ver", "at_hash", "c_hash", "email"], "kerberos_endpoint": "https://login.microsoftonline.us/organizations/kerberos", "tenant_region_scope": null, "cloud_instance_name": "microsoftonline.us", "cloud_graph_host_name": "graph.windows.net", "msgraph_host": "graph.microsoft.com", "rbac_url": "https://pasff.usgovcloudapi.net" } }, "instanceDiscoveryMetadata": { "https://login.microsoftonline.com/common/": { "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration", "api-version": "1.1", "metadata": [{ "preferred_network": "login.microsoftonline.com", "preferred_cache": "login.windows.net", "aliases": ["login.microsoftonline.com", "login.windows.net", "login.microsoft.com", "sts.windows.net"] }, { "preferred_network": "login.partner.microsoftonline.cn", "preferred_cache": "login.partner.microsoftonline.cn", "aliases": ["login.partner.microsoftonline.cn", "login.chinacloudapi.cn"] }, { "preferred_network": "login.microsoftonline.de", "preferred_cache": "login.microsoftonline.de", "aliases": ["login.microsoftonline.de"] }, { "preferred_network": "login.microsoftonline.us", "preferred_cache": "login.microsoftonline.us", "aliases": ["login.microsoftonline.us", "login.usgovcloudapi.net"] }, { "preferred_network": "login-us.microsoftonline.com", "preferred_cache": "login-us.microsoftonline.com", "aliases": ["login-us.microsoftonline.com"] }] }, "https://login.chinacloudapi.cn/common/": { "tenant_discovery_endpoint": "https://login.chinacloudapi.cn/common/v2.0/.well-known/openid-configuration", "api-version": "1.1", "metadata": [{ "preferred_network": "login.microsoftonline.com", "preferred_cache": "login.windows.net", "aliases": ["login.microsoftonline.com", "login.windows.net", "login.microsoft.com", "sts.windows.net"] }, { "preferred_network": "login.partner.microsoftonline.cn", "preferred_cache": "login.partner.microsoftonline.cn", "aliases": ["login.partner.microsoftonline.cn", "login.chinacloudapi.cn"] }, { "preferred_network": "login.microsoftonline.de", "preferred_cache": "login.microsoftonline.de", "aliases": ["login.microsoftonline.de"] }, { "preferred_network": "login.microsoftonline.us", "preferred_cache": "login.microsoftonline.us", "aliases": ["login.microsoftonline.us", "login.usgovcloudapi.net"] }, { "preferred_network": "login-us.microsoftonline.com", "preferred_cache": "login-us.microsoftonline.com", "aliases": ["login-us.microsoftonline.com"] }] }, "https://login.microsoftonline.us/common/": { "tenant_discovery_endpoint": "https://login.microsoftonline.us/common/v2.0/.well-known/openid-configuration", "api-version": "1.1", "metadata": [{ "preferred_network": "login.microsoftonline.com", "preferred_cache": "login.windows.net", "aliases": ["login.microsoftonline.com", "login.windows.net", "login.microsoft.com", "sts.windows.net"] }, { "preferred_network": "login.partner.microsoftonline.cn", "preferred_cache": "login.partner.microsoftonline.cn", "aliases": ["login.partner.microsoftonline.cn", "login.chinacloudapi.cn"] }, { "preferred_network": "login.microsoftonline.de", "preferred_cache": "login.microsoftonline.de", "aliases": ["login.microsoftonline.de"] }, { "preferred_network": "login.microsoftonline.us", "preferred_cache": "login.microsoftonline.us", "aliases": ["login.microsoftonline.us", "login.usgovcloudapi.net"] }, { "preferred_network": "login-us.microsoftonline.com", "preferred_cache": "login-us.microsoftonline.com", "aliases": ["login-us.microsoftonline.com"] }] }, "https://login.microsoftonline.com/consumers/": { "tenant_discovery_endpoint": "https://login.microsoftonline.com/consumers/v2.0/.well-known/openid-configuration", "api-version": "1.1", "metadata": [{ "preferred_network": "login.microsoftonline.com", "preferred_cache": "login.windows.net", "aliases": ["login.microsoftonline.com", "login.windows.net", "login.microsoft.com", "sts.windows.net"] }, { "preferred_network": "login.partner.microsoftonline.cn", "preferred_cache": "login.partner.microsoftonline.cn", "aliases": ["login.partner.microsoftonline.cn", "login.chinacloudapi.cn"] }, { "preferred_network": "login.microsoftonline.de", "preferred_cache": "login.microsoftonline.de", "aliases": ["login.microsoftonline.de"] }, { "preferred_network": "login.microsoftonline.us", "preferred_cache": "login.microsoftonline.us", "aliases": ["login.microsoftonline.us", "login.usgovcloudapi.net"] }, { "preferred_network": "login-us.microsoftonline.com", "preferred_cache": "login-us.microsoftonline.com", "aliases": ["login-us.microsoftonline.com"] }] }, "https://login.chinacloudapi.cn/consumers/": { "tenant_discovery_endpoint": "https://login.chinacloudapi.cn/consumers/v2.0/.well-known/openid-configuration", "api-version": "1.1", "metadata": [{ "preferred_network": "login.microsoftonline.com", "preferred_cache": "login.windows.net", "aliases": ["login.microsoftonline.com", "login.windows.net", "login.microsoft.com", "sts.windows.net"] }, { "preferred_network": "login.partner.microsoftonline.cn", "preferred_cache": "login.partner.microsoftonline.cn", "aliases": ["login.partner.microsoftonline.cn", "login.chinacloudapi.cn"] }, { "preferred_network": "login.microsoftonline.de", "preferred_cache": "login.microsoftonline.de", "aliases": ["login.microsoftonline.de"] }, { "preferred_network": "login.microsoftonline.us", "preferred_cache": "login.microsoftonline.us", "aliases": ["login.microsoftonline.us", "login.usgovcloudapi.net"] }, { "preferred_network": "login-us.microsoftonline.com", "preferred_cache": "login-us.microsoftonline.com", "aliases": ["login-us.microsoftonline.com"] }] }, "https://login.microsoftonline.us/consumers/": { "tenant_discovery_endpoint": "https://login.microsoftonline.us/consumers/v2.0/.well-known/openid-configuration", "api-version": "1.1", "metadata": [{ "preferred_network": "login.microsoftonline.com", "preferred_cache": "login.windows.net", "aliases": ["login.microsoftonline.com", "login.windows.net", "login.microsoft.com", "sts.windows.net"] }, { "preferred_network": "login.partner.microsoftonline.cn", "preferred_cache": "login.partner.microsoftonline.cn", "aliases": ["login.partner.microsoftonline.cn", "login.chinacloudapi.cn"] }, { "preferred_network": "login.microsoftonline.de", "preferred_cache": "login.microsoftonline.de", "aliases": ["login.microsoftonline.de"] }, { "preferred_network": "login.microsoftonline.us", "preferred_cache": "login.microsoftonline.us", "aliases": ["login.microsoftonline.us", "login.usgovcloudapi.net"] }, { "preferred_network": "login-us.microsoftonline.com", "preferred_cache": "login-us.microsoftonline.com", "aliases": ["login-us.microsoftonline.com"] }] }, "https://login.microsoftonline.com/organizations/": { "tenant_discovery_endpoint": "https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration", "api-version": "1.1", "metadata": [{ "preferred_network": "login.microsoftonline.com", "preferred_cache": "login.windows.net", "aliases": ["login.microsoftonline.com", "login.windows.net", "login.microsoft.com", "sts.windows.net"] }, { "preferred_network": "login.partner.microsoftonline.cn", "preferred_cache": "login.partner.microsoftonline.cn", "aliases": ["login.partner.microsoftonline.cn", "login.chinacloudapi.cn"] }, { "preferred_network": "login.microsoftonline.de", "preferred_cache": "login.microsoftonline.de", "aliases": ["login.microsoftonline.de"] }, { "preferred_network": "login.microsoftonline.us", "preferred_cache": "login.microsoftonline.us", "aliases": ["login.microsoftonline.us", "login.usgovcloudapi.net"] }, { "preferred_network": "login-us.microsoftonline.com", "preferred_cache": "login-us.microsoftonline.com", "aliases": ["login-us.microsoftonline.com"] }] }, "https://login.chinacloudapi.cn/organizations/": { "tenant_discovery_endpoint": "https://login.chinacloudapi.cn/organizations/v2.0/.well-known/openid-configuration", "api-version": "1.1", "metadata": [{ "preferred_network": "login.microsoftonline.com", "preferred_cache": "login.windows.net", "aliases": ["login.microsoftonline.com", "login.windows.net", "login.microsoft.com", "sts.windows.net"] }, { "preferred_network": "login.partner.microsoftonline.cn", "preferred_cache": "login.partner.microsoftonline.cn", "aliases": ["login.partner.microsoftonline.cn", "login.chinacloudapi.cn"] }, { "preferred_network": "login.microsoftonline.de", "preferred_cache": "login.microsoftonline.de", "aliases": ["login.microsoftonline.de"] }, { "preferred_network": "login.microsoftonline.us", "preferred_cache": "login.microsoftonline.us", "aliases": ["login.microsoftonline.us", "login.usgovcloudapi.net"] }, { "preferred_network": "login-us.microsoftonline.com", "preferred_cache": "login-us.microsoftonline.com", "aliases": ["login-us.microsoftonline.com"] }] }, "https://login.microsoftonline.us/organizations/": { "tenant_discovery_endpoint": "https://login.microsoftonline.us/organizations/v2.0/.well-known/openid-configuration", "api-version": "1.1", "metadata": [{ "preferred_network": "login.microsoftonline.com", "preferred_cache": "login.windows.net", "aliases": ["login.microsoftonline.com", "login.windows.net", "login.microsoft.com", "sts.windows.net"] }, { "preferred_network": "login.partner.microsoftonline.cn", "preferred_cache": "login.partner.microsoftonline.cn", "aliases": ["login.partner.microsoftonline.cn", "login.chinacloudapi.cn"] }, { "preferred_network": "login.microsoftonline.de", "preferred_cache": "login.microsoftonline.de", "aliases": ["login.microsoftonline.de"] }, { "preferred_network": "login.microsoftonline.us", "preferred_cache": "login.microsoftonline.us", "aliases": ["login.microsoftonline.us", "login.usgovcloudapi.net"] }, { "preferred_network": "login-us.microsoftonline.com", "preferred_cache": "login-us.microsoftonline.com", "aliases": ["login-us.microsoftonline.com"] }] } } };
5997
+ var EndpointMetadata = rawMetdataJSON.endpointMetadata;
5998
+ var InstanceDiscoveryMetadata = rawMetdataJSON.instanceDiscoveryMetadata;
5999
+
6000
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
5979
6001
  /*
5980
6002
  * Copyright (c) Microsoft Corporation. All rights reserved.
5981
6003
  * Licensed under the MIT License.
@@ -5989,7 +6011,7 @@ exports.ProtocolMode = void 0;
5989
6011
  ProtocolMode["OIDC"] = "OIDC";
5990
6012
  })(exports.ProtocolMode || (exports.ProtocolMode = {}));
5991
6013
 
5992
- /*! @azure/msal-common v7.0.0 2022-06-13 */
6014
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
5993
6015
 
5994
6016
  /*
5995
6017
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6021,6 +6043,7 @@ var AuthorityMetadataEntity = /** @class */ (function () {
6021
6043
  this.end_session_endpoint = metadata.end_session_endpoint;
6022
6044
  this.issuer = metadata.issuer;
6023
6045
  this.endpointsFromNetwork = fromNetwork;
6046
+ this.jwks_uri = metadata.jwks_uri;
6024
6047
  };
6025
6048
  /**
6026
6049
  * Save the authority that was used to create this cache entry
@@ -6059,12 +6082,13 @@ var AuthorityMetadataEntity = /** @class */ (function () {
6059
6082
  entity.hasOwnProperty("issuer") &&
6060
6083
  entity.hasOwnProperty("aliasesFromNetwork") &&
6061
6084
  entity.hasOwnProperty("endpointsFromNetwork") &&
6062
- entity.hasOwnProperty("expiresAt"));
6085
+ entity.hasOwnProperty("expiresAt") &&
6086
+ entity.hasOwnProperty("jwks_uri"));
6063
6087
  };
6064
6088
  return AuthorityMetadataEntity;
6065
6089
  }());
6066
6090
 
6067
- /*! @azure/msal-common v7.0.0 2022-06-13 */
6091
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
6068
6092
  /*
6069
6093
  * Copyright (c) Microsoft Corporation. All rights reserved.
6070
6094
  * Licensed under the MIT License.
@@ -6074,7 +6098,7 @@ function isCloudInstanceDiscoveryResponse(response) {
6074
6098
  response.hasOwnProperty("metadata"));
6075
6099
  }
6076
6100
 
6077
- /*! @azure/msal-common v7.0.0 2022-06-13 */
6101
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
6078
6102
 
6079
6103
  /*
6080
6104
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6196,7 +6220,7 @@ var RegionDiscovery = /** @class */ (function () {
6196
6220
  return RegionDiscovery;
6197
6221
  }());
6198
6222
 
6199
- /*! @azure/msal-common v7.0.0 2022-06-13 */
6223
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
6200
6224
 
6201
6225
  /*
6202
6226
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6381,6 +6405,22 @@ var Authority = /** @class */ (function () {
6381
6405
  enumerable: false,
6382
6406
  configurable: true
6383
6407
  });
6408
+ Object.defineProperty(Authority.prototype, "jwksUri", {
6409
+ /**
6410
+ * Jwks_uri for token signing keys
6411
+ */
6412
+ get: function () {
6413
+ if (this.discoveryComplete()) {
6414
+ var endpoint = this.replacePath(this.metadata.jwks_uri);
6415
+ return this.replaceTenant(endpoint);
6416
+ }
6417
+ else {
6418
+ throw ClientAuthError.createEndpointDiscoveryIncompleteError("Discovery incomplete.");
6419
+ }
6420
+ },
6421
+ enumerable: false,
6422
+ configurable: true
6423
+ });
6384
6424
  /**
6385
6425
  * Replaces tenant in url path with current tenant. Defaults to common.
6386
6426
  * @param urlString
@@ -6464,11 +6504,11 @@ var Authority = /** @class */ (function () {
6464
6504
  * @param metadataEntity
6465
6505
  */
6466
6506
  Authority.prototype.updateEndpointMetadata = function (metadataEntity) {
6467
- var _a;
6507
+ var _a, _b;
6468
6508
  return __awaiter(this, void 0, void 0, function () {
6469
- var metadata, autodetectedRegionName, azureRegion;
6470
- return __generator(this, function (_b) {
6471
- switch (_b.label) {
6509
+ var metadata, harcodedMetadata;
6510
+ return __generator(this, function (_c) {
6511
+ switch (_c.label) {
6472
6512
  case 0:
6473
6513
  metadata = this.getEndpointMetadataFromConfig();
6474
6514
  if (metadata) {
@@ -6479,41 +6519,30 @@ var Authority = /** @class */ (function () {
6479
6519
  // No need to update
6480
6520
  return [2 /*return*/, AuthorityMetadataSource.CACHE];
6481
6521
  }
6522
+ harcodedMetadata = this.getEndpointMetadataFromHardcodedValues();
6482
6523
  return [4 /*yield*/, this.getEndpointMetadataFromNetwork()];
6483
6524
  case 1:
6484
- metadata = _b.sent();
6525
+ metadata = _c.sent();
6485
6526
  if (!metadata) return [3 /*break*/, 4];
6486
6527
  if (!((_a = this.authorityOptions.azureRegionConfiguration) === null || _a === void 0 ? void 0 : _a.azureRegion)) return [3 /*break*/, 3];
6487
- return [4 /*yield*/, this.regionDiscovery.detectRegion(this.authorityOptions.azureRegionConfiguration.environmentRegion, this.regionDiscoveryMetadata, this.proxyUrl)];
6528
+ return [4 /*yield*/, this.updateMetadataWithRegionalInformation(metadata)];
6488
6529
  case 2:
6489
- autodetectedRegionName = _b.sent();
6490
- azureRegion = this.authorityOptions.azureRegionConfiguration.azureRegion === Constants.AZURE_REGION_AUTO_DISCOVER_FLAG
6491
- ? autodetectedRegionName
6492
- : this.authorityOptions.azureRegionConfiguration.azureRegion;
6493
- if (this.authorityOptions.azureRegionConfiguration.azureRegion === Constants.AZURE_REGION_AUTO_DISCOVER_FLAG) {
6494
- this.regionDiscoveryMetadata.region_outcome = autodetectedRegionName ?
6495
- RegionDiscoveryOutcomes.AUTO_DETECTION_REQUESTED_SUCCESSFUL :
6496
- RegionDiscoveryOutcomes.AUTO_DETECTION_REQUESTED_FAILED;
6497
- }
6498
- else {
6499
- if (autodetectedRegionName) {
6500
- this.regionDiscoveryMetadata.region_outcome = (this.authorityOptions.azureRegionConfiguration.azureRegion === autodetectedRegionName) ?
6501
- RegionDiscoveryOutcomes.CONFIGURED_MATCHES_DETECTED :
6502
- RegionDiscoveryOutcomes.CONFIGURED_NOT_DETECTED;
6503
- }
6504
- else {
6505
- this.regionDiscoveryMetadata.region_outcome = RegionDiscoveryOutcomes.CONFIGURED_NO_AUTO_DETECTION;
6506
- }
6507
- }
6508
- if (azureRegion) {
6509
- this.regionDiscoveryMetadata.region_used = azureRegion;
6510
- metadata = Authority.replaceWithRegionalInformation(metadata, azureRegion);
6511
- }
6512
- _b.label = 3;
6530
+ metadata = _c.sent();
6531
+ _c.label = 3;
6513
6532
  case 3:
6514
6533
  metadataEntity.updateEndpointMetadata(metadata, true);
6515
6534
  return [2 /*return*/, AuthorityMetadataSource.NETWORK];
6516
- case 4: throw ClientAuthError.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint);
6535
+ case 4:
6536
+ if (!(harcodedMetadata && !this.authorityOptions.skipAuthorityMetadataCache)) return [3 /*break*/, 7];
6537
+ if (!((_b = this.authorityOptions.azureRegionConfiguration) === null || _b === void 0 ? void 0 : _b.azureRegion)) return [3 /*break*/, 6];
6538
+ return [4 /*yield*/, this.updateMetadataWithRegionalInformation(harcodedMetadata)];
6539
+ case 5:
6540
+ harcodedMetadata = _c.sent();
6541
+ _c.label = 6;
6542
+ case 6:
6543
+ metadataEntity.updateEndpointMetadata(harcodedMetadata, false);
6544
+ return [2 /*return*/, AuthorityMetadataSource.HARDCODED_VALUES];
6545
+ case 7: throw ClientAuthError.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint);
6517
6546
  }
6518
6547
  });
6519
6548
  });
@@ -6544,6 +6573,8 @@ var Authority = /** @class */ (function () {
6544
6573
  };
6545
6574
  /**
6546
6575
  * Gets OAuth endpoints from the given OpenID configuration endpoint.
6576
+ *
6577
+ * @param hasHardcodedMetadata boolean
6547
6578
  */
6548
6579
  Authority.prototype.getEndpointMetadataFromNetwork = function () {
6549
6580
  return __awaiter(this, void 0, void 0, function () {
@@ -6570,6 +6601,54 @@ var Authority = /** @class */ (function () {
6570
6601
  });
6571
6602
  });
6572
6603
  };
6604
+ /**
6605
+ * Get OAuth endpoints for common authorities.
6606
+ */
6607
+ Authority.prototype.getEndpointMetadataFromHardcodedValues = function () {
6608
+ if (this.canonicalAuthority in EndpointMetadata) {
6609
+ return EndpointMetadata[this.canonicalAuthority];
6610
+ }
6611
+ return null;
6612
+ };
6613
+ /**
6614
+ * Update the retrieved metadata with regional information.
6615
+ */
6616
+ Authority.prototype.updateMetadataWithRegionalInformation = function (metadata) {
6617
+ var _a, _b, _c, _d, _e;
6618
+ return __awaiter(this, void 0, void 0, function () {
6619
+ var autodetectedRegionName, azureRegion;
6620
+ return __generator(this, function (_f) {
6621
+ switch (_f.label) {
6622
+ case 0: return [4 /*yield*/, this.regionDiscovery.detectRegion((_a = this.authorityOptions.azureRegionConfiguration) === null || _a === void 0 ? void 0 : _a.environmentRegion, this.regionDiscoveryMetadata, this.proxyUrl)];
6623
+ case 1:
6624
+ autodetectedRegionName = _f.sent();
6625
+ azureRegion = ((_b = this.authorityOptions.azureRegionConfiguration) === null || _b === void 0 ? void 0 : _b.azureRegion) === Constants.AZURE_REGION_AUTO_DISCOVER_FLAG
6626
+ ? autodetectedRegionName
6627
+ : (_c = this.authorityOptions.azureRegionConfiguration) === null || _c === void 0 ? void 0 : _c.azureRegion;
6628
+ if (((_d = this.authorityOptions.azureRegionConfiguration) === null || _d === void 0 ? void 0 : _d.azureRegion) === Constants.AZURE_REGION_AUTO_DISCOVER_FLAG) {
6629
+ this.regionDiscoveryMetadata.region_outcome = autodetectedRegionName ?
6630
+ RegionDiscoveryOutcomes.AUTO_DETECTION_REQUESTED_SUCCESSFUL :
6631
+ RegionDiscoveryOutcomes.AUTO_DETECTION_REQUESTED_FAILED;
6632
+ }
6633
+ else {
6634
+ if (autodetectedRegionName) {
6635
+ this.regionDiscoveryMetadata.region_outcome = (((_e = this.authorityOptions.azureRegionConfiguration) === null || _e === void 0 ? void 0 : _e.azureRegion) === autodetectedRegionName) ?
6636
+ RegionDiscoveryOutcomes.CONFIGURED_MATCHES_DETECTED :
6637
+ RegionDiscoveryOutcomes.CONFIGURED_NOT_DETECTED;
6638
+ }
6639
+ else {
6640
+ this.regionDiscoveryMetadata.region_outcome = RegionDiscoveryOutcomes.CONFIGURED_NO_AUTO_DETECTION;
6641
+ }
6642
+ }
6643
+ if (azureRegion) {
6644
+ this.regionDiscoveryMetadata.region_used = azureRegion;
6645
+ return [2 /*return*/, Authority.replaceWithRegionalInformation(metadata, azureRegion)];
6646
+ }
6647
+ return [2 /*return*/, metadata];
6648
+ }
6649
+ });
6650
+ });
6651
+ };
6573
6652
  /**
6574
6653
  * Updates the AuthorityMetadataEntity with new aliases, preferred_network and preferred_cache and returns where the information was retrived from
6575
6654
  * @param cachedMetadata
@@ -6577,7 +6656,7 @@ var Authority = /** @class */ (function () {
6577
6656
  */
6578
6657
  Authority.prototype.updateCloudDiscoveryMetadata = function (metadataEntity) {
6579
6658
  return __awaiter(this, void 0, void 0, function () {
6580
- var metadata;
6659
+ var metadata, harcodedMetadata;
6581
6660
  return __generator(this, function (_a) {
6582
6661
  switch (_a.label) {
6583
6662
  case 0:
@@ -6591,6 +6670,7 @@ var Authority = /** @class */ (function () {
6591
6670
  // No need to update
6592
6671
  return [2 /*return*/, AuthorityMetadataSource.CACHE];
6593
6672
  }
6673
+ harcodedMetadata = this.getCloudDiscoveryMetadataFromHarcodedValues();
6594
6674
  return [4 /*yield*/, this.getCloudDiscoveryMetadataFromNetwork()];
6595
6675
  case 1:
6596
6676
  metadata = _a.sent();
@@ -6598,6 +6678,10 @@ var Authority = /** @class */ (function () {
6598
6678
  metadataEntity.updateCloudDiscoveryMetadata(metadata, true);
6599
6679
  return [2 /*return*/, AuthorityMetadataSource.NETWORK];
6600
6680
  }
6681
+ if (harcodedMetadata && !this.options.skipAuthorityMetadataCache) {
6682
+ metadataEntity.updateCloudDiscoveryMetadata(harcodedMetadata, false);
6683
+ return [2 /*return*/, AuthorityMetadataSource.HARDCODED_VALUES];
6684
+ }
6601
6685
  else {
6602
6686
  // Metadata could not be obtained from config, cache or network
6603
6687
  throw ClientConfigurationError.createUntrustedAuthorityError();
@@ -6631,7 +6715,8 @@ var Authority = /** @class */ (function () {
6631
6715
  };
6632
6716
  /**
6633
6717
  * Called to get metadata from network if CloudDiscoveryMetadata was not populated by config
6634
- * @param networkInterface
6718
+ *
6719
+ * @param hasHardcodedMetadata boolean
6635
6720
  */
6636
6721
  Authority.prototype.getCloudDiscoveryMetadataFromNetwork = function () {
6637
6722
  return __awaiter(this, void 0, void 0, function () {
@@ -6651,7 +6736,9 @@ var Authority = /** @class */ (function () {
6651
6736
  return [4 /*yield*/, this.networkInterface.sendGetRequestAsync(instanceDiscoveryEndpoint, options)];
6652
6737
  case 2:
6653
6738
  response = _a.sent();
6654
- metadata = isCloudInstanceDiscoveryResponse(response.body) ? response.body.metadata : [];
6739
+ metadata = isCloudInstanceDiscoveryResponse(response.body)
6740
+ ? response.body.metadata
6741
+ : [];
6655
6742
  if (metadata.length === 0) {
6656
6743
  // If no metadata is returned, authority is untrusted
6657
6744
  return [2 /*return*/, null];
@@ -6671,6 +6758,15 @@ var Authority = /** @class */ (function () {
6671
6758
  });
6672
6759
  });
6673
6760
  };
6761
+ /**
6762
+ * Get cloud discovery metadata for common authorities
6763
+ */
6764
+ Authority.prototype.getCloudDiscoveryMetadataFromHarcodedValues = function () {
6765
+ if (this.canonicalAuthority in InstanceDiscoveryMetadata) {
6766
+ return InstanceDiscoveryMetadata[this.canonicalAuthority];
6767
+ }
6768
+ return null;
6769
+ };
6674
6770
  /**
6675
6771
  * Helper function to determine if this host is included in the knownAuthorities config option
6676
6772
  */
@@ -6786,7 +6882,7 @@ var Authority = /** @class */ (function () {
6786
6882
  return Authority;
6787
6883
  }());
6788
6884
 
6789
- /*! @azure/msal-common v7.0.0 2022-06-13 */
6885
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
6790
6886
 
6791
6887
  /*
6792
6888
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6847,7 +6943,7 @@ var AuthorityFactory = /** @class */ (function () {
6847
6943
  return AuthorityFactory;
6848
6944
  }());
6849
6945
 
6850
- /*! @azure/msal-common v7.0.0 2022-06-13 */
6946
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
6851
6947
 
6852
6948
  /*
6853
6949
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6878,7 +6974,7 @@ var ServerTelemetryEntity = /** @class */ (function () {
6878
6974
  return ServerTelemetryEntity;
6879
6975
  }());
6880
6976
 
6881
- /*! @azure/msal-common v7.0.0 2022-06-13 */
6977
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
6882
6978
 
6883
6979
  /*
6884
6980
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6906,7 +7002,7 @@ var ThrottlingEntity = /** @class */ (function () {
6906
7002
  return ThrottlingEntity;
6907
7003
  }());
6908
7004
 
6909
- /*! @azure/msal-common v7.0.0 2022-06-13 */
7005
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
6910
7006
 
6911
7007
  /*
6912
7008
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6923,7 +7019,7 @@ var StubbedNetworkModule = {
6923
7019
  }
6924
7020
  };
6925
7021
 
6926
- /*! @azure/msal-common v7.0.0 2022-06-13 */
7022
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
6927
7023
 
6928
7024
  /*
6929
7025
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6968,7 +7064,7 @@ var JoseHeaderError = /** @class */ (function (_super) {
6968
7064
  return JoseHeaderError;
6969
7065
  }(AuthError));
6970
7066
 
6971
- /*! @azure/msal-common v7.0.0 2022-06-13 */
7067
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
6972
7068
 
6973
7069
  /*
6974
7070
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7008,7 +7104,7 @@ var JoseHeader = /** @class */ (function () {
7008
7104
  return JoseHeader;
7009
7105
  }());
7010
7106
 
7011
- /*! @azure/msal-common v7.0.0 2022-06-13 */
7107
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
7012
7108
 
7013
7109
  /*
7014
7110
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7067,7 +7163,7 @@ var AuthenticationHeaderParser = /** @class */ (function () {
7067
7163
  return AuthenticationHeaderParser;
7068
7164
  }());
7069
7165
 
7070
- /*! @azure/msal-common v7.0.0 2022-06-13 */
7166
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
7071
7167
 
7072
7168
  /*
7073
7169
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7229,7 +7325,7 @@ var ServerTelemetryManager = /** @class */ (function () {
7229
7325
  return ServerTelemetryManager;
7230
7326
  }());
7231
7327
 
7232
- /*! @azure/msal-common v7.0.0 2022-06-13 */
7328
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
7233
7329
  /*
7234
7330
  * Copyright (c) Microsoft Corporation. All rights reserved.
7235
7331
  * Licensed under the MIT License.
@@ -7326,7 +7422,7 @@ var PerformanceEventStatus;
7326
7422
  PerformanceEventStatus[PerformanceEventStatus["Completed"] = 2] = "Completed";
7327
7423
  })(PerformanceEventStatus || (PerformanceEventStatus = {}));
7328
7424
 
7329
- /*! @azure/msal-common v7.0.0 2022-06-13 */
7425
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
7330
7426
 
7331
7427
  /*
7332
7428
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7596,7 +7692,7 @@ var PerformanceClient = /** @class */ (function () {
7596
7692
  return PerformanceClient;
7597
7693
  }());
7598
7694
 
7599
- /*! @azure/msal-common v7.0.0 2022-06-13 */
7695
+ /*! @azure/msal-common v7.1.0 2022-07-05 */
7600
7696
 
7601
7697
  /*
7602
7698
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -9021,7 +9117,7 @@ var BrowserCacheManager = /** @class */ (function (_super) {
9021
9117
  * @param expires
9022
9118
  */
9023
9119
  BrowserCacheManager.prototype.setItemCookie = function (cookieName, cookieValue, expires) {
9024
- var cookieStr = encodeURIComponent(cookieName) + "=" + encodeURIComponent(cookieValue) + ";path=/;";
9120
+ var cookieStr = encodeURIComponent(cookieName) + "=" + encodeURIComponent(cookieValue) + ";path=/;SameSite=Lax;";
9025
9121
  if (expires) {
9026
9122
  var expireTime = this.getCookieExpirationTime(expires);
9027
9123
  cookieStr += "expires=" + expireTime + ";";
@@ -9393,7 +9489,7 @@ var DEFAULT_BROWSER_CACHE_MANAGER = function (clientId, logger) {
9393
9489
 
9394
9490
  /* eslint-disable header/header */
9395
9491
  var name = "@azure/msal-browser";
9396
- var version = "2.26.0";
9492
+ var version = "2.27.0";
9397
9493
 
9398
9494
  /*
9399
9495
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -9942,7 +10038,8 @@ var BaseInteractionClient = /** @class */ (function () {
9942
10038
  protocolMode: this.config.auth.protocolMode,
9943
10039
  knownAuthorities: this.config.auth.knownAuthorities,
9944
10040
  cloudDiscoveryMetadata: this.config.auth.cloudDiscoveryMetadata,
9945
- authorityMetadata: this.config.auth.authorityMetadata
10041
+ authorityMetadata: this.config.auth.authorityMetadata,
10042
+ skipAuthorityMetadataCache: this.config.auth.skipAuthorityMetadataCache,
9946
10043
  };
9947
10044
  if (!requestAuthority) return [3 /*break*/, 2];
9948
10045
  this.logger.verbose("Creating discovered authority with request authority");
@@ -10174,6 +10271,7 @@ var StandardInteractionClient = /** @class */ (function (_super) {
10174
10271
  knownAuthorities: this.config.auth.knownAuthorities,
10175
10272
  cloudDiscoveryMetadata: this.config.auth.cloudDiscoveryMetadata,
10176
10273
  authorityMetadata: this.config.auth.authorityMetadata,
10274
+ skipAuthorityMetadataCache: this.config.auth.skipAuthorityMetadataCache
10177
10275
  };
10178
10276
  userAuthority = requestAuthority ? requestAuthority : this.config.auth.authority;
10179
10277
  builtAuthority = Authority.generateAuthority(userAuthority, requestAzureCloudOptions || this.config.auth.azureCloudOptions);
@@ -10564,6 +10662,7 @@ var NativeStatusCode;
10564
10662
  NativeStatusCode["TRANSIENT_ERROR"] = "TRANSIENT_ERROR";
10565
10663
  NativeStatusCode["PERSISTENT_ERROR"] = "PERSISTENT_ERROR";
10566
10664
  NativeStatusCode["DISABLED"] = "DISABLED";
10665
+ NativeStatusCode["ACCOUNT_UNAVAILABLE"] = "ACCOUNT_UNAVAILABLE";
10567
10666
  })(NativeStatusCode || (NativeStatusCode = {}));
10568
10667
  var NativeAuthErrorMessage = {
10569
10668
  extensionError: {
@@ -10607,6 +10706,8 @@ var NativeAuthError = /** @class */ (function (_super) {
10607
10706
  NativeAuthError.createError = function (code, description, ext) {
10608
10707
  if (ext && ext.status) {
10609
10708
  switch (ext.status) {
10709
+ case NativeStatusCode.ACCOUNT_UNAVAILABLE:
10710
+ return InteractionRequiredAuthError.createNativeAccountUnavailableError();
10610
10711
  case NativeStatusCode.USER_INTERACTION_REQUIRED:
10611
10712
  return new InteractionRequiredAuthError(code, description);
10612
10713
  case NativeStatusCode.USER_CANCEL:
@@ -10933,7 +11034,8 @@ var NativeInteractionClient = /** @class */ (function (_super) {
10933
11034
  */
10934
11035
  NativeInteractionClient.prototype.initializeNativeRequest = function (request) {
10935
11036
  return __awaiter$1(this, void 0, void 0, function () {
10936
- var authority, canonicalAuthority, scopes, scopeSet, validatedRequest, shrParameters, popTokenGenerator, reqCnfData;
11037
+ var authority, canonicalAuthority, scopes, scopeSet, getPrompt, validatedRequest, shrParameters, popTokenGenerator, reqCnfData;
11038
+ var _this = this;
10937
11039
  return __generator$1(this, function (_a) {
10938
11040
  switch (_a.label) {
10939
11041
  case 0:
@@ -10944,18 +11046,32 @@ var NativeInteractionClient = /** @class */ (function (_super) {
10944
11046
  scopes = request && request.scopes || [];
10945
11047
  scopeSet = new ScopeSet(scopes);
10946
11048
  scopeSet.appendScopes(OIDC_DEFAULT_SCOPES);
10947
- if (request.prompt) {
11049
+ getPrompt = function () {
11050
+ // If request is silent, prompt is always none
11051
+ switch (_this.apiId) {
11052
+ case exports.ApiId.ssoSilent:
11053
+ case exports.ApiId.acquireTokenSilent_silentFlow:
11054
+ _this.logger.trace("initializeNativeRequest: silent request sets prompt to none");
11055
+ return PromptValue.NONE;
11056
+ }
11057
+ // Prompt not provided, request may proceed and native broker decides if it needs to prompt
11058
+ if (!request.prompt) {
11059
+ _this.logger.trace("initializeNativeRequest: prompt was not provided");
11060
+ return undefined;
11061
+ }
11062
+ // If request is interactive, check if prompt provided is allowed to go directly to native broker
10948
11063
  switch (request.prompt) {
10949
11064
  case PromptValue.NONE:
10950
11065
  case PromptValue.CONSENT:
10951
- this.logger.trace("initializeNativeRequest: prompt is compatible with native flow");
10952
- break;
11066
+ case PromptValue.LOGIN:
11067
+ _this.logger.trace("initializeNativeRequest: prompt is compatible with native flow");
11068
+ return request.prompt;
10953
11069
  default:
10954
- this.logger.trace("initializeNativeRequest: prompt = " + request.prompt + " is not compatible with native flow");
11070
+ _this.logger.trace("initializeNativeRequest: prompt = " + request.prompt + " is not compatible with native flow");
10955
11071
  throw BrowserAuthError.createNativePromptParameterNotSupportedError();
10956
11072
  }
10957
- }
10958
- validatedRequest = __assign$1(__assign$1({}, request), { accountId: this.accountId, clientId: this.config.auth.clientId, authority: canonicalAuthority.urlString, scopes: scopeSet.printScopes(), redirectUri: this.getRedirectUri(request.redirectUri), correlationId: this.correlationId, tokenType: request.authenticationScheme, windowTitleSubstring: document.title, extraParameters: __assign$1(__assign$1(__assign$1({}, request.extraQueryParameters), request.tokenQueryParameters), { telemetry: NativeConstants.MATS_TELEMETRY }), extendedExpiryToken: false // Make this configurable?
11073
+ };
11074
+ validatedRequest = __assign$1(__assign$1({}, request), { accountId: this.accountId, clientId: this.config.auth.clientId, authority: canonicalAuthority.urlString, scopes: scopeSet.printScopes(), redirectUri: this.getRedirectUri(request.redirectUri), prompt: getPrompt(), correlationId: this.correlationId, tokenType: request.authenticationScheme, windowTitleSubstring: document.title, extraParameters: __assign$1(__assign$1(__assign$1({}, request.extraQueryParameters), request.tokenQueryParameters), { telemetry: NativeConstants.MATS_TELEMETRY }), extendedExpiryToken: false // Make this configurable?
10959
11075
  });
10960
11076
  if (!(request.authenticationScheme === exports.AuthenticationScheme.POP)) return [3 /*break*/, 2];
10961
11077
  shrParameters = {
@@ -10972,11 +11088,7 @@ var NativeInteractionClient = /** @class */ (function (_super) {
10972
11088
  validatedRequest.reqCnf = reqCnfData.reqCnfHash;
10973
11089
  validatedRequest.keyId = reqCnfData.kid;
10974
11090
  _a.label = 2;
10975
- case 2:
10976
- if (this.apiId === exports.ApiId.ssoSilent || this.apiId === exports.ApiId.acquireTokenSilent_silentFlow) {
10977
- validatedRequest.prompt = PromptValue.NONE;
10978
- }
10979
- return [2 /*return*/, validatedRequest];
11091
+ case 2: return [2 /*return*/, validatedRequest];
10980
11092
  }
10981
11093
  });
10982
11094
  });
@@ -12118,6 +12230,7 @@ function buildConfiguration(_a, isBrowserEnvironment) {
12118
12230
  azureCloudInstance: exports.AzureCloudInstance.None,
12119
12231
  tenant: Constants.EMPTY_STRING
12120
12232
  },
12233
+ skipAuthorityMetadataCache: false,
12121
12234
  };
12122
12235
  // Default cache options for browser
12123
12236
  var DEFAULT_CACHE_OPTIONS = {
@@ -14212,6 +14325,7 @@ var TokenCache = /** @class */ (function () {
14212
14325
  knownAuthorities: this.config.auth.knownAuthorities,
14213
14326
  cloudDiscoveryMetadata: this.config.auth.cloudDiscoveryMetadata,
14214
14327
  authorityMetadata: this.config.auth.authorityMetadata,
14328
+ skipAuthorityMetadataCache: this.config.auth.skipAuthorityMetadataCache,
14215
14329
  };
14216
14330
  var authority = new Authority(authorityUrl, this.config.system.networkClient, this.storage, authorityOptions);
14217
14331
  // "clientInfo" from options takes precedence over "clientInfo" in response
@@ -14683,6 +14797,12 @@ var ClientApplication = /** @class */ (function () {
14683
14797
  var redirectClient = _this.createRedirectClient(request.correlationId);
14684
14798
  return redirectClient.acquireToken(request);
14685
14799
  }
14800
+ else if (e instanceof InteractionRequiredAuthError) {
14801
+ _this.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow");
14802
+ var redirectClient = _this.createRedirectClient(request.correlationId);
14803
+ return redirectClient.acquireToken(request);
14804
+ }
14805
+ _this.browserStorage.setInteractionInProgress(false);
14686
14806
  throw e;
14687
14807
  });
14688
14808
  }
@@ -14748,6 +14868,12 @@ var ClientApplication = /** @class */ (function () {
14748
14868
  var popupClient = _this.createPopupClient(request.correlationId);
14749
14869
  return popupClient.acquireToken(request);
14750
14870
  }
14871
+ else if (e instanceof InteractionRequiredAuthError) {
14872
+ _this.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow");
14873
+ var popupClient = _this.createPopupClient(request.correlationId);
14874
+ return popupClient.acquireToken(request);
14875
+ }
14876
+ _this.browserStorage.setInteractionInProgress(false);
14751
14877
  throw e;
14752
14878
  });
14753
14879
  }
@@ -15232,6 +15358,7 @@ var ClientApplication = /** @class */ (function () {
15232
15358
  switch (request.prompt) {
15233
15359
  case PromptValue.NONE:
15234
15360
  case PromptValue.CONSENT:
15361
+ case PromptValue.LOGIN:
15235
15362
  this.logger.trace("canUseNative: prompt is compatible with native flow");
15236
15363
  break;
15237
15364
  default:
@@ -15262,7 +15389,7 @@ var ClientApplication = /** @class */ (function () {
15262
15389
  return new PopupClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.performanceClient, this.nativeExtensionProvider, correlationId);
15263
15390
  };
15264
15391
  /**
15265
- * Returns new instance of the Popup Interaction Client
15392
+ * Returns new instance of the Redirect Interaction Client
15266
15393
  * @param correlationId
15267
15394
  */
15268
15395
  ClientApplication.prototype.createRedirectClient = function (correlationId) {