@kronos-integration/service-authenticator 4.0.7 → 4.1.0

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/README.md CHANGED
@@ -1,10 +1,12 @@
1
+ [![npm](https://img.shields.io/npm/v/@kronos-integration/service-authenticator.svg)](https://www.npmjs.com/package/@kronos-integration/service-authenticator)
1
2
  [![License](https://img.shields.io/badge/License-0BSD-blue.svg)](https://spdx.org/licenses/0BSD.html)
3
+ [![bundlejs](https://deno.bundlejs.com/?q=@kronos-integration/service-authenticator\&badge=detailed)](https://bundlejs.com/?q=@kronos-integration/service-authenticator)
4
+ [![downloads](http://img.shields.io/npm/dm/@kronos-integration/service-authenticator.svg?style=flat-square)](https://npmjs.org/package/@kronos-integration/service-authenticator)
2
5
  [![GitHub Issues](https://img.shields.io/github/issues/Kronos-Integration/service-authenticator.svg?style=flat-square)](https://github.com/Kronos-Integration/service-authenticator/issues)
3
6
  [![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2FKronos-Integration%2Fservice-authenticator%2Fbadge\&style=flat)](https://actions-badge.atrox.dev/Kronos-Integration/service-authenticator/goto)
4
7
  [![Styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
5
8
  [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
6
9
  [![Known Vulnerabilities](https://snyk.io/test/github/Kronos-Integration/service-authenticator/badge.svg)](https://snyk.io/test/github/Kronos-Integration/service-authenticator)
7
- [![Coverage Status](https://coveralls.io/repos/Kronos-Integration/service-authenticator/badge.svg)](https://coveralls.io/github/Kronos-Integration/service-authenticator)
8
10
 
9
11
  # @kronos-integration/service-authentication
10
12
 
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@kronos-integration/service-authenticator",
3
- "version": "4.0.7",
3
+ "version": "4.1.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
7
7
  },
8
+ "packageManager": "npm@11.6.4+sha512.1118cab46a05a50aee6bff5b1b4fa1df18afff89d57465620a3518035026955db87c5bdf9d207b07b7487d99f2490d450cb774655ad63ec2cba7bf1d0ad25d45",
8
9
  "exports": {
9
10
  ".": "./src/service-authenticator.mjs"
10
11
  },
@@ -19,18 +20,18 @@
19
20
  "email": "markus.felten@gmx.de"
20
21
  }
21
22
  ],
22
- "license": "BSD-2-Clause",
23
+ "license": "0BSD",
23
24
  "scripts": {
24
25
  "test": "node --run test:ava",
25
26
  "test:ava": "ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs",
26
27
  "cover": "c8 -x 'tests/**/*' --temp-directory build/tmp ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs && c8 report -r lcov -o build/coverage --temp-directory build/tmp",
27
- "docs": "documentation readme --section=API ./src/**/*.mjs",
28
+ "docs": "documentation readme --section=API ./src**/*.mjs",
28
29
  "lint": "node --run lint:docs",
29
- "lint:docs": "documentation lint ./src/**/*.mjs"
30
+ "lint:docs": "documentation lint ./src**/*.mjs"
30
31
  },
31
32
  "dependencies": {
32
- "@kronos-integration/endpoint": "^11.0.3",
33
- "@kronos-integration/service": "^15.0.1",
33
+ "@kronos-integration/endpoint": "^11.0.5",
34
+ "@kronos-integration/service": "^15.1.1",
34
35
  "jsonwebtoken": "^9.0.3"
35
36
  },
36
37
  "devDependencies": {
@@ -40,7 +41,7 @@
40
41
  "semantic-release": "^25.0.2"
41
42
  },
42
43
  "engines": {
43
- "node": ">=24.11.0"
44
+ "node": ">=24.12.0"
44
45
  },
45
46
  "repository": {
46
47
  "type": "git",
@@ -55,6 +56,5 @@
55
56
  "arlac77/template-arlac77-github",
56
57
  "arlac77/template-kronos-component"
57
58
  ]
58
- },
59
- "packageManager": "npm@11.6.4+sha512.1118cab46a05a50aee6bff5b1b4fa1df18afff89d57465620a3518035026955db87c5bdf9d207b07b7487d99f2490d450cb774655ad63ec2cba7bf1d0ad25d45"
59
+ }
60
60
  }
@@ -91,6 +91,17 @@ export class ServiceAuthenticator extends Service {
91
91
  };
92
92
  }
93
93
 
94
+ async configure(config) {
95
+ const credentials = await this.getCredentials();
96
+ if (credentials["jwt.private"]) {
97
+ config.jwt.private = credentials["jwt.private"];
98
+ }
99
+ if (credentials["jwt.private"]) {
100
+ config.jwt.public = credentials["jwt.pupblic"];
101
+ }
102
+ return super.configure(config);
103
+ }
104
+
94
105
  /**
95
106
  * Endpoints used to send password change requests to.
96
107
  */