issues
search
Turing-mentos
/
Turing-BE
과외 수업의 부담감은 내리고 효율성은 올리는 과외 알리미
0
stars
1
forks
source link
[Fix] Security Config 수정
#31
Closed
beomzun
closed
3 months ago
beomzun
commented
3 months ago
📄 Description
close : #29
📌 구현 내용
SecurityConfig에서 설정한 검증 제외 api에 대해서도 JwtAuthenticationFilter에서 검증이 실행되어 이를 수정하였습니다.
JwtAuthenticationFilter의 getAccessToken에서 http 요청에 토큰이 담겨있지 않더라도 예외처리 하지않고 null을 리턴하도록 하였습니다.
리턴된 null에 대한 예외처리를 적용하지 않았습니다.
JwtTokenProvider의 getAuthentication 메서드를 JwtAuthenticationFilter에서 구현하였습니다.
토큰 검증 제외 api를 메서드 내에 위치하지 않고 AUTH_WHITELIST로 분리하였습니다.
📄 Description
📌 구현 내용