Skip to content

Commit

Permalink
chore: 리다이렉트 url 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
dong2ast committed Jul 22, 2024
1 parent 41cf541 commit 27a64d8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void onAuthenticationSuccess(HttpServletRequest request, HttpServletRespo
// User의 Role이 GUEST일 경우 처음 요청한 회원이므로 회원가입 페이지로 리다이렉트
if(customOAuth2User.getAuthority() == Authority.ROLE_GUEST) {
String accessToken = tokenProvider.generateTokenDto(authentication).getAccessToken();
response.sendRedirect("http://localhost:3000/socialLoginNameInput"+"?token="+accessToken+"&id="+id); // 프론트의 회원가입 추가 정보 입력 폼으로 리다이렉트 (추가 컨트롤러를 만들고 거기서 post 해야지 User로 바뀜)
response.sendRedirect("https://www.uspray.kr/socialLoginNameInput"+"?token="+accessToken+"&id="+id); // 프론트의 회원가입 추가 정보 입력 폼으로 리다이렉트 (추가 컨트롤러를 만들고 거기서 post 해야지 User로 바뀜)
return;
}

Expand All @@ -45,6 +45,6 @@ public void onAuthenticationSuccess(HttpServletRequest request, HttpServletRespo
tokenProvider.getRefreshTokenExpireTime(),
TimeUnit.MILLISECONDS);

response.sendRedirect("http://localhost:3000/social-redirecting"+"?accessToken="+tokenDto.getAccessToken()+"&refreshToken="+tokenDto.getRefreshToken());
response.sendRedirect("https://www.uspray.kr/social-redirecting"+"?accessToken="+tokenDto.getAccessToken()+"&refreshToken="+tokenDto.getRefreshToken());
}
}

0 comments on commit 27a64d8

Please sign in to comment.