Skip to content

Commit

Permalink
Merge pull request #87 from Team-UniVoice/fix#/68-slack-token-use
Browse files Browse the repository at this point in the history
fix : add profile url
  • Loading branch information
softmoca authored Jul 18, 2024
2 parents 7668324 + b3ae886 commit db5014c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/sopt/univoice/domain/auth/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ public class SecurityConfig {
"/api/v1/auth/check-email",
"/api/v1/auth/signup",
"/api/v1/auth/accecpt",
"api/v1/auth/"
"api/v1/auth/",
"api/v1/profile"
};

@Bean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public class JwtAuthenticationFilter extends OncePerRequestFilter {
WHITE_LIST_PATHS.add("/api/v1/auth/check-email");
WHITE_LIST_PATHS.add("/api/v1/auth/signup");
WHITE_LIST_PATHS.add("/api/v1/auth/accecpt");
WHITE_LIST_PATHS.add("/api/v1/profile");
}

@Override
Expand All @@ -45,6 +46,7 @@ protected void doFilterInternal(@NonNull HttpServletRequest request,
// 화이트리스트 경로인 경우 필터를 통과시킴
System.out.println("Request URI(filter): " + request.getRequestURI());
if (WHITE_LIST_PATHS.contains(request.getRequestURI())) {
System.out.println("Whitelist path, skipping authentication");
filterChain.doFilter(request, response);
return;
}
Expand Down

0 comments on commit db5014c

Please sign in to comment.