@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 +10 -0
- package/lib/connectorRest.js +5 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/lib/connectorRest.js
CHANGED
|
@@ -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;
|