@kronos-integration/service-authenticator 1.6.46 → 1.6.48
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/LICENSE +1 -1
- package/package.json +10 -10
- package/src/service-authenticator.mjs +2 -2
package/LICENSE
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kronos-integration/service-authenticator",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.48",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -29,23 +29,23 @@
|
|
|
29
29
|
"lint:docs": "documentation lint ./src/**/*.mjs"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@kronos-integration/endpoint": "^9.4.
|
|
33
|
-
"@kronos-integration/service": "^10.4.
|
|
34
|
-
"jsonwebtoken": "^
|
|
35
|
-
"model-attributes": "^4.2.
|
|
32
|
+
"@kronos-integration/endpoint": "^9.4.41",
|
|
33
|
+
"@kronos-integration/service": "^10.4.41",
|
|
34
|
+
"jsonwebtoken": "^9.0.0",
|
|
35
|
+
"model-attributes": "^4.2.2"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"ava": "^5.
|
|
39
|
-
"c8": "^7.
|
|
38
|
+
"ava": "^5.2.0",
|
|
39
|
+
"c8": "^7.13.0",
|
|
40
40
|
"documentation": "^14.0.1",
|
|
41
|
-
"semantic-release": "^
|
|
41
|
+
"semantic-release": "^20.1.0"
|
|
42
42
|
},
|
|
43
43
|
"engines": {
|
|
44
|
-
"node": ">=18.
|
|
44
|
+
"node": ">=18.14.1"
|
|
45
45
|
},
|
|
46
46
|
"repository": {
|
|
47
47
|
"type": "git",
|
|
48
|
-
"url": "https://github.com/Kronos-Integration/service-authenticator
|
|
48
|
+
"url": "https://github.com/Kronos-Integration/service-authenticator"
|
|
49
49
|
},
|
|
50
50
|
"bugs": {
|
|
51
51
|
"url": "https://github.com/Kronos-Integration/service-authenticator/issues"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { promisify } from "util";
|
|
1
|
+
import { promisify } from "node:util";
|
|
2
2
|
import jwt from "jsonwebtoken";
|
|
3
3
|
import ms from "ms";
|
|
4
4
|
import { mergeAttributes, createAttributes } from "model-attributes";
|
|
@@ -143,7 +143,7 @@ export class ServiceAuthenticator extends Service {
|
|
|
143
143
|
for (const e of this.authEndpoints) {
|
|
144
144
|
const response = await e.send(credentials);
|
|
145
145
|
|
|
146
|
-
if (response
|
|
146
|
+
if (response?.entitlements) {
|
|
147
147
|
entitlements = [...response.entitlements];
|
|
148
148
|
break;
|
|
149
149
|
}
|