Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PC-625] 시큐리티 필터 예외 처리 #65

Merged

Conversation

devchlee12
Copy link
Member

@devchlee12 devchlee12 commented Feb 16, 2025

🔗 관련 이슈

PC-625

✨ 작업 내용

  • 액세스 토큰 만료시 에러 코드 401로 보내도록 수정
  • 접근 권한 예외 처리
  • 메서드 시큐리티 설정 추가

✅ 체크리스트

  • 코드가 정상적으로 컴파일되나요?
  • 테스트 코드를 통과했나요?
  • merge할 브랜치의 위치를 확인했나요?
  • Label을 지정했나요?

🎃 새롭게 알게된 사항

📋 참고 사항

  • 코드 리뷰 시 논의가 필요한 사항이나 배포 관련 주의 사항을 추가합니다.

Copy link

Unit Test Results

23 tests   22 ✔️  2s ⏱️
10 suites    0 💤
10 files      1

For more details on these failures, see this check.

Results for commit fe52345.

@ExceptionHandler(AuthorizationDeniedException.class)
public ResponseEntity<Object> handleAuthorizationException(final AuthorizationDeniedException e) {
return handleExceptionInternal(AuthErrorCode.ACCESS_DENIED);
}
Copy link
Member

Choose a reason for hiding this comment

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

이게 @PreAuthorizae 로 요청에 대한 권한을 검증할 떄 발생되는 예외를 처리하는 핸들러로 이해하면 될까요 ?

Copy link
Member Author

Choose a reason for hiding this comment

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

넵 맞습니다!

@devchlee12 devchlee12 merged commit fea411e into develope Feb 17, 2025
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants