feat: Server side sessions (#1673)

* feat: add server side sessions

* feat: add lastUsed & admin endpoint

* feat: add session list to elements

* fix: fix public session endpoint

* chore: only store session info when enabled

* build: update go mod

* feat: add translations

* test: fix tests

* feat: change path

* feat: return userID on session validation endpoint

* feat: move all session endpoints to public router

* fix: add missing translation

* fix: add missing structs

* chore: align session persister with other persisters

* fix: use correct translation label

* chore: add db validator to session model

* feat: create server side session from cmd

* fix: fix review findings
This commit is contained in:
Frederic Jahn
2024-10-15 11:36:32 +02:00
committed by GitHub
parent 46ba6e4015
commit 9dbc62524a
52 changed files with 946 additions and 39 deletions

View File

@ -11,6 +11,7 @@ import { EmailClient } from "./lib/client/EmailClient";
import { ThirdPartyClient } from "./lib/client/ThirdPartyClient";
import { TokenClient } from "./lib/client/TokenClient";
import { EnterpriseClient } from "./lib/client/EnterpriseClient";
import { SessionClient } from "./lib/client/SessionClient";
export {
UserClient,
@ -18,6 +19,7 @@ export {
ThirdPartyClient,
TokenClient,
EnterpriseClient,
SessionClient,
};
// Utils
@ -48,6 +50,7 @@ import {
WebauthnCredential,
WebauthnCredentials,
Identity,
SessionCheckResponse,
} from "./lib/Dto";
export type {
@ -70,6 +73,7 @@ export type {
WebauthnCredential,
WebauthnCredentials,
Identity,
SessionCheckResponse,
};
// Errors