Skip to content

refactor: session migration to PSR-4#136

Merged
ralflang merged 8 commits into
FRAMEWORK_6_0from
feat/session-registry-cleanup
Jun 9, 2026
Merged

refactor: session migration to PSR-4#136
ralflang merged 8 commits into
FRAMEWORK_6_0from
feat/session-registry-cleanup

Conversation

@ralflang

@ralflang ralflang commented Jun 9, 2026

Copy link
Copy Markdown
Member

Port multiple places from PSR-0 Horde_Session to PSR-4 HordeSession or Horde\Token\Token.

Part of the grander #131 topic

ralflang added 8 commits June 9, 2026 21:27
The legacy session handler is now just a shim around the modern session handler which is the real thing
Test Refactor: Now uses a real Token::null('test-secret-key') instance and
round-trips a real generated token. Added testSessionTokenIncorrect for an
explicitly invalid header value.

Refs #131
…oken

Test refactor: replaced Horde_Session mock with a real Token::null instance
and a freshToken() helper that signs with HordeSession::CSRF_SEED.

Refs #131
Session lifecycle calls (regenerate, close, regenerate_due) stay on the
shim for now; only the CSRF token check moves to the modern token service.

Refs #131
Reads and writes go through HordeSession scoped accessors. Cache wire
format diverges from the legacy Horde_Pack-wrapped values; stale entries
fall through as cache misses.

Refs #131
@ralflang ralflang requested a review from TDannhauer June 9, 2026 20:18
@ralflang ralflang merged commit 707b3fc into FRAMEWORK_6_0 Jun 9, 2026
0 of 4 checks passed
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