diff --git a/src/main/java/server/oauth/filter/TokenValidationFilter.java b/src/main/java/server/oauth/filter/TokenValidationFilter.java index 230411c..4eb6613 100644 --- a/src/main/java/server/oauth/filter/TokenValidationFilter.java +++ b/src/main/java/server/oauth/filter/TokenValidationFilter.java @@ -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;