@itentialopensource/adapter-utils 4.48.11 → 4.48.13

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/CHANGELOG.md CHANGED
@@ -1,4 +1,22 @@
1
1
 
2
+ ## 4.48.13 [04-10-2023]
3
+
4
+ * Update xm2json dependency version in package
5
+
6
+ See merge request itentialopensource/adapter-utils!254
7
+
8
+ ---
9
+
10
+ ## 4.48.12 [04-06-2023]
11
+
12
+ * Update msa to handle get auth request
13
+
14
+ Closes ADAPT-2641
15
+
16
+ See merge request itentialopensource/adapter-utils!252
17
+
18
+ ---
19
+
2
20
  ## 4.48.11 [04-03-2023]
3
21
 
4
22
  * Add sso support to MSA
@@ -1993,6 +1993,11 @@ async function buildTokenRequest(reqPath, reqBody, callProperties, callback) {
1993
1993
 
1994
1994
  // if this is not a get, need to add the info to the request
1995
1995
  let creds = {};
1996
+ if (authMethod === 'multi_step_authentication') {
1997
+ const { stepBody, stepHeaders } = callProperties.mfa;
1998
+ Object.assign(creds, stepBody);
1999
+ Object.assign(options.headers, stepHeaders);
2000
+ }
1996
2001
  if (options.method !== 'GET') {
1997
2002
  if (authMethod === 'multi_step_authentication') {
1998
2003
  const { stepBody, stepHeaders } = callProperties.mfa;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-utils",
3
- "version": "4.48.11",
3
+ "version": "4.48.13",
4
4
  "description": "Itential Adapter Utility Libraries",
5
5
  "scripts": {
6
6
  "postinstall": "node utils/setup.js",
@@ -41,7 +41,7 @@
41
41
  "readline-sync": "^1.4.10",
42
42
  "socks-proxy-agent": "^4.0.2",
43
43
  "uuid": "^8.3.2",
44
- "xml2js": "^0.4.23"
44
+ "xml2js": "^0.5.0"
45
45
  },
46
46
  "devDependencies": {
47
47
  "chai": "^4.3.4",
@@ -50,12 +50,12 @@
50
50
  "eslint-plugin-import": "^2.23.4",
51
51
  "eslint-plugin-json": "^3.0.0",
52
52
  "mocha": "^9.0.1",
53
+ "nock": "^13.2.9",
53
54
  "nyc": "^15.1.0",
54
55
  "strip-ansi": "^7.0.1",
55
56
  "strip-ansi-cli": "^3.0.1",
56
57
  "testdouble": "^3.16.1",
57
- "winston": "^3.3.3",
58
- "nock": "^13.2.9"
58
+ "winston": "^3.3.3"
59
59
  },
60
60
  "peerDependencies": {},
61
61
  "private": false