Auth: wire Spring Security + Spring Session JDBC end to end - #47
Open
RandyJDean wants to merge 1 commit into
Conversation
This was referenced Jul 9, 2026
Contributor
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Jul 9, 2026
RandyJDean
force-pushed
the
07-09-auth_wire_spring_security_spring_session_jdbc_end_to_end
branch
from
July 31, 2026 17:24
37bcb7f to
81d33d2
Compare
RandyJDean
force-pushed
the
07-09-auth_request-link_and_verify_flows
branch
from
July 31, 2026 17:24
9ebd548 to
2a9e88a
Compare
Graphite Automations"Request reviewers once CI passes" took an action on this PR • (07/31/26)2 reviewers were added to this PR based on Henry Chen's automation. |
RandyJDean
force-pushed
the
07-09-auth_wire_spring_security_spring_session_jdbc_end_to_end
branch
from
July 31, 2026 18:17
81d33d2 to
3c0452c
Compare
RandyJDean
force-pushed
the
07-09-auth_request-link_and_verify_flows
branch
from
July 31, 2026 18:17
2a9e88a to
04a095e
Compare
- AuthController: POST /api/auth/request-link|verify|logout and GET /api/session; verify performs programmatic login (session id rotation + SecurityContextRepository save), session reads the member fresh so profile completion is never stale - SecurityConfig moved to auth/security and rewired: patchats_session cookie (HttpOnly, SameSite=Lax, Secure per profile, 30d) via DefaultCookieSerializer; dev/prod chains share CSRF-off posture documented in the javadoc; prod email rule kept fail-closed - ApiAuthenticationEntryPoint answers 401s in the ApiResponder envelope - AuthenticatedMember principal is Serializable (persisted by Spring Session) and exposes email as the indexed principal name - SecurityWiringTest exercises the real filter chain: anonymous 401, session-carried auth across requests, logout invalidation Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
RandyJDean
force-pushed
the
07-09-auth_request-link_and_verify_flows
branch
from
August 10, 2026 18:15
04a095e to
5e4d0fb
Compare
RandyJDean
force-pushed
the
07-09-auth_wire_spring_security_spring_session_jdbc_end_to_end
branch
from
August 10, 2026 18:15
3c0452c to
3707e71
Compare
|
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.




GET /api/session; verify performs programmatic login (session id
rotation + SecurityContextRepository save), session reads the member
fresh so profile completion is never stale
cookie (HttpOnly, SameSite=Lax, Secure per profile, 30d) via
DefaultCookieSerializer; dev/prod chains share CSRF-off posture
documented in the javadoc; prod email rule kept fail-closed
Session) and exposes email as the indexed principal name
session-carried auth across requests, logout invalidation
Co-Authored-By: Claude Fable 5 noreply@anthropic.com