Summary
This issue tracks the full JWT/Spring Security implementation that will replace the temporary permissive SecurityConfig introduced in PR #55.
Background
PR #55 (feat/comment-controller) added a SecurityConfig with anyRequest().permitAll() as a temporary measure to unblock development and testing. This must be hardened before reaching production.
Tasks
References
Notes
Until this is implemented, the @AuthenticationPrincipal User parameters in CommentController will silently receive null for unauthenticated requests.
Summary
This issue tracks the full JWT/Spring Security implementation that will replace the temporary permissive
SecurityConfigintroduced in PR #55.Background
PR #55 (feat/comment-controller) added a
SecurityConfigwithanyRequest().permitAll()as a temporary measure to unblock development and testing. This must be hardened before reaching production.Tasks
JwtAuthFilterto validate JWT tokens on incoming requestsSessionCreationPolicy.STATELESS)/api/comments/**to authenticated users only (replacing the globalpermitAll)@AuthenticationPrincipal UserinCommentControllerreceives a valid non-null principal when endpoints are called with a valid tokenReferences
Notes
Until this is implemented, the
@AuthenticationPrincipal Userparameters inCommentControllerwill silently receivenullfor unauthenticated requests.