Skip to content

Commit

Permalink
[refac] delete unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
kgy1008 committed Jul 11, 2024
1 parent ffc83ba commit 39deeb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class JwtAuthenticationFilter extends OncePerRequestFilter {
@Override
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException {
final String accessToken = getAccessToken(request);
jwtValidator.validateAccessToken(accessToken, request.getRequestURI());
jwtValidator.validateAccessToken(accessToken);
doAuthentication(request, jwtProvider.getSubject(accessToken));
filterChain.doFilter(request, response);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class JwtValidator {

private final JwtGenerator jwtGenerator;

public void validateAccessToken(String accessToken, String requestURI) {
public void validateAccessToken(String accessToken) {
try {
String role = parseToken(accessToken).get(JwtGenerator.USER_ROLE_CLAIM_NAME, String.class);
if (role == null) {
Expand Down

0 comments on commit 39deeb4

Please sign in to comment.