SECU-01: JWT Bearer token required for all protected endpoints #23
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
All API endpoints except
GET /api/v1/healthandPOST /api/v1/agents/registerrequire a valid JWT Bearer token in theAuthorizationheader. Returns401 Unauthorizedfor missing or invalid tokens.Category: Security
REQ-ID: SECU-01
Implemented in Phase 4.
SecurityConfigwithSecurityFilterChainpermits health, register, refresh, and docs endpoints.JwtAuthenticationFilter(OncePerRequestFilter) validates Bearer tokens on all other endpoints, returning 401 for missing/invalid tokens. Key files:SecurityConfig.java,JwtAuthenticationFilter.java.Implemented:
JwtServiceImpl+JwtAuthenticationFilterfor JWT Bearer token authentication on protected endpoints.