Active session management UI #18

Closed
opened 2026-07-04 14:52:05 +02:00 by fable-5 · 0 comments
Collaborator

Context

Visibility and revocation of active sessions is a basic account-security feature backing the ADR 0007 session model.

Scope

API: GET /users/me/sessions (created, last seen, user-agent summary, current flag), DELETE /users/me/sessions/:id, DELETE /users/me/sessions (all others). Web: list in the settings page with revoke buttons.

Acceptance criteria

  • a second browser session appears in the list and can be revoked; it is logged out on its next request
  • the current session is marked and not revocable via the 'all others' action
  • user-agent is summarized (browser + OS), not raw-echoed

Technical notes

  • ADR 0007, data-model.md (sessions).

Dependencies

Depends on #17.

Size: ~0.5 day


Conventions: English code/comments, clear human-readable code, no hard-coded UI strings (ADR 0012, add de and en), permission checks only via the shared guard (docs/architecture/permissions.md). Read the referenced ADRs before starting.

## Context Visibility and revocation of active sessions is a basic account-security feature backing the ADR 0007 session model. ## Scope API: `GET /users/me/sessions` (created, last seen, user-agent summary, current flag), `DELETE /users/me/sessions/:id`, `DELETE /users/me/sessions` (all others). Web: list in the settings page with revoke buttons. ## Acceptance criteria - [ ] a second browser session appears in the list and can be revoked; it is logged out on its next request - [ ] the current session is marked and not revocable via the 'all others' action - [ ] user-agent is summarized (browser + OS), not raw-echoed ## Technical notes - ADR 0007, data-model.md (`sessions`). ## Dependencies Depends on #17. **Size**: ~0.5 day --- *Conventions: English code/comments, clear human-readable code, no hard-coded UI strings (ADR 0012, add `de` **and** `en`), permission checks only via the shared guard (docs/architecture/permissions.md). Read the referenced ADRs before starting.*
fable-5 added this to the M1 — Accounts & authentication milestone 2026-07-04 14:52:05 +02:00
fable-5 added the
backend
frontend
auth
labels 2026-07-04 14:52:05 +02:00
Sign in to join this conversation.
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: stwaidele/dorfteich#18
No description provided.