Repository navigation
refactor(auth): extract password-login session state writes (S08-C1a) - #357
Merged
voidvec merged 1 commit intoNov 19, 2026
Merged
Conversation
wangrh0909
previously approved these changes
Nov 19, 2026
Owner
Author
Deep review — S08-C1a password-login session-state extraction (head
|
4 of 5 tasks
Preserve password-login overwrite order, the controller clock read, marker cleanup and session-ID rotation in two private helpers. Add an isolated real-Session fixture and paired HTTP characterization coverage without changing policy, storage, routes or public APIs.
voidvec
force-pushed
the
refactor/password-login-session-c1a-implementation
branch
from
November 19, 2026 08:56
fe3f057 to
c3e5b0d
Compare
voidvec
marked this pull request as ready for review
November 19, 2026 09:48
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
wangrh0909
approved these changes
Nov 19, 2026
voidvec
deleted the
refactor/password-login-session-c1a-implementation
branch
November 19, 2026 09:55
4 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
S08-C1a extracts the existing password-login session writes into two private, non-installed helpers. A fresh login still replaces the internal ID/public subject, records password authentication, clears the two stale markers and rotates JSESSIONID once. The controller's original clock read stays between the two helpers; the audit/policy/database/callback continuation is byte-identical.
Add five real-Session unit cases in a dedicated executable and two HTTP characterization cases covering account switching, rejected credentials, forced-password/MFA gates and MFA-to-password relogin. The private fixture uses a framework-created session, a loopback ephemeral listener and one start/quit/join cycle; it is excluded from the existing event-loop-free adapter test executable.
No public headers, SDK/OpenAPI, routes, storage, schema, configuration or authentication policy change. This does not fix #350, #351 or #353.
Validation
manage.sh test-backend, 654 CTest entries; complete main binary 753 cases / 62,547 assertions.-O1 -DNDEBUG; examples were disabled locally.7329b7d978f9c8dc4543026773587edb3a208a74exactly matches the independently reviewed native tree.Known validation limits: the existing CSP broker-profile sub-branch is skipped in this test wiring; the wrapper's second memory-config round is skipped because its nested staged-config path is absent. PostgreSQL HTTP coverage is real; active email-verification policy, database-failure injection and the independent fallback HTTP path were not separately exercised. An initial runner configuration mismatch was retained and excluded from the accepted paired baseline; the corrected run checks the expected and staged configuration hashes. Full-suite assertion totals are reported per run rather than treated as a fixed equality check. Fixture users are retired through the API; UUID clients remain because of existing token references.
Fresh three-platform CI/SDK-consumer/Sanitizers results and a manually dispatched client-SDK drift workflow remain to be checked. No merge or deployment is requested.
Type of change
Internal refactor, non-breaking.
Checklist