Skip to content

Commit

Permalink
fix : security 파일 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
kssumin committed Oct 8, 2023
1 parent 77727f7 commit 07c2ebe
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import com.kakao.golajuma.auth.web.dto.request.LoginUserRequest;
import com.kakao.golajuma.auth.web.dto.response.TokenResponse;
import lombok.RequiredArgsConstructor;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

Expand All @@ -24,7 +23,7 @@ public class LoginUserService {
private final TokenConverter tokenConverter;
private final TokenResolver tokenResolver;
private final TokenService tokenService;

private final Encoder encoder;

@Transactional
public TokenResponse execute(final LoginUserRequest request) {
Expand Down Expand Up @@ -52,6 +51,5 @@ private void validPassword(final String requestPassword, final UserEntity userEn

private boolean matchPassword(final String requestPassword, final String password) {
return encoder.matches(requestPassword, password);

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ private Claims getClaims(final String token) {
return Jwts.parserBuilder().setSigningKey(secretKey).build().parseClaimsJws(token).getBody();
} catch (ExpiredJwtException e) {
throw new NotValidToken("만료된 토큰입니다");

}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.kakao.golajuma.auth.infra.converter;


import com.kakao.golajuma.auth.domain.helper.Encoder;
import com.kakao.golajuma.auth.infra.entity.UserEntity;
import com.kakao.golajuma.auth.web.dto.request.SaveUserRequest;
Expand Down
43 changes: 0 additions & 43 deletions src/main/java/com/kakao/golajuma/config/SecurityConfig.java

This file was deleted.

0 comments on commit 07c2ebe

Please sign in to comment.