Skip to content

Commit

Permalink
chore : Filter 에서 제외된 API는 기존 로직 검증 없이 타도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
sk000801 committed Sep 1, 2024
1 parent 21259d1 commit 9a3d184
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/server/oauth/filter/TokenValidationFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,16 @@ public void init(FilterConfig filterConfig) throws ServletException {
}

@Override
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws ZarinattaException, IOException {
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws ZarinattaException, IOException, ServletException {

HttpServletRequest httpRequest = (HttpServletRequest) request;
HttpServletResponse httpResponse = (HttpServletResponse) response;

if(excludeUrls.contains(httpRequest.getRequestURI())) {
chain.doFilter(request, response);
return;
}

// 쿠키에서 accessToken 가져오기
Cookie[] cookies = httpRequest.getCookies();
String accessToken = null;
Expand Down

0 comments on commit 9a3d184

Please sign in to comment.