@azure/msal-node 5.4.3 → 5.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/dist/cache/CacheHelpers.mjs +32 -6
  2. package/dist/cache/CacheHelpers.mjs.map +1 -1
  3. package/dist/cache/NodeStorage.mjs +10 -7
  4. package/dist/cache/NodeStorage.mjs.map +1 -1
  5. package/dist/cache/TokenCache.mjs +1 -1
  6. package/dist/cache/distributed/DistributedCachePlugin.mjs +1 -1
  7. package/dist/cache/serializer/Deserializer.mjs +1 -1
  8. package/dist/cache/serializer/Serializer.mjs +1 -1
  9. package/dist/client/BaseClient.mjs +1 -1
  10. package/dist/client/ClientApplication.mjs +1 -1
  11. package/dist/client/ClientAssertion.mjs +1 -1
  12. package/dist/client/ClientCredentialClient.mjs +26 -5
  13. package/dist/client/ClientCredentialClient.mjs.map +1 -1
  14. package/dist/client/ConfidentialClientApplication.mjs +1 -1
  15. package/dist/client/DeviceCodeClient.mjs +1 -1
  16. package/dist/client/ManagedIdentityApplication.mjs +1 -1
  17. package/dist/client/ManagedIdentityClient.mjs +1 -1
  18. package/dist/client/ManagedIdentitySources/AppService.mjs +1 -1
  19. package/dist/client/ManagedIdentitySources/AzureArc.mjs +1 -1
  20. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs +1 -1
  21. package/dist/client/ManagedIdentitySources/CloudShell.mjs +1 -1
  22. package/dist/client/ManagedIdentitySources/Imds.mjs +1 -1
  23. package/dist/client/ManagedIdentitySources/MachineLearning.mjs +1 -1
  24. package/dist/client/ManagedIdentitySources/ServiceFabric.mjs +1 -1
  25. package/dist/client/OnBehalfOfClient.mjs +39 -13
  26. package/dist/client/OnBehalfOfClient.mjs.map +1 -1
  27. package/dist/client/PublicClientApplication.mjs +1 -1
  28. package/dist/client/UserFederatedIdentityCredentialClient.mjs +10 -4
  29. package/dist/client/UserFederatedIdentityCredentialClient.mjs.map +1 -1
  30. package/dist/client/UsernamePasswordClient.mjs +1 -1
  31. package/dist/config/Configuration.mjs +1 -1
  32. package/dist/config/ManagedIdentityId.mjs +1 -1
  33. package/dist/config/ManagedIdentityRequestParameters.mjs +1 -1
  34. package/dist/crypto/CryptoProvider.mjs +1 -1
  35. package/dist/crypto/GuidGenerator.mjs +1 -1
  36. package/dist/crypto/HashUtils.mjs +1 -1
  37. package/dist/crypto/PkceGenerator.mjs +1 -1
  38. package/dist/error/ClientAuthErrorCodes.mjs +1 -1
  39. package/dist/error/ManagedIdentityError.mjs +1 -1
  40. package/dist/error/ManagedIdentityErrorCodes.mjs +1 -1
  41. package/dist/error/NodeAuthError.mjs +1 -1
  42. package/dist/index.mjs +1 -1
  43. package/dist/internals.mjs +1 -1
  44. package/dist/network/HttpClient.mjs +1 -1
  45. package/dist/network/HttpClientWithRetries.mjs +1 -1
  46. package/dist/network/LoopbackClient.mjs +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 +325 -122
  57. package/lib/msal-node.cjs.map +1 -1
  58. package/package.json +2 -2
  59. package/src/cache/CacheHelpers.ts +36 -7
  60. package/src/cache/NodeStorage.ts +18 -6
  61. package/src/client/ClientCredentialClient.ts +28 -3
  62. package/src/client/OnBehalfOfClient.ts +52 -12
  63. package/src/client/UserFederatedIdentityCredentialClient.ts +11 -2
  64. package/src/packageMetadata.ts +1 -1
  65. package/src/request/CommonClientCredentialRequest.ts +7 -0
  66. package/src/request/CommonOnBehalfOfRequest.ts +7 -0
  67. package/src/request/CommonUserFederatedIdentityCredentialRequest.ts +7 -0
  68. package/types/cache/CacheHelpers.d.ts +1 -1
  69. package/types/cache/CacheHelpers.d.ts.map +1 -1
  70. package/types/cache/NodeStorage.d.ts +7 -4
  71. package/types/cache/NodeStorage.d.ts.map +1 -1
  72. package/types/client/ClientCredentialClient.d.ts.map +1 -1
  73. package/types/client/OnBehalfOfClient.d.ts.map +1 -1
  74. package/types/client/UserFederatedIdentityCredentialClient.d.ts.map +1 -1
  75. package/types/packageMetadata.d.ts +1 -1
  76. package/types/request/CommonClientCredentialRequest.d.ts +7 -0
  77. package/types/request/CommonClientCredentialRequest.d.ts.map +1 -1
  78. package/types/request/CommonOnBehalfOfRequest.d.ts +7 -0
  79. package/types/request/CommonOnBehalfOfRequest.d.ts.map +1 -1
  80. package/types/request/CommonUserFederatedIdentityCredentialRequest.d.ts +7 -0
  81. package/types/request/CommonUserFederatedIdentityCredentialRequest.d.ts.map +1 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@azure/msal-node",
4
- "version": "5.4.3",
4
+ "version": "5.5.0",
5
5
  "author": {
6
6
  "name": "Microsoft",
7
7
  "email": "nugetaad@microsoft.com",
@@ -84,7 +84,7 @@
84
84
  "yargs": "^17.3.1"
85
85
  },
86
86
  "dependencies": {
87
- "@azure/msal-common": "16.11.3",
87
+ "@azure/msal-common": "16.12.0",
88
88
  "jsonwebtoken": "^9.0.0"
89
89
  },
90
90
  "engines": {
@@ -13,17 +13,41 @@ import { CACHE } from "../utils/Constants.js";
13
13
 
14
14
  /**
15
15
  * Computes a combined hash from additional cache key components.
16
- * Matches the cross-SDK algorithm: sort keys → concatenate key+value → SHA-256 → Base64URL (no padding).
16
+ *
17
+ * Matches the cross-SDK algorithm: sort keys ascending → for each key append a
18
+ * length-prefixed (netstring-style) encoding of the key and value → SHA-256 →
19
+ * Base64URL (no padding).
20
+ *
21
+ * Each entry is encoded as `<byteLen(key)>:<key><byteLen(value)>:<value>` where the
22
+ * lengths are the UTF-8 **byte** lengths (via `Buffer.byteLength`, not `String.length`
23
+ * which counts UTF-16 code units). The length prefixes make the serialization injective
24
+ * so that semantically different component sets can never serialize to the same byte
25
+ * string. A plain delimiter-less concatenation of key+value is ambiguous
26
+ * (e.g. `{fmi_path:"value"}` and `{fmi_pat:"hvalue"}` would both yield `fmi_pathvalue`),
27
+ * which would collide into the same credential cache slot.
28
+ *
29
+ * The encoding is byte-identical to the other MSAL SDKs (Go/.NET/Java/Python), so the
30
+ * resulting hash is a stable cross-SDK cache key. The final credential key is lowercased
31
+ * downstream in `generateCredentialKey`.
17
32
  */
18
33
  function computeAdditionalCacheKeyHash(
19
34
  components: Record<string, string>
20
35
  ): string {
21
36
  const sortedKeys = Object.keys(components).sort();
22
- const input = sortedKeys.map((k) => k + components[k]).join("");
37
+ let input = "";
38
+ for (const key of sortedKeys) {
39
+ const value = components[key];
40
+ input +=
41
+ `${Buffer.byteLength(key, "utf8")}:${key}` +
42
+ `${Buffer.byteLength(value, "utf8")}:${value}`;
43
+ }
23
44
  return createHash("sha256").update(input, "utf8").digest("base64url");
24
45
  }
25
46
 
26
- export function generateCredentialKey(credential: CredentialEntity): string {
47
+ export function generateCredentialKey(
48
+ credential: CredentialEntity,
49
+ hash?: string
50
+ ): string {
27
51
  const familyId =
28
52
  (credential.credentialType === Constants.CredentialType.REFRESH_TOKEN &&
29
53
  credential.familyId) ||
@@ -44,15 +68,20 @@ export function generateCredentialKey(credential: CredentialEntity): string {
44
68
  scheme,
45
69
  ];
46
70
 
47
- // Compute and append a combined hash from additional cache key components (e.g., fmi_path)
71
+ /*
72
+ * Compute and append a combined hash from additional cache key components (e.g., fmi_path).
73
+ * Use the explicitly passed hash if available; fall back to synchronous inline compute
74
+ * for lookup paths where the entity was read from storage without a cached hash.
75
+ */
48
76
  if (
49
77
  credential.additionalCacheKeyComponents &&
50
78
  Object.keys(credential.additionalCacheKeyComponents).length > 0
51
79
  ) {
52
80
  credentialKey.push(
53
- computeAdditionalCacheKeyHash(
54
- credential.additionalCacheKeyComponents
55
- )
81
+ hash ??
82
+ computeAdditionalCacheKeyHash(
83
+ credential.additionalCacheKeyComponents
84
+ )
56
85
  );
57
86
  }
58
87
 
@@ -206,8 +206,11 @@ export class NodeStorage extends CacheManager {
206
206
  this.setCache(cache);
207
207
  }
208
208
 
209
- generateCredentialKey(credential: CredentialEntity): string {
210
- return generateCredentialKey(credential);
209
+ generateCredentialKey(
210
+ credential: CredentialEntity,
211
+ additionalCacheKeyHash?: string
212
+ ): string {
213
+ return generateCredentialKey(credential, additionalCacheKeyHash);
211
214
  }
212
215
 
213
216
  generateAccountKey(account: AccountInfo): string {
@@ -289,13 +292,22 @@ export class NodeStorage extends CacheManager {
289
292
  }
290
293
 
291
294
  /**
292
- * set accessToken credential
293
- * @param accessToken - cache value to be set of type AccessTokenEntity
295
+ * Set accessToken credential to the cache
296
+ * @param accessToken - the access token entity to cache
297
+ * @param _correlationId - unique identifier for the request
298
+ * @param _kmsi - keep me signed in flag
299
+ * @param additionalCacheKeyHash - optional precomputed hash of additionalCacheKeyComponents used in key generation
294
300
  */
295
301
  async setAccessTokenCredential(
296
- accessToken: AccessTokenEntity
302
+ accessToken: AccessTokenEntity,
303
+ _correlationId: string,
304
+ _kmsi: boolean,
305
+ additionalCacheKeyHash?: string
297
306
  ): Promise<void> {
298
- const accessTokenKey = this.generateCredentialKey(accessToken);
307
+ const accessTokenKey = this.generateCredentialKey(
308
+ accessToken,
309
+ additionalCacheKeyHash
310
+ );
299
311
  this.setItem(accessTokenKey, accessToken);
300
312
  }
301
313
 
@@ -60,15 +60,32 @@ export class ClientCredentialClient extends BaseClient {
60
60
  public async acquireToken(
61
61
  request: CommonClientCredentialRequest
62
62
  ): Promise<AuthenticationResult | null> {
63
- // Build additional cache key components for FMI cache isolation
63
+ // Build additional cache key components for cache isolation
64
64
  let additionalCacheKeyComponents: Record<string, string> | undefined;
65
65
  if (request.fmiPath) {
66
66
  additionalCacheKeyComponents = {
67
+ ...additionalCacheKeyComponents,
67
68
  fmi_path: request.fmiPath,
68
69
  };
69
70
  }
71
+ /*
72
+ * Client-originated claims participate in the cache key (unlike server-issued `claims`,
73
+ * which bypasses the cache). Identical claims values are served from cache; different
74
+ * values produce separate cache entries. Gate on `!isEmptyObj` (not just `trim()`) so an
75
+ * empty/whitespace or empty-object (`{}`) value - which contributes nothing to the request
76
+ * body - does not fragment the cache from an omitted `claimsFromClient`.
77
+ */
78
+ if (
79
+ request.claimsFromClient &&
80
+ !StringUtils.isEmptyObj(request.claimsFromClient)
81
+ ) {
82
+ additionalCacheKeyComponents = {
83
+ ...additionalCacheKeyComponents,
84
+ client_claims: request.claimsFromClient,
85
+ };
86
+ }
70
87
 
71
- if (request.skipCache || request.claims) {
88
+ if (request.skipCache || !StringUtils.isEmptyObj(request.claims)) {
72
89
  return this.executeTokenRequest(
73
90
  request,
74
91
  this.authority,
@@ -460,8 +477,14 @@ export class ClientCredentialClient extends BaseClient {
460
477
  parameters.set(AADServerParamKeys.FMI_PATH, request.fmiPath);
461
478
  }
462
479
 
480
+ /*
481
+ * Deep-merge the server-issued `claims` challenge with client-originated `claimsFromClient`
482
+ * (via addClaims -> buildMergedClaims) so both are sent on the wire. Client capabilities
483
+ * are appended by buildMergedClaims.
484
+ */
463
485
  if (
464
486
  !StringUtils.isEmptyObj(request.claims) ||
487
+ !StringUtils.isEmptyObj(request.claimsFromClient) ||
465
488
  (this.config.authOptions.clientCapabilities &&
466
489
  this.config.authOptions.clientCapabilities.length > 0)
467
490
  ) {
@@ -469,7 +492,9 @@ export class ClientCredentialClient extends BaseClient {
469
492
  parameters,
470
493
  request.correlationId,
471
494
  request.claims,
472
- this.config.authOptions.clientCapabilities
495
+ this.config.authOptions.clientCapabilities,
496
+ undefined,
497
+ request.claimsFromClient
473
498
  );
474
499
  }
475
500
 
@@ -21,6 +21,7 @@ import {
21
21
  RequestThumbprint,
22
22
  ResponseHandler,
23
23
  ScopeSet,
24
+ StringUtils,
24
25
  TimeUtils,
25
26
  TokenClaims,
26
27
  UrlString,
@@ -62,22 +63,44 @@ export class OnBehalfOfClient extends BaseClient {
62
63
  request.oboAssertion
63
64
  );
64
65
 
65
- if (request.skipCache || request.claims) {
66
+ /*
67
+ * Client-originated claims participate in the cache key (unlike server-issued `claims`,
68
+ * which bypasses the cache). Identical claims values are served from cache; different
69
+ * values produce separate cache entries. Gate on `!isEmptyObj` (not just `trim()`) so an
70
+ * empty/whitespace or empty-object (`{}`) value - which contributes nothing to the request
71
+ * body - does not fragment the cache from an omitted `claimsFromClient`.
72
+ */
73
+ let additionalCacheKeyComponents: Record<string, string> | undefined;
74
+ if (
75
+ request.claimsFromClient &&
76
+ !StringUtils.isEmptyObj(request.claimsFromClient)
77
+ ) {
78
+ additionalCacheKeyComponents = {
79
+ client_claims: request.claimsFromClient,
80
+ };
81
+ }
82
+
83
+ if (request.skipCache || !StringUtils.isEmptyObj(request.claims)) {
66
84
  return this.executeTokenRequest(
67
85
  request,
68
86
  this.authority,
69
- this.userAssertionHash
87
+ this.userAssertionHash,
88
+ additionalCacheKeyComponents
70
89
  );
71
90
  }
72
91
 
73
92
  try {
74
- return await this.getCachedAuthenticationResult(request);
93
+ return await this.getCachedAuthenticationResult(
94
+ request,
95
+ additionalCacheKeyComponents
96
+ );
75
97
  } catch (e) {
76
98
  // Any failure falls back to interactive request, once we implement distributed cache, we plan to handle `createRefreshRequiredError` to refresh using the RT
77
99
  return await this.executeTokenRequest(
78
100
  request,
79
101
  this.authority,
80
- this.userAssertionHash
102
+ this.userAssertionHash,
103
+ additionalCacheKeyComponents
81
104
  );
82
105
  }
83
106
  }
@@ -91,12 +114,14 @@ export class OnBehalfOfClient extends BaseClient {
91
114
  * @param request - developer provided CommonOnBehalfOfRequest
92
115
  */
93
116
  private async getCachedAuthenticationResult(
94
- request: CommonOnBehalfOfRequest
117
+ request: CommonOnBehalfOfRequest,
118
+ additionalCacheKeyComponents?: Record<string, string>
95
119
  ): Promise<AuthenticationResult | null> {
96
120
  // look in the cache for the access_token which matches the incoming_assertion
97
121
  const cachedAccessToken = this.readAccessTokenFromCacheForOBO(
98
122
  this.config.authOptions.clientId,
99
- request
123
+ request,
124
+ additionalCacheKeyComponents
100
125
  );
101
126
  if (!cachedAccessToken) {
102
127
  // Must refresh due to non-existent access_token.
@@ -216,7 +241,8 @@ export class OnBehalfOfClient extends BaseClient {
216
241
  */
217
242
  private readAccessTokenFromCacheForOBO(
218
243
  clientId: string,
219
- request: CommonOnBehalfOfRequest
244
+ request: CommonOnBehalfOfRequest,
245
+ additionalCacheKeyComponents?: Record<string, string>
220
246
  ) {
221
247
  const authScheme =
222
248
  request.authenticationScheme ||
@@ -242,6 +268,7 @@ export class OnBehalfOfClient extends BaseClient {
242
268
  tokenType: authScheme,
243
269
  keyId: request.sshKid,
244
270
  userAssertionHash: this.userAssertionHash,
271
+ additionalCacheKeyComponents: additionalCacheKeyComponents,
245
272
  };
246
273
 
247
274
  const accessTokens = this.cacheManager.getAccessTokensByFilter(
@@ -270,7 +297,8 @@ export class OnBehalfOfClient extends BaseClient {
270
297
  private async executeTokenRequest(
271
298
  request: CommonOnBehalfOfRequest,
272
299
  authority: Authority,
273
- userAssertionHash: string
300
+ userAssertionHash: string,
301
+ additionalCacheKeyComponents?: Record<string, string>
274
302
  ): Promise<AuthenticationResult | null> {
275
303
  const queryParametersString = this.createTokenQueryParameters(request);
276
304
  const endpoint = UrlString.appendQueryString(
@@ -321,8 +349,12 @@ export class OnBehalfOfClient extends BaseClient {
321
349
  reqTimestamp,
322
350
  request,
323
351
  ApiId.acquireTokenByOBO,
324
- undefined,
325
- userAssertionHash
352
+ undefined, // authCodePayload
353
+ userAssertionHash, // userAssertionHash
354
+ undefined, // handlingRefreshTokenResponse
355
+ undefined, // forceCacheRefreshTokenResponse
356
+ undefined, // serverRequestId
357
+ additionalCacheKeyComponents
326
358
  );
327
359
 
328
360
  return tokenResponse;
@@ -412,8 +444,14 @@ export class OnBehalfOfClient extends BaseClient {
412
444
  );
413
445
  }
414
446
 
447
+ /*
448
+ * Deep-merge the server-issued `claims` challenge with client-originated `claimsFromClient`
449
+ * (via addClaims -> buildMergedClaims) so both are sent on the wire. Client capabilities
450
+ * are appended by buildMergedClaims.
451
+ */
415
452
  if (
416
- request.claims ||
453
+ !StringUtils.isEmptyObj(request.claims) ||
454
+ !StringUtils.isEmptyObj(request.claimsFromClient) ||
417
455
  (this.config.authOptions.clientCapabilities &&
418
456
  this.config.authOptions.clientCapabilities.length > 0)
419
457
  ) {
@@ -421,7 +459,9 @@ export class OnBehalfOfClient extends BaseClient {
421
459
  parameters,
422
460
  request.correlationId,
423
461
  request.claims,
424
- this.config.authOptions.clientCapabilities
462
+ this.config.authOptions.clientCapabilities,
463
+ undefined,
464
+ request.claimsFromClient
425
465
  );
426
466
  }
427
467
 
@@ -13,6 +13,7 @@ import {
13
13
  RequestThumbprint,
14
14
  ResponseHandler,
15
15
  ScopeSet,
16
+ StringUtils,
16
17
  TimeUtils,
17
18
  UrlString,
18
19
  ClientAssertion,
@@ -208,8 +209,14 @@ export class UserFederatedIdentityCredentialClient extends BaseClient {
208
209
  );
209
210
  }
210
211
 
212
+ /*
213
+ * Deep-merge the server-issued `claims` challenge with client-originated `claimsFromClient`
214
+ * (via addClaims -> buildMergedClaims) so both are sent on the wire. Client capabilities
215
+ * are appended by buildMergedClaims.
216
+ */
211
217
  if (
212
- request.claims ||
218
+ !StringUtils.isEmptyObj(request.claims) ||
219
+ !StringUtils.isEmptyObj(request.claimsFromClient) ||
213
220
  (this.config.authOptions.clientCapabilities &&
214
221
  this.config.authOptions.clientCapabilities.length > 0)
215
222
  ) {
@@ -217,7 +224,9 @@ export class UserFederatedIdentityCredentialClient extends BaseClient {
217
224
  parameters,
218
225
  request.correlationId,
219
226
  request.claims,
220
- this.config.authOptions.clientCapabilities
227
+ this.config.authOptions.clientCapabilities,
228
+ undefined,
229
+ request.claimsFromClient
221
230
  );
222
231
  }
223
232
 
@@ -1,3 +1,3 @@
1
1
  /* eslint-disable header/header */
2
2
  export const name = "@azure/msal-node";
3
- export const version = "5.4.3";
3
+ export const version = "5.5.0";
@@ -32,4 +32,11 @@ export type CommonClientCredentialRequest = Omit<
32
32
  * FMI path to scope the client credentials token to a specific agent identity. Sent as `fmi_path` in the POST body.
33
33
  */
34
34
  fmiPath?: string;
35
+ /**
36
+ * Client-originated claims to forward to the token endpoint, sent as the `claims` parameter on the wire.
37
+ * Unlike `claims` (a server-issued challenge, which bypasses the token cache), client claims are cached and
38
+ * the cache entry is keyed on the claims value. Must use stable, non-dynamic values to avoid unbounded cache growth.
39
+ * See the MSAL Node token caching guide (`docs/caching.md`) for cache serialization and eviction strategies.
40
+ */
41
+ claimsFromClient?: string;
35
42
  };
@@ -20,4 +20,11 @@ export type CommonOnBehalfOfRequest = Omit<
20
20
  * Skip token cache lookup and force request to authority to get a a new token. Defaults to false.
21
21
  */
22
22
  skipCache?: boolean;
23
+ /**
24
+ * Client-originated claims to forward to the token endpoint, sent as the `claims` parameter on the wire.
25
+ * Unlike `claims` (a server-issued challenge, which bypasses the token cache), client claims are cached and
26
+ * the cache entry is keyed on the claims value. Must use stable, non-dynamic values to avoid unbounded cache growth.
27
+ * See the MSAL Node token caching guide (`docs/caching.md`) for cache serialization and eviction strategies.
28
+ */
29
+ claimsFromClient?: string;
23
30
  };
@@ -22,4 +22,11 @@ export type CommonUserFederatedIdentityCredentialRequest = Omit<
22
22
  userObjectId?: string;
23
23
  /** Target user's UPN — exactly one of userObjectId or username must be provided */
24
24
  username?: string;
25
+ /**
26
+ * Client-originated claims to forward to the token endpoint, sent as the `claims` parameter on the wire.
27
+ * Unlike `claims` (a server-issued challenge), these are client-originated. The user_fic grant always calls
28
+ * the network, so `claimsFromClient` is forwarded on every request and does not participate in this flow's cache
29
+ * key (tokens are still written to the cache, but not partitioned by `claimsFromClient`).
30
+ */
31
+ claimsFromClient?: string;
25
32
  };
@@ -1,4 +1,4 @@
1
1
  import { AccountInfo, CredentialEntity } from "@azure/msal-common/node";
2
- export declare function generateCredentialKey(credential: CredentialEntity): string;
2
+ export declare function generateCredentialKey(credential: CredentialEntity, hash?: string): string;
3
3
  export declare function generateAccountKey(account: AccountInfo): string;
4
4
  //# sourceMappingURL=CacheHelpers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CacheHelpers.d.ts","sourceRoot":"","sources":["../../src/cache/CacheHelpers.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,WAAW,EAEX,gBAAgB,EACnB,MAAM,yBAAyB,CAAC;AAgBjC,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,gBAAgB,GAAG,MAAM,CAkC1E;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,CAS/D"}
1
+ {"version":3,"file":"CacheHelpers.d.ts","sourceRoot":"","sources":["../../src/cache/CacheHelpers.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,WAAW,EAEX,gBAAgB,EACnB,MAAM,yBAAyB,CAAC;AAqCjC,wBAAgB,qBAAqB,CACjC,UAAU,EAAE,gBAAgB,EAC5B,IAAI,CAAC,EAAE,MAAM,GACd,MAAM,CAuCR;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,CAS/D"}
@@ -57,7 +57,7 @@ export declare class NodeStorage extends CacheManager {
57
57
  * @param value - value of the cache entry
58
58
  */
59
59
  setItem(key: string, value: ValidCacheType): void;
60
- generateCredentialKey(credential: CredentialEntity): string;
60
+ generateCredentialKey(credential: CredentialEntity, additionalCacheKeyHash?: string): string;
61
61
  generateAccountKey(account: AccountInfo): string;
62
62
  getAccountKeys(): string[];
63
63
  getTokenKeys(): TokenKeys;
@@ -88,10 +88,13 @@ export declare class NodeStorage extends CacheManager {
88
88
  */
89
89
  getAccessTokenCredential(accessTokenKey: string): AccessTokenEntity | null;
90
90
  /**
91
- * set accessToken credential
92
- * @param accessToken - cache value to be set of type AccessTokenEntity
91
+ * Set accessToken credential to the cache
92
+ * @param accessToken - the access token entity to cache
93
+ * @param _correlationId - unique identifier for the request
94
+ * @param _kmsi - keep me signed in flag
95
+ * @param additionalCacheKeyHash - optional precomputed hash of additionalCacheKeyComponents used in key generation
93
96
  */
94
- setAccessTokenCredential(accessToken: AccessTokenEntity): Promise<void>;
97
+ setAccessTokenCredential(accessToken: AccessTokenEntity, _correlationId: string, _kmsi: boolean, additionalCacheKeyHash?: string): Promise<void>;
95
98
  /**
96
99
  * fetch the refreshToken credential
97
100
  * @param refreshTokenKey - lookup key to fetch cache type RefreshTokenEntity
@@ -1 +1 @@
1
- {"version":3,"file":"NodeStorage.d.ts","sourceRoot":"","sources":["../../src/cache/NodeStorage.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,SAAS,EACT,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,gBAAgB,EAChB,YAAY,EACZ,MAAM,EACN,cAAc,EACd,OAAO,EACP,uBAAuB,EACvB,mBAAmB,EACnB,sBAAsB,EAGtB,gBAAgB,EAChB,WAAW,EAEd,MAAM,yBAAyB,CAAC;AAIjC,OAAO,EACH,aAAa,EACb,SAAS,EACT,YAAY,EACf,MAAM,iCAAiC,CAAC;AAGzC;;;GAGG;AACH,qBAAa,WAAY,SAAQ,YAAY;IAEzC,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,KAAK,CAAoB;IACjC,OAAO,CAAC,cAAc,CAAuB;gBAGzC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,OAAO,EACnB,sBAAsB,CAAC,EAAE,sBAAsB;IAYnD;;;OAGG;IACH,qBAAqB,CAAC,IAAI,EAAE,MAAM,IAAI,GAAG,IAAI;IAI7C;;OAEG;IACH,UAAU,IAAI,IAAI;IAIlB;;;OAGG;IACH,oBAAoB,CAAC,KAAK,EAAE,YAAY,GAAG,aAAa;IAgCxD;;;OAGG;IACH,oBA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OAAO,EAAE,uBAAuB,GACjC,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IA+BvC;;;;;;;OAOG;YACW,6BAA6B;IA2F3C;;;;OAIG;IACH,OAAO,CAAC,0BAA0B;IAuBlC;;;;OAIG;IACH,OAAO,CAAC,8BAA8B;IAgDtC;;;;OAIG;YACW,mBAAmB;IA6DjC;;;OAGG;YACW,sBAAsB;CA+FvC"}
1
+ {"version":3,"file":"OnBehalfOfClient.d.ts","sourceRoot":"","sources":["../../src/client/OnBehalfOfClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAKH,oBAAoB,EAIpB,mBAAmB,EAgBtB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,UAAU;IAC5C,OAAO,CAAC,QAAQ,CAAW;IAC3B,OAAO,CAAC,iBAAiB,CAAS;gBAEtB,aAAa,EAAE,mBAAmB;IAI9C;;;OAGG;IACU,YAAY,CACrB,OAAO,EAAE,uBAAuB,GACjC,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IAqDvC;;;;;;;OAOG;YACW,6BAA6B;IA6F3C;;;;OAIG;IACH,OAAO,CAAC,0BAA0B;IAuBlC;;;;OAIG;IACH,OAAO,CAAC,8BAA8B;IAkDtC;;;;OAIG;YACW,mBAAmB;IAkEjC;;;OAGG;YACW,sBAAsB;CAuGvC"}
@@ -1 +1 @@
1
- {"version":3,"file":"UserFederatedIdentityCredentialClient.d.ts","sourceRoot":"","sources":["../../src/client/UserFederatedIdentityCredentialClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,oBAAoB,EAEpB,mBAAmB,EAWtB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,4CAA4C,EAAE,MAAM,4DAA4D,CAAC;AAE1H;;;;GAIG;AACH,qBAAa,qCAAsC,SAAQ,UAAU;gBACrD,aAAa,EAAE,mBAAmB;IAI9C;;;;OAIG;IACU,YAAY,CACrB,OAAO,EAAE,4CAA4C,GACtD,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IAIvC;;OAEG;YACW,mBAAmB;IAsEjC;;OAEG;YACW,sBAAsB;CAuGvC"}
1
+ {"version":3,"file":"UserFederatedIdentityCredentialClient.d.ts","sourceRoot":"","sources":["../../src/client/UserFederatedIdentityCredentialClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,oBAAoB,EAEpB,mBAAmB,EAYtB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,4CAA4C,EAAE,MAAM,4DAA4D,CAAC;AAE1H;;;;GAIG;AACH,qBAAa,qCAAsC,SAAQ,UAAU;gBACrD,aAAa,EAAE,mBAAmB;IAI9C;;;;OAIG;IACU,YAAY,CACrB,OAAO,EAAE,4CAA4C,GACtD,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IAIvC;;OAEG;YACW,mBAAmB;IAsEjC;;OAEG;YACW,sBAAsB;CA+GvC"}
@@ -1,3 +1,3 @@
1
1
  export declare const name = "@azure/msal-node";
2
- export declare const version = "5.4.3";
2
+ export declare const version = "5.5.0";
3
3
  //# sourceMappingURL=packageMetadata.d.ts.map
@@ -19,5 +19,12 @@ export type CommonClientCredentialRequest = Omit<BaseAuthRequest, "extraQueryPar
19
19
  * FMI path to scope the client credentials token to a specific agent identity. Sent as `fmi_path` in the POST body.
20
20
  */
21
21
  fmiPath?: string;
22
+ /**
23
+ * Client-originated claims to forward to the token endpoint, sent as the `claims` parameter on the wire.
24
+ * Unlike `claims` (a server-issued challenge, which bypasses the token cache), client claims are cached and
25
+ * the cache entry is keyed on the claims value. Must use stable, non-dynamic values to avoid unbounded cache growth.
26
+ * See the MSAL Node token caching guide (`docs/caching.md`) for cache serialization and eviction strategies.
27
+ */
28
+ claimsFromClient?: string;
22
29
  };
23
30
  //# sourceMappingURL=CommonClientCredentialRequest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CommonClientCredentialRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonClientCredentialRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,eAAe,EACf,WAAW,EACX,eAAe,EAClB,MAAM,yBAAyB,CAAC;AAEjC;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,IAAI,CAC5C,eAAe,EACf,sBAAsB,GAAG,iBAAiB,CAC7C,GAAG;IACA;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;OAEG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC"}
1
+ {"version":3,"file":"CommonClientCredentialRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonClientCredentialRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,eAAe,EACf,WAAW,EACX,eAAe,EAClB,MAAM,yBAAyB,CAAC;AAEjC;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,IAAI,CAC5C,eAAe,EACf,sBAAsB,GAAG,iBAAiB,CAC7C,GAAG;IACA;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;OAEG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC"}
@@ -11,5 +11,12 @@ export type CommonOnBehalfOfRequest = Omit<BaseAuthRequest, "extraQueryParameter
11
11
  * Skip token cache lookup and force request to authority to get a a new token. Defaults to false.
12
12
  */
13
13
  skipCache?: boolean;
14
+ /**
15
+ * Client-originated claims to forward to the token endpoint, sent as the `claims` parameter on the wire.
16
+ * Unlike `claims` (a server-issued challenge, which bypasses the token cache), client claims are cached and
17
+ * the cache entry is keyed on the claims value. Must use stable, non-dynamic values to avoid unbounded cache growth.
18
+ * See the MSAL Node token caching guide (`docs/caching.md`) for cache serialization and eviction strategies.
19
+ */
20
+ claimsFromClient?: string;
14
21
  };
15
22
  //# sourceMappingURL=CommonOnBehalfOfRequest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CommonOnBehalfOfRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonOnBehalfOfRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,IAAI,CACtC,eAAe,EACf,sBAAsB,GAAG,iBAAiB,CAC7C,GAAG;IACA;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC"}
1
+ {"version":3,"file":"CommonOnBehalfOfRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonOnBehalfOfRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,IAAI,CACtC,eAAe,EACf,sBAAsB,GAAG,iBAAiB,CAC7C,GAAG;IACA;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC"}
@@ -13,5 +13,12 @@ export type CommonUserFederatedIdentityCredentialRequest = Omit<BaseAuthRequest,
13
13
  userObjectId?: string;
14
14
  /** Target user's UPN — exactly one of userObjectId or username must be provided */
15
15
  username?: string;
16
+ /**
17
+ * Client-originated claims to forward to the token endpoint, sent as the `claims` parameter on the wire.
18
+ * Unlike `claims` (a server-issued challenge), these are client-originated. The user_fic grant always calls
19
+ * the network, so `claimsFromClient` is forwarded on every request and does not participate in this flow's cache
20
+ * key (tokens are still written to the cache, but not partitioned by `claimsFromClient`).
21
+ */
22
+ claimsFromClient?: string;
16
23
  };
17
24
  //# sourceMappingURL=CommonUserFederatedIdentityCredentialRequest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CommonUserFederatedIdentityCredentialRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonUserFederatedIdentityCredentialRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE3E;;;;GAIG;AACH,MAAM,MAAM,4CAA4C,GAAG,IAAI,CAC3D,eAAe,EACf,sBAAsB,GAAG,iBAAiB,CAC7C,GAAG;IACA,oEAAoE;IACpE,SAAS,EAAE,MAAM,CAAC;IAClB,wDAAwD;IACxD,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,yFAAyF;IACzF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mFAAmF;IACnF,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"}
1
+ {"version":3,"file":"CommonUserFederatedIdentityCredentialRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonUserFederatedIdentityCredentialRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE3E;;;;GAIG;AACH,MAAM,MAAM,4CAA4C,GAAG,IAAI,CAC3D,eAAe,EACf,sBAAsB,GAAG,iBAAiB,CAC7C,GAAG;IACA,oEAAoE;IACpE,SAAS,EAAE,MAAM,CAAC;IAClB,wDAAwD;IACxD,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,yFAAyF;IACzF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mFAAmF;IACnF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC"}