@azure/msal-node 5.5.0 → 6.0.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 (116) hide show
  1. package/dist/cache/CacheHelpers.mjs +1 -1
  2. package/dist/cache/NodeStorage.mjs +3 -3
  3. package/dist/cache/NodeStorage.mjs.map +1 -1
  4. package/dist/cache/TokenCache.mjs +1 -1
  5. package/dist/cache/distributed/DistributedCachePlugin.mjs +1 -1
  6. package/dist/cache/serializer/Deserializer.mjs +1 -1
  7. package/dist/cache/serializer/Serializer.mjs +1 -1
  8. package/dist/client/BaseClient.mjs +1 -1
  9. package/dist/client/ClientApplication.mjs +16 -6
  10. package/dist/client/ClientApplication.mjs.map +1 -1
  11. package/dist/client/ClientAssertion.mjs +1 -1
  12. package/dist/client/ClientCredentialClient.mjs +5 -3
  13. package/dist/client/ClientCredentialClient.mjs.map +1 -1
  14. package/dist/client/ConfidentialClientApplication.mjs +1 -1
  15. package/dist/client/DeviceCodeClient.mjs +2 -2
  16. package/dist/client/DeviceCodeClient.mjs.map +1 -1
  17. package/dist/client/ManagedIdentityApplication.mjs +1 -1
  18. package/dist/client/ManagedIdentityClient.mjs +1 -1
  19. package/dist/client/ManagedIdentitySources/AppService.mjs +1 -1
  20. package/dist/client/ManagedIdentitySources/AzureArc.mjs +93 -16
  21. package/dist/client/ManagedIdentitySources/AzureArc.mjs.map +1 -1
  22. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs +1 -1
  23. package/dist/client/ManagedIdentitySources/CloudShell.mjs +1 -1
  24. package/dist/client/ManagedIdentitySources/Imds.mjs +1 -1
  25. package/dist/client/ManagedIdentitySources/MachineLearning.mjs +1 -1
  26. package/dist/client/ManagedIdentitySources/ServiceFabric.mjs +1 -1
  27. package/dist/client/OnBehalfOfClient.mjs +6 -3
  28. package/dist/client/OnBehalfOfClient.mjs.map +1 -1
  29. package/dist/client/PublicClientApplication.mjs +5 -8
  30. package/dist/client/PublicClientApplication.mjs.map +1 -1
  31. package/dist/client/UserFederatedIdentityCredentialClient.mjs +2 -2
  32. package/dist/client/UserFederatedIdentityCredentialClient.mjs.map +1 -1
  33. package/dist/client/UsernamePasswordClient.mjs +2 -2
  34. package/dist/client/UsernamePasswordClient.mjs.map +1 -1
  35. package/dist/config/Configuration.mjs +1 -1
  36. package/dist/config/ManagedIdentityId.mjs +1 -1
  37. package/dist/config/ManagedIdentityRequestParameters.mjs +1 -1
  38. package/dist/crypto/CryptoProvider.mjs +13 -13
  39. package/dist/crypto/CryptoProvider.mjs.map +1 -1
  40. package/dist/crypto/GuidGenerator.mjs +1 -1
  41. package/dist/crypto/HashUtils.mjs +1 -1
  42. package/dist/crypto/PkceGenerator.mjs +1 -1
  43. package/dist/error/ClientAuthErrorCodes.mjs +1 -1
  44. package/dist/error/ManagedIdentityError.mjs +5 -4
  45. package/dist/error/ManagedIdentityError.mjs.map +1 -1
  46. package/dist/error/ManagedIdentityErrorCodes.mjs +3 -2
  47. package/dist/error/ManagedIdentityErrorCodes.mjs.map +1 -1
  48. package/dist/error/NodeAuthError.mjs +1 -1
  49. package/dist/index.mjs +1 -1
  50. package/dist/index.mjs.map +1 -1
  51. package/dist/internals.mjs +1 -1
  52. package/dist/network/HttpClient.mjs +1 -1
  53. package/dist/network/HttpClientWithRetries.mjs +1 -1
  54. package/dist/network/LoopbackClient.mjs +1 -1
  55. package/dist/network/LoopbackClient.mjs.map +1 -1
  56. package/dist/packageMetadata.mjs +2 -2
  57. package/dist/protocol/Authorize.mjs +1 -1
  58. package/dist/retry/DefaultManagedIdentityRetryPolicy.mjs +1 -1
  59. package/dist/retry/ExponentialRetryStrategy.mjs +1 -1
  60. package/dist/retry/ImdsRetryPolicy.mjs +1 -1
  61. package/dist/retry/LinearRetryStrategy.mjs +1 -1
  62. package/dist/utils/Constants.mjs +1 -1
  63. package/dist/utils/EncodingUtils.mjs +1 -1
  64. package/dist/utils/TimeUtils.mjs +1 -1
  65. package/lib/msal-node.cjs +723 -186
  66. package/lib/msal-node.cjs.map +1 -1
  67. package/package.json +4 -8
  68. package/src/cache/NodeStorage.ts +3 -1
  69. package/src/client/ClientApplication.ts +15 -5
  70. package/src/client/ClientCredentialClient.ts +6 -2
  71. package/src/client/DeviceCodeClient.ts +2 -1
  72. package/src/client/ManagedIdentitySources/AzureArc.ts +139 -19
  73. package/src/client/OnBehalfOfClient.ts +6 -2
  74. package/src/client/PublicClientApplication.ts +4 -14
  75. package/src/client/UserFederatedIdentityCredentialClient.ts +2 -1
  76. package/src/client/UsernamePasswordClient.ts +2 -1
  77. package/src/crypto/CryptoProvider.ts +31 -13
  78. package/src/error/ManagedIdentityError.ts +4 -2
  79. package/src/error/ManagedIdentityErrorCodes.ts +2 -0
  80. package/src/index.ts +0 -1
  81. package/src/network/LoopbackClient.ts +1 -2
  82. package/src/packageMetadata.ts +1 -1
  83. package/src/request/AuthorizationCodeRequest.ts +4 -0
  84. package/src/request/InteractiveRequest.ts +1 -7
  85. package/src/response/ManagedIdentityTokenResponse.ts +3 -0
  86. package/types/cache/NodeStorage.d.ts.map +1 -1
  87. package/types/client/ClientApplication.d.ts.map +1 -1
  88. package/types/client/ClientCredentialClient.d.ts.map +1 -1
  89. package/types/client/DeviceCodeClient.d.ts.map +1 -1
  90. package/types/client/ManagedIdentitySources/AzureArc.d.ts +22 -8
  91. package/types/client/ManagedIdentitySources/AzureArc.d.ts.map +1 -1
  92. package/types/client/OnBehalfOfClient.d.ts.map +1 -1
  93. package/types/client/PublicClientApplication.d.ts +1 -1
  94. package/types/client/PublicClientApplication.d.ts.map +1 -1
  95. package/types/client/UserFederatedIdentityCredentialClient.d.ts.map +1 -1
  96. package/types/client/UsernamePasswordClient.d.ts.map +1 -1
  97. package/types/crypto/CryptoProvider.d.ts +11 -9
  98. package/types/crypto/CryptoProvider.d.ts.map +1 -1
  99. package/types/error/ManagedIdentityError.d.ts +1 -0
  100. package/types/error/ManagedIdentityError.d.ts.map +1 -1
  101. package/types/error/ManagedIdentityErrorCodes.d.ts +1 -0
  102. package/types/error/ManagedIdentityErrorCodes.d.ts.map +1 -1
  103. package/types/index.d.ts +0 -1
  104. package/types/index.d.ts.map +1 -1
  105. package/types/network/LoopbackClient.d.ts +1 -2
  106. package/types/network/LoopbackClient.d.ts.map +1 -1
  107. package/types/packageMetadata.d.ts +1 -1
  108. package/types/request/AuthorizationCodeRequest.d.ts +4 -0
  109. package/types/request/AuthorizationCodeRequest.d.ts.map +1 -1
  110. package/types/request/InteractiveRequest.d.ts +1 -7
  111. package/types/request/InteractiveRequest.d.ts.map +1 -1
  112. package/types/response/ManagedIdentityTokenResponse.d.ts +3 -0
  113. package/types/response/ManagedIdentityTokenResponse.d.ts.map +1 -1
  114. package/src/network/ILoopbackClient.ts +0 -19
  115. package/types/network/ILoopbackClient.d.ts +0 -11
  116. package/types/network/ILoopbackClient.d.ts.map +0 -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.5.0",
4
+ "version": "6.0.0",
5
5
  "author": {
6
6
  "name": "Microsoft",
7
7
  "email": "nugetaad@microsoft.com",
@@ -46,10 +46,11 @@
46
46
  ],
47
47
  "scripts": {
48
48
  "build": "npm run clean && rollup -c --strictDeprecations --bundleConfigAsCjs && npm run build:types",
49
- "build:types": "tsc -p tsconfig.build.types.json",
49
+ "build:types": "tsc -p tsconfig.build.types.json && npm run test:types:no-dom",
50
50
  "build:watch": "rollup -c --watch --strictDeprecations --bundleConfigAsCjs",
51
51
  "clean": "shx rm -rf dist types lib",
52
52
  "test": "jest",
53
+ "test:types:no-dom": "tsc -p test/type-check/no-dom/tsconfig.json",
53
54
  "test:watch": "jest --watch",
54
55
  "test:coverage": "jest --coverage",
55
56
  "lint": "eslint src --ext .ts",
@@ -60,11 +61,6 @@
60
61
  "format:fix": "prettier --ignore-path .gitignore --write src test",
61
62
  "apiExtractor": "api-extractor run"
62
63
  },
63
- "beachball": {
64
- "disallowedChangeTypes": [
65
- "major"
66
- ]
67
- },
68
64
  "devDependencies": {
69
65
  "@microsoft/api-extractor": "^7.58.7",
70
66
  "@rollup/plugin-node-resolve": "^15.0.1",
@@ -84,7 +80,7 @@
84
80
  "yargs": "^17.3.1"
85
81
  },
86
82
  "dependencies": {
87
- "@azure/msal-common": "16.12.0",
83
+ "@azure/msal-common": "16.14.0",
88
84
  "jsonwebtoken": "^9.0.0"
89
85
  },
90
86
  "engines": {
@@ -24,6 +24,7 @@ import {
24
24
  CredentialEntity,
25
25
  AccountInfo,
26
26
  StubPerformanceClient,
27
+ DEFAULT_TOKEN_BINDING_KEY_MANAGER,
27
28
  } from "@azure/msal-common/node";
28
29
 
29
30
  import { Deserializer } from "./serializer/Deserializer.js";
@@ -56,7 +57,8 @@ export class NodeStorage extends CacheManager {
56
57
  cryptoImpl,
57
58
  logger,
58
59
  new StubPerformanceClient(),
59
- staticAuthorityOptions
60
+ staticAuthorityOptions,
61
+ DEFAULT_TOKEN_BINDING_KEY_MANAGER
60
62
  );
61
63
  this.logger = logger;
62
64
  }
@@ -161,18 +161,28 @@ export abstract class ClientApplication {
161
161
  "acquireTokenByCode called",
162
162
  request.correlationId || ""
163
163
  );
164
- if (request.state && authCodePayLoad) {
164
+ let validatedAuthCodePayload = authCodePayLoad;
165
+ if (request.state && validatedAuthCodePayload) {
165
166
  this.logger.info(
166
167
  "acquireTokenByCode - validating state",
167
168
  request.correlationId || ""
168
169
  );
169
170
  this.validateState(
170
171
  request.state,
171
- authCodePayLoad.state || "",
172
+ validatedAuthCodePayload.state || "",
172
173
  request.correlationId || ""
173
174
  );
174
- // eslint-disable-next-line no-param-reassign
175
- authCodePayLoad = { ...authCodePayLoad, state: "" };
175
+ validatedAuthCodePayload = {
176
+ ...validatedAuthCodePayload,
177
+ state: "",
178
+ };
179
+ }
180
+ if (request.nonce) {
181
+ validatedAuthCodePayload = {
182
+ ...validatedAuthCodePayload,
183
+ code: request.code,
184
+ nonce: request.nonce,
185
+ };
176
186
  }
177
187
  const validRequest: CommonAuthorizationCodeRequest = {
178
188
  ...request,
@@ -208,7 +218,7 @@ export abstract class ClientApplication {
208
218
  return await authorizationCodeClient.acquireToken(
209
219
  validRequest,
210
220
  ApiId.acquireTokenByCode,
211
- authCodePayLoad
221
+ validatedAuthCodePayload
212
222
  );
213
223
  } catch (e) {
214
224
  if (e instanceof AuthError) {
@@ -238,7 +238,10 @@ export class ClientCredentialClient extends BaseClient {
238
238
  },
239
239
  true,
240
240
  request,
241
- this.performanceClient
241
+ this.performanceClient,
242
+ {
243
+ tokenBindingKeyManager: this.config.tokenBindingKeyManager,
244
+ }
242
245
  ),
243
246
  lastCacheOutcome,
244
247
  ];
@@ -370,7 +373,8 @@ export class ClientCredentialClient extends BaseClient {
370
373
  this.logger,
371
374
  this.performanceClient,
372
375
  this.config.serializableCache,
373
- this.config.persistencePlugin
376
+ this.config.persistencePlugin,
377
+ this.config.tokenBindingKeyManager
374
378
  );
375
379
 
376
380
  responseHandler.validateTokenResponse(
@@ -58,7 +58,8 @@ export class DeviceCodeClient extends BaseClient {
58
58
  this.logger,
59
59
  this.performanceClient,
60
60
  this.config.serializableCache,
61
- this.config.persistencePlugin
61
+ this.config.persistencePlugin,
62
+ this.config.tokenBindingKeyManager
62
63
  );
63
64
 
64
65
  // Validate response. This function throws a server error if an error is returned by the server.
@@ -15,7 +15,10 @@ import {
15
15
  Constants,
16
16
  } from "@azure/msal-common/node";
17
17
  import { ManagedIdentityRequestParameters } from "../../config/ManagedIdentityRequestParameters.js";
18
- import { BaseManagedIdentitySource } from "./BaseManagedIdentitySource.js";
18
+ import {
19
+ BaseManagedIdentitySource,
20
+ ManagedIdentityUserAssignedIdQueryParameterNames,
21
+ } from "./BaseManagedIdentitySource.js";
19
22
  import { CryptoProvider } from "../../crypto/CryptoProvider.js";
20
23
  import {
21
24
  ManagedIdentityErrorCodes,
@@ -153,20 +156,20 @@ export class AzureArc extends BaseManagedIdentitySource {
153
156
  * Attempts to create an AzureArc managed identity source instance.
154
157
  *
155
158
  * Validates the Azure Arc environment by checking environment variables
156
- * and performing file-based detection. It ensures that only system-assigned managed identities
157
- * are supported for Azure Arc scenarios. The method performs comprehensive validation of
158
- * endpoint URLs and logs detailed information about the detection process.
159
+ * and performing file-based detection. Azure Arc supports both system-assigned and user-assigned
160
+ * managed identities; when a user-assigned identity is requested, its selector is forwarded on the
161
+ * request and validated against the token response echo (fail closed). The method performs
162
+ * comprehensive validation of endpoint URLs and logs detailed information about the detection process.
159
163
  *
160
164
  * @param logger - Logger instance for capturing creation and validation steps
161
165
  * @param nodeStorage - Storage implementation for the managed identity source
162
166
  * @param networkClient - Network client for HTTP communication
163
167
  * @param cryptoProvider - Cryptographic operations provider
164
168
  * @param disableInternalRetries - Whether to disable automatic retry mechanisms
165
- * @param managedIdentityId - The managed identity configuration, must be system-assigned
169
+ * @param _managedIdentityId - Unused; Azure Arc now supports user-assigned identities, which are
170
+ * forwarded on the request and validated against the token response echo (fail closed).
166
171
  *
167
172
  * @returns AzureArc instance if the environment supports Azure Arc managed identity, null otherwise
168
- *
169
- * @throws {ManagedIdentityError} When a user-assigned managed identity is specified (not supported for Azure Arc)
170
173
  */
171
174
  public static tryCreate(
172
175
  logger: Logger,
@@ -174,7 +177,8 @@ export class AzureArc extends BaseManagedIdentitySource {
174
177
  networkClient: INetworkModule,
175
178
  cryptoProvider: CryptoProvider,
176
179
  disableInternalRetries: boolean,
177
- managedIdentityId: ManagedIdentityId
180
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
181
+ _managedIdentityId: ManagedIdentityId
178
182
  ): AzureArc | null {
179
183
  const [identityEndpoint, imdsEndpoint] =
180
184
  AzureArc.getEnvironmentVariables();
@@ -223,15 +227,6 @@ export class AzureArc extends BaseManagedIdentitySource {
223
227
  );
224
228
  }
225
229
 
226
- if (
227
- managedIdentityId.idType !== ManagedIdentityIdType.SYSTEM_ASSIGNED
228
- ) {
229
- throw createManagedIdentityError(
230
- ManagedIdentityErrorCodes.unableToCreateAzureArc,
231
- ""
232
- );
233
- }
234
-
235
230
  return new AzureArc(
236
231
  logger,
237
232
  nodeStorage,
@@ -253,7 +248,10 @@ export class AzureArc extends BaseManagedIdentitySource {
253
248
  *
254
249
  * @returns A configured ManagedIdentityRequestParameters object ready for network execution
255
250
  */
256
- public createRequest(resource: string): ManagedIdentityRequestParameters {
251
+ public createRequest(
252
+ resource: string,
253
+ managedIdentityId: ManagedIdentityId
254
+ ): ManagedIdentityRequestParameters {
257
255
  const request: ManagedIdentityRequestParameters =
258
256
  new ManagedIdentityRequestParameters(
259
257
  HttpMethod.GET,
@@ -267,11 +265,118 @@ export class AzureArc extends BaseManagedIdentitySource {
267
265
  request.queryParameters[ManagedIdentityQueryParameters.RESOURCE] =
268
266
  resource;
269
267
 
268
+ if (
269
+ managedIdentityId.idType !== ManagedIdentityIdType.SYSTEM_ASSIGNED
270
+ ) {
271
+ /*
272
+ * Forward the user-assigned selector. Azure Arc honors the IMDS "msi_res_id" spelling for
273
+ * the resource-id selector (isImds = true); "mi_res_id" is silently ignored and returns
274
+ * the system-assigned identity.
275
+ */
276
+ request.queryParameters[
277
+ this.getManagedIdentityUserAssignedIdQueryParameterKey(
278
+ managedIdentityId.idType,
279
+ true // isImds -> msi_res_id for the resource-id selector
280
+ )
281
+ ] = managedIdentityId.id;
282
+ }
283
+
270
284
  // bodyParameters calculated in BaseManagedIdentity.acquireTokenWithManagedIdentity
271
285
 
272
286
  return request;
273
287
  }
274
288
 
289
+ /**
290
+ * Fails closed when a user-assigned identity was requested but the Azure Arc token response does
291
+ * not confirm it. A legacy Azure Arc agent ignores the client_id / object_id / msi_res_id selector
292
+ * and silently returns the machine's system-assigned identity; an agent that supports user-assigned
293
+ * managed identity echoes the identity it used. When the echoed identity is missing or does not
294
+ * match the requested selector, MSAL must not return a token for a different identity than requested.
295
+ *
296
+ * @param networkRequest - The request that produced this response; its query parameters carry the
297
+ * requested user-assigned selector (client_id / object_id / msi_res_id)
298
+ * @param responseBody - The deserialized Azure Arc token response
299
+ *
300
+ * @throws {ManagedIdentityError} When a user-assigned identity was requested but not confirmed
301
+ */
302
+ private validateUserAssignedIdentityWasHonored(
303
+ networkRequest: ManagedIdentityRequestParameters,
304
+ responseBody: ManagedIdentityTokenResponse
305
+ ): void {
306
+ /*
307
+ * Derive the requested selector from the request that produced this response rather than from
308
+ * instance state. The managed identity source instance is cached and reused across acquireToken
309
+ * calls, so relying on a stored field could compare against a different identity than the one
310
+ * this request actually asked for. The network request is scoped to this call and carries exactly
311
+ * one user-assigned selector (client_id, object_id, or msi_res_id) when a UAMI was requested.
312
+ */
313
+ const queryParameters: Record<string, string> =
314
+ networkRequest.queryParameters;
315
+
316
+ let requestedIdentity: string | undefined;
317
+ let echoedIdentity: string | undefined;
318
+
319
+ if (
320
+ queryParameters[
321
+ ManagedIdentityUserAssignedIdQueryParameterNames
322
+ .MANAGED_IDENTITY_CLIENT_ID
323
+ ]
324
+ ) {
325
+ requestedIdentity =
326
+ queryParameters[
327
+ ManagedIdentityUserAssignedIdQueryParameterNames
328
+ .MANAGED_IDENTITY_CLIENT_ID
329
+ ];
330
+ echoedIdentity = responseBody.client_id;
331
+ } else if (
332
+ queryParameters[
333
+ ManagedIdentityUserAssignedIdQueryParameterNames
334
+ .MANAGED_IDENTITY_OBJECT_ID
335
+ ]
336
+ ) {
337
+ requestedIdentity =
338
+ queryParameters[
339
+ ManagedIdentityUserAssignedIdQueryParameterNames
340
+ .MANAGED_IDENTITY_OBJECT_ID
341
+ ];
342
+ echoedIdentity = responseBody.object_id;
343
+ } else if (
344
+ queryParameters[
345
+ ManagedIdentityUserAssignedIdQueryParameterNames
346
+ .MANAGED_IDENTITY_RESOURCE_ID_IMDS
347
+ ]
348
+ ) {
349
+ requestedIdentity =
350
+ queryParameters[
351
+ ManagedIdentityUserAssignedIdQueryParameterNames
352
+ .MANAGED_IDENTITY_RESOURCE_ID_IMDS
353
+ ];
354
+ // Accept either spelling on the echo as a safety net; Azure Arc returns msi_res_id.
355
+ echoedIdentity = responseBody.msi_res_id || responseBody.mi_res_id;
356
+ } else {
357
+ // System-assigned (no user-assigned selector forwarded): nothing to confirm.
358
+ return;
359
+ }
360
+
361
+ /*
362
+ * Compare case-insensitively: client_id / object_id are GUIDs, and an ARM resource id can
363
+ * legitimately differ in segment casing.
364
+ */
365
+ if (
366
+ !echoedIdentity ||
367
+ echoedIdentity.toLowerCase() !== requestedIdentity.toLowerCase()
368
+ ) {
369
+ this.logger.error(
370
+ "[Managed Identity] Azure Arc did not confirm the requested user-assigned identity in the token response. The agent likely does not support user-assigned managed identity and returned the system-assigned identity.",
371
+ ""
372
+ );
373
+ throw createManagedIdentityError(
374
+ ManagedIdentityErrorCodes.userAssignedManagedIdentityNotConfirmed,
375
+ ""
376
+ );
377
+ }
378
+ }
379
+
275
380
  /**
276
381
  * Processes the server response and handles Azure Arc-specific authentication challenges.
277
382
  *
@@ -420,6 +525,21 @@ export class AzureArc extends BaseManagedIdentitySource {
420
525
  }
421
526
  }
422
527
 
423
- return this.getServerTokenResponse(retryResponse || originalResponse);
528
+ const finalResponse: NetworkResponse<ManagedIdentityTokenResponse> =
529
+ retryResponse || originalResponse;
530
+
531
+ /*
532
+ * Fail closed: when a user-assigned identity was requested and the agent returned a token,
533
+ * ensure the echoed identity matches. A genuine service error (no access_token, e.g. a 404
534
+ * for a non-existent identity) is surfaced normally by the response handler.
535
+ */
536
+ if (finalResponse.body.access_token) {
537
+ this.validateUserAssignedIdentityWasHonored(
538
+ networkRequest,
539
+ finalResponse.body
540
+ );
541
+ }
542
+
543
+ return this.getServerTokenResponse(finalResponse);
424
544
  }
425
545
  }
@@ -202,7 +202,10 @@ export class OnBehalfOfClient extends BaseClient {
202
202
  true,
203
203
  request,
204
204
  this.performanceClient,
205
- idTokenClaims
205
+ {
206
+ idTokenClaims,
207
+ tokenBindingKeyManager: this.config.tokenBindingKeyManager,
208
+ }
206
209
  );
207
210
  }
208
211
 
@@ -336,7 +339,8 @@ export class OnBehalfOfClient extends BaseClient {
336
339
  this.logger,
337
340
  this.performanceClient,
338
341
  this.config.serializableCache,
339
- this.config.persistencePlugin
342
+ this.config.persistencePlugin,
343
+ this.config.tokenBindingKeyManager
340
344
  );
341
345
 
342
346
  responseHandler.validateTokenResponse(
@@ -38,7 +38,6 @@ import { LoopbackClient } from "../network/LoopbackClient.js";
38
38
  import { SilentFlowRequest } from "../request/SilentFlowRequest.js";
39
39
  import { SignOutRequest } from "../request/SignOutRequest.js";
40
40
  import { RefreshTokenRequest } from "../request/RefreshTokenRequest.js";
41
- import { ILoopbackClient } from "../network/ILoopbackClient.js";
42
41
  import { DeviceCodeClient } from "./DeviceCodeClient.js";
43
42
  import { version } from "../packageMetadata.js";
44
43
 
@@ -159,18 +158,10 @@ export class PublicClientApplication
159
158
  successTemplate,
160
159
  errorTemplate,
161
160
  windowHandle,
162
- loopbackClient: customLoopbackClient,
163
161
  preferredPort,
164
162
  ...remainingProperties
165
163
  } = request;
166
164
 
167
- if (customLoopbackClient) {
168
- this.logger.warning(
169
- "The loopbackClient option is deprecated and will be removed in a future major version. Omit it to use the built-in loopback server, and set preferredPort when a fixed port is required.",
170
- correlationId
171
- );
172
- }
173
-
174
165
  if (this.nativeBrokerPlugin) {
175
166
  const brokerRequest: NativeRequest = {
176
167
  ...remainingProperties,
@@ -206,13 +197,12 @@ export class PublicClientApplication
206
197
  const { verifier, challenge } =
207
198
  await this.cryptoProvider.generatePkceCodes();
208
199
 
209
- const loopbackClient: ILoopbackClient =
210
- customLoopbackClient || new LoopbackClient(preferredPort);
200
+ const loopbackClient = new LoopbackClient(preferredPort);
211
201
 
212
202
  // Validate and resolve responseMode
213
203
  const responseMode =
214
204
  remainingProperties.responseMode ??
215
- CommonConstants.ResponseMode.QUERY;
205
+ CommonConstants.ResponseMode.FORM_POST;
216
206
 
217
207
  if (
218
208
  responseMode !== CommonConstants.ResponseMode.QUERY &&
@@ -396,12 +386,12 @@ export class PublicClientApplication
396
386
 
397
387
  /**
398
388
  * Attempts to retrieve the redirectUri from the loopback server. If the loopback server does not start listening for requests within the timeout this will throw.
399
- * @param loopbackClient - developer provided custom loopback server implementation
389
+ * @param loopbackClient - built-in loopback server implementation
400
390
  * @param correlationId - correlation id of the request
401
391
  * @returns
402
392
  */
403
393
  private async waitForRedirectUri(
404
- loopbackClient: ILoopbackClient,
394
+ loopbackClient: LoopbackClient,
405
395
  correlationId: string
406
396
  ): Promise<string> {
407
397
  return new Promise<string>((resolve, reject) => {
@@ -99,7 +99,8 @@ export class UserFederatedIdentityCredentialClient extends BaseClient {
99
99
  this.logger,
100
100
  this.performanceClient,
101
101
  this.config.serializableCache,
102
- this.config.persistencePlugin
102
+ this.config.persistencePlugin,
103
+ this.config.tokenBindingKeyManager
103
104
  );
104
105
 
105
106
  responseHandler.validateTokenResponse(
@@ -62,7 +62,8 @@ export class UsernamePasswordClient extends BaseClient {
62
62
  this.logger,
63
63
  this.performanceClient,
64
64
  this.config.serializableCache,
65
- this.config.persistencePlugin
65
+ this.config.persistencePlugin,
66
+ this.config.tokenBindingKeyManager
66
67
  );
67
68
 
68
69
  // Validate response. This function throws a server error if an error is returned by the server.
@@ -3,7 +3,12 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { Constants, ICrypto, PkceCodes } from "@azure/msal-common/node";
6
+ import {
7
+ ClientAuthErrorCodes,
8
+ Constants,
9
+ createClientAuthError,
10
+ } from "@azure/msal-common/node";
11
+ import type { ICrypto, PkceCodes } from "@azure/msal-common/node";
7
12
  import { GuidGenerator } from "./GuidGenerator.js";
8
13
  import { EncodingUtils } from "../utils/EncodingUtils.js";
9
14
  import { PkceGenerator } from "./PkceGenerator.js";
@@ -72,33 +77,46 @@ export class CryptoProvider implements ICrypto {
72
77
  return this.pkceGenerator.generatePkceCodes();
73
78
  }
74
79
 
75
- /**
76
- * Generates a keypair, stores it and returns a thumbprint - not yet implemented for node
77
- */
78
- getPublicKeyThumbprint(): Promise<string> {
79
- throw new Error("Method not implemented.");
80
- }
81
-
82
80
  /**
83
81
  * Removes cryptographic keypair from key store matching the keyId passed in
84
82
  * @param kid - public key id
83
+ * @param correlationId - correlation id
85
84
  */
86
- removeTokenBindingKey(): Promise<void> {
85
+ removeTokenBindingKey(kid: string, correlationId: string): Promise<void> {
86
+ void kid;
87
+ void correlationId;
87
88
  throw new Error("Method not implemented.");
88
89
  }
89
90
 
90
91
  /**
91
92
  * Removes all cryptographic keys from Keystore
93
+ * @param correlationId - correlation id
92
94
  */
93
- clearKeystore(): Promise<boolean> {
95
+ clearKeystore(correlationId: string): Promise<boolean> {
96
+ void correlationId;
94
97
  throw new Error("Method not implemented.");
95
98
  }
96
99
 
97
100
  /**
98
- * Signs the given object as a jwt payload with private key retrieved by given kid - currently not implemented for node
101
+ * Signs a compact JWT with a token-binding key - not yet implemented for node
102
+ * @param header - JOSE header
103
+ * @param payload - JWT payload
104
+ * @param kid - public key id
105
+ * @param correlationId - correlation id
99
106
  */
100
- signJwt(): Promise<string> {
101
- throw new Error("Method not implemented.");
107
+ signTokenBindingJwt(
108
+ header: object,
109
+ payload: object,
110
+ kid: string,
111
+ correlationId: string
112
+ ): Promise<string> {
113
+ void header;
114
+ void payload;
115
+ void kid;
116
+ throw createClientAuthError(
117
+ ClientAuthErrorCodes.methodNotImplemented,
118
+ correlationId
119
+ );
102
120
  }
103
121
 
104
122
  /**
@@ -44,10 +44,12 @@ export const ManagedIdentityErrorMessages = {
44
44
  "Unable to read the secret file.",
45
45
  [ManagedIdentityErrorCodes.userAssignedNotAvailableAtRuntime]:
46
46
  "Service Fabric user assigned managed identity ClientId or ResourceId is not configurable at runtime.",
47
+ [ManagedIdentityErrorCodes.userAssignedManagedIdentityNotConfirmed]:
48
+ "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.",
47
49
  [ManagedIdentityErrorCodes.wwwAuthenticateHeaderMissing]:
48
- "A 401 response was received form the Azure Arc Managed Identity, but the www-authenticate header is missing.",
50
+ "A 401 response was received from the Azure Arc Managed Identity, but the www-authenticate header is missing.",
49
51
  [ManagedIdentityErrorCodes.wwwAuthenticateHeaderUnsupportedFormat]:
50
- "A 401 response was received form the Azure Arc Managed Identity, but the www-authenticate header is in an unsupported format.",
52
+ "A 401 response was received from the Azure Arc Managed Identity, but the www-authenticate header is in an unsupported format.",
51
53
  };
52
54
 
53
55
  export class ManagedIdentityError extends AuthError {
@@ -19,6 +19,8 @@ export const unableToReadSecretFile = "unable_to_read_secret_file";
19
19
  export const urlParseError = "url_parse_error";
20
20
  export const userAssignedNotAvailableAtRuntime =
21
21
  "user_assigned_not_available_at_runtime";
22
+ export const userAssignedManagedIdentityNotConfirmed =
23
+ "user_assigned_managed_identity_not_confirmed";
22
24
  export const wwwAuthenticateHeaderMissing = "www_authenticate_header_missing";
23
25
  export const wwwAuthenticateHeaderUnsupportedFormat =
24
26
  "www_authenticate_header_unsupported_format";
package/src/index.ts CHANGED
@@ -22,7 +22,6 @@ export { IConfidentialClientApplication } from "./client/IConfidentialClientAppl
22
22
  export { ITokenCache } from "./cache/ITokenCache.js";
23
23
  export { ICacheClient } from "./cache/distributed/ICacheClient.js";
24
24
  export { IPartitionManager } from "./cache/distributed/IPartitionManager.js";
25
- export { ILoopbackClient } from "./network/ILoopbackClient.js";
26
25
 
27
26
  // Clients and Configuration
28
27
  export { PublicClientApplication } from "./client/PublicClientApplication.js";
@@ -11,9 +11,8 @@ import {
11
11
  import http from "http";
12
12
  import { NodeAuthError } from "../error/NodeAuthError.js";
13
13
  import { Constants } from "../utils/Constants.js";
14
- import { ILoopbackClient } from "./ILoopbackClient.js";
15
14
 
16
- export class LoopbackClient implements ILoopbackClient {
15
+ export class LoopbackClient {
17
16
  private server: http.Server | undefined;
18
17
  private preferredPort: number | undefined;
19
18
 
@@ -1,3 +1,3 @@
1
1
  /* eslint-disable header/header */
2
2
  export const name = "@azure/msal-node";
3
- export const version = "5.5.0";
3
+ export const version = "6.0.0";
@@ -33,6 +33,10 @@ export type AuthorizationCodeRequest = Partial<
33
33
  * The authorization_code that the user acquired in the first leg of the flow.
34
34
  */
35
35
  code: string;
36
+ /**
37
+ * The nonce sent in the original authorization request. When provided, the ID Token nonce claim must be present and match this value.
38
+ */
39
+ nonce?: string;
36
40
  /**
37
41
  * Unique GUID generated by the user that is cached by the user and sent to the server during the first leg of the flow. This string is sent back by the server with the authorization code. The user cached state is then compared with the state received from the server to mitigate the risk of CSRF attacks. See https://datatracker.ietf.org/doc/html/rfc6819#section-3.6.
38
42
  */
@@ -4,7 +4,6 @@
4
4
  */
5
5
 
6
6
  import { CommonAuthorizationUrlRequest } from "@azure/msal-common/node";
7
- import { ILoopbackClient } from "../network/ILoopbackClient.js";
8
7
 
9
8
  /**
10
9
  * Request object passed by user to configure acquireTokenInteractive API
@@ -33,14 +32,9 @@ export type InteractiveRequest = Partial<
33
32
  * Used in native broker flows to properly parent the native broker window
34
33
  */
35
34
  windowHandle?: Buffer; // Relevant only to brokered requests
36
- /**
37
- * Custom implementation for a loopback server to listen for authorization code response.
38
- * @deprecated Omit this property to use MSAL's built-in loopback server; set `preferredPort` when a fixed port is required. This property will be removed in a future major version.
39
- */
40
- loopbackClient?: ILoopbackClient;
41
35
  /**
42
36
  * Preferred port for the loopback server to listen on. If the port is unavailable, a random port will be used.
43
- * Use this instead of a custom loopbackClient when you need a fixed port for redirect URI registration.
37
+ * Set this when you need a fixed port for redirect URI registration.
44
38
  */
45
39
  preferredPort?: number;
46
40
  };
@@ -23,6 +23,9 @@ export type ManagedIdentityTokenResponse = {
23
23
  // success
24
24
  access_token?: string;
25
25
  client_id?: string;
26
+ object_id?: string; // echoed by Azure Arc when a user-assigned object id is honored
27
+ mi_res_id?: string; // resource-id echo (non-IMDS spelling), accepted as a safety net
28
+ msi_res_id?: string; // resource-id echo (IMDS spelling) that Azure Arc returns
26
29
  expires_on?: number; // will be converted to expires_in
27
30
  resource?: string; // equivalent to ServerAuthorizationTokenResponse's "scope" field
28
31
  token_type?: Constants.AuthenticationScheme;
@@ -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,oBAAoB,CAAC,aAAa,EAAE,aAAa,GAAG,YAAY;IAiBhE;;OAEG;IACH,gBAAgB,IAAI,aAAa;IAQjC;;;OAGG;IACH,gBAAgB,CAAC,aAAa,EAAE,aAAa,GAAG,IAAI;IAUpD;;OAEG;IACH,QAAQ,IAAI,YAAY;IAKxB;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,YAAY,GAAG,IAAI;IAQnC;;;OAGG;IACH,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc;IAQpC;;;;OAIG;IACH,OAAO,CAAC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