Skip to content

9주차 미션 [이서]#37

Open
seoyoon127 wants to merge 14 commits into
mainfrom
leeseo/week9
Open

9주차 미션 [이서]#37
seoyoon127 wants to merge 14 commits into
mainfrom
leeseo/week9

Conversation

@seoyoon127
Copy link
Copy Markdown
Collaborator

🚩 관련 이슈

📌 구현 결과

JWT 토큰 방식의 회원가입, 로그인 구현
image

마이페이지 개선
스크린샷 2026-05-22 213613

JWT + OAuth 구현
스크린샷 2026-05-22 224900
스크린샷 2026-05-22 234855

❓ 리뷰 요청

🤔 질문

💬 기타 공유 사항

@seoyoon127 seoyoon127 self-assigned this May 27, 2026
Copy link
Copy Markdown
Member

@yangjiae12 yangjiae12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다~

AccessDeniedException accessDeniedException
) throws IOException, ServletException {
ObjectMapper objectMapper = new ObjectMapper();
BaseErrorCode code = GeneralErrorCode.UNAUTHORIZED;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AccessDeniedHandler는 인증은 되었지만 권한이 부족한 경우에 동작하므로, 401보다는 403 응답을 내려주는 것이 더 적절해 보입니다! AuthenticationEntryPoint는 401, AccessDeniedHandler는 403으로 역할을 분리하면 좋을 것 같습니다~

Comment on lines +61 to +63
} catch (Exception e) {
ObjectMapper mapper = new ObjectMapper();
BaseErrorCode code = GeneralErrorCode.UNAUTHORIZED;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JwtAuthFilter에서 모든 예외를 Exception으로 잡고 있어 예상치 못한 서버 오류도 401로 처리될 수 있을 것 같습니다. JWT 관련 예외나 인증 실패 예외처럼 처리할 예외 범위를 조금 더 명확히 나누면 좋을 것 같습니다!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Mission] 9주차 미션

2 participants