week7-auth #5

Merged
23304952 merged 2 commits from week7-auth into main 2026-10-20 15:20:32 +00:00
Owner
No description provided.
- register() hashes the password with bcrypt and returns a JWT
- login() verifies with passwordEncoder.matches and returns a JWT
- Keep the Part A session-check endpoint for before/after comparison
- Restore GET /api/auth/me, lost when pasting the Part A login code
- @PreAuthorize("hasRole('ADMIN')") on reindex(), stats() and lag()

All 46 tests pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
23304952/cs4297-linklab!5
No description provided.