@jskit-ai/auth-provider-oidc-core 0.2.35 → 0.2.37
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
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
- The second-factor operations (`getSecondFactorStatus`, `startSecondFactorSetup`, `confirmSecondFactorSetup`, `verifySecondFactor`, `replaceSecondFactorRecoveryCodes`, `removeSecondFactor`, `listSecondFactors`, `resetSecondFactor`) answer `AUTH_OPERATION_UNSUPPORTED`, and `features.secondFactor` is false: the hub asks for its own second factors.
|
|
5
6
|
- `./server/lib/index` exports `OIDC_CLIENT_INFRASTRUCTURE_TABLES` (`auth_oidc_clients`, `auth_oidc_sessions`, `auth_oidc_logout_tokens`), the protocol state the relying party keeps outside table resources, for an app test's `expectEveryTableOwned({ infrastructureTables })`.
|
|
6
7
|
- An ordinary request synchronizes the app profile only when it is missing or no longer matches the identity its session keeps from sign-in (`onlyWhenChanged`); sign-in synchronizes in full. The session is still read on every request. Visible difference: a personal workspace, owner membership or settings row deleted while someone is signed in comes back at their next sign-in instead of their next request.
|
|
7
8
|
- `confirmRegistration` answers `AUTH_OPERATION_UNSUPPORTED`: the hub confirms emails itself.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jskit-ai/auth-provider-oidc-core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.37",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "jskit test"
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"openid-client": "6.8.8"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@jskit-ai/auth-provider-local-core": "0.2.
|
|
24
|
-
"@jskit-ai/auth-web": "0.2.
|
|
23
|
+
"@jskit-ai/auth-provider-local-core": "0.2.26",
|
|
24
|
+
"@jskit-ai/auth-web": "0.2.34",
|
|
25
25
|
"oidc-provider": "9.12.2"
|
|
26
26
|
},
|
|
27
27
|
"description": "Sign in through any OpenID Connect issuer: self-registration or a static client, app-owned sessions, and back-channel logout.",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
}
|
|
92
92
|
},
|
|
93
93
|
"peerDependencies": {
|
|
94
|
-
"@jskit-ai/auth-core": "0.2.
|
|
95
|
-
"@jskit-ai/kernel": "0.2.
|
|
94
|
+
"@jskit-ai/auth-core": "0.2.22",
|
|
95
|
+
"@jskit-ai/kernel": "0.2.22"
|
|
96
96
|
}
|
|
97
97
|
}
|
|
@@ -430,7 +430,15 @@ function createOidcAuthService({ config, store, issuer, profileProjector, logger
|
|
|
430
430
|
setPasswordSignInEnabled: unsupported("setPasswordSignInEnabled"),
|
|
431
431
|
startProviderLink: unsupported("startProviderLink"),
|
|
432
432
|
unlinkProvider: unsupported("unlinkProvider"),
|
|
433
|
-
signOutOtherSessions: unsupported("signOutOtherSessions")
|
|
433
|
+
signOutOtherSessions: unsupported("signOutOtherSessions"),
|
|
434
|
+
getSecondFactorStatus: unsupported("getSecondFactorStatus"),
|
|
435
|
+
startSecondFactorSetup: unsupported("startSecondFactorSetup"),
|
|
436
|
+
confirmSecondFactorSetup: unsupported("confirmSecondFactorSetup"),
|
|
437
|
+
verifySecondFactor: unsupported("verifySecondFactor"),
|
|
438
|
+
replaceSecondFactorRecoveryCodes: unsupported("replaceSecondFactorRecoveryCodes"),
|
|
439
|
+
removeSecondFactor: unsupported("removeSecondFactor"),
|
|
440
|
+
listSecondFactors: unsupported("listSecondFactors"),
|
|
441
|
+
resetSecondFactor: unsupported("resetSecondFactor")
|
|
434
442
|
});
|
|
435
443
|
}
|
|
436
444
|
|
|
@@ -122,6 +122,12 @@ test("capabilities: one OIDC button, no password features, preview identity unch
|
|
|
122
122
|
assert.equal(features.passwordRecovery.request, false);
|
|
123
123
|
assert.equal(features.otp.login, false);
|
|
124
124
|
assert.equal(features.devLoginAs, true);
|
|
125
|
+
// The identity provider asks for its own second factor; OIDC sign-in has none of JSKIT's.
|
|
126
|
+
assert.equal(features.secondFactor, false);
|
|
127
|
+
assert.throws(() => authService.verifySecondFactor({ cookies: {} }, { code: "123456" }), {
|
|
128
|
+
status: 501,
|
|
129
|
+
code: "AUTH_OPERATION_UNSUPPORTED"
|
|
130
|
+
});
|
|
125
131
|
});
|
|
126
132
|
|
|
127
133
|
test("auth-web's start and complete routes bind the attempt to the browser and return the page", async (t) => {
|