@jskit-ai/oidc-issuer-core 0.1.14 → 0.1.16
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jskit-ai/oidc-issuer-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "node --test --test-concurrency=1"
|
|
@@ -113,16 +113,16 @@
|
|
|
113
113
|
}
|
|
114
114
|
},
|
|
115
115
|
"dependencies": {
|
|
116
|
-
"@jskit-ai/database-runtime": "0.1.
|
|
116
|
+
"@jskit-ai/database-runtime": "0.1.258",
|
|
117
117
|
"jose": "6.2.12",
|
|
118
118
|
"knex": "^3.1.0",
|
|
119
119
|
"nodemailer": "10.2.1",
|
|
120
120
|
"oidc-provider": "9.12.2"
|
|
121
121
|
},
|
|
122
122
|
"devDependencies": {
|
|
123
|
-
"@jskit-ai/auth-provider-local-core": "0.2.
|
|
123
|
+
"@jskit-ai/auth-provider-local-core": "0.2.11"
|
|
124
124
|
},
|
|
125
125
|
"peerDependencies": {
|
|
126
|
-
"@jskit-ai/kernel": "0.2.
|
|
126
|
+
"@jskit-ai/kernel": "0.2.9"
|
|
127
127
|
}
|
|
128
128
|
}
|
package/src/server/config.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { randomBytes } from "node:crypto";
|
|
2
2
|
import fs from "node:fs";
|
|
3
3
|
import path from "node:path";
|
|
4
|
+
import { isProductionEnv } from "@jskit-ai/kernel/server/runtime/runtimeMode";
|
|
4
5
|
|
|
5
6
|
const LOOPBACK_HOSTS = new Set(["localhost", "127.0.0.1", "[::1]", "::1"]);
|
|
6
7
|
const MIN_SECRET_BYTES = 32;
|
|
@@ -142,7 +143,7 @@ function resolveHubDevAuth(env) {
|
|
|
142
143
|
* naming the variable to fix.
|
|
143
144
|
*/
|
|
144
145
|
function resolveHubConfig(env = {}, { appRoot = "" } = {}) {
|
|
145
|
-
const isProduction =
|
|
146
|
+
const isProduction = isProductionEnv(env);
|
|
146
147
|
const registrationToken = text(env.OIDC_HUB_REGISTRATION_TOKEN);
|
|
147
148
|
if (!registrationToken) {
|
|
148
149
|
throw new HubConfigError("Set OIDC_HUB_REGISTRATION_TOKEN: apps present it when they register with the hub.");
|