@azure/msal-browser 4.2.1 → 4.3.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 (95) 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/CacheHelpers.mjs +1 -1
  10. package/dist/cache/CookieStorage.mjs +1 -1
  11. package/dist/cache/DatabaseStorage.mjs +1 -1
  12. package/dist/cache/LocalStorage.mjs +1 -1
  13. package/dist/cache/MemoryStorage.mjs +1 -1
  14. package/dist/cache/SessionStorage.mjs +1 -1
  15. package/dist/cache/TokenCache.mjs +1 -1
  16. package/dist/config/Configuration.mjs +1 -1
  17. package/dist/controllers/ControllerFactory.mjs +1 -1
  18. package/dist/controllers/NestedAppAuthController.mjs +1 -1
  19. package/dist/controllers/StandardController.d.ts +11 -0
  20. package/dist/controllers/StandardController.d.ts.map +1 -1
  21. package/dist/controllers/StandardController.mjs +32 -5
  22. package/dist/controllers/StandardController.mjs.map +1 -1
  23. package/dist/controllers/UnknownOperatingContextController.mjs +1 -1
  24. package/dist/crypto/BrowserCrypto.mjs +1 -1
  25. package/dist/crypto/CryptoOps.mjs +1 -1
  26. package/dist/crypto/PkceGenerator.mjs +1 -1
  27. package/dist/crypto/SignedHttpRequest.mjs +1 -1
  28. package/dist/encode/Base64Decode.mjs +1 -1
  29. package/dist/encode/Base64Encode.mjs +1 -1
  30. package/dist/error/BrowserAuthError.mjs +1 -1
  31. package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
  32. package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
  33. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  34. package/dist/error/NativeAuthError.mjs +1 -1
  35. package/dist/error/NativeAuthErrorCodes.mjs +1 -1
  36. package/dist/error/NestedAppAuthError.mjs +1 -1
  37. package/dist/event/EventHandler.mjs +1 -1
  38. package/dist/event/EventMessage.mjs +1 -1
  39. package/dist/event/EventType.mjs +1 -1
  40. package/dist/index.mjs +1 -1
  41. package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
  42. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  43. package/dist/interaction_client/NativeInteractionClient.mjs +1 -1
  44. package/dist/interaction_client/PopupClient.d.ts +7 -7
  45. package/dist/interaction_client/PopupClient.d.ts.map +1 -1
  46. package/dist/interaction_client/PopupClient.mjs +17 -11
  47. package/dist/interaction_client/PopupClient.mjs.map +1 -1
  48. package/dist/interaction_client/RedirectClient.mjs +1 -1
  49. package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
  50. package/dist/interaction_client/SilentCacheClient.mjs +1 -1
  51. package/dist/interaction_client/SilentIframeClient.mjs +1 -1
  52. package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
  53. package/dist/interaction_client/StandardInteractionClient.d.ts +3 -2
  54. package/dist/interaction_client/StandardInteractionClient.d.ts.map +1 -1
  55. package/dist/interaction_client/StandardInteractionClient.mjs +5 -3
  56. package/dist/interaction_client/StandardInteractionClient.mjs.map +1 -1
  57. package/dist/interaction_handler/InteractionHandler.mjs +1 -1
  58. package/dist/interaction_handler/RedirectHandler.mjs +1 -1
  59. package/dist/interaction_handler/SilentHandler.mjs +1 -1
  60. package/dist/naa/BridgeError.mjs +1 -1
  61. package/dist/naa/BridgeProxy.mjs +1 -1
  62. package/dist/naa/BridgeStatusCode.mjs +1 -1
  63. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
  64. package/dist/navigation/NavigationClient.mjs +1 -1
  65. package/dist/network/FetchClient.mjs +1 -1
  66. package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
  67. package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
  68. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  69. package/dist/operatingcontext/UnknownOperatingContext.mjs +1 -1
  70. package/dist/packageMetadata.d.ts +1 -1
  71. package/dist/packageMetadata.mjs +2 -2
  72. package/dist/request/RequestHelpers.mjs +1 -1
  73. package/dist/response/ResponseHandler.mjs +1 -1
  74. package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  75. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  76. package/dist/utils/BrowserConstants.mjs +1 -1
  77. package/dist/utils/BrowserProtocolUtils.mjs +1 -1
  78. package/dist/utils/BrowserUtils.mjs +1 -1
  79. package/lib/msal-browser.cjs +116 -82
  80. package/lib/msal-browser.cjs.map +1 -1
  81. package/lib/msal-browser.js +116 -82
  82. package/lib/msal-browser.js.map +1 -1
  83. package/lib/msal-browser.min.js +59 -59
  84. package/lib/types/controllers/StandardController.d.ts +11 -0
  85. package/lib/types/controllers/StandardController.d.ts.map +1 -1
  86. package/lib/types/interaction_client/PopupClient.d.ts +7 -7
  87. package/lib/types/interaction_client/PopupClient.d.ts.map +1 -1
  88. package/lib/types/interaction_client/StandardInteractionClient.d.ts +3 -2
  89. package/lib/types/interaction_client/StandardInteractionClient.d.ts.map +1 -1
  90. package/lib/types/packageMetadata.d.ts +1 -1
  91. package/package.json +2 -2
  92. package/src/controllers/StandardController.ts +52 -4
  93. package/src/interaction_client/PopupClient.ts +29 -11
  94. package/src/interaction_client/StandardInteractionClient.ts +14 -8
  95. package/src/packageMetadata.ts +1 -1
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v4.2.1 2025-02-11 */
1
+ /*! @azure/msal-browser v4.3.0 2025-02-18 */
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 v15.1.1 2025-02-11 */
9
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
10
10
  /*
11
11
  * Copyright (c) Microsoft Corporation. All rights reserved.
12
12
  * Licensed under the MIT License.
@@ -310,7 +310,7 @@
310
310
  // Token renewal offset default in seconds
311
311
  const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
312
312
 
313
- /*! @azure/msal-common v15.1.1 2025-02-11 */
313
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
314
314
  /*
315
315
  * Copyright (c) Microsoft Corporation. All rights reserved.
316
316
  * Licensed under the MIT License.
@@ -327,7 +327,7 @@
327
327
  unexpectedError: unexpectedError
328
328
  });
329
329
 
330
- /*! @azure/msal-common v15.1.1 2025-02-11 */
330
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
331
331
 
332
332
  /*
333
333
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -376,7 +376,7 @@
376
376
  : AuthErrorMessages[code]);
377
377
  }
378
378
 
379
- /*! @azure/msal-common v15.1.1 2025-02-11 */
379
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
380
380
  /*
381
381
  * Copyright (c) Microsoft Corporation. All rights reserved.
382
382
  * Licensed under the MIT License.
@@ -474,7 +474,7 @@
474
474
  userTimeoutReached: userTimeoutReached
475
475
  });
476
476
 
477
- /*! @azure/msal-common v15.1.1 2025-02-11 */
477
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
478
478
 
479
479
  /*
480
480
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -726,7 +726,7 @@
726
726
  return new ClientAuthError(errorCode, additionalMessage);
727
727
  }
728
728
 
729
- /*! @azure/msal-common v15.1.1 2025-02-11 */
729
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
730
730
 
731
731
  /*
732
732
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -765,7 +765,7 @@
765
765
  },
766
766
  };
767
767
 
768
- /*! @azure/msal-common v15.1.1 2025-02-11 */
768
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
769
769
 
770
770
  /*
771
771
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -956,12 +956,12 @@
956
956
  }
957
957
  }
958
958
 
959
- /*! @azure/msal-common v15.1.1 2025-02-11 */
959
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
960
960
  /* eslint-disable header/header */
961
961
  const name$1 = "@azure/msal-common";
962
- const version$1 = "15.1.1";
962
+ const version$1 = "15.2.0";
963
963
 
964
- /*! @azure/msal-common v15.1.1 2025-02-11 */
964
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
965
965
  /*
966
966
  * Copyright (c) Microsoft Corporation. All rights reserved.
967
967
  * Licensed under the MIT License.
@@ -981,7 +981,7 @@
981
981
  AzureUsGovernment: "https://login.microsoftonline.us",
982
982
  };
983
983
 
984
- /*! @azure/msal-common v15.1.1 2025-02-11 */
984
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
985
985
 
986
986
  /*
987
987
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1042,7 +1042,7 @@
1042
1042
  }
1043
1043
  }
1044
1044
 
1045
- /*! @azure/msal-common v15.1.1 2025-02-11 */
1045
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
1046
1046
  /*
1047
1047
  * Copyright (c) Microsoft Corporation. All rights reserved.
1048
1048
  * Licensed under the MIT License.
@@ -1079,7 +1079,7 @@
1079
1079
  return cachedAtSec > nowSeconds();
1080
1080
  }
1081
1081
 
1082
- /*! @azure/msal-common v15.1.1 2025-02-11 */
1082
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
1083
1083
 
1084
1084
  /*
1085
1085
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1406,7 +1406,7 @@
1406
1406
  return metadata.expiresAt <= nowSeconds();
1407
1407
  }
1408
1408
 
1409
- /*! @azure/msal-common v15.1.1 2025-02-11 */
1409
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
1410
1410
  /*
1411
1411
  * Copyright (c) Microsoft Corporation. All rights reserved.
1412
1412
  * Licensed under the MIT License.
@@ -1460,7 +1460,7 @@
1460
1460
  urlParseError: urlParseError
1461
1461
  });
1462
1462
 
1463
- /*! @azure/msal-common v15.1.1 2025-02-11 */
1463
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
1464
1464
 
1465
1465
  /*
1466
1466
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1598,7 +1598,7 @@
1598
1598
  return new ClientConfigurationError(errorCode);
1599
1599
  }
1600
1600
 
1601
- /*! @azure/msal-common v15.1.1 2025-02-11 */
1601
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
1602
1602
  /*
1603
1603
  * Copyright (c) Microsoft Corporation. All rights reserved.
1604
1604
  * Licensed under the MIT License.
@@ -1695,7 +1695,7 @@
1695
1695
  }
1696
1696
  }
1697
1697
 
1698
- /*! @azure/msal-common v15.1.1 2025-02-11 */
1698
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
1699
1699
 
1700
1700
  /*
1701
1701
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1886,7 +1886,7 @@
1886
1886
  }
1887
1887
  }
1888
1888
 
1889
- /*! @azure/msal-common v15.1.1 2025-02-11 */
1889
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
1890
1890
 
1891
1891
  /*
1892
1892
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1926,7 +1926,7 @@
1926
1926
  };
1927
1927
  }
1928
1928
 
1929
- /*! @azure/msal-common v15.1.1 2025-02-11 */
1929
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
1930
1930
  /*
1931
1931
  * Copyright (c) Microsoft Corporation. All rights reserved.
1932
1932
  * Licensed under the MIT License.
@@ -2005,7 +2005,7 @@
2005
2005
  return updatedAccountInfo;
2006
2006
  }
2007
2007
 
2008
- /*! @azure/msal-common v15.1.1 2025-02-11 */
2008
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
2009
2009
  /*
2010
2010
  * Copyright (c) Microsoft Corporation. All rights reserved.
2011
2011
  * Licensed under the MIT License.
@@ -2020,7 +2020,7 @@
2020
2020
  Ciam: 3,
2021
2021
  };
2022
2022
 
2023
- /*! @azure/msal-common v15.1.1 2025-02-11 */
2023
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
2024
2024
  /*
2025
2025
  * Copyright (c) Microsoft Corporation. All rights reserved.
2026
2026
  * Licensed under the MIT License.
@@ -2042,7 +2042,7 @@
2042
2042
  return null;
2043
2043
  }
2044
2044
 
2045
- /*! @azure/msal-common v15.1.1 2025-02-11 */
2045
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
2046
2046
  /*
2047
2047
  * Copyright (c) Microsoft Corporation. All rights reserved.
2048
2048
  * Licensed under the MIT License.
@@ -2055,7 +2055,7 @@
2055
2055
  OIDC: "OIDC",
2056
2056
  };
2057
2057
 
2058
- /*! @azure/msal-common v15.1.1 2025-02-11 */
2058
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
2059
2059
 
2060
2060
  /*
2061
2061
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2298,7 +2298,7 @@
2298
2298
  }
2299
2299
  }
2300
2300
 
2301
- /*! @azure/msal-common v15.1.1 2025-02-11 */
2301
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
2302
2302
 
2303
2303
  /*
2304
2304
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2345,7 +2345,7 @@
2345
2345
  return null;
2346
2346
  }
2347
2347
 
2348
- /*! @azure/msal-common v15.1.1 2025-02-11 */
2348
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
2349
2349
 
2350
2350
  /*
2351
2351
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2509,7 +2509,7 @@
2509
2509
  }
2510
2510
  }
2511
2511
 
2512
- /*! @azure/msal-common v15.1.1 2025-02-11 */
2512
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
2513
2513
 
2514
2514
  /*
2515
2515
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2649,7 +2649,7 @@
2649
2649
  return null;
2650
2650
  }
2651
2651
 
2652
- /*! @azure/msal-common v15.1.1 2025-02-11 */
2652
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
2653
2653
  /*
2654
2654
  * Copyright (c) Microsoft Corporation. All rights reserved.
2655
2655
  * Licensed under the MIT License.
@@ -2657,7 +2657,7 @@
2657
2657
  const cacheQuotaExceededErrorCode = "cache_quota_exceeded";
2658
2658
  const cacheUnknownErrorCode = "cache_error_unknown";
2659
2659
 
2660
- /*! @azure/msal-common v15.1.1 2025-02-11 */
2660
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
2661
2661
 
2662
2662
  /*
2663
2663
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2684,7 +2684,7 @@
2684
2684
  }
2685
2685
  }
2686
2686
 
2687
- /*! @azure/msal-common v15.1.1 2025-02-11 */
2687
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
2688
2688
 
2689
2689
  /*
2690
2690
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3869,7 +3869,7 @@
3869
3869
  }
3870
3870
  }
3871
3871
 
3872
- /*! @azure/msal-common v15.1.1 2025-02-11 */
3872
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
3873
3873
 
3874
3874
  /*
3875
3875
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3968,7 +3968,7 @@
3968
3968
  return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
3969
3969
  }
3970
3970
 
3971
- /*! @azure/msal-common v15.1.1 2025-02-11 */
3971
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
3972
3972
  /*
3973
3973
  * Copyright (c) Microsoft Corporation. All rights reserved.
3974
3974
  * Licensed under the MIT License.
@@ -3978,7 +3978,7 @@
3978
3978
  UPN: "UPN",
3979
3979
  };
3980
3980
 
3981
- /*! @azure/msal-common v15.1.1 2025-02-11 */
3981
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
3982
3982
  /*
3983
3983
  * Copyright (c) Microsoft Corporation. All rights reserved.
3984
3984
  * Licensed under the MIT License.
@@ -4028,7 +4028,7 @@
4028
4028
  const BROKER_CLIENT_ID = "brk_client_id";
4029
4029
  const BROKER_REDIRECT_URI = "brk_redirect_uri";
4030
4030
 
4031
- /*! @azure/msal-common v15.1.1 2025-02-11 */
4031
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
4032
4032
 
4033
4033
  /*
4034
4034
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4095,7 +4095,7 @@
4095
4095
  }
4096
4096
  }
4097
4097
 
4098
- /*! @azure/msal-common v15.1.1 2025-02-11 */
4098
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
4099
4099
 
4100
4100
  /*
4101
4101
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4503,7 +4503,7 @@
4503
4503
  }
4504
4504
  }
4505
4505
 
4506
- /*! @azure/msal-common v15.1.1 2025-02-11 */
4506
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
4507
4507
  /*
4508
4508
  * Copyright (c) Microsoft Corporation. All rights reserved.
4509
4509
  * Licensed under the MIT License.
@@ -4515,7 +4515,7 @@
4515
4515
  response.hasOwnProperty("jwks_uri"));
4516
4516
  }
4517
4517
 
4518
- /*! @azure/msal-common v15.1.1 2025-02-11 */
4518
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
4519
4519
  /*
4520
4520
  * Copyright (c) Microsoft Corporation. All rights reserved.
4521
4521
  * Licensed under the MIT License.
@@ -4525,7 +4525,7 @@
4525
4525
  response.hasOwnProperty("metadata"));
4526
4526
  }
4527
4527
 
4528
- /*! @azure/msal-common v15.1.1 2025-02-11 */
4528
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
4529
4529
  /*
4530
4530
  * Copyright (c) Microsoft Corporation. All rights reserved.
4531
4531
  * Licensed under the MIT License.
@@ -4535,7 +4535,7 @@
4535
4535
  response.hasOwnProperty("error_description"));
4536
4536
  }
4537
4537
 
4538
- /*! @azure/msal-common v15.1.1 2025-02-11 */
4538
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
4539
4539
  /*
4540
4540
  * Copyright (c) Microsoft Corporation. All rights reserved.
4541
4541
  * Licensed under the MIT License.
@@ -5044,7 +5044,7 @@
5044
5044
  "encryptedCacheExpiredCount",
5045
5045
  ]);
5046
5046
 
5047
- /*! @azure/msal-common v15.1.1 2025-02-11 */
5047
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
5048
5048
  /*
5049
5049
  * Copyright (c) Microsoft Corporation. All rights reserved.
5050
5050
  * Licensed under the MIT License.
@@ -5140,7 +5140,7 @@
5140
5140
  };
5141
5141
  };
5142
5142
 
5143
- /*! @azure/msal-common v15.1.1 2025-02-11 */
5143
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
5144
5144
 
5145
5145
  /*
5146
5146
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5249,7 +5249,7 @@
5249
5249
  },
5250
5250
  };
5251
5251
 
5252
- /*! @azure/msal-common v15.1.1 2025-02-11 */
5252
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
5253
5253
 
5254
5254
  /*
5255
5255
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6088,7 +6088,7 @@
6088
6088
  };
6089
6089
  }
6090
6090
 
6091
- /*! @azure/msal-common v15.1.1 2025-02-11 */
6091
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
6092
6092
 
6093
6093
  /*
6094
6094
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6119,7 +6119,7 @@
6119
6119
  }
6120
6120
  }
6121
6121
 
6122
- /*! @azure/msal-common v15.1.1 2025-02-11 */
6122
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
6123
6123
 
6124
6124
  /*
6125
6125
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6138,7 +6138,7 @@
6138
6138
  }
6139
6139
  }
6140
6140
 
6141
- /*! @azure/msal-common v15.1.1 2025-02-11 */
6141
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
6142
6142
 
6143
6143
  /*
6144
6144
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6236,7 +6236,7 @@
6236
6236
  }
6237
6237
  }
6238
6238
 
6239
- /*! @azure/msal-common v15.1.1 2025-02-11 */
6239
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
6240
6240
 
6241
6241
  /*
6242
6242
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6266,7 +6266,7 @@
6266
6266
  return new NetworkError(error, httpStatus, responseHeaders);
6267
6267
  }
6268
6268
 
6269
- /*! @azure/msal-common v15.1.1 2025-02-11 */
6269
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
6270
6270
 
6271
6271
  /*
6272
6272
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6416,7 +6416,7 @@
6416
6416
  }
6417
6417
  }
6418
6418
 
6419
- /*! @azure/msal-common v15.1.1 2025-02-11 */
6419
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
6420
6420
  /*
6421
6421
  * Copyright (c) Microsoft Corporation. All rights reserved.
6422
6422
  * Licensed under the MIT License.
@@ -6442,7 +6442,7 @@
6442
6442
  refreshTokenExpired: refreshTokenExpired
6443
6443
  });
6444
6444
 
6445
- /*! @azure/msal-common v15.1.1 2025-02-11 */
6445
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
6446
6446
 
6447
6447
  /*
6448
6448
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6530,7 +6530,7 @@
6530
6530
  return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
6531
6531
  }
6532
6532
 
6533
- /*! @azure/msal-common v15.1.1 2025-02-11 */
6533
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
6534
6534
 
6535
6535
  /*
6536
6536
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6602,7 +6602,7 @@
6602
6602
  }
6603
6603
  }
6604
6604
 
6605
- /*! @azure/msal-common v15.1.1 2025-02-11 */
6605
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
6606
6606
 
6607
6607
  /*
6608
6608
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6686,7 +6686,7 @@
6686
6686
  }
6687
6687
  }
6688
6688
 
6689
- /*! @azure/msal-common v15.1.1 2025-02-11 */
6689
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
6690
6690
  /*
6691
6691
  * Copyright (c) Microsoft Corporation. All rights reserved.
6692
6692
  * Licensed under the MIT License.
@@ -6713,7 +6713,7 @@
6713
6713
  }
6714
6714
  }
6715
6715
 
6716
- /*! @azure/msal-common v15.1.1 2025-02-11 */
6716
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
6717
6717
 
6718
6718
  /*
6719
6719
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7090,7 +7090,7 @@
7090
7090
  return baseAccount;
7091
7091
  }
7092
7092
 
7093
- /*! @azure/msal-common v15.1.1 2025-02-11 */
7093
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
7094
7094
  /*
7095
7095
  * Copyright (c) Microsoft Corporation. All rights reserved.
7096
7096
  * Licensed under the MIT License.
@@ -7108,7 +7108,7 @@
7108
7108
  }
7109
7109
  }
7110
7110
 
7111
- /*! @azure/msal-common v15.1.1 2025-02-11 */
7111
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
7112
7112
 
7113
7113
  /*
7114
7114
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7558,7 +7558,7 @@
7558
7558
  }
7559
7559
  }
7560
7560
 
7561
- /*! @azure/msal-common v15.1.1 2025-02-11 */
7561
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
7562
7562
 
7563
7563
  /*
7564
7564
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7781,7 +7781,7 @@
7781
7781
  }
7782
7782
  }
7783
7783
 
7784
- /*! @azure/msal-common v15.1.1 2025-02-11 */
7784
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
7785
7785
 
7786
7786
  /*
7787
7787
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7879,7 +7879,7 @@
7879
7879
  }
7880
7880
  }
7881
7881
 
7882
- /*! @azure/msal-common v15.1.1 2025-02-11 */
7882
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
7883
7883
 
7884
7884
  /*
7885
7885
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7894,7 +7894,7 @@
7894
7894
  },
7895
7895
  };
7896
7896
 
7897
- /*! @azure/msal-common v15.1.1 2025-02-11 */
7897
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
7898
7898
 
7899
7899
  /*
7900
7900
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7952,7 +7952,7 @@
7952
7952
  }
7953
7953
  }
7954
7954
 
7955
- /*! @azure/msal-common v15.1.1 2025-02-11 */
7955
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
7956
7956
 
7957
7957
  /*
7958
7958
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8215,7 +8215,7 @@
8215
8215
  }
8216
8216
  }
8217
8217
 
8218
- /*! @azure/msal-common v15.1.1 2025-02-11 */
8218
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
8219
8219
  /*
8220
8220
  * Copyright (c) Microsoft Corporation. All rights reserved.
8221
8221
  * Licensed under the MIT License.
@@ -8223,7 +8223,7 @@
8223
8223
  const missingKidError = "missing_kid_error";
8224
8224
  const missingAlgError = "missing_alg_error";
8225
8225
 
8226
- /*! @azure/msal-common v15.1.1 2025-02-11 */
8226
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
8227
8227
 
8228
8228
  /*
8229
8229
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8248,7 +8248,7 @@
8248
8248
  return new JoseHeaderError(code, JoseHeaderErrorMessages[code]);
8249
8249
  }
8250
8250
 
8251
- /*! @azure/msal-common v15.1.1 2025-02-11 */
8251
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
8252
8252
 
8253
8253
  /*
8254
8254
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8288,7 +8288,7 @@
8288
8288
  }
8289
8289
  }
8290
8290
 
8291
- /*! @azure/msal-common v15.1.1 2025-02-11 */
8291
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
8292
8292
 
8293
8293
  /*
8294
8294
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8367,7 +8367,7 @@
8367
8367
  }
8368
8368
  }
8369
8369
 
8370
- /*! @azure/msal-common v15.1.1 2025-02-11 */
8370
+ /*! @azure/msal-common v15.2.0 2025-02-18 */
8371
8371
 
8372
8372
  /*
8373
8373
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -10404,7 +10404,7 @@
10404
10404
 
10405
10405
  /* eslint-disable header/header */
10406
10406
  const name = "@azure/msal-browser";
10407
- const version = "4.2.1";
10407
+ const version = "4.3.0";
10408
10408
 
10409
10409
  /*
10410
10410
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -13220,10 +13220,12 @@
13220
13220
  /**
13221
13221
  * Generates an auth code request tied to the url request.
13222
13222
  * @param request
13223
+ * @param pkceCodes
13223
13224
  */
13224
- async initializeAuthorizationCodeRequest(request) {
13225
+ async initializeAuthorizationCodeRequest(request, pkceCodes) {
13225
13226
  this.performanceClient.addQueueMeasurement(PerformanceEvents.StandardInteractionClientInitializeAuthorizationCodeRequest, this.correlationId);
13226
- const generatedPkceParams = await invokeAsync(generatePkceCodes, PerformanceEvents.GeneratePkceCodes, this.logger, this.performanceClient, this.correlationId)(this.performanceClient, this.logger, this.correlationId);
13227
+ const generatedPkceParams = pkceCodes ||
13228
+ (await invokeAsync(generatePkceCodes, PerformanceEvents.GeneratePkceCodes, this.logger, this.performanceClient, this.correlationId)(this.performanceClient, this.logger, this.correlationId));
13227
13229
  const authCodeRequest = {
13228
13230
  ...request,
13229
13231
  redirectUri: request.redirectUri,
@@ -14588,8 +14590,9 @@
14588
14590
  /**
14589
14591
  * Acquires tokens by opening a popup window to the /authorize endpoint of the authority
14590
14592
  * @param request
14593
+ * @param pkceCodes
14591
14594
  */
14592
- acquireToken(request) {
14595
+ acquireToken(request, pkceCodes) {
14593
14596
  try {
14594
14597
  const popupName = this.generatePopupName(request.scopes || OIDC_DEFAULT_SCOPES, request.authority || this.config.auth.authority);
14595
14598
  const popupParams = {
@@ -14602,13 +14605,13 @@
14602
14605
  if (this.config.system.asyncPopups) {
14603
14606
  this.logger.verbose("asyncPopups set to true, acquiring token");
14604
14607
  // Passes on popup position and dimensions if in request
14605
- return this.acquireTokenPopupAsync(request, popupParams);
14608
+ return this.acquireTokenPopupAsync(request, popupParams, pkceCodes);
14606
14609
  }
14607
14610
  else {
14608
14611
  // asyncPopups flag is set to false. Opens popup before acquiring token.
14609
14612
  this.logger.verbose("asyncPopup set to false, opening popup before acquiring token");
14610
14613
  popupParams.popup = this.openSizedPopup("about:blank", popupParams);
14611
- return this.acquireTokenPopupAsync(request, popupParams);
14614
+ return this.acquireTokenPopupAsync(request, popupParams, pkceCodes);
14612
14615
  }
14613
14616
  }
14614
14617
  catch (e) {
@@ -14650,21 +14653,26 @@
14650
14653
  }
14651
14654
  /**
14652
14655
  * Helper which obtains an access_token for your API via opening a popup window in the user's browser
14653
- * @param validRequest
14654
- * @param popupName
14655
- * @param popup
14656
- * @param popupWindowAttributes
14656
+ * @param request
14657
+ * @param popupParams
14658
+ * @param pkceCodes
14657
14659
  *
14658
14660
  * @returns A promise that is fulfilled when this function has completed, or rejected if an error was raised.
14659
14661
  */
14660
- async acquireTokenPopupAsync(request, popupParams) {
14662
+ async acquireTokenPopupAsync(request, popupParams, pkceCodes) {
14661
14663
  this.logger.verbose("acquireTokenPopupAsync called");
14662
14664
  const serverTelemetryManager = this.initializeServerTelemetryManager(ApiId.acquireTokenPopup);
14663
14665
  const validRequest = await invokeAsync(this.initializeAuthorizationRequest.bind(this), PerformanceEvents.StandardInteractionClientInitializeAuthorizationRequest, this.logger, this.performanceClient, this.correlationId)(request, exports.InteractionType.Popup);
14664
- preconnect(validRequest.authority);
14666
+ /*
14667
+ * Skip pre-connect for async popups to reduce time between user interaction and popup window creation to avoid
14668
+ * popup from being blocked by browsers with shorter popup timers
14669
+ */
14670
+ if (popupParams.popup) {
14671
+ preconnect(validRequest.authority);
14672
+ }
14665
14673
  try {
14666
14674
  // Create auth code request and generate PKCE params
14667
- const authCodeRequest = await invokeAsync(this.initializeAuthorizationCodeRequest.bind(this), PerformanceEvents.StandardInteractionClientInitializeAuthorizationCodeRequest, this.logger, this.performanceClient, this.correlationId)(validRequest);
14675
+ const authCodeRequest = await invokeAsync(this.initializeAuthorizationCodeRequest.bind(this), PerformanceEvents.StandardInteractionClientInitializeAuthorizationCodeRequest, this.logger, this.performanceClient, this.correlationId)(validRequest, pkceCodes);
14668
14676
  // Initialize the client
14669
14677
  const authClient = await invokeAsync(this.createAuthCodeClient.bind(this), PerformanceEvents.StandardInteractionClientCreateAuthCodeClient, this.logger, this.performanceClient, this.correlationId)({
14670
14678
  serverTelemetryManager,
@@ -16219,6 +16227,8 @@
16219
16227
  this.logger.verbose("Claims-based caching is disabled. Clearing the previous cache with claims");
16220
16228
  await invokeAsync(this.browserStorage.clearTokensAndKeysWithClaims.bind(this.browserStorage), PerformanceEvents.ClearTokensAndKeysWithClaims, this.logger, this.performanceClient, initCorrelationId)(this.performanceClient, initCorrelationId);
16221
16229
  }
16230
+ this.config.system.asyncPopups &&
16231
+ (await this.preGeneratePkceCodes(initCorrelationId));
16222
16232
  this.initialized = true;
16223
16233
  this.eventHandler.emitEvent(EventType.INITIALIZE_END);
16224
16234
  initMeasurement.end({
@@ -16469,6 +16479,7 @@
16469
16479
  this.eventHandler.emitEvent(EventType.LOGIN_START, exports.InteractionType.Popup, request);
16470
16480
  }
16471
16481
  let result;
16482
+ const pkce = this.getPreGeneratedPkceCodes(correlationId);
16472
16483
  if (this.canUsePlatformBroker(request)) {
16473
16484
  result = this.acquireTokenNative({
16474
16485
  ...request,
@@ -16488,12 +16499,12 @@
16488
16499
  isFatalNativeAuthError(e)) {
16489
16500
  this.nativeExtensionProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt
16490
16501
  const popupClient = this.createPopupClient(correlationId);
16491
- return popupClient.acquireToken(request);
16502
+ return popupClient.acquireToken(request, pkce);
16492
16503
  }
16493
16504
  else if (e instanceof InteractionRequiredAuthError) {
16494
16505
  this.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow");
16495
16506
  const popupClient = this.createPopupClient(correlationId);
16496
- return popupClient.acquireToken(request);
16507
+ return popupClient.acquireToken(request, pkce);
16497
16508
  }
16498
16509
  this.browserStorage.setInteractionInProgress(false);
16499
16510
  throw e;
@@ -16501,7 +16512,7 @@
16501
16512
  }
16502
16513
  else {
16503
16514
  const popupClient = this.createPopupClient(correlationId);
16504
- result = popupClient.acquireToken(request);
16515
+ result = popupClient.acquireToken(request, pkce);
16505
16516
  }
16506
16517
  return result
16507
16518
  .then((result) => {
@@ -16535,7 +16546,9 @@
16535
16546
  }, e);
16536
16547
  // Since this function is syncronous we need to reject
16537
16548
  return Promise.reject(e);
16538
- });
16549
+ })
16550
+ .finally(() => this.config.system.asyncPopups &&
16551
+ this.preGeneratePkceCodes(correlationId));
16539
16552
  }
16540
16553
  trackPageVisibilityWithMeasurement() {
16541
16554
  const measurement = this.ssoSilentMeasurement ||
@@ -17400,6 +17413,27 @@
17400
17413
  });
17401
17414
  }
17402
17415
  }
17416
+ /**
17417
+ * Pre-generates PKCE codes and stores it in local variable
17418
+ * @param correlationId
17419
+ */
17420
+ async preGeneratePkceCodes(correlationId) {
17421
+ this.logger.verbose("Generating new PKCE codes");
17422
+ this.pkceCode = await invokeAsync(generatePkceCodes, PerformanceEvents.GeneratePkceCodes, this.logger, this.performanceClient, correlationId)(this.performanceClient, this.logger, correlationId);
17423
+ return Promise.resolve();
17424
+ }
17425
+ /**
17426
+ * Provides pre-generated PKCE codes, if any
17427
+ * @param correlationId
17428
+ */
17429
+ getPreGeneratedPkceCodes(correlationId) {
17430
+ this.logger.verbose("Attempting to pick up pre-generated PKCE codes");
17431
+ const res = this.pkceCode ? { ...this.pkceCode } : undefined;
17432
+ this.pkceCode = undefined;
17433
+ this.logger.verbose(`${res ? "Found" : "Did not find"} pre-generated PKCE codes`);
17434
+ this.performanceClient.addFields({ usePreGeneratedPkce: !!res }, correlationId);
17435
+ return res;
17436
+ }
17403
17437
  }
17404
17438
  /**
17405
17439
  * Determines whether an error thrown by the refresh token endpoint can be resolved without interaction