@itentialopensource/adapter-utils 4.45.6 → 4.45.7
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 +6 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
|
|
2
|
+
## 4.45.7 [07-25-2022]
|
|
3
|
+
|
|
4
|
+
* Fix issue on no token where it takes exception
|
|
5
|
+
|
|
6
|
+
Closes ADAPT-2244
|
|
7
|
+
|
|
8
|
+
See merge request itentialopensource/adapter-utils!233
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
2
12
|
## 4.45.6 [05-19-2022]
|
|
3
13
|
|
|
4
14
|
* Change for token request with Auth header and data
|
package/lib/connectorRest.js
CHANGED
|
@@ -2124,6 +2124,9 @@ function getTokenItem(pathForToken, user, reqBody, invalidToken, callProperties,
|
|
|
2124
2124
|
if (berror) {
|
|
2125
2125
|
done(null, berror);
|
|
2126
2126
|
}
|
|
2127
|
+
if (!dyntoken) {
|
|
2128
|
+
done(null, 'No Token returned');
|
|
2129
|
+
}
|
|
2127
2130
|
|
|
2128
2131
|
let timeout = tokenTimeout;
|
|
2129
2132
|
|
|
@@ -2396,6 +2399,9 @@ function requestAuthenticate(request, entitySchema, invalidToken, callProperties
|
|
|
2396
2399
|
if (berror) {
|
|
2397
2400
|
return callback(null, berror);
|
|
2398
2401
|
}
|
|
2402
|
+
if (!dyntoken) {
|
|
2403
|
+
return callback(null, 'No Token returned');
|
|
2404
|
+
}
|
|
2399
2405
|
|
|
2400
2406
|
// format the authentication string
|
|
2401
2407
|
const tokenObj = {
|