Skip to content

feat(backend): implement session - #119

Merged
OffRange merged 26 commits into
v2from
feat/backend-session
Oct 29, 2026
Merged

OffRange merged 26 commits into
v2from
feat/backend-session

Conversation

@OffRange

Copy link
Copy Markdown
Owner

No description provided.

OffRange and others added 26 commits October 20, 2026 17:25
commit 0b6419d
Author: Davis <[email protected]>
Date:   Tue Oct 27 18:02:51 2026 +0100

    feat(api): issue access token on login

commit 388d24e
Author: Davis <[email protected]>
Date:   Tue Oct 27 15:31:01 2026 +0100

    fix(access_token): use parsed issuer

commit d60ac9b
Author: Davis <[email protected]>
Date:   Tue Oct 27 13:52:45 2026 +0100

    feat(api): issue access token on register

commit e2b371d
Author: Davis <[email protected]>
Date:   Tue Oct 27 12:33:47 2026 +0100

    feat(api): add access token structure

commit 29a1d4d
Author: Davis Wolfermann <[email protected]>
Date:   Sun Oct 25 16:52:32 2026 +0100

    fix(tests): make tests pass and add new tests

commit 4f6a9c9
Author: Davis Wolfermann <[email protected]>
Date:   Sun Oct 25 16:42:06 2026 +0100

    feat(api): wire-up session

commit a6fd4f7
Author: Davis Wolfermann <[email protected]>
Date:   Sun Oct 25 16:16:30 2026 +0100

    feat(service): add session service

commit 15c4e03
Author: Davis Wolfermann <[email protected]>
Date:   Sun Oct 25 16:00:00 2026 +0100

    feat(db): add session insert fn
One unauthenticated client could fill the DPoP replay store with proofs
signed by keys of its own, and every DPoP request then got 429.

Verification is now split: `check` runs every stateless check, and the
jti is recorded only where a replay could repeat an action.
`Authenticated` records it after the access token verifies and the
session is live. The token-issuing endpoints (`*/finish`,
`/auth/token`) take `SingleUseDpopProof` and record nothing, because
their own single-use state (login state, registration reservation,
refresh rotation) already turns a replay away, and what they issue is
bound to a key the replayer does not hold.

Replay tests pin both paths.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@OffRange
OffRange enabled auto-merge (squash) October 29, 2026 19:17
@OffRange
OffRange disabled auto-merge October 29, 2026 19:50
@OffRange
OffRange merged commit cd1d05b into v2 Oct 29, 2026
7 of 8 checks passed
@OffRange
OffRange deleted the feat/backend-session branch October 29, 2026 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant