@azure/msal-browser 3.19.0 → 3.19.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.
Files changed (76) hide show
  1. package/dist/app/IPublicClientApplication.mjs +1 -1
  2. package/dist/app/PublicClientApplication.mjs +1 -1
  3. package/dist/app/PublicClientNext.mjs +1 -1
  4. package/dist/broker/nativeBroker/NativeMessageHandler.mjs +1 -1
  5. package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
  6. package/dist/cache/AccountManager.mjs +1 -1
  7. package/dist/cache/AsyncMemoryStorage.mjs +1 -1
  8. package/dist/cache/BrowserCacheManager.mjs +1 -1
  9. package/dist/cache/BrowserStorage.mjs +1 -1
  10. package/dist/cache/DatabaseStorage.mjs +1 -1
  11. package/dist/cache/MemoryStorage.mjs +1 -1
  12. package/dist/cache/TokenCache.mjs +1 -1
  13. package/dist/config/Configuration.mjs +1 -1
  14. package/dist/controllers/ControllerFactory.mjs +1 -1
  15. package/dist/controllers/NestedAppAuthController.mjs +1 -1
  16. package/dist/controllers/StandardController.mjs +1 -1
  17. package/dist/controllers/UnknownOperatingContextController.mjs +1 -1
  18. package/dist/crypto/BrowserCrypto.mjs +1 -1
  19. package/dist/crypto/CryptoOps.mjs +1 -1
  20. package/dist/crypto/PkceGenerator.mjs +1 -1
  21. package/dist/crypto/SignedHttpRequest.mjs +1 -1
  22. package/dist/encode/Base64Decode.mjs +1 -1
  23. package/dist/encode/Base64Encode.mjs +1 -1
  24. package/dist/error/BrowserAuthError.mjs +1 -1
  25. package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
  26. package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
  27. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  28. package/dist/error/NativeAuthError.mjs +1 -1
  29. package/dist/error/NativeAuthErrorCodes.mjs +1 -1
  30. package/dist/error/NestedAppAuthError.mjs +1 -1
  31. package/dist/event/EventHandler.mjs +1 -1
  32. package/dist/event/EventMessage.mjs +1 -1
  33. package/dist/event/EventType.mjs +1 -1
  34. package/dist/index.mjs +1 -1
  35. package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
  36. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  37. package/dist/interaction_client/NativeInteractionClient.mjs +1 -1
  38. package/dist/interaction_client/PopupClient.mjs +1 -1
  39. package/dist/interaction_client/RedirectClient.mjs +1 -1
  40. package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
  41. package/dist/interaction_client/SilentCacheClient.mjs +1 -1
  42. package/dist/interaction_client/SilentIframeClient.mjs +1 -1
  43. package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
  44. package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
  45. package/dist/interaction_handler/InteractionHandler.mjs +1 -1
  46. package/dist/interaction_handler/RedirectHandler.mjs +1 -1
  47. package/dist/interaction_handler/SilentHandler.mjs +1 -1
  48. package/dist/naa/BridgeError.mjs +1 -1
  49. package/dist/naa/BridgeProxy.mjs +1 -1
  50. package/dist/naa/BridgeStatusCode.mjs +1 -1
  51. package/dist/naa/mapping/NestedAppAuthAdapter.d.ts.map +1 -1
  52. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +3 -3
  53. package/dist/naa/mapping/NestedAppAuthAdapter.mjs.map +1 -1
  54. package/dist/navigation/NavigationClient.mjs +1 -1
  55. package/dist/network/FetchClient.mjs +1 -1
  56. package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
  57. package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
  58. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  59. package/dist/operatingcontext/UnknownOperatingContext.mjs +1 -1
  60. package/dist/packageMetadata.d.ts +1 -1
  61. package/dist/packageMetadata.mjs +2 -2
  62. package/dist/request/RequestHelpers.mjs +1 -1
  63. package/dist/response/ResponseHandler.mjs +1 -1
  64. package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  65. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  66. package/dist/utils/BrowserConstants.mjs +1 -1
  67. package/dist/utils/BrowserProtocolUtils.mjs +1 -1
  68. package/dist/utils/BrowserUtils.mjs +1 -1
  69. package/lib/msal-browser.cjs +107 -97
  70. package/lib/msal-browser.cjs.map +1 -1
  71. package/lib/msal-browser.js +107 -97
  72. package/lib/msal-browser.js.map +1 -1
  73. package/lib/msal-browser.min.js +60 -60
  74. package/package.json +2 -2
  75. package/src/naa/mapping/NestedAppAuthAdapter.ts +4 -2
  76. package/src/packageMetadata.ts +1 -1
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v3.19.0 2024-07-12 */
1
+ /*! @azure/msal-browser v3.19.1 2024-07-16 */
2
2
  'use strict';
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
@@ -6,7 +6,7 @@
6
6
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.msal = {}));
7
7
  })(this, (function (exports) { 'use strict';
8
8
 
9
- /*! @azure/msal-common v14.13.0 2024-07-12 */
9
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
10
10
  /*
11
11
  * Copyright (c) Microsoft Corporation. All rights reserved.
12
12
  * Licensed under the MIT License.
@@ -315,7 +315,7 @@
315
315
  // Token renewal offset default in seconds
316
316
  const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
317
317
 
318
- /*! @azure/msal-common v14.13.0 2024-07-12 */
318
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
319
319
  /*
320
320
  * Copyright (c) Microsoft Corporation. All rights reserved.
321
321
  * Licensed under the MIT License.
@@ -332,7 +332,7 @@
332
332
  unexpectedError: unexpectedError
333
333
  });
334
334
 
335
- /*! @azure/msal-common v14.13.0 2024-07-12 */
335
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
336
336
 
337
337
  /*
338
338
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -381,7 +381,7 @@
381
381
  : AuthErrorMessages[code]);
382
382
  }
383
383
 
384
- /*! @azure/msal-common v14.13.0 2024-07-12 */
384
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
385
385
  /*
386
386
  * Copyright (c) Microsoft Corporation. All rights reserved.
387
387
  * Licensed under the MIT License.
@@ -479,7 +479,7 @@
479
479
  userTimeoutReached: userTimeoutReached
480
480
  });
481
481
 
482
- /*! @azure/msal-common v14.13.0 2024-07-12 */
482
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
483
483
 
484
484
  /*
485
485
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -731,7 +731,7 @@
731
731
  return new ClientAuthError(errorCode, additionalMessage);
732
732
  }
733
733
 
734
- /*! @azure/msal-common v14.13.0 2024-07-12 */
734
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
735
735
 
736
736
  /*
737
737
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -792,7 +792,7 @@
792
792
  }
793
793
  }
794
794
 
795
- /*! @azure/msal-common v14.13.0 2024-07-12 */
795
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
796
796
  /*
797
797
  * Copyright (c) Microsoft Corporation. All rights reserved.
798
798
  * Licensed under the MIT License.
@@ -807,7 +807,7 @@
807
807
  Ciam: 3,
808
808
  };
809
809
 
810
- /*! @azure/msal-common v14.13.0 2024-07-12 */
810
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
811
811
  /*
812
812
  * Copyright (c) Microsoft Corporation. All rights reserved.
813
813
  * Licensed under the MIT License.
@@ -819,7 +819,7 @@
819
819
  response.hasOwnProperty("jwks_uri"));
820
820
  }
821
821
 
822
- /*! @azure/msal-common v14.13.0 2024-07-12 */
822
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
823
823
  /*
824
824
  * Copyright (c) Microsoft Corporation. All rights reserved.
825
825
  * Licensed under the MIT License.
@@ -873,7 +873,7 @@
873
873
  urlParseError: urlParseError
874
874
  });
875
875
 
876
- /*! @azure/msal-common v14.13.0 2024-07-12 */
876
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
877
877
 
878
878
  /*
879
879
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1011,7 +1011,7 @@
1011
1011
  return new ClientConfigurationError(errorCode);
1012
1012
  }
1013
1013
 
1014
- /*! @azure/msal-common v14.13.0 2024-07-12 */
1014
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
1015
1015
  /*
1016
1016
  * Copyright (c) Microsoft Corporation. All rights reserved.
1017
1017
  * Licensed under the MIT License.
@@ -1108,7 +1108,7 @@
1108
1108
  }
1109
1109
  }
1110
1110
 
1111
- /*! @azure/msal-common v14.13.0 2024-07-12 */
1111
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
1112
1112
 
1113
1113
  /*
1114
1114
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1155,7 +1155,7 @@
1155
1155
  return null;
1156
1156
  }
1157
1157
 
1158
- /*! @azure/msal-common v14.13.0 2024-07-12 */
1158
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
1159
1159
 
1160
1160
  /*
1161
1161
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1319,7 +1319,7 @@
1319
1319
  }
1320
1320
  }
1321
1321
 
1322
- /*! @azure/msal-common v14.13.0 2024-07-12 */
1322
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
1323
1323
 
1324
1324
  /*
1325
1325
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1459,7 +1459,7 @@
1459
1459
  return null;
1460
1460
  }
1461
1461
 
1462
- /*! @azure/msal-common v14.13.0 2024-07-12 */
1462
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
1463
1463
  /*
1464
1464
  * Copyright (c) Microsoft Corporation. All rights reserved.
1465
1465
  * Licensed under the MIT License.
@@ -1472,7 +1472,7 @@
1472
1472
  OIDC: "OIDC",
1473
1473
  };
1474
1474
 
1475
- /*! @azure/msal-common v14.13.0 2024-07-12 */
1475
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
1476
1476
  /*
1477
1477
  * Copyright (c) Microsoft Corporation. All rights reserved.
1478
1478
  * Licensed under the MIT License.
@@ -1492,7 +1492,7 @@
1492
1492
  AzureUsGovernment: "https://login.microsoftonline.us",
1493
1493
  };
1494
1494
 
1495
- /*! @azure/msal-common v14.13.0 2024-07-12 */
1495
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
1496
1496
  /*
1497
1497
  * Copyright (c) Microsoft Corporation. All rights reserved.
1498
1498
  * Licensed under the MIT License.
@@ -1502,7 +1502,7 @@
1502
1502
  response.hasOwnProperty("metadata"));
1503
1503
  }
1504
1504
 
1505
- /*! @azure/msal-common v14.13.0 2024-07-12 */
1505
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
1506
1506
  /*
1507
1507
  * Copyright (c) Microsoft Corporation. All rights reserved.
1508
1508
  * Licensed under the MIT License.
@@ -1512,7 +1512,7 @@
1512
1512
  response.hasOwnProperty("error_description"));
1513
1513
  }
1514
1514
 
1515
- /*! @azure/msal-common v14.13.0 2024-07-12 */
1515
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
1516
1516
  /*
1517
1517
  * Copyright (c) Microsoft Corporation. All rights reserved.
1518
1518
  * Licensed under the MIT License.
@@ -1994,7 +1994,7 @@
1994
1994
  "multiMatchedRT",
1995
1995
  ]);
1996
1996
 
1997
- /*! @azure/msal-common v14.13.0 2024-07-12 */
1997
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
1998
1998
  /*
1999
1999
  * Copyright (c) Microsoft Corporation. All rights reserved.
2000
2000
  * Licensed under the MIT License.
@@ -2090,7 +2090,7 @@
2090
2090
  };
2091
2091
  };
2092
2092
 
2093
- /*! @azure/msal-common v14.13.0 2024-07-12 */
2093
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
2094
2094
 
2095
2095
  /*
2096
2096
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2199,7 +2199,7 @@
2199
2199
  },
2200
2200
  };
2201
2201
 
2202
- /*! @azure/msal-common v14.13.0 2024-07-12 */
2202
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
2203
2203
  /*
2204
2204
  * Copyright (c) Microsoft Corporation. All rights reserved.
2205
2205
  * Licensed under the MIT License.
@@ -2236,7 +2236,7 @@
2236
2236
  return cachedAtSec > nowSeconds();
2237
2237
  }
2238
2238
 
2239
- /*! @azure/msal-common v14.13.0 2024-07-12 */
2239
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
2240
2240
 
2241
2241
  /*
2242
2242
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2563,7 +2563,7 @@
2563
2563
  return metadata.expiresAt <= nowSeconds();
2564
2564
  }
2565
2565
 
2566
- /*! @azure/msal-common v14.13.0 2024-07-12 */
2566
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
2567
2567
 
2568
2568
  /*
2569
2569
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3402,7 +3402,7 @@
3402
3402
  };
3403
3403
  }
3404
3404
 
3405
- /*! @azure/msal-common v14.13.0 2024-07-12 */
3405
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
3406
3406
 
3407
3407
  /*
3408
3408
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3433,7 +3433,7 @@
3433
3433
  }
3434
3434
  }
3435
3435
 
3436
- /*! @azure/msal-common v14.13.0 2024-07-12 */
3436
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
3437
3437
  /*
3438
3438
  * Copyright (c) Microsoft Corporation. All rights reserved.
3439
3439
  * Licensed under the MIT License.
@@ -3451,7 +3451,7 @@
3451
3451
  }
3452
3452
  }
3453
3453
 
3454
- /*! @azure/msal-common v14.13.0 2024-07-12 */
3454
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
3455
3455
  /*
3456
3456
  * Copyright (c) Microsoft Corporation. All rights reserved.
3457
3457
  * Licensed under the MIT License.
@@ -3498,7 +3498,7 @@
3498
3498
  const LOGIN_HINT = "login_hint";
3499
3499
  const DOMAIN_HINT = "domain_hint";
3500
3500
 
3501
- /*! @azure/msal-common v14.13.0 2024-07-12 */
3501
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
3502
3502
 
3503
3503
  /*
3504
3504
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3537,7 +3537,7 @@
3537
3537
  },
3538
3538
  };
3539
3539
 
3540
- /*! @azure/msal-common v14.13.0 2024-07-12 */
3540
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
3541
3541
 
3542
3542
  /*
3543
3543
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3728,12 +3728,12 @@
3728
3728
  }
3729
3729
  }
3730
3730
 
3731
- /*! @azure/msal-common v14.13.0 2024-07-12 */
3731
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
3732
3732
  /* eslint-disable header/header */
3733
3733
  const name$1 = "@azure/msal-common";
3734
- const version$1 = "14.13.0";
3734
+ const version$1 = "14.13.1";
3735
3735
 
3736
- /*! @azure/msal-common v14.13.0 2024-07-12 */
3736
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
3737
3737
 
3738
3738
  /*
3739
3739
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3933,7 +3933,7 @@
3933
3933
  }
3934
3934
  }
3935
3935
 
3936
- /*! @azure/msal-common v14.13.0 2024-07-12 */
3936
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
3937
3937
 
3938
3938
  /*
3939
3939
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3973,7 +3973,7 @@
3973
3973
  };
3974
3974
  }
3975
3975
 
3976
- /*! @azure/msal-common v14.13.0 2024-07-12 */
3976
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
3977
3977
  /*
3978
3978
  * Copyright (c) Microsoft Corporation. All rights reserved.
3979
3979
  * Licensed under the MIT License.
@@ -3989,21 +3989,38 @@
3989
3989
  !!homeAccountId &&
3990
3990
  tenantId === homeAccountId.split(".")[1]);
3991
3991
  }
3992
- function buildTenantProfileFromIdTokenClaims(homeAccountId, idTokenClaims) {
3993
- const { oid, sub, tid, name, tfp, acr } = idTokenClaims;
3994
- /**
3995
- * Since there is no way to determine if the authority is AAD or B2C, we exhaust all the possible claims that can serve as tenant ID with the following precedence:
3996
- * tid - TenantID claim that identifies the tenant that issued the token in AAD. Expected in all AAD ID tokens, not present in B2C ID Tokens.
3997
- * tfp - Trust Framework Policy claim that identifies the policy that was used to authenticate the user. Functions as tenant for B2C scenarios.
3998
- * acr - Authentication Context Class Reference claim used only with older B2C policies. Fallback in case tfp is not present, but likely won't be present anyway.
3999
- */
4000
- const tenantId = tid || tfp || acr || "";
4001
- return {
4002
- tenantId: tenantId,
4003
- localAccountId: oid || sub || "",
4004
- name: name,
4005
- isHomeTenant: tenantIdMatchesHomeTenant(tenantId, homeAccountId),
4006
- };
3992
+ /**
3993
+ * Build tenant profile
3994
+ * @param homeAccountId - Home account identifier for this account object
3995
+ * @param localAccountId - Local account identifer for this account object
3996
+ * @param tenantId - Full tenant or organizational id that this account belongs to
3997
+ * @param idTokenClaims - Claims from the ID token
3998
+ * @returns
3999
+ */
4000
+ function buildTenantProfile(homeAccountId, localAccountId, tenantId, idTokenClaims) {
4001
+ if (idTokenClaims) {
4002
+ const { oid, sub, tid, name, tfp, acr } = idTokenClaims;
4003
+ /**
4004
+ * Since there is no way to determine if the authority is AAD or B2C, we exhaust all the possible claims that can serve as tenant ID with the following precedence:
4005
+ * tid - TenantID claim that identifies the tenant that issued the token in AAD. Expected in all AAD ID tokens, not present in B2C ID Tokens.
4006
+ * tfp - Trust Framework Policy claim that identifies the policy that was used to authenticate the user. Functions as tenant for B2C scenarios.
4007
+ * acr - Authentication Context Class Reference claim used only with older B2C policies. Fallback in case tfp is not present, but likely won't be present anyway.
4008
+ */
4009
+ const tenantId = tid || tfp || acr || "";
4010
+ return {
4011
+ tenantId: tenantId,
4012
+ localAccountId: oid || sub || "",
4013
+ name: name,
4014
+ isHomeTenant: tenantIdMatchesHomeTenant(tenantId, homeAccountId),
4015
+ };
4016
+ }
4017
+ else {
4018
+ return {
4019
+ tenantId,
4020
+ localAccountId,
4021
+ isHomeTenant: tenantIdMatchesHomeTenant(tenantId, homeAccountId),
4022
+ };
4023
+ }
4007
4024
  }
4008
4025
  /**
4009
4026
  * Replaces account info that varies by tenant profile sourced from the ID token claims passed in with the tenant-specific account info
@@ -4023,7 +4040,7 @@
4023
4040
  if (idTokenClaims) {
4024
4041
  // Ignore isHomeTenant, loginHint, and sid which are part of tenant profile but not base account info
4025
4042
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
4026
- const { isHomeTenant, ...claimsSourcedTenantProfile } = buildTenantProfileFromIdTokenClaims(baseAccountInfo.homeAccountId, idTokenClaims);
4043
+ const { isHomeTenant, ...claimsSourcedTenantProfile } = buildTenantProfile(baseAccountInfo.homeAccountId, baseAccountInfo.localAccountId, baseAccountInfo.tenantId, idTokenClaims);
4027
4044
  updatedAccountInfo = {
4028
4045
  ...updatedAccountInfo,
4029
4046
  ...claimsSourcedTenantProfile,
@@ -4035,7 +4052,7 @@
4035
4052
  return updatedAccountInfo;
4036
4053
  }
4037
4054
 
4038
- /*! @azure/msal-common v14.13.0 2024-07-12 */
4055
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
4039
4056
  /*
4040
4057
  * Copyright (c) Microsoft Corporation. All rights reserved.
4041
4058
  * Licensed under the MIT License.
@@ -4057,7 +4074,7 @@
4057
4074
  return null;
4058
4075
  }
4059
4076
 
4060
- /*! @azure/msal-common v14.13.0 2024-07-12 */
4077
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
4061
4078
 
4062
4079
  /*
4063
4080
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4201,12 +4218,8 @@
4201
4218
  account.tenantProfiles = accountDetails.tenantProfiles;
4202
4219
  }
4203
4220
  else {
4204
- const tenantProfiles = [];
4205
- if (accountDetails.idTokenClaims) {
4206
- const tenantProfile = buildTenantProfileFromIdTokenClaims(accountDetails.homeAccountId, accountDetails.idTokenClaims);
4207
- tenantProfiles.push(tenantProfile);
4208
- }
4209
- account.tenantProfiles = tenantProfiles;
4221
+ const tenantProfile = buildTenantProfile(accountDetails.homeAccountId, account.localAccountId, account.realm, accountDetails.idTokenClaims);
4222
+ account.tenantProfiles = [tenantProfile];
4210
4223
  }
4211
4224
  return account;
4212
4225
  }
@@ -4304,7 +4317,7 @@
4304
4317
  }
4305
4318
  }
4306
4319
 
4307
- /*! @azure/msal-common v14.13.0 2024-07-12 */
4320
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
4308
4321
  /*
4309
4322
  * Copyright (c) Microsoft Corporation. All rights reserved.
4310
4323
  * Licensed under the MIT License.
@@ -4312,7 +4325,7 @@
4312
4325
  const cacheQuotaExceededErrorCode = "cache_quota_exceeded";
4313
4326
  const cacheUnknownErrorCode = "cache_error_unknown";
4314
4327
 
4315
- /*! @azure/msal-common v14.13.0 2024-07-12 */
4328
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
4316
4329
 
4317
4330
  /*
4318
4331
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4339,7 +4352,7 @@
4339
4352
  }
4340
4353
  }
4341
4354
 
4342
- /*! @azure/msal-common v14.13.0 2024-07-12 */
4355
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
4343
4356
 
4344
4357
  /*
4345
4358
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4407,12 +4420,9 @@
4407
4420
  */
4408
4421
  buildTenantProfiles(cachedAccounts, accountFilter) {
4409
4422
  return cachedAccounts.flatMap((accountEntity) => {
4410
- return this.getAccountInfoForTenantProfiles(accountEntity, accountFilter);
4423
+ return this.getTenantProfilesFromAccountEntity(accountEntity, accountFilter?.tenantId, accountFilter);
4411
4424
  });
4412
4425
  }
4413
- getAccountInfoForTenantProfiles(accountEntity, accountFilter) {
4414
- return this.getTenantProfilesFromAccountEntity(accountEntity, accountFilter?.tenantId, accountFilter);
4415
- }
4416
4426
  getTenantedAccountInfoByFilter(accountInfo, tokenKeys, tenantProfile, tenantProfileFilter) {
4417
4427
  let tenantedAccountInfo = null;
4418
4428
  let idTokenClaims;
@@ -5594,7 +5604,7 @@
5594
5604
  }
5595
5605
  }
5596
5606
 
5597
- /*! @azure/msal-common v14.13.0 2024-07-12 */
5607
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
5598
5608
 
5599
5609
  /*
5600
5610
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5692,7 +5702,7 @@
5692
5702
  return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
5693
5703
  }
5694
5704
 
5695
- /*! @azure/msal-common v14.13.0 2024-07-12 */
5705
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
5696
5706
 
5697
5707
  /*
5698
5708
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5711,7 +5721,7 @@
5711
5721
  }
5712
5722
  }
5713
5723
 
5714
- /*! @azure/msal-common v14.13.0 2024-07-12 */
5724
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
5715
5725
 
5716
5726
  /*
5717
5727
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5809,7 +5819,7 @@
5809
5819
  }
5810
5820
  }
5811
5821
 
5812
- /*! @azure/msal-common v14.13.0 2024-07-12 */
5822
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
5813
5823
 
5814
5824
  /*
5815
5825
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5846,7 +5856,7 @@
5846
5856
  }
5847
5857
  }
5848
5858
 
5849
- /*! @azure/msal-common v14.13.0 2024-07-12 */
5859
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
5850
5860
  /*
5851
5861
  * Copyright (c) Microsoft Corporation. All rights reserved.
5852
5862
  * Licensed under the MIT License.
@@ -5856,7 +5866,7 @@
5856
5866
  UPN: "UPN",
5857
5867
  };
5858
5868
 
5859
- /*! @azure/msal-common v14.13.0 2024-07-12 */
5869
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
5860
5870
 
5861
5871
  /*
5862
5872
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5923,7 +5933,7 @@
5923
5933
  }
5924
5934
  }
5925
5935
 
5926
- /*! @azure/msal-common v14.13.0 2024-07-12 */
5936
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
5927
5937
 
5928
5938
  /*
5929
5939
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6308,7 +6318,7 @@
6308
6318
  }
6309
6319
  }
6310
6320
 
6311
- /*! @azure/msal-common v14.13.0 2024-07-12 */
6321
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
6312
6322
 
6313
6323
  /*
6314
6324
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6411,7 +6421,7 @@
6411
6421
  }
6412
6422
  }
6413
6423
 
6414
- /*! @azure/msal-common v14.13.0 2024-07-12 */
6424
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
6415
6425
  /*
6416
6426
  * Copyright (c) Microsoft Corporation. All rights reserved.
6417
6427
  * Licensed under the MIT License.
@@ -6437,7 +6447,7 @@
6437
6447
  refreshTokenExpired: refreshTokenExpired
6438
6448
  });
6439
6449
 
6440
- /*! @azure/msal-common v14.13.0 2024-07-12 */
6450
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
6441
6451
 
6442
6452
  /*
6443
6453
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6525,7 +6535,7 @@
6525
6535
  return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
6526
6536
  }
6527
6537
 
6528
- /*! @azure/msal-common v14.13.0 2024-07-12 */
6538
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
6529
6539
 
6530
6540
  /*
6531
6541
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6597,7 +6607,7 @@
6597
6607
  }
6598
6608
  }
6599
6609
 
6600
- /*! @azure/msal-common v14.13.0 2024-07-12 */
6610
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
6601
6611
 
6602
6612
  /*
6603
6613
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6681,7 +6691,7 @@
6681
6691
  }
6682
6692
  }
6683
6693
 
6684
- /*! @azure/msal-common v14.13.0 2024-07-12 */
6694
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
6685
6695
  /*
6686
6696
  * Copyright (c) Microsoft Corporation. All rights reserved.
6687
6697
  * Licensed under the MIT License.
@@ -6708,7 +6718,7 @@
6708
6718
  }
6709
6719
  }
6710
6720
 
6711
- /*! @azure/msal-common v14.13.0 2024-07-12 */
6721
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
6712
6722
 
6713
6723
  /*
6714
6724
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7073,19 +7083,19 @@
7073
7083
  nativeAccountId: nativeAccountId,
7074
7084
  }, authority, base64Decode);
7075
7085
  const tenantProfiles = baseAccount.tenantProfiles || [];
7076
- if (claimsTenantId &&
7077
- idTokenClaims &&
7086
+ const tenantId = claimsTenantId || baseAccount.realm;
7087
+ if (tenantId &&
7078
7088
  !tenantProfiles.find((tenantProfile) => {
7079
- return tenantProfile.tenantId === claimsTenantId;
7089
+ return tenantProfile.tenantId === tenantId;
7080
7090
  })) {
7081
- const newTenantProfile = buildTenantProfileFromIdTokenClaims(homeAccountId, idTokenClaims);
7091
+ const newTenantProfile = buildTenantProfile(homeAccountId, baseAccount.localAccountId, tenantId, idTokenClaims);
7082
7092
  tenantProfiles.push(newTenantProfile);
7083
7093
  }
7084
7094
  baseAccount.tenantProfiles = tenantProfiles;
7085
7095
  return baseAccount;
7086
7096
  }
7087
7097
 
7088
- /*! @azure/msal-common v14.13.0 2024-07-12 */
7098
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
7089
7099
 
7090
7100
  /*
7091
7101
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7508,7 +7518,7 @@
7508
7518
  }
7509
7519
  }
7510
7520
 
7511
- /*! @azure/msal-common v14.13.0 2024-07-12 */
7521
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
7512
7522
 
7513
7523
  /*
7514
7524
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7722,7 +7732,7 @@
7722
7732
  }
7723
7733
  }
7724
7734
 
7725
- /*! @azure/msal-common v14.13.0 2024-07-12 */
7735
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
7726
7736
 
7727
7737
  /*
7728
7738
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7858,7 +7868,7 @@
7858
7868
  }
7859
7869
  }
7860
7870
 
7861
- /*! @azure/msal-common v14.13.0 2024-07-12 */
7871
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
7862
7872
 
7863
7873
  /*
7864
7874
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7873,7 +7883,7 @@
7873
7883
  },
7874
7884
  };
7875
7885
 
7876
- /*! @azure/msal-common v14.13.0 2024-07-12 */
7886
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
7877
7887
  /*
7878
7888
  * Copyright (c) Microsoft Corporation. All rights reserved.
7879
7889
  * Licensed under the MIT License.
@@ -7881,7 +7891,7 @@
7881
7891
  const missingKidError = "missing_kid_error";
7882
7892
  const missingAlgError = "missing_alg_error";
7883
7893
 
7884
- /*! @azure/msal-common v14.13.0 2024-07-12 */
7894
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
7885
7895
 
7886
7896
  /*
7887
7897
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7906,7 +7916,7 @@
7906
7916
  return new JoseHeaderError(code, JoseHeaderErrorMessages[code]);
7907
7917
  }
7908
7918
 
7909
- /*! @azure/msal-common v14.13.0 2024-07-12 */
7919
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
7910
7920
 
7911
7921
  /*
7912
7922
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7946,7 +7956,7 @@
7946
7956
  }
7947
7957
  }
7948
7958
 
7949
- /*! @azure/msal-common v14.13.0 2024-07-12 */
7959
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
7950
7960
 
7951
7961
  /*
7952
7962
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8004,7 +8014,7 @@
8004
8014
  }
8005
8015
  }
8006
8016
 
8007
- /*! @azure/msal-common v14.13.0 2024-07-12 */
8017
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
8008
8018
 
8009
8019
  /*
8010
8020
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8208,7 +8218,7 @@
8208
8218
  }
8209
8219
  }
8210
8220
 
8211
- /*! @azure/msal-common v14.13.0 2024-07-12 */
8221
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
8212
8222
 
8213
8223
  /*
8214
8224
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8287,7 +8297,7 @@
8287
8297
  }
8288
8298
  }
8289
8299
 
8290
- /*! @azure/msal-common v14.13.0 2024-07-12 */
8300
+ /*! @azure/msal-common v14.13.1 2024-07-16 */
8291
8301
 
8292
8302
  /*
8293
8303
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -10158,7 +10168,7 @@
10158
10168
 
10159
10169
  /* eslint-disable header/header */
10160
10170
  const name = "@azure/msal-browser";
10161
- const version = "3.19.0";
10171
+ const version = "3.19.1";
10162
10172
 
10163
10173
  /*
10164
10174
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -17114,7 +17124,7 @@
17114
17124
  "";
17115
17125
  const name = fromAccount.name || effectiveIdTokenClaims?.name;
17116
17126
  const tenantProfiles = new Map();
17117
- const tenantProfile = buildTenantProfileFromIdTokenClaims(homeAccountId, effectiveIdTokenClaims);
17127
+ const tenantProfile = buildTenantProfile(homeAccountId, localAccountId, tenantId, effectiveIdTokenClaims);
17118
17128
  tenantProfiles.set(tenantId, tenantProfile);
17119
17129
  const account = {
17120
17130
  homeAccountId,