@rodit/rodit-auth-be 9.13.0 → 9.14.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/CHANGELOG.md +9 -0
- package/README.md +1 -1
- package/lib/auth/sessionmanager.js +0 -24
- package/package.json +2 -2
- package/services/configsdk.js +0 -14
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@rodit/rodit-auth-be` are documented here.
|
|
4
4
|
|
|
5
|
+
## [9.14.0] — 2026-07-16
|
|
6
|
+
|
|
7
|
+
### Removed
|
|
8
|
+
|
|
9
|
+
- **`createExpressSessionMiddleware`** — unused cookie-session HMAC helper; JWT
|
|
10
|
+
auth uses EdDSA only.
|
|
11
|
+
- **`SECURITY_OPTIONS.SESSION_SECRET`** config key and env mapping
|
|
12
|
+
(`SECURITY_OPTIONS_SESSION_SECRET`). Not part of the RODiT/JWT auth path.
|
|
13
|
+
|
|
5
14
|
## [9.13.0] — 2026-07-15
|
|
6
15
|
|
|
7
16
|
### Added
|
package/README.md
CHANGED
|
@@ -2369,7 +2369,7 @@ const {
|
|
|
2369
2369
|
} = require('@rodit/rodit-auth-be')
|
|
2370
2370
|
// Note: Session storage configuration functions are available via:
|
|
2371
2371
|
// const { setExpressSessionStore, configureStorageFromConfig,
|
|
2372
|
-
//
|
|
2372
|
+
// InMemorySessionStorage }
|
|
2373
2373
|
// = require('@rodit/rodit-auth-be/lib/auth/sessionmanager');
|
|
2374
2374
|
```
|
|
2375
2375
|
|
|
@@ -338,29 +338,6 @@ function configureStorageFromConfig() {
|
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
340
|
|
|
341
|
-
// Optional helper to create a real express-session middleware using the current store
|
|
342
|
-
function createExpressSessionMiddleware(options = {}) {
|
|
343
|
-
if (!sessionLib) {
|
|
344
|
-
logger.warnWithContext('express-session not installed; returning no-op session middleware', {
|
|
345
|
-
component: 'SessionManager',
|
|
346
|
-
operation: 'session.middleware.create'
|
|
347
|
-
});
|
|
348
|
-
return (req, res, next) => next();
|
|
349
|
-
}
|
|
350
|
-
const secret = config.get('SECURITY_OPTIONS.SESSION_SECRET');
|
|
351
|
-
const store = (currentStorage instanceof ExpressSessionStoreAdapter)
|
|
352
|
-
? currentStorage.store
|
|
353
|
-
: new sessionLib.MemoryStore();
|
|
354
|
-
|
|
355
|
-
return sessionLib({
|
|
356
|
-
saveUninitialized: false,
|
|
357
|
-
resave: false,
|
|
358
|
-
...options,
|
|
359
|
-
secret,
|
|
360
|
-
store,
|
|
361
|
-
});
|
|
362
|
-
}
|
|
363
|
-
|
|
364
341
|
class SessionManager {
|
|
365
342
|
constructor() {
|
|
366
343
|
const instanceId = ulid();
|
|
@@ -1411,7 +1388,6 @@ module.exports = {
|
|
|
1411
1388
|
setStorage,
|
|
1412
1389
|
setExpressSessionStore,
|
|
1413
1390
|
configureStorageFromConfig,
|
|
1414
|
-
createExpressSessionMiddleware,
|
|
1415
1391
|
SESSION_CLEANUP_INTERVAL,
|
|
1416
1392
|
SESSION_TOKEN_RETENTION_PERIOD
|
|
1417
1393
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rodit/rodit-auth-be",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.14.0",
|
|
4
4
|
"description": "RODiT-based authentication system for Express.js applications",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"exports": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"repository": {
|
|
48
48
|
"type": "git",
|
|
49
|
-
"url": "https://github.com/discernible-io/rodit-auth-be.git"
|
|
49
|
+
"url": "git+https://github.com/discernible-io/rodit-auth-be.git"
|
|
50
50
|
},
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
package/services/configsdk.js
CHANGED
|
@@ -244,10 +244,6 @@ const FALLBACK_DEFAULTS = {
|
|
|
244
244
|
// - true: allow relaxed validation checks
|
|
245
245
|
// - false: enforce strict validation checks
|
|
246
246
|
RELAXED_SESSION_VALIDATION: true,
|
|
247
|
-
// Session middleware secret used for signing session data.
|
|
248
|
-
// Options:
|
|
249
|
-
// - any non-empty string (recommended: long, random secret on main)
|
|
250
|
-
SESSION_SECRET: "HMAC-session-secret-is-not-set",
|
|
251
247
|
// Webhook outbound TLS verification.
|
|
252
248
|
// Options:
|
|
253
249
|
// - true: skip TLS certificate verification (for controlled/self-signed setups)
|
|
@@ -398,16 +394,6 @@ const VALIDATION_RULES = {
|
|
|
398
394
|
type: 'boolean',
|
|
399
395
|
validate: () => null
|
|
400
396
|
},
|
|
401
|
-
'SECURITY_OPTIONS.SESSION_SECRET': {
|
|
402
|
-
required: false,
|
|
403
|
-
type: 'string',
|
|
404
|
-
validate: (value) => {
|
|
405
|
-
if (!value || value.length === 0) {
|
|
406
|
-
return 'SECURITY_OPTIONS.SESSION_SECRET cannot be empty when provided';
|
|
407
|
-
}
|
|
408
|
-
return null;
|
|
409
|
-
}
|
|
410
|
-
},
|
|
411
397
|
'SECURITY_OPTIONS.FALLBACK_JWT_DURATION': {
|
|
412
398
|
required: false,
|
|
413
399
|
type: 'number',
|