Skip to content

Commit

Permalink
Fix: 경매만 인증 추가 (#75)
Browse files Browse the repository at this point in the history
* Fix: 바인딩 에러 처리

* Fix: 경매만 인증 추가
  • Loading branch information
klkim1913 authored Aug 9, 2023
1 parent e8c362b commit cac3a78
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.anywayclear.config.JwtConfig;
import com.anywayclear.entity.Member;
import com.anywayclear.exception.CustomException;
import com.anywayclear.exception.ErrorResponse;
import com.anywayclear.exception.ExceptionCode;
import com.anywayclear.repository.MemberRepository;
Expand All @@ -11,7 +10,6 @@
import com.auth0.jwt.exceptions.JWTDecodeException;
import com.auth0.jwt.exceptions.TokenExpiredException;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.http.HttpStatus;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.Authentication;
Expand Down Expand Up @@ -46,7 +44,7 @@ protected void doFilterInternal(HttpServletRequest request, HttpServletResponse
System.out.println("JwtAuthorizationFilter : 인증이나 권한이 필요한 주소 요청이 됨");

// 특정 경로에 대한 요청이라면 JWT 검사를 하지 않음
if (request.getRequestURI().startsWith("/api/")) {
if (!request.getRequestURI().startsWith("/api/auctions")) {
chain.doFilter(request, response);
return;
}
Expand Down

0 comments on commit cac3a78

Please sign in to comment.