@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfidentialClientApplication.d.ts","sourceRoot":"","sources":["../src/client/ConfidentialClientApplication.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAGxD,OAAO,EAKH,oBAAoB,EAMpB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"ConfidentialClientApplication.d.ts","sourceRoot":"","sources":["../src/client/ConfidentialClientApplication.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAGxD,OAAO,EAKH,oBAAoB,EAMpB,iBAAiB,EAEpB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAE7E;;;;GAIG;AACH,qBAAa,6BAA8B,SAAQ,iBAAkB,YAAW,8BAA8B;IAC1G,OAAO,CAAC,gBAAgB,CAAC,CAAoB;IAE7C;;;;;;;;;;;;;;;;;;OAkBG;gBACS,aAAa,EAAE,aAAa;IAMxC;;;;;OAKG;IACH,mBAAmB,CAAC,QAAQ,EAAE,iBAAiB,GAAG,IAAI;IAItD;;OAEG;IACU,8BAA8B,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IAoDnH;;;;;;;;;;OAUG;IACU,sBAAsB,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IAyBrG,OAAO,CAAC,mBAAmB;CAyC9B"}
|
|
@@ -191,7 +191,7 @@ const networkRequestViaProxy = (url, httpMethod, options, timeout) => {
|
|
|
191
191
|
if (statusCode < 200 || statusCode > 299) {
|
|
192
192
|
request.destroy();
|
|
193
193
|
socket.destroy();
|
|
194
|
-
reject(new Error(`
|
|
194
|
+
reject(new Error(` Error connecting to proxy: ${response.statusCode}, ${response == null ? void 0 : response.statusMessage}`));
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
if (tunnelRequestOptions.timeout) {
|
|
@@ -254,8 +254,6 @@ const networkRequestViaProxy = (url, httpMethod, options, timeout) => {
|
|
|
254
254
|
if ((statusCode < 200 || statusCode > 299) && // do not destroy the request for the device code flow
|
|
255
255
|
networkResponse.body["error"] !== Constants.AUTHORIZATION_PENDING) {
|
|
256
256
|
request.destroy();
|
|
257
|
-
socket.destroy();
|
|
258
|
-
reject(new Error(`HTTP status code ${statusCode}`));
|
|
259
257
|
}
|
|
260
258
|
|
|
261
259
|
resolve(networkResponse);
|
|
@@ -327,7 +325,6 @@ const networkRequestViaHttps = (url, httpMethod, options, timeout) => {
|
|
|
327
325
|
if ((statusCode < 200 || statusCode > 299) && // do not destroy the request for the device code flow
|
|
328
326
|
networkResponse.body["error"] !== Constants.AUTHORIZATION_PENDING) {
|
|
329
327
|
request.destroy();
|
|
330
|
-
reject(new Error(`HTTP status code ${statusCode}`));
|
|
331
328
|
}
|
|
332
329
|
|
|
333
330
|
resolve(networkResponse);
|
|
@@ -1772,7 +1769,7 @@ class TokenCache {
|
|
|
1772
1769
|
|
|
1773
1770
|
/* eslint-disable header/header */
|
|
1774
1771
|
const name = "@azure/msal-node";
|
|
1775
|
-
const version = "1.14.
|
|
1772
|
+
const version = "1.14.1";
|
|
1776
1773
|
|
|
1777
1774
|
/*
|
|
1778
1775
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2641,8 +2638,13 @@ class ConfidentialClientApplication extends ClientApplication {
|
|
|
2641
2638
|
};
|
|
2642
2639
|
}
|
|
2643
2640
|
|
|
2641
|
+
const baseRequest = await this.initializeBaseRequest(request); // valid base request should not contain oidc scopes in this grant type
|
|
2642
|
+
|
|
2643
|
+
const validBaseRequest = { ...baseRequest,
|
|
2644
|
+
scopes: baseRequest.scopes.filter(scope => !msalCommon.OIDC_DEFAULT_SCOPES.includes(scope))
|
|
2645
|
+
};
|
|
2644
2646
|
const validRequest = { ...request,
|
|
2645
|
-
...
|
|
2647
|
+
...validBaseRequest,
|
|
2646
2648
|
clientAssertion
|
|
2647
2649
|
};
|
|
2648
2650
|
const azureRegionConfiguration = {
|