@rodit/rodit-auth-be 9.12.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 +33 -0
- package/README.md +1712 -2324
- package/index.js +14 -2
- package/lib/auth/sessionmanager.js +0 -24
- package/lib/auth/tokenservice.js +153 -33
- package/lib/middleware/authenticationmw.js +70 -3
- package/package.json +2 -2
- package/services/configsdk.js +0 -14
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,39 @@
|
|
|
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
|
+
|
|
14
|
+
## [9.13.0] — 2026-07-15
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- **Federated login across APIs in the same SR/CR family.** A client RODiT
|
|
19
|
+
issued for API A can log into API B via
|
|
20
|
+
`login_server({ apiEndpoint: '<federated URL>' })`. Mutual auth remains
|
|
21
|
+
optional; federation is login → remint a local JWT (foreign JWTs are not
|
|
22
|
+
accepted without re-login).
|
|
23
|
+
- **JWT claim `rodit_subjectuniqueidentifier_url` (always present).** Same
|
|
24
|
+
unset-as-`null` rule as `config_*` in 9.12:
|
|
25
|
+
- Same-API login: claim is `null`; `iss` = receiving server URL
|
|
26
|
+
- Federated login: claim = federated API URL; `iss` = client home
|
|
27
|
+
`subjectuniqueidentifier_url`
|
|
28
|
+
- Server validation treats non-empty claim strings as federated JWTs
|
|
29
|
+
(`isNonEmptyUrlClaim`); renewal always copies/normalizes to `null` or the
|
|
30
|
+
URL (9.12 tokens without the claim renew into `null`)
|
|
31
|
+
- **Client MITM check.** After crypto validation, `login_server` verifies that
|
|
32
|
+
a federated JWT's `rodit_subjectuniqueidentifier_url` matches the intended
|
|
33
|
+
`apiEndpoint` and that `iss` matches the client home URL. Failures:
|
|
34
|
+
`FEDERATED_ISSUER_MISSING`, `FEDERATED_ISSUER_MISMATCH`.
|
|
35
|
+
- **Exported helpers:** `normalizeUrlWithoutPort`, `isNonEmptyUrlClaim`,
|
|
36
|
+
`isFederatedRoditLogin`, `validateFederatedLoginTarget`.
|
|
37
|
+
|
|
5
38
|
## [9.12.0] — 2026-07-02
|
|
6
39
|
|
|
7
40
|
### Fixed
|