@azure/msal-node 1.14.0 → 1.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/ConfidentialClientApplication.d.ts.map +1 -1
- package/dist/msal-node.cjs.development.js +8 -6
- package/dist/msal-node.cjs.development.js.map +1 -1
- package/dist/msal-node.cjs.production.min.js +1 -1
- package/dist/msal-node.cjs.production.min.js.map +1 -1
- package/dist/msal-node.esm.js +8 -6
- package/dist/msal-node.esm.js.map +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/package.json +2 -2
package/dist/msal-node.esm.js
CHANGED
|
@@ -185,7 +185,7 @@ const networkRequestViaProxy = (url, httpMethod, options, timeout) => {
|
|
|
185
185
|
if (statusCode < 200 || statusCode > 299) {
|
|
186
186
|
request.destroy();
|
|
187
187
|
socket.destroy();
|
|
188
|
-
reject(new Error(`
|
|
188
|
+
reject(new Error(` Error connecting to proxy: ${response.statusCode}, ${response == null ? void 0 : response.statusMessage}`));
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
if (tunnelRequestOptions.timeout) {
|
|
@@ -248,8 +248,6 @@ const networkRequestViaProxy = (url, httpMethod, options, timeout) => {
|
|
|
248
248
|
if ((statusCode < 200 || statusCode > 299) && // do not destroy the request for the device code flow
|
|
249
249
|
networkResponse.body["error"] !== Constants.AUTHORIZATION_PENDING) {
|
|
250
250
|
request.destroy();
|
|
251
|
-
socket.destroy();
|
|
252
|
-
reject(new Error(`HTTP status code ${statusCode}`));
|
|
253
251
|
}
|
|
254
252
|
|
|
255
253
|
resolve(networkResponse);
|
|
@@ -321,7 +319,6 @@ const networkRequestViaHttps = (url, httpMethod, options, timeout) => {
|
|
|
321
319
|
if ((statusCode < 200 || statusCode > 299) && // do not destroy the request for the device code flow
|
|
322
320
|
networkResponse.body["error"] !== Constants.AUTHORIZATION_PENDING) {
|
|
323
321
|
request.destroy();
|
|
324
|
-
reject(new Error(`HTTP status code ${statusCode}`));
|
|
325
322
|
}
|
|
326
323
|
|
|
327
324
|
resolve(networkResponse);
|
|
@@ -1766,7 +1763,7 @@ class TokenCache {
|
|
|
1766
1763
|
|
|
1767
1764
|
/* eslint-disable header/header */
|
|
1768
1765
|
const name = "@azure/msal-node";
|
|
1769
|
-
const version = "1.14.
|
|
1766
|
+
const version = "1.14.1";
|
|
1770
1767
|
|
|
1771
1768
|
/*
|
|
1772
1769
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2635,8 +2632,13 @@ class ConfidentialClientApplication extends ClientApplication {
|
|
|
2635
2632
|
};
|
|
2636
2633
|
}
|
|
2637
2634
|
|
|
2635
|
+
const baseRequest = await this.initializeBaseRequest(request); // valid base request should not contain oidc scopes in this grant type
|
|
2636
|
+
|
|
2637
|
+
const validBaseRequest = { ...baseRequest,
|
|
2638
|
+
scopes: baseRequest.scopes.filter(scope => !OIDC_DEFAULT_SCOPES.includes(scope))
|
|
2639
|
+
};
|
|
2638
2640
|
const validRequest = { ...request,
|
|
2639
|
-
...
|
|
2641
|
+
...validBaseRequest,
|
|
2640
2642
|
clientAssertion
|
|
2641
2643
|
};
|
|
2642
2644
|
const azureRegionConfiguration = {
|