Skip to content

Commit

Permalink
[hotfix] JwtAuthenticationProcessingFilter 변경으로 인한 swagger 접속 문제 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
JunRain2 committed Jun 5, 2024
1 parent 84935fa commit bb83b28
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,16 @@ private void checkRefreshTokenAndReIssueAccessToken(HttpServletResponse response
}

private void checkAccessTokenAndAuthentication(HttpServletRequest request, HttpServletResponse response,
FilterChain filterChain) {
FilterChain filterChain) throws ServletException, IOException {
try {
String email = jwtService.getEmail(request);
memberRepository.findByEmail(email).ifPresent(this::saveAuthentication);
filterChain.doFilter(request, response);
} catch (Exception e) {
sendError(response, SC_FORBIDDEN);
}
finally {
filterChain.doFilter(request, response);
}
}

private void saveAuthentication(Member myMember) {
Expand Down

0 comments on commit bb83b28

Please sign in to comment.