@azure/msal-browser 3.15.0 → 3.16.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 (80) 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.d.ts.map +1 -1
  17. package/dist/controllers/StandardController.mjs +58 -37
  18. package/dist/controllers/StandardController.mjs.map +1 -1
  19. package/dist/controllers/UnknownOperatingContextController.mjs +1 -1
  20. package/dist/crypto/BrowserCrypto.mjs +1 -1
  21. package/dist/crypto/CryptoOps.mjs +1 -1
  22. package/dist/crypto/PkceGenerator.mjs +1 -1
  23. package/dist/crypto/SignedHttpRequest.mjs +1 -1
  24. package/dist/encode/Base64Decode.mjs +1 -1
  25. package/dist/encode/Base64Encode.mjs +1 -1
  26. package/dist/error/BrowserAuthError.mjs +1 -1
  27. package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
  28. package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
  29. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  30. package/dist/error/NativeAuthError.mjs +1 -1
  31. package/dist/error/NativeAuthErrorCodes.mjs +1 -1
  32. package/dist/error/NestedAppAuthError.mjs +1 -1
  33. package/dist/event/EventHandler.mjs +1 -1
  34. package/dist/event/EventMessage.mjs +1 -1
  35. package/dist/event/EventType.mjs +1 -1
  36. package/dist/index.mjs +1 -1
  37. package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
  38. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  39. package/dist/interaction_client/NativeInteractionClient.d.ts +4 -3
  40. package/dist/interaction_client/NativeInteractionClient.d.ts.map +1 -1
  41. package/dist/interaction_client/NativeInteractionClient.mjs +5 -3
  42. package/dist/interaction_client/NativeInteractionClient.mjs.map +1 -1
  43. package/dist/interaction_client/PopupClient.mjs +1 -1
  44. package/dist/interaction_client/RedirectClient.mjs +1 -1
  45. package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
  46. package/dist/interaction_client/SilentCacheClient.mjs +1 -1
  47. package/dist/interaction_client/SilentIframeClient.mjs +1 -1
  48. package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
  49. package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
  50. package/dist/interaction_handler/InteractionHandler.mjs +1 -1
  51. package/dist/interaction_handler/RedirectHandler.mjs +1 -1
  52. package/dist/interaction_handler/SilentHandler.mjs +1 -1
  53. package/dist/naa/BridgeError.mjs +1 -1
  54. package/dist/naa/BridgeProxy.mjs +1 -1
  55. package/dist/naa/BridgeStatusCode.mjs +1 -1
  56. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
  57. package/dist/navigation/NavigationClient.mjs +1 -1
  58. package/dist/network/FetchClient.mjs +1 -1
  59. package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
  60. package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
  61. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  62. package/dist/operatingcontext/UnknownOperatingContext.mjs +1 -1
  63. package/dist/packageMetadata.d.ts +1 -1
  64. package/dist/packageMetadata.mjs +2 -2
  65. package/dist/request/RequestHelpers.mjs +1 -1
  66. package/dist/response/ResponseHandler.mjs +1 -1
  67. package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  68. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  69. package/dist/utils/BrowserConstants.mjs +1 -1
  70. package/dist/utils/BrowserProtocolUtils.mjs +1 -1
  71. package/dist/utils/BrowserUtils.mjs +1 -1
  72. package/lib/msal-browser.cjs +136 -106
  73. package/lib/msal-browser.cjs.map +1 -1
  74. package/lib/msal-browser.js +136 -106
  75. package/lib/msal-browser.js.map +1 -1
  76. package/lib/msal-browser.min.js +61 -61
  77. package/package.json +2 -2
  78. package/src/controllers/StandardController.ts +89 -63
  79. package/src/interaction_client/NativeInteractionClient.ts +8 -2
  80. package/src/packageMetadata.ts +1 -1
@@ -1,8 +1,8 @@
1
- /*! @azure/msal-browser v3.15.0 2024-05-28 */
1
+ /*! @azure/msal-browser v3.16.0 2024-06-04 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
5
- /*! @azure/msal-common v14.10.0 2024-05-28 */
5
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
6
6
  /*
7
7
  * Copyright (c) Microsoft Corporation. All rights reserved.
8
8
  * Licensed under the MIT License.
@@ -310,7 +310,7 @@ const JsonWebTokenTypes = {
310
310
  // Token renewal offset default in seconds
311
311
  const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
312
312
 
313
- /*! @azure/msal-common v14.10.0 2024-05-28 */
313
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
314
314
  /*
315
315
  * Copyright (c) Microsoft Corporation. All rights reserved.
316
316
  * Licensed under the MIT License.
@@ -327,7 +327,7 @@ var AuthErrorCodes = /*#__PURE__*/Object.freeze({
327
327
  unexpectedError: unexpectedError
328
328
  });
329
329
 
330
- /*! @azure/msal-common v14.10.0 2024-05-28 */
330
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
331
331
 
332
332
  /*
333
333
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -376,7 +376,7 @@ function createAuthError(code, additionalMessage) {
376
376
  : AuthErrorMessages[code]);
377
377
  }
378
378
 
379
- /*! @azure/msal-common v14.10.0 2024-05-28 */
379
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
380
380
  /*
381
381
  * Copyright (c) Microsoft Corporation. All rights reserved.
382
382
  * Licensed under the MIT License.
@@ -474,7 +474,7 @@ var ClientAuthErrorCodes = /*#__PURE__*/Object.freeze({
474
474
  userTimeoutReached: userTimeoutReached
475
475
  });
476
476
 
477
- /*! @azure/msal-common v14.10.0 2024-05-28 */
477
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
478
478
 
479
479
  /*
480
480
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -726,7 +726,7 @@ function createClientAuthError(errorCode, additionalMessage) {
726
726
  return new ClientAuthError(errorCode, additionalMessage);
727
727
  }
728
728
 
729
- /*! @azure/msal-common v14.10.0 2024-05-28 */
729
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
730
730
 
731
731
  /*
732
732
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -787,7 +787,7 @@ function checkMaxAge(authTime, maxAge) {
787
787
  }
788
788
  }
789
789
 
790
- /*! @azure/msal-common v14.10.0 2024-05-28 */
790
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
791
791
  /*
792
792
  * Copyright (c) Microsoft Corporation. All rights reserved.
793
793
  * Licensed under the MIT License.
@@ -802,7 +802,7 @@ const AuthorityType = {
802
802
  Ciam: 3,
803
803
  };
804
804
 
805
- /*! @azure/msal-common v14.10.0 2024-05-28 */
805
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
806
806
  /*
807
807
  * Copyright (c) Microsoft Corporation. All rights reserved.
808
808
  * Licensed under the MIT License.
@@ -814,7 +814,7 @@ function isOpenIdConfigResponse(response) {
814
814
  response.hasOwnProperty("jwks_uri"));
815
815
  }
816
816
 
817
- /*! @azure/msal-common v14.10.0 2024-05-28 */
817
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
818
818
  /*
819
819
  * Copyright (c) Microsoft Corporation. All rights reserved.
820
820
  * Licensed under the MIT License.
@@ -868,7 +868,7 @@ var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
868
868
  urlParseError: urlParseError
869
869
  });
870
870
 
871
- /*! @azure/msal-common v14.10.0 2024-05-28 */
871
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
872
872
 
873
873
  /*
874
874
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1006,7 +1006,7 @@ function createClientConfigurationError(errorCode) {
1006
1006
  return new ClientConfigurationError(errorCode);
1007
1007
  }
1008
1008
 
1009
- /*! @azure/msal-common v14.10.0 2024-05-28 */
1009
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
1010
1010
  /*
1011
1011
  * Copyright (c) Microsoft Corporation. All rights reserved.
1012
1012
  * Licensed under the MIT License.
@@ -1103,7 +1103,7 @@ class StringUtils {
1103
1103
  }
1104
1104
  }
1105
1105
 
1106
- /*! @azure/msal-common v14.10.0 2024-05-28 */
1106
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
1107
1107
 
1108
1108
  /*
1109
1109
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1150,7 +1150,7 @@ function getDeserializedResponse(responseString) {
1150
1150
  return null;
1151
1151
  }
1152
1152
 
1153
- /*! @azure/msal-common v14.10.0 2024-05-28 */
1153
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
1154
1154
 
1155
1155
  /*
1156
1156
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1314,7 +1314,7 @@ class UrlString {
1314
1314
  }
1315
1315
  }
1316
1316
 
1317
- /*! @azure/msal-common v14.10.0 2024-05-28 */
1317
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
1318
1318
 
1319
1319
  /*
1320
1320
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1454,7 +1454,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
1454
1454
  return null;
1455
1455
  }
1456
1456
 
1457
- /*! @azure/msal-common v14.10.0 2024-05-28 */
1457
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
1458
1458
  /*
1459
1459
  * Copyright (c) Microsoft Corporation. All rights reserved.
1460
1460
  * Licensed under the MIT License.
@@ -1467,7 +1467,7 @@ const ProtocolMode = {
1467
1467
  OIDC: "OIDC",
1468
1468
  };
1469
1469
 
1470
- /*! @azure/msal-common v14.10.0 2024-05-28 */
1470
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
1471
1471
  /*
1472
1472
  * Copyright (c) Microsoft Corporation. All rights reserved.
1473
1473
  * Licensed under the MIT License.
@@ -1487,7 +1487,7 @@ const AzureCloudInstance = {
1487
1487
  AzureUsGovernment: "https://login.microsoftonline.us",
1488
1488
  };
1489
1489
 
1490
- /*! @azure/msal-common v14.10.0 2024-05-28 */
1490
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
1491
1491
  /*
1492
1492
  * Copyright (c) Microsoft Corporation. All rights reserved.
1493
1493
  * Licensed under the MIT License.
@@ -1497,7 +1497,7 @@ function isCloudInstanceDiscoveryResponse(response) {
1497
1497
  response.hasOwnProperty("metadata"));
1498
1498
  }
1499
1499
 
1500
- /*! @azure/msal-common v14.10.0 2024-05-28 */
1500
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
1501
1501
  /*
1502
1502
  * Copyright (c) Microsoft Corporation. All rights reserved.
1503
1503
  * Licensed under the MIT License.
@@ -1507,7 +1507,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
1507
1507
  response.hasOwnProperty("error_description"));
1508
1508
  }
1509
1509
 
1510
- /*! @azure/msal-common v14.10.0 2024-05-28 */
1510
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
1511
1511
  /*
1512
1512
  * Copyright (c) Microsoft Corporation. All rights reserved.
1513
1513
  * Licensed under the MIT License.
@@ -1544,9 +1544,16 @@ const PerformanceEvents = {
1544
1544
  * Used to acquire a new access token interactively through pop ups
1545
1545
  */
1546
1546
  AcquireTokenPopup: "acquireTokenPopup",
1547
+ /**
1548
+ * acquireTokenPreRedirect (msal-browser).
1549
+ * First part of the redirect flow.
1550
+ * Used to acquire a new access token interactively through redirects.
1551
+ */
1552
+ AcquireTokenPreRedirect: "acquireTokenPreRedirect",
1547
1553
  /**
1548
1554
  * acquireTokenRedirect (msal-browser).
1549
- * Used to acquire a new access token interactively through redirects
1555
+ * Second part of the redirect flow.
1556
+ * Used to acquire a new access token interactively through redirects.
1550
1557
  */
1551
1558
  AcquireTokenRedirect: "acquireTokenRedirect",
1552
1559
  /**
@@ -1982,7 +1989,7 @@ const IntFields = new Set([
1982
1989
  "multiMatchedRT",
1983
1990
  ]);
1984
1991
 
1985
- /*! @azure/msal-common v14.10.0 2024-05-28 */
1992
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
1986
1993
  /*
1987
1994
  * Copyright (c) Microsoft Corporation. All rights reserved.
1988
1995
  * Licensed under the MIT License.
@@ -2078,7 +2085,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
2078
2085
  };
2079
2086
  };
2080
2087
 
2081
- /*! @azure/msal-common v14.10.0 2024-05-28 */
2088
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
2082
2089
 
2083
2090
  /*
2084
2091
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2187,7 +2194,7 @@ RegionDiscovery.IMDS_OPTIONS = {
2187
2194
  },
2188
2195
  };
2189
2196
 
2190
- /*! @azure/msal-common v14.10.0 2024-05-28 */
2197
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
2191
2198
  /*
2192
2199
  * Copyright (c) Microsoft Corporation. All rights reserved.
2193
2200
  * Licensed under the MIT License.
@@ -2224,7 +2231,7 @@ function wasClockTurnedBack(cachedAt) {
2224
2231
  return cachedAtSec > nowSeconds();
2225
2232
  }
2226
2233
 
2227
- /*! @azure/msal-common v14.10.0 2024-05-28 */
2234
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
2228
2235
 
2229
2236
  /*
2230
2237
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2551,7 +2558,7 @@ function isAuthorityMetadataExpired(metadata) {
2551
2558
  return metadata.expiresAt <= nowSeconds();
2552
2559
  }
2553
2560
 
2554
- /*! @azure/msal-common v14.10.0 2024-05-28 */
2561
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
2555
2562
 
2556
2563
  /*
2557
2564
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3390,7 +3397,7 @@ function buildStaticAuthorityOptions(authOptions) {
3390
3397
  };
3391
3398
  }
3392
3399
 
3393
- /*! @azure/msal-common v14.10.0 2024-05-28 */
3400
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
3394
3401
 
3395
3402
  /*
3396
3403
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3421,7 +3428,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
3421
3428
  }
3422
3429
  }
3423
3430
 
3424
- /*! @azure/msal-common v14.10.0 2024-05-28 */
3431
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
3425
3432
  /*
3426
3433
  * Copyright (c) Microsoft Corporation. All rights reserved.
3427
3434
  * Licensed under the MIT License.
@@ -3439,7 +3446,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint) {
3439
3446
  }
3440
3447
  }
3441
3448
 
3442
- /*! @azure/msal-common v14.10.0 2024-05-28 */
3449
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
3443
3450
  /*
3444
3451
  * Copyright (c) Microsoft Corporation. All rights reserved.
3445
3452
  * Licensed under the MIT License.
@@ -3486,7 +3493,7 @@ const SID = "sid";
3486
3493
  const LOGIN_HINT = "login_hint";
3487
3494
  const DOMAIN_HINT = "domain_hint";
3488
3495
 
3489
- /*! @azure/msal-common v14.10.0 2024-05-28 */
3496
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
3490
3497
 
3491
3498
  /*
3492
3499
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3519,7 +3526,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
3519
3526
  },
3520
3527
  };
3521
3528
 
3522
- /*! @azure/msal-common v14.10.0 2024-05-28 */
3529
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
3523
3530
 
3524
3531
  /*
3525
3532
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3710,12 +3717,12 @@ class Logger {
3710
3717
  }
3711
3718
  }
3712
3719
 
3713
- /*! @azure/msal-common v14.10.0 2024-05-28 */
3720
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
3714
3721
  /* eslint-disable header/header */
3715
3722
  const name$1 = "@azure/msal-common";
3716
- const version$1 = "14.10.0";
3723
+ const version$1 = "14.11.0";
3717
3724
 
3718
- /*! @azure/msal-common v14.10.0 2024-05-28 */
3725
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
3719
3726
 
3720
3727
  /*
3721
3728
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3915,7 +3922,7 @@ class ScopeSet {
3915
3922
  }
3916
3923
  }
3917
3924
 
3918
- /*! @azure/msal-common v14.10.0 2024-05-28 */
3925
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
3919
3926
 
3920
3927
  /*
3921
3928
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3955,7 +3962,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
3955
3962
  };
3956
3963
  }
3957
3964
 
3958
- /*! @azure/msal-common v14.10.0 2024-05-28 */
3965
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
3959
3966
  /*
3960
3967
  * Copyright (c) Microsoft Corporation. All rights reserved.
3961
3968
  * Licensed under the MIT License.
@@ -4017,7 +4024,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
4017
4024
  return updatedAccountInfo;
4018
4025
  }
4019
4026
 
4020
- /*! @azure/msal-common v14.10.0 2024-05-28 */
4027
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
4021
4028
  /*
4022
4029
  * Copyright (c) Microsoft Corporation. All rights reserved.
4023
4030
  * Licensed under the MIT License.
@@ -4039,7 +4046,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
4039
4046
  return null;
4040
4047
  }
4041
4048
 
4042
- /*! @azure/msal-common v14.10.0 2024-05-28 */
4049
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
4043
4050
 
4044
4051
  /*
4045
4052
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4286,7 +4293,7 @@ class AccountEntity {
4286
4293
  }
4287
4294
  }
4288
4295
 
4289
- /*! @azure/msal-common v14.10.0 2024-05-28 */
4296
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
4290
4297
  /*
4291
4298
  * Copyright (c) Microsoft Corporation. All rights reserved.
4292
4299
  * Licensed under the MIT License.
@@ -4294,7 +4301,7 @@ class AccountEntity {
4294
4301
  const cacheQuotaExceededErrorCode = "cache_quota_exceeded";
4295
4302
  const cacheUnknownErrorCode = "cache_error_unknown";
4296
4303
 
4297
- /*! @azure/msal-common v14.10.0 2024-05-28 */
4304
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
4298
4305
 
4299
4306
  /*
4300
4307
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4321,7 +4328,7 @@ class CacheError extends Error {
4321
4328
  }
4322
4329
  }
4323
4330
 
4324
- /*! @azure/msal-common v14.10.0 2024-05-28 */
4331
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
4325
4332
 
4326
4333
  /*
4327
4334
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5576,7 +5583,7 @@ class DefaultStorageClass extends CacheManager {
5576
5583
  }
5577
5584
  }
5578
5585
 
5579
- /*! @azure/msal-common v14.10.0 2024-05-28 */
5586
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
5580
5587
 
5581
5588
  /*
5582
5589
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5674,7 +5681,7 @@ function isOidcProtocolMode(config) {
5674
5681
  return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
5675
5682
  }
5676
5683
 
5677
- /*! @azure/msal-common v14.10.0 2024-05-28 */
5684
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
5678
5685
 
5679
5686
  /*
5680
5687
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5692,7 +5699,7 @@ class ServerError extends AuthError {
5692
5699
  }
5693
5700
  }
5694
5701
 
5695
- /*! @azure/msal-common v14.10.0 2024-05-28 */
5702
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
5696
5703
 
5697
5704
  /*
5698
5705
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5790,7 +5797,7 @@ class ThrottlingUtils {
5790
5797
  }
5791
5798
  }
5792
5799
 
5793
- /*! @azure/msal-common v14.10.0 2024-05-28 */
5800
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
5794
5801
 
5795
5802
  /*
5796
5803
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5827,7 +5834,7 @@ class NetworkManager {
5827
5834
  }
5828
5835
  }
5829
5836
 
5830
- /*! @azure/msal-common v14.10.0 2024-05-28 */
5837
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
5831
5838
  /*
5832
5839
  * Copyright (c) Microsoft Corporation. All rights reserved.
5833
5840
  * Licensed under the MIT License.
@@ -5837,7 +5844,7 @@ const CcsCredentialType = {
5837
5844
  UPN: "UPN",
5838
5845
  };
5839
5846
 
5840
- /*! @azure/msal-common v14.10.0 2024-05-28 */
5847
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
5841
5848
 
5842
5849
  /*
5843
5850
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5921,7 +5928,7 @@ class RequestValidator {
5921
5928
  }
5922
5929
  }
5923
5930
 
5924
- /*! @azure/msal-common v14.10.0 2024-05-28 */
5931
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
5925
5932
 
5926
5933
  /*
5927
5934
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6305,7 +6312,7 @@ class RequestParameterBuilder {
6305
6312
  }
6306
6313
  }
6307
6314
 
6308
- /*! @azure/msal-common v14.10.0 2024-05-28 */
6315
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
6309
6316
 
6310
6317
  /*
6311
6318
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6408,7 +6415,7 @@ class BaseClient {
6408
6415
  }
6409
6416
  }
6410
6417
 
6411
- /*! @azure/msal-common v14.10.0 2024-05-28 */
6418
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
6412
6419
  /*
6413
6420
  * Copyright (c) Microsoft Corporation. All rights reserved.
6414
6421
  * Licensed under the MIT License.
@@ -6434,7 +6441,7 @@ var InteractionRequiredAuthErrorCodes = /*#__PURE__*/Object.freeze({
6434
6441
  refreshTokenExpired: refreshTokenExpired
6435
6442
  });
6436
6443
 
6437
- /*! @azure/msal-common v14.10.0 2024-05-28 */
6444
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
6438
6445
 
6439
6446
  /*
6440
6447
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6522,7 +6529,7 @@ function createInteractionRequiredAuthError(errorCode) {
6522
6529
  return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
6523
6530
  }
6524
6531
 
6525
- /*! @azure/msal-common v14.10.0 2024-05-28 */
6532
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
6526
6533
  /*
6527
6534
  * Copyright (c) Microsoft Corporation. All rights reserved.
6528
6535
  * Licensed under the MIT License.
@@ -6538,7 +6545,7 @@ class CacheRecord {
6538
6545
  }
6539
6546
  }
6540
6547
 
6541
- /*! @azure/msal-common v14.10.0 2024-05-28 */
6548
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
6542
6549
 
6543
6550
  /*
6544
6551
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6610,7 +6617,7 @@ class ProtocolUtils {
6610
6617
  }
6611
6618
  }
6612
6619
 
6613
- /*! @azure/msal-common v14.10.0 2024-05-28 */
6620
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
6614
6621
 
6615
6622
  /*
6616
6623
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6695,7 +6702,7 @@ class PopTokenGenerator {
6695
6702
  }
6696
6703
  }
6697
6704
 
6698
- /*! @azure/msal-common v14.10.0 2024-05-28 */
6705
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
6699
6706
  /*
6700
6707
  * Copyright (c) Microsoft Corporation. All rights reserved.
6701
6708
  * Licensed under the MIT License.
@@ -6722,7 +6729,7 @@ class PopTokenGenerator {
6722
6729
  }
6723
6730
  }
6724
6731
 
6725
- /*! @azure/msal-common v14.10.0 2024-05-28 */
6732
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
6726
6733
 
6727
6734
  /*
6728
6735
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7086,7 +7093,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, idTokenClai
7086
7093
  return baseAccount;
7087
7094
  }
7088
7095
 
7089
- /*! @azure/msal-common v14.10.0 2024-05-28 */
7096
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
7090
7097
 
7091
7098
  /*
7092
7099
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7495,7 +7502,7 @@ class AuthorizationCodeClient extends BaseClient {
7495
7502
  }
7496
7503
  }
7497
7504
 
7498
- /*! @azure/msal-common v14.10.0 2024-05-28 */
7505
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
7499
7506
 
7500
7507
  /*
7501
7508
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7702,7 +7709,7 @@ class RefreshTokenClient extends BaseClient {
7702
7709
  }
7703
7710
  }
7704
7711
 
7705
- /*! @azure/msal-common v14.10.0 2024-05-28 */
7712
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
7706
7713
 
7707
7714
  /*
7708
7715
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7838,7 +7845,7 @@ class SilentFlowClient extends BaseClient {
7838
7845
  }
7839
7846
  }
7840
7847
 
7841
- /*! @azure/msal-common v14.10.0 2024-05-28 */
7848
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
7842
7849
 
7843
7850
  /*
7844
7851
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7853,7 +7860,7 @@ const StubbedNetworkModule = {
7853
7860
  },
7854
7861
  };
7855
7862
 
7856
- /*! @azure/msal-common v14.10.0 2024-05-28 */
7863
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
7857
7864
  /*
7858
7865
  * Copyright (c) Microsoft Corporation. All rights reserved.
7859
7866
  * Licensed under the MIT License.
@@ -7861,7 +7868,7 @@ const StubbedNetworkModule = {
7861
7868
  const missingKidError = "missing_kid_error";
7862
7869
  const missingAlgError = "missing_alg_error";
7863
7870
 
7864
- /*! @azure/msal-common v14.10.0 2024-05-28 */
7871
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
7865
7872
 
7866
7873
  /*
7867
7874
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7886,7 +7893,7 @@ function createJoseHeaderError(code) {
7886
7893
  return new JoseHeaderError(code, JoseHeaderErrorMessages[code]);
7887
7894
  }
7888
7895
 
7889
- /*! @azure/msal-common v14.10.0 2024-05-28 */
7896
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
7890
7897
 
7891
7898
  /*
7892
7899
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7926,7 +7933,7 @@ class JoseHeader {
7926
7933
  }
7927
7934
  }
7928
7935
 
7929
- /*! @azure/msal-common v14.10.0 2024-05-28 */
7936
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
7930
7937
 
7931
7938
  /*
7932
7939
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7984,7 +7991,7 @@ class AuthenticationHeaderParser {
7984
7991
  }
7985
7992
  }
7986
7993
 
7987
- /*! @azure/msal-common v14.10.0 2024-05-28 */
7994
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
7988
7995
 
7989
7996
  /*
7990
7997
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8188,7 +8195,7 @@ class ServerTelemetryManager {
8188
8195
  }
8189
8196
  }
8190
8197
 
8191
- /*! @azure/msal-common v14.10.0 2024-05-28 */
8198
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
8192
8199
 
8193
8200
  /*
8194
8201
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8267,7 +8274,7 @@ class StubPerformanceClient {
8267
8274
  }
8268
8275
  }
8269
8276
 
8270
- /*! @azure/msal-common v14.10.0 2024-05-28 */
8277
+ /*! @azure/msal-common v14.11.0 2024-06-04 */
8271
8278
 
8272
8279
  /*
8273
8280
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -10131,7 +10138,7 @@ function buildConfiguration({ auth: userInputAuth, cache: userInputCache, system
10131
10138
 
10132
10139
  /* eslint-disable header/header */
10133
10140
  const name = "@azure/msal-browser";
10134
- const version = "3.15.0";
10141
+ const version = "3.16.0";
10135
10142
 
10136
10143
  /*
10137
10144
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -13366,9 +13373,10 @@ class NativeInteractionClient extends BaseInteractionClient {
13366
13373
  }
13367
13374
  /**
13368
13375
  * Acquires a token from native platform then redirects to the redirectUri instead of returning the response
13369
- * @param request
13376
+ * @param {RedirectRequest} request
13377
+ * @param {InProgressPerformanceEvent} rootMeasurement
13370
13378
  */
13371
- async acquireTokenRedirect(request) {
13379
+ async acquireTokenRedirect(request, rootMeasurement) {
13372
13380
  this.logger.trace("NativeInteractionClient - acquireTokenRedirect called.");
13373
13381
  const nativeRequest = await this.initializeNativeRequest(request);
13374
13382
  const messageBody = {
@@ -13394,6 +13402,7 @@ class NativeInteractionClient extends BaseInteractionClient {
13394
13402
  const redirectUri = this.config.auth.navigateToLoginRequestUrl
13395
13403
  ? window.location.href
13396
13404
  : this.getRedirectUri(request.redirectUri);
13405
+ rootMeasurement.end({ success: true });
13397
13406
  await this.navigationClient.navigateExternal(redirectUri, navigationOptions); // Need to treat this as external to ensure handleRedirectPromise is run again
13398
13407
  }
13399
13408
  /**
@@ -15832,7 +15841,7 @@ class StandardController {
15832
15841
  const correlationId = useNative
15833
15842
  ? request?.correlationId
15834
15843
  : this.browserStorage.getTemporaryCache(TemporaryCacheKeys.CORRELATION_ID, true) || "";
15835
- const rootMeasurement = this.performanceClient.startMeasurement("acquireTokenRedirect", correlationId);
15844
+ const rootMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.AcquireTokenRedirect, correlationId);
15836
15845
  this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_START, exports.InteractionType.Redirect);
15837
15846
  let redirectResponse;
15838
15847
  if (useNative && this.nativeExtensionProvider) {
@@ -15907,43 +15916,64 @@ class StandardController {
15907
15916
  // Preflight request
15908
15917
  const correlationId = this.getRequestCorrelationId(request);
15909
15918
  this.logger.verbose("acquireTokenRedirect called", correlationId);
15910
- redirectPreflightCheck(this.initialized, this.config);
15911
- this.browserStorage.setInteractionInProgress(true);
15919
+ const atrMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.AcquireTokenPreRedirect, correlationId);
15920
+ atrMeasurement.add({
15921
+ accountType: getAccountType(request.account),
15922
+ scenarioId: request.scenarioId,
15923
+ });
15924
+ const onRedirectNavigateCb = request.onRedirectNavigate;
15925
+ request.onRedirectNavigate = (url) => {
15926
+ const navigate = typeof onRedirectNavigateCb === "function"
15927
+ ? onRedirectNavigateCb(url)
15928
+ : undefined;
15929
+ if (navigate !== false) {
15930
+ atrMeasurement.end({ success: true });
15931
+ }
15932
+ else {
15933
+ atrMeasurement.discard();
15934
+ }
15935
+ return navigate;
15936
+ };
15912
15937
  // If logged in, emit acquire token events
15913
15938
  const isLoggedIn = this.getAllAccounts().length > 0;
15914
- if (isLoggedIn) {
15915
- this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, exports.InteractionType.Redirect, request);
15916
- }
15917
- else {
15918
- this.eventHandler.emitEvent(EventType.LOGIN_START, exports.InteractionType.Redirect, request);
15919
- }
15920
- let result;
15921
- if (this.nativeExtensionProvider && this.canUseNative(request)) {
15922
- const nativeClient = new NativeInteractionClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, ApiId.acquireTokenRedirect, this.performanceClient, this.nativeExtensionProvider, this.getNativeAccountId(request), this.nativeInternalStorage, correlationId);
15923
- result = nativeClient
15924
- .acquireTokenRedirect(request)
15925
- .catch((e) => {
15926
- if (e instanceof NativeAuthError &&
15927
- isFatalNativeAuthError(e)) {
15928
- this.nativeExtensionProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt
15929
- const redirectClient = this.createRedirectClient(correlationId);
15930
- return redirectClient.acquireToken(request);
15931
- }
15932
- else if (e instanceof InteractionRequiredAuthError) {
15933
- this.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow");
15934
- const redirectClient = this.createRedirectClient(correlationId);
15935
- return redirectClient.acquireToken(request);
15936
- }
15937
- this.browserStorage.setInteractionInProgress(false);
15938
- throw e;
15939
- });
15940
- }
15941
- else {
15942
- const redirectClient = this.createRedirectClient(correlationId);
15943
- result = redirectClient.acquireToken(request);
15939
+ try {
15940
+ redirectPreflightCheck(this.initialized, this.config);
15941
+ this.browserStorage.setInteractionInProgress(true);
15942
+ if (isLoggedIn) {
15943
+ this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, exports.InteractionType.Redirect, request);
15944
+ }
15945
+ else {
15946
+ this.eventHandler.emitEvent(EventType.LOGIN_START, exports.InteractionType.Redirect, request);
15947
+ }
15948
+ let result;
15949
+ if (this.nativeExtensionProvider && this.canUseNative(request)) {
15950
+ const nativeClient = new NativeInteractionClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, ApiId.acquireTokenRedirect, this.performanceClient, this.nativeExtensionProvider, this.getNativeAccountId(request), this.nativeInternalStorage, correlationId);
15951
+ result = nativeClient
15952
+ .acquireTokenRedirect(request, atrMeasurement)
15953
+ .catch((e) => {
15954
+ if (e instanceof NativeAuthError &&
15955
+ isFatalNativeAuthError(e)) {
15956
+ this.nativeExtensionProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt
15957
+ const redirectClient = this.createRedirectClient(correlationId);
15958
+ return redirectClient.acquireToken(request);
15959
+ }
15960
+ else if (e instanceof InteractionRequiredAuthError) {
15961
+ this.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow");
15962
+ const redirectClient = this.createRedirectClient(correlationId);
15963
+ return redirectClient.acquireToken(request);
15964
+ }
15965
+ this.browserStorage.setInteractionInProgress(false);
15966
+ throw e;
15967
+ });
15968
+ }
15969
+ else {
15970
+ const redirectClient = this.createRedirectClient(correlationId);
15971
+ result = redirectClient.acquireToken(request);
15972
+ }
15973
+ return await result;
15944
15974
  }
15945
- return result.catch((e) => {
15946
- // If logged in, emit acquire token events
15975
+ catch (e) {
15976
+ atrMeasurement.end({ success: false }, e);
15947
15977
  if (isLoggedIn) {
15948
15978
  this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Redirect, null, e);
15949
15979
  }
@@ -15951,7 +15981,7 @@ class StandardController {
15951
15981
  this.eventHandler.emitEvent(EventType.LOGIN_FAILURE, exports.InteractionType.Redirect, null, e);
15952
15982
  }
15953
15983
  throw e;
15954
- });
15984
+ }
15955
15985
  }
15956
15986
  // #endregion
15957
15987
  // #region Popup Flow