@azure/msal-browser 3.7.2-alpha.3 → 3.9.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 (84) 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/AsyncMemoryStorage.mjs +1 -1
  7. package/dist/cache/BrowserCacheManager.mjs +1 -1
  8. package/dist/cache/BrowserStorage.mjs +1 -1
  9. package/dist/cache/CryptoKeyStore.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 +32 -14
  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 +3 -1
  40. package/dist/interaction_client/NativeInteractionClient.d.ts.map +1 -1
  41. package/dist/interaction_client/NativeInteractionClient.mjs +7 -2
  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.d.ts +4 -2
  45. package/dist/interaction_client/RedirectClient.d.ts.map +1 -1
  46. package/dist/interaction_client/RedirectClient.mjs +8 -3
  47. package/dist/interaction_client/RedirectClient.mjs.map +1 -1
  48. package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
  49. package/dist/interaction_client/SilentCacheClient.mjs +1 -1
  50. package/dist/interaction_client/SilentIframeClient.mjs +1 -1
  51. package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
  52. package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
  53. package/dist/interaction_handler/InteractionHandler.mjs +1 -1
  54. package/dist/interaction_handler/RedirectHandler.mjs +1 -1
  55. package/dist/interaction_handler/SilentHandler.mjs +1 -1
  56. package/dist/naa/BridgeError.mjs +1 -1
  57. package/dist/naa/BridgeProxy.mjs +1 -1
  58. package/dist/naa/BridgeStatusCode.mjs +1 -1
  59. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
  60. package/dist/navigation/NavigationClient.mjs +1 -1
  61. package/dist/network/FetchClient.mjs +1 -1
  62. package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
  63. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  64. package/dist/operatingcontext/TeamsAppOperatingContext.mjs +1 -1
  65. package/dist/operatingcontext/UnknownOperatingContext.mjs +1 -1
  66. package/dist/packageMetadata.d.ts +1 -1
  67. package/dist/packageMetadata.d.ts.map +1 -1
  68. package/dist/packageMetadata.mjs +2 -2
  69. package/dist/response/ResponseHandler.mjs +1 -1
  70. package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  71. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  72. package/dist/utils/BrowserConstants.mjs +1 -1
  73. package/dist/utils/BrowserProtocolUtils.mjs +1 -1
  74. package/dist/utils/BrowserUtils.mjs +1 -1
  75. package/lib/msal-browser.cjs +113 -79
  76. package/lib/msal-browser.cjs.map +1 -1
  77. package/lib/msal-browser.js +113 -79
  78. package/lib/msal-browser.js.map +1 -1
  79. package/lib/msal-browser.min.js +62 -62
  80. package/package.json +2 -2
  81. package/src/controllers/StandardController.ts +61 -22
  82. package/src/interaction_client/NativeInteractionClient.ts +12 -1
  83. package/src/interaction_client/RedirectClient.ts +12 -2
  84. package/src/packageMetadata.ts +1 -1
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v3.7.2-alpha.3 2024-02-02 */
1
+ /*! @azure/msal-browser v3.9.0 2024-02-07 */
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.6.2-alpha.3 2024-02-02 */
9
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
10
10
  /*
11
11
  * Copyright (c) Microsoft Corporation. All rights reserved.
12
12
  * Licensed under the MIT License.
@@ -301,7 +301,7 @@
301
301
  Pop: "pop",
302
302
  };
303
303
 
304
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
304
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
305
305
  /*
306
306
  * Copyright (c) Microsoft Corporation. All rights reserved.
307
307
  * Licensed under the MIT License.
@@ -318,7 +318,7 @@
318
318
  unexpectedError: unexpectedError
319
319
  });
320
320
 
321
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
321
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
322
322
 
323
323
  /*
324
324
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -367,7 +367,7 @@
367
367
  : AuthErrorMessages[code]);
368
368
  }
369
369
 
370
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
370
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
371
371
  /*
372
372
  * Copyright (c) Microsoft Corporation. All rights reserved.
373
373
  * Licensed under the MIT License.
@@ -465,7 +465,7 @@
465
465
  userTimeoutReached: userTimeoutReached
466
466
  });
467
467
 
468
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
468
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
469
469
 
470
470
  /*
471
471
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -717,7 +717,7 @@
717
717
  return new ClientAuthError(errorCode, additionalMessage);
718
718
  }
719
719
 
720
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
720
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
721
721
 
722
722
  /*
723
723
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -750,7 +750,7 @@
750
750
  },
751
751
  };
752
752
 
753
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
753
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
754
754
 
755
755
  /*
756
756
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -941,12 +941,12 @@
941
941
  }
942
942
  }
943
943
 
944
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
944
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
945
945
  /* eslint-disable header/header */
946
946
  const name$1 = "@azure/msal-common";
947
- const version$1 = "14.6.2-alpha.3";
947
+ const version$1 = "14.7.0";
948
948
 
949
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
949
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
950
950
  /*
951
951
  * Copyright (c) Microsoft Corporation. All rights reserved.
952
952
  * Licensed under the MIT License.
@@ -966,7 +966,7 @@
966
966
  AzureUsGovernment: "https://login.microsoftonline.us",
967
967
  };
968
968
 
969
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
969
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
970
970
 
971
971
  /*
972
972
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1027,7 +1027,7 @@
1027
1027
  }
1028
1028
  }
1029
1029
 
1030
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
1030
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
1031
1031
  /*
1032
1032
  * Copyright (c) Microsoft Corporation. All rights reserved.
1033
1033
  * Licensed under the MIT License.
@@ -1064,7 +1064,7 @@
1064
1064
  return cachedAtSec > nowSeconds();
1065
1065
  }
1066
1066
 
1067
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
1067
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
1068
1068
 
1069
1069
  /*
1070
1070
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1391,7 +1391,7 @@
1391
1391
  return metadata.expiresAt <= nowSeconds();
1392
1392
  }
1393
1393
 
1394
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
1394
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
1395
1395
  /*
1396
1396
  * Copyright (c) Microsoft Corporation. All rights reserved.
1397
1397
  * Licensed under the MIT License.
@@ -1445,7 +1445,7 @@
1445
1445
  urlParseError: urlParseError
1446
1446
  });
1447
1447
 
1448
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
1448
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
1449
1449
 
1450
1450
  /*
1451
1451
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1583,7 +1583,7 @@
1583
1583
  return new ClientConfigurationError(errorCode);
1584
1584
  }
1585
1585
 
1586
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
1586
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
1587
1587
  /*
1588
1588
  * Copyright (c) Microsoft Corporation. All rights reserved.
1589
1589
  * Licensed under the MIT License.
@@ -1680,7 +1680,7 @@
1680
1680
  }
1681
1681
  }
1682
1682
 
1683
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
1683
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
1684
1684
 
1685
1685
  /*
1686
1686
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1880,7 +1880,7 @@
1880
1880
  }
1881
1881
  }
1882
1882
 
1883
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
1883
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
1884
1884
 
1885
1885
  /*
1886
1886
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1920,7 +1920,7 @@
1920
1920
  };
1921
1921
  }
1922
1922
 
1923
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
1923
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
1924
1924
  /*
1925
1925
  * Copyright (c) Microsoft Corporation. All rights reserved.
1926
1926
  * Licensed under the MIT License.
@@ -1981,7 +1981,7 @@
1981
1981
  return updatedAccountInfo;
1982
1982
  }
1983
1983
 
1984
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
1984
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
1985
1985
  /*
1986
1986
  * Copyright (c) Microsoft Corporation. All rights reserved.
1987
1987
  * Licensed under the MIT License.
@@ -1996,7 +1996,7 @@
1996
1996
  Ciam: 3,
1997
1997
  };
1998
1998
 
1999
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
1999
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
2000
2000
  /*
2001
2001
  * Copyright (c) Microsoft Corporation. All rights reserved.
2002
2002
  * Licensed under the MIT License.
@@ -2018,7 +2018,7 @@
2018
2018
  return null;
2019
2019
  }
2020
2020
 
2021
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
2021
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
2022
2022
  /*
2023
2023
  * Copyright (c) Microsoft Corporation. All rights reserved.
2024
2024
  * Licensed under the MIT License.
@@ -2031,7 +2031,7 @@
2031
2031
  OIDC: "OIDC",
2032
2032
  };
2033
2033
 
2034
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
2034
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
2035
2035
 
2036
2036
  /*
2037
2037
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2278,7 +2278,7 @@
2278
2278
  }
2279
2279
  }
2280
2280
 
2281
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
2281
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
2282
2282
 
2283
2283
  /*
2284
2284
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2325,7 +2325,7 @@
2325
2325
  return null;
2326
2326
  }
2327
2327
 
2328
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
2328
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
2329
2329
 
2330
2330
  /*
2331
2331
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2489,7 +2489,7 @@
2489
2489
  }
2490
2490
  }
2491
2491
 
2492
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
2492
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
2493
2493
 
2494
2494
  /*
2495
2495
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2629,7 +2629,7 @@
2629
2629
  return null;
2630
2630
  }
2631
2631
 
2632
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
2632
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
2633
2633
 
2634
2634
  /*
2635
2635
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3869,7 +3869,7 @@
3869
3869
  }
3870
3870
  }
3871
3871
 
3872
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
3872
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
3873
3873
 
3874
3874
  /*
3875
3875
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3969,7 +3969,7 @@
3969
3969
  return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
3970
3970
  }
3971
3971
 
3972
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
3972
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
3973
3973
 
3974
3974
  /*
3975
3975
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3986,7 +3986,7 @@
3986
3986
  }
3987
3987
  }
3988
3988
 
3989
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
3989
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
3990
3990
 
3991
3991
  /*
3992
3992
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4084,7 +4084,7 @@
4084
4084
  }
4085
4085
  }
4086
4086
 
4087
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
4087
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
4088
4088
 
4089
4089
  /*
4090
4090
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4121,7 +4121,7 @@
4121
4121
  }
4122
4122
  }
4123
4123
 
4124
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
4124
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
4125
4125
  /*
4126
4126
  * Copyright (c) Microsoft Corporation. All rights reserved.
4127
4127
  * Licensed under the MIT License.
@@ -4131,7 +4131,7 @@
4131
4131
  UPN: "UPN",
4132
4132
  };
4133
4133
 
4134
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
4134
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
4135
4135
  /*
4136
4136
  * Copyright (c) Microsoft Corporation. All rights reserved.
4137
4137
  * Licensed under the MIT License.
@@ -4178,7 +4178,7 @@
4178
4178
  const LOGIN_HINT = "login_hint";
4179
4179
  const DOMAIN_HINT = "domain_hint";
4180
4180
 
4181
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
4181
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
4182
4182
 
4183
4183
  /*
4184
4184
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4262,7 +4262,7 @@
4262
4262
  }
4263
4263
  }
4264
4264
 
4265
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
4265
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
4266
4266
 
4267
4267
  /*
4268
4268
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4646,7 +4646,7 @@
4646
4646
  }
4647
4647
  }
4648
4648
 
4649
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
4649
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
4650
4650
  /*
4651
4651
  * Copyright (c) Microsoft Corporation. All rights reserved.
4652
4652
  * Licensed under the MIT License.
@@ -4658,7 +4658,7 @@
4658
4658
  response.hasOwnProperty("jwks_uri"));
4659
4659
  }
4660
4660
 
4661
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
4661
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
4662
4662
  /*
4663
4663
  * Copyright (c) Microsoft Corporation. All rights reserved.
4664
4664
  * Licensed under the MIT License.
@@ -4668,7 +4668,7 @@
4668
4668
  response.hasOwnProperty("metadata"));
4669
4669
  }
4670
4670
 
4671
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
4671
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
4672
4672
  /*
4673
4673
  * Copyright (c) Microsoft Corporation. All rights reserved.
4674
4674
  * Licensed under the MIT License.
@@ -4678,7 +4678,7 @@
4678
4678
  response.hasOwnProperty("error_description"));
4679
4679
  }
4680
4680
 
4681
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
4681
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
4682
4682
  /*
4683
4683
  * Copyright (c) Microsoft Corporation. All rights reserved.
4684
4684
  * Licensed under the MIT License.
@@ -4715,6 +4715,11 @@
4715
4715
  * Used to acquire a new access token interactively through pop ups
4716
4716
  */
4717
4717
  AcquireTokenPopup: "acquireTokenPopup",
4718
+ /**
4719
+ * acquireTokenRedirect (msal-browser).
4720
+ * Used to acquire a new access token interactively through redirects
4721
+ */
4722
+ AcquireTokenRedirect: "acquireTokenRedirect",
4718
4723
  /**
4719
4724
  * getPublicKeyThumbprint API in CryptoOpts class (msal-browser).
4720
4725
  * Used to generate a public/private keypair and generate a public key thumbprint for pop requests.
@@ -4887,7 +4892,8 @@
4887
4892
  AcquireTokenByCodeAsync: "acquireTokenByCodeAsync",
4888
4893
  GetEndpointMetadataFromNetwork: "getEndpointMetadataFromNetwork",
4889
4894
  GetCloudDiscoveryMetadataFromNetworkMeasurement: "getCloudDiscoveryMetadataFromNetworkMeasurement",
4890
- HandleRedirectPromiseMeasurement: "handleRedirectPromiseMeasurement",
4895
+ HandleRedirectPromiseMeasurement: "handleRedirectPromise",
4896
+ HandleNativeRedirectPromiseMeasurement: "handleNativeRedirectPromise",
4891
4897
  UpdateCloudDiscoveryMetadataMeasurement: "updateCloudDiscoveryMetadataMeasurement",
4892
4898
  UsernamePasswordClientAcquireToken: "usernamePasswordClientAcquireToken",
4893
4899
  NativeMessageHandlerHandshake: "nativeMessageHandlerHandshake",
@@ -4933,7 +4939,7 @@
4933
4939
  "multiMatchedRT",
4934
4940
  ]);
4935
4941
 
4936
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
4942
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
4937
4943
  /*
4938
4944
  * Copyright (c) Microsoft Corporation. All rights reserved.
4939
4945
  * Licensed under the MIT License.
@@ -5029,7 +5035,7 @@
5029
5035
  };
5030
5036
  };
5031
5037
 
5032
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
5038
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
5033
5039
 
5034
5040
  /*
5035
5041
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5138,7 +5144,7 @@
5138
5144
  },
5139
5145
  };
5140
5146
 
5141
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
5147
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
5142
5148
 
5143
5149
  /*
5144
5150
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5971,7 +5977,7 @@
5971
5977
  };
5972
5978
  }
5973
5979
 
5974
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
5980
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
5975
5981
 
5976
5982
  /*
5977
5983
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6002,7 +6008,7 @@
6002
6008
  }
6003
6009
  }
6004
6010
 
6005
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
6011
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
6006
6012
 
6007
6013
  /*
6008
6014
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6105,7 +6111,7 @@
6105
6111
  }
6106
6112
  }
6107
6113
 
6108
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
6114
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
6109
6115
  /*
6110
6116
  * Copyright (c) Microsoft Corporation. All rights reserved.
6111
6117
  * Licensed under the MIT License.
@@ -6131,7 +6137,7 @@
6131
6137
  refreshTokenExpired: refreshTokenExpired
6132
6138
  });
6133
6139
 
6134
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
6140
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
6135
6141
 
6136
6142
  /*
6137
6143
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6218,7 +6224,7 @@
6218
6224
  return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
6219
6225
  }
6220
6226
 
6221
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
6227
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
6222
6228
  /*
6223
6229
  * Copyright (c) Microsoft Corporation. All rights reserved.
6224
6230
  * Licensed under the MIT License.
@@ -6234,7 +6240,7 @@
6234
6240
  }
6235
6241
  }
6236
6242
 
6237
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
6243
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
6238
6244
 
6239
6245
  /*
6240
6246
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6306,7 +6312,7 @@
6306
6312
  }
6307
6313
  }
6308
6314
 
6309
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
6315
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
6310
6316
 
6311
6317
  /*
6312
6318
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6391,7 +6397,7 @@
6391
6397
  }
6392
6398
  }
6393
6399
 
6394
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
6400
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
6395
6401
  /*
6396
6402
  * Copyright (c) Microsoft Corporation. All rights reserved.
6397
6403
  * Licensed under the MIT License.
@@ -6418,7 +6424,7 @@
6418
6424
  }
6419
6425
  }
6420
6426
 
6421
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
6427
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
6422
6428
 
6423
6429
  /*
6424
6430
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6771,7 +6777,7 @@
6771
6777
  return baseAccount;
6772
6778
  }
6773
6779
 
6774
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
6780
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
6775
6781
 
6776
6782
  /*
6777
6783
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7176,7 +7182,7 @@
7176
7182
  }
7177
7183
  }
7178
7184
 
7179
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
7185
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
7180
7186
 
7181
7187
  /*
7182
7188
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7383,7 +7389,7 @@
7383
7389
  }
7384
7390
  }
7385
7391
 
7386
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
7392
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
7387
7393
 
7388
7394
  /*
7389
7395
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7514,7 +7520,7 @@
7514
7520
  }
7515
7521
  }
7516
7522
 
7517
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
7523
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
7518
7524
 
7519
7525
  /*
7520
7526
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7529,7 +7535,7 @@
7529
7535
  },
7530
7536
  };
7531
7537
 
7532
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
7538
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
7533
7539
  /*
7534
7540
  * Copyright (c) Microsoft Corporation. All rights reserved.
7535
7541
  * Licensed under the MIT License.
@@ -7537,7 +7543,7 @@
7537
7543
  const missingKidError = "missing_kid_error";
7538
7544
  const missingAlgError = "missing_alg_error";
7539
7545
 
7540
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
7546
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
7541
7547
 
7542
7548
  /*
7543
7549
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7562,7 +7568,7 @@
7562
7568
  return new JoseHeaderError(code, JoseHeaderErrorMessages[code]);
7563
7569
  }
7564
7570
 
7565
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
7571
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
7566
7572
 
7567
7573
  /*
7568
7574
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7602,7 +7608,7 @@
7602
7608
  }
7603
7609
  }
7604
7610
 
7605
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
7611
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
7606
7612
 
7607
7613
  /*
7608
7614
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7660,7 +7666,7 @@
7660
7666
  }
7661
7667
  }
7662
7668
 
7663
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
7669
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
7664
7670
 
7665
7671
  /*
7666
7672
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7864,7 +7870,7 @@
7864
7870
  }
7865
7871
  }
7866
7872
 
7867
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
7873
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
7868
7874
 
7869
7875
  /*
7870
7876
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7943,7 +7949,7 @@
7943
7949
  }
7944
7950
  }
7945
7951
 
7946
- /*! @azure/msal-common v14.6.2-alpha.3 2024-02-02 */
7952
+ /*! @azure/msal-common v14.7.0 2024-02-07 */
7947
7953
 
7948
7954
  /*
7949
7955
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -9343,7 +9349,7 @@
9343
9349
 
9344
9350
  /* eslint-disable header/header */
9345
9351
  const name = "@azure/msal-browser";
9346
- const version = "3.7.2-alpha.3";
9352
+ const version = "3.9.0";
9347
9353
 
9348
9354
  /*
9349
9355
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -12788,8 +12794,10 @@
12788
12794
  }
12789
12795
  /**
12790
12796
  * If the previous page called native platform for a token using redirect APIs, send the same request again and return the response
12797
+ * @param performanceClient {IPerformanceClient?}
12798
+ * @param correlationId {string?} correlation identifier
12791
12799
  */
12792
- async handleRedirectPromise() {
12800
+ async handleRedirectPromise(performanceClient, correlationId) {
12793
12801
  this.logger.trace("NativeInteractionClient - handleRedirectPromise called.");
12794
12802
  if (!this.browserStorage.isInteractionInProgress(true)) {
12795
12803
  this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null.");
@@ -12799,6 +12807,9 @@
12799
12807
  const cachedRequest = this.browserStorage.getCachedNativeRequest();
12800
12808
  if (!cachedRequest) {
12801
12809
  this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null.");
12810
+ if (performanceClient && correlationId) {
12811
+ performanceClient?.addFields({ errorCode: "no_cached_request" }, correlationId);
12812
+ }
12802
12813
  return null;
12803
12814
  }
12804
12815
  const { prompt, ...request } = cachedRequest;
@@ -14195,9 +14206,11 @@
14195
14206
  * Checks if navigateToLoginRequestUrl is set, and:
14196
14207
  * - if true, performs logic to cache and navigate
14197
14208
  * - if false, handles hash string and parses response
14198
- * @param hash
14209
+ * @param hash {string?} url hash
14210
+ * @param performanceClient {IPerformanceClient?}
14211
+ * @param correlationId {string?} correlation identifier
14199
14212
  */
14200
- async handleRedirectPromise(hash) {
14213
+ async handleRedirectPromise(hash, performanceClient, correlationId) {
14201
14214
  const serverTelemetryManager = this.initializeServerTelemetryManager(ApiId.handleRedirectPromise);
14202
14215
  try {
14203
14216
  if (!this.browserStorage.isInteractionInProgress(true)) {
@@ -14209,6 +14222,9 @@
14209
14222
  // Not a recognized server response hash or hash not associated with a redirect request
14210
14223
  this.logger.info("handleRedirectPromise did not detect a response as a result of a redirect. Cleaning temporary cache.");
14211
14224
  this.browserStorage.cleanRequestByInteractionType(exports.InteractionType.Redirect);
14225
+ if (performanceClient && correlationId) {
14226
+ performanceClient?.addFields({ errorCode: "no_server_response" }, correlationId);
14227
+ }
14212
14228
  return null;
14213
14229
  }
14214
14230
  // If navigateToLoginRequestUrl is true, get the url where the redirect request was initiated
@@ -15155,24 +15171,27 @@
15155
15171
  const redirectResponseKey = hash || "";
15156
15172
  let response = this.redirectResponse.get(redirectResponseKey);
15157
15173
  if (typeof response === "undefined") {
15158
- this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_START, exports.InteractionType.Redirect);
15159
- this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise");
15160
15174
  const request = this.browserStorage.getCachedNativeRequest();
15161
- let redirectResponse;
15162
- if (request &&
15175
+ const useNative = request &&
15163
15176
  NativeMessageHandler.isNativeAvailable(this.config, this.logger, this.nativeExtensionProvider) &&
15164
15177
  this.nativeExtensionProvider &&
15165
- !hash) {
15178
+ !hash;
15179
+ const correlationId = useNative
15180
+ ? request?.correlationId
15181
+ : this.browserStorage.getTemporaryCache(TemporaryCacheKeys.CORRELATION_ID, true) || "";
15182
+ const rootMeasurement = this.performanceClient.startMeasurement("acquireTokenRedirect", correlationId);
15183
+ this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_START, exports.InteractionType.Redirect);
15184
+ this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise");
15185
+ let redirectResponse;
15186
+ if (useNative && this.nativeExtensionProvider) {
15166
15187
  this.logger.trace("handleRedirectPromise - acquiring token from native platform");
15167
15188
  const nativeClient = new NativeInteractionClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, ApiId.handleRedirectPromise, this.performanceClient, this.nativeExtensionProvider, request.accountId, this.nativeInternalStorage, request.correlationId);
15168
- redirectResponse = nativeClient.handleRedirectPromise();
15189
+ redirectResponse = invokeAsync(nativeClient.handleRedirectPromise.bind(nativeClient), PerformanceEvents.HandleNativeRedirectPromiseMeasurement, this.logger, this.performanceClient, rootMeasurement.event.correlationId)(this.performanceClient, rootMeasurement.event.correlationId);
15169
15190
  }
15170
15191
  else {
15171
15192
  this.logger.trace("handleRedirectPromise - acquiring token from web flow");
15172
- const correlationId = this.browserStorage.getTemporaryCache(TemporaryCacheKeys.CORRELATION_ID, true) || Constants.EMPTY_STRING;
15173
15193
  const redirectClient = this.createRedirectClient(correlationId);
15174
- redirectResponse =
15175
- redirectClient.handleRedirectPromise(hash);
15194
+ redirectResponse = invokeAsync(redirectClient.handleRedirectPromise.bind(redirectClient), PerformanceEvents.HandleRedirectPromiseMeasurement, this.logger, this.performanceClient, rootMeasurement.event.correlationId)(hash, this.performanceClient, rootMeasurement.event.correlationId);
15176
15195
  }
15177
15196
  response = redirectResponse
15178
15197
  .then((result) => {
@@ -15188,19 +15207,34 @@
15188
15207
  this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Redirect, result);
15189
15208
  this.logger.verbose("handleRedirectResponse returned result, acquire token success");
15190
15209
  }
15210
+ rootMeasurement.end({ success: true });
15191
15211
  }
15192
15212
  this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_END, exports.InteractionType.Redirect);
15213
+ rootMeasurement.end({ success: false });
15193
15214
  return result;
15194
15215
  })
15195
15216
  .catch((e) => {
15217
+ const eventError = e;
15196
15218
  // Emit login event if there is an account
15197
15219
  if (loggedInAccounts.length > 0) {
15198
- this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Redirect, null, e);
15220
+ this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Redirect, null, eventError);
15199
15221
  }
15200
15222
  else {
15201
- this.eventHandler.emitEvent(EventType.LOGIN_FAILURE, exports.InteractionType.Redirect, null, e);
15223
+ this.eventHandler.emitEvent(EventType.LOGIN_FAILURE, exports.InteractionType.Redirect, null, eventError);
15202
15224
  }
15203
15225
  this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_END, exports.InteractionType.Redirect);
15226
+ if (eventError instanceof AuthError) {
15227
+ rootMeasurement.end({
15228
+ success: false,
15229
+ errorCode: eventError.errorCode,
15230
+ subErrorCode: eventError.subError,
15231
+ });
15232
+ }
15233
+ else {
15234
+ rootMeasurement.end({
15235
+ success: false,
15236
+ });
15237
+ }
15204
15238
  throw e;
15205
15239
  });
15206
15240
  this.redirectResponse.set(redirectResponseKey, response);