@azure/msal-node 5.6.0 → 6.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/dist/cache/CacheHelpers.mjs +1 -1
  2. package/dist/cache/NodeStorage.mjs +3 -3
  3. package/dist/cache/NodeStorage.mjs.map +1 -1
  4. package/dist/cache/TokenCache.mjs +1 -1
  5. package/dist/cache/distributed/DistributedCachePlugin.mjs +1 -1
  6. package/dist/cache/serializer/Deserializer.mjs +1 -1
  7. package/dist/cache/serializer/Serializer.mjs +1 -1
  8. package/dist/client/BaseClient.mjs +1 -1
  9. package/dist/client/ClientApplication.mjs +9 -8
  10. package/dist/client/ClientApplication.mjs.map +1 -1
  11. package/dist/client/ClientAssertion.mjs +1 -1
  12. package/dist/client/ClientCredentialClient.mjs +1 -1
  13. package/dist/client/ConfidentialClientApplication.mjs +1 -1
  14. package/dist/client/DeviceCodeClient.mjs +1 -1
  15. package/dist/client/ManagedIdentityApplication.mjs +1 -1
  16. package/dist/client/ManagedIdentityClient.mjs +1 -1
  17. package/dist/client/ManagedIdentitySources/AppService.mjs +1 -1
  18. package/dist/client/ManagedIdentitySources/AzureArc.mjs +1 -1
  19. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs +1 -1
  20. package/dist/client/ManagedIdentitySources/CloudShell.mjs +1 -1
  21. package/dist/client/ManagedIdentitySources/Imds.mjs +1 -1
  22. package/dist/client/ManagedIdentitySources/MachineLearning.mjs +1 -1
  23. package/dist/client/ManagedIdentitySources/ServiceFabric.mjs +1 -1
  24. package/dist/client/OnBehalfOfClient.mjs +1 -1
  25. package/dist/client/PublicClientApplication.mjs +5 -8
  26. package/dist/client/PublicClientApplication.mjs.map +1 -1
  27. package/dist/client/UserFederatedIdentityCredentialClient.mjs +1 -1
  28. package/dist/client/UsernamePasswordClient.mjs +1 -1
  29. package/dist/config/Configuration.mjs +1 -1
  30. package/dist/config/ManagedIdentityId.mjs +1 -1
  31. package/dist/config/ManagedIdentityRequestParameters.mjs +1 -1
  32. package/dist/crypto/CryptoProvider.mjs +1 -1
  33. package/dist/crypto/GuidGenerator.mjs +1 -1
  34. package/dist/crypto/HashUtils.mjs +1 -1
  35. package/dist/crypto/PkceGenerator.mjs +1 -1
  36. package/dist/error/ClientAuthErrorCodes.mjs +1 -1
  37. package/dist/error/ManagedIdentityError.mjs +1 -1
  38. package/dist/error/ManagedIdentityErrorCodes.mjs +1 -1
  39. package/dist/error/NodeAuthError.mjs +1 -1
  40. package/dist/index.mjs +1 -1
  41. package/dist/index.mjs.map +1 -1
  42. package/dist/internals.mjs +1 -1
  43. package/dist/network/HttpClient.mjs +1 -1
  44. package/dist/network/HttpClientWithRetries.mjs +1 -1
  45. package/dist/network/LoopbackClient.mjs +1 -1
  46. package/dist/network/LoopbackClient.mjs.map +1 -1
  47. package/dist/packageMetadata.mjs +2 -2
  48. package/dist/protocol/Authorize.mjs +1 -1
  49. package/dist/retry/DefaultManagedIdentityRetryPolicy.mjs +1 -1
  50. package/dist/retry/ExponentialRetryStrategy.mjs +1 -1
  51. package/dist/retry/ImdsRetryPolicy.mjs +1 -1
  52. package/dist/retry/LinearRetryStrategy.mjs +1 -1
  53. package/dist/utils/Constants.mjs +1 -1
  54. package/dist/utils/EncodingUtils.mjs +1 -1
  55. package/dist/utils/TimeUtils.mjs +1 -1
  56. package/lib/msal-node.cjs +374 -129
  57. package/lib/msal-node.cjs.map +1 -1
  58. package/package.json +4 -8
  59. package/src/cache/NodeStorage.ts +3 -1
  60. package/src/client/ClientApplication.ts +9 -7
  61. package/src/client/PublicClientApplication.ts +4 -14
  62. package/src/index.ts +0 -1
  63. package/src/network/LoopbackClient.ts +1 -2
  64. package/src/packageMetadata.ts +1 -1
  65. package/src/request/AuthorizationCodeRequest.ts +1 -1
  66. package/src/request/InteractiveRequest.ts +1 -7
  67. package/types/cache/NodeStorage.d.ts.map +1 -1
  68. package/types/client/ClientApplication.d.ts.map +1 -1
  69. package/types/client/PublicClientApplication.d.ts +1 -1
  70. package/types/client/PublicClientApplication.d.ts.map +1 -1
  71. package/types/index.d.ts +0 -1
  72. package/types/index.d.ts.map +1 -1
  73. package/types/network/LoopbackClient.d.ts +1 -2
  74. package/types/network/LoopbackClient.d.ts.map +1 -1
  75. package/types/packageMetadata.d.ts +1 -1
  76. package/types/request/AuthorizationCodeRequest.d.ts +1 -1
  77. package/types/request/InteractiveRequest.d.ts +1 -7
  78. package/types/request/InteractiveRequest.d.ts.map +1 -1
  79. package/src/network/ILoopbackClient.ts +0 -19
  80. package/types/network/ILoopbackClient.d.ts +0 -11
  81. package/types/network/ILoopbackClient.d.ts.map +0 -1
package/lib/msal-node.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v5.6.0 2026-08-18 */
1
+ /*! @azure/msal-node v6.0.1 2026-09-15 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
@@ -151,7 +151,7 @@ class Serializer {
151
151
  }
152
152
  }
153
153
 
154
- /*! @azure/msal-common v16.13.0 2026-08-18 */
154
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
155
155
  /*
156
156
  * Copyright (c) Microsoft Corporation. All rights reserved.
157
157
  * Licensed under the MIT License.
@@ -209,7 +209,7 @@ const USER_ID = "user_id";
209
209
  const FMI_PATH = "fmi_path";
210
210
  const ATTRIBUTE_TOKENS = "attribute_tokens";
211
211
 
212
- /*! @azure/msal-common v16.13.0 2026-08-18 */
212
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
213
213
  /*
214
214
  * Copyright (c) Microsoft Corporation. All rights reserved.
215
215
  * Licensed under the MIT License.
@@ -221,7 +221,6 @@ const DEFAULT_AUTHORITY_HOST = "login.microsoftonline.com";
221
221
  const DEFAULT_COMMON_TENANT = "common";
222
222
  // ADFS String
223
223
  const ADFS = "adfs";
224
- const DSTS = "dstsv2";
225
224
  // Default AAD Instance Discovery Endpoint
226
225
  const AAD_INSTANCE_DISCOVERY_ENDPT = `${DEFAULT_AUTHORITY}discovery/instance?api-version=1.1&authorization_endpoint=`;
227
226
  // CIAM URL
@@ -278,6 +277,7 @@ const OIDC_SCOPES = [...OIDC_DEFAULT_SCOPES, EMAIL_SCOPE];
278
277
  const HeaderNames = {
279
278
  CONTENT_TYPE: "Content-Type",
280
279
  CONTENT_LENGTH: "Content-Length",
280
+ DPOP: "DPoP",
281
281
  RETRY_AFTER: "Retry-After",
282
282
  CCS_HEADER: "X-AnchorMailbox",
283
283
  WWWAuthenticate: "WWW-Authenticate",
@@ -302,6 +302,7 @@ const ClaimsRequestKeys = {
302
302
  ID_TOKEN: "id_token",
303
303
  SIGNIN_STATE: "signin_state",
304
304
  LOGIN_HINT: "login_hint",
305
+ TENANT_REGION_SUB_SCOPE: "tenant_region_sub_scope",
305
306
  };
306
307
  /**
307
308
  * we considered making this "enum" in the request instead of string, however it looks like the allowed list of
@@ -398,6 +399,7 @@ const SERVER_TELEM_UNKNOWN_ERROR = "unknown_error";
398
399
  const AuthenticationScheme = {
399
400
  BEARER: "Bearer",
400
401
  POP: "pop",
402
+ DPOP: "DPoP",
401
403
  SSH: "ssh-cert",
402
404
  };
403
405
  /**
@@ -466,7 +468,7 @@ const EncodingTypes = {
466
468
  UTF8: "utf-8",
467
469
  };
468
470
 
469
- /*! @azure/msal-common v16.13.0 2026-08-18 */
471
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
470
472
  /*
471
473
  * Copyright (c) Microsoft Corporation. All rights reserved.
472
474
  * Licensed under the MIT License.
@@ -495,7 +497,7 @@ function createAuthError(code, correlationId, additionalMessage) {
495
497
  return new AuthError(code, correlationId, additionalMessage || getDefaultErrorMessage(code));
496
498
  }
497
499
 
498
- /*! @azure/msal-common v16.13.0 2026-08-18 */
500
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
499
501
 
500
502
  /*
501
503
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -518,7 +520,7 @@ function createClientAuthError(errorCode, correlationId, additionalMessage) {
518
520
  return new ClientAuthError(errorCode, correlationId, additionalMessage);
519
521
  }
520
522
 
521
- /*! @azure/msal-common v16.13.0 2026-08-18 */
523
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
522
524
  /*
523
525
  * Copyright (c) Microsoft Corporation. All rights reserved.
524
526
  * Licensed under the MIT License.
@@ -547,6 +549,7 @@ const invalidCacheEnvironment = "invalid_cache_environment";
547
549
  const noAccountFound = "no_account_found";
548
550
  const noCryptoObject = "no_crypto_object";
549
551
  const unexpectedCredentialType = "unexpected_credential_type";
552
+ const dpopTokenTypeMismatch = "dpop_token_type_mismatch";
550
553
  const tokenRefreshRequired = "token_refresh_required";
551
554
  const tokenClaimsCnfRequiredForSignedJwt = "token_claims_cnf_required_for_signedjwt";
552
555
  const authorizationCodeMissingFromServerResponse = "authorization_code_missing_from_server_response";
@@ -569,6 +572,7 @@ var ClientAuthErrorCodes = /*#__PURE__*/Object.freeze({
569
572
  cannotRemoveEmptyScope: cannotRemoveEmptyScope,
570
573
  clientInfoDecodingError: clientInfoDecodingError,
571
574
  clientInfoEmptyError: clientInfoEmptyError,
575
+ dpopTokenTypeMismatch: dpopTokenTypeMismatch,
572
576
  emptyInputScopeSet: emptyInputScopeSet,
573
577
  endSessionEndpointNotSupported: endSessionEndpointNotSupported,
574
578
  endpointResolutionError: endpointResolutionError,
@@ -602,7 +606,7 @@ var ClientAuthErrorCodes = /*#__PURE__*/Object.freeze({
602
606
  userCanceled: userCanceled
603
607
  });
604
608
 
605
- /*! @azure/msal-common v16.13.0 2026-08-18 */
609
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
606
610
 
607
611
  /*
608
612
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -640,7 +644,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
640
644
  };
641
645
  }
642
646
 
643
- /*! @azure/msal-common v16.13.0 2026-08-18 */
647
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
644
648
 
645
649
  /*
646
650
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -706,7 +710,7 @@ function getJWSPayload(authToken, correlationId) {
706
710
  return matches[2];
707
711
  }
708
712
 
709
- /*! @azure/msal-common v16.13.0 2026-08-18 */
713
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
710
714
 
711
715
  /*
712
716
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -794,7 +798,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
794
798
  return updatedAccountInfo;
795
799
  }
796
800
 
797
- /*! @azure/msal-common v16.13.0 2026-08-18 */
801
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
798
802
  /*
799
803
  * Copyright (c) Microsoft Corporation. All rights reserved.
800
804
  * Licensed under the MIT License.
@@ -805,11 +809,10 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
805
809
  const AuthorityType = {
806
810
  Default: 0,
807
811
  Adfs: 1,
808
- Dsts: 2,
809
812
  Ciam: 3,
810
813
  };
811
814
 
812
- /*! @azure/msal-common v16.13.0 2026-08-18 */
815
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
813
816
  /*
814
817
  * Copyright (c) Microsoft Corporation. All rights reserved.
815
818
  * Licensed under the MIT License.
@@ -831,7 +834,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
831
834
  return null;
832
835
  }
833
836
 
834
- /*! @azure/msal-common v16.13.0 2026-08-18 */
837
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
835
838
  /*
836
839
  * Copyright (c) Microsoft Corporation. All rights reserved.
837
840
  * Licensed under the MIT License.
@@ -855,7 +858,7 @@ const ProtocolMode = {
855
858
  EAR: "EAR",
856
859
  };
857
860
 
858
- /*! @azure/msal-common v16.13.0 2026-08-18 */
861
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
859
862
  /**
860
863
  * Returns the AccountInfo interface for this account.
861
864
  * @internal
@@ -970,8 +973,8 @@ function createAccountEntity(accountDetails, authority, correlationId, base64Dec
970
973
  * @param authType
971
974
  */
972
975
  function generateHomeAccountId(serverClientInfo, authType, logger, cryptoObj, correlationId, idTokenClaims) {
973
- // since ADFS/DSTS do not have tid and does not set client_info
974
- if (!(authType === AuthorityType.Adfs || authType === AuthorityType.Dsts)) {
976
+ // ADFS does not have tid and does not set client_info
977
+ if (authType !== AuthorityType.Adfs) {
975
978
  // for cases where there is clientInfo
976
979
  if (serverClientInfo) {
977
980
  try {
@@ -1004,7 +1007,7 @@ function isAccountEntity(entity) {
1004
1007
  entity.hasOwnProperty("authorityType"));
1005
1008
  }
1006
1009
 
1007
- /*! @azure/msal-common v16.13.0 2026-08-18 */
1010
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
1008
1011
  /*
1009
1012
  * Copyright (c) Microsoft Corporation. All rights reserved.
1010
1013
  * Licensed under the MIT License.
@@ -1021,7 +1024,7 @@ var AuthErrorCodes = /*#__PURE__*/Object.freeze({
1021
1024
  unexpectedError: unexpectedError
1022
1025
  });
1023
1026
 
1024
- /*! @azure/msal-common v16.13.0 2026-08-18 */
1027
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
1025
1028
 
1026
1029
  /*
1027
1030
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1041,7 +1044,7 @@ function createClientConfigurationError(errorCode, correlationId) {
1041
1044
  return new ClientConfigurationError(errorCode, correlationId);
1042
1045
  }
1043
1046
 
1044
- /*! @azure/msal-common v16.13.0 2026-08-18 */
1047
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
1045
1048
  /*
1046
1049
  * Copyright (c) Microsoft Corporation. All rights reserved.
1047
1050
  * Licensed under the MIT License.
@@ -1073,7 +1076,9 @@ const invalidPlatformBrokerConfiguration = "invalid_platform_broker_configuratio
1073
1076
  const issuerValidationFailed = "issuer_validation_failed";
1074
1077
  const invalidResponseMode = "invalid_response_mode";
1075
1078
  const invalidDpopHtm = "invalid_dpop_htm";
1076
- const invalidDpopHtu = "invalid_dpop_htu";
1079
+ const invalidDpopHtu = "invalid_dpop_htu";
1080
+ const invalidDpopNonce = "invalid_dpop_nonce";
1081
+ const dpopMissingResourceContext = "dpop_missing_resource_context";
1077
1082
 
1078
1083
  var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
1079
1084
  __proto__: null,
@@ -1082,6 +1087,7 @@ var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
1082
1087
  cannotAllowPlatformBroker: cannotAllowPlatformBroker,
1083
1088
  cannotSetOIDCOptions: cannotSetOIDCOptions,
1084
1089
  claimsRequestParsingError: claimsRequestParsingError,
1090
+ dpopMissingResourceContext: dpopMissingResourceContext,
1085
1091
  emptyInputScopesError: emptyInputScopesError,
1086
1092
  invalidAuthenticationHeader: invalidAuthenticationHeader,
1087
1093
  invalidAuthorityMetadata: invalidAuthorityMetadata,
@@ -1090,6 +1096,7 @@ var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
1090
1096
  invalidCodeChallengeMethod: invalidCodeChallengeMethod,
1091
1097
  invalidDpopHtm: invalidDpopHtm,
1092
1098
  invalidDpopHtu: invalidDpopHtu,
1099
+ invalidDpopNonce: invalidDpopNonce,
1093
1100
  invalidPlatformBrokerConfiguration: invalidPlatformBrokerConfiguration,
1094
1101
  invalidRequestMethodForEAR: invalidRequestMethodForEAR,
1095
1102
  invalidResponseMode: invalidResponseMode,
@@ -1107,7 +1114,7 @@ var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
1107
1114
  urlParseError: urlParseError
1108
1115
  });
1109
1116
 
1110
- /*! @azure/msal-common v16.13.0 2026-08-18 */
1117
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
1111
1118
  /*
1112
1119
  * Copyright (c) Microsoft Corporation. All rights reserved.
1113
1120
  * Licensed under the MIT License.
@@ -1119,7 +1126,7 @@ function isOpenIdConfigResponse(response) {
1119
1126
  response.hasOwnProperty("jwks_uri"));
1120
1127
  }
1121
1128
 
1122
- /*! @azure/msal-common v16.13.0 2026-08-18 */
1129
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
1123
1130
  /*
1124
1131
  * Copyright (c) Microsoft Corporation. All rights reserved.
1125
1132
  * Licensed under the MIT License.
@@ -1199,7 +1206,7 @@ class StringUtils {
1199
1206
  }
1200
1207
  }
1201
1208
 
1202
- /*! @azure/msal-common v16.13.0 2026-08-18 */
1209
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
1203
1210
 
1204
1211
  /*
1205
1212
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1357,7 +1364,7 @@ class UrlString {
1357
1364
  }
1358
1365
  }
1359
1366
 
1360
- /*! @azure/msal-common v16.13.0 2026-08-18 */
1367
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
1361
1368
 
1362
1369
  /*
1363
1370
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1440,15 +1447,6 @@ const rawMetdataJSON = {
1440
1447
  preferred_cache: "login.sovcloud-identity.sg",
1441
1448
  aliases: ["login.sovcloud-identity.sg"],
1442
1449
  },
1443
- {
1444
- preferred_network: "login.windows-ppe.net",
1445
- preferred_cache: "login.windows-ppe.net",
1446
- aliases: [
1447
- "login.windows-ppe.net",
1448
- "sts.windows-ppe.net",
1449
- "login.microsoft-ppe.com",
1450
- ],
1451
- },
1452
1450
  ],
1453
1451
  },
1454
1452
  };
@@ -1520,7 +1518,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
1520
1518
  return null;
1521
1519
  }
1522
1520
 
1523
- /*! @azure/msal-common v16.13.0 2026-08-18 */
1521
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
1524
1522
  /*
1525
1523
  * Copyright (c) Microsoft Corporation. All rights reserved.
1526
1524
  * Licensed under the MIT License.
@@ -1530,8 +1528,6 @@ const AzureCloudInstance = {
1530
1528
  None: "none",
1531
1529
  // Microsoft Azure public cloud
1532
1530
  AzurePublic: "https://login.microsoftonline.com",
1533
- // Microsoft PPE
1534
- AzurePpe: "https://login.windows-ppe.net",
1535
1531
  // Microsoft Chinese national/regional cloud
1536
1532
  AzureChina: "https://login.chinacloudapi.cn",
1537
1533
  // Microsoft German national/regional cloud ("Black Forest")
@@ -1540,7 +1536,7 @@ const AzureCloudInstance = {
1540
1536
  AzureUsGovernment: "https://login.microsoftonline.us",
1541
1537
  };
1542
1538
 
1543
- /*! @azure/msal-common v16.13.0 2026-08-18 */
1539
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
1544
1540
  /*
1545
1541
  * Copyright (c) Microsoft Corporation. All rights reserved.
1546
1542
  * Licensed under the MIT License.
@@ -1550,7 +1546,7 @@ function isCloudInstanceDiscoveryResponse(response) {
1550
1546
  response.hasOwnProperty("metadata"));
1551
1547
  }
1552
1548
 
1553
- /*! @azure/msal-common v16.13.0 2026-08-18 */
1549
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
1554
1550
  /*
1555
1551
  * Copyright (c) Microsoft Corporation. All rights reserved.
1556
1552
  * Licensed under the MIT License.
@@ -1560,7 +1556,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
1560
1556
  response.hasOwnProperty("error_description"));
1561
1557
  }
1562
1558
 
1563
- /*! @azure/msal-common v16.13.0 2026-08-18 */
1559
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
1564
1560
  /*
1565
1561
  * Copyright (c) Microsoft Corporation. All rights reserved.
1566
1562
  * Licensed under the MIT License.
@@ -1622,7 +1618,7 @@ const RegionDiscoveryGetCurrentVersion = "regionDiscoveryGetCurrentVersion";
1622
1618
  */
1623
1619
  const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken";
1624
1620
 
1625
- /*! @azure/msal-common v16.13.0 2026-08-18 */
1621
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
1626
1622
  /*
1627
1623
  * Copyright (c) Microsoft Corporation. All rights reserved.
1628
1624
  * Licensed under the MIT License.
@@ -1715,7 +1711,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
1715
1711
  };
1716
1712
  };
1717
1713
 
1718
- /*! @azure/msal-common v16.13.0 2026-08-18 */
1714
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
1719
1715
 
1720
1716
  /*
1721
1717
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1826,7 +1822,7 @@ RegionDiscovery.IMDS_OPTIONS = {
1826
1822
  },
1827
1823
  };
1828
1824
 
1829
- /*! @azure/msal-common v16.13.0 2026-08-18 */
1825
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
1830
1826
  /*
1831
1827
  * Copyright (c) Microsoft Corporation. All rights reserved.
1832
1828
  * Licensed under the MIT License.
@@ -1881,7 +1877,7 @@ function delay(t, value) {
1881
1877
  return new Promise((resolve) => setTimeout(() => resolve(value), t));
1882
1878
  }
1883
1879
 
1884
- /*! @azure/msal-common v16.13.0 2026-08-18 */
1880
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
1885
1881
 
1886
1882
  /*
1887
1883
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2168,7 +2164,7 @@ function serializeAttributeTokens(attributeTokens) {
2168
2164
  return [...attributeTokens].sort().join(" ");
2169
2165
  }
2170
2166
 
2171
- /*! @azure/msal-common v16.13.0 2026-08-18 */
2167
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
2172
2168
 
2173
2169
  /*
2174
2170
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2212,8 +2208,6 @@ class Authority {
2212
2208
  switch (pathSegments[0].toLowerCase()) {
2213
2209
  case ADFS:
2214
2210
  return AuthorityType.Adfs;
2215
- case DSTS:
2216
- return AuthorityType.Dsts;
2217
2211
  }
2218
2212
  }
2219
2213
  return AuthorityType.Default;
@@ -3138,7 +3132,7 @@ function buildStaticAuthorityOptions(authOptions) {
3138
3132
  };
3139
3133
  }
3140
3134
 
3141
- /*! @azure/msal-common v16.13.0 2026-08-18 */
3135
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
3142
3136
 
3143
3137
  /*
3144
3138
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3172,7 +3166,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
3172
3166
  }
3173
3167
  }
3174
3168
 
3175
- /*! @azure/msal-common v16.13.0 2026-08-18 */
3169
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
3176
3170
 
3177
3171
  /*
3178
3172
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3368,7 +3362,7 @@ class ScopeSet {
3368
3362
  }
3369
3363
  }
3370
3364
 
3371
- /*! @azure/msal-common v16.13.0 2026-08-18 */
3365
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
3372
3366
 
3373
3367
  /*
3374
3368
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3677,11 +3671,15 @@ function addExtraParameters(parameters, extraParams) {
3677
3671
  }
3678
3672
  /**
3679
3673
  * Default optional idToken claims requested on all auth requests.
3680
- * signin_state enables KMSI detection; login_hint enables login hint propagation.
3674
+ * signin_state enables KMSI detection; login_hint enables login hint propagation;
3675
+ * tenant_region_sub_scope identifies the sovereign enclave a tenant belongs to.
3681
3676
  */
3682
3677
  const DEFAULT_ID_TOKEN_CLAIMS = {
3683
3678
  [ClaimsRequestKeys.SIGNIN_STATE]: { essential: false },
3684
3679
  [ClaimsRequestKeys.LOGIN_HINT]: { essential: false },
3680
+ [ClaimsRequestKeys.TENANT_REGION_SUB_SCOPE]: {
3681
+ essential: false,
3682
+ },
3685
3683
  };
3686
3684
  /**
3687
3685
  * Parses a claims JSON string into an object, throwing a ClientConfigurationError
@@ -3740,8 +3738,8 @@ function deepMergeClaims(baseClaims, claimsToMerge) {
3740
3738
  /**
3741
3739
  * Parses claims JSON, optionally deep-merges a second client-originated claims string
3742
3740
  * (`claimsToMerge`, e.g. `claimsFromClient`) with precedence on conflicting keys, merges
3743
- * default optional idToken claims (signin_state, login_hint), and appends client
3744
- * capabilities (xms_cc) to the access_token section.
3741
+ * default optional idToken claims (signin_state, login_hint, tenant_region_sub_scope), and appends client
3742
+ * capabilities (xms_cc) to the access_token section
3745
3743
  * Does not overwrite idToken claims already specified by the caller.
3746
3744
  * @param claims - Existing claims JSON string from the request (may be undefined)
3747
3745
  * @param clientCapabilities - Client capabilities array from configuration
@@ -3868,7 +3866,7 @@ function addAttributeTokens(parameters, attributeTokens) {
3868
3866
  }
3869
3867
  }
3870
3868
 
3871
- /*! @azure/msal-common v16.13.0 2026-08-18 */
3869
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
3872
3870
 
3873
3871
  /*
3874
3872
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3926,7 +3924,7 @@ function mapToQueryString(parameters) {
3926
3924
  return queryParameterArray.join("&");
3927
3925
  }
3928
3926
 
3929
- /*! @azure/msal-common v16.13.0 2026-08-18 */
3927
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
3930
3928
 
3931
3929
  /*
3932
3930
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3937,6 +3935,7 @@ function mapToQueryString(parameters) {
3937
3935
  * @internal
3938
3936
  */
3939
3937
  const JsonWebTokenAlgorithms = {
3938
+ ES256: "ES256",
3940
3939
  RS256: "RS256",
3941
3940
  };
3942
3941
  /**
@@ -3973,7 +3972,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
3973
3972
  },
3974
3973
  };
3975
3974
 
3976
- /*! @azure/msal-common v16.13.0 2026-08-18 */
3975
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
3977
3976
 
3978
3977
  /*
3979
3978
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3996,7 +3995,7 @@ const DEFAULT_TOKEN_BINDING_KEY_MANAGER = {
3996
3995
  },
3997
3996
  };
3998
3997
 
3999
- /*! @azure/msal-common v16.13.0 2026-08-18 */
3998
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
4000
3999
  /*
4001
4000
  * Copyright (c) Microsoft Corporation. All rights reserved.
4002
4001
  * Licensed under the MIT License.
@@ -4271,12 +4270,12 @@ class Logger {
4271
4270
  }
4272
4271
  }
4273
4272
 
4274
- /*! @azure/msal-common v16.13.0 2026-08-18 */
4273
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
4275
4274
  /* eslint-disable header/header */
4276
4275
  const name$1 = "@azure/msal-common";
4277
- const version$1 = "16.13.0";
4276
+ const version$1 = "16.14.1";
4278
4277
 
4279
- /*! @azure/msal-common v16.13.0 2026-08-18 */
4278
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
4280
4279
  /*
4281
4280
  * Copyright (c) Microsoft Corporation. All rights reserved.
4282
4281
  * Licensed under the MIT License.
@@ -4284,7 +4283,7 @@ const version$1 = "16.13.0";
4284
4283
  const cacheQuotaExceeded = "cache_quota_exceeded";
4285
4284
  const cacheErrorUnknown = "cache_error_unknown";
4286
4285
 
4287
- /*! @azure/msal-common v16.13.0 2026-08-18 */
4286
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
4288
4287
 
4289
4288
  /*
4290
4289
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4322,7 +4321,7 @@ function createCacheError(e) {
4322
4321
  }
4323
4322
  }
4324
4323
 
4325
- /*! @azure/msal-common v16.13.0 2026-08-18 */
4324
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
4326
4325
 
4327
4326
  /*
4328
4327
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4333,9 +4332,10 @@ function createCacheError(e) {
4333
4332
  * @internal
4334
4333
  */
4335
4334
  class CacheManager {
4336
- constructor(clientId, cryptoImpl, logger, performanceClient, staticAuthorityOptions) {
4335
+ constructor(clientId, cryptoImpl, logger, performanceClient, staticAuthorityOptions, tokenBindingKeyManager) {
4337
4336
  this.clientId = clientId;
4338
4337
  this.cryptoImpl = cryptoImpl;
4338
+ this.tokenBindingKeyManager = tokenBindingKeyManager;
4339
4339
  this.commonLogger = logger.clone(name$1, version$1);
4340
4340
  this.staticAuthorityOptions = staticAuthorityOptions;
4341
4341
  this.performanceClient = performanceClient;
@@ -4824,19 +4824,24 @@ class CacheManager {
4824
4824
  }
4825
4825
  this.removeItem(key, correlationId);
4826
4826
  this.performanceClient.incrementFields({ accessTokensRemoved: 1 }, correlationId);
4827
- // Remove Token Binding Key from key store for PoP Tokens Credentials
4827
+ // Remove Token Binding Key from key store for token-bound access token credentials
4828
4828
  if (credential.credentialType.toLowerCase() ===
4829
4829
  CredentialType.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase()) {
4830
- if (credential.tokenType === AuthenticationScheme.POP) {
4831
- const accessTokenWithAuthSchemeEntity = credential;
4832
- const kid = accessTokenWithAuthSchemeEntity.keyId;
4833
- if (kid) {
4834
- void this.cryptoImpl
4835
- .removeTokenBindingKey(kid, correlationId)
4836
- .catch(() => {
4837
- this.commonLogger.error(`Failed to remove token binding key '${kid}'`, correlationId);
4838
- this.performanceClient?.incrementFields({ removeTokenBindingKeyFailure: 1 }, correlationId);
4839
- });
4830
+ const tokenType = credential.tokenType?.toLowerCase();
4831
+ switch (tokenType) {
4832
+ case AuthenticationScheme.POP:
4833
+ case AuthenticationScheme.DPOP.toLowerCase(): {
4834
+ const accessTokenWithAuthSchemeEntity = credential;
4835
+ const kid = accessTokenWithAuthSchemeEntity.keyId;
4836
+ if (kid) {
4837
+ void this.tokenBindingKeyManager
4838
+ .removeTokenBindingKey(kid, correlationId)
4839
+ .catch(() => {
4840
+ this.commonLogger.error("Failed to remove token binding key", correlationId);
4841
+ this.performanceClient?.incrementFields({ removeTokenBindingKeyFailure: 1 }, correlationId);
4842
+ });
4843
+ }
4844
+ break;
4840
4845
  }
4841
4846
  }
4842
4847
  }
@@ -5376,16 +5381,15 @@ class CacheManager {
5376
5381
  }
5377
5382
  switch (normalizedFilterTokenType) {
5378
5383
  case "dpop":
5379
- return this.matchKeyBoundAccessToken(entity, filter, true);
5380
5384
  case AuthenticationScheme.SSH:
5381
- return this.matchKeyBoundAccessToken(entity, filter, false);
5385
+ return this.matchKeyBoundAccessToken(entity, filter);
5382
5386
  default:
5383
5387
  return true;
5384
5388
  }
5385
5389
  }
5386
- matchKeyBoundAccessToken(entity, filter, requireKeyId) {
5390
+ matchKeyBoundAccessToken(entity, filter) {
5387
5391
  if (!filter.keyId) {
5388
- return !requireKeyId;
5392
+ return true;
5389
5393
  }
5390
5394
  return this.matchKeyId(entity, filter.keyId);
5391
5395
  }
@@ -5504,7 +5508,7 @@ class DefaultStorageClass extends CacheManager {
5504
5508
  }
5505
5509
  }
5506
5510
 
5507
- /*! @azure/msal-common v16.13.0 2026-08-18 */
5511
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
5508
5512
  /*
5509
5513
  * Copyright (c) Microsoft Corporation. All rights reserved.
5510
5514
  * Licensed under the MIT License.
@@ -5518,7 +5522,7 @@ class DefaultStorageClass extends CacheManager {
5518
5522
  const PerformanceEventStatus = {
5519
5523
  InProgress: 1};
5520
5524
 
5521
- /*! @azure/msal-common v16.13.0 2026-08-18 */
5525
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
5522
5526
 
5523
5527
  /*
5524
5528
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5576,7 +5580,7 @@ class StubPerformanceClient {
5576
5580
  }
5577
5581
  }
5578
5582
 
5579
- /*! @azure/msal-common v16.13.0 2026-08-18 */
5583
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
5580
5584
 
5581
5585
  /*
5582
5586
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5635,15 +5639,16 @@ function buildClientConfiguration({ authOptions: userAuthOptions, systemOptions:
5635
5639
  ...DEFAULT_LOGGER_IMPLEMENTATION,
5636
5640
  ...userLoggerOption,
5637
5641
  };
5642
+ const resolvedTokenBindingKeyManager = tokenBindingKeyManager || DEFAULT_TOKEN_BINDING_KEY_MANAGER;
5638
5643
  return {
5639
5644
  authOptions: buildAuthOptions(userAuthOptions),
5640
5645
  systemOptions: { ...DEFAULT_SYSTEM_OPTIONS$1, ...userSystemOptions },
5641
5646
  loggerOptions: loggerOptions,
5642
5647
  storageInterface: storageImplementation ||
5643
- new DefaultStorageClass(userAuthOptions.clientId, DEFAULT_CRYPTO_IMPLEMENTATION, new Logger(loggerOptions, name$1, version$1), new StubPerformanceClient()),
5648
+ new DefaultStorageClass(userAuthOptions.clientId, DEFAULT_CRYPTO_IMPLEMENTATION, new Logger(loggerOptions, name$1, version$1), new StubPerformanceClient(), undefined, resolvedTokenBindingKeyManager),
5644
5649
  networkInterface: networkImplementation || DEFAULT_NETWORK_IMPLEMENTATION,
5645
5650
  cryptoInterface: cryptoImplementation || DEFAULT_CRYPTO_IMPLEMENTATION,
5646
- tokenBindingKeyManager: tokenBindingKeyManager || DEFAULT_TOKEN_BINDING_KEY_MANAGER,
5651
+ tokenBindingKeyManager: resolvedTokenBindingKeyManager,
5647
5652
  clientCredentials: clientCredentials || DEFAULT_CLIENT_CREDENTIALS,
5648
5653
  libraryInfo: { ...DEFAULT_LIBRARY_INFO, ...libraryInfo },
5649
5654
  telemetry: { ...DEFAULT_TELEMETRY_OPTIONS$1, ...telemetry },
@@ -5673,7 +5678,7 @@ function isOidcProtocolMode(config) {
5673
5678
  return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
5674
5679
  }
5675
5680
 
5676
- /*! @azure/msal-common v16.13.0 2026-08-18 */
5681
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
5677
5682
  /*
5678
5683
  * Copyright (c) Microsoft Corporation. All rights reserved.
5679
5684
  * Licensed under the MIT License.
@@ -5700,7 +5705,7 @@ function isOidcProtocolMode(config) {
5700
5705
  }
5701
5706
  }
5702
5707
 
5703
- /*! @azure/msal-common v16.13.0 2026-08-18 */
5708
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
5704
5709
 
5705
5710
  /*
5706
5711
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5721,7 +5726,7 @@ function createJoseHeaderError(code, correlationId) {
5721
5726
  return new JoseHeaderError(code, correlationId);
5722
5727
  }
5723
5728
 
5724
- /*! @azure/msal-common v16.13.0 2026-08-18 */
5729
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
5725
5730
  /*
5726
5731
  * Copyright (c) Microsoft Corporation. All rights reserved.
5727
5732
  * Licensed under the MIT License.
@@ -5746,7 +5751,7 @@ function isPlainObject(value) {
5746
5751
  return Object.getPrototypeOf(value) === proto;
5747
5752
  }
5748
5753
 
5749
- /*! @azure/msal-common v16.13.0 2026-08-18 */
5754
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
5750
5755
  /*
5751
5756
  * Copyright (c) Microsoft Corporation. All rights reserved.
5752
5757
  * Licensed under the MIT License.
@@ -5756,7 +5761,7 @@ const missingAlgError = "missing_alg_error";
5756
5761
  const missingJwkError = "missing_jwk_error";
5757
5762
  const invalidJwkError = "invalid_jwk_error";
5758
5763
 
5759
- /*! @azure/msal-common v16.13.0 2026-08-18 */
5764
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
5760
5765
 
5761
5766
  /*
5762
5767
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5822,7 +5827,7 @@ class JoseHeader {
5822
5827
  }
5823
5828
  }
5824
5829
 
5825
- /*! @azure/msal-common v16.13.0 2026-08-18 */
5830
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
5826
5831
 
5827
5832
  /*
5828
5833
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5923,7 +5928,152 @@ class PopTokenGenerator {
5923
5928
  }
5924
5929
  }
5925
5930
 
5926
- /*! @azure/msal-common v16.13.0 2026-08-18 */
5931
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
5932
+
5933
+ /*
5934
+ * Copyright (c) Microsoft Corporation. All rights reserved.
5935
+ * Licensed under the MIT License.
5936
+ */
5937
+ const DPOP_HTM_REGEX = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
5938
+ const DPOP_TOKEN_BINDING_KEY_TYPE = "dpop";
5939
+ const DPOP_JWT_HEADER_ALGORITHM = JsonWebTokenAlgorithms.ES256;
5940
+ function buildProofHeader(publicJwk, correlationId) {
5941
+ return JoseHeader.getDpopHeader({
5942
+ alg: DPOP_JWT_HEADER_ALGORITHM,
5943
+ jwk: publicJwk,
5944
+ }, correlationId);
5945
+ }
5946
+ function normalizeHtm(htm, correlationId) {
5947
+ if (typeof htm !== "string" || !DPOP_HTM_REGEX.test(htm)) {
5948
+ throw createClientConfigurationError(invalidDpopHtm, correlationId);
5949
+ }
5950
+ return htm.toUpperCase();
5951
+ }
5952
+ /**
5953
+ * Normalizes a URL for use as the DPoP htu claim.
5954
+ * Per RFC 9449 §4.2, htu is the target URI without query and fragment components.
5955
+ * WHATWG URL serialization handles RFC 3986 syntax- and scheme-based normalization
5956
+ * such as lowercasing scheme/host and eliding default ports.
5957
+ */
5958
+ function normalizeHtu(url, correlationId) {
5959
+ let parsedUrl;
5960
+ try {
5961
+ parsedUrl = new URL(url);
5962
+ }
5963
+ catch {
5964
+ throw createClientConfigurationError(urlParseError, correlationId);
5965
+ }
5966
+ if (!/^https:\/\//i.test(url) ||
5967
+ parsedUrl.protocol !== "https:" ||
5968
+ parsedUrl.username ||
5969
+ parsedUrl.password) {
5970
+ throw createClientConfigurationError(invalidDpopHtu, correlationId);
5971
+ }
5972
+ parsedUrl.search = "";
5973
+ parsedUrl.hash = "";
5974
+ return parsedUrl.href;
5975
+ }
5976
+ function validateDpopNonce(nonce, correlationId) {
5977
+ if (nonce !== undefined && nonce.trim().length === 0) {
5978
+ throw createClientConfigurationError(invalidDpopNonce, correlationId);
5979
+ }
5980
+ }
5981
+ /**
5982
+ * Builds RFC 9449 DPoP proof JWT payloads for token-endpoint and
5983
+ * resource-endpoint proof bindings.
5984
+ *
5985
+ * Not exported from any public package entry point.
5986
+ * This helper is internal-only until DPoP is wired into acquisition flows
5987
+ * in a subsequent work item.
5988
+ *
5989
+ * DPoP proofs do not contain SHR fields (at, ts, m, u, p, q).
5990
+ * @internal
5991
+ */
5992
+ class DpopProofGenerator {
5993
+ constructor(cryptoUtils, tokenBindingKeyManager) {
5994
+ this.cryptoUtils = cryptoUtils;
5995
+ this.tokenBindingKeyManager = tokenBindingKeyManager;
5996
+ }
5997
+ /**
5998
+ * Provisions a fresh DPoP key and returns the RFC 7638 JWK thumbprint used
5999
+ * as `dpop_jkt`.
6000
+ */
6001
+ async generateJkt(correlationId = "") {
6002
+ return this.tokenBindingKeyManager.provisionTokenBindingKey({
6003
+ tokenBindingKeyType: DPOP_TOKEN_BINDING_KEY_TYPE,
6004
+ tokenBindingKeyAlgorithm: DPOP_JWT_HEADER_ALGORITHM,
6005
+ correlationId,
6006
+ });
6007
+ }
6008
+ /**
6009
+ * Builds RFC 9449 claims for a token-endpoint DPoP proof.
6010
+ * - htm is always "POST" because token endpoint requests use HTTP POST (RFC 9449 §5).
6011
+ * - htu is the normalized token endpoint URI (query and fragment stripped).
6012
+ * - jti is a fresh CSPRNG-backed unique identifier for every proof.
6013
+ */
6014
+ buildTokenProofClaims(params, correlationId = "") {
6015
+ validateDpopNonce(params.nonce, correlationId);
6016
+ const claims = {
6017
+ jti: this.cryptoUtils.createNewGuid(),
6018
+ htm: "POST",
6019
+ htu: normalizeHtu(params.tokenEndpoint, correlationId),
6020
+ iat: nowSeconds(),
6021
+ };
6022
+ if (params.nonce !== undefined) {
6023
+ claims.nonce = params.nonce;
6024
+ }
6025
+ return claims;
6026
+ }
6027
+ /**
6028
+ * Builds and signs a compact DPoP proof JWT for a token-endpoint request.
6029
+ */
6030
+ async generateTokenProof(params, keyId, correlationId = "") {
6031
+ return this.generateProof(this.buildTokenProofClaims(params, correlationId), keyId, correlationId);
6032
+ }
6033
+ /**
6034
+ * Builds RFC 9449 claims for a resource-endpoint DPoP proof.
6035
+ * - htm is uppercased per RFC 9449 §4.2.
6036
+ * - htu is the normalized resource URI (query and fragment stripped).
6037
+ * - ath is the base64url-encoded SHA-256 hash of the ASCII access token.
6038
+ * - jti is a fresh CSPRNG-backed unique identifier for every proof.
6039
+ */
6040
+ buildResourceProofClaims(params, correlationId = "") {
6041
+ validateDpopNonce(params.nonce, correlationId);
6042
+ const claims = {
6043
+ jti: this.cryptoUtils.createNewGuid(),
6044
+ htm: normalizeHtm(params.htm, correlationId),
6045
+ htu: normalizeHtu(params.htu, correlationId),
6046
+ ath: params.ath,
6047
+ iat: nowSeconds(),
6048
+ };
6049
+ if (params.nonce !== undefined) {
6050
+ claims.nonce = params.nonce;
6051
+ }
6052
+ return claims;
6053
+ }
6054
+ /**
6055
+ * Builds and signs a compact DPoP proof JWT for a resource request.
6056
+ */
6057
+ async generateResourceProof(params, keyId, correlationId = "") {
6058
+ const { htu, htm, nonce } = params;
6059
+ if (!htu || !htm) {
6060
+ throw createClientConfigurationError(dpopMissingResourceContext, correlationId);
6061
+ }
6062
+ const ath = await this.cryptoUtils.hashString(params.accessToken);
6063
+ return this.generateProof(this.buildResourceProofClaims({
6064
+ htu,
6065
+ htm,
6066
+ ath,
6067
+ nonce,
6068
+ }, correlationId), keyId, correlationId);
6069
+ }
6070
+ async generateProof(claims, keyId, correlationId) {
6071
+ const publicJwk = await this.tokenBindingKeyManager.getTokenBindingPublicKeyJwk(keyId, correlationId);
6072
+ return this.cryptoUtils.signTokenBindingJwt(buildProofHeader(publicJwk, correlationId), claims, keyId, correlationId);
6073
+ }
6074
+ }
6075
+
6076
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
5927
6077
  /*
5928
6078
  * Copyright (c) Microsoft Corporation. All rights reserved.
5929
6079
  * Licensed under the MIT License.
@@ -5987,7 +6137,7 @@ var InteractionRequiredAuthErrorCodes = /*#__PURE__*/Object.freeze({
5987
6137
  uiNotAllowed: uiNotAllowed
5988
6138
  });
5989
6139
 
5990
- /*! @azure/msal-common v16.13.0 2026-08-18 */
6140
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
5991
6141
 
5992
6142
  /*
5993
6143
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6054,7 +6204,7 @@ function createInteractionRequiredAuthError(errorCode, correlationId, errorMessa
6054
6204
  return new InteractionRequiredAuthError(errorCode, correlationId, errorMessage);
6055
6205
  }
6056
6206
 
6057
- /*! @azure/msal-common v16.13.0 2026-08-18 */
6207
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
6058
6208
 
6059
6209
  /*
6060
6210
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6073,7 +6223,7 @@ class ServerError extends AuthError {
6073
6223
  }
6074
6224
  }
6075
6225
 
6076
- /*! @azure/msal-common v16.13.0 2026-08-18 */
6226
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
6077
6227
  /**
6078
6228
  * Parses the state into the RequestStateObject, which contains the LibraryState info and the state passed by the user.
6079
6229
  * @param base64Decode
@@ -6106,7 +6256,7 @@ function parseRequestState(base64Decode, state, correlationId) {
6106
6256
  }
6107
6257
  }
6108
6258
 
6109
- /*! @azure/msal-common v16.13.0 2026-08-18 */
6259
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
6110
6260
 
6111
6261
  /*
6112
6262
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6179,11 +6329,26 @@ class ResponseHandler {
6179
6329
  let idTokenClaims;
6180
6330
  if (serverTokenResponse.id_token) {
6181
6331
  idTokenClaims = extractTokenClaims(serverTokenResponse.id_token || "", this.cryptoObj.base64Decode, request.correlationId);
6182
- // token nonce check (TODO: Add a warning if no nonce is given?)
6183
- if (authCodePayload && authCodePayload.nonce) {
6184
- if (idTokenClaims.nonce !== authCodePayload.nonce) {
6185
- throw createClientAuthError(nonceMismatch, request.correlationId);
6186
- }
6332
+ }
6333
+ /*
6334
+ * Callers opt in to strict nonce-presence validation by including
6335
+ * the nonce property, even when its value is undefined.
6336
+ */
6337
+ if (authCodePayload &&
6338
+ Object.prototype.hasOwnProperty.call(authCodePayload, "nonce")) {
6339
+ const expectedNonce = authCodePayload.nonce;
6340
+ const tokenNonce = idTokenClaims?.nonce;
6341
+ // Warn when the ID Token nonce cannot be bound to the request.
6342
+ if (tokenNonce !== undefined && expectedNonce === undefined) {
6343
+ this.logger.warning("Authorization code response contains an ID Token nonce, but no expected nonce was supplied. Rejecting the response.", request.correlationId);
6344
+ throw createClientAuthError(nonceMismatch, request.correlationId);
6345
+ }
6346
+ // If the request supplies a nonce, the ID Token value must be a matching string.
6347
+ if (expectedNonce !== undefined &&
6348
+ (typeof expectedNonce !== "string" ||
6349
+ typeof tokenNonce !== "string" ||
6350
+ expectedNonce !== tokenNonce)) {
6351
+ throw createClientAuthError(nonceMismatch, request.correlationId);
6187
6352
  }
6188
6353
  }
6189
6354
  // generate homeAccountId
@@ -6195,7 +6360,21 @@ class ResponseHandler {
6195
6360
  }
6196
6361
  // Add keyId from request to serverTokenResponse if defined
6197
6362
  serverTokenResponse.key_id =
6198
- serverTokenResponse.key_id || request.sshKid || undefined;
6363
+ serverTokenResponse.key_id ||
6364
+ request.dpopJkt ||
6365
+ request.sshKid ||
6366
+ undefined;
6367
+ if (request.authenticationScheme === AuthenticationScheme.DPOP) {
6368
+ if (serverTokenResponse.token_type?.toLowerCase() !==
6369
+ AuthenticationScheme.DPOP.toLowerCase()) {
6370
+ this.performanceClient?.addFields({
6371
+ dpopTokenTypeMismatch: serverTokenResponse.token_type,
6372
+ }, request.correlationId);
6373
+ throw createClientAuthError(dpopTokenTypeMismatch, request.correlationId);
6374
+ }
6375
+ serverTokenResponse.token_type =
6376
+ AuthenticationScheme.DPOP;
6377
+ }
6199
6378
  // Compute components once for entity storage (fallback if hash not provided by client)
6200
6379
  const attributeTokenPartition = serializeAttributeTokens(request.attributeTokens);
6201
6380
  const cacheKeyComponents = additionalCacheKeyComponents ??
@@ -6358,7 +6537,9 @@ class ResponseHandler {
6358
6537
  let extExpiresOn;
6359
6538
  let refreshOn;
6360
6539
  let familyId = "";
6540
+ let dpopProof;
6361
6541
  if (cacheRecord.accessToken) {
6542
+ const accessTokenType = cacheRecord.accessToken.tokenType?.toLowerCase();
6362
6543
  /*
6363
6544
  * if the request object has `popKid` property, `signPopToken` will be set to false and
6364
6545
  * the token will be returned unsigned
@@ -6376,6 +6557,18 @@ class ResponseHandler {
6376
6557
  else {
6377
6558
  accessToken = cacheRecord.accessToken.secret;
6378
6559
  }
6560
+ if (accessTokenType ===
6561
+ AuthenticationScheme.DPOP.toLowerCase()) {
6562
+ if (!cacheRecord.accessToken.keyId) {
6563
+ throw createClientAuthError(keyIdMissing, request.correlationId);
6564
+ }
6565
+ const dpopProofGenerator = new DpopProofGenerator(cryptoObj, tokenBindingKeyManager);
6566
+ dpopProof = await dpopProofGenerator.generateResourceProof({
6567
+ htu: request.resourceRequestUri,
6568
+ htm: request.resourceRequestMethod,
6569
+ accessToken: cacheRecord.accessToken.secret,
6570
+ }, cacheRecord.accessToken.keyId, request.correlationId);
6571
+ }
6379
6572
  responseScopes = ScopeSet.fromString(cacheRecord.accessToken.target, request.correlationId).asArray();
6380
6573
  // Access token expiresOn cached in seconds, converting to Date for AuthenticationResult
6381
6574
  expiresOn = toDateFromSeconds(cacheRecord.accessToken.expiresOn);
@@ -6392,6 +6585,15 @@ class ResponseHandler {
6392
6585
  }
6393
6586
  const uid = idTokenClaims?.oid || idTokenClaims?.sub || "";
6394
6587
  const tid = idTokenClaims?.tid || "";
6588
+ /*
6589
+ * Surface the sovereign enclave for telemetry. This runs for both freshly acquired
6590
+ * and cache-served tokens because SilentFlowClient shares this method, so the field
6591
+ * is present on silent requests that never hit the network.
6592
+ */
6593
+ const regionSubScope = idTokenClaims?.tenant_region_sub_scope;
6594
+ if (typeof regionSubScope === "string") {
6595
+ performanceClient?.addFields({ regionSubScope }, request.correlationId);
6596
+ }
6395
6597
  // for hybrid + native bridge enablement, send back the native account Id
6396
6598
  if (serverTokenResponse?.spa_accountid && !!cacheRecord.account) {
6397
6599
  // Set on deprecated top-level for downgrade compat
@@ -6420,6 +6622,7 @@ class ResponseHandler {
6420
6622
  idToken: cacheRecord?.idToken?.secret || "",
6421
6623
  idTokenClaims: idTokenClaims || {},
6422
6624
  accessToken: accessToken,
6625
+ dpopProof,
6423
6626
  fromCache: fromTokenCache,
6424
6627
  expiresOn: expiresOn,
6425
6628
  extExpiresOn: extExpiresOn,
@@ -6427,7 +6630,10 @@ class ResponseHandler {
6427
6630
  correlationId: request.correlationId,
6428
6631
  requestId: requestId || "",
6429
6632
  familyId: familyId,
6430
- tokenType: cacheRecord.accessToken?.tokenType || "",
6633
+ tokenType: cacheRecord.accessToken?.tokenType?.toLowerCase() ===
6634
+ AuthenticationScheme.DPOP.toLowerCase()
6635
+ ? AuthenticationScheme.DPOP
6636
+ : cacheRecord.accessToken?.tokenType || "",
6431
6637
  state: requestState ? requestState.userRequestState : "",
6432
6638
  cloudGraphHostName: cacheRecord.account?.cloudGraphHostName || "",
6433
6639
  msGraphHost: cacheRecord.account?.msGraphHost || "",
@@ -6478,7 +6684,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
6478
6684
  return baseAccount;
6479
6685
  }
6480
6686
 
6481
- /*! @azure/msal-common v16.13.0 2026-08-18 */
6687
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
6482
6688
  /*
6483
6689
  * Copyright (c) Microsoft Corporation. All rights reserved.
6484
6690
  * Licensed under the MIT License.
@@ -6488,7 +6694,7 @@ const CcsCredentialType = {
6488
6694
  UPN: "UPN",
6489
6695
  };
6490
6696
 
6491
- /*! @azure/msal-common v16.13.0 2026-08-18 */
6697
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
6492
6698
  /*
6493
6699
  * Copyright (c) Microsoft Corporation. All rights reserved.
6494
6700
  * Licensed under the MIT License.
@@ -6507,7 +6713,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint, fmiP
6507
6713
  }
6508
6714
  }
6509
6715
 
6510
- /*! @azure/msal-common v16.13.0 2026-08-18 */
6716
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
6511
6717
 
6512
6718
  /*
6513
6719
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6531,7 +6737,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
6531
6737
  };
6532
6738
  }
6533
6739
 
6534
- /*! @azure/msal-common v16.13.0 2026-08-18 */
6740
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
6535
6741
 
6536
6742
  /*
6537
6743
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6617,7 +6823,7 @@ class ThrottlingUtils {
6617
6823
  }
6618
6824
  }
6619
6825
 
6620
- /*! @azure/msal-common v16.13.0 2026-08-18 */
6826
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
6621
6827
 
6622
6828
  /*
6623
6829
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6648,7 +6854,7 @@ function createNetworkError(error, httpStatus, responseHeaders, additionalError)
6648
6854
  return new NetworkError(error, httpStatus, responseHeaders);
6649
6855
  }
6650
6856
 
6651
- /*! @azure/msal-common v16.13.0 2026-08-18 */
6857
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
6652
6858
 
6653
6859
  /*
6654
6860
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6678,6 +6884,23 @@ function createTokenRequestHeaders(logger, preventCorsPreflight, ccsCred) {
6678
6884
  }
6679
6885
  return headers;
6680
6886
  }
6887
+ /**
6888
+ * Adds the DPoP proof header for token endpoint requests when DPoP is requested.
6889
+ * @internal
6890
+ */
6891
+ async function addDpopTokenProofHeader(headers, request, tokenEndpoint, cryptoUtils, tokenBindingKeyManager) {
6892
+ if (request.authenticationScheme !== AuthenticationScheme.DPOP) {
6893
+ return;
6894
+ }
6895
+ const dpopProofGenerator = new DpopProofGenerator(cryptoUtils, tokenBindingKeyManager);
6896
+ const keyId = request.dpopJkt;
6897
+ if (!keyId?.trim()) {
6898
+ throw createClientAuthError(keyIdMissing, request.correlationId);
6899
+ }
6900
+ headers[HeaderNames.DPOP] = await dpopProofGenerator.generateTokenProof({
6901
+ tokenEndpoint,
6902
+ }, keyId, request.correlationId);
6903
+ }
6681
6904
  /**
6682
6905
  * Creates query string for the /token request
6683
6906
  * @param request
@@ -6764,7 +6987,7 @@ async function sendPostRequest(thumbprint, tokenEndpoint, options, correlationId
6764
6987
  return response;
6765
6988
  }
6766
6989
 
6767
- /*! @azure/msal-common v16.13.0 2026-08-18 */
6990
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
6768
6991
 
6769
6992
  /*
6770
6993
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6856,6 +7079,7 @@ class AuthorizationCodeClient {
6856
7079
  }
6857
7080
  }
6858
7081
  const headers = createTokenRequestHeaders(this.logger, this.config.systemOptions.preventCorsPreflight, ccsCredential || request.ccsCredential);
7082
+ await addDpopTokenProofHeader(headers, request, endpoint, this.cryptoUtils, this.config.tokenBindingKeyManager);
6859
7083
  const thumbprint = getRequestThumbprint(this.config.authOptions.clientId, request);
6860
7084
  return invokeAsync(executePostToTokenEndpoint, AuthorizationCodeClientExecutePostToTokenEndpoint, this.logger, this.performanceClient, request.correlationId)(endpoint, requestBody, headers, thumbprint, request.correlationId, this.cacheManager, this.networkClient, this.logger, this.performanceClient, serverTelemetryManager);
6861
7085
  }
@@ -7027,7 +7251,7 @@ class AuthorizationCodeClient {
7027
7251
  }
7028
7252
  }
7029
7253
 
7030
- /*! @azure/msal-common v16.13.0 2026-08-18 */
7254
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
7031
7255
 
7032
7256
  /*
7033
7257
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7178,7 +7402,7 @@ function extractLoginHint(account) {
7178
7402
  return account.loginHint || account.idTokenClaims?.login_hint || null;
7179
7403
  }
7180
7404
 
7181
- /*! @azure/msal-common v16.13.0 2026-08-18 */
7405
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
7182
7406
 
7183
7407
  /*
7184
7408
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7289,6 +7513,12 @@ class RefreshTokenClient {
7289
7513
  type: CcsCredentialType.HOME_ACCOUNT_ID,
7290
7514
  },
7291
7515
  };
7516
+ if (refreshTokenRequest.authenticationScheme ===
7517
+ AuthenticationScheme.DPOP &&
7518
+ !refreshTokenRequest.dpopJkt) {
7519
+ const dpopProofGenerator = new DpopProofGenerator(this.cryptoUtils, this.config.tokenBindingKeyManager);
7520
+ refreshTokenRequest.dpopJkt = await dpopProofGenerator.generateJkt(request.correlationId);
7521
+ }
7292
7522
  try {
7293
7523
  return await invokeAsync(this.acquireToken.bind(this), RefreshTokenClientAcquireToken, this.logger, this.performanceClient, request.correlationId)(refreshTokenRequest, apiId);
7294
7524
  }
@@ -7314,6 +7544,7 @@ class RefreshTokenClient {
7314
7544
  const endpoint = UrlString.appendQueryString(authority.tokenEndpoint, queryParametersString);
7315
7545
  const requestBody = await invokeAsync(this.createTokenRequestBody.bind(this), RefreshTokenClientCreateTokenRequestBody, this.logger, this.performanceClient, request.correlationId)(request);
7316
7546
  const headers = createTokenRequestHeaders(this.logger, this.config.systemOptions.preventCorsPreflight, request.ccsCredential);
7547
+ await addDpopTokenProofHeader(headers, request, endpoint, this.cryptoUtils, this.config.tokenBindingKeyManager);
7317
7548
  const thumbprint = getRequestThumbprint(this.config.authOptions.clientId, request);
7318
7549
  return invokeAsync(executePostToTokenEndpoint, RefreshTokenClientExecutePostToTokenEndpoint, this.logger, this.performanceClient, request.correlationId)(endpoint, requestBody, headers, thumbprint, request.correlationId, this.cacheManager, this.networkClient, this.logger, this.performanceClient, this.serverTelemetryManager);
7319
7550
  }
@@ -7405,7 +7636,7 @@ class RefreshTokenClient {
7405
7636
  }
7406
7637
  }
7407
7638
 
7408
- /*! @azure/msal-common v16.13.0 2026-08-18 */
7639
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
7409
7640
 
7410
7641
  /*
7411
7642
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7671,7 +7902,7 @@ class ServerTelemetryManager {
7671
7902
  }
7672
7903
  }
7673
7904
 
7674
- /*! @azure/msal-common v16.13.0 2026-08-18 */
7905
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
7675
7906
 
7676
7907
  /*
7677
7908
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7740,6 +7971,22 @@ class SilentFlowClient {
7740
7971
  lastCacheOutcome = CacheOutcome.PROACTIVELY_REFRESHED;
7741
7972
  // don't throw ClientAuthError.createRefreshRequiredError(), return cached token instead
7742
7973
  }
7974
+ const cachedAccessTokenType = cachedAccessToken.tokenType?.toLowerCase();
7975
+ if (cachedAccessTokenType === AuthenticationScheme.DPOP.toLowerCase()) {
7976
+ if (!cachedAccessToken.keyId) {
7977
+ this.logger.info("SilentFlowClient:acquireCachedToken - Cached DPoP access token is missing keyId; refresh required", request.correlationId);
7978
+ this.setCacheOutcome(CacheOutcome.NO_CACHED_ACCESS_TOKEN, request.correlationId);
7979
+ throw createClientAuthError(tokenRefreshRequired, request.correlationId);
7980
+ }
7981
+ try {
7982
+ await this.config.tokenBindingKeyManager.getTokenBindingPublicKeyJwk(cachedAccessToken.keyId, request.correlationId);
7983
+ }
7984
+ catch {
7985
+ this.logger.info("SilentFlowClient:acquireCachedToken - Local DPoP key was not found for cached access token; refresh required", request.correlationId);
7986
+ this.setCacheOutcome(CacheOutcome.NO_CACHED_ACCESS_TOKEN, request.correlationId);
7987
+ throw createClientAuthError(tokenRefreshRequired, request.correlationId);
7988
+ }
7989
+ }
7743
7990
  const environment = request.authority || this.authority.getPreferredCache();
7744
7991
  const cacheRecord = {
7745
7992
  account: this.cacheManager.getAccount(this.cacheManager.generateAccountKey(request.account), request.correlationId),
@@ -7782,7 +8029,7 @@ class SilentFlowClient {
7782
8029
  }
7783
8030
  }
7784
8031
 
7785
- /*! @azure/msal-common v16.13.0 2026-08-18 */
8032
+ /*! @azure/msal-common v16.14.1 2026-09-15 */
7786
8033
 
7787
8034
  /*
7788
8035
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8947,7 +9194,7 @@ function generateAccountKey(account) {
8947
9194
  */
8948
9195
  class NodeStorage extends CacheManager {
8949
9196
  constructor(logger, clientId, cryptoImpl, staticAuthorityOptions) {
8950
- super(clientId, cryptoImpl, logger, new StubPerformanceClient(), staticAuthorityOptions);
9197
+ super(clientId, cryptoImpl, logger, new StubPerformanceClient(), staticAuthorityOptions, DEFAULT_TOKEN_BINDING_KEY_MANAGER);
8951
9198
  this.cache = {};
8952
9199
  this.changeEmitters = [];
8953
9200
  this.logger = logger;
@@ -9812,7 +10059,7 @@ class ClientAssertion {
9812
10059
 
9813
10060
  /* eslint-disable header/header */
9814
10061
  const name = "@azure/msal-node";
9815
- const version = "5.6.0";
10062
+ const version = "6.0.1";
9816
10063
 
9817
10064
  /*
9818
10065
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -10068,13 +10315,14 @@ class ClientApplication {
10068
10315
  state: "",
10069
10316
  };
10070
10317
  }
10071
- if (request.nonce) {
10072
- validatedAuthCodePayload = {
10073
- ...validatedAuthCodePayload,
10074
- code: request.code,
10075
- nonce: request.nonce,
10076
- };
10077
- }
10318
+ const expectedNonce = request.nonce !== undefined
10319
+ ? request.nonce
10320
+ : validatedAuthCodePayload?.nonce;
10321
+ validatedAuthCodePayload = {
10322
+ ...validatedAuthCodePayload,
10323
+ code: request.code,
10324
+ nonce: expectedNonce,
10325
+ };
10078
10326
  const validRequest = {
10079
10327
  ...request,
10080
10328
  ...(await this.initializeBaseRequest(request)),
@@ -10839,10 +11087,7 @@ class PublicClientApplication extends ClientApplication {
10839
11087
  const correlationId = request.correlationId || this.cryptoProvider.createNewGuid();
10840
11088
  this.logger.trace("acquireTokenInteractive called", correlationId);
10841
11089
  enforceResourceParameter(this.config.auth.isMcp, request);
10842
- const { openBrowser, successTemplate, errorTemplate, windowHandle, loopbackClient: customLoopbackClient, preferredPort, ...remainingProperties } = request;
10843
- if (customLoopbackClient) {
10844
- this.logger.warning("The loopbackClient option is deprecated and will be removed in a future major version. Omit it to use the built-in loopback server, and set preferredPort when a fixed port is required.", correlationId);
10845
- }
11090
+ const { openBrowser, successTemplate, errorTemplate, windowHandle, preferredPort, ...remainingProperties } = request;
10846
11091
  if (this.nativeBrokerPlugin) {
10847
11092
  const brokerRequest = {
10848
11093
  ...remainingProperties,
@@ -10869,10 +11114,10 @@ class PublicClientApplication extends ClientApplication {
10869
11114
  request.redirectUri = "";
10870
11115
  }
10871
11116
  const { verifier, challenge } = await this.cryptoProvider.generatePkceCodes();
10872
- const loopbackClient = customLoopbackClient || new LoopbackClient(preferredPort);
11117
+ const loopbackClient = new LoopbackClient(preferredPort);
10873
11118
  // Validate and resolve responseMode
10874
11119
  const responseMode = remainingProperties.responseMode ??
10875
- ResponseMode$1.QUERY;
11120
+ ResponseMode$1.FORM_POST;
10876
11121
  if (responseMode !== ResponseMode$1.QUERY &&
10877
11122
  responseMode !== ResponseMode$1.FORM_POST) {
10878
11123
  throw createClientConfigurationError(invalidResponseMode, correlationId);
@@ -11007,7 +11252,7 @@ class PublicClientApplication extends ClientApplication {
11007
11252
  }
11008
11253
  /**
11009
11254
  * Attempts to retrieve the redirectUri from the loopback server. If the loopback server does not start listening for requests within the timeout this will throw.
11010
- * @param loopbackClient - developer provided custom loopback server implementation
11255
+ * @param loopbackClient - built-in loopback server implementation
11011
11256
  * @param correlationId - correlation id of the request
11012
11257
  * @returns
11013
11258
  */