@azure/msal-node 6.0.1 → 7.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.
- package/dist/cache/CacheHelpers.mjs +1 -1
- package/dist/cache/NodeStorage.mjs +1 -1
- package/dist/cache/TokenCache.mjs +1 -1
- package/dist/cache/distributed/DistributedCachePlugin.mjs +1 -1
- package/dist/cache/serializer/Deserializer.mjs +1 -1
- package/dist/cache/serializer/Serializer.mjs +1 -1
- package/dist/client/BaseClient.mjs +1 -1
- package/dist/client/ClientApplication.mjs +18 -3
- package/dist/client/ClientApplication.mjs.map +1 -1
- package/dist/client/ClientAssertion.mjs +1 -1
- package/dist/client/ClientCredentialClient.mjs +1 -1
- package/dist/client/ConfidentialClientApplication.mjs +1 -1
- package/dist/client/DeviceCodeClient.mjs +1 -1
- package/dist/client/ManagedIdentityApplication.mjs +1 -1
- package/dist/client/ManagedIdentityClient.mjs +1 -1
- package/dist/client/ManagedIdentitySources/AppService.mjs +1 -1
- package/dist/client/ManagedIdentitySources/AzureArc.mjs +1 -1
- package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs +1 -1
- package/dist/client/ManagedIdentitySources/CloudShell.mjs +1 -1
- package/dist/client/ManagedIdentitySources/Imds.mjs +1 -1
- package/dist/client/ManagedIdentitySources/MachineLearning.mjs +1 -1
- package/dist/client/ManagedIdentitySources/ServiceFabric.mjs +1 -1
- package/dist/client/OnBehalfOfClient.mjs +1 -1
- package/dist/client/PublicClientApplication.mjs +13 -9
- package/dist/client/PublicClientApplication.mjs.map +1 -1
- package/dist/client/SilentRequestCoalescer.mjs +125 -0
- package/dist/client/SilentRequestCoalescer.mjs.map +1 -0
- package/dist/client/UserFederatedIdentityCredentialClient.mjs +1 -1
- package/dist/client/UsernamePasswordClient.mjs +1 -1
- package/dist/config/Configuration.mjs +1 -1
- package/dist/config/ManagedIdentityId.mjs +1 -1
- package/dist/config/ManagedIdentityRequestParameters.mjs +1 -1
- package/dist/crypto/CryptoProvider.mjs +1 -1
- package/dist/crypto/GuidGenerator.mjs +1 -1
- package/dist/crypto/HashUtils.mjs +1 -1
- package/dist/crypto/PkceGenerator.mjs +1 -1
- package/dist/error/ClientAuthErrorCodes.mjs +1 -1
- package/dist/error/ManagedIdentityError.mjs +1 -1
- package/dist/error/ManagedIdentityErrorCodes.mjs +1 -1
- package/dist/error/NodeAuthError.mjs +11 -1
- package/dist/error/NodeAuthError.mjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/internals.mjs +1 -1
- package/dist/network/HttpClient.mjs +1 -1
- package/dist/network/HttpClientWithRetries.mjs +1 -1
- package/dist/network/LoopbackClient.mjs +9 -14
- package/dist/network/LoopbackClient.mjs.map +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/protocol/Authorize.mjs +1 -1
- package/dist/retry/DefaultManagedIdentityRetryPolicy.mjs +1 -1
- package/dist/retry/ExponentialRetryStrategy.mjs +1 -1
- package/dist/retry/ImdsRetryPolicy.mjs +1 -1
- package/dist/retry/LinearRetryStrategy.mjs +1 -1
- package/dist/utils/Constants.mjs +1 -1
- package/dist/utils/EncodingUtils.mjs +1 -1
- package/dist/utils/TimeUtils.mjs +1 -1
- package/lib/msal-node.cjs +231 -91
- package/lib/msal-node.cjs.map +1 -1
- package/package.json +1 -1
- package/src/client/ClientApplication.ts +40 -1
- package/src/client/PublicClientApplication.ts +26 -9
- package/src/client/SilentRequestCoalescer.ts +197 -0
- package/src/error/NodeAuthError.ts +15 -0
- package/src/network/LoopbackClient.ts +12 -15
- package/src/packageMetadata.ts +1 -1
- package/src/request/InteractiveRequest.ts +4 -1
- package/types/client/ClientApplication.d.ts +2 -0
- package/types/client/ClientApplication.d.ts.map +1 -1
- package/types/client/PublicClientApplication.d.ts.map +1 -1
- package/types/client/SilentRequestCoalescer.d.ts +26 -0
- package/types/client/SilentRequestCoalescer.d.ts.map +1 -0
- package/types/error/NodeAuthError.d.ts +8 -0
- package/types/error/NodeAuthError.d.ts.map +1 -1
- package/types/network/LoopbackClient.d.ts.map +1 -1
- package/types/packageMetadata.d.ts +1 -1
- package/types/request/InteractiveRequest.d.ts +1 -1
- package/types/request/InteractiveRequest.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -54,6 +54,10 @@ import { CommonUsernamePasswordRequest } from "../request/CommonUsernamePassword
|
|
|
54
54
|
import { NodeAuthError } from "../error/NodeAuthError.js";
|
|
55
55
|
import { UsernamePasswordClient } from "./UsernamePasswordClient.js";
|
|
56
56
|
import { getAuthCodeRequestUrl } from "../protocol/Authorize.js";
|
|
57
|
+
import {
|
|
58
|
+
acquireTokenSilentDeduped,
|
|
59
|
+
getSilentRequestKey,
|
|
60
|
+
} from "./SilentRequestCoalescer.js";
|
|
57
61
|
|
|
58
62
|
/**
|
|
59
63
|
* Base abstract class for all ClientApplications - public and confidential
|
|
@@ -295,6 +299,7 @@ export abstract class ClientApplication {
|
|
|
295
299
|
*
|
|
296
300
|
* This API expects the user to provide an account object and looks into the cache to retrieve the token if present.
|
|
297
301
|
* There is also an optional "forceRefresh" boolean the user can send to bypass the cache for access_token and id_token.
|
|
302
|
+
* Concurrent requests with the same request thumbprint return the same in-progress result.
|
|
298
303
|
* In case the refresh_token is expired or not found, an error is thrown
|
|
299
304
|
* and the guidance is for the user to call any interactive token acquisition API (eg: `acquireTokenByCode()`).
|
|
300
305
|
*/
|
|
@@ -307,6 +312,40 @@ export abstract class ClientApplication {
|
|
|
307
312
|
forceRefresh: request.forceRefresh || false,
|
|
308
313
|
};
|
|
309
314
|
|
|
315
|
+
if (!validRequest.account) {
|
|
316
|
+
return this.acquireTokenSilentAsync(
|
|
317
|
+
validRequest,
|
|
318
|
+
request.azureCloudOptions
|
|
319
|
+
);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
const authorityForThumbprint = Authority.generateAuthority(
|
|
323
|
+
validRequest.authority,
|
|
324
|
+
request.azureCloudOptions || this.config.auth.azureCloudOptions
|
|
325
|
+
);
|
|
326
|
+
const silentRequestKey = getSilentRequestKey({
|
|
327
|
+
requestType: "non-native",
|
|
328
|
+
request: validRequest,
|
|
329
|
+
authority: authorityForThumbprint,
|
|
330
|
+
clientId: this.config.auth.clientId,
|
|
331
|
+
});
|
|
332
|
+
return acquireTokenSilentDeduped(
|
|
333
|
+
this,
|
|
334
|
+
this.logger,
|
|
335
|
+
silentRequestKey,
|
|
336
|
+
validRequest.correlationId,
|
|
337
|
+
() =>
|
|
338
|
+
this.acquireTokenSilentAsync(
|
|
339
|
+
validRequest,
|
|
340
|
+
request.azureCloudOptions
|
|
341
|
+
)
|
|
342
|
+
);
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
private async acquireTokenSilentAsync(
|
|
346
|
+
validRequest: CommonSilentFlowRequest,
|
|
347
|
+
azureCloudOptions?: AzureCloudOptions
|
|
348
|
+
): Promise<AuthenticationResult> {
|
|
310
349
|
const serverTelemetryManager = this.initializeServerTelemetryManager(
|
|
311
350
|
ApiId.acquireTokenSilent,
|
|
312
351
|
validRequest.correlationId,
|
|
@@ -318,7 +357,7 @@ export abstract class ClientApplication {
|
|
|
318
357
|
validRequest.authority,
|
|
319
358
|
validRequest.correlationId,
|
|
320
359
|
undefined,
|
|
321
|
-
|
|
360
|
+
azureCloudOptions
|
|
322
361
|
);
|
|
323
362
|
const clientConfiguration =
|
|
324
363
|
await this.buildOauthClientConfiguration(
|
|
@@ -40,6 +40,11 @@ import { SignOutRequest } from "../request/SignOutRequest.js";
|
|
|
40
40
|
import { RefreshTokenRequest } from "../request/RefreshTokenRequest.js";
|
|
41
41
|
import { DeviceCodeClient } from "./DeviceCodeClient.js";
|
|
42
42
|
import { version } from "../packageMetadata.js";
|
|
43
|
+
import {
|
|
44
|
+
acquireTokenSilentDeduped,
|
|
45
|
+
getSilentRequestKey,
|
|
46
|
+
snapshotNativeRequest,
|
|
47
|
+
} from "./SilentRequestCoalescer.js";
|
|
43
48
|
|
|
44
49
|
/**
|
|
45
50
|
* This class is to be used to acquire tokens for public client applications (desktop, mobile). Public client applications
|
|
@@ -199,13 +204,14 @@ export class PublicClientApplication
|
|
|
199
204
|
|
|
200
205
|
const loopbackClient = new LoopbackClient(preferredPort);
|
|
201
206
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
207
|
+
const responseMode = (
|
|
208
|
+
remainingProperties as typeof remainingProperties & {
|
|
209
|
+
responseMode?: unknown;
|
|
210
|
+
}
|
|
211
|
+
).responseMode;
|
|
206
212
|
|
|
207
213
|
if (
|
|
208
|
-
responseMode !==
|
|
214
|
+
responseMode !== undefined &&
|
|
209
215
|
responseMode !== CommonConstants.ResponseMode.FORM_POST
|
|
210
216
|
) {
|
|
211
217
|
throw createClientConfigurationError(
|
|
@@ -238,7 +244,7 @@ export class PublicClientApplication
|
|
|
238
244
|
correlationId: correlationId,
|
|
239
245
|
scopes: request.scopes || CommonConstants.OIDC_DEFAULT_SCOPES,
|
|
240
246
|
redirectUri: redirectUri,
|
|
241
|
-
responseMode:
|
|
247
|
+
responseMode: CommonConstants.ResponseMode.FORM_POST,
|
|
242
248
|
codeChallenge: challenge,
|
|
243
249
|
codeChallengeMethod:
|
|
244
250
|
CommonConstants.CodeChallengeMethodValues.S256,
|
|
@@ -291,7 +297,8 @@ export class PublicClientApplication
|
|
|
291
297
|
enforceResourceParameter(this.config.auth.isMcp, request);
|
|
292
298
|
|
|
293
299
|
if (this.nativeBrokerPlugin) {
|
|
294
|
-
const
|
|
300
|
+
const nativeBrokerPlugin = this.nativeBrokerPlugin;
|
|
301
|
+
const brokerRequest = snapshotNativeRequest({
|
|
295
302
|
...request,
|
|
296
303
|
clientId: this.config.auth.clientId,
|
|
297
304
|
scopes: request.scopes || CommonConstants.OIDC_DEFAULT_SCOPES,
|
|
@@ -305,8 +312,18 @@ export class PublicClientApplication
|
|
|
305
312
|
},
|
|
306
313
|
accountId: request.account.nativeAccountId,
|
|
307
314
|
forceRefresh: request.forceRefresh || false,
|
|
308
|
-
};
|
|
309
|
-
|
|
315
|
+
});
|
|
316
|
+
const silentRequestKey = getSilentRequestKey({
|
|
317
|
+
requestType: "native",
|
|
318
|
+
request: brokerRequest,
|
|
319
|
+
});
|
|
320
|
+
return acquireTokenSilentDeduped(
|
|
321
|
+
this,
|
|
322
|
+
this.logger,
|
|
323
|
+
silentRequestKey,
|
|
324
|
+
correlationId,
|
|
325
|
+
() => nativeBrokerPlugin.acquireTokenSilent(brokerRequest)
|
|
326
|
+
);
|
|
310
327
|
}
|
|
311
328
|
|
|
312
329
|
if (request.redirectUri) {
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import {
|
|
7
|
+
AADServerParamKeys,
|
|
8
|
+
AuthenticationResult,
|
|
9
|
+
CommonSilentFlowRequest,
|
|
10
|
+
Logger,
|
|
11
|
+
NativeRequest,
|
|
12
|
+
getRequestThumbprint,
|
|
13
|
+
} from "@azure/msal-common/node";
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Prepared silent requests and the acquisition path whose parameters determine their key.
|
|
17
|
+
*/
|
|
18
|
+
export type SilentRequestKeyInput =
|
|
19
|
+
| {
|
|
20
|
+
requestType: "non-native";
|
|
21
|
+
request: CommonSilentFlowRequest;
|
|
22
|
+
authority: string;
|
|
23
|
+
clientId: string;
|
|
24
|
+
}
|
|
25
|
+
| {
|
|
26
|
+
requestType: "native";
|
|
27
|
+
request: NativeRequest;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const activeSilentTokenRequests = new WeakMap<
|
|
31
|
+
object,
|
|
32
|
+
Map<string, Promise<AuthenticationResult>>
|
|
33
|
+
>();
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Shares an in-flight silent acquisition while preserving each caller's correlation ID.
|
|
37
|
+
*/
|
|
38
|
+
export function acquireTokenSilentDeduped(
|
|
39
|
+
owner: object,
|
|
40
|
+
logger: Logger,
|
|
41
|
+
silentRequestKey: string,
|
|
42
|
+
correlationId: string,
|
|
43
|
+
acquireToken: () => Promise<AuthenticationResult>
|
|
44
|
+
): Promise<AuthenticationResult> {
|
|
45
|
+
const existingRequests = activeSilentTokenRequests.get(owner);
|
|
46
|
+
const activeRequests =
|
|
47
|
+
existingRequests || new Map<string, Promise<AuthenticationResult>>();
|
|
48
|
+
if (!existingRequests) {
|
|
49
|
+
activeSilentTokenRequests.set(owner, activeRequests);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
const inProgressRequest = activeRequests.get(silentRequestKey);
|
|
53
|
+
if (inProgressRequest) {
|
|
54
|
+
logger.verbose(
|
|
55
|
+
"acquireTokenSilent has been called previously, returning the result from the first call",
|
|
56
|
+
correlationId
|
|
57
|
+
);
|
|
58
|
+
return applyCallerCorrelationIdToResult(
|
|
59
|
+
inProgressRequest,
|
|
60
|
+
correlationId
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
logger.verbose(
|
|
65
|
+
"acquireTokenSilent called for the first time, storing active request",
|
|
66
|
+
correlationId
|
|
67
|
+
);
|
|
68
|
+
const activeRequest = Promise.resolve()
|
|
69
|
+
.then(acquireToken)
|
|
70
|
+
.finally(() => {
|
|
71
|
+
activeRequests.delete(silentRequestKey);
|
|
72
|
+
if (activeRequests.size === 0) {
|
|
73
|
+
activeSilentTokenRequests.delete(owner);
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
activeRequests.set(silentRequestKey, activeRequest);
|
|
77
|
+
|
|
78
|
+
return applyCallerCorrelationIdToResult(activeRequest, correlationId);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Builds the key used to identify equivalent in-progress silent requests.
|
|
83
|
+
*/
|
|
84
|
+
export function getSilentRequestKey(input: SilentRequestKeyInput): string {
|
|
85
|
+
const { request } = input;
|
|
86
|
+
const authority =
|
|
87
|
+
input.requestType === "native" ? request.authority : input.authority;
|
|
88
|
+
const commonKeyFields = {
|
|
89
|
+
requestType: input.requestType,
|
|
90
|
+
clientId:
|
|
91
|
+
input.requestType === "native"
|
|
92
|
+
? input.request.clientId
|
|
93
|
+
: input.clientId,
|
|
94
|
+
authority,
|
|
95
|
+
scopes: canonicalizeRequestValues(request.scopes),
|
|
96
|
+
claims: request.claims,
|
|
97
|
+
authenticationScheme: request.authenticationScheme,
|
|
98
|
+
resourceRequestMethod: request.resourceRequestMethod,
|
|
99
|
+
resourceRequestUri: request.resourceRequestUri,
|
|
100
|
+
forceRefresh: request.forceRefresh,
|
|
101
|
+
redirectUri: request.redirectUri || "",
|
|
102
|
+
resource: request.resource,
|
|
103
|
+
extraParameters: canonicalizeRequestValues(request.extraParameters),
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
if (input.requestType === "native") {
|
|
107
|
+
return JSON.stringify({
|
|
108
|
+
...commonKeyFields,
|
|
109
|
+
accountId: input.request.accountId,
|
|
110
|
+
shrNonce: input.request.shrNonce,
|
|
111
|
+
extraScopesToConsent: canonicalizeRequestValues(
|
|
112
|
+
input.request.extraScopesToConsent
|
|
113
|
+
),
|
|
114
|
+
loginHint: input.request.loginHint,
|
|
115
|
+
prompt: input.request.prompt,
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
const nonNativeRequest = input.request;
|
|
120
|
+
const thumbprint = getRequestThumbprint(
|
|
121
|
+
input.clientId,
|
|
122
|
+
{ ...nonNativeRequest, authority },
|
|
123
|
+
nonNativeRequest.account.homeAccountId
|
|
124
|
+
);
|
|
125
|
+
|
|
126
|
+
return JSON.stringify({
|
|
127
|
+
...thumbprint,
|
|
128
|
+
...commonKeyFields,
|
|
129
|
+
accountTenantId: nonNativeRequest.account.tenantId,
|
|
130
|
+
accountEnvironment: nonNativeRequest.account.environment,
|
|
131
|
+
refreshTokenExpirationOffsetSeconds:
|
|
132
|
+
nonNativeRequest.refreshTokenExpirationOffsetSeconds,
|
|
133
|
+
extraQueryParameters: canonicalizeRequestValues(
|
|
134
|
+
nonNativeRequest.extraQueryParameters
|
|
135
|
+
),
|
|
136
|
+
skipBrokerClaims:
|
|
137
|
+
thumbprint.embeddedClientId ||
|
|
138
|
+
nonNativeRequest.extraParameters?.[
|
|
139
|
+
AADServerParamKeys.BROKER_CLIENT_ID
|
|
140
|
+
]
|
|
141
|
+
? nonNativeRequest.skipBrokerClaims
|
|
142
|
+
: undefined,
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Copies mutable native request values so execution cannot diverge from the stored key.
|
|
148
|
+
*/
|
|
149
|
+
export function snapshotNativeRequest(request: NativeRequest): NativeRequest {
|
|
150
|
+
return {
|
|
151
|
+
...request,
|
|
152
|
+
scopes: [...request.scopes],
|
|
153
|
+
extraParameters: request.extraParameters
|
|
154
|
+
? { ...request.extraParameters }
|
|
155
|
+
: undefined,
|
|
156
|
+
extraScopesToConsent: request.extraScopesToConsent
|
|
157
|
+
? [...request.extraScopesToConsent]
|
|
158
|
+
: undefined,
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Canonicalizes scope sets and request dictionaries without changing the outgoing request.
|
|
164
|
+
*/
|
|
165
|
+
function canonicalizeRequestValues(
|
|
166
|
+
values?: Record<string, string> | Array<string>
|
|
167
|
+
): Array<[string, string]> | Array<string> | undefined {
|
|
168
|
+
if (Array.isArray(values)) {
|
|
169
|
+
return Array.from(
|
|
170
|
+
new Set(
|
|
171
|
+
values
|
|
172
|
+
.map((scope) => scope.trim())
|
|
173
|
+
.filter((scope) => scope.length > 0)
|
|
174
|
+
)
|
|
175
|
+
).sort();
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
return values
|
|
179
|
+
? Object.keys(values)
|
|
180
|
+
.sort()
|
|
181
|
+
.map((key): [string, string] => [key, values[key]])
|
|
182
|
+
: undefined;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Applies the caller's correlation ID to successful results.
|
|
187
|
+
* Shared failures retain the original error and underlying operation correlation ID.
|
|
188
|
+
*/
|
|
189
|
+
function applyCallerCorrelationIdToResult(
|
|
190
|
+
activeRequest: Promise<AuthenticationResult>,
|
|
191
|
+
correlationId: string
|
|
192
|
+
): Promise<AuthenticationResult> {
|
|
193
|
+
return activeRequest.then((result) => ({
|
|
194
|
+
...result,
|
|
195
|
+
correlationId,
|
|
196
|
+
}));
|
|
197
|
+
}
|
|
@@ -33,6 +33,10 @@ export const NodeAuthErrorMessage = {
|
|
|
33
33
|
code: "loopback_server_timeout",
|
|
34
34
|
desc: "Timed out waiting for auth code listener to be registered.",
|
|
35
35
|
},
|
|
36
|
+
loopbackServerQueryResponseNotSupported: {
|
|
37
|
+
code: "loopback_server_query_response_not_supported",
|
|
38
|
+
desc: "The loopback server received an OAuth response in the URL. Interactive authentication requires form_post.",
|
|
39
|
+
},
|
|
36
40
|
stateNotFoundError: {
|
|
37
41
|
code: "state_not_found",
|
|
38
42
|
desc: "State not found. Please verify that the request originated from msal.",
|
|
@@ -127,6 +131,17 @@ export class NodeAuthError extends AuthError {
|
|
|
127
131
|
);
|
|
128
132
|
}
|
|
129
133
|
|
|
134
|
+
/**
|
|
135
|
+
* Creates an error thrown if the loopback server receives an OAuth response in a query string.
|
|
136
|
+
*/
|
|
137
|
+
static createLoopbackServerQueryResponseNotSupportedError(): NodeAuthError {
|
|
138
|
+
return new NodeAuthError(
|
|
139
|
+
NodeAuthErrorMessage.loopbackServerQueryResponseNotSupported.code,
|
|
140
|
+
"",
|
|
141
|
+
NodeAuthErrorMessage.loopbackServerQueryResponseNotSupported.desc
|
|
142
|
+
);
|
|
143
|
+
}
|
|
144
|
+
|
|
130
145
|
/**
|
|
131
146
|
* Creates an error thrown when the state is not present.
|
|
132
147
|
*/
|
|
@@ -77,7 +77,10 @@ export class LoopbackClient {
|
|
|
77
77
|
return;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
/*
|
|
81
|
+
* GET requests may load the success page or browser resources, but OAuth
|
|
82
|
+
* responses must be delivered via form_post.
|
|
83
|
+
*/
|
|
81
84
|
if (method === "GET") {
|
|
82
85
|
const redirectUri = this.getRedirectUri();
|
|
83
86
|
const parsedUrl = new URL(url, redirectUri);
|
|
@@ -87,25 +90,19 @@ export class LoopbackClient {
|
|
|
87
90
|
) || {};
|
|
88
91
|
|
|
89
92
|
if (!authCodeResponse.code && !authCodeResponse.error) {
|
|
90
|
-
// Ignore requests without OAuth params (e.g., /favicon.ico)
|
|
93
|
+
// Ignore requests without OAuth params (e.g., /favicon.ico).
|
|
91
94
|
res.writeHead(200);
|
|
92
95
|
res.end();
|
|
93
96
|
return;
|
|
94
97
|
}
|
|
95
98
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
res.end(
|
|
104
|
-
errorTemplate ||
|
|
105
|
-
`Error occurred: ${authCodeResponse.error}`
|
|
106
|
-
);
|
|
107
|
-
}
|
|
108
|
-
resolve(authCodeResponse);
|
|
99
|
+
res.writeHead(400);
|
|
100
|
+
res.end(
|
|
101
|
+
"OAuth responses must use form_post and cannot be returned in the URL."
|
|
102
|
+
);
|
|
103
|
+
reject(
|
|
104
|
+
NodeAuthError.createLoopbackServerQueryResponseNotSupportedError()
|
|
105
|
+
);
|
|
109
106
|
} else {
|
|
110
107
|
// Non-root POST (no OAuth response expected here) — ignore
|
|
111
108
|
res.writeHead(200);
|
package/src/packageMetadata.ts
CHANGED
|
@@ -10,7 +10,10 @@ import { CommonAuthorizationUrlRequest } from "@azure/msal-common/node";
|
|
|
10
10
|
* @public
|
|
11
11
|
*/
|
|
12
12
|
export type InteractiveRequest = Partial<
|
|
13
|
-
Omit<
|
|
13
|
+
Omit<
|
|
14
|
+
CommonAuthorizationUrlRequest,
|
|
15
|
+
"scopes" | "storeInCache" | "responseMode"
|
|
16
|
+
>
|
|
14
17
|
> & {
|
|
15
18
|
/**
|
|
16
19
|
* Function to open a browser instance on user's system.
|
|
@@ -73,10 +73,12 @@ export declare abstract class ClientApplication {
|
|
|
73
73
|
*
|
|
74
74
|
* This API expects the user to provide an account object and looks into the cache to retrieve the token if present.
|
|
75
75
|
* There is also an optional "forceRefresh" boolean the user can send to bypass the cache for access_token and id_token.
|
|
76
|
+
* Concurrent requests with the same request thumbprint return the same in-progress result.
|
|
76
77
|
* In case the refresh_token is expired or not found, an error is thrown
|
|
77
78
|
* and the guidance is for the user to call any interactive token acquisition API (eg: `acquireTokenByCode()`).
|
|
78
79
|
*/
|
|
79
80
|
acquireTokenSilent(request: SilentFlowRequest): Promise<AuthenticationResult>;
|
|
81
|
+
private acquireTokenSilentAsync;
|
|
80
82
|
private acquireCachedTokenSilent;
|
|
81
83
|
/**
|
|
82
84
|
* Acquires tokens with password grant by exchanging client applications username and password for credentials
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientApplication.d.ts","sourceRoot":"","sources":["../../src/client/ClientApplication.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,mBAAmB,EAEnB,oBAAoB,EACpB,SAAS,EAET,eAAe,EAEf,MAAM,EACN,sBAAsB,EAOtB,wBAAwB,EAExB,iBAAiB,EACjB,wBAAwB,EAMxB,uBAAuB,EAI1B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACH,aAAa,EAEb,iBAAiB,EACpB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE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AE,sBAAsB,GAChD,OAAO,CAAC,mBAAmB,CAAC;YAsDjB,kBAAkB;IAyBhC;;;OAGG;cACa,qBAAqB,CACjC,WAAW,EAAE,OAAO,CAAC,eAAe,CAAC,GACtC,OAAO,CAAC,eAAe,CAAC;IA8B3B;;;;;OAKG;IACH,SAAS,CAAC,gCAAgC,CACtC,KAAK,EAAE,MAAM,EACb,aAAa,EAAE,MAAM,EACrB,YAAY,CAAC,EAAE,OAAO,GACvB,sBAAsB;IAWzB;;;;OAIG;cACa,eAAe,CAC3B,eAAe,EAAE,MAAM,EACvB,oBAAoB,EAAE,MAAM,EAC5B,wBAAwB,CAAC,EAAE,wBAAwB,EACnD,iBAAiB,CAAC,EAAE,iBAAiB,GACtC,OAAO,CAAC,SAAS,CAAC;IA4BrB;;OAEG;IACH,UAAU,IAAI,IAAI;CAGrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicClientApplication.d.ts","sourceRoot":"","sources":["../../src/client/PublicClientApplication.ts"],"names":[],"mappings":"AAUA,OAAO,EACH,oBAAoB,EAMpB,WAAW,EAKX,wBAAwB,EAI3B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAGpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAGtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"PublicClient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C;IAKhC;;;OAGG;IACG,0BAA0B,CAC5B,OAAO,EAAE,mBAAmB,GAC7B,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IAKvC;;;;OAIG;IACG,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAkBrD;;;OAGG;IACG,cAAc,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;IAY9C;;;;;OAKG;YACW,kBAAkB;CA2CnC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AuthenticationResult, CommonSilentFlowRequest, Logger, NativeRequest } from "@azure/msal-common/node";
|
|
2
|
+
/**
|
|
3
|
+
* Prepared silent requests and the acquisition path whose parameters determine their key.
|
|
4
|
+
*/
|
|
5
|
+
export type SilentRequestKeyInput = {
|
|
6
|
+
requestType: "non-native";
|
|
7
|
+
request: CommonSilentFlowRequest;
|
|
8
|
+
authority: string;
|
|
9
|
+
clientId: string;
|
|
10
|
+
} | {
|
|
11
|
+
requestType: "native";
|
|
12
|
+
request: NativeRequest;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Shares an in-flight silent acquisition while preserving each caller's correlation ID.
|
|
16
|
+
*/
|
|
17
|
+
export declare function acquireTokenSilentDeduped(owner: object, logger: Logger, silentRequestKey: string, correlationId: string, acquireToken: () => Promise<AuthenticationResult>): Promise<AuthenticationResult>;
|
|
18
|
+
/**
|
|
19
|
+
* Builds the key used to identify equivalent in-progress silent requests.
|
|
20
|
+
*/
|
|
21
|
+
export declare function getSilentRequestKey(input: SilentRequestKeyInput): string;
|
|
22
|
+
/**
|
|
23
|
+
* Copies mutable native request values so execution cannot diverge from the stored key.
|
|
24
|
+
*/
|
|
25
|
+
export declare function snapshotNativeRequest(request: NativeRequest): NativeRequest;
|
|
26
|
+
//# sourceMappingURL=SilentRequestCoalescer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SilentRequestCoalescer.d.ts","sourceRoot":"","sources":["../../src/client/SilentRequestCoalescer.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,oBAAoB,EACpB,uBAAuB,EACvB,MAAM,EACN,aAAa,EAEhB,MAAM,yBAAyB,CAAC;AAEjC;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAC3B;IACI,WAAW,EAAE,YAAY,CAAC;IAC1B,OAAO,EAAE,uBAAuB,CAAC;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CACpB,GACD;IACI,WAAW,EAAE,QAAQ,CAAC;IACtB,OAAO,EAAE,aAAa,CAAC;CAC1B,CAAC;AAOR;;GAEG;AACH,wBAAgB,yBAAyB,CACrC,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,gBAAgB,EAAE,MAAM,EACxB,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,MAAM,OAAO,CAAC,oBAAoB,CAAC,GAClD,OAAO,CAAC,oBAAoB,CAAC,CAmC/B;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,qBAAqB,GAAG,MAAM,CA4DxE;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,aAAa,GAAG,aAAa,CAW3E"}
|
|
@@ -27,6 +27,10 @@ export declare const NodeAuthErrorMessage: {
|
|
|
27
27
|
code: string;
|
|
28
28
|
desc: string;
|
|
29
29
|
};
|
|
30
|
+
loopbackServerQueryResponseNotSupported: {
|
|
31
|
+
code: string;
|
|
32
|
+
desc: string;
|
|
33
|
+
};
|
|
30
34
|
stateNotFoundError: {
|
|
31
35
|
code: string;
|
|
32
36
|
desc: string;
|
|
@@ -66,6 +70,10 @@ export declare class NodeAuthError extends AuthError {
|
|
|
66
70
|
* Creates an error thrown if the loopback server times out registering the auth code listener.
|
|
67
71
|
*/
|
|
68
72
|
static createLoopbackServerTimeoutError(correlationId?: string): NodeAuthError;
|
|
73
|
+
/**
|
|
74
|
+
* Creates an error thrown if the loopback server receives an OAuth response in a query string.
|
|
75
|
+
*/
|
|
76
|
+
static createLoopbackServerQueryResponseNotSupportedError(): NodeAuthError;
|
|
69
77
|
/**
|
|
70
78
|
* Creates an error thrown when the state is not present.
|
|
71
79
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NodeAuthError.d.ts","sourceRoot":"","sources":["../../src/error/NodeAuthError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"NodeAuthError.d.ts","sourceRoot":"","sources":["../../src/error/NodeAuthError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyChC,CAAC;AAEF,qBAAa,aAAc,SAAQ,SAAS;gBAEpC,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,EACrB,YAAY,CAAC,EAAE,MAAM;IAMzB;;OAEG;IACH,MAAM,CAAC,qCAAqC,IAAI,aAAa;IAQ7D;;OAEG;IACH,MAAM,CAAC,kCAAkC,IAAI,aAAa;IAQ1D;;OAEG;IACH,MAAM,CAAC,+BAA+B,CAClC,aAAa,GAAE,MAAW,GAC3B,aAAa;IAQhB;;OAEG;IACH,MAAM,CAAC,iCAAiC,IAAI,aAAa;IAQzD;;OAEG;IACH,MAAM,CAAC,sCAAsC,IAAI,aAAa;IAQ9D;;OAEG;IACH,MAAM,CAAC,gCAAgC,CACnC,aAAa,GAAE,MAAW,GAC3B,aAAa;IAQhB;;OAEG;IACH,MAAM,CAAC,kDAAkD,IAAI,aAAa;IAQ1E;;OAEG;IACH,MAAM,CAAC,wBAAwB,CAAC,aAAa,GAAE,MAAW,GAAG,aAAa;IAQ1E;;OAEG;IACH,MAAM,CAAC,4BAA4B,IAAI,aAAa;IAQpD;;OAEG;IACH,MAAM,CAAC,kCAAkC,CACrC,aAAa,GAAE,MAAW,GAC3B,aAAa;CAOnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoopbackClient.d.ts","sourceRoot":"","sources":["../../src/network/LoopbackClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,iBAAiB,EAGpB,MAAM,yBAAyB,CAAC;AAKjC,qBAAa,cAAc;IACvB,OAAO,CAAC,MAAM,CAA0B;IACxC,OAAO,CAAC,aAAa,CAAqB;gBAE9B,aAAa,CAAC,EAAE,MAAM;IAIlC;;;;;OAKG;IACG,iBAAiB,CACnB,eAAe,CAAC,EAAE,MAAM,EACxB,aAAa,CAAC,EAAE,MAAM,GACvB,OAAO,CAAC,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"LoopbackClient.d.ts","sourceRoot":"","sources":["../../src/network/LoopbackClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,iBAAiB,EAGpB,MAAM,yBAAyB,CAAC;AAKjC,qBAAa,cAAc;IACvB,OAAO,CAAC,MAAM,CAA0B;IACxC,OAAO,CAAC,aAAa,CAAqB;gBAE9B,aAAa,CAAC,EAAE,MAAM;IAIlC;;;;;OAKG;IACG,iBAAiB,CACnB,eAAe,CAAC,EAAE,MAAM,EACxB,aAAa,CAAC,EAAE,MAAM,GACvB,OAAO,CAAC,iBAAiB,CAAC;IAuG7B;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAoDzB;;;OAGG;IACH,cAAc,IAAI,MAAM;IAgBxB;;OAEG;IACH,WAAW,IAAI,IAAI;CAetB"}
|
|
@@ -5,7 +5,7 @@ import { CommonAuthorizationUrlRequest } from "@azure/msal-common/node";
|
|
|
5
5
|
* Request object passed by user to configure acquireTokenInteractive API
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
8
|
-
export type InteractiveRequest = Partial<Omit<CommonAuthorizationUrlRequest, "scopes" | "storeInCache">> & {
|
|
8
|
+
export type InteractiveRequest = Partial<Omit<CommonAuthorizationUrlRequest, "scopes" | "storeInCache" | "responseMode">> & {
|
|
9
9
|
/**
|
|
10
10
|
* Function to open a browser instance on user's system.
|
|
11
11
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InteractiveRequest.d.ts","sourceRoot":"","sources":["../../src/request/InteractiveRequest.ts"],"names":[],"mappings":";;AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AAExE;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,CACpC,IAAI,
|
|
1
|
+
{"version":3,"file":"InteractiveRequest.d.ts","sourceRoot":"","sources":["../../src/request/InteractiveRequest.ts"],"names":[],"mappings":";;AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AAExE;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,CACpC,IAAI,CACA,6BAA6B,EAC7B,QAAQ,GAAG,cAAc,GAAG,cAAc,CAC7C,CACJ,GAAG;IACA;;OAEG;IACH,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC"}
|