opencode-m365-copilot 0.2.1 → 0.2.2

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.
@@ -1,9 +1,9 @@
1
- import { E as __toESM, T as __require, w as __commonJSMin } from "./server-DDD-Hlhx.mjs";
1
+ import { E as __toESM, T as __require, w as __commonJSMin } from "./server-B_2RPeJD.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import http from "http";
4
4
  import crypto, { createHash as createHash$1 } from "crypto";
5
5
  //#region node_modules/@azure/msal-node/dist/cache/serializer/Serializer.mjs
6
- /*! @azure/msal-node v5.5.0 2026-08-04 */
6
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
7
7
  /**
8
8
  * This class serializes cache entities to be saved into in-memory object types defined internally
9
9
  * @internal
@@ -143,7 +143,7 @@ var Serializer = class {
143
143
  };
144
144
  //#endregion
145
145
  //#region node_modules/@azure/msal-common/dist/constants/AADServerParamKeys.mjs
146
- /*! @azure/msal-common v16.12.0 2026-08-04 */
146
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
147
147
  const CLIENT_ID = "client_id";
148
148
  const REDIRECT_URI = "redirect_uri";
149
149
  const RESPONSE_TYPE = "response_type";
@@ -190,7 +190,7 @@ const CLI_DATA = "clidata";
190
190
  const ATTRIBUTE_TOKENS = "attribute_tokens";
191
191
  //#endregion
192
192
  //#region node_modules/@azure/msal-common/dist/utils/Constants.mjs
193
- /*! @azure/msal-common v16.12.0 2026-08-04 */
193
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
194
194
  const SKU = "msal.js.common";
195
195
  const DEFAULT_AUTHORITY = "https://login.microsoftonline.com/common/";
196
196
  const DEFAULT_AUTHORITY_HOST = "login.microsoftonline.com";
@@ -378,6 +378,12 @@ const CacheOutcome = {
378
378
  CACHED_ACCESS_TOKEN_EXPIRED: "3",
379
379
  PROACTIVELY_REFRESHED: "4"
380
380
  };
381
+ const JsonWebTokenTypes = {
382
+ Jwt: "JWT",
383
+ Jwk: "JWK",
384
+ Pop: "pop",
385
+ Dpop: "dpop+jwt"
386
+ };
381
387
  const EncodingTypes = {
382
388
  BASE64: "base64",
383
389
  HEX: "hex",
@@ -385,7 +391,7 @@ const EncodingTypes = {
385
391
  };
386
392
  //#endregion
387
393
  //#region node_modules/@azure/msal-common/dist/error/AuthError.mjs
388
- /*! @azure/msal-common v16.12.0 2026-08-04 */
394
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
389
395
  function getDefaultErrorMessage(code) {
390
396
  return `See https://aka.ms/msal.js.errors#${code} for details`;
391
397
  }
@@ -410,7 +416,7 @@ function createAuthError(code, correlationId, additionalMessage) {
410
416
  }
411
417
  //#endregion
412
418
  //#region node_modules/@azure/msal-common/dist/error/ClientAuthError.mjs
413
- /*! @azure/msal-common v16.12.0 2026-08-04 */
419
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
414
420
  /**
415
421
  * ClientAuthErrorMessage class containing string constants used by error codes and messages.
416
422
  */
@@ -429,7 +435,7 @@ function createClientAuthError(errorCode, correlationId, additionalMessage) {
429
435
  }
430
436
  //#endregion
431
437
  //#region node_modules/@azure/msal-common/dist/error/ClientAuthErrorCodes.mjs
432
- /*! @azure/msal-common v16.12.0 2026-08-04 */
438
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
433
439
  const clientInfoDecodingError = "client_info_decoding_error";
434
440
  const clientInfoEmptyError = "client_info_empty_error";
435
441
  const tokenParsingError = "token_parsing_error";
@@ -459,7 +465,7 @@ const resourceParameterRequired = "resource_parameter_required";
459
465
  const misplacedResourceParam = "misplaced_resource_parameter";
460
466
  //#endregion
461
467
  //#region node_modules/@azure/msal-common/dist/account/ClientInfo.mjs
462
- /*! @azure/msal-common v16.12.0 2026-08-04 */
468
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
463
469
  /**
464
470
  * Function to build a client info object from server clientInfo string
465
471
  * @param rawClientInfo
@@ -488,7 +494,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
488
494
  }
489
495
  //#endregion
490
496
  //#region node_modules/@azure/msal-common/dist/account/AuthToken.mjs
491
- /*! @azure/msal-common v16.12.0 2026-08-04 */
497
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
492
498
  /**
493
499
  * Extract token by decoding the rawToken
494
500
  *
@@ -540,7 +546,7 @@ function getJWSPayload(authToken, correlationId) {
540
546
  }
541
547
  //#endregion
542
548
  //#region node_modules/@azure/msal-common/dist/account/AccountInfo.mjs
543
- /*! @azure/msal-common v16.12.0 2026-08-04 */
549
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
544
550
  /**
545
551
  * Returns true if tenantId matches the utid portion of homeAccountId
546
552
  * @param tenantId
@@ -617,7 +623,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
617
623
  }
618
624
  //#endregion
619
625
  //#region node_modules/@azure/msal-common/dist/authority/AuthorityType.mjs
620
- /*! @azure/msal-common v16.12.0 2026-08-04 */
626
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
621
627
  /**
622
628
  * Authority types supported by MSAL.
623
629
  */
@@ -629,7 +635,7 @@ const AuthorityType = {
629
635
  };
630
636
  //#endregion
631
637
  //#region node_modules/@azure/msal-common/dist/account/TokenClaims.mjs
632
- /*! @azure/msal-common v16.12.0 2026-08-04 */
638
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
633
639
  /**
634
640
  * Gets tenantId from available ID token claims to set as credential realm with the following precedence:
635
641
  * 1. tid - if the token is acquired from an Azure AD tenant tid will be present
@@ -645,7 +651,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
645
651
  }
646
652
  //#endregion
647
653
  //#region node_modules/@azure/msal-common/dist/authority/ProtocolMode.mjs
648
- /*! @azure/msal-common v16.12.0 2026-08-04 */
654
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
649
655
  /**
650
656
  * Protocol modes supported by MSAL.
651
657
  */
@@ -666,7 +672,7 @@ const ProtocolMode = {
666
672
  };
667
673
  //#endregion
668
674
  //#region node_modules/@azure/msal-common/dist/cache/utils/AccountEntityUtils.mjs
669
- /*! @azure/msal-common v16.12.0 2026-08-04 */
675
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
670
676
  /**
671
677
  * Returns the AccountInfo interface for this account.
672
678
  * @internal
@@ -763,11 +769,11 @@ function isAccountEntity(entity) {
763
769
  }
764
770
  //#endregion
765
771
  //#region node_modules/@azure/msal-common/dist/error/AuthErrorCodes.mjs
766
- /*! @azure/msal-common v16.12.0 2026-08-04 */
772
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
767
773
  const postRequestFailed = "post_request_failed";
768
774
  //#endregion
769
775
  //#region node_modules/@azure/msal-common/dist/error/ClientConfigurationError.mjs
770
- /*! @azure/msal-common v16.12.0 2026-08-04 */
776
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
771
777
  /**
772
778
  * Error thrown when there is an error in configuration of the MSAL.js library.
773
779
  */
@@ -783,7 +789,7 @@ function createClientConfigurationError(errorCode, correlationId) {
783
789
  }
784
790
  //#endregion
785
791
  //#region node_modules/@azure/msal-common/dist/error/ClientConfigurationErrorCodes.mjs
786
- /*! @azure/msal-common v16.12.0 2026-08-04 */
792
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
787
793
  const redirectUriEmpty = "redirect_uri_empty";
788
794
  const authorityUriInsecure = "authority_uri_insecure";
789
795
  const urlParseError = "url_parse_error";
@@ -801,13 +807,13 @@ const issuerValidationFailed = "issuer_validation_failed";
801
807
  const invalidResponseMode = "invalid_response_mode";
802
808
  //#endregion
803
809
  //#region node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.mjs
804
- /*! @azure/msal-common v16.12.0 2026-08-04 */
810
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
805
811
  function isOpenIdConfigResponse(response) {
806
812
  return response.hasOwnProperty("authorization_endpoint") && response.hasOwnProperty("token_endpoint") && response.hasOwnProperty("issuer") && response.hasOwnProperty("jwks_uri");
807
813
  }
808
814
  //#endregion
809
815
  //#region node_modules/@azure/msal-common/dist/utils/StringUtils.mjs
810
- /*! @azure/msal-common v16.12.0 2026-08-04 */
816
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
811
817
  /**
812
818
  * @hidden
813
819
  */
@@ -877,7 +883,7 @@ var StringUtils = class {
877
883
  };
878
884
  //#endregion
879
885
  //#region node_modules/@azure/msal-common/dist/url/UrlString.mjs
880
- /*! @azure/msal-common v16.12.0 2026-08-04 */
886
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
881
887
  /**
882
888
  * Url object class which can perform various transformations on url strings.
883
889
  */
@@ -984,13 +990,10 @@ var UrlString = class UrlString {
984
990
  };
985
991
  //#endregion
986
992
  //#region node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.mjs
987
- /*! @azure/msal-common v16.12.0 2026-08-04 */
993
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
988
994
  const endpointHosts = [
989
995
  { host: "login.microsoftonline.com" },
990
- {
991
- host: "login.chinacloudapi.cn",
992
- issuerHost: "login.partner.microsoftonline.cn"
993
- },
996
+ { host: "login.partner.microsoftonline.cn" },
994
997
  { host: "login.microsoftonline.us" },
995
998
  { host: "login.sovcloud-identity.fr" },
996
999
  { host: "login.sovcloud-identity.de" },
@@ -1127,7 +1130,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
1127
1130
  }
1128
1131
  //#endregion
1129
1132
  //#region node_modules/@azure/msal-common/dist/authority/AuthorityOptions.mjs
1130
- /*! @azure/msal-common v16.12.0 2026-08-04 */
1133
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
1131
1134
  const AzureCloudInstance = {
1132
1135
  None: "none",
1133
1136
  AzurePublic: "https://login.microsoftonline.com",
@@ -1138,19 +1141,19 @@ const AzureCloudInstance = {
1138
1141
  };
1139
1142
  //#endregion
1140
1143
  //#region node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.mjs
1141
- /*! @azure/msal-common v16.12.0 2026-08-04 */
1144
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
1142
1145
  function isCloudInstanceDiscoveryResponse(response) {
1143
1146
  return response.hasOwnProperty("tenant_discovery_endpoint") && response.hasOwnProperty("metadata");
1144
1147
  }
1145
1148
  //#endregion
1146
1149
  //#region node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.mjs
1147
- /*! @azure/msal-common v16.12.0 2026-08-04 */
1150
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
1148
1151
  function isCloudInstanceDiscoveryErrorResponse(response) {
1149
1152
  return response.hasOwnProperty("error") && response.hasOwnProperty("error_description");
1150
1153
  }
1151
1154
  //#endregion
1152
1155
  //#region node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvents.mjs
1153
- /*! @azure/msal-common v16.12.0 2026-08-04 */
1156
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
1154
1157
  /**
1155
1158
  * Time spent sending/waiting for the response of a request to the token endpoint
1156
1159
  */
@@ -1209,7 +1212,7 @@ const RegionDiscoveryGetCurrentVersion = "regionDiscoveryGetCurrentVersion";
1209
1212
  const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken";
1210
1213
  //#endregion
1211
1214
  //#region node_modules/@azure/msal-common/dist/utils/FunctionWrappers.mjs
1212
- /*! @azure/msal-common v16.12.0 2026-08-04 */
1215
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
1213
1216
  /**
1214
1217
  * Wraps a function with a performance measurement.
1215
1218
  * Usage: invoke(functionToCall, performanceClient, "EventName", "correlationId")(...argsToPassToFunction)
@@ -1278,7 +1281,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
1278
1281
  };
1279
1282
  //#endregion
1280
1283
  //#region node_modules/@azure/msal-common/dist/authority/RegionDiscovery.mjs
1281
- /*! @azure/msal-common v16.12.0 2026-08-04 */
1284
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
1282
1285
  var RegionDiscovery = class RegionDiscovery {
1283
1286
  constructor(networkInterface, logger, performanceClient, correlationId) {
1284
1287
  this.networkInterface = networkInterface;
@@ -1349,7 +1352,7 @@ var RegionDiscovery = class RegionDiscovery {
1349
1352
  RegionDiscovery.IMDS_OPTIONS = { headers: { Metadata: "true" } };
1350
1353
  //#endregion
1351
1354
  //#region node_modules/@azure/msal-common/dist/utils/TimeUtils.mjs
1352
- /*! @azure/msal-common v16.12.0 2026-08-04 */
1355
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
1353
1356
  /**
1354
1357
  * Utility functions for managing date and time operations.
1355
1358
  */
@@ -1394,7 +1397,7 @@ function delay(t, value) {
1394
1397
  }
1395
1398
  //#endregion
1396
1399
  //#region node_modules/@azure/msal-common/dist/cache/utils/CacheHelpers.mjs
1397
- /*! @azure/msal-common v16.12.0 2026-08-04 */
1400
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
1398
1401
  /**
1399
1402
  * Create IdTokenEntity
1400
1403
  * @param homeAccountId
@@ -1441,14 +1444,19 @@ function createAccessTokenEntity(homeAccountId, environment, accessToken, client
1441
1444
  };
1442
1445
  if (userAssertionHash) atEntity.userAssertionHash = userAssertionHash;
1443
1446
  if (refreshOn) atEntity.refreshOn = refreshOn.toString();
1447
+ const normalizedTokenType = atEntity.tokenType?.toLowerCase();
1444
1448
  if (atEntity.tokenType?.toLowerCase() !== AuthenticationScheme.BEARER.toLowerCase()) {
1445
1449
  atEntity.credentialType = CredentialType.ACCESS_TOKEN_WITH_AUTH_SCHEME;
1446
- switch (atEntity.tokenType) {
1450
+ switch (normalizedTokenType) {
1447
1451
  case AuthenticationScheme.POP:
1448
1452
  const tokenClaims = extractTokenClaims(accessToken, base64Decode, correlationId);
1449
1453
  if (!tokenClaims?.cnf?.kid) throw createClientAuthError(tokenClaimsCnfRequiredForSignedJwt, correlationId);
1450
1454
  atEntity.keyId = tokenClaims.cnf.kid;
1451
1455
  break;
1456
+ case "dpop":
1457
+ if (!keyId) throw createClientAuthError(keyIdMissing, correlationId);
1458
+ atEntity.keyId = keyId;
1459
+ break;
1452
1460
  case AuthenticationScheme.SSH: atEntity.keyId = keyId;
1453
1461
  }
1454
1462
  }
@@ -1589,7 +1597,7 @@ function serializeAttributeTokens(attributeTokens) {
1589
1597
  }
1590
1598
  //#endregion
1591
1599
  //#region node_modules/@azure/msal-common/dist/authority/Authority.mjs
1592
- /*! @azure/msal-common v16.12.0 2026-08-04 */
1600
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
1593
1601
  /**
1594
1602
  * The authority class validates the authority URIs used by the user, and retrieves the OpenID Configuration Data from the
1595
1603
  * endpoint. It will store the pertinent config data in this object for use during token calls.
@@ -2324,7 +2332,7 @@ function buildStaticAuthorityOptions(authOptions) {
2324
2332
  }
2325
2333
  //#endregion
2326
2334
  //#region node_modules/@azure/msal-common/dist/authority/AuthorityFactory.mjs
2327
- /*! @azure/msal-common v16.12.0 2026-08-04 */
2335
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
2328
2336
  /**
2329
2337
  * Create an authority object of the correct type based on the url
2330
2338
  * Performs basic authority validation - checks to see if the authority is of a valid type (i.e. aad, b2c, adfs)
@@ -2351,7 +2359,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
2351
2359
  }
2352
2360
  //#endregion
2353
2361
  //#region node_modules/@azure/msal-common/dist/request/ScopeSet.mjs
2354
- /*! @azure/msal-common v16.12.0 2026-08-04 */
2362
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
2355
2363
  /**
2356
2364
  * The ScopeSet class creates a set of scopes. Scopes are case-insensitive, unique values, so the Set object in JS makes
2357
2365
  * the most sense to implement for this class. All scopes are trimmed and converted to lower case strings in intersection and union functions
@@ -2503,7 +2511,7 @@ var ScopeSet = class ScopeSet {
2503
2511
  };
2504
2512
  //#endregion
2505
2513
  //#region node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.mjs
2506
- /*! @azure/msal-common v16.12.0 2026-08-04 */
2514
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
2507
2515
  function instrumentBrokerParams(parameters, correlationId, performanceClient) {
2508
2516
  if (!correlationId) return;
2509
2517
  const clientId = parameters.get(CLIENT_ID);
@@ -2776,7 +2784,7 @@ function parseClaims(claims, correlationId = "") {
2776
2784
  } catch (e) {
2777
2785
  throw createClientConfigurationError(invalidClaims, correlationId);
2778
2786
  }
2779
- if (!isPlainObject(parsed)) throw createClientConfigurationError(invalidClaims, correlationId);
2787
+ if (!isPlainObject$1(parsed)) throw createClientConfigurationError(invalidClaims, correlationId);
2780
2788
  return parsed;
2781
2789
  }
2782
2790
  /**
@@ -2784,7 +2792,7 @@ function parseClaims(claims, correlationId = "") {
2784
2792
  * @param value - The value to test
2785
2793
  * @returns True when value is a plain object that can be deep-merged
2786
2794
  */
2787
- function isPlainObject(value) {
2795
+ function isPlainObject$1(value) {
2788
2796
  return typeof value === "object" && value !== null && !Array.isArray(value);
2789
2797
  }
2790
2798
  /**
@@ -2801,7 +2809,7 @@ function deepMergeClaims(baseClaims, claimsToMerge) {
2801
2809
  const merged = { ...baseClaims };
2802
2810
  for (const [key, mergeInValue] of Object.entries(claimsToMerge)) {
2803
2811
  const baseValue = merged[key];
2804
- if (isPlainObject(baseValue) && isPlainObject(mergeInValue)) merged[key] = deepMergeClaims(baseValue, mergeInValue);
2812
+ if (isPlainObject$1(baseValue) && isPlainObject$1(mergeInValue)) merged[key] = deepMergeClaims(baseValue, mergeInValue);
2805
2813
  else merged[key] = mergeInValue;
2806
2814
  }
2807
2815
  return merged;
@@ -2910,7 +2918,7 @@ function addAttributeTokens(parameters, attributeTokens) {
2910
2918
  }
2911
2919
  //#endregion
2912
2920
  //#region node_modules/@azure/msal-common/dist/utils/UrlUtils.mjs
2913
- /*! @azure/msal-common v16.12.0 2026-08-04 */
2921
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
2914
2922
  /**
2915
2923
  * Parses hash string from given string. Returns empty string if no hash symbol is found.
2916
2924
  * @param hashString
@@ -2946,7 +2954,15 @@ function mapToQueryString(parameters) {
2946
2954
  }
2947
2955
  //#endregion
2948
2956
  //#region node_modules/@azure/msal-common/dist/crypto/ICrypto.mjs
2949
- /*! @azure/msal-common v16.12.0 2026-08-04 */
2957
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
2958
+ /**
2959
+ * Shared JOSE algorithm literals used by MSAL package internals.
2960
+ * @internal
2961
+ */
2962
+ const JsonWebTokenAlgorithms = {
2963
+ ES256: "ES256",
2964
+ RS256: "RS256"
2965
+ };
2950
2966
  /**
2951
2967
  * Default crypto implementation used when a platform-specific implementation has
2952
2968
  * not been provided.
@@ -2967,25 +2983,41 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
2967
2983
  encodeKid: () => {
2968
2984
  throw createClientAuthError(methodNotImplemented, "");
2969
2985
  },
2970
- async getPublicKeyThumbprint() {
2971
- throw createClientAuthError(methodNotImplemented, "");
2972
- },
2973
- async removeTokenBindingKey() {
2974
- throw createClientAuthError(methodNotImplemented, "");
2986
+ async removeTokenBindingKey(kid, correlationId) {
2987
+ throw createClientAuthError(methodNotImplemented, correlationId);
2975
2988
  },
2976
- async clearKeystore() {
2977
- throw createClientAuthError(methodNotImplemented, "");
2989
+ async clearKeystore(correlationId) {
2990
+ throw createClientAuthError(methodNotImplemented, correlationId);
2978
2991
  },
2979
- async signJwt() {
2980
- throw createClientAuthError(methodNotImplemented, "");
2992
+ async signTokenBindingJwt(header, payload, kid, correlationId) {
2993
+ throw createClientAuthError(methodNotImplemented, correlationId);
2981
2994
  },
2982
2995
  async hashString() {
2983
2996
  throw createClientAuthError(methodNotImplemented, "");
2984
2997
  }
2985
2998
  };
2986
2999
  //#endregion
3000
+ //#region node_modules/@azure/msal-common/dist/crypto/ITokenBindingKeyManager.mjs
3001
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
3002
+ /**
3003
+ * Default token-binding key manager used when a platform-specific implementation
3004
+ * has not been provided.
3005
+ * @internal
3006
+ */
3007
+ const DEFAULT_TOKEN_BINDING_KEY_MANAGER = {
3008
+ async provisionTokenBindingKey(request) {
3009
+ throw createClientAuthError(methodNotImplemented, request.correlationId);
3010
+ },
3011
+ async removeTokenBindingKey(_kid, correlationId) {
3012
+ throw createClientAuthError(methodNotImplemented, correlationId);
3013
+ },
3014
+ async getTokenBindingPublicKeyJwk(_kid, correlationId) {
3015
+ throw createClientAuthError(methodNotImplemented, correlationId);
3016
+ }
3017
+ };
3018
+ //#endregion
2987
3019
  //#region node_modules/@azure/msal-common/dist/logger/Logger.mjs
2988
- /*! @azure/msal-common v16.12.0 2026-08-04 */
3020
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
2989
3021
  /**
2990
3022
  * Log message level.
2991
3023
  */
@@ -3216,17 +3248,17 @@ var Logger = class Logger {
3216
3248
  };
3217
3249
  //#endregion
3218
3250
  //#region node_modules/@azure/msal-common/dist/packageMetadata.mjs
3219
- /*! @azure/msal-common v16.12.0 2026-08-04 */
3251
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
3220
3252
  const name$1 = "@azure/msal-common";
3221
- const version$1 = "16.12.0";
3253
+ const version$1 = "16.13.0";
3222
3254
  //#endregion
3223
3255
  //#region node_modules/@azure/msal-common/dist/error/CacheErrorCodes.mjs
3224
- /*! @azure/msal-common v16.12.0 2026-08-04 */
3256
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
3225
3257
  const cacheQuotaExceeded = "cache_quota_exceeded";
3226
3258
  const cacheErrorUnknown = "cache_error_unknown";
3227
3259
  //#endregion
3228
3260
  //#region node_modules/@azure/msal-common/dist/error/CacheError.mjs
3229
- /*! @azure/msal-common v16.12.0 2026-08-04 */
3261
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
3230
3262
  /**
3231
3263
  * Error thrown when there is an error with the cache
3232
3264
  */
@@ -3252,7 +3284,7 @@ function createCacheError(e) {
3252
3284
  }
3253
3285
  //#endregion
3254
3286
  //#region node_modules/@azure/msal-common/dist/cache/CacheManager.mjs
3255
- /*! @azure/msal-common v16.12.0 2026-08-04 */
3287
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
3256
3288
  /**
3257
3289
  * Interface class which implement cache storage functions used by MSAL to perform validity checks, and store tokens.
3258
3290
  * @internal
@@ -3457,10 +3489,7 @@ var CacheManager = class {
3457
3489
  if (!!filter.familyId && !this.matchFamilyId(entity, filter.familyId)) return false;
3458
3490
  if (!!filter.target && !this.matchTarget(entity, filter.target, correlationId)) return false;
3459
3491
  if (entity.credentialType === CredentialType.ACCESS_TOKEN_WITH_AUTH_SCHEME) {
3460
- if (!!filter.tokenType && !this.matchTokenType(entity, filter.tokenType)) return false;
3461
- if (filter.tokenType === AuthenticationScheme.SSH) {
3462
- if (filter.keyId && !this.matchKeyId(entity, filter.keyId)) return false;
3463
- }
3492
+ if (!this.matchAccessTokenWithAuthScheme(entity, filter)) return false;
3464
3493
  }
3465
3494
  const entityComponents = entity.additionalCacheKeyComponents;
3466
3495
  const filterComponents = filter.additionalCacheKeyComponents;
@@ -3696,7 +3725,7 @@ var CacheManager = class {
3696
3725
  realm: targetRealm || account.tenantId,
3697
3726
  target: scopes,
3698
3727
  tokenType: authScheme,
3699
- keyId: request.sshKid,
3728
+ keyId: authScheme === AuthenticationScheme.SSH ? request.sshKid : void 0,
3700
3729
  additionalCacheKeyComponents
3701
3730
  };
3702
3731
  const accessTokenKeys = tokenKeys && tokenKeys.accessToken || this.getTokenKeys().accessToken;
@@ -3974,7 +4003,20 @@ var CacheManager = class {
3974
4003
  * @param tokenType
3975
4004
  */
3976
4005
  matchTokenType(entity, tokenType) {
3977
- return !!(entity.tokenType && entity.tokenType === tokenType);
4006
+ return !!(entity.tokenType && entity.tokenType.toLowerCase() === tokenType.toLowerCase());
4007
+ }
4008
+ matchAccessTokenWithAuthScheme(entity, filter) {
4009
+ const normalizedFilterTokenType = filter.tokenType?.toLowerCase();
4010
+ if (!!filter.tokenType && !this.matchTokenType(entity, filter.tokenType)) return false;
4011
+ switch (normalizedFilterTokenType) {
4012
+ case "dpop": return this.matchKeyBoundAccessToken(entity, filter, true);
4013
+ case AuthenticationScheme.SSH: return this.matchKeyBoundAccessToken(entity, filter, false);
4014
+ default: return true;
4015
+ }
4016
+ }
4017
+ matchKeyBoundAccessToken(entity, filter, requireKeyId) {
4018
+ if (!filter.keyId) return !requireKeyId;
4019
+ return this.matchKeyId(entity, filter.keyId);
3978
4020
  }
3979
4021
  /**
3980
4022
  * Returns true if the credential's keyId matches the one in the request, false otherwise
@@ -4088,7 +4130,7 @@ var DefaultStorageClass = class extends CacheManager {
4088
4130
  };
4089
4131
  //#endregion
4090
4132
  //#region node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.mjs
4091
- /*! @azure/msal-common v16.12.0 2026-08-04 */
4133
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
4092
4134
  /**
4093
4135
  * State of the performance event.
4094
4136
  *
@@ -4102,7 +4144,7 @@ const PerformanceEventStatus = {
4102
4144
  };
4103
4145
  //#endregion
4104
4146
  //#region node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.mjs
4105
- /*! @azure/msal-common v16.12.0 2026-08-04 */
4147
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
4106
4148
  var StubPerformanceClient = class {
4107
4149
  generateId() {
4108
4150
  return "callback-id";
@@ -4144,7 +4186,7 @@ var StubPerformanceClient = class {
4144
4186
  };
4145
4187
  //#endregion
4146
4188
  //#region node_modules/@azure/msal-common/dist/config/ClientConfiguration.mjs
4147
- /*! @azure/msal-common v16.12.0 2026-08-04 */
4189
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
4148
4190
  const DEFAULT_SYSTEM_OPTIONS$1 = {
4149
4191
  tokenRenewalOffsetSeconds: 300,
4150
4192
  preventCorsPreflight: false
@@ -4189,7 +4231,7 @@ const DEFAULT_TELEMETRY_OPTIONS$1 = { application: {
4189
4231
  * @returns Configuration
4190
4232
  * @internal
4191
4233
  */
4192
- function buildClientConfiguration({ authOptions: userAuthOptions, systemOptions: userSystemOptions, loggerOptions: userLoggerOption, storageInterface: storageImplementation, networkInterface: networkImplementation, cryptoInterface: cryptoImplementation, clientCredentials, libraryInfo, telemetry, serverTelemetryManager, persistencePlugin, serializableCache }) {
4234
+ function buildClientConfiguration({ authOptions: userAuthOptions, systemOptions: userSystemOptions, loggerOptions: userLoggerOption, storageInterface: storageImplementation, networkInterface: networkImplementation, cryptoInterface: cryptoImplementation, tokenBindingKeyManager, clientCredentials, libraryInfo, telemetry, serverTelemetryManager, persistencePlugin, serializableCache }) {
4193
4235
  const loggerOptions = {
4194
4236
  ...DEFAULT_LOGGER_IMPLEMENTATION,
4195
4237
  ...userLoggerOption
@@ -4201,9 +4243,10 @@ function buildClientConfiguration({ authOptions: userAuthOptions, systemOptions:
4201
4243
  ...userSystemOptions
4202
4244
  },
4203
4245
  loggerOptions,
4204
- storageInterface: storageImplementation || new DefaultStorageClass(userAuthOptions.clientId, DEFAULT_CRYPTO_IMPLEMENTATION, new Logger(loggerOptions, "@azure/msal-common", "16.12.0"), new StubPerformanceClient()),
4246
+ storageInterface: storageImplementation || new DefaultStorageClass(userAuthOptions.clientId, DEFAULT_CRYPTO_IMPLEMENTATION, new Logger(loggerOptions, "@azure/msal-common", "16.13.0"), new StubPerformanceClient()),
4205
4247
  networkInterface: networkImplementation || DEFAULT_NETWORK_IMPLEMENTATION,
4206
4248
  cryptoInterface: cryptoImplementation || DEFAULT_CRYPTO_IMPLEMENTATION,
4249
+ tokenBindingKeyManager: tokenBindingKeyManager || DEFAULT_TOKEN_BINDING_KEY_MANAGER,
4207
4250
  clientCredentials: clientCredentials || DEFAULT_CLIENT_CREDENTIALS,
4208
4251
  libraryInfo: {
4209
4252
  ...DEFAULT_LIBRARY_INFO,
@@ -4240,7 +4283,7 @@ function isOidcProtocolMode(config) {
4240
4283
  }
4241
4284
  //#endregion
4242
4285
  //#region node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.mjs
4243
- /*! @azure/msal-common v16.12.0 2026-08-04 */
4286
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
4244
4287
  /**
4245
4288
  * This class instance helps track the memory changes facilitating
4246
4289
  * decisions to read from and write to the persistent cache
@@ -4263,13 +4306,101 @@ function isOidcProtocolMode(config) {
4263
4306
  }
4264
4307
  };
4265
4308
  //#endregion
4309
+ //#region node_modules/@azure/msal-common/dist/error/JoseHeaderError.mjs
4310
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
4311
+ /**
4312
+ * Error thrown when there is an error in the client code running on the browser.
4313
+ */
4314
+ var JoseHeaderError = class JoseHeaderError extends AuthError {
4315
+ constructor(errorCode, correlationId, errorMessage) {
4316
+ super(errorCode, correlationId, errorMessage);
4317
+ this.name = "JoseHeaderError";
4318
+ Object.setPrototypeOf(this, JoseHeaderError.prototype);
4319
+ }
4320
+ };
4321
+ /** Returns JoseHeaderError object */
4322
+ function createJoseHeaderError(code, correlationId) {
4323
+ return new JoseHeaderError(code, correlationId);
4324
+ }
4325
+ //#endregion
4326
+ //#region node_modules/@azure/msal-common/dist/utils/ObjectUtils.mjs
4327
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
4328
+ /**
4329
+ * Checks whether a value is a plain JSON-like object.
4330
+ * Allows objects with null prototypes, but rejects arrays and object subclasses.
4331
+ */
4332
+ function isPlainObject(value) {
4333
+ if (typeof value !== "object" || value === null || Object.prototype.toString.call(value) !== "[object Object]") return false;
4334
+ if (Object.getPrototypeOf(value) === null) return true;
4335
+ let proto = value;
4336
+ while (Object.getPrototypeOf(proto) !== null) proto = Object.getPrototypeOf(proto);
4337
+ return Object.getPrototypeOf(value) === proto;
4338
+ }
4339
+ //#endregion
4340
+ //#region node_modules/@azure/msal-common/dist/error/JoseHeaderErrorCodes.mjs
4341
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
4342
+ const missingKidError = "missing_kid_error";
4343
+ const missingAlgError = "missing_alg_error";
4344
+ const missingJwkError = "missing_jwk_error";
4345
+ const invalidJwkError = "invalid_jwk_error";
4346
+ //#endregion
4347
+ //#region node_modules/@azure/msal-common/dist/crypto/JoseHeader.mjs
4348
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
4349
+ /** @internal */
4350
+ var JoseHeader = class JoseHeader {
4351
+ constructor(options, correlationId) {
4352
+ if (typeof options.alg !== "string" || !options.alg) throw createJoseHeaderError(missingAlgError, correlationId);
4353
+ this.typ = options.typ;
4354
+ this.alg = options.alg;
4355
+ this.kid = options.kid;
4356
+ this.jwk = options.jwk;
4357
+ }
4358
+ /**
4359
+ * Builds SignedHttpRequest formatted JOSE Header from the
4360
+ * JOSE Header options provided or previously set on the object.
4361
+ * Throws if keyId or algorithm aren't provided since they are required for Access Token Binding.
4362
+ * @param shrHeaderOptions
4363
+ * @param correlationId
4364
+ * @returns
4365
+ */
4366
+ static getShrHeader(shrHeaderOptions, correlationId) {
4367
+ if (!shrHeaderOptions.kid) throw createJoseHeaderError(missingKidError, correlationId);
4368
+ if (!shrHeaderOptions.alg) throw createJoseHeaderError(missingAlgError, correlationId);
4369
+ return new JoseHeader({
4370
+ typ: shrHeaderOptions.typ || JsonWebTokenTypes.Pop,
4371
+ kid: shrHeaderOptions.kid,
4372
+ alg: shrHeaderOptions.alg
4373
+ }, correlationId);
4374
+ }
4375
+ /**
4376
+ * Builds a DPoP formatted JOSE Header from the JOSE Header options provided.
4377
+ * Throws if public JWK or algorithm aren't provided since they are required for DPoP.
4378
+ * @param dpopHeaderOptions
4379
+ * @param correlationId
4380
+ * @returns
4381
+ */
4382
+ static getDpopHeader(dpopHeaderOptions, correlationId) {
4383
+ if (!isPlainObject(dpopHeaderOptions.jwk)) throw createJoseHeaderError(missingJwkError, correlationId);
4384
+ if (!dpopHeaderOptions.alg) throw createJoseHeaderError(missingAlgError, correlationId);
4385
+ if (Object.keys(dpopHeaderOptions.jwk).length === 0) throw createJoseHeaderError(invalidJwkError, correlationId);
4386
+ return new JoseHeader({
4387
+ typ: JsonWebTokenTypes.Dpop,
4388
+ alg: dpopHeaderOptions.alg,
4389
+ jwk: dpopHeaderOptions.jwk
4390
+ }, correlationId);
4391
+ }
4392
+ };
4393
+ //#endregion
4266
4394
  //#region node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.mjs
4267
- /*! @azure/msal-common v16.12.0 2026-08-04 */
4395
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
4268
4396
  const KeyLocation = { SW: "sw" };
4397
+ const SHR_TOKEN_BINDING_KEY_TYPE = "shr";
4398
+ const SHR_TOKEN_BINDING_KEY_ALGORITHM = JsonWebTokenAlgorithms.RS256;
4269
4399
  /** @internal */
4270
4400
  var PopTokenGenerator = class {
4271
- constructor(cryptoUtils, performanceClient) {
4401
+ constructor(cryptoUtils, tokenBindingKeyManager, performanceClient) {
4272
4402
  this.cryptoUtils = cryptoUtils;
4403
+ this.tokenBindingKeyManager = tokenBindingKeyManager;
4273
4404
  this.performanceClient = performanceClient;
4274
4405
  }
4275
4406
  /**
@@ -4293,7 +4424,11 @@ var PopTokenGenerator = class {
4293
4424
  */
4294
4425
  async generateKid(request) {
4295
4426
  return {
4296
- kid: await this.cryptoUtils.getPublicKeyThumbprint(request),
4427
+ kid: await this.tokenBindingKeyManager.provisionTokenBindingKey({
4428
+ correlationId: request.correlationId,
4429
+ tokenBindingKeyType: SHR_TOKEN_BINDING_KEY_TYPE,
4430
+ tokenBindingKeyAlgorithm: SHR_TOKEN_BINDING_KEY_ALGORITHM
4431
+ }),
4297
4432
  xms_ksl: KeyLocation.SW
4298
4433
  };
4299
4434
  }
@@ -4317,7 +4452,15 @@ var PopTokenGenerator = class {
4317
4452
  async signPayload(payload, keyId, request, claims) {
4318
4453
  const { resourceRequestMethod, resourceRequestUri, shrClaims, shrNonce, shrOptions } = request;
4319
4454
  const resourceUrlComponents = (resourceRequestUri ? new UrlString(resourceRequestUri, request.correlationId) : void 0)?.getUrlComponents();
4320
- return this.cryptoUtils.signJwt({
4455
+ const publicKeyJwk = await this.tokenBindingKeyManager.getTokenBindingPublicKeyJwk(keyId, request.correlationId);
4456
+ const encodedKeyIdThumbprint = this.cryptoUtils.base64UrlEncode(JSON.stringify({ kid: keyId }));
4457
+ const shrAlgorithm = shrOptions?.header?.alg || publicKeyJwk.alg || SHR_TOKEN_BINDING_KEY_ALGORITHM;
4458
+ const shrHeader = JoseHeader.getShrHeader({
4459
+ ...shrOptions?.header,
4460
+ alg: shrAlgorithm,
4461
+ kid: encodedKeyIdThumbprint
4462
+ }, request.correlationId);
4463
+ const shrPayload = {
4321
4464
  at: payload,
4322
4465
  ts: nowSeconds(),
4323
4466
  m: resourceRequestMethod?.toUpperCase(),
@@ -4326,13 +4469,15 @@ var PopTokenGenerator = class {
4326
4469
  p: resourceUrlComponents?.AbsolutePath,
4327
4470
  q: resourceUrlComponents?.QueryString ? [[], resourceUrlComponents.QueryString] : void 0,
4328
4471
  client_claims: shrClaims || void 0,
4329
- ...claims
4330
- }, keyId, shrOptions, request.correlationId);
4472
+ ...claims,
4473
+ cnf: { jwk: publicKeyJwk }
4474
+ };
4475
+ return this.cryptoUtils.signTokenBindingJwt(shrHeader, shrPayload, keyId, request.correlationId);
4331
4476
  }
4332
4477
  };
4333
4478
  //#endregion
4334
4479
  //#region node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthErrorCodes.mjs
4335
- /*! @azure/msal-common v16.12.0 2026-08-04 */
4480
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
4336
4481
  /**
4337
4482
  * MSAL-defined interaction required error code indicating no tokens are found in cache.
4338
4483
  * @public
@@ -4345,7 +4490,7 @@ const noTokensFound = "no_tokens_found";
4345
4490
  const refreshTokenExpired = "refresh_token_expired";
4346
4491
  //#endregion
4347
4492
  //#region node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.mjs
4348
- /*! @azure/msal-common v16.12.0 2026-08-04 */
4493
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
4349
4494
  /**
4350
4495
  * InteractionRequiredServerErrorMessage contains string constants used by error codes and messages returned by the server indicating interaction is required
4351
4496
  */
@@ -4403,7 +4548,7 @@ function createInteractionRequiredAuthError(errorCode, correlationId, errorMessa
4403
4548
  }
4404
4549
  //#endregion
4405
4550
  //#region node_modules/@azure/msal-common/dist/error/ServerError.mjs
4406
- /*! @azure/msal-common v16.12.0 2026-08-04 */
4551
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
4407
4552
  /**
4408
4553
  * Error thrown when there is an error with the server code, for example, unavailability.
4409
4554
  */
@@ -4418,7 +4563,7 @@ var ServerError = class ServerError extends AuthError {
4418
4563
  };
4419
4564
  //#endregion
4420
4565
  //#region node_modules/@azure/msal-common/dist/utils/ProtocolUtils.mjs
4421
- /*! @azure/msal-common v16.12.0 2026-08-04 */
4566
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
4422
4567
  /**
4423
4568
  * Parses the state into the RequestStateObject, which contains the LibraryState info and the state passed by the user.
4424
4569
  * @param base64Decode
@@ -4444,16 +4589,17 @@ function parseRequestState(base64Decode, state, correlationId) {
4444
4589
  }
4445
4590
  //#endregion
4446
4591
  //#region node_modules/@azure/msal-common/dist/response/ResponseHandler.mjs
4447
- /*! @azure/msal-common v16.12.0 2026-08-04 */
4592
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
4448
4593
  /**
4449
4594
  * Class that handles response parsing.
4450
4595
  * @internal
4451
4596
  */
4452
4597
  var ResponseHandler = class ResponseHandler {
4453
- constructor(clientId, cacheStorage, cryptoObj, logger, performanceClient, serializableCache, persistencePlugin) {
4598
+ constructor(clientId, cacheStorage, cryptoObj, logger, performanceClient, serializableCache, persistencePlugin, tokenBindingKeyManager = DEFAULT_TOKEN_BINDING_KEY_MANAGER) {
4454
4599
  this.clientId = clientId;
4455
4600
  this.cacheStorage = cacheStorage;
4456
4601
  this.cryptoObj = cryptoObj;
4602
+ this.tokenBindingKeyManager = tokenBindingKeyManager;
4457
4603
  this.logger = logger;
4458
4604
  this.performanceClient = performanceClient;
4459
4605
  this.serializableCache = serializableCache;
@@ -4515,7 +4661,12 @@ var ResponseHandler = class ResponseHandler {
4515
4661
  }, request.correlationId).length < 1) {
4516
4662
  this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache", request.correlationId);
4517
4663
  this.performanceClient?.addFields({ acntLoggedOut: true }, request.correlationId);
4518
- return await ResponseHandler.generateAuthenticationResult(this.cryptoObj, authority, cacheRecord, false, request, this.performanceClient, idTokenClaims, requestStateObj, void 0, serverRequestId);
4664
+ return await ResponseHandler.generateAuthenticationResult(this.cryptoObj, authority, cacheRecord, false, request, this.performanceClient, {
4665
+ idTokenClaims,
4666
+ requestState: requestStateObj,
4667
+ requestId: serverRequestId,
4668
+ tokenBindingKeyManager: this.tokenBindingKeyManager
4669
+ });
4519
4670
  }
4520
4671
  }
4521
4672
  await this.cacheStorage.saveCacheRecord(cacheRecord, request.correlationId, isKmsi(idTokenClaims || {}), apiId, request.storeInCache);
@@ -4525,7 +4676,13 @@ var ResponseHandler = class ResponseHandler {
4525
4676
  await this.persistencePlugin.afterCacheAccess(cacheContext);
4526
4677
  }
4527
4678
  }
4528
- return ResponseHandler.generateAuthenticationResult(this.cryptoObj, authority, cacheRecord, false, request, this.performanceClient, idTokenClaims, requestStateObj, serverTokenResponse, serverRequestId);
4679
+ return ResponseHandler.generateAuthenticationResult(this.cryptoObj, authority, cacheRecord, false, request, this.performanceClient, {
4680
+ idTokenClaims,
4681
+ requestState: requestStateObj,
4682
+ serverTokenResponse,
4683
+ requestId: serverRequestId,
4684
+ tokenBindingKeyManager: this.tokenBindingKeyManager
4685
+ });
4529
4686
  }
4530
4687
  /**
4531
4688
  * Generates CacheRecord
@@ -4589,7 +4746,8 @@ var ResponseHandler = class ResponseHandler {
4589
4746
  * @param fromTokenCache
4590
4747
  * @param stateString
4591
4748
  */
4592
- static async generateAuthenticationResult(cryptoObj, authority, cacheRecord, fromTokenCache, request, performanceClient, idTokenClaims, requestState, serverTokenResponse, requestId) {
4749
+ static async generateAuthenticationResult(cryptoObj, authority, cacheRecord, fromTokenCache, request, performanceClient, options = {}) {
4750
+ const { idTokenClaims, requestState, serverTokenResponse, requestId, tokenBindingKeyManager = DEFAULT_TOKEN_BINDING_KEY_MANAGER } = options;
4593
4751
  let accessToken = "";
4594
4752
  let responseScopes = [];
4595
4753
  let expiresOn = null;
@@ -4598,7 +4756,7 @@ var ResponseHandler = class ResponseHandler {
4598
4756
  let familyId = "";
4599
4757
  if (cacheRecord.accessToken) {
4600
4758
  if (cacheRecord.accessToken.tokenType === AuthenticationScheme.POP && !request.popKid) {
4601
- const popTokenGenerator = new PopTokenGenerator(cryptoObj, performanceClient);
4759
+ const popTokenGenerator = new PopTokenGenerator(cryptoObj, tokenBindingKeyManager, performanceClient);
4602
4760
  const { secret, keyId } = cacheRecord.accessToken;
4603
4761
  if (!keyId) throw createClientAuthError(keyIdMissing, request.correlationId);
4604
4762
  accessToken = await popTokenGenerator.signPopToken(secret, keyId, request);
@@ -4677,14 +4835,14 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
4677
4835
  }
4678
4836
  //#endregion
4679
4837
  //#region node_modules/@azure/msal-common/dist/account/CcsCredential.mjs
4680
- /*! @azure/msal-common v16.12.0 2026-08-04 */
4838
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
4681
4839
  const CcsCredentialType = {
4682
4840
  HOME_ACCOUNT_ID: "home_account_id",
4683
4841
  UPN: "UPN"
4684
4842
  };
4685
4843
  //#endregion
4686
4844
  //#region node_modules/@azure/msal-common/dist/utils/ClientAssertionUtils.mjs
4687
- /*! @azure/msal-common v16.12.0 2026-08-04 */
4845
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
4688
4846
  async function getClientAssertion(clientAssertion, clientId, tokenEndpoint, fmiPath) {
4689
4847
  if (typeof clientAssertion === "string") return clientAssertion;
4690
4848
  else return clientAssertion({
@@ -4695,7 +4853,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint, fmiP
4695
4853
  }
4696
4854
  //#endregion
4697
4855
  //#region node_modules/@azure/msal-common/dist/network/RequestThumbprint.mjs
4698
- /*! @azure/msal-common v16.12.0 2026-08-04 */
4856
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
4699
4857
  function getRequestThumbprint(clientId, request, homeAccountId) {
4700
4858
  return {
4701
4859
  clientId,
@@ -4715,7 +4873,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
4715
4873
  }
4716
4874
  //#endregion
4717
4875
  //#region node_modules/@azure/msal-common/dist/network/ThrottlingUtils.mjs
4718
- /*! @azure/msal-common v16.12.0 2026-08-04 */
4876
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
4719
4877
  /** @internal */
4720
4878
  var ThrottlingUtils = class ThrottlingUtils {
4721
4879
  /**
@@ -4791,7 +4949,7 @@ var ThrottlingUtils = class ThrottlingUtils {
4791
4949
  };
4792
4950
  //#endregion
4793
4951
  //#region node_modules/@azure/msal-common/dist/error/NetworkError.mjs
4794
- /*! @azure/msal-common v16.12.0 2026-08-04 */
4952
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
4795
4953
  /**
4796
4954
  * Represents network related errors
4797
4955
  */
@@ -4818,7 +4976,7 @@ function createNetworkError(error, httpStatus, responseHeaders, additionalError)
4818
4976
  }
4819
4977
  //#endregion
4820
4978
  //#region node_modules/@azure/msal-common/dist/protocol/Token.mjs
4821
- /*! @azure/msal-common v16.12.0 2026-08-04 */
4979
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
4822
4980
  /**
4823
4981
  * Creates default headers for requests to token endpoint
4824
4982
  */
@@ -4913,7 +5071,7 @@ async function sendPostRequest(thumbprint, tokenEndpoint, options, correlationId
4913
5071
  }
4914
5072
  //#endregion
4915
5073
  //#region node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.mjs
4916
- /*! @azure/msal-common v16.12.0 2026-08-04 */
5074
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
4917
5075
  /**
4918
5076
  * Oauth2.0 Authorization Code client
4919
5077
  * @internal
@@ -4942,7 +5100,7 @@ var AuthorizationCodeClient = class {
4942
5100
  const reqTimestamp = nowSeconds();
4943
5101
  const response = await invokeAsync(this.executeTokenRequest.bind(this), AuthClientExecuteTokenRequest, this.logger, this.performanceClient, request.correlationId)(this.authority, request, this.serverTelemetryManager);
4944
5102
  const requestId = response.headers?.[HeaderNames.X_MS_REQUEST_ID];
4945
- const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.performanceClient, this.config.serializableCache, this.config.persistencePlugin);
5103
+ const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.performanceClient, this.config.serializableCache, this.config.persistencePlugin, this.config.tokenBindingKeyManager);
4946
5104
  responseHandler.validateTokenResponse(response.body, request.correlationId);
4947
5105
  return invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), HandleServerTokenResponse, this.logger, this.performanceClient, request.correlationId)(response.body, this.authority, reqTimestamp, request, apiId, authCodePayload, void 0, void 0, void 0, requestId);
4948
5106
  }
@@ -5008,7 +5166,7 @@ var AuthorizationCodeClient = class {
5008
5166
  addGrantType(parameters, GrantType.AUTHORIZATION_CODE_GRANT);
5009
5167
  addClientInfo(parameters);
5010
5168
  if (request.authenticationScheme === AuthenticationScheme.POP) {
5011
- const popTokenGenerator = new PopTokenGenerator(this.cryptoUtils, this.performanceClient);
5169
+ const popTokenGenerator = new PopTokenGenerator(this.cryptoUtils, this.config.tokenBindingKeyManager, this.performanceClient);
5012
5170
  let reqCnfData;
5013
5171
  if (!request.popKid) reqCnfData = (await invokeAsync(popTokenGenerator.generateCnf.bind(popTokenGenerator), PopTokenGenerateCnf, this.logger, this.performanceClient, request.correlationId)(request, this.logger)).reqCnfString;
5014
5172
  else reqCnfData = this.cryptoUtils.encodeKid(request.popKid);
@@ -5072,7 +5230,7 @@ var AuthorizationCodeClient = class {
5072
5230
  };
5073
5231
  //#endregion
5074
5232
  //#region node_modules/@azure/msal-common/dist/protocol/Authorize.mjs
5075
- /*! @azure/msal-common v16.12.0 2026-08-04 */
5233
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
5076
5234
  /**
5077
5235
  * Returns map of parameters that are applicable to all calls to /authorize whether using PKCE or EAR
5078
5236
  * @param config
@@ -5183,7 +5341,7 @@ function extractLoginHint(account) {
5183
5341
  }
5184
5342
  //#endregion
5185
5343
  //#region node_modules/@azure/msal-common/dist/client/RefreshTokenClient.mjs
5186
- /*! @azure/msal-common v16.12.0 2026-08-04 */
5344
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
5187
5345
  const DEFAULT_REFRESH_TOKEN_EXPIRATION_OFFSET_SECONDS = 300;
5188
5346
  /**
5189
5347
  * OAuth2.0 refresh token client
@@ -5204,7 +5362,7 @@ var RefreshTokenClient = class {
5204
5362
  const reqTimestamp = nowSeconds();
5205
5363
  const response = await invokeAsync(this.executeTokenRequest.bind(this), RefreshTokenClientExecuteTokenRequest, this.logger, this.performanceClient, request.correlationId)(request, this.authority);
5206
5364
  const requestId = response.headers?.[HeaderNames.X_MS_REQUEST_ID];
5207
- const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.performanceClient, this.config.serializableCache, this.config.persistencePlugin);
5365
+ const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.performanceClient, this.config.serializableCache, this.config.persistencePlugin, this.config.tokenBindingKeyManager);
5208
5366
  responseHandler.validateTokenResponse(response.body, request.correlationId);
5209
5367
  return invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), HandleServerTokenResponse, this.logger, this.performanceClient, request.correlationId)(response.body, this.authority, reqTimestamp, request, apiId, void 0, void 0, true, request.forceCache, requestId);
5210
5368
  }
@@ -5300,7 +5458,7 @@ var RefreshTokenClient = class {
5300
5458
  addClientAssertionType(parameters, clientAssertion.assertionType);
5301
5459
  }
5302
5460
  if (request.authenticationScheme === AuthenticationScheme.POP) {
5303
- const popTokenGenerator = new PopTokenGenerator(this.cryptoUtils, this.performanceClient);
5461
+ const popTokenGenerator = new PopTokenGenerator(this.cryptoUtils, this.config.tokenBindingKeyManager, this.performanceClient);
5304
5462
  let reqCnfData;
5305
5463
  if (!request.popKid) reqCnfData = (await invokeAsync(popTokenGenerator.generateCnf.bind(popTokenGenerator), PopTokenGenerateCnf, this.logger, this.performanceClient, request.correlationId)(request, this.logger)).reqCnfString;
5306
5464
  else reqCnfData = this.cryptoUtils.encodeKid(request.popKid);
@@ -5328,7 +5486,7 @@ var RefreshTokenClient = class {
5328
5486
  };
5329
5487
  //#endregion
5330
5488
  //#region node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.mjs
5331
- /*! @azure/msal-common v16.12.0 2026-08-04 */
5489
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
5332
5490
  const skuGroupSeparator = ",";
5333
5491
  const skuValueSeparator = "|";
5334
5492
  function makeExtraSkuString(params) {
@@ -5523,7 +5681,7 @@ var ServerTelemetryManager = class ServerTelemetryManager {
5523
5681
  };
5524
5682
  //#endregion
5525
5683
  //#region node_modules/@azure/msal-common/dist/client/SilentFlowClient.mjs
5526
- /*! @azure/msal-common v16.12.0 2026-08-04 */
5684
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
5527
5685
  /** @internal */
5528
5686
  var SilentFlowClient = class {
5529
5687
  constructor(configuration, performanceClient) {
@@ -5586,12 +5744,15 @@ var SilentFlowClient = class {
5586
5744
  async generateResultFromCacheRecord(cacheRecord, request) {
5587
5745
  let idTokenClaims;
5588
5746
  if (cacheRecord.idToken) idTokenClaims = extractTokenClaims(cacheRecord.idToken.secret, this.config.cryptoInterface.base64Decode, request.correlationId);
5589
- return ResponseHandler.generateAuthenticationResult(this.cryptoUtils, this.authority, cacheRecord, true, request, this.performanceClient, idTokenClaims);
5747
+ return ResponseHandler.generateAuthenticationResult(this.cryptoUtils, this.authority, cacheRecord, true, request, this.performanceClient, {
5748
+ idTokenClaims,
5749
+ tokenBindingKeyManager: this.config.tokenBindingKeyManager
5750
+ });
5590
5751
  }
5591
5752
  };
5592
5753
  //#endregion
5593
5754
  //#region node_modules/@azure/msal-common/dist/request/BaseAuthRequest.mjs
5594
- /*! @azure/msal-common v16.12.0 2026-08-04 */
5755
+ /*! @azure/msal-common v16.13.0 2026-08-18 */
5595
5756
  /**
5596
5757
  * Helper to enforce resource parameter presence in token requests when isMcp is set in the configuration.
5597
5758
  * If resource parameter is set in both the request and in extraQueryParameters or extraParameters, an error will be thrown.
@@ -5610,7 +5771,7 @@ function containsResourceParam(params) {
5610
5771
  }
5611
5772
  //#endregion
5612
5773
  //#region node_modules/@azure/msal-node/dist/cache/serializer/Deserializer.mjs
5613
- /*! @azure/msal-node v5.5.0 2026-08-04 */
5774
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
5614
5775
  /**
5615
5776
  * This class deserializes cache entities read from the file into in-memory object types defined internally
5616
5777
  * @internal
@@ -5758,7 +5919,7 @@ var Deserializer = class {
5758
5919
  };
5759
5920
  }
5760
5921
  };
5761
- /*! @azure/msal-node v5.5.0 2026-08-04 */
5922
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
5762
5923
  /**
5763
5924
  * Managed Identity Query Parameters - used in network requests
5764
5925
  */
@@ -5871,7 +6032,7 @@ const LOOPBACK_SERVER_CONSTANTS = {
5871
6032
  };
5872
6033
  //#endregion
5873
6034
  //#region node_modules/@azure/msal-node/dist/network/HttpClient.mjs
5874
- /*! @azure/msal-node v5.5.0 2026-08-04 */
6035
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
5875
6036
  /**
5876
6037
  * HTTP client implementation using Node.js native fetch API.
5877
6038
  *
@@ -6008,7 +6169,7 @@ function getFetchHeaders(options) {
6008
6169
  }
6009
6170
  //#endregion
6010
6171
  //#region node_modules/@azure/msal-node/dist/error/ManagedIdentityErrorCodes.mjs
6011
- /*! @azure/msal-node v5.5.0 2026-08-04 */
6172
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
6012
6173
  const invalidFileExtension = "invalid_file_extension";
6013
6174
  const invalidFilePath = "invalid_file_path";
6014
6175
  const invalidManagedIdentityIdType = "invalid_managed_identity_id_type";
@@ -6021,6 +6182,7 @@ const unableToCreateCloudShell = "unable_to_create_cloud_shell";
6021
6182
  const unableToCreateSource = "unable_to_create_source";
6022
6183
  const unableToReadSecretFile = "unable_to_read_secret_file";
6023
6184
  const userAssignedNotAvailableAtRuntime = "user_assigned_not_available_at_runtime";
6185
+ const userAssignedManagedIdentityNotConfirmed = "user_assigned_managed_identity_not_confirmed";
6024
6186
  const wwwAuthenticateHeaderMissing = "www_authenticate_header_missing";
6025
6187
  const wwwAuthenticateHeaderUnsupportedFormat = "www_authenticate_header_unsupported_format";
6026
6188
  const MsiEnvironmentVariableUrlMalformedErrorCodes = {
@@ -6031,7 +6193,7 @@ const MsiEnvironmentVariableUrlMalformedErrorCodes = {
6031
6193
  };
6032
6194
  //#endregion
6033
6195
  //#region node_modules/@azure/msal-node/dist/error/ManagedIdentityError.mjs
6034
- /*! @azure/msal-node v5.5.0 2026-08-04 */
6196
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
6035
6197
  /**
6036
6198
  * ManagedIdentityErrorMessage class containing string constants used by error codes and messages.
6037
6199
  */
@@ -6052,8 +6214,9 @@ const ManagedIdentityErrorMessages = {
6052
6214
  [unableToCreateSource]: "Unable to create a Managed Identity source based on environment variables.",
6053
6215
  [unableToReadSecretFile]: "Unable to read the secret file.",
6054
6216
  [userAssignedNotAvailableAtRuntime]: "Service Fabric user assigned managed identity ClientId or ResourceId is not configurable at runtime.",
6055
- [wwwAuthenticateHeaderMissing]: "A 401 response was received form the Azure Arc Managed Identity, but the www-authenticate header is missing.",
6056
- [wwwAuthenticateHeaderUnsupportedFormat]: "A 401 response was received form the Azure Arc Managed Identity, but the www-authenticate header is in an unsupported format."
6217
+ [userAssignedManagedIdentityNotConfirmed]: "Azure Arc did not confirm the requested user-assigned managed identity in the token response. The agent likely does not support user-assigned managed identity and returned the system-assigned identity.",
6218
+ [wwwAuthenticateHeaderMissing]: "A 401 response was received from the Azure Arc Managed Identity, but the www-authenticate header is missing.",
6219
+ [wwwAuthenticateHeaderUnsupportedFormat]: "A 401 response was received from the Azure Arc Managed Identity, but the www-authenticate header is in an unsupported format."
6057
6220
  };
6058
6221
  var ManagedIdentityError = class ManagedIdentityError extends AuthError {
6059
6222
  constructor(errorCode, correlationId) {
@@ -6067,10 +6230,10 @@ function createManagedIdentityError(errorCode, correlationId) {
6067
6230
  }
6068
6231
  //#endregion
6069
6232
  //#region node_modules/@azure/msal-node/dist/config/ManagedIdentityId.mjs
6070
- /*! @azure/msal-node v5.5.0 2026-08-04 */
6233
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
6071
6234
  //#endregion
6072
6235
  //#region node_modules/@azure/msal-node/dist/error/NodeAuthError.mjs
6073
- /*! @azure/msal-node v5.5.0 2026-08-04 */
6236
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
6074
6237
  /**
6075
6238
  * NodeAuthErrorMessage class containing string constants used by error codes and messages.
6076
6239
  */
@@ -6174,7 +6337,7 @@ var NodeAuthError = class NodeAuthError extends AuthError {
6174
6337
  };
6175
6338
  //#endregion
6176
6339
  //#region node_modules/@azure/msal-node/dist/config/Configuration.mjs
6177
- /*! @azure/msal-node v5.5.0 2026-08-04 */
6340
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
6178
6341
  const DEFAULT_AUTH_OPTIONS = {
6179
6342
  clientId: "",
6180
6343
  authority: DEFAULT_AUTHORITY,
@@ -6249,7 +6412,7 @@ function buildAppConfiguration({ auth, broker, cache, system, telemetry }) {
6249
6412
  }
6250
6413
  //#endregion
6251
6414
  //#region node_modules/@azure/msal-node/dist/crypto/GuidGenerator.mjs
6252
- /*! @azure/msal-node v5.5.0 2026-08-04 */
6415
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
6253
6416
  var GuidGenerator = class {
6254
6417
  /**
6255
6418
  * Generates a random [RFC 4122](https://www.rfc-editor.org/rfc/rfc4122.txt) version 4 UUID. The UUID is generated using a
@@ -6268,7 +6431,7 @@ var GuidGenerator = class {
6268
6431
  };
6269
6432
  //#endregion
6270
6433
  //#region node_modules/@azure/msal-node/dist/utils/EncodingUtils.mjs
6271
- /*! @azure/msal-node v5.5.0 2026-08-04 */
6434
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
6272
6435
  var EncodingUtils = class EncodingUtils {
6273
6436
  /**
6274
6437
  * 'utf8': Multibyte encoded Unicode characters. Many web pages and other document formats use UTF-8.
@@ -6306,7 +6469,7 @@ var EncodingUtils = class EncodingUtils {
6306
6469
  };
6307
6470
  //#endregion
6308
6471
  //#region node_modules/@azure/msal-node/dist/crypto/HashUtils.mjs
6309
- /*! @azure/msal-node v5.5.0 2026-08-04 */
6472
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
6310
6473
  var HashUtils = class {
6311
6474
  /**
6312
6475
  * generate 'SHA256' hash
@@ -6318,7 +6481,7 @@ var HashUtils = class {
6318
6481
  };
6319
6482
  //#endregion
6320
6483
  //#region node_modules/@azure/msal-node/dist/crypto/PkceGenerator.mjs
6321
- /*! @azure/msal-node v5.5.0 2026-08-04 */
6484
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
6322
6485
  /**
6323
6486
  * https://tools.ietf.org/html/rfc7636#page-8
6324
6487
  */
@@ -6362,7 +6525,7 @@ var PkceGenerator = class {
6362
6525
  };
6363
6526
  //#endregion
6364
6527
  //#region node_modules/@azure/msal-node/dist/crypto/CryptoProvider.mjs
6365
- /*! @azure/msal-node v5.5.0 2026-08-04 */
6528
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
6366
6529
  /**
6367
6530
  * This class implements MSAL node's crypto interface, which allows it to perform base64 encoding and decoding, generating cryptographically random GUIDs and
6368
6531
  * implementing Proof Key for Code Exchange specs for the OAuth Authorization Code Flow using PKCE (rfc here: https://tools.ietf.org/html/rfc7636).
@@ -6416,29 +6579,29 @@ var CryptoProvider = class {
6416
6579
  return this.pkceGenerator.generatePkceCodes();
6417
6580
  }
6418
6581
  /**
6419
- * Generates a keypair, stores it and returns a thumbprint - not yet implemented for node
6420
- */
6421
- getPublicKeyThumbprint() {
6422
- throw new Error("Method not implemented.");
6423
- }
6424
- /**
6425
6582
  * Removes cryptographic keypair from key store matching the keyId passed in
6426
6583
  * @param kid - public key id
6584
+ * @param correlationId - correlation id
6427
6585
  */
6428
- removeTokenBindingKey() {
6586
+ removeTokenBindingKey(kid, correlationId) {
6429
6587
  throw new Error("Method not implemented.");
6430
6588
  }
6431
6589
  /**
6432
6590
  * Removes all cryptographic keys from Keystore
6591
+ * @param correlationId - correlation id
6433
6592
  */
6434
- clearKeystore() {
6593
+ clearKeystore(correlationId) {
6435
6594
  throw new Error("Method not implemented.");
6436
6595
  }
6437
6596
  /**
6438
- * Signs the given object as a jwt payload with private key retrieved by given kid - currently not implemented for node
6597
+ * Signs a compact JWT with a token-binding key - not yet implemented for node
6598
+ * @param header - JOSE header
6599
+ * @param payload - JWT payload
6600
+ * @param kid - public key id
6601
+ * @param correlationId - correlation id
6439
6602
  */
6440
- signJwt() {
6441
- throw new Error("Method not implemented.");
6603
+ signTokenBindingJwt(header, payload, kid, correlationId) {
6604
+ throw createClientAuthError(methodNotImplemented, correlationId);
6442
6605
  }
6443
6606
  /**
6444
6607
  * Returns the SHA-256 hash of an input string
@@ -6449,7 +6612,7 @@ var CryptoProvider = class {
6449
6612
  };
6450
6613
  //#endregion
6451
6614
  //#region node_modules/@azure/msal-node/dist/cache/CacheHelpers.mjs
6452
- /*! @azure/msal-node v5.5.0 2026-08-04 */
6615
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
6453
6616
  /**
6454
6617
  * Computes a combined hash from additional cache key components.
6455
6618
  *
@@ -6503,7 +6666,7 @@ function generateAccountKey(account) {
6503
6666
  }
6504
6667
  //#endregion
6505
6668
  //#region node_modules/@azure/msal-node/dist/cache/NodeStorage.mjs
6506
- /*! @azure/msal-node v5.5.0 2026-08-04 */
6669
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
6507
6670
  /**
6508
6671
  * This class implements Storage for node, reading cache from user specified storage location or an extension library
6509
6672
  * @public
@@ -6870,7 +7033,7 @@ var NodeStorage = class extends CacheManager {
6870
7033
  };
6871
7034
  //#endregion
6872
7035
  //#region node_modules/@azure/msal-node/dist/cache/TokenCache.mjs
6873
- /*! @azure/msal-node v5.5.0 2026-08-04 */
7036
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
6874
7037
  const defaultSerializedCache = {
6875
7038
  Account: {},
6876
7039
  IdToken: {},
@@ -11266,7 +11429,7 @@ var import_jsonwebtoken = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin
11266
11429
  TokenExpiredError: require_TokenExpiredError()
11267
11430
  };
11268
11431
  })))(), 1);
11269
- /*! @azure/msal-node v5.5.0 2026-08-04 */
11432
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
11270
11433
  const userTimeoutReached = "user_timeout_reached";
11271
11434
  const invalidAssertion = "invalid_assertion";
11272
11435
  const deviceCodePollingCancelled = "device_code_polling_cancelled";
@@ -11274,7 +11437,7 @@ const deviceCodeExpired = "device_code_expired";
11274
11437
  const deviceCodeUnknownError = "device_code_unknown_error";
11275
11438
  //#endregion
11276
11439
  //#region node_modules/@azure/msal-node/dist/client/ClientAssertion.mjs
11277
- /*! @azure/msal-node v5.5.0 2026-08-04 */
11440
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
11278
11441
  /**
11279
11442
  * Client assertion of type jwt-bearer used in confidential client flows
11280
11443
  * @public
@@ -11382,12 +11545,12 @@ var ClientAssertion = class ClientAssertion {
11382
11545
  };
11383
11546
  //#endregion
11384
11547
  //#region node_modules/@azure/msal-node/dist/packageMetadata.mjs
11385
- /*! @azure/msal-node v5.5.0 2026-08-04 */
11548
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
11386
11549
  const name = "@azure/msal-node";
11387
- const version = "5.5.0";
11550
+ const version = "5.6.0";
11388
11551
  //#endregion
11389
11552
  //#region node_modules/@azure/msal-node/dist/client/BaseClient.mjs
11390
- /*! @azure/msal-node v5.5.0 2026-08-04 */
11553
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
11391
11554
  /**
11392
11555
  * Base application class which will construct requests to send to and handle responses from the Microsoft STS using the authorization code flow.
11393
11556
  * @internal
@@ -11439,7 +11602,7 @@ var BaseClient = class {
11439
11602
  };
11440
11603
  //#endregion
11441
11604
  //#region node_modules/@azure/msal-node/dist/client/UsernamePasswordClient.mjs
11442
- /*! @azure/msal-node v5.5.0 2026-08-04 */
11605
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
11443
11606
  /**
11444
11607
  * Oauth2.0 Password grant client
11445
11608
  * Note: We are only supporting public clients for password grant and for purely testing purposes
@@ -11459,7 +11622,7 @@ var UsernamePasswordClient = class extends BaseClient {
11459
11622
  this.logger.info("in acquireToken call in username-password client", request.correlationId);
11460
11623
  const reqTimestamp = nowSeconds();
11461
11624
  const response = await this.executeTokenRequest(this.authority, request);
11462
- const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.performanceClient, this.config.serializableCache, this.config.persistencePlugin);
11625
+ const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.performanceClient, this.config.serializableCache, this.config.persistencePlugin, this.config.tokenBindingKeyManager);
11463
11626
  responseHandler.validateTokenResponse(response.body, request.correlationId);
11464
11627
  return responseHandler.handleServerTokenResponse(response.body, this.authority, reqTimestamp, request, ApiId.acquireTokenByUsernamePassword);
11465
11628
  }
@@ -11520,7 +11683,7 @@ var UsernamePasswordClient = class extends BaseClient {
11520
11683
  };
11521
11684
  //#endregion
11522
11685
  //#region node_modules/@azure/msal-node/dist/protocol/Authorize.mjs
11523
- /*! @azure/msal-node v5.5.0 2026-08-04 */
11686
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
11524
11687
  /**
11525
11688
  * Constructs the full /authorize URL with request parameters
11526
11689
  * @param config
@@ -11549,7 +11712,7 @@ function getAuthCodeRequestUrl(config, authority, request, logger) {
11549
11712
  }
11550
11713
  //#endregion
11551
11714
  //#region node_modules/@azure/msal-node/dist/client/ClientApplication.mjs
11552
- /*! @azure/msal-node v5.5.0 2026-08-04 */
11715
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
11553
11716
  /**
11554
11717
  * Base abstract class for all ClientApplications - public and confidential
11555
11718
  * @public
@@ -11597,14 +11760,20 @@ var ClientApplication = class {
11597
11760
  */
11598
11761
  async acquireTokenByCode(request, authCodePayLoad) {
11599
11762
  this.logger.info("acquireTokenByCode called", request.correlationId || "");
11600
- if (request.state && authCodePayLoad) {
11763
+ let validatedAuthCodePayload = authCodePayLoad;
11764
+ if (request.state && validatedAuthCodePayload) {
11601
11765
  this.logger.info("acquireTokenByCode - validating state", request.correlationId || "");
11602
- this.validateState(request.state, authCodePayLoad.state || "", request.correlationId || "");
11603
- authCodePayLoad = {
11604
- ...authCodePayLoad,
11766
+ this.validateState(request.state, validatedAuthCodePayload.state || "", request.correlationId || "");
11767
+ validatedAuthCodePayload = {
11768
+ ...validatedAuthCodePayload,
11605
11769
  state: ""
11606
11770
  };
11607
11771
  }
11772
+ if (request.nonce) validatedAuthCodePayload = {
11773
+ ...validatedAuthCodePayload,
11774
+ code: request.code,
11775
+ nonce: request.nonce
11776
+ };
11608
11777
  const validRequest = {
11609
11778
  ...request,
11610
11779
  ...await this.initializeBaseRequest(request),
@@ -11615,7 +11784,7 @@ var ClientApplication = class {
11615
11784
  const discoveredAuthority = await this.createAuthority(validRequest.authority, validRequest.correlationId, void 0, request.azureCloudOptions);
11616
11785
  const authorizationCodeClient = new AuthorizationCodeClient(await this.buildOauthClientConfiguration(discoveredAuthority, validRequest.correlationId, validRequest.redirectUri, serverTelemetryManager), new StubPerformanceClient());
11617
11786
  this.logger.verbose("Auth code client created", validRequest.correlationId);
11618
- return await authorizationCodeClient.acquireToken(validRequest, ApiId.acquireTokenByCode, authCodePayLoad);
11787
+ return await authorizationCodeClient.acquireToken(validRequest, ApiId.acquireTokenByCode, validatedAuthCodePayload);
11619
11788
  } catch (e) {
11620
11789
  if (e instanceof AuthError) e.correlationId = validRequest.correlationId;
11621
11790
  serverTelemetryManager.cacheFailedRequest(e);
@@ -11862,7 +12031,7 @@ var ClientApplication = class {
11862
12031
  };
11863
12032
  //#endregion
11864
12033
  //#region node_modules/@azure/msal-node/dist/network/LoopbackClient.mjs
11865
- /*! @azure/msal-node v5.5.0 2026-08-04 */
12034
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
11866
12035
  var LoopbackClient = class {
11867
12036
  constructor(preferredPort) {
11868
12037
  this.preferredPort = preferredPort;
@@ -11985,7 +12154,7 @@ var LoopbackClient = class {
11985
12154
  };
11986
12155
  //#endregion
11987
12156
  //#region node_modules/@azure/msal-node/dist/client/DeviceCodeClient.mjs
11988
- /*! @azure/msal-node v5.5.0 2026-08-04 */
12157
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
11989
12158
  /**
11990
12159
  * OAuth2.0 Device code client
11991
12160
  * @public
@@ -12004,7 +12173,7 @@ var DeviceCodeClient = class extends BaseClient {
12004
12173
  request.deviceCodeCallback(deviceCodeResponse);
12005
12174
  const reqTimestamp = nowSeconds();
12006
12175
  const response = await this.acquireTokenWithDeviceCode(request, deviceCodeResponse);
12007
- const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.performanceClient, this.config.serializableCache, this.config.persistencePlugin);
12176
+ const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.performanceClient, this.config.serializableCache, this.config.persistencePlugin, this.config.tokenBindingKeyManager);
12008
12177
  responseHandler.validateTokenResponse(response, request.correlationId);
12009
12178
  return responseHandler.handleServerTokenResponse(response, this.authority, reqTimestamp, request, ApiId.acquireTokenByDeviceCode);
12010
12179
  }
@@ -12159,7 +12328,7 @@ var DeviceCodeClient = class extends BaseClient {
12159
12328
  };
12160
12329
  //#endregion
12161
12330
  //#region node_modules/@azure/msal-node/dist/client/PublicClientApplication.mjs
12162
- /*! @azure/msal-node v5.5.0 2026-08-04 */
12331
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
12163
12332
  /**
12164
12333
  * This class is to be used to acquire tokens for public client applications (desktop, mobile). Public client applications
12165
12334
  * are not trusted to safely store application secrets, and therefore can only request tokens in the name of an user.
@@ -12401,19 +12570,19 @@ var PublicClientApplication = class extends ClientApplication {
12401
12570
  };
12402
12571
  //#endregion
12403
12572
  //#region node_modules/@azure/msal-node/dist/client/ClientCredentialClient.mjs
12404
- /*! @azure/msal-node v5.5.0 2026-08-04 */
12573
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
12405
12574
  //#endregion
12406
12575
  //#region node_modules/@azure/msal-node/dist/client/OnBehalfOfClient.mjs
12407
- /*! @azure/msal-node v5.5.0 2026-08-04 */
12576
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
12408
12577
  //#endregion
12409
12578
  //#region node_modules/@azure/msal-node/dist/client/UserFederatedIdentityCredentialClient.mjs
12410
- /*! @azure/msal-node v5.5.0 2026-08-04 */
12579
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
12411
12580
  //#endregion
12412
12581
  //#region node_modules/@azure/msal-node/dist/client/ConfidentialClientApplication.mjs
12413
- /*! @azure/msal-node v5.5.0 2026-08-04 */
12582
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
12414
12583
  //#endregion
12415
12584
  //#region node_modules/@azure/msal-node/dist/utils/TimeUtils.mjs
12416
- /*! @azure/msal-node v5.5.0 2026-08-04 */
12585
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
12417
12586
  /**
12418
12587
  * @internal
12419
12588
  * Checks if a given date string is in ISO 8601 format.
@@ -12428,7 +12597,7 @@ function isIso8601(dateString) {
12428
12597
  }
12429
12598
  //#endregion
12430
12599
  //#region node_modules/@azure/msal-node/dist/network/HttpClientWithRetries.mjs
12431
- /*! @azure/msal-node v5.5.0 2026-08-04 */
12600
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
12432
12601
  var HttpClientWithRetries = class {
12433
12602
  constructor(httpClientNoRetries, retryPolicy, logger) {
12434
12603
  this.httpClientNoRetries = httpClientNoRetries;
@@ -12458,7 +12627,7 @@ var HttpClientWithRetries = class {
12458
12627
  };
12459
12628
  //#endregion
12460
12629
  //#region node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs
12461
- /*! @azure/msal-node v5.5.0 2026-08-04 */
12630
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
12462
12631
  /**
12463
12632
  * Managed Identity User Assigned Id Query Parameter Names
12464
12633
  */
@@ -12648,21 +12817,21 @@ BaseManagedIdentitySource.getValidatedEnvVariableUrlString = (envVariableStringN
12648
12817
  throw createManagedIdentityError(MsiEnvironmentVariableUrlMalformedErrorCodes[envVariableStringName], "");
12649
12818
  }
12650
12819
  };
12651
- /*! @azure/msal-node v5.5.0 2026-08-04 */
12652
- /*! @azure/msal-node v5.5.0 2026-08-04 */
12653
- /*! @azure/msal-node v5.5.0 2026-08-04 */
12654
- /*! @azure/msal-node v5.5.0 2026-08-04 */
12820
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
12821
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
12822
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
12823
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
12655
12824
  `${process.env["ProgramData"]}`;
12656
12825
  `${process.env["ProgramFiles"]}`;
12657
- /*! @azure/msal-node v5.5.0 2026-08-04 */
12658
- /*! @azure/msal-node v5.5.0 2026-08-04 */
12659
- /*! @azure/msal-node v5.5.0 2026-08-04 */
12660
- /*! @azure/msal-node v5.5.0 2026-08-04 */
12661
- /*! @azure/msal-node v5.5.0 2026-08-04 */
12826
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
12827
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
12828
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
12829
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
12830
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
12662
12831
  `${ManagedIdentitySourceNames.MACHINE_LEARNING}`;
12663
- /*! @azure/msal-node v5.5.0 2026-08-04 */
12664
- /*! @azure/msal-node v5.5.0 2026-08-04 */
12832
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
12833
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
12665
12834
  ManagedIdentitySourceNames.SERVICE_FABRIC;
12666
- /*! @azure/msal-node v5.5.0 2026-08-04 */
12835
+ /*! @azure/msal-node v5.6.0 2026-08-18 */
12667
12836
  //#endregion
12668
12837
  export { CryptoProvider, PublicClientApplication };