Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor #76 소셜 로그인을 위한 더미 패스워드 도입 #76

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
import org.springframework.web.filter.OncePerRequestFilter;

import java.io.IOException;
import java.util.TooManyListenersException;

@RequiredArgsConstructor
@Slf4j
public class JwtAuthenticationProcessingFilter extends OncePerRequestFilter {

private static final String NO_CHECK_URL = "/api/v1/login";
private final String DUMMY = "DUMMY_PASSWORD";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

임시로 수정된 내용 확인했습니다 !


private final JwtProvider jwtProvider;
private final JwtService jwtService;
Expand Down Expand Up @@ -55,11 +55,10 @@ protected void doFilterInternal(HttpServletRequest request, HttpServletResponse
}

public void saveAuthentication(User myUser) {
String password = myUser.getPassword();

UserDetails userDetailsUser = org.springframework.security.core.userdetails.User.builder()
.username(myUser.getEmail())
.password(password)
.password(DUMMY)
.roles(myUser.getRole().name())
.build();

Expand Down
Loading