Replies: 2 comments
-
경호1. 찬성2. 찬성
3. 찬성4. filter 주장
[ Filter 유지가 적절한 경우 ]
[ Interceptor로 변경이 유리한 경우 ]
5. 찬성 |
Beta Was this translation helpful? Give feedback.
0 replies
-
찬기1. 찬성2. 찬성
3. 찬성
4. filter 주장
5. 찬성 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
1. 인증 관련 네이밍 정리
oauth
대신auth
사용 제안./api/auth/login/kakao
/api/auth/login/basic
OAuthController > OAuthService > (OAuth 관련 클래스들)
AuthController > AuthService > (OAuth 클래스 & 기본 로그인 클래스 분리)
2. 에러 코드 위치 조정
global
이 아닌 각 feature 내에서 선언하는 방향 제안.global > exception > [feature]
[feature] > exception
3. Security 패키지 위치 조정
AuthFilter
,TokenProvider
제외한 모든 security 관련 클래스feature > auth
로 이동4. 최상단 인증 로직 filter → interceptor 변경 제안
sendError
를 호출하는 방식보다, Interceptor를 활용하여 공통된 응답 바디를 처리하는 것이 더 일관적일 수 있음.5. 커스텀 예외 - TookException
Beta Was this translation helpful? Give feedback.
All reactions