- WebConfig authInterceptor 경로에 /api/auth/verify-password, /api/auth/profile 추가 (누락 시 CURRENT_MEMBER 미설정 → 로그인 사용자도 NPE 500) - WebConfigTest: 인증 필수 auth 엔드포인트 보호 경로 등록 회귀 가드 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -24,6 +24,7 @@ public class WebConfig implements WebMvcConfigurer {
|
||||
// 인증: 로그인 필요한 경로 (관리자 경로 포함 — SessionUser 세팅용으로 먼저 실행)
|
||||
registry.addInterceptor(authInterceptor)
|
||||
.addPathPatterns("/api/auth/me", "/api/auth/logout", "/api/auth/password",
|
||||
"/api/auth/verify-password", "/api/auth/profile",
|
||||
"/api/board/**", "/api/admin/**", "/api/account/**");
|
||||
// 인가: 관리자 전용 경로 (authInterceptor 다음에 실행되어 role 검사)
|
||||
registry.addInterceptor(adminInterceptor)
|
||||
|
||||
Reference in New Issue
Block a user