@itentialopensource/adapter-utils 4.48.11 → 4.48.12

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,14 @@
1
1
 
2
+ ## 4.48.12 [04-06-2023]
3
+
4
+ * Update msa to handle get auth request
5
+
6
+ Closes ADAPT-2641
7
+
8
+ See merge request itentialopensource/adapter-utils!252
9
+
10
+ ---
11
+
2
12
  ## 4.48.11 [04-03-2023]
3
13
 
4
14
  * 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.12",
4
4
  "description": "Itential Adapter Utility Libraries",
5
5
  "scripts": {
6
6
  "postinstall": "node utils/setup.js",