security(auth,ws): fix Auth/TOTP/WebAuthn/bootstrap vulnerabilities, session idle TTL & real-time WS revocation
This commit is contained in:
parent
e3f716d24f
commit
1b2e425a00
13 changed files with 1248 additions and 477 deletions
|
|
@ -453,7 +453,7 @@ describe('Configurable Re-Auth Strictness, Multi-Auth Factors & Emergency Secret
|
|||
activeServer = server;
|
||||
api = createApiClient(server);
|
||||
|
||||
vi.setSystemTime(t0 + 31_000);
|
||||
vi.setSystemTime(t0 + 62_000);
|
||||
const relogin = await api.call('/api/auth/login', {
|
||||
method: 'POST',
|
||||
body: {
|
||||
|
|
@ -510,7 +510,7 @@ describe('Configurable Re-Auth Strictness, Multi-Auth Factors & Emergency Secret
|
|||
).status,
|
||||
).toBe(200);
|
||||
|
||||
vi.setSystemTime(t0 + 62_000);
|
||||
vi.setSystemTime(t0 + 93_000);
|
||||
expect(
|
||||
(await api.call('/api/auth/step-up', { method: 'POST', body: { code: totp.generate() } })).status,
|
||||
).toBe(200);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue