[FEAT]: Security Filter 단 예외 핸들링 (JWT) #63
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue number
작업 사항
JwtAuthenticationFilter
앞에JwtExceptionHandleFilter
를 두어서 예외 핸들링을 하였습니다.AuthenticationEntryPoint
를 사용하려고 했으나, Filter 단에서 예외 발생후 EntryPoint 단에AuthenticationException
이 넘어올 때 원하는 Exception이 넘어 오지 않고 InsufficientException이 넘어와서 JwtExceptionHandleFilter를 활용하였습니다. ( 이를 해결하려면 조금 시간이 걸릴 것 같애서 위 방법으로 대체하였습니다.)